@theglitchking/hit-em-with-the-docs 2.7.0 → 2.7.1

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.
@@ -14,4 +14,4 @@ i.exports=function isExtendable(i){return typeof i!=="undefined"&&i!==null&&(typ
14
14
  */
15
15
  i.exports=function(i){if(typeof i==="string"&&i.charAt(0)==="\ufeff"){return i.slice(1)}return i}},770:(i,g,f)=>{i.exports=f(218)},218:(i,g,f)=>{var E=f(9278);var p=f(4756);var y=f(8611);var b=f(5692);var S=f(4434);var J=f(2613);var Z=f(9023);g.httpOverHttp=httpOverHttp;g.httpsOverHttp=httpsOverHttp;g.httpOverHttps=httpOverHttps;g.httpsOverHttps=httpsOverHttps;function httpOverHttp(i){var g=new TunnelingAgent(i);g.request=y.request;return g}function httpsOverHttp(i){var g=new TunnelingAgent(i);g.request=y.request;g.createSocket=createSecureSocket;g.defaultPort=443;return g}function httpOverHttps(i){var g=new TunnelingAgent(i);g.request=b.request;return g}function httpsOverHttps(i){var g=new TunnelingAgent(i);g.request=b.request;g.createSocket=createSecureSocket;g.defaultPort=443;return g}function TunnelingAgent(i){var g=this;g.options=i||{};g.proxyOptions=g.options.proxy||{};g.maxSockets=g.options.maxSockets||y.Agent.defaultMaxSockets;g.requests=[];g.sockets=[];g.on("free",(function onFree(i,f,E,p){var y=toOptions(f,E,p);for(var b=0,S=g.requests.length;b<S;++b){var J=g.requests[b];if(J.host===y.host&&J.port===y.port){g.requests.splice(b,1);J.request.onSocket(i);return}}i.destroy();g.removeSocket(i)}))}Z.inherits(TunnelingAgent,S.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(i,g,f,E){var p=this;var y=mergeOptions({request:i},p.options,toOptions(g,f,E));if(p.sockets.length>=this.maxSockets){p.requests.push(y);return}p.createSocket(y,(function(g){g.on("free",onFree);g.on("close",onCloseOrRemove);g.on("agentRemove",onCloseOrRemove);i.onSocket(g);function onFree(){p.emit("free",g,y)}function onCloseOrRemove(i){p.removeSocket(g);g.removeListener("free",onFree);g.removeListener("close",onCloseOrRemove);g.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(i,g){var f=this;var E={};f.sockets.push(E);var p=mergeOptions({},f.proxyOptions,{method:"CONNECT",path:i.host+":"+i.port,agent:false,headers:{host:i.host+":"+i.port}});if(i.localAddress){p.localAddress=i.localAddress}if(p.proxyAuth){p.headers=p.headers||{};p.headers["Proxy-Authorization"]="Basic "+new Buffer(p.proxyAuth).toString("base64")}$("making CONNECT request");var y=f.request(p);y.useChunkedEncodingByDefault=false;y.once("response",onResponse);y.once("upgrade",onUpgrade);y.once("connect",onConnect);y.once("error",onError);y.end();function onResponse(i){i.upgrade=true}function onUpgrade(i,g,f){process.nextTick((function(){onConnect(i,g,f)}))}function onConnect(p,b,S){y.removeAllListeners();b.removeAllListeners();if(p.statusCode!==200){$("tunneling socket could not be established, statusCode=%d",p.statusCode);b.destroy();var J=new Error("tunneling socket could not be established, "+"statusCode="+p.statusCode);J.code="ECONNRESET";i.request.emit("error",J);f.removeSocket(E);return}if(S.length>0){$("got illegal response body from proxy");b.destroy();var J=new Error("got illegal response body from proxy");J.code="ECONNRESET";i.request.emit("error",J);f.removeSocket(E);return}$("tunneling connection has established");f.sockets[f.sockets.indexOf(E)]=b;return g(b)}function onError(g){y.removeAllListeners();$("tunneling socket could not be established, cause=%s\n",g.message,g.stack);var p=new Error("tunneling socket could not be established, "+"cause="+g.message);p.code="ECONNRESET";i.request.emit("error",p);f.removeSocket(E)}};TunnelingAgent.prototype.removeSocket=function removeSocket(i){var g=this.sockets.indexOf(i);if(g===-1){return}this.sockets.splice(g,1);var f=this.requests.shift();if(f){this.createSocket(f,(function(i){f.request.onSocket(i)}))}};function createSecureSocket(i,g){var f=this;TunnelingAgent.prototype.createSocket.call(f,i,(function(E){var y=i.request.getHeader("host");var b=mergeOptions({},f.options,{socket:E,servername:y?y.replace(/:.*$/,""):i.host});var S=p.connect(0,b);f.sockets[f.sockets.indexOf(E)]=S;g(S)}))}function toOptions(i,g,f){if(typeof i==="string"){return{host:i,port:g,localAddress:f}}return i}function mergeOptions(i){for(var g=1,f=arguments.length;g<f;++g){var E=arguments[g];if(typeof E==="object"){var p=Object.keys(E);for(var y=0,b=p.length;y<b;++y){var S=p[y];if(E[S]!==undefined){i[S]=E[S]}}}}return i}var $;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)){$=function(){var i=Array.prototype.slice.call(arguments);if(typeof i[0]==="string"){i[0]="TUNNEL: "+i[0]}else{i.unshift("TUNNEL:")}console.error.apply(console,i)}}else{$=function(){}}g.debug=$},6752:(i,g,f)=>{const E=f(6197);const p=f(992);const y=f(8707);const b=f(5076);const S=f(1093);const J=f(9965);const Z=f(3440);const{InvalidArgumentError:$}=y;const z=f(6615);const ee=f(9136);const re=f(7365);const Pe=f(7501);const $t=f(4004);const tn=f(2429);const sn=f(2720);const nn=f(3573);const{getGlobalDispatcher:rn,setGlobalDispatcher:An}=f(2581);const on=f(8840);const an=f(8299);const cn=f(4415);let ln;try{f(6982);ln=true}catch{ln=false}Object.assign(p.prototype,z);i.exports.Dispatcher=p;i.exports.Client=E;i.exports.Pool=b;i.exports.BalancedPool=S;i.exports.Agent=J;i.exports.ProxyAgent=sn;i.exports.RetryHandler=nn;i.exports.DecoratorHandler=on;i.exports.RedirectHandler=an;i.exports.createRedirectInterceptor=cn;i.exports.buildConnector=ee;i.exports.errors=y;function makeDispatcher(i){return(g,f,E)=>{if(typeof f==="function"){E=f;f=null}if(!g||typeof g!=="string"&&typeof g!=="object"&&!(g instanceof URL)){throw new $("invalid url")}if(f!=null&&typeof f!=="object"){throw new $("invalid opts")}if(f&&f.path!=null){if(typeof f.path!=="string"){throw new $("invalid opts.path")}let i=f.path;if(!f.path.startsWith("/")){i=`/${i}`}g=new URL(Z.parseOrigin(g).origin+i)}else{if(!f){f=typeof g==="object"?g:{}}g=Z.parseURL(g)}const{agent:p,dispatcher:y=rn()}=f;if(p){throw new $("unsupported opts.agent. Did you mean opts.client?")}return i.call(y,{...f,origin:g.origin,path:g.search?`${g.pathname}${g.search}`:g.pathname,method:f.method||(f.body?"PUT":"GET")},E)}}i.exports.setGlobalDispatcher=An;i.exports.getGlobalDispatcher=rn;if(Z.nodeMajor>16||Z.nodeMajor===16&&Z.nodeMinor>=8){let g=null;i.exports.fetch=async function fetch(i){if(!g){g=f(2315).fetch}try{return await g(...arguments)}catch(i){if(typeof i==="object"){Error.captureStackTrace(i,this)}throw i}};i.exports.Headers=f(6349).Headers;i.exports.Response=f(8676).Response;i.exports.Request=f(5194).Request;i.exports.FormData=f(3073).FormData;i.exports.File=f(3041).File;i.exports.FileReader=f(2160).FileReader;const{setGlobalOrigin:E,getGlobalOrigin:p}=f(5628);i.exports.setGlobalOrigin=E;i.exports.getGlobalOrigin=p;const{CacheStorage:y}=f(4738);const{kConstruct:b}=f(296);i.exports.caches=new y(b)}if(Z.nodeMajor>=16){const{deleteCookie:g,getCookies:E,getSetCookies:p,setCookie:y}=f(3168);i.exports.deleteCookie=g;i.exports.getCookies=E;i.exports.getSetCookies=p;i.exports.setCookie=y;const{parseMIMEType:b,serializeAMimeType:S}=f(4322);i.exports.parseMIMEType=b;i.exports.serializeAMimeType=S}if(Z.nodeMajor>=18&&ln){const{WebSocket:g}=f(5171);i.exports.WebSocket=g}i.exports.request=makeDispatcher(z.request);i.exports.stream=makeDispatcher(z.stream);i.exports.pipeline=makeDispatcher(z.pipeline);i.exports.connect=makeDispatcher(z.connect);i.exports.upgrade=makeDispatcher(z.upgrade);i.exports.MockClient=re;i.exports.MockPool=$t;i.exports.MockAgent=Pe;i.exports.mockErrors=tn},9965:(i,g,f)=>{const{InvalidArgumentError:E}=f(8707);const{kClients:p,kRunning:y,kClose:b,kDestroy:S,kDispatch:J,kInterceptors:Z}=f(6443);const $=f(1);const z=f(5076);const ee=f(6197);const re=f(3440);const Pe=f(4415);const{WeakRef:$t,FinalizationRegistry:tn}=f(3194)();const sn=Symbol("onConnect");const nn=Symbol("onDisconnect");const rn=Symbol("onConnectionError");const An=Symbol("maxRedirections");const on=Symbol("onDrain");const an=Symbol("factory");const cn=Symbol("finalizer");const ln=Symbol("options");function defaultFactory(i,g){return g&&g.connections===1?new ee(i,g):new z(i,g)}class Agent extends ${constructor({factory:i=defaultFactory,maxRedirections:g=0,connect:f,...y}={}){super();if(typeof i!=="function"){throw new E("factory must be a function.")}if(f!=null&&typeof f!=="function"&&typeof f!=="object"){throw new E("connect must be a function or an object")}if(!Number.isInteger(g)||g<0){throw new E("maxRedirections must be a positive number")}if(f&&typeof f!=="function"){f={...f}}this[Z]=y.interceptors&&y.interceptors.Agent&&Array.isArray(y.interceptors.Agent)?y.interceptors.Agent:[Pe({maxRedirections:g})];this[ln]={...re.deepClone(y),connect:f};this[ln].interceptors=y.interceptors?{...y.interceptors}:undefined;this[An]=g;this[an]=i;this[p]=new Map;this[cn]=new tn((i=>{const g=this[p].get(i);if(g!==undefined&&g.deref()===undefined){this[p].delete(i)}}));const b=this;this[on]=(i,g)=>{b.emit("drain",i,[b,...g])};this[sn]=(i,g)=>{b.emit("connect",i,[b,...g])};this[nn]=(i,g,f)=>{b.emit("disconnect",i,[b,...g],f)};this[rn]=(i,g,f)=>{b.emit("connectionError",i,[b,...g],f)}}get[y](){let i=0;for(const g of this[p].values()){const f=g.deref();if(f){i+=f[y]}}return i}[J](i,g){let f;if(i.origin&&(typeof i.origin==="string"||i.origin instanceof URL)){f=String(i.origin)}else{throw new E("opts.origin must be a non-empty string or URL.")}const y=this[p].get(f);let b=y?y.deref():null;if(!b){b=this[an](i.origin,this[ln]).on("drain",this[on]).on("connect",this[sn]).on("disconnect",this[nn]).on("connectionError",this[rn]);this[p].set(f,new $t(b));this[cn].register(b,f)}return b.dispatch(i,g)}async[b](){const i=[];for(const g of this[p].values()){const f=g.deref();if(f){i.push(f.close())}}await Promise.all(i)}async[S](i){const g=[];for(const f of this[p].values()){const E=f.deref();if(E){g.push(E.destroy(i))}}await Promise.all(g)}}i.exports=Agent},158:(i,g,f)=>{const{addAbortListener:E}=f(3440);const{RequestAbortedError:p}=f(8707);const y=Symbol("kListener");const b=Symbol("kSignal");function abort(i){if(i.abort){i.abort()}else{i.onError(new p)}}function addSignal(i,g){i[b]=null;i[y]=null;if(!g){return}if(g.aborted){abort(i);return}i[b]=g;i[y]=()=>{abort(i)};E(i[b],i[y])}function removeSignal(i){if(!i[b]){return}if("removeEventListener"in i[b]){i[b].removeEventListener("abort",i[y])}else{i[b].removeListener("abort",i[y])}i[b]=null;i[y]=null}i.exports={addSignal:addSignal,removeSignal:removeSignal}},4660:(i,g,f)=>{const{AsyncResource:E}=f(290);const{InvalidArgumentError:p,RequestAbortedError:y,SocketError:b}=f(8707);const S=f(3440);const{addSignal:J,removeSignal:Z}=f(158);class ConnectHandler extends E{constructor(i,g){if(!i||typeof i!=="object"){throw new p("invalid opts")}if(typeof g!=="function"){throw new p("invalid callback")}const{signal:f,opaque:E,responseHeaders:y}=i;if(f&&typeof f.on!=="function"&&typeof f.addEventListener!=="function"){throw new p("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=E||null;this.responseHeaders=y||null;this.callback=g;this.abort=null;J(this,f)}onConnect(i,g){if(!this.callback){throw new y}this.abort=i;this.context=g}onHeaders(){throw new b("bad connect",null)}onUpgrade(i,g,f){const{callback:E,opaque:p,context:y}=this;Z(this);this.callback=null;let b=g;if(b!=null){b=this.responseHeaders==="raw"?S.parseRawHeaders(g):S.parseHeaders(g)}this.runInAsyncScope(E,null,null,{statusCode:i,headers:b,socket:f,opaque:p,context:y})}onError(i){const{callback:g,opaque:f}=this;Z(this);if(g){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(g,null,i,{opaque:f})}))}}}function connect(i,g){if(g===undefined){return new Promise(((g,f)=>{connect.call(this,i,((i,E)=>i?f(i):g(E)))}))}try{const f=new ConnectHandler(i,g);this.dispatch({...i,method:"CONNECT"},f)}catch(f){if(typeof g!=="function"){throw f}const E=i&&i.opaque;queueMicrotask((()=>g(f,{opaque:E})))}}i.exports=connect},6862:(i,g,f)=>{const{Readable:E,Duplex:p,PassThrough:y}=f(2203);const{InvalidArgumentError:b,InvalidReturnValueError:S,RequestAbortedError:J}=f(8707);const Z=f(3440);const{AsyncResource:$}=f(290);const{addSignal:z,removeSignal:ee}=f(158);const re=f(2613);const Pe=Symbol("resume");class PipelineRequest extends E{constructor(){super({autoDestroy:true});this[Pe]=null}_read(){const{[Pe]:i}=this;if(i){this[Pe]=null;i()}}_destroy(i,g){this._read();g(i)}}class PipelineResponse extends E{constructor(i){super({autoDestroy:true});this[Pe]=i}_read(){this[Pe]()}_destroy(i,g){if(!i&&!this._readableState.endEmitted){i=new J}g(i)}}class PipelineHandler extends ${constructor(i,g){if(!i||typeof i!=="object"){throw new b("invalid opts")}if(typeof g!=="function"){throw new b("invalid handler")}const{signal:f,method:E,opaque:y,onInfo:S,responseHeaders:$}=i;if(f&&typeof f.on!=="function"&&typeof f.addEventListener!=="function"){throw new b("signal must be an EventEmitter or EventTarget")}if(E==="CONNECT"){throw new b("invalid method")}if(S&&typeof S!=="function"){throw new b("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=y||null;this.responseHeaders=$||null;this.handler=g;this.abort=null;this.context=null;this.onInfo=S||null;this.req=(new PipelineRequest).on("error",Z.nop);this.ret=new p({readableObjectMode:i.objectMode,autoDestroy:true,read:()=>{const{body:i}=this;if(i&&i.resume){i.resume()}},write:(i,g,f)=>{const{req:E}=this;if(E.push(i,g)||E._readableState.destroyed){f()}else{E[Pe]=f}},destroy:(i,g)=>{const{body:f,req:E,res:p,ret:y,abort:b}=this;if(!i&&!y._readableState.endEmitted){i=new J}if(b&&i){b()}Z.destroy(f,i);Z.destroy(E,i);Z.destroy(p,i);ee(this);g(i)}}).on("prefinish",(()=>{const{req:i}=this;i.push(null)}));this.res=null;z(this,f)}onConnect(i,g){const{ret:f,res:E}=this;re(!E,"pipeline cannot be retried");if(f.destroyed){throw new J}this.abort=i;this.context=g}onHeaders(i,g,f){const{opaque:E,handler:p,context:y}=this;if(i<200){if(this.onInfo){const f=this.responseHeaders==="raw"?Z.parseRawHeaders(g):Z.parseHeaders(g);this.onInfo({statusCode:i,headers:f})}return}this.res=new PipelineResponse(f);let b;try{this.handler=null;const f=this.responseHeaders==="raw"?Z.parseRawHeaders(g):Z.parseHeaders(g);b=this.runInAsyncScope(p,null,{statusCode:i,headers:f,opaque:E,body:this.res,context:y})}catch(i){this.res.on("error",Z.nop);throw i}if(!b||typeof b.on!=="function"){throw new S("expected Readable")}b.on("data",(i=>{const{ret:g,body:f}=this;if(!g.push(i)&&f.pause){f.pause()}})).on("error",(i=>{const{ret:g}=this;Z.destroy(g,i)})).on("end",(()=>{const{ret:i}=this;i.push(null)})).on("close",(()=>{const{ret:i}=this;if(!i._readableState.ended){Z.destroy(i,new J)}}));this.body=b}onData(i){const{res:g}=this;return g.push(i)}onComplete(i){const{res:g}=this;g.push(null)}onError(i){const{ret:g}=this;this.handler=null;Z.destroy(g,i)}}function pipeline(i,g){try{const f=new PipelineHandler(i,g);this.dispatch({...i,body:f.req},f);return f.ret}catch(i){return(new y).destroy(i)}}i.exports=pipeline},4043:(i,g,f)=>{const E=f(9927);const{InvalidArgumentError:p,RequestAbortedError:y}=f(8707);const b=f(3440);const{getResolveErrorBodyCallback:S}=f(7655);const{AsyncResource:J}=f(290);const{addSignal:Z,removeSignal:$}=f(158);class RequestHandler extends J{constructor(i,g){if(!i||typeof i!=="object"){throw new p("invalid opts")}const{signal:f,method:E,opaque:y,body:S,onInfo:J,responseHeaders:$,throwOnError:z,highWaterMark:ee}=i;try{if(typeof g!=="function"){throw new p("invalid callback")}if(ee&&(typeof ee!=="number"||ee<0)){throw new p("invalid highWaterMark")}if(f&&typeof f.on!=="function"&&typeof f.addEventListener!=="function"){throw new p("signal must be an EventEmitter or EventTarget")}if(E==="CONNECT"){throw new p("invalid method")}if(J&&typeof J!=="function"){throw new p("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(i){if(b.isStream(S)){b.destroy(S.on("error",b.nop),i)}throw i}this.responseHeaders=$||null;this.opaque=y||null;this.callback=g;this.res=null;this.abort=null;this.body=S;this.trailers={};this.context=null;this.onInfo=J||null;this.throwOnError=z;this.highWaterMark=ee;if(b.isStream(S)){S.on("error",(i=>{this.onError(i)}))}Z(this,f)}onConnect(i,g){if(!this.callback){throw new y}this.abort=i;this.context=g}onHeaders(i,g,f,p){const{callback:y,opaque:J,abort:Z,context:$,responseHeaders:z,highWaterMark:ee}=this;const re=z==="raw"?b.parseRawHeaders(g):b.parseHeaders(g);if(i<200){if(this.onInfo){this.onInfo({statusCode:i,headers:re})}return}const Pe=z==="raw"?b.parseHeaders(g):re;const $t=Pe["content-type"];const tn=new E({resume:f,abort:Z,contentType:$t,highWaterMark:ee});this.callback=null;this.res=tn;if(y!==null){if(this.throwOnError&&i>=400){this.runInAsyncScope(S,null,{callback:y,body:tn,contentType:$t,statusCode:i,statusMessage:p,headers:re})}else{this.runInAsyncScope(y,null,null,{statusCode:i,headers:re,trailers:this.trailers,opaque:J,body:tn,context:$})}}}onData(i){const{res:g}=this;return g.push(i)}onComplete(i){const{res:g}=this;$(this);b.parseHeaders(i,this.trailers);g.push(null)}onError(i){const{res:g,callback:f,body:E,opaque:p}=this;$(this);if(f){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(f,null,i,{opaque:p})}))}if(g){this.res=null;queueMicrotask((()=>{b.destroy(g,i)}))}if(E){this.body=null;b.destroy(E,i)}}}function request(i,g){if(g===undefined){return new Promise(((g,f)=>{request.call(this,i,((i,E)=>i?f(i):g(E)))}))}try{this.dispatch(i,new RequestHandler(i,g))}catch(f){if(typeof g!=="function"){throw f}const E=i&&i.opaque;queueMicrotask((()=>g(f,{opaque:E})))}}i.exports=request;i.exports.RequestHandler=RequestHandler},3560:(i,g,f)=>{const{finished:E,PassThrough:p}=f(2203);const{InvalidArgumentError:y,InvalidReturnValueError:b,RequestAbortedError:S}=f(8707);const J=f(3440);const{getResolveErrorBodyCallback:Z}=f(7655);const{AsyncResource:$}=f(290);const{addSignal:z,removeSignal:ee}=f(158);class StreamHandler extends ${constructor(i,g,f){if(!i||typeof i!=="object"){throw new y("invalid opts")}const{signal:E,method:p,opaque:b,body:S,onInfo:Z,responseHeaders:$,throwOnError:ee}=i;try{if(typeof f!=="function"){throw new y("invalid callback")}if(typeof g!=="function"){throw new y("invalid factory")}if(E&&typeof E.on!=="function"&&typeof E.addEventListener!=="function"){throw new y("signal must be an EventEmitter or EventTarget")}if(p==="CONNECT"){throw new y("invalid method")}if(Z&&typeof Z!=="function"){throw new y("invalid onInfo callback")}super("UNDICI_STREAM")}catch(i){if(J.isStream(S)){J.destroy(S.on("error",J.nop),i)}throw i}this.responseHeaders=$||null;this.opaque=b||null;this.factory=g;this.callback=f;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=S;this.onInfo=Z||null;this.throwOnError=ee||false;if(J.isStream(S)){S.on("error",(i=>{this.onError(i)}))}z(this,E)}onConnect(i,g){if(!this.callback){throw new S}this.abort=i;this.context=g}onHeaders(i,g,f,y){const{factory:S,opaque:$,context:z,callback:ee,responseHeaders:re}=this;const Pe=re==="raw"?J.parseRawHeaders(g):J.parseHeaders(g);if(i<200){if(this.onInfo){this.onInfo({statusCode:i,headers:Pe})}return}this.factory=null;let $t;if(this.throwOnError&&i>=400){const f=re==="raw"?J.parseHeaders(g):Pe;const E=f["content-type"];$t=new p;this.callback=null;this.runInAsyncScope(Z,null,{callback:ee,body:$t,contentType:E,statusCode:i,statusMessage:y,headers:Pe})}else{if(S===null){return}$t=this.runInAsyncScope(S,null,{statusCode:i,headers:Pe,opaque:$,context:z});if(!$t||typeof $t.write!=="function"||typeof $t.end!=="function"||typeof $t.on!=="function"){throw new b("expected Writable")}E($t,{readable:false},(i=>{const{callback:g,res:f,opaque:E,trailers:p,abort:y}=this;this.res=null;if(i||!f.readable){J.destroy(f,i)}this.callback=null;this.runInAsyncScope(g,null,i||null,{opaque:E,trailers:p});if(i){y()}}))}$t.on("drain",f);this.res=$t;const tn=$t.writableNeedDrain!==undefined?$t.writableNeedDrain:$t._writableState&&$t._writableState.needDrain;return tn!==true}onData(i){const{res:g}=this;return g?g.write(i):true}onComplete(i){const{res:g}=this;ee(this);if(!g){return}this.trailers=J.parseHeaders(i);g.end()}onError(i){const{res:g,callback:f,opaque:E,body:p}=this;ee(this);this.factory=null;if(g){this.res=null;J.destroy(g,i)}else if(f){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(f,null,i,{opaque:E})}))}if(p){this.body=null;J.destroy(p,i)}}}function stream(i,g,f){if(f===undefined){return new Promise(((f,E)=>{stream.call(this,i,g,((i,g)=>i?E(i):f(g)))}))}try{this.dispatch(i,new StreamHandler(i,g,f))}catch(g){if(typeof f!=="function"){throw g}const E=i&&i.opaque;queueMicrotask((()=>f(g,{opaque:E})))}}i.exports=stream},1882:(i,g,f)=>{const{InvalidArgumentError:E,RequestAbortedError:p,SocketError:y}=f(8707);const{AsyncResource:b}=f(290);const S=f(3440);const{addSignal:J,removeSignal:Z}=f(158);const $=f(2613);class UpgradeHandler extends b{constructor(i,g){if(!i||typeof i!=="object"){throw new E("invalid opts")}if(typeof g!=="function"){throw new E("invalid callback")}const{signal:f,opaque:p,responseHeaders:y}=i;if(f&&typeof f.on!=="function"&&typeof f.addEventListener!=="function"){throw new E("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=y||null;this.opaque=p||null;this.callback=g;this.abort=null;this.context=null;J(this,f)}onConnect(i,g){if(!this.callback){throw new p}this.abort=i;this.context=null}onHeaders(){throw new y("bad upgrade",null)}onUpgrade(i,g,f){const{callback:E,opaque:p,context:y}=this;$.strictEqual(i,101);Z(this);this.callback=null;const b=this.responseHeaders==="raw"?S.parseRawHeaders(g):S.parseHeaders(g);this.runInAsyncScope(E,null,null,{headers:b,socket:f,opaque:p,context:y})}onError(i){const{callback:g,opaque:f}=this;Z(this);if(g){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(g,null,i,{opaque:f})}))}}}function upgrade(i,g){if(g===undefined){return new Promise(((g,f)=>{upgrade.call(this,i,((i,E)=>i?f(i):g(E)))}))}try{const f=new UpgradeHandler(i,g);this.dispatch({...i,method:i.method||"GET",upgrade:i.protocol||"Websocket"},f)}catch(f){if(typeof g!=="function"){throw f}const E=i&&i.opaque;queueMicrotask((()=>g(f,{opaque:E})))}}i.exports=upgrade},6615:(i,g,f)=>{i.exports.request=f(4043);i.exports.stream=f(3560);i.exports.pipeline=f(6862);i.exports.upgrade=f(1882);i.exports.connect=f(4660)},9927:(i,g,f)=>{const E=f(2613);const{Readable:p}=f(2203);const{RequestAbortedError:y,NotSupportedError:b,InvalidArgumentError:S}=f(8707);const J=f(3440);const{ReadableStreamFrom:Z,toUSVString:$}=f(3440);let z;const ee=Symbol("kConsume");const re=Symbol("kReading");const Pe=Symbol("kBody");const $t=Symbol("abort");const tn=Symbol("kContentType");const noop=()=>{};i.exports=class BodyReadable extends p{constructor({resume:i,abort:g,contentType:f="",highWaterMark:E=64*1024}){super({autoDestroy:true,read:i,highWaterMark:E});this._readableState.dataEmitted=false;this[$t]=g;this[ee]=null;this[Pe]=null;this[tn]=f;this[re]=false}destroy(i){if(this.destroyed){return this}if(!i&&!this._readableState.endEmitted){i=new y}if(i){this[$t]()}return super.destroy(i)}emit(i,...g){if(i==="data"){this._readableState.dataEmitted=true}else if(i==="error"){this._readableState.errorEmitted=true}return super.emit(i,...g)}on(i,...g){if(i==="data"||i==="readable"){this[re]=true}return super.on(i,...g)}addListener(i,...g){return this.on(i,...g)}off(i,...g){const f=super.off(i,...g);if(i==="data"||i==="readable"){this[re]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return f}removeListener(i,...g){return this.off(i,...g)}push(i){if(this[ee]&&i!==null&&this.readableLength===0){consumePush(this[ee],i);return this[re]?super.push(i):true}return super.push(i)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new b}get bodyUsed(){return J.isDisturbed(this)}get body(){if(!this[Pe]){this[Pe]=Z(this);if(this[ee]){this[Pe].getReader();E(this[Pe].locked)}}return this[Pe]}dump(i){let g=i&&Number.isFinite(i.limit)?i.limit:262144;const f=i&&i.signal;if(f){try{if(typeof f!=="object"||!("aborted"in f)){throw new S("signal must be an AbortSignal")}J.throwIfAborted(f)}catch(i){return Promise.reject(i)}}if(this.closed){return Promise.resolve(null)}return new Promise(((i,E)=>{const p=f?J.addAbortListener(f,(()=>{this.destroy()})):noop;this.on("close",(function(){p();if(f&&f.aborted){E(f.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{i(null)}})).on("error",noop).on("data",(function(i){g-=i.length;if(g<=0){this.destroy()}})).resume()}))}};function isLocked(i){return i[Pe]&&i[Pe].locked===true||i[ee]}function isUnusable(i){return J.isDisturbed(i)||isLocked(i)}async function consume(i,g){if(isUnusable(i)){throw new TypeError("unusable")}E(!i[ee]);return new Promise(((f,E)=>{i[ee]={type:g,stream:i,resolve:f,reject:E,length:0,body:[]};i.on("error",(function(i){consumeFinish(this[ee],i)})).on("close",(function(){if(this[ee].body!==null){consumeFinish(this[ee],new y)}}));process.nextTick(consumeStart,i[ee])}))}function consumeStart(i){if(i.body===null){return}const{_readableState:g}=i.stream;for(const f of g.buffer){consumePush(i,f)}if(g.endEmitted){consumeEnd(this[ee])}else{i.stream.on("end",(function(){consumeEnd(this[ee])}))}i.stream.resume();while(i.stream.read()!=null){}}function consumeEnd(i){const{type:g,body:E,resolve:p,stream:y,length:b}=i;try{if(g==="text"){p($(Buffer.concat(E)))}else if(g==="json"){p(JSON.parse(Buffer.concat(E)))}else if(g==="arrayBuffer"){const i=new Uint8Array(b);let g=0;for(const f of E){i.set(f,g);g+=f.byteLength}p(i.buffer)}else if(g==="blob"){if(!z){z=f(181).Blob}p(new z(E,{type:y[tn]}))}consumeFinish(i)}catch(i){y.destroy(i)}}function consumePush(i,g){i.length+=g.length;i.body.push(g)}function consumeFinish(i,g){if(i.body===null){return}if(g){i.reject(g)}else{i.resolve()}i.type=null;i.stream=null;i.resolve=null;i.reject=null;i.length=0;i.body=null}},7655:(i,g,f)=>{const E=f(2613);const{ResponseStatusCodeError:p}=f(8707);const{toUSVString:y}=f(3440);async function getResolveErrorBodyCallback({callback:i,body:g,contentType:f,statusCode:b,statusMessage:S,headers:J}){E(g);let Z=[];let $=0;for await(const i of g){Z.push(i);$+=i.length;if($>128*1024){Z=null;break}}if(b===204||!f||!Z){process.nextTick(i,new p(`Response status code ${b}${S?`: ${S}`:""}`,b,J));return}try{if(f.startsWith("application/json")){const g=JSON.parse(y(Buffer.concat(Z)));process.nextTick(i,new p(`Response status code ${b}${S?`: ${S}`:""}`,b,J,g));return}if(f.startsWith("text/")){const g=y(Buffer.concat(Z));process.nextTick(i,new p(`Response status code ${b}${S?`: ${S}`:""}`,b,J,g));return}}catch(i){}process.nextTick(i,new p(`Response status code ${b}${S?`: ${S}`:""}`,b,J))}i.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},1093:(i,g,f)=>{const{BalancedPoolMissingUpstreamError:E,InvalidArgumentError:p}=f(8707);const{PoolBase:y,kClients:b,kNeedDrain:S,kAddClient:J,kRemoveClient:Z,kGetDispatcher:$}=f(8640);const z=f(5076);const{kUrl:ee,kInterceptors:re}=f(6443);const{parseOrigin:Pe}=f(3440);const $t=Symbol("factory");const tn=Symbol("options");const sn=Symbol("kGreatestCommonDivisor");const nn=Symbol("kCurrentWeight");const rn=Symbol("kIndex");const An=Symbol("kWeight");const on=Symbol("kMaxWeightPerServer");const an=Symbol("kErrorPenalty");function getGreatestCommonDivisor(i,g){if(g===0)return i;return getGreatestCommonDivisor(g,i%g)}function defaultFactory(i,g){return new z(i,g)}class BalancedPool extends y{constructor(i=[],{factory:g=defaultFactory,...f}={}){super();this[tn]=f;this[rn]=-1;this[nn]=0;this[on]=this[tn].maxWeightPerServer||100;this[an]=this[tn].errorPenalty||15;if(!Array.isArray(i)){i=[i]}if(typeof g!=="function"){throw new p("factory must be a function.")}this[re]=f.interceptors&&f.interceptors.BalancedPool&&Array.isArray(f.interceptors.BalancedPool)?f.interceptors.BalancedPool:[];this[$t]=g;for(const g of i){this.addUpstream(g)}this._updateBalancedPoolStats()}addUpstream(i){const g=Pe(i).origin;if(this[b].find((i=>i[ee].origin===g&&i.closed!==true&&i.destroyed!==true))){return this}const f=this[$t](g,Object.assign({},this[tn]));this[J](f);f.on("connect",(()=>{f[An]=Math.min(this[on],f[An]+this[an])}));f.on("connectionError",(()=>{f[An]=Math.max(1,f[An]-this[an]);this._updateBalancedPoolStats()}));f.on("disconnect",((...i)=>{const g=i[2];if(g&&g.code==="UND_ERR_SOCKET"){f[An]=Math.max(1,f[An]-this[an]);this._updateBalancedPoolStats()}}));for(const i of this[b]){i[An]=this[on]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[sn]=this[b].map((i=>i[An])).reduce(getGreatestCommonDivisor,0)}removeUpstream(i){const g=Pe(i).origin;const f=this[b].find((i=>i[ee].origin===g&&i.closed!==true&&i.destroyed!==true));if(f){this[Z](f)}return this}get upstreams(){return this[b].filter((i=>i.closed!==true&&i.destroyed!==true)).map((i=>i[ee].origin))}[$](){if(this[b].length===0){throw new E}const i=this[b].find((i=>!i[S]&&i.closed!==true&&i.destroyed!==true));if(!i){return}const g=this[b].map((i=>i[S])).reduce(((i,g)=>i&&g),true);if(g){return}let f=0;let p=this[b].findIndex((i=>!i[S]));while(f++<this[b].length){this[rn]=(this[rn]+1)%this[b].length;const i=this[b][this[rn]];if(i[An]>this[b][p][An]&&!i[S]){p=this[rn]}if(this[rn]===0){this[nn]=this[nn]-this[sn];if(this[nn]<=0){this[nn]=this[on]}}if(i[An]>=this[nn]&&!i[S]){return i}}this[nn]=this[b][p][An];this[rn]=p;return this[b][p]}}i.exports=BalancedPool},479:(i,g,f)=>{const{kConstruct:E}=f(296);const{urlEquals:p,fieldValues:y}=f(3993);const{kEnumerableProperty:b,isDisturbed:S}=f(3440);const{kHeadersList:J}=f(6443);const{webidl:Z}=f(4222);const{Response:$,cloneResponse:z}=f(8676);const{Request:ee}=f(5194);const{kState:re,kHeaders:Pe,kGuard:$t,kRealm:tn}=f(9710);const{fetching:sn}=f(2315);const{urlIsHttpHttpsScheme:nn,createDeferredPromise:rn,readAllBytes:An}=f(5523);const on=f(2613);const{getGlobalDispatcher:an}=f(2581);class Cache{#e;constructor(){if(arguments[0]!==E){Z.illegalConstructor()}this.#e=arguments[1]}async match(i,g={}){Z.brandCheck(this,Cache);Z.argumentLengthCheck(arguments,1,{header:"Cache.match"});i=Z.converters.RequestInfo(i);g=Z.converters.CacheQueryOptions(g);const f=await this.matchAll(i,g);if(f.length===0){return}return f[0]}async matchAll(i=undefined,g={}){Z.brandCheck(this,Cache);if(i!==undefined)i=Z.converters.RequestInfo(i);g=Z.converters.CacheQueryOptions(g);let f=null;if(i!==undefined){if(i instanceof ee){f=i[re];if(f.method!=="GET"&&!g.ignoreMethod){return[]}}else if(typeof i==="string"){f=new ee(i)[re]}}const E=[];if(i===undefined){for(const i of this.#e){E.push(i[1])}}else{const i=this.#t(f,g);for(const g of i){E.push(g[1])}}const p=[];for(const i of E){const g=new $(i.body?.source??null);const f=g[re].body;g[re]=i;g[re].body=f;g[Pe][J]=i.headersList;g[Pe][$t]="immutable";p.push(g)}return Object.freeze(p)}async add(i){Z.brandCheck(this,Cache);Z.argumentLengthCheck(arguments,1,{header:"Cache.add"});i=Z.converters.RequestInfo(i);const g=[i];const f=this.addAll(g);return await f}async addAll(i){Z.brandCheck(this,Cache);Z.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});i=Z.converters["sequence<RequestInfo>"](i);const g=[];const f=[];for(const g of i){if(typeof g==="string"){continue}const i=g[re];if(!nn(i.url)||i.method!=="GET"){throw Z.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const E=[];for(const p of i){const i=new ee(p)[re];if(!nn(i.url)){throw Z.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}i.initiator="fetch";i.destination="subresource";f.push(i);const b=rn();E.push(sn({request:i,dispatcher:an(),processResponse(i){if(i.type==="error"||i.status===206||i.status<200||i.status>299){b.reject(Z.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(i.headersList.contains("vary")){const g=y(i.headersList.get("vary"));for(const i of g){if(i==="*"){b.reject(Z.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const i of E){i.abort()}return}}}},processResponseEndOfBody(i){if(i.aborted){b.reject(new DOMException("aborted","AbortError"));return}b.resolve(i)}}));g.push(b.promise)}const p=Promise.all(g);const b=await p;const S=[];let J=0;for(const i of b){const g={type:"put",request:f[J],response:i};S.push(g);J++}const $=rn();let z=null;try{this.#s(S)}catch(i){z=i}queueMicrotask((()=>{if(z===null){$.resolve(undefined)}else{$.reject(z)}}));return $.promise}async put(i,g){Z.brandCheck(this,Cache);Z.argumentLengthCheck(arguments,2,{header:"Cache.put"});i=Z.converters.RequestInfo(i);g=Z.converters.Response(g);let f=null;if(i instanceof ee){f=i[re]}else{f=new ee(i)[re]}if(!nn(f.url)||f.method!=="GET"){throw Z.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const E=g[re];if(E.status===206){throw Z.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(E.headersList.contains("vary")){const i=y(E.headersList.get("vary"));for(const g of i){if(g==="*"){throw Z.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(E.body&&(S(E.body.stream)||E.body.stream.locked)){throw Z.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const p=z(E);const b=rn();if(E.body!=null){const i=E.body.stream;const g=i.getReader();An(g).then(b.resolve,b.reject)}else{b.resolve(undefined)}const J=[];const $={type:"put",request:f,response:p};J.push($);const Pe=await b.promise;if(p.body!=null){p.body.source=Pe}const $t=rn();let tn=null;try{this.#s(J)}catch(i){tn=i}queueMicrotask((()=>{if(tn===null){$t.resolve()}else{$t.reject(tn)}}));return $t.promise}async delete(i,g={}){Z.brandCheck(this,Cache);Z.argumentLengthCheck(arguments,1,{header:"Cache.delete"});i=Z.converters.RequestInfo(i);g=Z.converters.CacheQueryOptions(g);let f=null;if(i instanceof ee){f=i[re];if(f.method!=="GET"&&!g.ignoreMethod){return false}}else{on(typeof i==="string");f=new ee(i)[re]}const E=[];const p={type:"delete",request:f,options:g};E.push(p);const y=rn();let b=null;let S;try{S=this.#s(E)}catch(i){b=i}queueMicrotask((()=>{if(b===null){y.resolve(!!S?.length)}else{y.reject(b)}}));return y.promise}async keys(i=undefined,g={}){Z.brandCheck(this,Cache);if(i!==undefined)i=Z.converters.RequestInfo(i);g=Z.converters.CacheQueryOptions(g);let f=null;if(i!==undefined){if(i instanceof ee){f=i[re];if(f.method!=="GET"&&!g.ignoreMethod){return[]}}else if(typeof i==="string"){f=new ee(i)[re]}}const E=rn();const p=[];if(i===undefined){for(const i of this.#e){p.push(i[0])}}else{const i=this.#t(f,g);for(const g of i){p.push(g[0])}}queueMicrotask((()=>{const i=[];for(const g of p){const f=new ee("https://a");f[re]=g;f[Pe][J]=g.headersList;f[Pe][$t]="immutable";f[tn]=g.client;i.push(f)}E.resolve(Object.freeze(i))}));return E.promise}#s(i){const g=this.#e;const f=[...g];const E=[];const p=[];try{for(const f of i){if(f.type!=="delete"&&f.type!=="put"){throw Z.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(f.type==="delete"&&f.response!=null){throw Z.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(f.request,f.options,E).length){throw new DOMException("???","InvalidStateError")}let i;if(f.type==="delete"){i=this.#t(f.request,f.options);if(i.length===0){return[]}for(const f of i){const i=g.indexOf(f);on(i!==-1);g.splice(i,1)}}else if(f.type==="put"){if(f.response==null){throw Z.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const p=f.request;if(!nn(p.url)){throw Z.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(p.method!=="GET"){throw Z.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(f.options!=null){throw Z.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}i=this.#t(f.request);for(const f of i){const i=g.indexOf(f);on(i!==-1);g.splice(i,1)}g.push([f.request,f.response]);E.push([f.request,f.response])}p.push([f.request,f.response])}return p}catch(i){this.#e.length=0;this.#e=f;throw i}}#t(i,g,f){const E=[];const p=f??this.#e;for(const f of p){const[p,y]=f;if(this.#n(i,p,y,g)){E.push(f)}}return E}#n(i,g,f=null,E){const b=new URL(i.url);const S=new URL(g.url);if(E?.ignoreSearch){S.search="";b.search=""}if(!p(b,S,true)){return false}if(f==null||E?.ignoreVary||!f.headersList.contains("vary")){return true}const J=y(f.headersList.get("vary"));for(const f of J){if(f==="*"){return false}const E=g.headersList.get(f);const p=i.headersList.get(f);if(E!==p){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:b,matchAll:b,add:b,addAll:b,put:b,delete:b,keys:b});const cn=[{key:"ignoreSearch",converter:Z.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:Z.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:Z.converters.boolean,defaultValue:false}];Z.converters.CacheQueryOptions=Z.dictionaryConverter(cn);Z.converters.MultiCacheQueryOptions=Z.dictionaryConverter([...cn,{key:"cacheName",converter:Z.converters.DOMString}]);Z.converters.Response=Z.interfaceConverter($);Z.converters["sequence<RequestInfo>"]=Z.sequenceConverter(Z.converters.RequestInfo);i.exports={Cache:Cache}},4738:(i,g,f)=>{const{kConstruct:E}=f(296);const{Cache:p}=f(479);const{webidl:y}=f(4222);const{kEnumerableProperty:b}=f(3440);class CacheStorage{#r=new Map;constructor(){if(arguments[0]!==E){y.illegalConstructor()}}async match(i,g={}){y.brandCheck(this,CacheStorage);y.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});i=y.converters.RequestInfo(i);g=y.converters.MultiCacheQueryOptions(g);if(g.cacheName!=null){if(this.#r.has(g.cacheName)){const f=this.#r.get(g.cacheName);const y=new p(E,f);return await y.match(i,g)}}else{for(const f of this.#r.values()){const y=new p(E,f);const b=await y.match(i,g);if(b!==undefined){return b}}}}async has(i){y.brandCheck(this,CacheStorage);y.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});i=y.converters.DOMString(i);return this.#r.has(i)}async open(i){y.brandCheck(this,CacheStorage);y.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});i=y.converters.DOMString(i);if(this.#r.has(i)){const g=this.#r.get(i);return new p(E,g)}const g=[];this.#r.set(i,g);return new p(E,g)}async delete(i){y.brandCheck(this,CacheStorage);y.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});i=y.converters.DOMString(i);return this.#r.delete(i)}async keys(){y.brandCheck(this,CacheStorage);const i=this.#r.keys();return[...i]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:b,has:b,open:b,delete:b,keys:b});i.exports={CacheStorage:CacheStorage}},296:(i,g,f)=>{i.exports={kConstruct:f(6443).kConstruct}},3993:(i,g,f)=>{const E=f(2613);const{URLSerializer:p}=f(4322);const{isValidHeaderName:y}=f(5523);function urlEquals(i,g,f=false){const E=p(i,f);const y=p(g,f);return E===y}function fieldValues(i){E(i!==null);const g=[];for(let f of i.split(",")){f=f.trim();if(!f.length){continue}else if(!y(f)){continue}g.push(f)}return g}i.exports={urlEquals:urlEquals,fieldValues:fieldValues}},6197:(i,g,f)=>{const E=f(2613);const p=f(9278);const y=f(8611);const{pipeline:b}=f(2203);const S=f(3440);const J=f(8804);const Z=f(4655);const $=f(1);const{RequestContentLengthMismatchError:z,ResponseContentLengthMismatchError:ee,InvalidArgumentError:re,RequestAbortedError:Pe,HeadersTimeoutError:$t,HeadersOverflowError:tn,SocketError:sn,InformationalError:nn,BodyTimeoutError:rn,HTTPParserError:An,ResponseExceededMaxSizeError:on,ClientDestroyedError:an}=f(8707);const cn=f(9136);const{kUrl:ln,kReset:un,kServerName:hn,kClient:dn,kBusy:gn,kParser:fn,kConnect:En,kBlocking:pn,kResuming:Cn,kRunning:In,kPending:Qn,kSize:Bn,kWriting:mn,kQueue:yn,kConnected:wn,kConnecting:bn,kNeedDrain:kn,kNoRef:Sn,kKeepAliveDefaultTimeout:Rn,kHostHeader:Dn,kPendingIdx:vn,kRunningIdx:Nn,kError:Fn,kPipelining:Tn,kSocket:_n,kKeepAliveTimeoutValue:Ln,kMaxHeadersSize:Mn,kKeepAliveMaxTimeout:xn,kKeepAliveTimeoutThreshold:Un,kHeadersTimeout:On,kBodyTimeout:Pn,kStrictContentLength:Yn,kConnector:Gn,kMaxRedirections:Hn,kMaxRequests:Jn,kCounter:Vn,kClose:Wn,kDestroy:qn,kDispatch:jn,kInterceptors:Zn,kLocalAddress:Kn,kMaxResponseSize:$n,kHTTPConnVersion:zn,kHost:Xn,kHTTP2Session:er,kHTTP2SessionState:tr,kHTTP2BuildRequest:sr,kHTTP2CopyHeaders:nr,kHTTP1BuildRequest:rr}=f(6443);let Ar;try{Ar=f(5675)}catch{Ar={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:ir,HTTP2_HEADER_METHOD:or,HTTP2_HEADER_PATH:ar,HTTP2_HEADER_SCHEME:cr,HTTP2_HEADER_CONTENT_LENGTH:lr,HTTP2_HEADER_EXPECT:ur,HTTP2_HEADER_STATUS:hr}}=Ar;let dr=false;const gr=Buffer[Symbol.species];const fr=Symbol("kClosedResolve");const Er={};try{const i=f(1637);Er.sendHeaders=i.channel("undici:client:sendHeaders");Er.beforeConnect=i.channel("undici:client:beforeConnect");Er.connectError=i.channel("undici:client:connectError");Er.connected=i.channel("undici:client:connected")}catch{Er.sendHeaders={hasSubscribers:false};Er.beforeConnect={hasSubscribers:false};Er.connectError={hasSubscribers:false};Er.connected={hasSubscribers:false}}class Client extends ${constructor(i,{interceptors:g,maxHeaderSize:f,headersTimeout:E,socketTimeout:b,requestTimeout:J,connectTimeout:Z,bodyTimeout:$,idleTimeout:z,keepAlive:ee,keepAliveTimeout:Pe,maxKeepAliveTimeout:$t,keepAliveMaxTimeout:tn,keepAliveTimeoutThreshold:sn,socketPath:nn,pipelining:rn,tls:An,strictContentLength:on,maxCachedSessions:an,maxRedirections:un,connect:dn,maxRequestsPerClient:gn,localAddress:fn,maxResponseSize:En,autoSelectFamily:pn,autoSelectFamilyAttemptTimeout:In,allowH2:Qn,maxConcurrentStreams:Bn}={}){super();if(ee!==undefined){throw new re("unsupported keepAlive, use pipelining=0 instead")}if(b!==undefined){throw new re("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(J!==undefined){throw new re("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(z!==undefined){throw new re("unsupported idleTimeout, use keepAliveTimeout instead")}if($t!==undefined){throw new re("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(f!=null&&!Number.isFinite(f)){throw new re("invalid maxHeaderSize")}if(nn!=null&&typeof nn!=="string"){throw new re("invalid socketPath")}if(Z!=null&&(!Number.isFinite(Z)||Z<0)){throw new re("invalid connectTimeout")}if(Pe!=null&&(!Number.isFinite(Pe)||Pe<=0)){throw new re("invalid keepAliveTimeout")}if(tn!=null&&(!Number.isFinite(tn)||tn<=0)){throw new re("invalid keepAliveMaxTimeout")}if(sn!=null&&!Number.isFinite(sn)){throw new re("invalid keepAliveTimeoutThreshold")}if(E!=null&&(!Number.isInteger(E)||E<0)){throw new re("headersTimeout must be a positive integer or zero")}if($!=null&&(!Number.isInteger($)||$<0)){throw new re("bodyTimeout must be a positive integer or zero")}if(dn!=null&&typeof dn!=="function"&&typeof dn!=="object"){throw new re("connect must be a function or an object")}if(un!=null&&(!Number.isInteger(un)||un<0)){throw new re("maxRedirections must be a positive number")}if(gn!=null&&(!Number.isInteger(gn)||gn<0)){throw new re("maxRequestsPerClient must be a positive number")}if(fn!=null&&(typeof fn!=="string"||p.isIP(fn)===0)){throw new re("localAddress must be valid string IP address")}if(En!=null&&(!Number.isInteger(En)||En<-1)){throw new re("maxResponseSize must be a positive number")}if(In!=null&&(!Number.isInteger(In)||In<-1)){throw new re("autoSelectFamilyAttemptTimeout must be a positive number")}if(Qn!=null&&typeof Qn!=="boolean"){throw new re("allowH2 must be a valid boolean value")}if(Bn!=null&&(typeof Bn!=="number"||Bn<1)){throw new re("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof dn!=="function"){dn=cn({...An,maxCachedSessions:an,allowH2:Qn,socketPath:nn,timeout:Z,...S.nodeHasAutoSelectFamily&&pn?{autoSelectFamily:pn,autoSelectFamilyAttemptTimeout:In}:undefined,...dn})}this[Zn]=g&&g.Client&&Array.isArray(g.Client)?g.Client:[Ir({maxRedirections:un})];this[ln]=S.parseOrigin(i);this[Gn]=dn;this[_n]=null;this[Tn]=rn!=null?rn:1;this[Mn]=f||y.maxHeaderSize;this[Rn]=Pe==null?4e3:Pe;this[xn]=tn==null?6e5:tn;this[Un]=sn==null?1e3:sn;this[Ln]=this[Rn];this[hn]=null;this[Kn]=fn!=null?fn:null;this[Cn]=0;this[kn]=0;this[Dn]=`host: ${this[ln].hostname}${this[ln].port?`:${this[ln].port}`:""}\r\n`;this[Pn]=$!=null?$:3e5;this[On]=E!=null?E:3e5;this[Yn]=on==null?true:on;this[Hn]=un;this[Jn]=gn;this[fr]=null;this[$n]=En>-1?En:-1;this[zn]="h1";this[er]=null;this[tr]=!Qn?null:{openStreams:0,maxConcurrentStreams:Bn!=null?Bn:100};this[Xn]=`${this[ln].hostname}${this[ln].port?`:${this[ln].port}`:""}`;this[yn]=[];this[Nn]=0;this[vn]=0}get pipelining(){return this[Tn]}set pipelining(i){this[Tn]=i;resume(this,true)}get[Qn](){return this[yn].length-this[vn]}get[In](){return this[vn]-this[Nn]}get[Bn](){return this[yn].length-this[Nn]}get[wn](){return!!this[_n]&&!this[bn]&&!this[_n].destroyed}get[gn](){const i=this[_n];return i&&(i[un]||i[mn]||i[pn])||this[Bn]>=(this[Tn]||1)||this[Qn]>0}[En](i){connect(this);this.once("connect",i)}[jn](i,g){const f=i.origin||this[ln].origin;const E=this[zn]==="h2"?Z[sr](f,i,g):Z[rr](f,i,g);this[yn].push(E);if(this[Cn]){}else if(S.bodyLength(E.body)==null&&S.isIterable(E.body)){this[Cn]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[Cn]&&this[kn]!==2&&this[gn]){this[kn]=2}return this[kn]<2}async[Wn](){return new Promise((i=>{if(!this[Bn]){i(null)}else{this[fr]=i}}))}async[qn](i){return new Promise((g=>{const f=this[yn].splice(this[vn]);for(let g=0;g<f.length;g++){const E=f[g];errorRequest(this,E,i)}const callback=()=>{if(this[fr]){this[fr]();this[fr]=null}g()};if(this[er]!=null){S.destroy(this[er],i);this[er]=null;this[tr]=null}if(!this[_n]){queueMicrotask(callback)}else{S.destroy(this[_n].on("close",callback),i)}resume(this)}))}}function onHttp2SessionError(i){E(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[_n][Fn]=i;onError(this[dn],i)}function onHttp2FrameError(i,g,f){const E=new nn(`HTTP/2: "frameError" received - type ${i}, code ${g}`);if(f===0){this[_n][Fn]=E;onError(this[dn],E)}}function onHttp2SessionEnd(){S.destroy(this,new sn("other side closed"));S.destroy(this[_n],new sn("other side closed"))}function onHTTP2GoAway(i){const g=this[dn];const f=new nn(`HTTP/2: "GOAWAY" frame received with code ${i}`);g[_n]=null;g[er]=null;if(g.destroyed){E(this[Qn]===0);const i=g[yn].splice(g[Nn]);for(let g=0;g<i.length;g++){const E=i[g];errorRequest(this,E,f)}}else if(g[In]>0){const i=g[yn][g[Nn]];g[yn][g[Nn]++]=null;errorRequest(g,i,f)}g[vn]=g[Nn];E(g[In]===0);g.emit("disconnect",g[ln],[g],f);resume(g)}const pr=f(2824);const Ir=f(4415);const Qr=Buffer.alloc(0);async function lazyllhttp(){const i=process.env.JEST_WORKER_ID?f(3870):undefined;let g;try{g=await WebAssembly.compile(Buffer.from(f(3434),"base64"))}catch(E){g=await WebAssembly.compile(Buffer.from(i||f(3870),"base64"))}return await WebAssembly.instantiate(g,{env:{wasm_on_url:(i,g,f)=>0,wasm_on_status:(i,g,f)=>{E.strictEqual(yr.ptr,i);const p=g-kr+wr.byteOffset;return yr.onStatus(new gr(wr.buffer,p,f))||0},wasm_on_message_begin:i=>{E.strictEqual(yr.ptr,i);return yr.onMessageBegin()||0},wasm_on_header_field:(i,g,f)=>{E.strictEqual(yr.ptr,i);const p=g-kr+wr.byteOffset;return yr.onHeaderField(new gr(wr.buffer,p,f))||0},wasm_on_header_value:(i,g,f)=>{E.strictEqual(yr.ptr,i);const p=g-kr+wr.byteOffset;return yr.onHeaderValue(new gr(wr.buffer,p,f))||0},wasm_on_headers_complete:(i,g,f,p)=>{E.strictEqual(yr.ptr,i);return yr.onHeadersComplete(g,Boolean(f),Boolean(p))||0},wasm_on_body:(i,g,f)=>{E.strictEqual(yr.ptr,i);const p=g-kr+wr.byteOffset;return yr.onBody(new gr(wr.buffer,p,f))||0},wasm_on_message_complete:i=>{E.strictEqual(yr.ptr,i);return yr.onMessageComplete()||0}}})}let Br=null;let mr=lazyllhttp();mr.catch();let yr=null;let wr=null;let br=0;let kr=null;const Sr=1;const Rr=2;const Dr=3;class Parser{constructor(i,g,{exports:f}){E(Number.isFinite(i[Mn])&&i[Mn]>0);this.llhttp=f;this.ptr=this.llhttp.llhttp_alloc(pr.TYPE.RESPONSE);this.client=i;this.socket=g;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=i[Mn];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=i[$n]}setTimeout(i,g){this.timeoutType=g;if(i!==this.timeoutValue){J.clearTimeout(this.timeout);if(i){this.timeout=J.setTimeout(onParserTimeout,i,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=i}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}E(this.ptr!=null);E(yr==null);this.llhttp.llhttp_resume(this.ptr);E(this.timeoutType===Rr);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||Qr);this.readMore()}readMore(){while(!this.paused&&this.ptr){const i=this.socket.read();if(i===null){break}this.execute(i)}}execute(i){E(this.ptr!=null);E(yr==null);E(!this.paused);const{socket:g,llhttp:f}=this;if(i.length>br){if(kr){f.free(kr)}br=Math.ceil(i.length/4096)*4096;kr=f.malloc(br)}new Uint8Array(f.memory.buffer,kr,br).set(i);try{let E;try{wr=i;yr=this;E=f.llhttp_execute(this.ptr,kr,i.length)}catch(i){throw i}finally{yr=null;wr=null}const p=f.llhttp_get_error_pos(this.ptr)-kr;if(E===pr.ERROR.PAUSED_UPGRADE){this.onUpgrade(i.slice(p))}else if(E===pr.ERROR.PAUSED){this.paused=true;g.unshift(i.slice(p))}else if(E!==pr.ERROR.OK){const g=f.llhttp_get_error_reason(this.ptr);let y="";if(g){const i=new Uint8Array(f.memory.buffer,g).indexOf(0);y="Response does not match the HTTP/1.1 protocol ("+Buffer.from(f.memory.buffer,g,i).toString()+")"}throw new An(y,pr.ERROR[E],i.slice(p))}}catch(i){S.destroy(g,i)}}destroy(){E(this.ptr!=null);E(yr==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;J.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(i){this.statusText=i.toString()}onMessageBegin(){const{socket:i,client:g}=this;if(i.destroyed){return-1}const f=g[yn][g[Nn]];if(!f){return-1}}onHeaderField(i){const g=this.headers.length;if((g&1)===0){this.headers.push(i)}else{this.headers[g-1]=Buffer.concat([this.headers[g-1],i])}this.trackHeader(i.length)}onHeaderValue(i){let g=this.headers.length;if((g&1)===1){this.headers.push(i);g+=1}else{this.headers[g-1]=Buffer.concat([this.headers[g-1],i])}const f=this.headers[g-2];if(f.length===10&&f.toString().toLowerCase()==="keep-alive"){this.keepAlive+=i.toString()}else if(f.length===10&&f.toString().toLowerCase()==="connection"){this.connection+=i.toString()}else if(f.length===14&&f.toString().toLowerCase()==="content-length"){this.contentLength+=i.toString()}this.trackHeader(i.length)}trackHeader(i){this.headersSize+=i;if(this.headersSize>=this.headersMaxSize){S.destroy(this.socket,new tn)}}onUpgrade(i){const{upgrade:g,client:f,socket:p,headers:y,statusCode:b}=this;E(g);const J=f[yn][f[Nn]];E(J);E(!p.destroyed);E(p===f[_n]);E(!this.paused);E(J.upgrade||J.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;E(this.headers.length%2===0);this.headers=[];this.headersSize=0;p.unshift(i);p[fn].destroy();p[fn]=null;p[dn]=null;p[Fn]=null;p.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);f[_n]=null;f[yn][f[Nn]++]=null;f.emit("disconnect",f[ln],[f],new nn("upgrade"));try{J.onUpgrade(b,y,p)}catch(i){S.destroy(p,i)}resume(f)}onHeadersComplete(i,g,f){const{client:p,socket:y,headers:b,statusText:J}=this;if(y.destroyed){return-1}const Z=p[yn][p[Nn]];if(!Z){return-1}E(!this.upgrade);E(this.statusCode<200);if(i===100){S.destroy(y,new sn("bad response",S.getSocketInfo(y)));return-1}if(g&&!Z.upgrade){S.destroy(y,new sn("bad upgrade",S.getSocketInfo(y)));return-1}E.strictEqual(this.timeoutType,Sr);this.statusCode=i;this.shouldKeepAlive=f||Z.method==="HEAD"&&!y[un]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const i=Z.bodyTimeout!=null?Z.bodyTimeout:p[Pn];this.setTimeout(i,Rr)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(Z.method==="CONNECT"){E(p[In]===1);this.upgrade=true;return 2}if(g){E(p[In]===1);this.upgrade=true;return 2}E(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&p[Tn]){const i=this.keepAlive?S.parseKeepAliveTimeout(this.keepAlive):null;if(i!=null){const g=Math.min(i-p[Un],p[xn]);if(g<=0){y[un]=true}else{p[Ln]=g}}else{p[Ln]=p[Rn]}}else{y[un]=true}const $=Z.onHeaders(i,b,this.resume,J)===false;if(Z.aborted){return-1}if(Z.method==="HEAD"){return 1}if(i<200){return 1}if(y[pn]){y[pn]=false;resume(p)}return $?pr.ERROR.PAUSED:0}onBody(i){const{client:g,socket:f,statusCode:p,maxResponseSize:y}=this;if(f.destroyed){return-1}const b=g[yn][g[Nn]];E(b);E.strictEqual(this.timeoutType,Rr);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}E(p>=200);if(y>-1&&this.bytesRead+i.length>y){S.destroy(f,new on);return-1}this.bytesRead+=i.length;if(b.onData(i)===false){return pr.ERROR.PAUSED}}onMessageComplete(){const{client:i,socket:g,statusCode:f,upgrade:p,headers:y,contentLength:b,bytesRead:J,shouldKeepAlive:Z}=this;if(g.destroyed&&(!f||Z)){return-1}if(p){return}const $=i[yn][i[Nn]];E($);E(f>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";E(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(f<200){return}if($.method!=="HEAD"&&b&&J!==parseInt(b,10)){S.destroy(g,new ee);return-1}$.onComplete(y);i[yn][i[Nn]++]=null;if(g[mn]){E.strictEqual(i[In],0);S.destroy(g,new nn("reset"));return pr.ERROR.PAUSED}else if(!Z){S.destroy(g,new nn("reset"));return pr.ERROR.PAUSED}else if(g[un]&&i[In]===0){S.destroy(g,new nn("reset"));return pr.ERROR.PAUSED}else if(i[Tn]===1){setImmediate(resume,i)}else{resume(i)}}}function onParserTimeout(i){const{socket:g,timeoutType:f,client:p}=i;if(f===Sr){if(!g[mn]||g.writableNeedDrain||p[In]>1){E(!i.paused,"cannot be paused while waiting for headers");S.destroy(g,new $t)}}else if(f===Rr){if(!i.paused){S.destroy(g,new rn)}}else if(f===Dr){E(p[In]===0&&p[Ln]);S.destroy(g,new nn("socket idle timeout"))}}function onSocketReadable(){const{[fn]:i}=this;if(i){i.readMore()}}function onSocketError(i){const{[dn]:g,[fn]:f}=this;E(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(g[zn]!=="h2"){if(i.code==="ECONNRESET"&&f.statusCode&&!f.shouldKeepAlive){f.onMessageComplete();return}}this[Fn]=i;onError(this[dn],i)}function onError(i,g){if(i[In]===0&&g.code!=="UND_ERR_INFO"&&g.code!=="UND_ERR_SOCKET"){E(i[vn]===i[Nn]);const f=i[yn].splice(i[Nn]);for(let E=0;E<f.length;E++){const p=f[E];errorRequest(i,p,g)}E(i[Bn]===0)}}function onSocketEnd(){const{[fn]:i,[dn]:g}=this;if(g[zn]!=="h2"){if(i.statusCode&&!i.shouldKeepAlive){i.onMessageComplete();return}}S.destroy(this,new sn("other side closed",S.getSocketInfo(this)))}function onSocketClose(){const{[dn]:i,[fn]:g}=this;if(i[zn]==="h1"&&g){if(!this[Fn]&&g.statusCode&&!g.shouldKeepAlive){g.onMessageComplete()}this[fn].destroy();this[fn]=null}const f=this[Fn]||new sn("closed",S.getSocketInfo(this));i[_n]=null;if(i.destroyed){E(i[Qn]===0);const g=i[yn].splice(i[Nn]);for(let E=0;E<g.length;E++){const p=g[E];errorRequest(i,p,f)}}else if(i[In]>0&&f.code!=="UND_ERR_INFO"){const g=i[yn][i[Nn]];i[yn][i[Nn]++]=null;errorRequest(i,g,f)}i[vn]=i[Nn];E(i[In]===0);i.emit("disconnect",i[ln],[i],f);resume(i)}async function connect(i){E(!i[bn]);E(!i[_n]);let{host:g,hostname:f,protocol:y,port:b}=i[ln];if(f[0]==="["){const i=f.indexOf("]");E(i!==-1);const g=f.substring(1,i);E(p.isIP(g));f=g}i[bn]=true;if(Er.beforeConnect.hasSubscribers){Er.beforeConnect.publish({connectParams:{host:g,hostname:f,protocol:y,port:b,servername:i[hn],localAddress:i[Kn]},connector:i[Gn]})}try{const p=await new Promise(((E,p)=>{i[Gn]({host:g,hostname:f,protocol:y,port:b,servername:i[hn],localAddress:i[Kn]},((i,g)=>{if(i){p(i)}else{E(g)}}))}));if(i.destroyed){S.destroy(p.on("error",(()=>{})),new an);return}i[bn]=false;E(p);const J=p.alpnProtocol==="h2";if(J){if(!dr){dr=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const g=Ar.connect(i[ln],{createConnection:()=>p,peerMaxConcurrentStreams:i[tr].maxConcurrentStreams});i[zn]="h2";g[dn]=i;g[_n]=p;g.on("error",onHttp2SessionError);g.on("frameError",onHttp2FrameError);g.on("end",onHttp2SessionEnd);g.on("goaway",onHTTP2GoAway);g.on("close",onSocketClose);g.unref();i[er]=g;p[er]=g}else{if(!Br){Br=await mr;mr=null}p[Sn]=false;p[mn]=false;p[un]=false;p[pn]=false;p[fn]=new Parser(i,p,Br)}p[Vn]=0;p[Jn]=i[Jn];p[dn]=i;p[Fn]=null;p.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);i[_n]=p;if(Er.connected.hasSubscribers){Er.connected.publish({connectParams:{host:g,hostname:f,protocol:y,port:b,servername:i[hn],localAddress:i[Kn]},connector:i[Gn],socket:p})}i.emit("connect",i[ln],[i])}catch(p){if(i.destroyed){return}i[bn]=false;if(Er.connectError.hasSubscribers){Er.connectError.publish({connectParams:{host:g,hostname:f,protocol:y,port:b,servername:i[hn],localAddress:i[Kn]},connector:i[Gn],error:p})}if(p.code==="ERR_TLS_CERT_ALTNAME_INVALID"){E(i[In]===0);while(i[Qn]>0&&i[yn][i[vn]].servername===i[hn]){const g=i[yn][i[vn]++];errorRequest(i,g,p)}}else{onError(i,p)}i.emit("connectionError",i[ln],[i],p)}resume(i)}function emitDrain(i){i[kn]=0;i.emit("drain",i[ln],[i])}function resume(i,g){if(i[Cn]===2){return}i[Cn]=2;_resume(i,g);i[Cn]=0;if(i[Nn]>256){i[yn].splice(0,i[Nn]);i[vn]-=i[Nn];i[Nn]=0}}function _resume(i,g){while(true){if(i.destroyed){E(i[Qn]===0);return}if(i[fr]&&!i[Bn]){i[fr]();i[fr]=null;return}const f=i[_n];if(f&&!f.destroyed&&f.alpnProtocol!=="h2"){if(i[Bn]===0){if(!f[Sn]&&f.unref){f.unref();f[Sn]=true}}else if(f[Sn]&&f.ref){f.ref();f[Sn]=false}if(i[Bn]===0){if(f[fn].timeoutType!==Dr){f[fn].setTimeout(i[Ln],Dr)}}else if(i[In]>0&&f[fn].statusCode<200){if(f[fn].timeoutType!==Sr){const g=i[yn][i[Nn]];const E=g.headersTimeout!=null?g.headersTimeout:i[On];f[fn].setTimeout(E,Sr)}}}if(i[gn]){i[kn]=2}else if(i[kn]===2){if(g){i[kn]=1;process.nextTick(emitDrain,i)}else{emitDrain(i)}continue}if(i[Qn]===0){return}if(i[In]>=(i[Tn]||1)){return}const p=i[yn][i[vn]];if(i[ln].protocol==="https:"&&i[hn]!==p.servername){if(i[In]>0){return}i[hn]=p.servername;if(f&&f.servername!==p.servername){S.destroy(f,new nn("servername changed"));return}}if(i[bn]){return}if(!f&&!i[er]){connect(i);return}if(f.destroyed||f[mn]||f[un]||f[pn]){return}if(i[In]>0&&!p.idempotent){return}if(i[In]>0&&(p.upgrade||p.method==="CONNECT")){return}if(i[In]>0&&S.bodyLength(p.body)!==0&&(S.isStream(p.body)||S.isAsyncIterable(p.body))){return}if(!p.aborted&&write(i,p)){i[vn]++}else{i[yn].splice(i[vn],1)}}}function shouldSendContentLength(i){return i!=="GET"&&i!=="HEAD"&&i!=="OPTIONS"&&i!=="TRACE"&&i!=="CONNECT"}function write(i,g){if(i[zn]==="h2"){writeH2(i,i[er],g);return}const{body:f,method:p,path:y,host:b,upgrade:J,headers:Z,blocking:$,reset:ee}=g;const re=p==="PUT"||p==="POST"||p==="PATCH";if(f&&typeof f.read==="function"){f.read(0)}const $t=S.bodyLength(f);let tn=$t;if(tn===null){tn=g.contentLength}if(tn===0&&!re){tn=null}if(shouldSendContentLength(p)&&tn>0&&g.contentLength!==null&&g.contentLength!==tn){if(i[Yn]){errorRequest(i,g,new z);return false}process.emitWarning(new z)}const sn=i[_n];try{g.onConnect((f=>{if(g.aborted||g.completed){return}errorRequest(i,g,f||new Pe);S.destroy(sn,new nn("aborted"))}))}catch(f){errorRequest(i,g,f)}if(g.aborted){return false}if(p==="HEAD"){sn[un]=true}if(J||p==="CONNECT"){sn[un]=true}if(ee!=null){sn[un]=ee}if(i[Jn]&&sn[Vn]++>=i[Jn]){sn[un]=true}if($){sn[pn]=true}let rn=`${p} ${y} HTTP/1.1\r\n`;if(typeof b==="string"){rn+=`host: ${b}\r\n`}else{rn+=i[Dn]}if(J){rn+=`connection: upgrade\r\nupgrade: ${J}\r\n`}else if(i[Tn]&&!sn[un]){rn+="connection: keep-alive\r\n"}else{rn+="connection: close\r\n"}if(Z){rn+=Z}if(Er.sendHeaders.hasSubscribers){Er.sendHeaders.publish({request:g,headers:rn,socket:sn})}if(!f||$t===0){if(tn===0){sn.write(`${rn}content-length: 0\r\n\r\n`,"latin1")}else{E(tn===null,"no body must not have content length");sn.write(`${rn}\r\n`,"latin1")}g.onRequestSent()}else if(S.isBuffer(f)){E(tn===f.byteLength,"buffer body must have content length");sn.cork();sn.write(`${rn}content-length: ${tn}\r\n\r\n`,"latin1");sn.write(f);sn.uncork();g.onBodySent(f);g.onRequestSent();if(!re){sn[un]=true}}else if(S.isBlobLike(f)){if(typeof f.stream==="function"){writeIterable({body:f.stream(),client:i,request:g,socket:sn,contentLength:tn,header:rn,expectsPayload:re})}else{writeBlob({body:f,client:i,request:g,socket:sn,contentLength:tn,header:rn,expectsPayload:re})}}else if(S.isStream(f)){writeStream({body:f,client:i,request:g,socket:sn,contentLength:tn,header:rn,expectsPayload:re})}else if(S.isIterable(f)){writeIterable({body:f,client:i,request:g,socket:sn,contentLength:tn,header:rn,expectsPayload:re})}else{E(false)}return true}function writeH2(i,g,f){const{body:p,method:y,path:b,host:J,upgrade:$,expectContinue:ee,signal:re,headers:$t}=f;let tn;if(typeof $t==="string")tn=Z[nr]($t.trim());else tn=$t;if($){errorRequest(i,f,new Error("Upgrade not supported for H2"));return false}try{f.onConnect((g=>{if(f.aborted||f.completed){return}errorRequest(i,f,g||new Pe)}))}catch(g){errorRequest(i,f,g)}if(f.aborted){return false}let sn;const rn=i[tr];tn[ir]=J||i[Xn];tn[or]=y;if(y==="CONNECT"){g.ref();sn=g.request(tn,{endStream:false,signal:re});if(sn.id&&!sn.pending){f.onUpgrade(null,null,sn);++rn.openStreams}else{sn.once("ready",(()=>{f.onUpgrade(null,null,sn);++rn.openStreams}))}sn.once("close",(()=>{rn.openStreams-=1;if(rn.openStreams===0)g.unref()}));return true}tn[ar]=b;tn[cr]="https";const An=y==="PUT"||y==="POST"||y==="PATCH";if(p&&typeof p.read==="function"){p.read(0)}let on=S.bodyLength(p);if(on==null){on=f.contentLength}if(on===0||!An){on=null}if(shouldSendContentLength(y)&&on>0&&f.contentLength!=null&&f.contentLength!==on){if(i[Yn]){errorRequest(i,f,new z);return false}process.emitWarning(new z)}if(on!=null){E(p,"no body must not have content length");tn[lr]=`${on}`}g.ref();const an=y==="GET"||y==="HEAD";if(ee){tn[ur]="100-continue";sn=g.request(tn,{endStream:an,signal:re});sn.once("continue",writeBodyH2)}else{sn=g.request(tn,{endStream:an,signal:re});writeBodyH2()}++rn.openStreams;sn.once("response",(i=>{const{[hr]:g,...E}=i;if(f.onHeaders(Number(g),E,sn.resume.bind(sn),"")===false){sn.pause()}}));sn.once("end",(()=>{f.onComplete([])}));sn.on("data",(i=>{if(f.onData(i)===false){sn.pause()}}));sn.once("close",(()=>{rn.openStreams-=1;if(rn.openStreams===0){g.unref()}}));sn.once("error",(function(g){if(i[er]&&!i[er].destroyed&&!this.closed&&!this.destroyed){rn.streams-=1;S.destroy(sn,g)}}));sn.once("frameError",((g,E)=>{const p=new nn(`HTTP/2: "frameError" received - type ${g}, code ${E}`);errorRequest(i,f,p);if(i[er]&&!i[er].destroyed&&!this.closed&&!this.destroyed){rn.streams-=1;S.destroy(sn,p)}}));return true;function writeBodyH2(){if(!p){f.onRequestSent()}else if(S.isBuffer(p)){E(on===p.byteLength,"buffer body must have content length");sn.cork();sn.write(p);sn.uncork();sn.end();f.onBodySent(p);f.onRequestSent()}else if(S.isBlobLike(p)){if(typeof p.stream==="function"){writeIterable({client:i,request:f,contentLength:on,h2stream:sn,expectsPayload:An,body:p.stream(),socket:i[_n],header:""})}else{writeBlob({body:p,client:i,request:f,contentLength:on,expectsPayload:An,h2stream:sn,header:"",socket:i[_n]})}}else if(S.isStream(p)){writeStream({body:p,client:i,request:f,contentLength:on,expectsPayload:An,socket:i[_n],h2stream:sn,header:""})}else if(S.isIterable(p)){writeIterable({body:p,client:i,request:f,contentLength:on,expectsPayload:An,header:"",h2stream:sn,socket:i[_n]})}else{E(false)}}}function writeStream({h2stream:i,body:g,client:f,request:p,socket:y,contentLength:J,header:Z,expectsPayload:$}){E(J!==0||f[In]===0,"stream body cannot be pipelined");if(f[zn]==="h2"){const re=b(g,i,(f=>{if(f){S.destroy(g,f);S.destroy(i,f)}else{p.onRequestSent()}}));re.on("data",onPipeData);re.once("end",(()=>{re.removeListener("data",onPipeData);S.destroy(re)}));function onPipeData(i){p.onBodySent(i)}return}let z=false;const ee=new AsyncWriter({socket:y,request:p,contentLength:J,client:f,expectsPayload:$,header:Z});const onData=function(i){if(z){return}try{if(!ee.write(i)&&this.pause){this.pause()}}catch(i){S.destroy(this,i)}};const onDrain=function(){if(z){return}if(g.resume){g.resume()}};const onAbort=function(){if(z){return}const i=new Pe;queueMicrotask((()=>onFinished(i)))};const onFinished=function(i){if(z){return}z=true;E(y.destroyed||y[mn]&&f[In]<=1);y.off("drain",onDrain).off("error",onFinished);g.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!i){try{ee.end()}catch(g){i=g}}ee.destroy(i);if(i&&(i.code!=="UND_ERR_INFO"||i.message!=="reset")){S.destroy(g,i)}else{S.destroy(g)}};g.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(g.resume){g.resume()}y.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:i,body:g,client:f,request:p,socket:y,contentLength:b,header:J,expectsPayload:Z}){E(b===g.size,"blob body must have content length");const $=f[zn]==="h2";try{if(b!=null&&b!==g.size){throw new z}const E=Buffer.from(await g.arrayBuffer());if($){i.cork();i.write(E);i.uncork()}else{y.cork();y.write(`${J}content-length: ${b}\r\n\r\n`,"latin1");y.write(E);y.uncork()}p.onBodySent(E);p.onRequestSent();if(!Z){y[un]=true}resume(f)}catch(g){S.destroy($?i:y,g)}}async function writeIterable({h2stream:i,body:g,client:f,request:p,socket:y,contentLength:b,header:S,expectsPayload:J}){E(b!==0||f[In]===0,"iterator body cannot be pipelined");let Z=null;function onDrain(){if(Z){const i=Z;Z=null;i()}}const waitForDrain=()=>new Promise(((i,g)=>{E(Z===null);if(y[Fn]){g(y[Fn])}else{Z=i}}));if(f[zn]==="h2"){i.on("close",onDrain).on("drain",onDrain);try{for await(const f of g){if(y[Fn]){throw y[Fn]}const g=i.write(f);p.onBodySent(f);if(!g){await waitForDrain()}}}catch(g){i.destroy(g)}finally{p.onRequestSent();i.end();i.off("close",onDrain).off("drain",onDrain)}return}y.on("close",onDrain).on("drain",onDrain);const $=new AsyncWriter({socket:y,request:p,contentLength:b,client:f,expectsPayload:J,header:S});try{for await(const i of g){if(y[Fn]){throw y[Fn]}if(!$.write(i)){await waitForDrain()}}$.end()}catch(i){$.destroy(i)}finally{y.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:i,request:g,contentLength:f,client:E,expectsPayload:p,header:y}){this.socket=i;this.request=g;this.contentLength=f;this.client=E;this.bytesWritten=0;this.expectsPayload=p;this.header=y;i[mn]=true}write(i){const{socket:g,request:f,contentLength:E,client:p,bytesWritten:y,expectsPayload:b,header:S}=this;if(g[Fn]){throw g[Fn]}if(g.destroyed){return false}const J=Buffer.byteLength(i);if(!J){return true}if(E!==null&&y+J>E){if(p[Yn]){throw new z}process.emitWarning(new z)}g.cork();if(y===0){if(!b){g[un]=true}if(E===null){g.write(`${S}transfer-encoding: chunked\r\n`,"latin1")}else{g.write(`${S}content-length: ${E}\r\n\r\n`,"latin1")}}if(E===null){g.write(`\r\n${J.toString(16)}\r\n`,"latin1")}this.bytesWritten+=J;const Z=g.write(i);g.uncork();f.onBodySent(i);if(!Z){if(g[fn].timeout&&g[fn].timeoutType===Sr){if(g[fn].timeout.refresh){g[fn].timeout.refresh()}}}return Z}end(){const{socket:i,contentLength:g,client:f,bytesWritten:E,expectsPayload:p,header:y,request:b}=this;b.onRequestSent();i[mn]=false;if(i[Fn]){throw i[Fn]}if(i.destroyed){return}if(E===0){if(p){i.write(`${y}content-length: 0\r\n\r\n`,"latin1")}else{i.write(`${y}\r\n`,"latin1")}}else if(g===null){i.write("\r\n0\r\n\r\n","latin1")}if(g!==null&&E!==g){if(f[Yn]){throw new z}else{process.emitWarning(new z)}}if(i[fn].timeout&&i[fn].timeoutType===Sr){if(i[fn].timeout.refresh){i[fn].timeout.refresh()}}resume(f)}destroy(i){const{socket:g,client:f}=this;g[mn]=false;if(i){E(f[In]<=1,"pipeline should only contain this request");S.destroy(g,i)}}}function errorRequest(i,g,f){try{g.onError(f);E(g.aborted)}catch(f){i.emit("error",f)}}i.exports=Client},3194:(i,g,f)=>{const{kConnected:E,kSize:p}=f(6443);class CompatWeakRef{constructor(i){this.value=i}deref(){return this.value[E]===0&&this.value[p]===0?undefined:this.value}}class CompatFinalizer{constructor(i){this.finalizer=i}register(i,g){if(i.on){i.on("disconnect",(()=>{if(i[E]===0&&i[p]===0){this.finalizer(g)}}))}}}i.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},9237:i=>{const g=1024;const f=4096;i.exports={maxAttributeValueSize:g,maxNameValuePairSize:f}},3168:(i,g,f)=>{const{parseSetCookie:E}=f(8915);const{stringify:p}=f(3834);const{webidl:y}=f(4222);const{Headers:b}=f(6349);function getCookies(i){y.argumentLengthCheck(arguments,1,{header:"getCookies"});y.brandCheck(i,b,{strict:false});const g=i.get("cookie");const f={};if(!g){return f}for(const i of g.split(";")){const[g,...E]=i.split("=");f[g.trim()]=E.join("=")}return f}function deleteCookie(i,g,f){y.argumentLengthCheck(arguments,2,{header:"deleteCookie"});y.brandCheck(i,b,{strict:false});g=y.converters.DOMString(g);f=y.converters.DeleteCookieAttributes(f);setCookie(i,{name:g,value:"",expires:new Date(0),...f})}function getSetCookies(i){y.argumentLengthCheck(arguments,1,{header:"getSetCookies"});y.brandCheck(i,b,{strict:false});const g=i.getSetCookie();if(!g){return[]}return g.map((i=>E(i)))}function setCookie(i,g){y.argumentLengthCheck(arguments,2,{header:"setCookie"});y.brandCheck(i,b,{strict:false});g=y.converters.Cookie(g);const f=p(g);if(f){i.append("Set-Cookie",p(g))}}y.converters.DeleteCookieAttributes=y.dictionaryConverter([{converter:y.nullableConverter(y.converters.DOMString),key:"path",defaultValue:null},{converter:y.nullableConverter(y.converters.DOMString),key:"domain",defaultValue:null}]);y.converters.Cookie=y.dictionaryConverter([{converter:y.converters.DOMString,key:"name"},{converter:y.converters.DOMString,key:"value"},{converter:y.nullableConverter((i=>{if(typeof i==="number"){return y.converters["unsigned long long"](i)}return new Date(i)})),key:"expires",defaultValue:null},{converter:y.nullableConverter(y.converters["long long"]),key:"maxAge",defaultValue:null},{converter:y.nullableConverter(y.converters.DOMString),key:"domain",defaultValue:null},{converter:y.nullableConverter(y.converters.DOMString),key:"path",defaultValue:null},{converter:y.nullableConverter(y.converters.boolean),key:"secure",defaultValue:null},{converter:y.nullableConverter(y.converters.boolean),key:"httpOnly",defaultValue:null},{converter:y.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:y.sequenceConverter(y.converters.DOMString),key:"unparsed",defaultValue:[]}]);i.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(i,g,f)=>{const{maxNameValuePairSize:E,maxAttributeValueSize:p}=f(9237);const{isCTLExcludingHtab:y}=f(3834);const{collectASequenceOfCodePointsFast:b}=f(4322);const S=f(2613);function parseSetCookie(i){if(y(i)){return null}let g="";let f="";let p="";let S="";if(i.includes(";")){const E={position:0};g=b(";",i,E);f=i.slice(E.position)}else{g=i}if(!g.includes("=")){S=g}else{const i={position:0};p=b("=",g,i);S=g.slice(i.position+1)}p=p.trim();S=S.trim();if(p.length+S.length>E){return null}return{name:p,value:S,...parseUnparsedAttributes(f)}}function parseUnparsedAttributes(i,g={}){if(i.length===0){return g}S(i[0]===";");i=i.slice(1);let f="";if(i.includes(";")){f=b(";",i,{position:0});i=i.slice(f.length)}else{f=i;i=""}let E="";let y="";if(f.includes("=")){const i={position:0};E=b("=",f,i);y=f.slice(i.position+1)}else{E=f}E=E.trim();y=y.trim();if(y.length>p){return parseUnparsedAttributes(i,g)}const J=E.toLowerCase();if(J==="expires"){const i=new Date(y);g.expires=i}else if(J==="max-age"){const f=y.charCodeAt(0);if((f<48||f>57)&&y[0]!=="-"){return parseUnparsedAttributes(i,g)}if(!/^\d+$/.test(y)){return parseUnparsedAttributes(i,g)}const E=Number(y);g.maxAge=E}else if(J==="domain"){let i=y;if(i[0]==="."){i=i.slice(1)}i=i.toLowerCase();g.domain=i}else if(J==="path"){let i="";if(y.length===0||y[0]!=="/"){i="/"}else{i=y}g.path=i}else if(J==="secure"){g.secure=true}else if(J==="httponly"){g.httpOnly=true}else if(J==="samesite"){let i="Default";const f=y.toLowerCase();if(f.includes("none")){i="None"}if(f.includes("strict")){i="Strict"}if(f.includes("lax")){i="Lax"}g.sameSite=i}else{g.unparsed??=[];g.unparsed.push(`${E}=${y}`)}return parseUnparsedAttributes(i,g)}i.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:i=>{function isCTLExcludingHtab(i){if(i.length===0){return false}for(const g of i){const i=g.charCodeAt(0);if(i>=0||i<=8||(i>=10||i<=31)||i===127){return false}}}function validateCookieName(i){for(const g of i){const i=g.charCodeAt(0);if(i<=32||i>127||g==="("||g===")"||g===">"||g==="<"||g==="@"||g===","||g===";"||g===":"||g==="\\"||g==='"'||g==="/"||g==="["||g==="]"||g==="?"||g==="="||g==="{"||g==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(i){for(const g of i){const i=g.charCodeAt(0);if(i<33||i===34||i===44||i===59||i===92||i>126){throw new Error("Invalid header value")}}}function validateCookiePath(i){for(const g of i){const i=g.charCodeAt(0);if(i<33||g===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(i){if(i.startsWith("-")||i.endsWith(".")||i.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(i){if(typeof i==="number"){i=new Date(i)}const g=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const E=g[i.getUTCDay()];const p=i.getUTCDate().toString().padStart(2,"0");const y=f[i.getUTCMonth()];const b=i.getUTCFullYear();const S=i.getUTCHours().toString().padStart(2,"0");const J=i.getUTCMinutes().toString().padStart(2,"0");const Z=i.getUTCSeconds().toString().padStart(2,"0");return`${E}, ${p} ${y} ${b} ${S}:${J}:${Z} GMT`}function validateCookieMaxAge(i){if(i<0){throw new Error("Invalid cookie max-age")}}function stringify(i){if(i.name.length===0){return null}validateCookieName(i.name);validateCookieValue(i.value);const g=[`${i.name}=${i.value}`];if(i.name.startsWith("__Secure-")){i.secure=true}if(i.name.startsWith("__Host-")){i.secure=true;i.domain=null;i.path="/"}if(i.secure){g.push("Secure")}if(i.httpOnly){g.push("HttpOnly")}if(typeof i.maxAge==="number"){validateCookieMaxAge(i.maxAge);g.push(`Max-Age=${i.maxAge}`)}if(i.domain){validateCookieDomain(i.domain);g.push(`Domain=${i.domain}`)}if(i.path){validateCookiePath(i.path);g.push(`Path=${i.path}`)}if(i.expires&&i.expires.toString()!=="Invalid Date"){g.push(`Expires=${toIMFDate(i.expires)}`)}if(i.sameSite){g.push(`SameSite=${i.sameSite}`)}for(const f of i.unparsed){if(!f.includes("=")){throw new Error("Invalid unparsed")}const[i,...E]=f.split("=");g.push(`${i.trim()}=${E.join("=")}`)}return g.join("; ")}i.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},9136:(i,g,f)=>{const E=f(9278);const p=f(2613);const y=f(3440);const{InvalidArgumentError:b,ConnectTimeoutError:S}=f(8707);let J;let Z;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){Z=class WeakSessionCache{constructor(i){this._maxCachedSessions=i;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((i=>{if(this._sessionCache.size<this._maxCachedSessions){return}const g=this._sessionCache.get(i);if(g!==undefined&&g.deref()===undefined){this._sessionCache.delete(i)}}))}get(i){const g=this._sessionCache.get(i);return g?g.deref():null}set(i,g){if(this._maxCachedSessions===0){return}this._sessionCache.set(i,new WeakRef(g));this._sessionRegistry.register(g,i)}}}else{Z=class SimpleSessionCache{constructor(i){this._maxCachedSessions=i;this._sessionCache=new Map}get(i){return this._sessionCache.get(i)}set(i,g){if(this._maxCachedSessions===0){return}if(this._sessionCache.size>=this._maxCachedSessions){const{value:i}=this._sessionCache.keys().next();this._sessionCache.delete(i)}this._sessionCache.set(i,g)}}}function buildConnector({allowH2:i,maxCachedSessions:g,socketPath:S,timeout:$,...z}){if(g!=null&&(!Number.isInteger(g)||g<0)){throw new b("maxCachedSessions must be a positive integer or zero")}const ee={path:S,...z};const re=new Z(g==null?100:g);$=$==null?1e4:$;i=i!=null?i:false;return function connect({hostname:g,host:b,protocol:S,port:Z,servername:z,localAddress:Pe,httpSocket:$t},tn){let sn;if(S==="https:"){if(!J){J=f(4756)}z=z||ee.servername||y.getServerName(b)||null;const E=z||g;const S=re.get(E)||null;p(E);sn=J.connect({highWaterMark:16384,...ee,servername:z,session:S,localAddress:Pe,ALPNProtocols:i?["http/1.1","h2"]:["http/1.1"],socket:$t,port:Z||443,host:g});sn.on("session",(function(i){re.set(E,i)}))}else{p(!$t,"httpSocket can only be sent on TLS update");sn=E.connect({highWaterMark:64*1024,...ee,localAddress:Pe,port:Z||80,host:g})}if(ee.keepAlive==null||ee.keepAlive){const i=ee.keepAliveInitialDelay===undefined?6e4:ee.keepAliveInitialDelay;sn.setKeepAlive(true,i)}const nn=setupTimeout((()=>onConnectTimeout(sn)),$);sn.setNoDelay(true).once(S==="https:"?"secureConnect":"connect",(function(){nn();if(tn){const i=tn;tn=null;i(null,this)}})).on("error",(function(i){nn();if(tn){const g=tn;tn=null;g(i)}}));return sn}}function setupTimeout(i,g){if(!g){return()=>{}}let f=null;let E=null;const p=setTimeout((()=>{f=setImmediate((()=>{if(process.platform==="win32"){E=setImmediate((()=>i()))}else{i()}}))}),g);return()=>{clearTimeout(p);clearImmediate(f);clearImmediate(E)}}function onConnectTimeout(i){y.destroy(i,new S)}i.exports=buildConnector},735:i=>{const g={};const f=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let i=0;i<f.length;++i){const E=f[i];const p=E.toLowerCase();g[E]=g[p]=p}Object.setPrototypeOf(g,null);i.exports={wellknownHeaderNames:f,headerNameLowerCasedRecord:g}},8707:i=>{class UndiciError extends Error{constructor(i){super(i);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=i||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=i||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=i||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=i||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(i,g,f,E){super(i);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=i||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=E;this.status=g;this.statusCode=g;this.headers=f}}class InvalidArgumentError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=i||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=i||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=i||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=i||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=i||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=i||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=i||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=i||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(i,g){super(i);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=i||"Socket error";this.code="UND_ERR_SOCKET";this.socket=g}}class NotSupportedError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=i||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=i||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(i,g,f){super(i);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=g?`HPE_${g}`:undefined;this.data=f?f.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(i){super(i);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=i||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(i,g,{headers:f,data:E}){super(i);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=i||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=g;this.data=E;this.headers=f}}i.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},4655:(i,g,f)=>{const{InvalidArgumentError:E,NotSupportedError:p}=f(8707);const y=f(2613);const{kHTTP2BuildRequest:b,kHTTP2CopyHeaders:S,kHTTP1BuildRequest:J}=f(6443);const Z=f(3440);const $=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const z=/[^\t\x20-\x7e\x80-\xff]/;const ee=/[^\u0021-\u00ff]/;const re=Symbol("handler");const Pe={};let $t;try{const i=f(1637);Pe.create=i.channel("undici:request:create");Pe.bodySent=i.channel("undici:request:bodySent");Pe.headers=i.channel("undici:request:headers");Pe.trailers=i.channel("undici:request:trailers");Pe.error=i.channel("undici:request:error")}catch{Pe.create={hasSubscribers:false};Pe.bodySent={hasSubscribers:false};Pe.headers={hasSubscribers:false};Pe.trailers={hasSubscribers:false};Pe.error={hasSubscribers:false}}class Request{constructor(i,{path:g,method:p,body:y,headers:b,query:S,idempotent:J,blocking:z,upgrade:tn,headersTimeout:sn,bodyTimeout:nn,reset:rn,throwOnError:An,expectContinue:on},an){if(typeof g!=="string"){throw new E("path must be a string")}else if(g[0]!=="/"&&!(g.startsWith("http://")||g.startsWith("https://"))&&p!=="CONNECT"){throw new E("path must be an absolute URL or start with a slash")}else if(ee.exec(g)!==null){throw new E("invalid request path")}if(typeof p!=="string"){throw new E("method must be a string")}else if($.exec(p)===null){throw new E("invalid request method")}if(tn&&typeof tn!=="string"){throw new E("upgrade must be a string")}if(sn!=null&&(!Number.isFinite(sn)||sn<0)){throw new E("invalid headersTimeout")}if(nn!=null&&(!Number.isFinite(nn)||nn<0)){throw new E("invalid bodyTimeout")}if(rn!=null&&typeof rn!=="boolean"){throw new E("invalid reset")}if(on!=null&&typeof on!=="boolean"){throw new E("invalid expectContinue")}this.headersTimeout=sn;this.bodyTimeout=nn;this.throwOnError=An===true;this.method=p;this.abort=null;if(y==null){this.body=null}else if(Z.isStream(y)){this.body=y;const i=this.body._readableState;if(!i||!i.autoDestroy){this.endHandler=function autoDestroy(){Z.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=i=>{if(this.abort){this.abort(i)}else{this.error=i}};this.body.on("error",this.errorHandler)}else if(Z.isBuffer(y)){this.body=y.byteLength?y:null}else if(ArrayBuffer.isView(y)){this.body=y.buffer.byteLength?Buffer.from(y.buffer,y.byteOffset,y.byteLength):null}else if(y instanceof ArrayBuffer){this.body=y.byteLength?Buffer.from(y):null}else if(typeof y==="string"){this.body=y.length?Buffer.from(y):null}else if(Z.isFormDataLike(y)||Z.isIterable(y)||Z.isBlobLike(y)){this.body=y}else{throw new E("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=tn||null;this.path=S?Z.buildURL(g,S):g;this.origin=i;this.idempotent=J==null?p==="HEAD"||p==="GET":J;this.blocking=z==null?false:z;this.reset=rn==null?null:rn;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=on!=null?on:false;if(Array.isArray(b)){if(b.length%2!==0){throw new E("headers array must be even")}for(let i=0;i<b.length;i+=2){processHeader(this,b[i],b[i+1])}}else if(b&&typeof b==="object"){const i=Object.keys(b);for(let g=0;g<i.length;g++){const f=i[g];processHeader(this,f,b[f])}}else if(b!=null){throw new E("headers must be an object or an array")}if(Z.isFormDataLike(this.body)){if(Z.nodeMajor<16||Z.nodeMajor===16&&Z.nodeMinor<8){throw new E("Form-Data bodies are only supported in node v16.8 and newer.")}if(!$t){$t=f(8923).extractBody}const[i,g]=$t(y);if(this.contentType==null){this.contentType=g;this.headers+=`content-type: ${g}\r\n`}this.body=i.stream;this.contentLength=i.length}else if(Z.isBlobLike(y)&&this.contentType==null&&y.type){this.contentType=y.type;this.headers+=`content-type: ${y.type}\r\n`}Z.validateHandler(an,p,tn);this.servername=Z.getServerName(this.host);this[re]=an;if(Pe.create.hasSubscribers){Pe.create.publish({request:this})}}onBodySent(i){if(this[re].onBodySent){try{return this[re].onBodySent(i)}catch(i){this.abort(i)}}}onRequestSent(){if(Pe.bodySent.hasSubscribers){Pe.bodySent.publish({request:this})}if(this[re].onRequestSent){try{return this[re].onRequestSent()}catch(i){this.abort(i)}}}onConnect(i){y(!this.aborted);y(!this.completed);if(this.error){i(this.error)}else{this.abort=i;return this[re].onConnect(i)}}onHeaders(i,g,f,E){y(!this.aborted);y(!this.completed);if(Pe.headers.hasSubscribers){Pe.headers.publish({request:this,response:{statusCode:i,headers:g,statusText:E}})}try{return this[re].onHeaders(i,g,f,E)}catch(i){this.abort(i)}}onData(i){y(!this.aborted);y(!this.completed);try{return this[re].onData(i)}catch(i){this.abort(i);return false}}onUpgrade(i,g,f){y(!this.aborted);y(!this.completed);return this[re].onUpgrade(i,g,f)}onComplete(i){this.onFinally();y(!this.aborted);this.completed=true;if(Pe.trailers.hasSubscribers){Pe.trailers.publish({request:this,trailers:i})}try{return this[re].onComplete(i)}catch(i){this.onError(i)}}onError(i){this.onFinally();if(Pe.error.hasSubscribers){Pe.error.publish({request:this,error:i})}if(this.aborted){return}this.aborted=true;return this[re].onError(i)}onFinally(){if(this.errorHandler){this.body.off("error",this.errorHandler);this.errorHandler=null}if(this.endHandler){this.body.off("end",this.endHandler);this.endHandler=null}}addHeader(i,g){processHeader(this,i,g);return this}static[J](i,g,f){return new Request(i,g,f)}static[b](i,g,f){const p=g.headers;g={...g,headers:null};const y=new Request(i,g,f);y.headers={};if(Array.isArray(p)){if(p.length%2!==0){throw new E("headers array must be even")}for(let i=0;i<p.length;i+=2){processHeader(y,p[i],p[i+1],true)}}else if(p&&typeof p==="object"){const i=Object.keys(p);for(let g=0;g<i.length;g++){const f=i[g];processHeader(y,f,p[f],true)}}else if(p!=null){throw new E("headers must be an object or an array")}return y}static[S](i){const g=i.split("\r\n");const f={};for(const i of g){const[g,E]=i.split(": ");if(E==null||E.length===0)continue;if(f[g])f[g]+=`,${E}`;else f[g]=E}return f}}function processHeaderValue(i,g,f){if(g&&typeof g==="object"){throw new E(`invalid ${i} header`)}g=g!=null?`${g}`:"";if(z.exec(g)!==null){throw new E(`invalid ${i} header`)}return f?g:`${i}: ${g}\r\n`}function processHeader(i,g,f,y=false){if(f&&(typeof f==="object"&&!Array.isArray(f))){throw new E(`invalid ${g} header`)}else if(f===undefined){return}if(i.host===null&&g.length===4&&g.toLowerCase()==="host"){if(z.exec(f)!==null){throw new E(`invalid ${g} header`)}i.host=f}else if(i.contentLength===null&&g.length===14&&g.toLowerCase()==="content-length"){i.contentLength=parseInt(f,10);if(!Number.isFinite(i.contentLength)){throw new E("invalid content-length header")}}else if(i.contentType===null&&g.length===12&&g.toLowerCase()==="content-type"){i.contentType=f;if(y)i.headers[g]=processHeaderValue(g,f,y);else i.headers+=processHeaderValue(g,f)}else if(g.length===17&&g.toLowerCase()==="transfer-encoding"){throw new E("invalid transfer-encoding header")}else if(g.length===10&&g.toLowerCase()==="connection"){const g=typeof f==="string"?f.toLowerCase():null;if(g!=="close"&&g!=="keep-alive"){throw new E("invalid connection header")}else if(g==="close"){i.reset=true}}else if(g.length===10&&g.toLowerCase()==="keep-alive"){throw new E("invalid keep-alive header")}else if(g.length===7&&g.toLowerCase()==="upgrade"){throw new E("invalid upgrade header")}else if(g.length===6&&g.toLowerCase()==="expect"){throw new p("expect header not supported")}else if($.exec(g)===null){throw new E("invalid header key")}else{if(Array.isArray(f)){for(let E=0;E<f.length;E++){if(y){if(i.headers[g])i.headers[g]+=`,${processHeaderValue(g,f[E],y)}`;else i.headers[g]=processHeaderValue(g,f[E],y)}else{i.headers+=processHeaderValue(g,f[E])}}}else{if(y)i.headers[g]=processHeaderValue(g,f,y);else i.headers+=processHeaderValue(g,f)}}}i.exports=Request},6443:i=>{i.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(i,g,f)=>{const E=f(2613);const{kDestroyed:p,kBodyUsed:y}=f(6443);const{IncomingMessage:b}=f(8611);const S=f(2203);const J=f(9278);const{InvalidArgumentError:Z}=f(8707);const{Blob:$}=f(181);const z=f(9023);const{stringify:ee}=f(3480);const{headerNameLowerCasedRecord:re}=f(735);const[Pe,$t]=process.versions.node.split(".").map((i=>Number(i)));function nop(){}function isStream(i){return i&&typeof i==="object"&&typeof i.pipe==="function"&&typeof i.on==="function"}function isBlobLike(i){return $&&i instanceof $||i&&typeof i==="object"&&(typeof i.stream==="function"||typeof i.arrayBuffer==="function")&&/^(Blob|File)$/.test(i[Symbol.toStringTag])}function buildURL(i,g){if(i.includes("?")||i.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const f=ee(g);if(f){i+="?"+f}return i}function parseURL(i){if(typeof i==="string"){i=new URL(i);if(!/^https?:/.test(i.origin||i.protocol)){throw new Z("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return i}if(!i||typeof i!=="object"){throw new Z("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(i.origin||i.protocol)){throw new Z("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(i instanceof URL)){if(i.port!=null&&i.port!==""&&!Number.isFinite(parseInt(i.port))){throw new Z("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(i.path!=null&&typeof i.path!=="string"){throw new Z("Invalid URL path: the path must be a string or null/undefined.")}if(i.pathname!=null&&typeof i.pathname!=="string"){throw new Z("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(i.hostname!=null&&typeof i.hostname!=="string"){throw new Z("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(i.origin!=null&&typeof i.origin!=="string"){throw new Z("Invalid URL origin: the origin must be a string or null/undefined.")}const g=i.port!=null?i.port:i.protocol==="https:"?443:80;let f=i.origin!=null?i.origin:`${i.protocol}//${i.hostname}:${g}`;let E=i.path!=null?i.path:`${i.pathname||""}${i.search||""}`;if(f.endsWith("/")){f=f.substring(0,f.length-1)}if(E&&!E.startsWith("/")){E=`/${E}`}i=new URL(f+E)}return i}function parseOrigin(i){i=parseURL(i);if(i.pathname!=="/"||i.search||i.hash){throw new Z("invalid url")}return i}function getHostname(i){if(i[0]==="["){const g=i.indexOf("]");E(g!==-1);return i.substring(1,g)}const g=i.indexOf(":");if(g===-1)return i;return i.substring(0,g)}function getServerName(i){if(!i){return null}E.strictEqual(typeof i,"string");const g=getHostname(i);if(J.isIP(g)){return""}return g}function deepClone(i){return JSON.parse(JSON.stringify(i))}function isAsyncIterable(i){return!!(i!=null&&typeof i[Symbol.asyncIterator]==="function")}function isIterable(i){return!!(i!=null&&(typeof i[Symbol.iterator]==="function"||typeof i[Symbol.asyncIterator]==="function"))}function bodyLength(i){if(i==null){return 0}else if(isStream(i)){const g=i._readableState;return g&&g.objectMode===false&&g.ended===true&&Number.isFinite(g.length)?g.length:null}else if(isBlobLike(i)){return i.size!=null?i.size:null}else if(isBuffer(i)){return i.byteLength}return null}function isDestroyed(i){return!i||!!(i.destroyed||i[p])}function isReadableAborted(i){const g=i&&i._readableState;return isDestroyed(i)&&g&&!g.endEmitted}function destroy(i,g){if(i==null||!isStream(i)||isDestroyed(i)){return}if(typeof i.destroy==="function"){if(Object.getPrototypeOf(i).constructor===b){i.socket=null}i.destroy(g)}else if(g){process.nextTick(((i,g)=>{i.emit("error",g)}),i,g)}if(i.destroyed!==true){i[p]=true}}const tn=/timeout=(\d+)/;function parseKeepAliveTimeout(i){const g=i.toString().match(tn);return g?parseInt(g[1],10)*1e3:null}function headerNameToString(i){return re[i]||i.toLowerCase()}function parseHeaders(i,g={}){if(!Array.isArray(i))return i;for(let f=0;f<i.length;f+=2){const E=i[f].toString().toLowerCase();let p=g[E];if(!p){if(Array.isArray(i[f+1])){g[E]=i[f+1].map((i=>i.toString("utf8")))}else{g[E]=i[f+1].toString("utf8")}}else{if(!Array.isArray(p)){p=[p];g[E]=p}p.push(i[f+1].toString("utf8"))}}if("content-length"in g&&"content-disposition"in g){g["content-disposition"]=Buffer.from(g["content-disposition"]).toString("latin1")}return g}function parseRawHeaders(i){const g=[];let f=false;let E=-1;for(let p=0;p<i.length;p+=2){const y=i[p+0].toString();const b=i[p+1].toString("utf8");if(y.length===14&&(y==="content-length"||y.toLowerCase()==="content-length")){g.push(y,b);f=true}else if(y.length===19&&(y==="content-disposition"||y.toLowerCase()==="content-disposition")){E=g.push(y,b)-1}else{g.push(y,b)}}if(f&&E!==-1){g[E]=Buffer.from(g[E]).toString("latin1")}return g}function isBuffer(i){return i instanceof Uint8Array||Buffer.isBuffer(i)}function validateHandler(i,g,f){if(!i||typeof i!=="object"){throw new Z("handler must be an object")}if(typeof i.onConnect!=="function"){throw new Z("invalid onConnect method")}if(typeof i.onError!=="function"){throw new Z("invalid onError method")}if(typeof i.onBodySent!=="function"&&i.onBodySent!==undefined){throw new Z("invalid onBodySent method")}if(f||g==="CONNECT"){if(typeof i.onUpgrade!=="function"){throw new Z("invalid onUpgrade method")}}else{if(typeof i.onHeaders!=="function"){throw new Z("invalid onHeaders method")}if(typeof i.onData!=="function"){throw new Z("invalid onData method")}if(typeof i.onComplete!=="function"){throw new Z("invalid onComplete method")}}}function isDisturbed(i){return!!(i&&(S.isDisturbed?S.isDisturbed(i)||i[y]:i[y]||i.readableDidRead||i._readableState&&i._readableState.dataEmitted||isReadableAborted(i)))}function isErrored(i){return!!(i&&(S.isErrored?S.isErrored(i):/state: 'errored'/.test(z.inspect(i))))}function isReadable(i){return!!(i&&(S.isReadable?S.isReadable(i):/state: 'readable'/.test(z.inspect(i))))}function getSocketInfo(i){return{localAddress:i.localAddress,localPort:i.localPort,remoteAddress:i.remoteAddress,remotePort:i.remotePort,remoteFamily:i.remoteFamily,timeout:i.timeout,bytesWritten:i.bytesWritten,bytesRead:i.bytesRead}}async function*convertIterableToBuffer(i){for await(const g of i){yield Buffer.isBuffer(g)?g:Buffer.from(g)}}let sn;function ReadableStreamFrom(i){if(!sn){sn=f(3774).ReadableStream}if(sn.from){return sn.from(convertIterableToBuffer(i))}let g;return new sn({async start(){g=i[Symbol.asyncIterator]()},async pull(i){const{done:f,value:E}=await g.next();if(f){queueMicrotask((()=>{i.close()}))}else{const g=Buffer.isBuffer(E)?E:Buffer.from(E);i.enqueue(new Uint8Array(g))}return i.desiredSize>0},async cancel(i){await g.return()}},0)}function isFormDataLike(i){return i&&typeof i==="object"&&typeof i.append==="function"&&typeof i.delete==="function"&&typeof i.get==="function"&&typeof i.getAll==="function"&&typeof i.has==="function"&&typeof i.set==="function"&&i[Symbol.toStringTag]==="FormData"}function throwIfAborted(i){if(!i){return}if(typeof i.throwIfAborted==="function"){i.throwIfAborted()}else{if(i.aborted){const i=new Error("The operation was aborted");i.name="AbortError";throw i}}}function addAbortListener(i,g){if("addEventListener"in i){i.addEventListener("abort",g,{once:true});return()=>i.removeEventListener("abort",g)}i.addListener("abort",g);return()=>i.removeListener("abort",g)}const nn=!!String.prototype.toWellFormed;function toUSVString(i){if(nn){return`${i}`.toWellFormed()}else if(z.toUSVString){return z.toUSVString(i)}return`${i}`}function parseRangeHeader(i){if(i==null||i==="")return{start:0,end:null,size:null};const g=i?i.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return g?{start:parseInt(g[1]),end:g[2]?parseInt(g[2]):null,size:g[3]?parseInt(g[3]):null}:null}const rn=Object.create(null);rn.enumerable=true;i.exports={kEnumerableProperty:rn,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:Pe,nodeMinor:$t,nodeHasAutoSelectFamily:Pe>18||Pe===18&&$t>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},1:(i,g,f)=>{const E=f(992);const{ClientDestroyedError:p,ClientClosedError:y,InvalidArgumentError:b}=f(8707);const{kDestroy:S,kClose:J,kDispatch:Z,kInterceptors:$}=f(6443);const z=Symbol("destroyed");const ee=Symbol("closed");const re=Symbol("onDestroyed");const Pe=Symbol("onClosed");const $t=Symbol("Intercepted Dispatch");class DispatcherBase extends E{constructor(){super();this[z]=false;this[re]=null;this[ee]=false;this[Pe]=[]}get destroyed(){return this[z]}get closed(){return this[ee]}get interceptors(){return this[$]}set interceptors(i){if(i){for(let g=i.length-1;g>=0;g--){const i=this[$][g];if(typeof i!=="function"){throw new b("interceptor must be an function")}}}this[$]=i}close(i){if(i===undefined){return new Promise(((i,g)=>{this.close(((f,E)=>f?g(f):i(E)))}))}if(typeof i!=="function"){throw new b("invalid callback")}if(this[z]){queueMicrotask((()=>i(new p,null)));return}if(this[ee]){if(this[Pe]){this[Pe].push(i)}else{queueMicrotask((()=>i(null,null)))}return}this[ee]=true;this[Pe].push(i);const onClosed=()=>{const i=this[Pe];this[Pe]=null;for(let g=0;g<i.length;g++){i[g](null,null)}};this[J]().then((()=>this.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(i,g){if(typeof i==="function"){g=i;i=null}if(g===undefined){return new Promise(((g,f)=>{this.destroy(i,((i,E)=>i?f(i):g(E)))}))}if(typeof g!=="function"){throw new b("invalid callback")}if(this[z]){if(this[re]){this[re].push(g)}else{queueMicrotask((()=>g(null,null)))}return}if(!i){i=new p}this[z]=true;this[re]=this[re]||[];this[re].push(g);const onDestroyed=()=>{const i=this[re];this[re]=null;for(let g=0;g<i.length;g++){i[g](null,null)}};this[S](i).then((()=>{queueMicrotask(onDestroyed)}))}[$t](i,g){if(!this[$]||this[$].length===0){this[$t]=this[Z];return this[Z](i,g)}let f=this[Z].bind(this);for(let i=this[$].length-1;i>=0;i--){f=this[$][i](f)}this[$t]=f;return f(i,g)}dispatch(i,g){if(!g||typeof g!=="object"){throw new b("handler must be an object")}try{if(!i||typeof i!=="object"){throw new b("opts must be an object.")}if(this[z]||this[re]){throw new p}if(this[ee]){throw new y}return this[$t](i,g)}catch(i){if(typeof g.onError!=="function"){throw new b("invalid onError method")}g.onError(i);return false}}}i.exports=DispatcherBase},992:(i,g,f)=>{const E=f(4434);class Dispatcher extends E{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}i.exports=Dispatcher},8923:(i,g,f)=>{const E=f(9581);const p=f(3440);const{ReadableStreamFrom:y,isBlobLike:b,isReadableStreamLike:S,readableStreamClose:J,createDeferredPromise:Z,fullyReadBody:$}=f(5523);const{FormData:z}=f(3073);const{kState:ee}=f(9710);const{webidl:re}=f(4222);const{DOMException:Pe,structuredClone:$t}=f(7326);const{Blob:tn,File:sn}=f(181);const{kBodyUsed:nn}=f(6443);const rn=f(2613);const{isErrored:An}=f(3440);const{isUint8Array:on,isArrayBuffer:an}=f(8253);const{File:cn}=f(3041);const{parseMIMEType:ln,serializeAMimeType:un}=f(4322);let hn;try{const i=f(7598);hn=g=>i.randomInt(0,g)}catch{hn=i=>Math.floor(Math.random(i))}let dn=globalThis.ReadableStream;const gn=sn??cn;const fn=new TextEncoder;const En=new TextDecoder;function extractBody(i,g=false){if(!dn){dn=f(3774).ReadableStream}let E=null;if(i instanceof dn){E=i}else if(b(i)){E=i.stream()}else{E=new dn({async pull(i){i.enqueue(typeof $==="string"?fn.encode($):$);queueMicrotask((()=>J(i)))},start(){},type:undefined})}rn(S(E));let Z=null;let $=null;let z=null;let ee=null;if(typeof i==="string"){$=i;ee="text/plain;charset=UTF-8"}else if(i instanceof URLSearchParams){$=i.toString();ee="application/x-www-form-urlencoded;charset=UTF-8"}else if(an(i)){$=new Uint8Array(i.slice())}else if(ArrayBuffer.isView(i)){$=new Uint8Array(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength))}else if(p.isFormDataLike(i)){const g=`----formdata-undici-0${`${hn(1e11)}`.padStart(11,"0")}`;const f=`--${g}\r\nContent-Disposition: form-data`
16
16
  /*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=i=>i.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=i=>i.replace(/\r?\n|\r/g,"\r\n");const E=[];const p=new Uint8Array([13,10]);z=0;let y=false;for(const[g,b]of i){if(typeof b==="string"){const i=fn.encode(f+`; name="${escape(normalizeLinefeeds(g))}"`+`\r\n\r\n${normalizeLinefeeds(b)}\r\n`);E.push(i);z+=i.byteLength}else{const i=fn.encode(`${f}; name="${escape(normalizeLinefeeds(g))}"`+(b.name?`; filename="${escape(b.name)}"`:"")+"\r\n"+`Content-Type: ${b.type||"application/octet-stream"}\r\n\r\n`);E.push(i,b,p);if(typeof b.size==="number"){z+=i.byteLength+b.size+p.byteLength}else{y=true}}}const b=fn.encode(`--${g}--`);E.push(b);z+=b.byteLength;if(y){z=null}$=i;Z=async function*(){for(const i of E){if(i.stream){yield*i.stream()}else{yield i}}};ee="multipart/form-data; boundary="+g}else if(b(i)){$=i;z=i.size;if(i.type){ee=i.type}}else if(typeof i[Symbol.asyncIterator]==="function"){if(g){throw new TypeError("keepalive")}if(p.isDisturbed(i)||i.locked){throw new TypeError("Response body object should not be disturbed or locked")}E=i instanceof dn?i:y(i)}if(typeof $==="string"||p.isBuffer($)){z=Buffer.byteLength($)}if(Z!=null){let g;E=new dn({async start(){g=Z(i)[Symbol.asyncIterator]()},async pull(i){const{value:f,done:p}=await g.next();if(p){queueMicrotask((()=>{i.close()}))}else{if(!An(E)){i.enqueue(new Uint8Array(f))}}return i.desiredSize>0},async cancel(i){await g.return()},type:undefined})}const re={stream:E,source:$,length:z};return[re,ee]}function safelyExtractBody(i,g=false){if(!dn){dn=f(3774).ReadableStream}if(i instanceof dn){rn(!p.isDisturbed(i),"The body has already been consumed.");rn(!i.locked,"The stream is locked.")}return extractBody(i,g)}function cloneBody(i){const[g,f]=i.stream.tee();const E=$t(f,{transfer:[f]});const[,p]=E.tee();i.stream=g;return{stream:p,length:i.length,source:i.source}}async function*consumeBody(i){if(i){if(on(i)){yield i}else{const g=i.stream;if(p.isDisturbed(g)){throw new TypeError("The body has already been consumed.")}if(g.locked){throw new TypeError("The stream is locked.")}g[nn]=true;yield*g}}}function throwIfAborted(i){if(i.aborted){throw new Pe("The operation was aborted.","AbortError")}}function bodyMixinMethods(i){const g={blob(){return specConsumeBody(this,(i=>{let g=bodyMimeType(this);if(g==="failure"){g=""}else if(g){g=un(g)}return new tn([i],{type:g})}),i)},arrayBuffer(){return specConsumeBody(this,(i=>new Uint8Array(i).buffer),i)},text(){return specConsumeBody(this,utf8DecodeBytes,i)},json(){return specConsumeBody(this,parseJSONFromBytes,i)},async formData(){re.brandCheck(this,i);throwIfAborted(this[ee]);const g=this.headers.get("Content-Type");if(/multipart\/form-data/.test(g)){const i={};for(const[g,f]of this.headers)i[g.toLowerCase()]=f;const g=new z;let f;try{f=new E({headers:i,preservePath:true})}catch(i){throw new Pe(`${i}`,"AbortError")}f.on("field",((i,f)=>{g.append(i,f)}));f.on("file",((i,f,E,p,y)=>{const b=[];if(p==="base64"||p.toLowerCase()==="base64"){let p="";f.on("data",(i=>{p+=i.toString().replace(/[\r\n]/gm,"");const g=p.length-p.length%4;b.push(Buffer.from(p.slice(0,g),"base64"));p=p.slice(g)}));f.on("end",(()=>{b.push(Buffer.from(p,"base64"));g.append(i,new gn(b,E,{type:y}))}))}else{f.on("data",(i=>{b.push(i)}));f.on("end",(()=>{g.append(i,new gn(b,E,{type:y}))}))}}));const p=new Promise(((i,g)=>{f.on("finish",i);f.on("error",(i=>g(new TypeError(i))))}));if(this.body!==null)for await(const i of consumeBody(this[ee].body))f.write(i);f.end();await p;return g}else if(/application\/x-www-form-urlencoded/.test(g)){let i;try{let g="";const f=new TextDecoder("utf-8",{ignoreBOM:true});for await(const i of consumeBody(this[ee].body)){if(!on(i)){throw new TypeError("Expected Uint8Array chunk")}g+=f.decode(i,{stream:true})}g+=f.decode();i=new URLSearchParams(g)}catch(i){throw Object.assign(new TypeError,{cause:i})}const g=new z;for(const[f,E]of i){g.append(f,E)}return g}else{await Promise.resolve();throwIfAborted(this[ee]);throw re.errors.exception({header:`${i.name}.formData`,message:"Could not parse content as FormData."})}}};return g}function mixinBody(i){Object.assign(i.prototype,bodyMixinMethods(i))}async function specConsumeBody(i,g,f){re.brandCheck(i,f);throwIfAborted(i[ee]);if(bodyUnusable(i[ee].body)){throw new TypeError("Body is unusable")}const E=Z();const errorSteps=i=>E.reject(i);const successSteps=i=>{try{E.resolve(g(i))}catch(i){errorSteps(i)}};if(i[ee].body==null){successSteps(new Uint8Array);return E.promise}await $(i[ee].body,successSteps,errorSteps);return E.promise}function bodyUnusable(i){return i!=null&&(i.stream.locked||p.isDisturbed(i.stream))}function utf8DecodeBytes(i){if(i.length===0){return""}if(i[0]===239&&i[1]===187&&i[2]===191){i=i.subarray(3)}const g=En.decode(i);return g}function parseJSONFromBytes(i){return JSON.parse(utf8DecodeBytes(i))}function bodyMimeType(i){const{headersList:g}=i[ee];const f=g.get("content-type");if(f===null){return"failure"}return ln(f)}i.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},7326:(i,g,f)=>{const{MessageChannel:E,receiveMessageOnPort:p}=f(8167);const y=["GET","HEAD","POST"];const b=new Set(y);const S=[101,204,205,304];const J=[301,302,303,307,308];const Z=new Set(J);const $=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const z=new Set($);const ee=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const re=new Set(ee);const Pe=["follow","manual","error"];const $t=["GET","HEAD","OPTIONS","TRACE"];const tn=new Set($t);const sn=["navigate","same-origin","no-cors","cors"];const nn=["omit","same-origin","include"];const rn=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const An=["content-encoding","content-language","content-location","content-type","content-length"];const on=["half"];const an=["CONNECT","TRACE","TRACK"];const cn=new Set(an);const ln=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const un=new Set(ln);const hn=globalThis.DOMException??(()=>{try{atob("~")}catch(i){return Object.getPrototypeOf(i).constructor}})();let dn;const gn=globalThis.structuredClone??function structuredClone(i,g=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!dn){dn=new E}dn.port1.unref();dn.port2.unref();dn.port1.postMessage(i,g?.transfer);return p(dn.port2).message};i.exports={DOMException:hn,structuredClone:gn,subresource:ln,forbiddenMethods:an,requestBodyHeader:An,referrerPolicy:ee,requestRedirect:Pe,requestMode:sn,requestCredentials:nn,requestCache:rn,redirectStatus:J,corsSafeListedMethods:y,nullBodyStatus:S,safeMethods:$t,badPorts:$,requestDuplex:on,subresourceSet:un,badPortsSet:z,redirectStatusSet:Z,corsSafeListedMethodsSet:b,safeMethodsSet:tn,forbiddenMethodsSet:cn,referrerPolicySet:re}},4322:(i,g,f)=>{const E=f(2613);const{atob:p}=f(181);const{isomorphicDecode:y}=f(5523);const b=new TextEncoder;const S=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const J=/(\u000A|\u000D|\u0009|\u0020)/;const Z=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(i){E(i.protocol==="data:");let g=URLSerializer(i,true);g=g.slice(5);const f={position:0};let p=collectASequenceOfCodePointsFast(",",g,f);const b=p.length;p=removeASCIIWhitespace(p,true,true);if(f.position>=g.length){return"failure"}f.position++;const S=g.slice(b+1);let J=stringPercentDecode(S);if(/;(\u0020){0,}base64$/i.test(p)){const i=y(J);J=forgivingBase64(i);if(J==="failure"){return"failure"}p=p.slice(0,-6);p=p.replace(/(\u0020)+$/,"");p=p.slice(0,-1)}if(p.startsWith(";")){p="text/plain"+p}let Z=parseMIMEType(p);if(Z==="failure"){Z=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:Z,body:J}}function URLSerializer(i,g=false){if(!g){return i.href}const f=i.href;const E=i.hash.length;return E===0?f:f.substring(0,f.length-E)}function collectASequenceOfCodePoints(i,g,f){let E="";while(f.position<g.length&&i(g[f.position])){E+=g[f.position];f.position++}return E}function collectASequenceOfCodePointsFast(i,g,f){const E=g.indexOf(i,f.position);const p=f.position;if(E===-1){f.position=g.length;return g.slice(p)}f.position=E;return g.slice(p,f.position)}function stringPercentDecode(i){const g=b.encode(i);return percentDecode(g)}function percentDecode(i){const g=[];for(let f=0;f<i.length;f++){const E=i[f];if(E!==37){g.push(E)}else if(E===37&&!/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(i[f+1],i[f+2]))){g.push(37)}else{const E=String.fromCharCode(i[f+1],i[f+2]);const p=Number.parseInt(E,16);g.push(p);f+=2}}return Uint8Array.from(g)}function parseMIMEType(i){i=removeHTTPWhitespace(i,true,true);const g={position:0};const f=collectASequenceOfCodePointsFast("/",i,g);if(f.length===0||!S.test(f)){return"failure"}if(g.position>i.length){return"failure"}g.position++;let E=collectASequenceOfCodePointsFast(";",i,g);E=removeHTTPWhitespace(E,false,true);if(E.length===0||!S.test(E)){return"failure"}const p=f.toLowerCase();const y=E.toLowerCase();const b={type:p,subtype:y,parameters:new Map,essence:`${p}/${y}`};while(g.position<i.length){g.position++;collectASequenceOfCodePoints((i=>J.test(i)),i,g);let f=collectASequenceOfCodePoints((i=>i!==";"&&i!=="="),i,g);f=f.toLowerCase();if(g.position<i.length){if(i[g.position]===";"){continue}g.position++}if(g.position>i.length){break}let E=null;if(i[g.position]==='"'){E=collectAnHTTPQuotedString(i,g,true);collectASequenceOfCodePointsFast(";",i,g)}else{E=collectASequenceOfCodePointsFast(";",i,g);E=removeHTTPWhitespace(E,false,true);if(E.length===0){continue}}if(f.length!==0&&S.test(f)&&(E.length===0||Z.test(E))&&!b.parameters.has(f)){b.parameters.set(f,E)}}return b}function forgivingBase64(i){i=i.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(i.length%4===0){i=i.replace(/=?=$/,"")}if(i.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(i)){return"failure"}const g=p(i);const f=new Uint8Array(g.length);for(let i=0;i<g.length;i++){f[i]=g.charCodeAt(i)}return f}function collectAnHTTPQuotedString(i,g,f){const p=g.position;let y="";E(i[g.position]==='"');g.position++;while(true){y+=collectASequenceOfCodePoints((i=>i!=='"'&&i!=="\\"),i,g);if(g.position>=i.length){break}const f=i[g.position];g.position++;if(f==="\\"){if(g.position>=i.length){y+="\\";break}y+=i[g.position];g.position++}else{E(f==='"');break}}if(f){return y}return i.slice(p,g.position)}function serializeAMimeType(i){E(i!=="failure");const{parameters:g,essence:f}=i;let p=f;for(let[i,f]of g.entries()){p+=";";p+=i;p+="=";if(!S.test(f)){f=f.replace(/(\\|")/g,"\\$1");f='"'+f;f+='"'}p+=f}return p}function isHTTPWhiteSpace(i){return i==="\r"||i==="\n"||i==="\t"||i===" "}function removeHTTPWhitespace(i,g=true,f=true){let E=0;let p=i.length-1;if(g){for(;E<i.length&&isHTTPWhiteSpace(i[E]);E++);}if(f){for(;p>0&&isHTTPWhiteSpace(i[p]);p--);}return i.slice(E,p+1)}function isASCIIWhitespace(i){return i==="\r"||i==="\n"||i==="\t"||i==="\f"||i===" "}function removeASCIIWhitespace(i,g=true,f=true){let E=0;let p=i.length-1;if(g){for(;E<i.length&&isASCIIWhitespace(i[E]);E++);}if(f){for(;p>0&&isASCIIWhitespace(i[p]);p--);}return i.slice(E,p+1)}i.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},3041:(i,g,f)=>{const{Blob:E,File:p}=f(181);const{types:y}=f(9023);const{kState:b}=f(9710);const{isBlobLike:S}=f(5523);const{webidl:J}=f(4222);const{parseMIMEType:Z,serializeAMimeType:$}=f(4322);const{kEnumerableProperty:z}=f(3440);const ee=new TextEncoder;class File extends E{constructor(i,g,f={}){J.argumentLengthCheck(arguments,2,{header:"File constructor"});i=J.converters["sequence<BlobPart>"](i);g=J.converters.USVString(g);f=J.converters.FilePropertyBag(f);const E=g;let p=f.type;let y;e:{if(p){p=Z(p);if(p==="failure"){p="";break e}p=$(p).toLowerCase()}y=f.lastModified}super(processBlobParts(i,f),{type:p});this[b]={name:E,lastModified:y,type:p}}get name(){J.brandCheck(this,File);return this[b].name}get lastModified(){J.brandCheck(this,File);return this[b].lastModified}get type(){J.brandCheck(this,File);return this[b].type}}class FileLike{constructor(i,g,f={}){const E=g;const p=f.type;const y=f.lastModified??Date.now();this[b]={blobLike:i,name:E,type:p,lastModified:y}}stream(...i){J.brandCheck(this,FileLike);return this[b].blobLike.stream(...i)}arrayBuffer(...i){J.brandCheck(this,FileLike);return this[b].blobLike.arrayBuffer(...i)}slice(...i){J.brandCheck(this,FileLike);return this[b].blobLike.slice(...i)}text(...i){J.brandCheck(this,FileLike);return this[b].blobLike.text(...i)}get size(){J.brandCheck(this,FileLike);return this[b].blobLike.size}get type(){J.brandCheck(this,FileLike);return this[b].blobLike.type}get name(){J.brandCheck(this,FileLike);return this[b].name}get lastModified(){J.brandCheck(this,FileLike);return this[b].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:z,lastModified:z});J.converters.Blob=J.interfaceConverter(E);J.converters.BlobPart=function(i,g){if(J.util.Type(i)==="Object"){if(S(i)){return J.converters.Blob(i,{strict:false})}if(ArrayBuffer.isView(i)||y.isAnyArrayBuffer(i)){return J.converters.BufferSource(i,g)}}return J.converters.USVString(i,g)};J.converters["sequence<BlobPart>"]=J.sequenceConverter(J.converters.BlobPart);J.converters.FilePropertyBag=J.dictionaryConverter([{key:"lastModified",converter:J.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:J.converters.DOMString,defaultValue:""},{key:"endings",converter:i=>{i=J.converters.DOMString(i);i=i.toLowerCase();if(i!=="native"){i="transparent"}return i},defaultValue:"transparent"}]);function processBlobParts(i,g){const f=[];for(const E of i){if(typeof E==="string"){let i=E;if(g.endings==="native"){i=convertLineEndingsNative(i)}f.push(ee.encode(i))}else if(y.isAnyArrayBuffer(E)||y.isTypedArray(E)){if(!E.buffer){f.push(new Uint8Array(E))}else{f.push(new Uint8Array(E.buffer,E.byteOffset,E.byteLength))}}else if(S(E)){f.push(E)}}return f}function convertLineEndingsNative(i){let g="\n";if(process.platform==="win32"){g="\r\n"}return i.replace(/\r?\n/g,g)}function isFileLike(i){return p&&i instanceof p||i instanceof File||i&&(typeof i.stream==="function"||typeof i.arrayBuffer==="function")&&i[Symbol.toStringTag]==="File"}i.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},3073:(i,g,f)=>{const{isBlobLike:E,toUSVString:p,makeIterator:y}=f(5523);const{kState:b}=f(9710);const{File:S,FileLike:J,isFileLike:Z}=f(3041);const{webidl:$}=f(4222);const{Blob:z,File:ee}=f(181);const re=ee??S;class FormData{constructor(i){if(i!==undefined){throw $.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[b]=[]}append(i,g,f=undefined){$.brandCheck(this,FormData);$.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!E(g)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}i=$.converters.USVString(i);g=E(g)?$.converters.Blob(g,{strict:false}):$.converters.USVString(g);f=arguments.length===3?$.converters.USVString(f):undefined;const p=makeEntry(i,g,f);this[b].push(p)}delete(i){$.brandCheck(this,FormData);$.argumentLengthCheck(arguments,1,{header:"FormData.delete"});i=$.converters.USVString(i);this[b]=this[b].filter((g=>g.name!==i))}get(i){$.brandCheck(this,FormData);$.argumentLengthCheck(arguments,1,{header:"FormData.get"});i=$.converters.USVString(i);const g=this[b].findIndex((g=>g.name===i));if(g===-1){return null}return this[b][g].value}getAll(i){$.brandCheck(this,FormData);$.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});i=$.converters.USVString(i);return this[b].filter((g=>g.name===i)).map((i=>i.value))}has(i){$.brandCheck(this,FormData);$.argumentLengthCheck(arguments,1,{header:"FormData.has"});i=$.converters.USVString(i);return this[b].findIndex((g=>g.name===i))!==-1}set(i,g,f=undefined){$.brandCheck(this,FormData);$.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!E(g)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}i=$.converters.USVString(i);g=E(g)?$.converters.Blob(g,{strict:false}):$.converters.USVString(g);f=arguments.length===3?p(f):undefined;const y=makeEntry(i,g,f);const S=this[b].findIndex((g=>g.name===i));if(S!==-1){this[b]=[...this[b].slice(0,S),y,...this[b].slice(S+1).filter((g=>g.name!==i))]}else{this[b].push(y)}}entries(){$.brandCheck(this,FormData);return y((()=>this[b].map((i=>[i.name,i.value]))),"FormData","key+value")}keys(){$.brandCheck(this,FormData);return y((()=>this[b].map((i=>[i.name,i.value]))),"FormData","key")}values(){$.brandCheck(this,FormData);return y((()=>this[b].map((i=>[i.name,i.value]))),"FormData","value")}forEach(i,g=globalThis){$.brandCheck(this,FormData);$.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof i!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[f,E]of this){i.apply(g,[E,f,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(i,g,f){i=Buffer.from(i).toString("utf8");if(typeof g==="string"){g=Buffer.from(g).toString("utf8")}else{if(!Z(g)){g=g instanceof z?new re([g],"blob",{type:g.type}):new J(g,"blob",{type:g.type})}if(f!==undefined){const i={type:g.type,lastModified:g.lastModified};g=ee&&g instanceof ee||g instanceof S?new re([g],f,i):new J(g,f,i)}}return{name:i,value:g}}i.exports={FormData:FormData}},5628:i=>{const g=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[g]}function setGlobalOrigin(i){if(i===undefined){Object.defineProperty(globalThis,g,{value:undefined,writable:true,enumerable:false,configurable:false});return}const f=new URL(i);if(f.protocol!=="http:"&&f.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${f.protocol}`)}Object.defineProperty(globalThis,g,{value:f,writable:true,enumerable:false,configurable:false})}i.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},6349:(i,g,f)=>{const{kHeadersList:E,kConstruct:p}=f(6443);const{kGuard:y}=f(9710);const{kEnumerableProperty:b}=f(3440);const{makeIterator:S,isValidHeaderName:J,isValidHeaderValue:Z}=f(5523);const $=f(9023);const{webidl:z}=f(4222);const ee=f(2613);const re=Symbol("headers map");const Pe=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(i){return i===10||i===13||i===9||i===32}function headerValueNormalize(i){let g=0;let f=i.length;while(f>g&&isHTTPWhiteSpaceCharCode(i.charCodeAt(f-1)))--f;while(f>g&&isHTTPWhiteSpaceCharCode(i.charCodeAt(g)))++g;return g===0&&f===i.length?i:i.substring(g,f)}function fill(i,g){if(Array.isArray(g)){for(let f=0;f<g.length;++f){const E=g[f];if(E.length!==2){throw z.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${E.length}.`})}appendHeader(i,E[0],E[1])}}else if(typeof g==="object"&&g!==null){const f=Object.keys(g);for(let E=0;E<f.length;++E){appendHeader(i,f[E],g[f[E]])}}else{throw z.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}}function appendHeader(i,g,f){f=headerValueNormalize(f);if(!J(g)){throw z.errors.invalidArgument({prefix:"Headers.append",value:g,type:"header name"})}else if(!Z(f)){throw z.errors.invalidArgument({prefix:"Headers.append",value:f,type:"header value"})}if(i[y]==="immutable"){throw new TypeError("immutable")}else if(i[y]==="request-no-cors"){}return i[E].append(g,f)}class HeadersList{cookies=null;constructor(i){if(i instanceof HeadersList){this[re]=new Map(i[re]);this[Pe]=i[Pe];this.cookies=i.cookies===null?null:[...i.cookies]}else{this[re]=new Map(i);this[Pe]=null}}contains(i){i=i.toLowerCase();return this[re].has(i)}clear(){this[re].clear();this[Pe]=null;this.cookies=null}append(i,g){this[Pe]=null;const f=i.toLowerCase();const E=this[re].get(f);if(E){const i=f==="cookie"?"; ":", ";this[re].set(f,{name:E.name,value:`${E.value}${i}${g}`})}else{this[re].set(f,{name:i,value:g})}if(f==="set-cookie"){this.cookies??=[];this.cookies.push(g)}}set(i,g){this[Pe]=null;const f=i.toLowerCase();if(f==="set-cookie"){this.cookies=[g]}this[re].set(f,{name:i,value:g})}delete(i){this[Pe]=null;i=i.toLowerCase();if(i==="set-cookie"){this.cookies=null}this[re].delete(i)}get(i){const g=this[re].get(i.toLowerCase());return g===undefined?null:g.value}*[Symbol.iterator](){for(const[i,{value:g}]of this[re]){yield[i,g]}}get entries(){const i={};if(this[re].size){for(const{name:g,value:f}of this[re].values()){i[g]=f}}return i}}class Headers{constructor(i=undefined){if(i===p){return}this[E]=new HeadersList;this[y]="none";if(i!==undefined){i=z.converters.HeadersInit(i);fill(this,i)}}append(i,g){z.brandCheck(this,Headers);z.argumentLengthCheck(arguments,2,{header:"Headers.append"});i=z.converters.ByteString(i);g=z.converters.ByteString(g);return appendHeader(this,i,g)}delete(i){z.brandCheck(this,Headers);z.argumentLengthCheck(arguments,1,{header:"Headers.delete"});i=z.converters.ByteString(i);if(!J(i)){throw z.errors.invalidArgument({prefix:"Headers.delete",value:i,type:"header name"})}if(this[y]==="immutable"){throw new TypeError("immutable")}else if(this[y]==="request-no-cors"){}if(!this[E].contains(i)){return}this[E].delete(i)}get(i){z.brandCheck(this,Headers);z.argumentLengthCheck(arguments,1,{header:"Headers.get"});i=z.converters.ByteString(i);if(!J(i)){throw z.errors.invalidArgument({prefix:"Headers.get",value:i,type:"header name"})}return this[E].get(i)}has(i){z.brandCheck(this,Headers);z.argumentLengthCheck(arguments,1,{header:"Headers.has"});i=z.converters.ByteString(i);if(!J(i)){throw z.errors.invalidArgument({prefix:"Headers.has",value:i,type:"header name"})}return this[E].contains(i)}set(i,g){z.brandCheck(this,Headers);z.argumentLengthCheck(arguments,2,{header:"Headers.set"});i=z.converters.ByteString(i);g=z.converters.ByteString(g);g=headerValueNormalize(g);if(!J(i)){throw z.errors.invalidArgument({prefix:"Headers.set",value:i,type:"header name"})}else if(!Z(g)){throw z.errors.invalidArgument({prefix:"Headers.set",value:g,type:"header value"})}if(this[y]==="immutable"){throw new TypeError("immutable")}else if(this[y]==="request-no-cors"){}this[E].set(i,g)}getSetCookie(){z.brandCheck(this,Headers);const i=this[E].cookies;if(i){return[...i]}return[]}get[Pe](){if(this[E][Pe]){return this[E][Pe]}const i=[];const g=[...this[E]].sort(((i,g)=>i[0]<g[0]?-1:1));const f=this[E].cookies;for(let E=0;E<g.length;++E){const[p,y]=g[E];if(p==="set-cookie"){for(let g=0;g<f.length;++g){i.push([p,f[g]])}}else{ee(y!==null);i.push([p,y])}}this[E][Pe]=i;return i}keys(){z.brandCheck(this,Headers);if(this[y]==="immutable"){const i=this[Pe];return S((()=>i),"Headers","key")}return S((()=>[...this[Pe].values()]),"Headers","key")}values(){z.brandCheck(this,Headers);if(this[y]==="immutable"){const i=this[Pe];return S((()=>i),"Headers","value")}return S((()=>[...this[Pe].values()]),"Headers","value")}entries(){z.brandCheck(this,Headers);if(this[y]==="immutable"){const i=this[Pe];return S((()=>i),"Headers","key+value")}return S((()=>[...this[Pe].values()]),"Headers","key+value")}forEach(i,g=globalThis){z.brandCheck(this,Headers);z.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof i!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[f,E]of this){i.apply(g,[E,f,this])}}[Symbol.for("nodejs.util.inspect.custom")](){z.brandCheck(this,Headers);return this[E]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:b,delete:b,get:b,has:b,set:b,getSetCookie:b,keys:b,values:b,entries:b,forEach:b,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true},[$.inspect.custom]:{enumerable:false}});z.converters.HeadersInit=function(i){if(z.util.Type(i)==="Object"){if(i[Symbol.iterator]){return z.converters["sequence<sequence<ByteString>>"](i)}return z.converters["record<ByteString, ByteString>"](i)}throw z.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};i.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},2315:(i,g,f)=>{const{Response:E,makeNetworkError:p,makeAppropriateNetworkError:y,filterResponse:b,makeResponse:S}=f(8676);const{Headers:J}=f(6349);const{Request:Z,makeRequest:$}=f(5194);const z=f(3106);const{bytesMatch:ee,makePolicyContainer:re,clonePolicyContainer:Pe,requestBadPort:$t,TAOCheck:tn,appendRequestOriginHeader:sn,responseLocationURL:nn,requestCurrentURL:rn,setRequestReferrerPolicyOnRedirect:An,tryUpgradeRequestToAPotentiallyTrustworthyURL:on,createOpaqueTimingInfo:an,appendFetchMetadata:cn,corsCheck:ln,crossOriginResourcePolicyCheck:un,determineRequestsReferrer:hn,coarsenedSharedCurrentTime:dn,createDeferredPromise:gn,isBlobLike:fn,sameOrigin:En,isCancelled:pn,isAborted:Cn,isErrorLike:In,fullyReadBody:Qn,readableStreamClose:Bn,isomorphicEncode:mn,urlIsLocal:yn,urlIsHttpHttpsScheme:wn,urlHasHttpsScheme:bn}=f(5523);const{kState:kn,kHeaders:Sn,kGuard:Rn,kRealm:Dn}=f(9710);const vn=f(2613);const{safelyExtractBody:Nn}=f(8923);const{redirectStatusSet:Fn,nullBodyStatus:Tn,safeMethodsSet:_n,requestBodyHeader:Ln,subresourceSet:Mn,DOMException:xn}=f(7326);const{kHeadersList:Un}=f(6443);const On=f(4434);const{Readable:Pn,pipeline:Yn}=f(2203);const{addAbortListener:Gn,isErrored:Hn,isReadable:Jn,nodeMajor:Vn,nodeMinor:Wn}=f(3440);const{dataURLProcessor:qn,serializeAMimeType:jn}=f(4322);const{TransformStream:Zn}=f(3774);const{getGlobalDispatcher:Kn}=f(2581);const{webidl:$n}=f(4222);const{STATUS_CODES:zn}=f(8611);const Xn=["GET","HEAD"];let er;let tr=globalThis.ReadableStream;class Fetch extends On{constructor(i){super();this.dispatcher=i;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(i){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(i);this.emit("terminated",i)}abort(i){if(this.state!=="ongoing"){return}this.state="aborted";if(!i){i=new xn("The operation was aborted.","AbortError")}this.serializedAbortReason=i;this.connection?.destroy(i);this.emit("terminated",i)}}function fetch(i,g={}){$n.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const f=gn();let p;try{p=new Z(i,g)}catch(i){f.reject(i);return f.promise}const y=p[kn];if(p.signal.aborted){abortFetch(f,y,null,p.signal.reason);return f.promise}const b=y.client.globalObject;if(b?.constructor?.name==="ServiceWorkerGlobalScope"){y.serviceWorkers="none"}let S=null;const J=null;let $=false;let z=null;Gn(p.signal,(()=>{$=true;vn(z!=null);z.abort(p.signal.reason);abortFetch(f,y,S,p.signal.reason)}));const handleFetchDone=i=>finalizeAndReportTiming(i,"fetch");const processResponse=i=>{if($){return Promise.resolve()}if(i.aborted){abortFetch(f,y,S,z.serializedAbortReason);return Promise.resolve()}if(i.type==="error"){f.reject(Object.assign(new TypeError("fetch failed"),{cause:i.error}));return Promise.resolve()}S=new E;S[kn]=i;S[Dn]=J;S[Sn][Un]=i.headersList;S[Sn][Rn]="immutable";S[Sn][Dn]=J;f.resolve(S)};z=fetching({request:y,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:g.dispatcher??Kn()});return f.promise}function finalizeAndReportTiming(i,g="other"){if(i.type==="error"&&i.aborted){return}if(!i.urlList?.length){return}const f=i.urlList[0];let E=i.timingInfo;let p=i.cacheState;if(!wn(f)){return}if(E===null){return}if(!i.timingAllowPassed){E=an({startTime:E.startTime});p=""}E.endTime=dn();i.timingInfo=E;markResourceTiming(E,f,g,globalThis,p)}function markResourceTiming(i,g,f,E,p){if(Vn>18||Vn===18&&Wn>=2){performance.markResourceTiming(i,g.href,f,E,p)}}function abortFetch(i,g,f,E){if(!E){E=new xn("The operation was aborted.","AbortError")}i.reject(E);if(g.body!=null&&Jn(g.body?.stream)){g.body.stream.cancel(E).catch((i=>{if(i.code==="ERR_INVALID_STATE"){return}throw i}))}if(f==null){return}const p=f[kn];if(p.body!=null&&Jn(p.body?.stream)){p.body.stream.cancel(E).catch((i=>{if(i.code==="ERR_INVALID_STATE"){return}throw i}))}}function fetching({request:i,processRequestBodyChunkLength:g,processRequestEndOfBody:f,processResponse:E,processResponseEndOfBody:p,processResponseConsumeBody:y,useParallelQueue:b=false,dispatcher:S}){let J=null;let Z=false;if(i.client!=null){J=i.client.globalObject;Z=i.client.crossOriginIsolatedCapability}const $=dn(Z);const z=an({startTime:$});const ee={controller:new Fetch(S),request:i,timingInfo:z,processRequestBodyChunkLength:g,processRequestEndOfBody:f,processResponse:E,processResponseConsumeBody:y,processResponseEndOfBody:p,taskDestination:J,crossOriginIsolatedCapability:Z};vn(!i.body||i.body.stream);if(i.window==="client"){i.window=i.client?.globalObject?.constructor?.name==="Window"?i.client:"no-window"}if(i.origin==="client"){i.origin=i.client?.origin}if(i.policyContainer==="client"){if(i.client!=null){i.policyContainer=Pe(i.client.policyContainer)}else{i.policyContainer=re()}}if(!i.headersList.contains("accept")){const g="*/*";i.headersList.append("accept",g)}if(!i.headersList.contains("accept-language")){i.headersList.append("accept-language","*")}if(i.priority===null){}if(Mn.has(i.destination)){}mainFetch(ee).catch((i=>{ee.controller.terminate(i)}));return ee.controller}async function mainFetch(i,g=false){const f=i.request;let E=null;if(f.localURLsOnly&&!yn(rn(f))){E=p("local URLs only")}on(f);if($t(f)==="blocked"){E=p("bad port")}if(f.referrerPolicy===""){f.referrerPolicy=f.policyContainer.referrerPolicy}if(f.referrer!=="no-referrer"){f.referrer=hn(f)}if(E===null){E=await(async()=>{const g=rn(f);if(En(g,f.url)&&f.responseTainting==="basic"||g.protocol==="data:"||(f.mode==="navigate"||f.mode==="websocket")){f.responseTainting="basic";return await schemeFetch(i)}if(f.mode==="same-origin"){return p('request mode cannot be "same-origin"')}if(f.mode==="no-cors"){if(f.redirect!=="follow"){return p('redirect mode cannot be "follow" for "no-cors" request')}f.responseTainting="opaque";return await schemeFetch(i)}if(!wn(rn(f))){return p("URL scheme must be a HTTP(S) scheme")}f.responseTainting="cors";return await httpFetch(i)})()}if(g){return E}if(E.status!==0&&!E.internalResponse){if(f.responseTainting==="cors"){}if(f.responseTainting==="basic"){E=b(E,"basic")}else if(f.responseTainting==="cors"){E=b(E,"cors")}else if(f.responseTainting==="opaque"){E=b(E,"opaque")}else{vn(false)}}let y=E.status===0?E:E.internalResponse;if(y.urlList.length===0){y.urlList.push(...f.urlList)}if(!f.timingAllowFailed){E.timingAllowPassed=true}if(E.type==="opaque"&&y.status===206&&y.rangeRequested&&!f.headers.contains("range")){E=y=p()}if(E.status!==0&&(f.method==="HEAD"||f.method==="CONNECT"||Tn.includes(y.status))){y.body=null;i.controller.dump=true}if(f.integrity){const processBodyError=g=>fetchFinale(i,p(g));if(f.responseTainting==="opaque"||E.body==null){processBodyError(E.error);return}const processBody=g=>{if(!ee(g,f.integrity)){processBodyError("integrity mismatch");return}E.body=Nn(g)[0];fetchFinale(i,E)};await Qn(E.body,processBody,processBodyError)}else{fetchFinale(i,E)}}function schemeFetch(i){if(pn(i)&&i.request.redirectCount===0){return Promise.resolve(y(i))}const{request:g}=i;const{protocol:E}=rn(g);switch(E){case"about:":{return Promise.resolve(p("about scheme is not supported"))}case"blob:":{if(!er){er=f(181).resolveObjectURL}const i=rn(g);if(i.search.length!==0){return Promise.resolve(p("NetworkError when attempting to fetch resource."))}const E=er(i.toString());if(g.method!=="GET"||!fn(E)){return Promise.resolve(p("invalid method"))}const y=Nn(E);const b=y[0];const J=mn(`${b.length}`);const Z=y[1]??"";const $=S({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:J}],["content-type",{name:"Content-Type",value:Z}]]});$.body=b;return Promise.resolve($)}case"data:":{const i=rn(g);const f=qn(i);if(f==="failure"){return Promise.resolve(p("failed to fetch the data URL"))}const E=jn(f.mimeType);return Promise.resolve(S({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:E}]],body:Nn(f.body)[0]}))}case"file:":{return Promise.resolve(p("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(i).catch((i=>p(i)))}default:{return Promise.resolve(p("unknown scheme"))}}}function finalizeResponse(i,g){i.request.done=true;if(i.processResponseDone!=null){queueMicrotask((()=>i.processResponseDone(g)))}}function fetchFinale(i,g){if(g.type==="error"){g.urlList=[i.request.urlList[0]];g.timingInfo=an({startTime:i.timingInfo.startTime})}const processResponseEndOfBody=()=>{i.request.done=true;if(i.processResponseEndOfBody!=null){queueMicrotask((()=>i.processResponseEndOfBody(g)))}};if(i.processResponse!=null){queueMicrotask((()=>i.processResponse(g)))}if(g.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(i,g)=>{g.enqueue(i)};const i=new Zn({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});g.body={stream:g.body.stream.pipeThrough(i)}}if(i.processResponseConsumeBody!=null){const processBody=f=>i.processResponseConsumeBody(g,f);const processBodyError=f=>i.processResponseConsumeBody(g,f);if(g.body==null){queueMicrotask((()=>processBody(null)))}else{return Qn(g.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(i){const g=i.request;let f=null;let E=null;const y=i.timingInfo;if(g.serviceWorkers==="all"){}if(f===null){if(g.redirect==="follow"){g.serviceWorkers="none"}E=f=await httpNetworkOrCacheFetch(i);if(g.responseTainting==="cors"&&ln(g,f)==="failure"){return p("cors failure")}if(tn(g,f)==="failure"){g.timingAllowFailed=true}}if((g.responseTainting==="opaque"||f.type==="opaque")&&un(g.origin,g.client,g.destination,E)==="blocked"){return p("blocked")}if(Fn.has(E.status)){if(g.redirect!=="manual"){i.controller.connection.destroy()}if(g.redirect==="error"){f=p("unexpected redirect")}else if(g.redirect==="manual"){f=E}else if(g.redirect==="follow"){f=await httpRedirectFetch(i,f)}else{vn(false)}}f.timingInfo=y;return f}function httpRedirectFetch(i,g){const f=i.request;const E=g.internalResponse?g.internalResponse:g;let y;try{y=nn(E,rn(f).hash);if(y==null){return g}}catch(i){return Promise.resolve(p(i))}if(!wn(y)){return Promise.resolve(p("URL scheme must be a HTTP(S) scheme"))}if(f.redirectCount===20){return Promise.resolve(p("redirect count exceeded"))}f.redirectCount+=1;if(f.mode==="cors"&&(y.username||y.password)&&!En(f,y)){return Promise.resolve(p('cross origin not allowed for request mode "cors"'))}if(f.responseTainting==="cors"&&(y.username||y.password)){return Promise.resolve(p('URL cannot contain credentials for request mode "cors"'))}if(E.status!==303&&f.body!=null&&f.body.source==null){return Promise.resolve(p())}if([301,302].includes(E.status)&&f.method==="POST"||E.status===303&&!Xn.includes(f.method)){f.method="GET";f.body=null;for(const i of Ln){f.headersList.delete(i)}}if(!En(rn(f),y)){f.headersList.delete("authorization");f.headersList.delete("proxy-authorization",true);f.headersList.delete("cookie");f.headersList.delete("host")}if(f.body!=null){vn(f.body.source!=null);f.body=Nn(f.body.source)[0]}const b=i.timingInfo;b.redirectEndTime=b.postRedirectStartTime=dn(i.crossOriginIsolatedCapability);if(b.redirectStartTime===0){b.redirectStartTime=b.startTime}f.urlList.push(y);An(f,E);return mainFetch(i,true)}async function httpNetworkOrCacheFetch(i,g=false,f=false){const E=i.request;let b=null;let S=null;let J=null;const Z=null;const z=false;if(E.window==="no-window"&&E.redirect==="error"){b=i;S=E}else{S=$(E);b={...i};b.request=S}const ee=E.credentials==="include"||E.credentials==="same-origin"&&E.responseTainting==="basic";const re=S.body?S.body.length:null;let Pe=null;if(S.body==null&&["POST","PUT"].includes(S.method)){Pe="0"}if(re!=null){Pe=mn(`${re}`)}if(Pe!=null){S.headersList.append("content-length",Pe)}if(re!=null&&S.keepalive){}if(S.referrer instanceof URL){S.headersList.append("referer",mn(S.referrer.href))}sn(S);cn(S);if(!S.headersList.contains("user-agent")){S.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(S.cache==="default"&&(S.headersList.contains("if-modified-since")||S.headersList.contains("if-none-match")||S.headersList.contains("if-unmodified-since")||S.headersList.contains("if-match")||S.headersList.contains("if-range"))){S.cache="no-store"}if(S.cache==="no-cache"&&!S.preventNoCacheCacheControlHeaderModification&&!S.headersList.contains("cache-control")){S.headersList.append("cache-control","max-age=0")}if(S.cache==="no-store"||S.cache==="reload"){if(!S.headersList.contains("pragma")){S.headersList.append("pragma","no-cache")}if(!S.headersList.contains("cache-control")){S.headersList.append("cache-control","no-cache")}}if(S.headersList.contains("range")){S.headersList.append("accept-encoding","identity")}if(!S.headersList.contains("accept-encoding")){if(bn(rn(S))){S.headersList.append("accept-encoding","br, gzip, deflate")}else{S.headersList.append("accept-encoding","gzip, deflate")}}S.headersList.delete("host");if(ee){}if(Z==null){S.cache="no-store"}if(S.mode!=="no-store"&&S.mode!=="reload"){}if(J==null){if(S.mode==="only-if-cached"){return p("only if cached")}const i=await httpNetworkFetch(b,ee,f);if(!_n.has(S.method)&&i.status>=200&&i.status<=399){}if(z&&i.status===304){}if(J==null){J=i}}J.urlList=[...S.urlList];if(S.headersList.contains("range")){J.rangeRequested=true}J.requestIncludesCredentials=ee;if(J.status===407){if(E.window==="no-window"){return p()}if(pn(i)){return y(i)}return p("proxy authentication required")}if(J.status===421&&!f&&(E.body==null||E.body.source!=null)){if(pn(i)){return y(i)}i.controller.connection.destroy();J=await httpNetworkOrCacheFetch(i,g,true)}if(g){}return J}async function httpNetworkFetch(i,g=false,E=false){vn(!i.controller.connection||i.controller.connection.destroyed);i.controller.connection={abort:null,destroyed:false,destroy(i){if(!this.destroyed){this.destroyed=true;this.abort?.(i??new xn("The operation was aborted.","AbortError"))}}};const b=i.request;let Z=null;const $=i.timingInfo;const ee=null;if(ee==null){b.cache="no-store"}const re=E?"yes":"no";if(b.mode==="websocket"){}else{}let Pe=null;if(b.body==null&&i.processRequestEndOfBody){queueMicrotask((()=>i.processRequestEndOfBody()))}else if(b.body!=null){const processBodyChunk=async function*(g){if(pn(i)){return}yield g;i.processRequestBodyChunkLength?.(g.byteLength)};const processEndOfBody=()=>{if(pn(i)){return}if(i.processRequestEndOfBody){i.processRequestEndOfBody()}};const processBodyError=g=>{if(pn(i)){return}if(g.name==="AbortError"){i.controller.abort()}else{i.controller.terminate(g)}};Pe=async function*(){try{for await(const i of b.body.stream){yield*processBodyChunk(i)}processEndOfBody()}catch(i){processBodyError(i)}}()}try{const{body:g,status:f,statusText:E,headersList:p,socket:y}=await dispatch({body:Pe});if(y){Z=S({status:f,statusText:E,headersList:p,socket:y})}else{const y=g[Symbol.asyncIterator]();i.controller.next=()=>y.next();Z=S({status:f,statusText:E,headersList:p})}}catch(g){if(g.name==="AbortError"){i.controller.connection.destroy();return y(i,g)}return p(g)}const pullAlgorithm=()=>{i.controller.resume()};const cancelAlgorithm=g=>{i.controller.abort(g)};if(!tr){tr=f(3774).ReadableStream}const $t=new tr({async start(g){i.controller.controller=g},async pull(i){await pullAlgorithm(i)},async cancel(i){await cancelAlgorithm(i)}},{highWaterMark:0,size(){return 1}});Z.body={stream:$t};i.controller.on("terminated",onAborted);i.controller.resume=async()=>{while(true){let g;let f;try{const{done:f,value:E}=await i.controller.next();if(Cn(i)){break}g=f?undefined:E}catch(E){if(i.controller.ended&&!$.encodedBodySize){g=undefined}else{g=E;f=true}}if(g===undefined){Bn(i.controller.controller);finalizeResponse(i,Z);return}$.decodedBodySize+=g?.byteLength??0;if(f){i.controller.terminate(g);return}i.controller.controller.enqueue(new Uint8Array(g));if(Hn($t)){i.controller.terminate();return}if(!i.controller.controller.desiredSize){return}}};function onAborted(g){if(Cn(i)){Z.aborted=true;if(Jn($t)){i.controller.controller.error(i.controller.serializedAbortReason)}}else{if(Jn($t)){i.controller.controller.error(new TypeError("terminated",{cause:In(g)?g:undefined}))}}i.controller.connection.destroy()}return Z;async function dispatch({body:g}){const f=rn(b);const E=i.controller.dispatcher;return new Promise(((p,y)=>E.dispatch({path:f.pathname+f.search,origin:f.origin,method:b.method,body:i.controller.dispatcher.isMockActive?b.body&&(b.body.source||b.body.stream):g,headers:b.headersList.entries,maxRedirections:0,upgrade:b.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(g){const{connection:f}=i.controller;if(f.destroyed){g(new xn("The operation was aborted.","AbortError"))}else{i.controller.on("terminated",g);this.abort=f.abort=g}},onHeaders(i,g,f,E){if(i<200){return}let y=[];let S="";const Z=new J;if(Array.isArray(g)){for(let i=0;i<g.length;i+=2){const f=g[i+0].toString("latin1");const E=g[i+1].toString("latin1");if(f.toLowerCase()==="content-encoding"){y=E.toLowerCase().split(",").map((i=>i.trim()))}else if(f.toLowerCase()==="location"){S=E}Z[Un].append(f,E)}}else{const i=Object.keys(g);for(const f of i){const i=g[f];if(f.toLowerCase()==="content-encoding"){y=i.toLowerCase().split(",").map((i=>i.trim())).reverse()}else if(f.toLowerCase()==="location"){S=i}Z[Un].append(f,i)}}this.body=new Pn({read:f});const $=[];const ee=b.redirect==="follow"&&S&&Fn.has(i);if(b.method!=="HEAD"&&b.method!=="CONNECT"&&!Tn.includes(i)&&!ee){for(const i of y){if(i==="x-gzip"||i==="gzip"){$.push(z.createGunzip({flush:z.constants.Z_SYNC_FLUSH,finishFlush:z.constants.Z_SYNC_FLUSH}))}else if(i==="deflate"){$.push(z.createInflate())}else if(i==="br"){$.push(z.createBrotliDecompress())}else{$.length=0;break}}}p({status:i,statusText:E,headersList:Z[Un],body:$.length?Yn(this.body,...$,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(g){if(i.controller.dump){return}const f=g;$.encodedBodySize+=f.byteLength;return this.body.push(f)},onComplete(){if(this.abort){i.controller.off("terminated",this.abort)}i.controller.ended=true;this.body.push(null)},onError(g){if(this.abort){i.controller.off("terminated",this.abort)}this.body?.destroy(g);i.controller.terminate(g);y(g)},onUpgrade(i,g,f){if(i!==101){return}const E=new J;for(let i=0;i<g.length;i+=2){const f=g[i+0].toString("latin1");const p=g[i+1].toString("latin1");E[Un].append(f,p)}p({status:i,statusText:zn[i],headersList:E[Un],socket:f});return true}})))}}i.exports={fetch:fetch,Fetch:Fetch,fetching:fetching,finalizeAndReportTiming:finalizeAndReportTiming}},5194:(i,g,f)=>{const{extractBody:E,mixinBody:p,cloneBody:y}=f(8923);const{Headers:b,fill:S,HeadersList:J}=f(6349);const{FinalizationRegistry:Z}=f(3194)();const $=f(3440);const{isValidHTTPToken:z,sameOrigin:ee,normalizeMethod:re,makePolicyContainer:Pe,normalizeMethodRecord:$t}=f(5523);const{forbiddenMethodsSet:tn,corsSafeListedMethodsSet:sn,referrerPolicy:nn,requestRedirect:rn,requestMode:An,requestCredentials:on,requestCache:an,requestDuplex:cn}=f(7326);const{kEnumerableProperty:ln}=$;const{kHeaders:un,kSignal:hn,kState:dn,kGuard:gn,kRealm:fn}=f(9710);const{webidl:En}=f(4222);const{getGlobalOrigin:pn}=f(5628);const{URLSerializer:Cn}=f(4322);const{kHeadersList:In,kConstruct:Qn}=f(6443);const Bn=f(2613);const{getMaxListeners:mn,setMaxListeners:yn,getEventListeners:wn,defaultMaxListeners:bn}=f(4434);let kn=globalThis.TransformStream;const Sn=Symbol("abortController");const Rn=new Z((({signal:i,abort:g})=>{i.removeEventListener("abort",g)}));class Request{constructor(i,g={}){if(i===Qn){return}En.argumentLengthCheck(arguments,1,{header:"Request constructor"});i=En.converters.RequestInfo(i);g=En.converters.RequestInit(g);this[fn]={settingsObject:{baseUrl:pn(),get origin(){return this.baseUrl?.origin},policyContainer:Pe()}};let p=null;let y=null;const Z=this[fn].settingsObject.baseUrl;let nn=null;if(typeof i==="string"){let g;try{g=new URL(i,Z)}catch(g){throw new TypeError("Failed to parse URL from "+i,{cause:g})}if(g.username||g.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+i)}p=makeRequest({urlList:[g]});y="cors"}else{Bn(i instanceof Request);p=i[dn];nn=i[hn]}const rn=this[fn].settingsObject.origin;let An="client";if(p.window?.constructor?.name==="EnvironmentSettingsObject"&&ee(p.window,rn)){An=p.window}if(g.window!=null){throw new TypeError(`'window' option '${An}' must be null`)}if("window"in g){An="no-window"}p=makeRequest({method:p.method,headersList:p.headersList,unsafeRequest:p.unsafeRequest,client:this[fn].settingsObject,window:An,priority:p.priority,origin:p.origin,referrer:p.referrer,referrerPolicy:p.referrerPolicy,mode:p.mode,credentials:p.credentials,cache:p.cache,redirect:p.redirect,integrity:p.integrity,keepalive:p.keepalive,reloadNavigation:p.reloadNavigation,historyNavigation:p.historyNavigation,urlList:[...p.urlList]});const on=Object.keys(g).length!==0;if(on){if(p.mode==="navigate"){p.mode="same-origin"}p.reloadNavigation=false;p.historyNavigation=false;p.origin="client";p.referrer="client";p.referrerPolicy="";p.url=p.urlList[p.urlList.length-1];p.urlList=[p.url]}if(g.referrer!==undefined){const i=g.referrer;if(i===""){p.referrer="no-referrer"}else{let g;try{g=new URL(i,Z)}catch(g){throw new TypeError(`Referrer "${i}" is not a valid URL.`,{cause:g})}if(g.protocol==="about:"&&g.hostname==="client"||rn&&!ee(g,this[fn].settingsObject.baseUrl)){p.referrer="client"}else{p.referrer=g}}}if(g.referrerPolicy!==undefined){p.referrerPolicy=g.referrerPolicy}let an;if(g.mode!==undefined){an=g.mode}else{an=y}if(an==="navigate"){throw En.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(an!=null){p.mode=an}if(g.credentials!==undefined){p.credentials=g.credentials}if(g.cache!==undefined){p.cache=g.cache}if(p.cache==="only-if-cached"&&p.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(g.redirect!==undefined){p.redirect=g.redirect}if(g.integrity!=null){p.integrity=String(g.integrity)}if(g.keepalive!==undefined){p.keepalive=Boolean(g.keepalive)}if(g.method!==undefined){let i=g.method;if(!z(i)){throw new TypeError(`'${i}' is not a valid HTTP method.`)}if(tn.has(i.toUpperCase())){throw new TypeError(`'${i}' HTTP method is unsupported.`)}i=$t[i]??re(i);p.method=i}if(g.signal!==undefined){nn=g.signal}this[dn]=p;const cn=new AbortController;this[hn]=cn.signal;this[hn][fn]=this[fn];if(nn!=null){if(!nn||typeof nn.aborted!=="boolean"||typeof nn.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(nn.aborted){cn.abort(nn.reason)}else{this[Sn]=cn;const i=new WeakRef(cn);const abort=function(){const g=i.deref();if(g!==undefined){g.abort(this.reason)}};try{if(typeof mn==="function"&&mn(nn)===bn){yn(100,nn)}else if(wn(nn,"abort").length>=bn){yn(100,nn)}}catch{}$.addAbortListener(nn,abort);Rn.register(cn,{signal:nn,abort:abort})}}this[un]=new b(Qn);this[un][In]=p.headersList;this[un][gn]="request";this[un][fn]=this[fn];if(an==="no-cors"){if(!sn.has(p.method)){throw new TypeError(`'${p.method} is unsupported in no-cors mode.`)}this[un][gn]="request-no-cors"}if(on){const i=this[un][In];const f=g.headers!==undefined?g.headers:new J(i);i.clear();if(f instanceof J){for(const[g,E]of f){i.append(g,E)}i.cookies=f.cookies}else{S(this[un],f)}}const ln=i instanceof Request?i[dn].body:null;if((g.body!=null||ln!=null)&&(p.method==="GET"||p.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let Cn=null;if(g.body!=null){const[i,f]=E(g.body,p.keepalive);Cn=i;if(f&&!this[un][In].contains("content-type")){this[un].append("content-type",f)}}const Dn=Cn??ln;if(Dn!=null&&Dn.source==null){if(Cn!=null&&g.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(p.mode!=="same-origin"&&p.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}p.useCORSPreflightFlag=true}let vn=Dn;if(Cn==null&&ln!=null){if($.isDisturbed(ln.stream)||ln.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!kn){kn=f(3774).TransformStream}const i=new kn;ln.stream.pipeThrough(i);vn={source:ln.source,length:ln.length,stream:i.readable}}this[dn].body=vn}get method(){En.brandCheck(this,Request);return this[dn].method}get url(){En.brandCheck(this,Request);return Cn(this[dn].url)}get headers(){En.brandCheck(this,Request);return this[un]}get destination(){En.brandCheck(this,Request);return this[dn].destination}get referrer(){En.brandCheck(this,Request);if(this[dn].referrer==="no-referrer"){return""}if(this[dn].referrer==="client"){return"about:client"}return this[dn].referrer.toString()}get referrerPolicy(){En.brandCheck(this,Request);return this[dn].referrerPolicy}get mode(){En.brandCheck(this,Request);return this[dn].mode}get credentials(){return this[dn].credentials}get cache(){En.brandCheck(this,Request);return this[dn].cache}get redirect(){En.brandCheck(this,Request);return this[dn].redirect}get integrity(){En.brandCheck(this,Request);return this[dn].integrity}get keepalive(){En.brandCheck(this,Request);return this[dn].keepalive}get isReloadNavigation(){En.brandCheck(this,Request);return this[dn].reloadNavigation}get isHistoryNavigation(){En.brandCheck(this,Request);return this[dn].historyNavigation}get signal(){En.brandCheck(this,Request);return this[hn]}get body(){En.brandCheck(this,Request);return this[dn].body?this[dn].body.stream:null}get bodyUsed(){En.brandCheck(this,Request);return!!this[dn].body&&$.isDisturbed(this[dn].body.stream)}get duplex(){En.brandCheck(this,Request);return"half"}clone(){En.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const i=cloneRequest(this[dn]);const g=new Request(Qn);g[dn]=i;g[fn]=this[fn];g[un]=new b(Qn);g[un][In]=i.headersList;g[un][gn]=this[un][gn];g[un][fn]=this[un][fn];const f=new AbortController;if(this.signal.aborted){f.abort(this.signal.reason)}else{$.addAbortListener(this.signal,(()=>{f.abort(this.signal.reason)}))}g[hn]=f.signal;return g}}p(Request);function makeRequest(i){const g={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...i,headersList:i.headersList?new J(i.headersList):new J};g.url=g.urlList[0];return g}function cloneRequest(i){const g=makeRequest({...i,body:null});if(i.body!=null){g.body=y(i.body)}return g}Object.defineProperties(Request.prototype,{method:ln,url:ln,headers:ln,redirect:ln,clone:ln,signal:ln,duplex:ln,destination:ln,body:ln,bodyUsed:ln,isHistoryNavigation:ln,isReloadNavigation:ln,keepalive:ln,integrity:ln,cache:ln,credentials:ln,attribute:ln,referrerPolicy:ln,referrer:ln,mode:ln,[Symbol.toStringTag]:{value:"Request",configurable:true}});En.converters.Request=En.interfaceConverter(Request);En.converters.RequestInfo=function(i){if(typeof i==="string"){return En.converters.USVString(i)}if(i instanceof Request){return En.converters.Request(i)}return En.converters.USVString(i)};En.converters.AbortSignal=En.interfaceConverter(AbortSignal);En.converters.RequestInit=En.dictionaryConverter([{key:"method",converter:En.converters.ByteString},{key:"headers",converter:En.converters.HeadersInit},{key:"body",converter:En.nullableConverter(En.converters.BodyInit)},{key:"referrer",converter:En.converters.USVString},{key:"referrerPolicy",converter:En.converters.DOMString,allowedValues:nn},{key:"mode",converter:En.converters.DOMString,allowedValues:An},{key:"credentials",converter:En.converters.DOMString,allowedValues:on},{key:"cache",converter:En.converters.DOMString,allowedValues:an},{key:"redirect",converter:En.converters.DOMString,allowedValues:rn},{key:"integrity",converter:En.converters.DOMString},{key:"keepalive",converter:En.converters.boolean},{key:"signal",converter:En.nullableConverter((i=>En.converters.AbortSignal(i,{strict:false})))},{key:"window",converter:En.converters.any},{key:"duplex",converter:En.converters.DOMString,allowedValues:cn}]);i.exports={Request:Request,makeRequest:makeRequest}},8676:(i,g,f)=>{const{Headers:E,HeadersList:p,fill:y}=f(6349);const{extractBody:b,cloneBody:S,mixinBody:J}=f(8923);const Z=f(3440);const{kEnumerableProperty:$}=Z;const{isValidReasonPhrase:z,isCancelled:ee,isAborted:re,isBlobLike:Pe,serializeJavascriptValueToJSONString:$t,isErrorLike:tn,isomorphicEncode:sn}=f(5523);const{redirectStatusSet:nn,nullBodyStatus:rn,DOMException:An}=f(7326);const{kState:on,kHeaders:an,kGuard:cn,kRealm:ln}=f(9710);const{webidl:un}=f(4222);const{FormData:hn}=f(3073);const{getGlobalOrigin:dn}=f(5628);const{URLSerializer:gn}=f(4322);const{kHeadersList:fn,kConstruct:En}=f(6443);const pn=f(2613);const{types:Cn}=f(9023);const In=globalThis.ReadableStream||f(3774).ReadableStream;const Qn=new TextEncoder("utf-8");class Response{static error(){const i={settingsObject:{}};const g=new Response;g[on]=makeNetworkError();g[ln]=i;g[an][fn]=g[on].headersList;g[an][cn]="immutable";g[an][ln]=i;return g}static json(i,g={}){un.argumentLengthCheck(arguments,1,{header:"Response.json"});if(g!==null){g=un.converters.ResponseInit(g)}const f=Qn.encode($t(i));const E=b(f);const p={settingsObject:{}};const y=new Response;y[ln]=p;y[an][cn]="response";y[an][ln]=p;initializeResponse(y,g,{body:E[0],type:"application/json"});return y}static redirect(i,g=302){const f={settingsObject:{}};un.argumentLengthCheck(arguments,1,{header:"Response.redirect"});i=un.converters.USVString(i);g=un.converters["unsigned short"](g);let E;try{E=new URL(i,dn())}catch(g){throw Object.assign(new TypeError("Failed to parse URL from "+i),{cause:g})}if(!nn.has(g)){throw new RangeError("Invalid status code "+g)}const p=new Response;p[ln]=f;p[an][cn]="immutable";p[an][ln]=f;p[on].status=g;const y=sn(gn(E));p[on].headersList.append("location",y);return p}constructor(i=null,g={}){if(i!==null){i=un.converters.BodyInit(i)}g=un.converters.ResponseInit(g);this[ln]={settingsObject:{}};this[on]=makeResponse({});this[an]=new E(En);this[an][cn]="response";this[an][fn]=this[on].headersList;this[an][ln]=this[ln];let f=null;if(i!=null){const[g,E]=b(i);f={body:g,type:E}}initializeResponse(this,g,f)}get type(){un.brandCheck(this,Response);return this[on].type}get url(){un.brandCheck(this,Response);const i=this[on].urlList;const g=i[i.length-1]??null;if(g===null){return""}return gn(g,true)}get redirected(){un.brandCheck(this,Response);return this[on].urlList.length>1}get status(){un.brandCheck(this,Response);return this[on].status}get ok(){un.brandCheck(this,Response);return this[on].status>=200&&this[on].status<=299}get statusText(){un.brandCheck(this,Response);return this[on].statusText}get headers(){un.brandCheck(this,Response);return this[an]}get body(){un.brandCheck(this,Response);return this[on].body?this[on].body.stream:null}get bodyUsed(){un.brandCheck(this,Response);return!!this[on].body&&Z.isDisturbed(this[on].body.stream)}clone(){un.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw un.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const i=cloneResponse(this[on]);const g=new Response;g[on]=i;g[ln]=this[ln];g[an][fn]=i.headersList;g[an][cn]=this[an][cn];g[an][ln]=this[an][ln];return g}}J(Response);Object.defineProperties(Response.prototype,{type:$,url:$,status:$,ok:$,redirected:$,statusText:$,headers:$,clone:$,body:$,bodyUsed:$,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:$,redirect:$,error:$});function cloneResponse(i){if(i.internalResponse){return filterResponse(cloneResponse(i.internalResponse),i.type)}const g=makeResponse({...i,body:null});if(i.body!=null){g.body=S(i.body)}return g}function makeResponse(i){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...i,headersList:i.headersList?new p(i.headersList):new p,urlList:i.urlList?[...i.urlList]:[]}}function makeNetworkError(i){const g=tn(i);return makeResponse({type:"error",status:0,error:g?i:new Error(i?String(i):i),aborted:i&&i.name==="AbortError"})}function makeFilteredResponse(i,g){g={internalResponse:i,...g};return new Proxy(i,{get(i,f){return f in g?g[f]:i[f]},set(i,f,E){pn(!(f in g));i[f]=E;return true}})}function filterResponse(i,g){if(g==="basic"){return makeFilteredResponse(i,{type:"basic",headersList:i.headersList})}else if(g==="cors"){return makeFilteredResponse(i,{type:"cors",headersList:i.headersList})}else if(g==="opaque"){return makeFilteredResponse(i,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(g==="opaqueredirect"){return makeFilteredResponse(i,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{pn(false)}}function makeAppropriateNetworkError(i,g=null){pn(ee(i));return re(i)?makeNetworkError(Object.assign(new An("The operation was aborted.","AbortError"),{cause:g})):makeNetworkError(Object.assign(new An("Request was cancelled."),{cause:g}))}function initializeResponse(i,g,f){if(g.status!==null&&(g.status<200||g.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in g&&g.statusText!=null){if(!z(String(g.statusText))){throw new TypeError("Invalid statusText")}}if("status"in g&&g.status!=null){i[on].status=g.status}if("statusText"in g&&g.statusText!=null){i[on].statusText=g.statusText}if("headers"in g&&g.headers!=null){y(i[an],g.headers)}if(f){if(rn.includes(i.status)){throw un.errors.exception({header:"Response constructor",message:"Invalid response status code "+i.status})}i[on].body=f.body;if(f.type!=null&&!i[on].headersList.contains("Content-Type")){i[on].headersList.append("content-type",f.type)}}}un.converters.ReadableStream=un.interfaceConverter(In);un.converters.FormData=un.interfaceConverter(hn);un.converters.URLSearchParams=un.interfaceConverter(URLSearchParams);un.converters.XMLHttpRequestBodyInit=function(i){if(typeof i==="string"){return un.converters.USVString(i)}if(Pe(i)){return un.converters.Blob(i,{strict:false})}if(Cn.isArrayBuffer(i)||Cn.isTypedArray(i)||Cn.isDataView(i)){return un.converters.BufferSource(i)}if(Z.isFormDataLike(i)){return un.converters.FormData(i,{strict:false})}if(i instanceof URLSearchParams){return un.converters.URLSearchParams(i)}return un.converters.DOMString(i)};un.converters.BodyInit=function(i){if(i instanceof In){return un.converters.ReadableStream(i)}if(i?.[Symbol.asyncIterator]){return i}return un.converters.XMLHttpRequestBodyInit(i)};un.converters.ResponseInit=un.dictionaryConverter([{key:"status",converter:un.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:un.converters.ByteString,defaultValue:""},{key:"headers",converter:un.converters.HeadersInit}]);i.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},9710:i=>{i.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},5523:(i,g,f)=>{const{redirectStatusSet:E,referrerPolicySet:p,badPortsSet:y}=f(7326);const{getGlobalOrigin:b}=f(5628);const{performance:S}=f(2987);const{isBlobLike:J,toUSVString:Z,ReadableStreamFrom:$}=f(3440);const z=f(2613);const{isUint8Array:ee}=f(8253);let re=[];let Pe;try{Pe=f(6982);const i=["sha256","sha384","sha512"];re=Pe.getHashes().filter((g=>i.includes(g)))}catch{}function responseURL(i){const g=i.urlList;const f=g.length;return f===0?null:g[f-1].toString()}function responseLocationURL(i,g){if(!E.has(i.status)){return null}let f=i.headersList.get("location");if(f!==null&&isValidHeaderValue(f)){f=new URL(f,responseURL(i))}if(f&&!f.hash){f.hash=g}return f}function requestCurrentURL(i){return i.urlList[i.urlList.length-1]}function requestBadPort(i){const g=requestCurrentURL(i);if(urlIsHttpHttpsScheme(g)&&y.has(g.port)){return"blocked"}return"allowed"}function isErrorLike(i){return i instanceof Error||(i?.constructor?.name==="Error"||i?.constructor?.name==="DOMException")}function isValidReasonPhrase(i){for(let g=0;g<i.length;++g){const f=i.charCodeAt(g);if(!(f===9||f>=32&&f<=126||f>=128&&f<=255)){return false}}return true}function isTokenCharCode(i){switch(i){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return i>=33&&i<=126}}function isValidHTTPToken(i){if(i.length===0){return false}for(let g=0;g<i.length;++g){if(!isTokenCharCode(i.charCodeAt(g))){return false}}return true}function isValidHeaderName(i){return isValidHTTPToken(i)}function isValidHeaderValue(i){if(i.startsWith("\t")||i.startsWith(" ")||i.endsWith("\t")||i.endsWith(" ")){return false}if(i.includes("\0")||i.includes("\r")||i.includes("\n")){return false}return true}function setRequestReferrerPolicyOnRedirect(i,g){const{headersList:f}=g;const E=(f.get("referrer-policy")??"").split(",");let y="";if(E.length>0){for(let i=E.length;i!==0;i--){const g=E[i-1].trim();if(p.has(g)){y=g;break}}}if(y!==""){i.referrerPolicy=y}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(i){let g=null;g=i.mode;i.headersList.set("sec-fetch-mode",g)}function appendRequestOriginHeader(i){let g=i.origin;if(i.responseTainting==="cors"||i.mode==="websocket"){if(g){i.headersList.append("origin",g)}}else if(i.method!=="GET"&&i.method!=="HEAD"){switch(i.referrerPolicy){case"no-referrer":g=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(i.origin&&urlHasHttpsScheme(i.origin)&&!urlHasHttpsScheme(requestCurrentURL(i))){g=null}break;case"same-origin":if(!sameOrigin(i,requestCurrentURL(i))){g=null}break;default:}if(g){i.headersList.append("origin",g)}}}function coarsenedSharedCurrentTime(i){return S.now()}function createOpaqueTimingInfo(i){return{startTime:i.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:i.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(i){return{referrerPolicy:i.referrerPolicy}}function determineRequestsReferrer(i){const g=i.referrerPolicy;z(g);let f=null;if(i.referrer==="client"){const i=b();if(!i||i.origin==="null"){return"no-referrer"}f=new URL(i)}else if(i.referrer instanceof URL){f=i.referrer}let E=stripURLForReferrer(f);const p=stripURLForReferrer(f,true);if(E.toString().length>4096){E=p}const y=sameOrigin(i,E);const S=isURLPotentiallyTrustworthy(E)&&!isURLPotentiallyTrustworthy(i.url);switch(g){case"origin":return p!=null?p:stripURLForReferrer(f,true);case"unsafe-url":return E;case"same-origin":return y?p:"no-referrer";case"origin-when-cross-origin":return y?E:p;case"strict-origin-when-cross-origin":{const g=requestCurrentURL(i);if(sameOrigin(E,g)){return E}if(isURLPotentiallyTrustworthy(E)&&!isURLPotentiallyTrustworthy(g)){return"no-referrer"}return p}case"strict-origin":case"no-referrer-when-downgrade":default:return S?"no-referrer":p}}function stripURLForReferrer(i,g){z(i instanceof URL);if(i.protocol==="file:"||i.protocol==="about:"||i.protocol==="blank:"){return"no-referrer"}i.username="";i.password="";i.hash="";if(g){i.pathname="";i.search=""}return i}function isURLPotentiallyTrustworthy(i){if(!(i instanceof URL)){return false}if(i.href==="about:blank"||i.href==="about:srcdoc"){return true}if(i.protocol==="data:")return true;if(i.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(i.origin);function isOriginPotentiallyTrustworthy(i){if(i==null||i==="null")return false;const g=new URL(i);if(g.protocol==="https:"||g.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(g.hostname)||(g.hostname==="localhost"||g.hostname.includes("localhost."))||g.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(i,g){if(Pe===undefined){return true}const f=parseMetadata(g);if(f==="no metadata"){return true}if(f.length===0){return true}const E=getStrongestMetadata(f);const p=filterMetadataListByAlgorithm(f,E);for(const g of p){const f=g.algo;const E=g.hash;let p=Pe.createHash(f).update(i).digest("base64");if(p[p.length-1]==="="){if(p[p.length-2]==="="){p=p.slice(0,-2)}else{p=p.slice(0,-1)}}if(compareBase64Mixed(p,E)){return true}}return false}const $t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(i){const g=[];let f=true;for(const E of i.split(" ")){f=false;const i=$t.exec(E);if(i===null||i.groups===undefined||i.groups.algo===undefined){continue}const p=i.groups.algo.toLowerCase();if(re.includes(p)){g.push(i.groups)}}if(f===true){return"no metadata"}return g}function getStrongestMetadata(i){let g=i[0].algo;if(g[3]==="5"){return g}for(let f=1;f<i.length;++f){const E=i[f];if(E.algo[3]==="5"){g="sha512";break}else if(g[3]==="3"){continue}else if(E.algo[3]==="3"){g="sha384"}}return g}function filterMetadataListByAlgorithm(i,g){if(i.length===1){return i}let f=0;for(let E=0;E<i.length;++E){if(i[E].algo===g){i[f++]=i[E]}}i.length=f;return i}function compareBase64Mixed(i,g){if(i.length!==g.length){return false}for(let f=0;f<i.length;++f){if(i[f]!==g[f]){if(i[f]==="+"&&g[f]==="-"||i[f]==="/"&&g[f]==="_"){continue}return false}}return true}function tryUpgradeRequestToAPotentiallyTrustworthyURL(i){}function sameOrigin(i,g){if(i.origin===g.origin&&i.origin==="null"){return true}if(i.protocol===g.protocol&&i.hostname===g.hostname&&i.port===g.port){return true}return false}function createDeferredPromise(){let i;let g;const f=new Promise(((f,E)=>{i=f;g=E}));return{promise:f,resolve:i,reject:g}}function isAborted(i){return i.controller.state==="aborted"}function isCancelled(i){return i.controller.state==="aborted"||i.controller.state==="terminated"}const tn={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(tn,null);function normalizeMethod(i){return tn[i.toLowerCase()]??i}function serializeJavascriptValueToJSONString(i){const g=JSON.stringify(i);if(g===undefined){throw new TypeError("Value is not JSON serializable")}z(typeof g==="string");return g}const sn=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(i,g,f){const E={index:0,kind:f,target:i};const p={next(){if(Object.getPrototypeOf(this)!==p){throw new TypeError(`'next' called on an object that does not implement interface ${g} Iterator.`)}const{index:i,kind:f,target:y}=E;const b=y();const S=b.length;if(i>=S){return{value:undefined,done:true}}const J=b[i];E.index=i+1;return iteratorResult(J,f)},[Symbol.toStringTag]:`${g} Iterator`};Object.setPrototypeOf(p,sn);return Object.setPrototypeOf({},p)}function iteratorResult(i,g){let f;switch(g){case"key":{f=i[0];break}case"value":{f=i[1];break}case"key+value":{f=i;break}}return{value:f,done:false}}async function fullyReadBody(i,g,f){const E=g;const p=f;let y;try{y=i.stream.getReader()}catch(i){p(i);return}try{const i=await readAllBytes(y);E(i)}catch(i){p(i)}}let nn=globalThis.ReadableStream;function isReadableStreamLike(i){if(!nn){nn=f(3774).ReadableStream}return i instanceof nn||i[Symbol.toStringTag]==="ReadableStream"&&typeof i.tee==="function"}const rn=65535;function isomorphicDecode(i){if(i.length<rn){return String.fromCharCode(...i)}return i.reduce(((i,g)=>i+String.fromCharCode(g)),"")}function readableStreamClose(i){try{i.close()}catch(i){if(!i.message.includes("Controller is already closed")){throw i}}}function isomorphicEncode(i){for(let g=0;g<i.length;g++){z(i.charCodeAt(g)<=255)}return i}async function readAllBytes(i){const g=[];let f=0;while(true){const{done:E,value:p}=await i.read();if(E){return Buffer.concat(g,f)}if(!ee(p)){throw new TypeError("Received non-Uint8Array chunk")}g.push(p);f+=p.length}}function urlIsLocal(i){z("protocol"in i);const g=i.protocol;return g==="about:"||g==="blob:"||g==="data:"}function urlHasHttpsScheme(i){if(typeof i==="string"){return i.startsWith("https:")}return i.protocol==="https:"}function urlIsHttpHttpsScheme(i){z("protocol"in i);const g=i.protocol;return g==="http:"||g==="https:"}const An=Object.hasOwn||((i,g)=>Object.prototype.hasOwnProperty.call(i,g));i.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:$,toUSVString:Z,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:J,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:An,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:tn,parseMetadata:parseMetadata}},4222:(i,g,f)=>{const{types:E}=f(9023);const{hasOwn:p,toUSVString:y}=f(5523);const b={};b.converters={};b.util={};b.errors={};b.errors.exception=function(i){return new TypeError(`${i.header}: ${i.message}`)};b.errors.conversionFailed=function(i){const g=i.types.length===1?"":" one of";const f=`${i.argument} could not be converted to`+`${g}: ${i.types.join(", ")}.`;return b.errors.exception({header:i.prefix,message:f})};b.errors.invalidArgument=function(i){return b.errors.exception({header:i.prefix,message:`"${i.value}" is an invalid ${i.type}.`})};b.brandCheck=function(i,g,f=undefined){if(f?.strict!==false&&!(i instanceof g)){throw new TypeError("Illegal invocation")}else{return i?.[Symbol.toStringTag]===g.prototype[Symbol.toStringTag]}};b.argumentLengthCheck=function({length:i},g,f){if(i<g){throw b.errors.exception({message:`${g} argument${g!==1?"s":""} required, `+`but${i?" only":""} ${i} found.`,...f})}};b.illegalConstructor=function(){throw b.errors.exception({header:"TypeError",message:"Illegal constructor"})};b.util.Type=function(i){switch(typeof i){case"undefined":return"Undefined";case"boolean":return"Boolean";case"string":return"String";case"symbol":return"Symbol";case"number":return"Number";case"bigint":return"BigInt";case"function":case"object":{if(i===null){return"Null"}return"Object"}}};b.util.ConvertToInt=function(i,g,f,E={}){let p;let y;if(g===64){p=Math.pow(2,53)-1;if(f==="unsigned"){y=0}else{y=Math.pow(-2,53)+1}}else if(f==="unsigned"){y=0;p=Math.pow(2,g)-1}else{y=Math.pow(-2,g)-1;p=Math.pow(2,g-1)-1}let S=Number(i);if(S===0){S=0}if(E.enforceRange===true){if(Number.isNaN(S)||S===Number.POSITIVE_INFINITY||S===Number.NEGATIVE_INFINITY){throw b.errors.exception({header:"Integer conversion",message:`Could not convert ${i} to an integer.`})}S=b.util.IntegerPart(S);if(S<y||S>p){throw b.errors.exception({header:"Integer conversion",message:`Value must be between ${y}-${p}, got ${S}.`})}return S}if(!Number.isNaN(S)&&E.clamp===true){S=Math.min(Math.max(S,y),p);if(Math.floor(S)%2===0){S=Math.floor(S)}else{S=Math.ceil(S)}return S}if(Number.isNaN(S)||S===0&&Object.is(0,S)||S===Number.POSITIVE_INFINITY||S===Number.NEGATIVE_INFINITY){return 0}S=b.util.IntegerPart(S);S=S%Math.pow(2,g);if(f==="signed"&&S>=Math.pow(2,g)-1){return S-Math.pow(2,g)}return S};b.util.IntegerPart=function(i){const g=Math.floor(Math.abs(i));if(i<0){return-1*g}return g};b.sequenceConverter=function(i){return g=>{if(b.util.Type(g)!=="Object"){throw b.errors.exception({header:"Sequence",message:`Value of type ${b.util.Type(g)} is not an Object.`})}const f=g?.[Symbol.iterator]?.();const E=[];if(f===undefined||typeof f.next!=="function"){throw b.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:g,value:p}=f.next();if(g){break}E.push(i(p))}return E}};b.recordConverter=function(i,g){return f=>{if(b.util.Type(f)!=="Object"){throw b.errors.exception({header:"Record",message:`Value of type ${b.util.Type(f)} is not an Object.`})}const p={};if(!E.isProxy(f)){const E=Object.keys(f);for(const y of E){const E=i(y);const b=g(f[y]);p[E]=b}return p}const y=Reflect.ownKeys(f);for(const E of y){const y=Reflect.getOwnPropertyDescriptor(f,E);if(y?.enumerable){const y=i(E);const b=g(f[E]);p[y]=b}}return p}};b.interfaceConverter=function(i){return(g,f={})=>{if(f.strict!==false&&!(g instanceof i)){throw b.errors.exception({header:i.name,message:`Expected ${g} to be an instance of ${i.name}.`})}return g}};b.dictionaryConverter=function(i){return g=>{const f=b.util.Type(g);const E={};if(f==="Null"||f==="Undefined"){return E}else if(f!=="Object"){throw b.errors.exception({header:"Dictionary",message:`Expected ${g} to be one of: Null, Undefined, Object.`})}for(const f of i){const{key:i,defaultValue:y,required:S,converter:J}=f;if(S===true){if(!p(g,i)){throw b.errors.exception({header:"Dictionary",message:`Missing required key "${i}".`})}}let Z=g[i];const $=p(f,"defaultValue");if($&&Z!==null){Z=Z??y}if(S||$||Z!==undefined){Z=J(Z);if(f.allowedValues&&!f.allowedValues.includes(Z)){throw b.errors.exception({header:"Dictionary",message:`${Z} is not an accepted type. Expected one of ${f.allowedValues.join(", ")}.`})}E[i]=Z}}return E}};b.nullableConverter=function(i){return g=>{if(g===null){return g}return i(g)}};b.converters.DOMString=function(i,g={}){if(i===null&&g.legacyNullToEmptyString){return""}if(typeof i==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(i)};b.converters.ByteString=function(i){const g=b.converters.DOMString(i);for(let i=0;i<g.length;i++){if(g.charCodeAt(i)>255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${i} has a value of ${g.charCodeAt(i)} which is greater than 255.`)}}return g};b.converters.USVString=y;b.converters.boolean=function(i){const g=Boolean(i);return g};b.converters.any=function(i){return i};b.converters["long long"]=function(i){const g=b.util.ConvertToInt(i,64,"signed");return g};b.converters["unsigned long long"]=function(i){const g=b.util.ConvertToInt(i,64,"unsigned");return g};b.converters["unsigned long"]=function(i){const g=b.util.ConvertToInt(i,32,"unsigned");return g};b.converters["unsigned short"]=function(i,g){const f=b.util.ConvertToInt(i,16,"unsigned",g);return f};b.converters.ArrayBuffer=function(i,g={}){if(b.util.Type(i)!=="Object"||!E.isAnyArrayBuffer(i)){throw b.errors.conversionFailed({prefix:`${i}`,argument:`${i}`,types:["ArrayBuffer"]})}if(g.allowShared===false&&E.isSharedArrayBuffer(i)){throw b.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return i};b.converters.TypedArray=function(i,g,f={}){if(b.util.Type(i)!=="Object"||!E.isTypedArray(i)||i.constructor.name!==g.name){throw b.errors.conversionFailed({prefix:`${g.name}`,argument:`${i}`,types:[g.name]})}if(f.allowShared===false&&E.isSharedArrayBuffer(i.buffer)){throw b.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return i};b.converters.DataView=function(i,g={}){if(b.util.Type(i)!=="Object"||!E.isDataView(i)){throw b.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(g.allowShared===false&&E.isSharedArrayBuffer(i.buffer)){throw b.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return i};b.converters.BufferSource=function(i,g={}){if(E.isAnyArrayBuffer(i)){return b.converters.ArrayBuffer(i,g)}if(E.isTypedArray(i)){return b.converters.TypedArray(i,i.constructor)}if(E.isDataView(i)){return b.converters.DataView(i,g)}throw new TypeError(`Could not convert ${i} to a BufferSource.`)};b.converters["sequence<ByteString>"]=b.sequenceConverter(b.converters.ByteString);b.converters["sequence<sequence<ByteString>>"]=b.sequenceConverter(b.converters["sequence<ByteString>"]);b.converters["record<ByteString, ByteString>"]=b.recordConverter(b.converters.ByteString,b.converters.ByteString);i.exports={webidl:b}},396:i=>{function getEncoding(i){if(!i){return"failure"}switch(i.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}i.exports={getEncoding:getEncoding}},2160:(i,g,f)=>{const{staticPropertyDescriptors:E,readOperation:p,fireAProgressEvent:y}=f(165);const{kState:b,kError:S,kResult:J,kEvents:Z,kAborted:$}=f(6812);const{webidl:z}=f(4222);const{kEnumerableProperty:ee}=f(3440);class FileReader extends EventTarget{constructor(){super();this[b]="empty";this[J]=null;this[S]=null;this[Z]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(i){z.brandCheck(this,FileReader);z.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});i=z.converters.Blob(i,{strict:false});p(this,i,"ArrayBuffer")}readAsBinaryString(i){z.brandCheck(this,FileReader);z.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});i=z.converters.Blob(i,{strict:false});p(this,i,"BinaryString")}readAsText(i,g=undefined){z.brandCheck(this,FileReader);z.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});i=z.converters.Blob(i,{strict:false});if(g!==undefined){g=z.converters.DOMString(g)}p(this,i,"Text",g)}readAsDataURL(i){z.brandCheck(this,FileReader);z.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});i=z.converters.Blob(i,{strict:false});p(this,i,"DataURL")}abort(){if(this[b]==="empty"||this[b]==="done"){this[J]=null;return}if(this[b]==="loading"){this[b]="done";this[J]=null}this[$]=true;y("abort",this);if(this[b]!=="loading"){y("loadend",this)}}get readyState(){z.brandCheck(this,FileReader);switch(this[b]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){z.brandCheck(this,FileReader);return this[J]}get error(){z.brandCheck(this,FileReader);return this[S]}get onloadend(){z.brandCheck(this,FileReader);return this[Z].loadend}set onloadend(i){z.brandCheck(this,FileReader);if(this[Z].loadend){this.removeEventListener("loadend",this[Z].loadend)}if(typeof i==="function"){this[Z].loadend=i;this.addEventListener("loadend",i)}else{this[Z].loadend=null}}get onerror(){z.brandCheck(this,FileReader);return this[Z].error}set onerror(i){z.brandCheck(this,FileReader);if(this[Z].error){this.removeEventListener("error",this[Z].error)}if(typeof i==="function"){this[Z].error=i;this.addEventListener("error",i)}else{this[Z].error=null}}get onloadstart(){z.brandCheck(this,FileReader);return this[Z].loadstart}set onloadstart(i){z.brandCheck(this,FileReader);if(this[Z].loadstart){this.removeEventListener("loadstart",this[Z].loadstart)}if(typeof i==="function"){this[Z].loadstart=i;this.addEventListener("loadstart",i)}else{this[Z].loadstart=null}}get onprogress(){z.brandCheck(this,FileReader);return this[Z].progress}set onprogress(i){z.brandCheck(this,FileReader);if(this[Z].progress){this.removeEventListener("progress",this[Z].progress)}if(typeof i==="function"){this[Z].progress=i;this.addEventListener("progress",i)}else{this[Z].progress=null}}get onload(){z.brandCheck(this,FileReader);return this[Z].load}set onload(i){z.brandCheck(this,FileReader);if(this[Z].load){this.removeEventListener("load",this[Z].load)}if(typeof i==="function"){this[Z].load=i;this.addEventListener("load",i)}else{this[Z].load=null}}get onabort(){z.brandCheck(this,FileReader);return this[Z].abort}set onabort(i){z.brandCheck(this,FileReader);if(this[Z].abort){this.removeEventListener("abort",this[Z].abort)}if(typeof i==="function"){this[Z].abort=i;this.addEventListener("abort",i)}else{this[Z].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:E,LOADING:E,DONE:E,readAsArrayBuffer:ee,readAsBinaryString:ee,readAsText:ee,readAsDataURL:ee,abort:ee,readyState:ee,result:ee,error:ee,onloadstart:ee,onprogress:ee,onload:ee,onabort:ee,onerror:ee,onloadend:ee,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:E,LOADING:E,DONE:E});i.exports={FileReader:FileReader}},5976:(i,g,f)=>{const{webidl:E}=f(4222);const p=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(i,g={}){i=E.converters.DOMString(i);g=E.converters.ProgressEventInit(g??{});super(i,g);this[p]={lengthComputable:g.lengthComputable,loaded:g.loaded,total:g.total}}get lengthComputable(){E.brandCheck(this,ProgressEvent);return this[p].lengthComputable}get loaded(){E.brandCheck(this,ProgressEvent);return this[p].loaded}get total(){E.brandCheck(this,ProgressEvent);return this[p].total}}E.converters.ProgressEventInit=E.dictionaryConverter([{key:"lengthComputable",converter:E.converters.boolean,defaultValue:false},{key:"loaded",converter:E.converters["unsigned long long"],defaultValue:0},{key:"total",converter:E.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:E.converters.boolean,defaultValue:false},{key:"cancelable",converter:E.converters.boolean,defaultValue:false},{key:"composed",converter:E.converters.boolean,defaultValue:false}]);i.exports={ProgressEvent:ProgressEvent}},6812:i=>{i.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},165:(i,g,f)=>{const{kState:E,kError:p,kResult:y,kAborted:b,kLastProgressEventFired:S}=f(6812);const{ProgressEvent:J}=f(5976);const{getEncoding:Z}=f(396);const{DOMException:$}=f(7326);const{serializeAMimeType:z,parseMIMEType:ee}=f(4322);const{types:re}=f(9023);const{StringDecoder:Pe}=f(3193);const{btoa:$t}=f(181);const tn={enumerable:true,writable:false,configurable:false};function readOperation(i,g,f,J){if(i[E]==="loading"){throw new $("Invalid state","InvalidStateError")}i[E]="loading";i[y]=null;i[p]=null;const Z=g.stream();const z=Z.getReader();const ee=[];let Pe=z.read();let $t=true;(async()=>{while(!i[b]){try{const{done:Z,value:$}=await Pe;if($t&&!i[b]){queueMicrotask((()=>{fireAProgressEvent("loadstart",i)}))}$t=false;if(!Z&&re.isUint8Array($)){ee.push($);if((i[S]===undefined||Date.now()-i[S]>=50)&&!i[b]){i[S]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",i)}))}Pe=z.read()}else if(Z){queueMicrotask((()=>{i[E]="done";try{const E=packageData(ee,f,g.type,J);if(i[b]){return}i[y]=E;fireAProgressEvent("load",i)}catch(g){i[p]=g;fireAProgressEvent("error",i)}if(i[E]!=="loading"){fireAProgressEvent("loadend",i)}}));break}}catch(g){if(i[b]){return}queueMicrotask((()=>{i[E]="done";i[p]=g;fireAProgressEvent("error",i);if(i[E]!=="loading"){fireAProgressEvent("loadend",i)}}));break}}})()}function fireAProgressEvent(i,g){const f=new J(i,{bubbles:false,cancelable:false});g.dispatchEvent(f)}function packageData(i,g,f,E){switch(g){case"DataURL":{let g="data:";const E=ee(f||"application/octet-stream");if(E!=="failure"){g+=z(E)}g+=";base64,";const p=new Pe("latin1");for(const f of i){g+=$t(p.write(f))}g+=$t(p.end());return g}case"Text":{let g="failure";if(E){g=Z(E)}if(g==="failure"&&f){const i=ee(f);if(i!=="failure"){g=Z(i.parameters.get("charset"))}}if(g==="failure"){g="UTF-8"}return decode(i,g)}case"ArrayBuffer":{const g=combineByteSequences(i);return g.buffer}case"BinaryString":{let g="";const f=new Pe("latin1");for(const E of i){g+=f.write(E)}g+=f.end();return g}}}function decode(i,g){const f=combineByteSequences(i);const E=BOMSniffing(f);let p=0;if(E!==null){g=E;p=E==="UTF-8"?3:2}const y=f.slice(p);return new TextDecoder(g).decode(y)}function BOMSniffing(i){const[g,f,E]=i;if(g===239&&f===187&&E===191){return"UTF-8"}else if(g===254&&f===255){return"UTF-16BE"}else if(g===255&&f===254){return"UTF-16LE"}return null}function combineByteSequences(i){const g=i.reduce(((i,g)=>i+g.byteLength),0);let f=0;return i.reduce(((i,g)=>{i.set(g,f);f+=g.byteLength;return i}),new Uint8Array(g))}i.exports={staticPropertyDescriptors:tn,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},2581:(i,g,f)=>{const E=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:p}=f(8707);const y=f(9965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new y)}function setGlobalDispatcher(i){if(!i||typeof i.dispatch!=="function"){throw new p("Argument agent must implement Agent")}Object.defineProperty(globalThis,E,{value:i,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[E]}i.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},8840:i=>{i.exports=class DecoratorHandler{constructor(i){this.handler=i}onConnect(...i){return this.handler.onConnect(...i)}onError(...i){return this.handler.onError(...i)}onUpgrade(...i){return this.handler.onUpgrade(...i)}onHeaders(...i){return this.handler.onHeaders(...i)}onData(...i){return this.handler.onData(...i)}onComplete(...i){return this.handler.onComplete(...i)}onBodySent(...i){return this.handler.onBodySent(...i)}}},8299:(i,g,f)=>{const E=f(3440);const{kBodyUsed:p}=f(6443);const y=f(2613);const{InvalidArgumentError:b}=f(8707);const S=f(4434);const J=[300,301,302,303,307,308];const Z=Symbol("body");class BodyAsyncIterable{constructor(i){this[Z]=i;this[p]=false}async*[Symbol.asyncIterator](){y(!this[p],"disturbed");this[p]=true;yield*this[Z]}}class RedirectHandler{constructor(i,g,f,J){if(g!=null&&(!Number.isInteger(g)||g<0)){throw new b("maxRedirections must be a positive number")}E.validateHandler(J,f.method,f.upgrade);this.dispatch=i;this.location=null;this.abort=null;this.opts={...f,maxRedirections:0};this.maxRedirections=g;this.handler=J;this.history=[];if(E.isStream(this.opts.body)){if(E.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){y(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[p]=false;S.prototype.on.call(this.opts.body,"data",(function(){this[p]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&E.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(i){this.abort=i;this.handler.onConnect(i,{history:this.history})}onUpgrade(i,g,f){this.handler.onUpgrade(i,g,f)}onError(i){this.handler.onError(i)}onHeaders(i,g,f,p){this.location=this.history.length>=this.maxRedirections||E.isDisturbed(this.opts.body)?null:parseLocation(i,g);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(i,g,f,p)}const{origin:y,pathname:b,search:S}=E.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const J=S?`${b}${S}`:b;this.opts.headers=cleanRequestHeaders(this.opts.headers,i===303,this.opts.origin!==y);this.opts.path=J;this.opts.origin=y;this.opts.maxRedirections=0;this.opts.query=null;if(i===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(i){if(this.location){}else{return this.handler.onData(i)}}onComplete(i){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(i)}}onBodySent(i){if(this.handler.onBodySent){this.handler.onBodySent(i)}}}function parseLocation(i,g){if(J.indexOf(i)===-1){return null}for(let i=0;i<g.length;i+=2){if(g[i].toString().toLowerCase()==="location"){return g[i+1]}}}function shouldRemoveHeader(i,g,f){if(i.length===4){return E.headerNameToString(i)==="host"}if(g&&E.headerNameToString(i).startsWith("content-")){return true}if(f&&(i.length===13||i.length===6||i.length===19)){const g=E.headerNameToString(i);return g==="authorization"||g==="cookie"||g==="proxy-authorization"}return false}function cleanRequestHeaders(i,g,f){const E=[];if(Array.isArray(i)){for(let p=0;p<i.length;p+=2){if(!shouldRemoveHeader(i[p],g,f)){E.push(i[p],i[p+1])}}}else if(i&&typeof i==="object"){for(const p of Object.keys(i)){if(!shouldRemoveHeader(p,g,f)){E.push(p,i[p])}}}else{y(i==null,"headers must be an object or an array")}return E}i.exports=RedirectHandler},3573:(i,g,f)=>{const E=f(2613);const{kRetryHandlerDefaultRetry:p}=f(6443);const{RequestRetryError:y}=f(8707);const{isDisturbed:b,parseHeaders:S,parseRangeHeader:J}=f(3440);function calculateRetryAfterHeader(i){const g=Date.now();const f=new Date(i).getTime()-g;return f}class RetryHandler{constructor(i,g){const{retryOptions:f,...E}=i;const{retry:y,maxRetries:b,maxTimeout:S,minTimeout:J,timeoutFactor:Z,methods:$,errorCodes:z,retryAfter:ee,statusCodes:re}=f??{};this.dispatch=g.dispatch;this.handler=g.handler;this.opts=E;this.abort=null;this.aborted=false;this.retryOpts={retry:y??RetryHandler[p],retryAfter:ee??true,maxTimeout:S??30*1e3,timeout:J??500,timeoutFactor:Z??2,maxRetries:b??5,methods:$??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:re??[500,502,503,504,429],errorCodes:z??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((i=>{this.aborted=true;if(this.abort){this.abort(i)}else{this.reason=i}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(i,g,f){if(this.handler.onUpgrade){this.handler.onUpgrade(i,g,f)}}onConnect(i){if(this.aborted){i(this.reason)}else{this.abort=i}}onBodySent(i){if(this.handler.onBodySent)return this.handler.onBodySent(i)}static[p](i,{state:g,opts:f},E){const{statusCode:p,code:y,headers:b}=i;const{method:S,retryOptions:J}=f;const{maxRetries:Z,timeout:$,maxTimeout:z,timeoutFactor:ee,statusCodes:re,errorCodes:Pe,methods:$t}=J;let{counter:tn,currentTimeout:sn}=g;sn=sn!=null&&sn>0?sn:$;if(y&&y!=="UND_ERR_REQ_RETRY"&&y!=="UND_ERR_SOCKET"&&!Pe.includes(y)){E(i);return}if(Array.isArray($t)&&!$t.includes(S)){E(i);return}if(p!=null&&Array.isArray(re)&&!re.includes(p)){E(i);return}if(tn>Z){E(i);return}let nn=b!=null&&b["retry-after"];if(nn){nn=Number(nn);nn=isNaN(nn)?calculateRetryAfterHeader(nn):nn*1e3}const rn=nn>0?Math.min(nn,z):Math.min(sn*ee**tn,z);g.currentTimeout=rn;setTimeout((()=>E(null)),rn)}onHeaders(i,g,f,p){const b=S(g);this.retryCount+=1;if(i>=300){this.abort(new y("Request failed",i,{headers:b,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(i!==206){return true}const g=J(b["content-range"]);if(!g){this.abort(new y("Content-Range mismatch",i,{headers:b,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==b.etag){this.abort(new y("ETag mismatch",i,{headers:b,count:this.retryCount}));return false}const{start:p,size:S,end:Z=S}=g;E(this.start===p,"content-range mismatch");E(this.end==null||this.end===Z,"content-range mismatch");this.resume=f;return true}if(this.end==null){if(i===206){const y=J(b["content-range"]);if(y==null){return this.handler.onHeaders(i,g,f,p)}const{start:S,size:Z,end:$=Z}=y;E(S!=null&&Number.isFinite(S)&&this.start!==S,"content-range mismatch");E(Number.isFinite(S));E($!=null&&Number.isFinite($)&&this.end!==$,"invalid content-length");this.start=S;this.end=$}if(this.end==null){const i=b["content-length"];this.end=i!=null?Number(i):null}E(Number.isFinite(this.start));E(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=f;this.etag=b.etag!=null?b.etag:null;return this.handler.onHeaders(i,g,f,p)}const Z=new y("Request failed",i,{headers:b,count:this.retryCount});this.abort(Z);return false}onData(i){this.start+=i.length;return this.handler.onData(i)}onComplete(i){this.retryCount=0;return this.handler.onComplete(i)}onError(i){if(this.aborted||b(this.opts.body)){return this.handler.onError(i)}this.retryOpts.retry(i,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(i){if(i!=null||this.aborted||b(this.opts.body)){return this.handler.onError(i)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(i){this.handler.onError(i)}}}}i.exports=RetryHandler},4415:(i,g,f)=>{const E=f(8299);function createRedirectInterceptor({maxRedirections:i}){return g=>function Intercept(f,p){const{maxRedirections:y=i}=f;if(!y){return g(f,p)}const b=new E(g,y,f,p);f={...f,maxRedirections:0};return g(f,b)}}i.exports=createRedirectInterceptor},2824:(i,g,f)=>{Object.defineProperty(g,"__esModule",{value:true});g.SPECIAL_HEADERS=g.HEADER_STATE=g.MINOR=g.MAJOR=g.CONNECTION_TOKEN_CHARS=g.HEADER_CHARS=g.TOKEN=g.STRICT_TOKEN=g.HEX=g.URL_CHAR=g.STRICT_URL_CHAR=g.USERINFO_CHARS=g.MARK=g.ALPHANUM=g.NUM=g.HEX_MAP=g.NUM_MAP=g.ALPHA=g.FINISH=g.H_METHOD_MAP=g.METHOD_MAP=g.METHODS_RTSP=g.METHODS_ICE=g.METHODS_HTTP=g.METHODS=g.LENIENT_FLAGS=g.FLAGS=g.TYPE=g.ERROR=void 0;const E=f(172);var p;(function(i){i[i["OK"]=0]="OK";i[i["INTERNAL"]=1]="INTERNAL";i[i["STRICT"]=2]="STRICT";i[i["LF_EXPECTED"]=3]="LF_EXPECTED";i[i["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";i[i["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";i[i["INVALID_METHOD"]=6]="INVALID_METHOD";i[i["INVALID_URL"]=7]="INVALID_URL";i[i["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";i[i["INVALID_VERSION"]=9]="INVALID_VERSION";i[i["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";i[i["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";i[i["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";i[i["INVALID_STATUS"]=13]="INVALID_STATUS";i[i["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";i[i["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";i[i["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";i[i["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";i[i["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";i[i["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";i[i["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";i[i["PAUSED"]=21]="PAUSED";i[i["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";i[i["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";i[i["USER"]=24]="USER"})(p=g.ERROR||(g.ERROR={}));var y;(function(i){i[i["BOTH"]=0]="BOTH";i[i["REQUEST"]=1]="REQUEST";i[i["RESPONSE"]=2]="RESPONSE"})(y=g.TYPE||(g.TYPE={}));var b;(function(i){i[i["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";i[i["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";i[i["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";i[i["CHUNKED"]=8]="CHUNKED";i[i["UPGRADE"]=16]="UPGRADE";i[i["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";i[i["SKIPBODY"]=64]="SKIPBODY";i[i["TRAILING"]=128]="TRAILING";i[i["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(b=g.FLAGS||(g.FLAGS={}));var S;(function(i){i[i["HEADERS"]=1]="HEADERS";i[i["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";i[i["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(S=g.LENIENT_FLAGS||(g.LENIENT_FLAGS={}));var J;(function(i){i[i["DELETE"]=0]="DELETE";i[i["GET"]=1]="GET";i[i["HEAD"]=2]="HEAD";i[i["POST"]=3]="POST";i[i["PUT"]=4]="PUT";i[i["CONNECT"]=5]="CONNECT";i[i["OPTIONS"]=6]="OPTIONS";i[i["TRACE"]=7]="TRACE";i[i["COPY"]=8]="COPY";i[i["LOCK"]=9]="LOCK";i[i["MKCOL"]=10]="MKCOL";i[i["MOVE"]=11]="MOVE";i[i["PROPFIND"]=12]="PROPFIND";i[i["PROPPATCH"]=13]="PROPPATCH";i[i["SEARCH"]=14]="SEARCH";i[i["UNLOCK"]=15]="UNLOCK";i[i["BIND"]=16]="BIND";i[i["REBIND"]=17]="REBIND";i[i["UNBIND"]=18]="UNBIND";i[i["ACL"]=19]="ACL";i[i["REPORT"]=20]="REPORT";i[i["MKACTIVITY"]=21]="MKACTIVITY";i[i["CHECKOUT"]=22]="CHECKOUT";i[i["MERGE"]=23]="MERGE";i[i["M-SEARCH"]=24]="M-SEARCH";i[i["NOTIFY"]=25]="NOTIFY";i[i["SUBSCRIBE"]=26]="SUBSCRIBE";i[i["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";i[i["PATCH"]=28]="PATCH";i[i["PURGE"]=29]="PURGE";i[i["MKCALENDAR"]=30]="MKCALENDAR";i[i["LINK"]=31]="LINK";i[i["UNLINK"]=32]="UNLINK";i[i["SOURCE"]=33]="SOURCE";i[i["PRI"]=34]="PRI";i[i["DESCRIBE"]=35]="DESCRIBE";i[i["ANNOUNCE"]=36]="ANNOUNCE";i[i["SETUP"]=37]="SETUP";i[i["PLAY"]=38]="PLAY";i[i["PAUSE"]=39]="PAUSE";i[i["TEARDOWN"]=40]="TEARDOWN";i[i["GET_PARAMETER"]=41]="GET_PARAMETER";i[i["SET_PARAMETER"]=42]="SET_PARAMETER";i[i["REDIRECT"]=43]="REDIRECT";i[i["RECORD"]=44]="RECORD";i[i["FLUSH"]=45]="FLUSH"})(J=g.METHODS||(g.METHODS={}));g.METHODS_HTTP=[J.DELETE,J.GET,J.HEAD,J.POST,J.PUT,J.CONNECT,J.OPTIONS,J.TRACE,J.COPY,J.LOCK,J.MKCOL,J.MOVE,J.PROPFIND,J.PROPPATCH,J.SEARCH,J.UNLOCK,J.BIND,J.REBIND,J.UNBIND,J.ACL,J.REPORT,J.MKACTIVITY,J.CHECKOUT,J.MERGE,J["M-SEARCH"],J.NOTIFY,J.SUBSCRIBE,J.UNSUBSCRIBE,J.PATCH,J.PURGE,J.MKCALENDAR,J.LINK,J.UNLINK,J.PRI,J.SOURCE];g.METHODS_ICE=[J.SOURCE];g.METHODS_RTSP=[J.OPTIONS,J.DESCRIBE,J.ANNOUNCE,J.SETUP,J.PLAY,J.PAUSE,J.TEARDOWN,J.GET_PARAMETER,J.SET_PARAMETER,J.REDIRECT,J.RECORD,J.FLUSH,J.GET,J.POST];g.METHOD_MAP=E.enumToMap(J);g.H_METHOD_MAP={};Object.keys(g.METHOD_MAP).forEach((i=>{if(/^H/.test(i)){g.H_METHOD_MAP[i]=g.METHOD_MAP[i]}}));var Z;(function(i){i[i["SAFE"]=0]="SAFE";i[i["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";i[i["UNSAFE"]=2]="UNSAFE"})(Z=g.FINISH||(g.FINISH={}));g.ALPHA=[];for(let i="A".charCodeAt(0);i<="Z".charCodeAt(0);i++){g.ALPHA.push(String.fromCharCode(i));g.ALPHA.push(String.fromCharCode(i+32))}g.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};g.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};g.NUM=["0","1","2","3","4","5","6","7","8","9"];g.ALPHANUM=g.ALPHA.concat(g.NUM);g.MARK=["-","_",".","!","~","*","'","(",")"];g.USERINFO_CHARS=g.ALPHANUM.concat(g.MARK).concat(["%",";",":","&","=","+","$",","]);g.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(g.ALPHANUM);g.URL_CHAR=g.STRICT_URL_CHAR.concat(["\t","\f"]);for(let i=128;i<=255;i++){g.URL_CHAR.push(i)}g.HEX=g.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);g.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(g.ALPHANUM);g.TOKEN=g.STRICT_TOKEN.concat([" "]);g.HEADER_CHARS=["\t"];for(let i=32;i<=255;i++){if(i!==127){g.HEADER_CHARS.push(i)}}g.CONNECTION_TOKEN_CHARS=g.HEADER_CHARS.filter((i=>i!==44));g.MAJOR=g.NUM_MAP;g.MINOR=g.MAJOR;var $;(function(i){i[i["GENERAL"]=0]="GENERAL";i[i["CONNECTION"]=1]="CONNECTION";i[i["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";i[i["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";i[i["UPGRADE"]=4]="UPGRADE";i[i["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";i[i["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";i[i["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";i[i["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})($=g.HEADER_STATE||(g.HEADER_STATE={}));g.SPECIAL_HEADERS={connection:$.CONNECTION,"content-length":$.CONTENT_LENGTH,"proxy-connection":$.CONNECTION,"transfer-encoding":$.TRANSFER_ENCODING,upgrade:$.UPGRADE}},3870:i=>{i.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9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g0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGB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IRAMIwtBogEhEAwiC0GjASEQDCELQaQBIRAMIAtBpQEhEAwfC0GmASEQDB4LQacBIRAMHQtBqAEhEAwcC0GpASEQDBsLQaoBIRAMGgtBqwEhEAwZC0GsASEQDBgLQa0BIRAMFwtBrgEhEAwWC0EBIRAMFQtBrwEhEAwUC0GwASEQDBMLQbEBIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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ACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsg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ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQ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AQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEM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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},172:(i,g)=>{Object.defineProperty(g,"__esModule",{value:true});g.enumToMap=void 0;function enumToMap(i){const g={};Object.keys(i).forEach((f=>{const E=i[f];if(typeof E==="number"){g[f]=E}}));return g}g.enumToMap=enumToMap},7501:(i,g,f)=>{const{kClients:E}=f(6443);const p=f(9965);const{kAgent:y,kMockAgentSet:b,kMockAgentGet:S,kDispatches:J,kIsMockActive:Z,kNetConnect:$,kGetNetConnect:z,kOptions:ee,kFactory:re}=f(1117);const Pe=f(7365);const $t=f(4004);const{matchValue:tn,buildMockOptions:sn}=f(3397);const{InvalidArgumentError:nn,UndiciError:rn}=f(8707);const An=f(992);const on=f(1529);const an=f(6142);class FakeWeakRef{constructor(i){this.value=i}deref(){return this.value}}class MockAgent extends An{constructor(i){super(i);this[$]=true;this[Z]=true;if(i&&i.agent&&typeof i.agent.dispatch!=="function"){throw new nn("Argument opts.agent must implement Agent")}const g=i&&i.agent?i.agent:new p(i);this[y]=g;this[E]=g[E];this[ee]=sn(i)}get(i){let g=this[S](i);if(!g){g=this[re](i);this[b](i,g)}return g}dispatch(i,g){this.get(i.origin);return this[y].dispatch(i,g)}async close(){await this[y].close();this[E].clear()}deactivate(){this[Z]=false}activate(){this[Z]=true}enableNetConnect(i){if(typeof i==="string"||typeof i==="function"||i instanceof RegExp){if(Array.isArray(this[$])){this[$].push(i)}else{this[$]=[i]}}else if(typeof i==="undefined"){this[$]=true}else{throw new nn("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[$]=false}get isMockActive(){return this[Z]}[b](i,g){this[E].set(i,new FakeWeakRef(g))}[re](i){const g=Object.assign({agent:this},this[ee]);return this[ee]&&this[ee].connections===1?new Pe(i,g):new $t(i,g)}[S](i){const g=this[E].get(i);if(g){return g.deref()}if(typeof i!=="string"){const g=this[re]("http://localhost:9999");this[b](i,g);return g}for(const[g,f]of Array.from(this[E])){const E=f.deref();if(E&&typeof g!=="string"&&tn(g,i)){const g=this[re](i);this[b](i,g);g[J]=E[J];return g}}}[z](){return this[$]}pendingInterceptors(){const i=this[E];return Array.from(i.entries()).flatMap((([i,g])=>g.deref()[J].map((g=>({...g,origin:i}))))).filter((({pending:i})=>i))}assertNoPendingInterceptors({pendingInterceptorsFormatter:i=new an}={}){const g=this.pendingInterceptors();if(g.length===0){return}const f=new on("interceptor","interceptors").pluralize(g.length);throw new rn(`\n${f.count} ${f.noun} ${f.is} pending:\n\n${i.format(g)}\n`.trim())}}i.exports=MockAgent},7365:(i,g,f)=>{const{promisify:E}=f(9023);const p=f(6197);const{buildMockDispatch:y}=f(3397);const{kDispatches:b,kMockAgent:S,kClose:J,kOriginalClose:Z,kOrigin:$,kOriginalDispatch:z,kConnected:ee}=f(1117);const{MockInterceptor:re}=f(1511);const Pe=f(6443);const{InvalidArgumentError:$t}=f(8707);class MockClient extends p{constructor(i,g){super(i,g);if(!g||!g.agent||typeof g.agent.dispatch!=="function"){throw new $t("Argument opts.agent must implement Agent")}this[S]=g.agent;this[$]=i;this[b]=[];this[ee]=1;this[z]=this.dispatch;this[Z]=this.close.bind(this);this.dispatch=y.call(this);this.close=this[J]}get[Pe.kConnected](){return this[ee]}intercept(i){return new re(i,this[b])}async[J](){await E(this[Z])();this[ee]=0;this[S][Pe.kClients].delete(this[$])}}i.exports=MockClient},2429:(i,g,f)=>{const{UndiciError:E}=f(8707);class MockNotMatchedError extends E{constructor(i){super(i);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=i||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}i.exports={MockNotMatchedError:MockNotMatchedError}},1511:(i,g,f)=>{const{getResponseData:E,buildKey:p,addMockDispatch:y}=f(3397);const{kDispatches:b,kDispatchKey:S,kDefaultHeaders:J,kDefaultTrailers:Z,kContentLength:$,kMockDispatch:z}=f(1117);const{InvalidArgumentError:ee}=f(8707);const{buildURL:re}=f(3440);class MockScope{constructor(i){this[z]=i}delay(i){if(typeof i!=="number"||!Number.isInteger(i)||i<=0){throw new ee("waitInMs must be a valid integer > 0")}this[z].delay=i;return this}persist(){this[z].persist=true;return this}times(i){if(typeof i!=="number"||!Number.isInteger(i)||i<=0){throw new ee("repeatTimes must be a valid integer > 0")}this[z].times=i;return this}}class MockInterceptor{constructor(i,g){if(typeof i!=="object"){throw new ee("opts must be an object")}if(typeof i.path==="undefined"){throw new ee("opts.path must be defined")}if(typeof i.method==="undefined"){i.method="GET"}if(typeof i.path==="string"){if(i.query){i.path=re(i.path,i.query)}else{const g=new URL(i.path,"data://");i.path=g.pathname+g.search}}if(typeof i.method==="string"){i.method=i.method.toUpperCase()}this[S]=p(i);this[b]=g;this[J]={};this[Z]={};this[$]=false}createMockScopeDispatchData(i,g,f={}){const p=E(g);const y=this[$]?{"content-length":p.length}:{};const b={...this[J],...y,...f.headers};const S={...this[Z],...f.trailers};return{statusCode:i,data:g,headers:b,trailers:S}}validateReplyParameters(i,g,f){if(typeof i==="undefined"){throw new ee("statusCode must be defined")}if(typeof g==="undefined"){throw new ee("data must be defined")}if(typeof f!=="object"){throw new ee("responseOptions must be an object")}}reply(i){if(typeof i==="function"){const wrappedDefaultsCallback=g=>{const f=i(g);if(typeof f!=="object"){throw new ee("reply options callback must return an object")}const{statusCode:E,data:p="",responseOptions:y={}}=f;this.validateReplyParameters(E,p,y);return{...this.createMockScopeDispatchData(E,p,y)}};const g=y(this[b],this[S],wrappedDefaultsCallback);return new MockScope(g)}const[g,f="",E={}]=[...arguments];this.validateReplyParameters(g,f,E);const p=this.createMockScopeDispatchData(g,f,E);const J=y(this[b],this[S],p);return new MockScope(J)}replyWithError(i){if(typeof i==="undefined"){throw new ee("error must be defined")}const g=y(this[b],this[S],{error:i});return new MockScope(g)}defaultReplyHeaders(i){if(typeof i==="undefined"){throw new ee("headers must be defined")}this[J]=i;return this}defaultReplyTrailers(i){if(typeof i==="undefined"){throw new ee("trailers must be defined")}this[Z]=i;return this}replyContentLength(){this[$]=true;return this}}i.exports.MockInterceptor=MockInterceptor;i.exports.MockScope=MockScope},4004:(i,g,f)=>{const{promisify:E}=f(9023);const p=f(5076);const{buildMockDispatch:y}=f(3397);const{kDispatches:b,kMockAgent:S,kClose:J,kOriginalClose:Z,kOrigin:$,kOriginalDispatch:z,kConnected:ee}=f(1117);const{MockInterceptor:re}=f(1511);const Pe=f(6443);const{InvalidArgumentError:$t}=f(8707);class MockPool extends p{constructor(i,g){super(i,g);if(!g||!g.agent||typeof g.agent.dispatch!=="function"){throw new $t("Argument opts.agent must implement Agent")}this[S]=g.agent;this[$]=i;this[b]=[];this[ee]=1;this[z]=this.dispatch;this[Z]=this.close.bind(this);this.dispatch=y.call(this);this.close=this[J]}get[Pe.kConnected](){return this[ee]}intercept(i){return new re(i,this[b])}async[J](){await E(this[Z])();this[ee]=0;this[S][Pe.kClients].delete(this[$])}}i.exports=MockPool},1117:i=>{i.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},3397:(i,g,f)=>{const{MockNotMatchedError:E}=f(2429);const{kDispatches:p,kMockAgent:y,kOriginalDispatch:b,kOrigin:S,kGetNetConnect:J}=f(1117);const{buildURL:Z,nop:$}=f(3440);const{STATUS_CODES:z}=f(8611);const{types:{isPromise:ee}}=f(9023);function matchValue(i,g){if(typeof i==="string"){return i===g}if(i instanceof RegExp){return i.test(g)}if(typeof i==="function"){return i(g)===true}return false}function lowerCaseEntries(i){return Object.fromEntries(Object.entries(i).map((([i,g])=>[i.toLocaleLowerCase(),g])))}function getHeaderByName(i,g){if(Array.isArray(i)){for(let f=0;f<i.length;f+=2){if(i[f].toLocaleLowerCase()===g.toLocaleLowerCase()){return i[f+1]}}return undefined}else if(typeof i.get==="function"){return i.get(g)}else{return lowerCaseEntries(i)[g.toLocaleLowerCase()]}}function buildHeadersFromArray(i){const g=i.slice();const f=[];for(let i=0;i<g.length;i+=2){f.push([g[i],g[i+1]])}return Object.fromEntries(f)}function matchHeaders(i,g){if(typeof i.headers==="function"){if(Array.isArray(g)){g=buildHeadersFromArray(g)}return i.headers(g?lowerCaseEntries(g):{})}if(typeof i.headers==="undefined"){return true}if(typeof g!=="object"||typeof i.headers!=="object"){return false}for(const[f,E]of Object.entries(i.headers)){const i=getHeaderByName(g,f);if(!matchValue(E,i)){return false}}return true}function safeUrl(i){if(typeof i!=="string"){return i}const g=i.split("?");if(g.length!==2){return i}const f=new URLSearchParams(g.pop());f.sort();return[...g,f.toString()].join("?")}function matchKey(i,{path:g,method:f,body:E,headers:p}){const y=matchValue(i.path,g);const b=matchValue(i.method,f);const S=typeof i.body!=="undefined"?matchValue(i.body,E):true;const J=matchHeaders(i,p);return y&&b&&S&&J}function getResponseData(i){if(Buffer.isBuffer(i)){return i}else if(typeof i==="object"){return JSON.stringify(i)}else{return i.toString()}}function getMockDispatch(i,g){const f=g.query?Z(g.path,g.query):g.path;const p=typeof f==="string"?safeUrl(f):f;let y=i.filter((({consumed:i})=>!i)).filter((({path:i})=>matchValue(safeUrl(i),p)));if(y.length===0){throw new E(`Mock dispatch not matched for path '${p}'`)}y=y.filter((({method:i})=>matchValue(i,g.method)));if(y.length===0){throw new E(`Mock dispatch not matched for method '${g.method}'`)}y=y.filter((({body:i})=>typeof i!=="undefined"?matchValue(i,g.body):true));if(y.length===0){throw new E(`Mock dispatch not matched for body '${g.body}'`)}y=y.filter((i=>matchHeaders(i,g.headers)));if(y.length===0){throw new E(`Mock dispatch not matched for headers '${typeof g.headers==="object"?JSON.stringify(g.headers):g.headers}'`)}return y[0]}function addMockDispatch(i,g,f){const E={timesInvoked:0,times:1,persist:false,consumed:false};const p=typeof f==="function"?{callback:f}:{...f};const y={...E,...g,pending:true,data:{error:null,...p}};i.push(y);return y}function deleteMockDispatch(i,g){const f=i.findIndex((i=>{if(!i.consumed){return false}return matchKey(i,g)}));if(f!==-1){i.splice(f,1)}}function buildKey(i){const{path:g,method:f,body:E,headers:p,query:y}=i;return{path:g,method:f,body:E,headers:p,query:y}}function generateKeyValues(i){return Object.entries(i).reduce(((i,[g,f])=>[...i,Buffer.from(`${g}`),Array.isArray(f)?f.map((i=>Buffer.from(`${i}`))):Buffer.from(`${f}`)]),[])}function getStatusText(i){return z[i]||"unknown"}async function getResponse(i){const g=[];for await(const f of i){g.push(f)}return Buffer.concat(g).toString("utf8")}function mockDispatch(i,g){const f=buildKey(i);const E=getMockDispatch(this[p],f);E.timesInvoked++;if(E.data.callback){E.data={...E.data,...E.data.callback(i)}}const{data:{statusCode:y,data:b,headers:S,trailers:J,error:Z},delay:z,persist:re}=E;const{timesInvoked:Pe,times:$t}=E;E.consumed=!re&&Pe>=$t;E.pending=Pe<$t;if(Z!==null){deleteMockDispatch(this[p],f);g.onError(Z);return true}if(typeof z==="number"&&z>0){setTimeout((()=>{handleReply(this[p])}),z)}else{handleReply(this[p])}function handleReply(E,p=b){const Z=Array.isArray(i.headers)?buildHeadersFromArray(i.headers):i.headers;const z=typeof p==="function"?p({...i,headers:Z}):p;if(ee(z)){z.then((i=>handleReply(E,i)));return}const re=getResponseData(z);const Pe=generateKeyValues(S);const $t=generateKeyValues(J);g.abort=$;g.onHeaders(y,Pe,resume,getStatusText(y));g.onData(Buffer.from(re));g.onComplete($t);deleteMockDispatch(E,f)}function resume(){}return true}function buildMockDispatch(){const i=this[y];const g=this[S];const f=this[b];return function dispatch(p,y){if(i.isMockActive){try{mockDispatch.call(this,p,y)}catch(b){if(b instanceof E){const S=i[J]();if(S===false){throw new E(`${b.message}: subsequent request to origin ${g} was not allowed (net.connect disabled)`)}if(checkNetConnect(S,g)){f.call(this,p,y)}else{throw new E(`${b.message}: subsequent request to origin ${g} was not allowed (net.connect is not enabled for this origin)`)}}else{throw b}}}else{f.call(this,p,y)}}}function checkNetConnect(i,g){const f=new URL(g);if(i===true){return true}else if(Array.isArray(i)&&i.some((i=>matchValue(i,f.host)))){return true}return false}function buildMockOptions(i){if(i){const{agent:g,...f}=i;return f}}i.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},6142:(i,g,f)=>{const{Transform:E}=f(2203);const{Console:p}=f(4236);i.exports=class PendingInterceptorsFormatter{constructor({disableColors:i}={}){this.transform=new E({transform(i,g,f){f(null,i)}});this.logger=new p({stdout:this.transform,inspectOptions:{colors:!i&&!process.env.CI}})}format(i){const g=i.map((({method:i,path:g,data:{statusCode:f},persist:E,times:p,timesInvoked:y,origin:b})=>({Method:i,Origin:b,Path:g,"Status code":f,Persistent:E?"✅":"❌",Invocations:y,Remaining:E?Infinity:p-y})));this.logger.table(g);return this.transform.read().toString()}}},1529:i=>{const g={pronoun:"it",is:"is",was:"was",this:"this"};const f={pronoun:"they",is:"are",was:"were",this:"these"};i.exports=class Pluralizer{constructor(i,g){this.singular=i;this.plural=g}pluralize(i){const E=i===1;const p=E?g:f;const y=E?this.singular:this.plural;return{...p,count:i,noun:y}}}},4869:i=>{const g=2048;const f=g-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(g);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&f)===this.bottom}push(i){this.list[this.top]=i;this.top=this.top+1&f}shift(){const i=this.list[this.bottom];if(i===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&f;return i}}i.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(i){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(i)}shift(){const i=this.tail;const g=i.shift();if(i.isEmpty()&&i.next!==null){this.tail=i.next}return g}}},8640:(i,g,f)=>{const E=f(1);const p=f(4869);const{kConnected:y,kSize:b,kRunning:S,kPending:J,kQueued:Z,kBusy:$,kFree:z,kUrl:ee,kClose:re,kDestroy:Pe,kDispatch:$t}=f(6443);const tn=f(4622);const sn=Symbol("clients");const nn=Symbol("needDrain");const rn=Symbol("queue");const An=Symbol("closed resolve");const on=Symbol("onDrain");const an=Symbol("onConnect");const cn=Symbol("onDisconnect");const ln=Symbol("onConnectionError");const un=Symbol("get dispatcher");const hn=Symbol("add client");const dn=Symbol("remove client");const gn=Symbol("stats");class PoolBase extends E{constructor(){super();this[rn]=new p;this[sn]=[];this[Z]=0;const i=this;this[on]=function onDrain(g,f){const E=i[rn];let p=false;while(!p){const g=E.shift();if(!g){break}i[Z]--;p=!this.dispatch(g.opts,g.handler)}this[nn]=p;if(!this[nn]&&i[nn]){i[nn]=false;i.emit("drain",g,[i,...f])}if(i[An]&&E.isEmpty()){Promise.all(i[sn].map((i=>i.close()))).then(i[An])}};this[an]=(g,f)=>{i.emit("connect",g,[i,...f])};this[cn]=(g,f,E)=>{i.emit("disconnect",g,[i,...f],E)};this[ln]=(g,f,E)=>{i.emit("connectionError",g,[i,...f],E)};this[gn]=new tn(this)}get[$](){return this[nn]}get[y](){return this[sn].filter((i=>i[y])).length}get[z](){return this[sn].filter((i=>i[y]&&!i[nn])).length}get[J](){let i=this[Z];for(const{[J]:g}of this[sn]){i+=g}return i}get[S](){let i=0;for(const{[S]:g}of this[sn]){i+=g}return i}get[b](){let i=this[Z];for(const{[b]:g}of this[sn]){i+=g}return i}get stats(){return this[gn]}async[re](){if(this[rn].isEmpty()){return Promise.all(this[sn].map((i=>i.close())))}else{return new Promise((i=>{this[An]=i}))}}async[Pe](i){while(true){const g=this[rn].shift();if(!g){break}g.handler.onError(i)}return Promise.all(this[sn].map((g=>g.destroy(i))))}[$t](i,g){const f=this[un]();if(!f){this[nn]=true;this[rn].push({opts:i,handler:g});this[Z]++}else if(!f.dispatch(i,g)){f[nn]=true;this[nn]=!this[un]()}return!this[nn]}[hn](i){i.on("drain",this[on]).on("connect",this[an]).on("disconnect",this[cn]).on("connectionError",this[ln]);this[sn].push(i);if(this[nn]){process.nextTick((()=>{if(this[nn]){this[on](i[ee],[this,i])}}))}return this}[dn](i){i.close((()=>{const g=this[sn].indexOf(i);if(g!==-1){this[sn].splice(g,1)}}));this[nn]=this[sn].some((i=>!i[nn]&&i.closed!==true&&i.destroyed!==true))}}i.exports={PoolBase:PoolBase,kClients:sn,kNeedDrain:nn,kAddClient:hn,kRemoveClient:dn,kGetDispatcher:un}},4622:(i,g,f)=>{const{kFree:E,kConnected:p,kPending:y,kQueued:b,kRunning:S,kSize:J}=f(6443);const Z=Symbol("pool");class PoolStats{constructor(i){this[Z]=i}get connected(){return this[Z][p]}get free(){return this[Z][E]}get pending(){return this[Z][y]}get queued(){return this[Z][b]}get running(){return this[Z][S]}get size(){return this[Z][J]}}i.exports=PoolStats},5076:(i,g,f)=>{const{PoolBase:E,kClients:p,kNeedDrain:y,kAddClient:b,kGetDispatcher:S}=f(8640);const J=f(6197);const{InvalidArgumentError:Z}=f(8707);const $=f(3440);const{kUrl:z,kInterceptors:ee}=f(6443);const re=f(9136);const Pe=Symbol("options");const $t=Symbol("connections");const tn=Symbol("factory");function defaultFactory(i,g){return new J(i,g)}class Pool extends E{constructor(i,{connections:g,factory:f=defaultFactory,connect:E,connectTimeout:y,tls:b,maxCachedSessions:S,socketPath:J,autoSelectFamily:sn,autoSelectFamilyAttemptTimeout:nn,allowH2:rn,...An}={}){super();if(g!=null&&(!Number.isFinite(g)||g<0)){throw new Z("invalid connections")}if(typeof f!=="function"){throw new Z("factory must be a function.")}if(E!=null&&typeof E!=="function"&&typeof E!=="object"){throw new Z("connect must be a function or an object")}if(typeof E!=="function"){E=re({...b,maxCachedSessions:S,allowH2:rn,socketPath:J,timeout:y,...$.nodeHasAutoSelectFamily&&sn?{autoSelectFamily:sn,autoSelectFamilyAttemptTimeout:nn}:undefined,...E})}this[ee]=An.interceptors&&An.interceptors.Pool&&Array.isArray(An.interceptors.Pool)?An.interceptors.Pool:[];this[$t]=g||null;this[z]=$.parseOrigin(i);this[Pe]={...$.deepClone(An),connect:E,allowH2:rn};this[Pe].interceptors=An.interceptors?{...An.interceptors}:undefined;this[tn]=f;this.on("connectionError",((i,g,f)=>{for(const i of g){const g=this[p].indexOf(i);if(g!==-1){this[p].splice(g,1)}}}))}[S](){let i=this[p].find((i=>!i[y]));if(i){return i}if(!this[$t]||this[p].length<this[$t]){i=this[tn](this[z],this[Pe]);this[b](i)}return i}}i.exports=Pool},2720:(i,g,f)=>{const{kProxy:E,kClose:p,kDestroy:y,kInterceptors:b}=f(6443);const{URL:S}=f(7016);const J=f(9965);const Z=f(5076);const $=f(1);const{InvalidArgumentError:z,RequestAbortedError:ee}=f(8707);const re=f(9136);const Pe=Symbol("proxy agent");const $t=Symbol("proxy client");const tn=Symbol("proxy headers");const sn=Symbol("request tls settings");const nn=Symbol("proxy tls settings");const rn=Symbol("connect endpoint function");function defaultProtocolPort(i){return i==="https:"?443:80}function buildProxyOptions(i){if(typeof i==="string"){i={uri:i}}if(!i||!i.uri){throw new z("Proxy opts.uri is mandatory")}return{uri:i.uri,protocol:i.protocol||"https"}}function defaultFactory(i,g){return new Z(i,g)}class ProxyAgent extends ${constructor(i){super(i);this[E]=buildProxyOptions(i);this[Pe]=new J(i);this[b]=i.interceptors&&i.interceptors.ProxyAgent&&Array.isArray(i.interceptors.ProxyAgent)?i.interceptors.ProxyAgent:[];if(typeof i==="string"){i={uri:i}}if(!i||!i.uri){throw new z("Proxy opts.uri is mandatory")}const{clientFactory:g=defaultFactory}=i;if(typeof g!=="function"){throw new z("Proxy opts.clientFactory must be a function.")}this[sn]=i.requestTls;this[nn]=i.proxyTls;this[tn]=i.headers||{};const f=new S(i.uri);const{origin:p,port:y,host:Z,username:$,password:An}=f;if(i.auth&&i.token){throw new z("opts.auth cannot be used in combination with opts.token")}else if(i.auth){this[tn]["proxy-authorization"]=`Basic ${i.auth}`}else if(i.token){this[tn]["proxy-authorization"]=i.token}else if($&&An){this[tn]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent($)}:${decodeURIComponent(An)}`).toString("base64")}`}const on=re({...i.proxyTls});this[rn]=re({...i.requestTls});this[$t]=g(f,{connect:on});this[Pe]=new J({...i,connect:async(i,g)=>{let f=i.host;if(!i.port){f+=`:${defaultProtocolPort(i.protocol)}`}try{const{socket:E,statusCode:b}=await this[$t].connect({origin:p,port:y,path:f,signal:i.signal,headers:{...this[tn],host:Z}});if(b!==200){E.on("error",(()=>{})).destroy();g(new ee(`Proxy response (${b}) !== 200 when HTTP Tunneling`))}if(i.protocol!=="https:"){g(null,E);return}let S;if(this[sn]){S=this[sn].servername}else{S=i.servername}this[rn]({...i,servername:S,httpSocket:E},g)}catch(i){g(i)}}})}dispatch(i,g){const{host:f}=new S(i.origin);const E=buildHeaders(i.headers);throwIfProxyAuthIsSent(E);return this[Pe].dispatch({...i,headers:{...E,host:f}},g)}async[p](){await this[Pe].close();await this[$t].close()}async[y](){await this[Pe].destroy();await this[$t].destroy()}}function buildHeaders(i){if(Array.isArray(i)){const g={};for(let f=0;f<i.length;f+=2){g[i[f]]=i[f+1]}return g}return i}function throwIfProxyAuthIsSent(i){const g=i&&Object.keys(i).find((i=>i.toLowerCase()==="proxy-authorization"));if(g){throw new z("Proxy-Authorization should be sent in ProxyAgent constructor")}}i.exports=ProxyAgent},8804:i=>{let g=Date.now();let f;const E=[];function onTimeout(){g=Date.now();let i=E.length;let f=0;while(f<i){const p=E[f];if(p.state===0){p.state=g+p.delay}else if(p.state>0&&g>=p.state){p.state=-1;p.callback(p.opaque)}if(p.state===-1){p.state=-2;if(f!==i-1){E[f]=E.pop()}else{E.pop()}i-=1}else{f+=1}}if(E.length>0){refreshTimeout()}}function refreshTimeout(){if(f&&f.refresh){f.refresh()}else{clearTimeout(f);f=setTimeout(onTimeout,1e3);if(f.unref){f.unref()}}}class Timeout{constructor(i,g,f){this.callback=i;this.delay=g;this.opaque=f;this.state=-2;this.refresh()}refresh(){if(this.state===-2){E.push(this);if(!f||E.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}i.exports={setTimeout(i,g,f){return g<1e3?setTimeout(i,g,f):new Timeout(i,g,f)},clearTimeout(i){if(i instanceof Timeout){i.clear()}else{clearTimeout(i)}}}},8550:(i,g,f)=>{const E=f(1637);const{uid:p,states:y}=f(5913);const{kReadyState:b,kSentClose:S,kByteParser:J,kReceivedClose:Z}=f(2933);const{fireEvent:$,failWebsocketConnection:z}=f(3574);const{CloseEvent:ee}=f(6255);const{makeRequest:re}=f(5194);const{fetching:Pe}=f(2315);const{Headers:$t}=f(6349);const{getGlobalDispatcher:tn}=f(2581);const{kHeadersList:sn}=f(6443);const nn={};nn.open=E.channel("undici:websocket:open");nn.close=E.channel("undici:websocket:close");nn.socketError=E.channel("undici:websocket:socket_error");let rn;try{rn=f(6982)}catch{}function establishWebSocketConnection(i,g,f,E,y){const b=i;b.protocol=i.protocol==="ws:"?"http:":"https:";const S=re({urlList:[b],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(y.headers){const i=new $t(y.headers)[sn];S.headersList=i}const J=rn.randomBytes(16).toString("base64");S.headersList.append("sec-websocket-key",J);S.headersList.append("sec-websocket-version","13");for(const i of g){S.headersList.append("sec-websocket-protocol",i)}const Z="";const $=Pe({request:S,useParallelQueue:true,dispatcher:y.dispatcher??tn(),processResponse(i){if(i.type==="error"||i.status!==101){z(f,"Received network error or non-101 status code.");return}if(g.length!==0&&!i.headersList.get("Sec-WebSocket-Protocol")){z(f,"Server did not respond with sent protocols.");return}if(i.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){z(f,'Server did not set Upgrade header to "websocket".');return}if(i.headersList.get("Connection")?.toLowerCase()!=="upgrade"){z(f,'Server did not set Connection header to "upgrade".');return}const y=i.headersList.get("Sec-WebSocket-Accept");const b=rn.createHash("sha1").update(J+p).digest("base64");if(y!==b){z(f,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const $=i.headersList.get("Sec-WebSocket-Extensions");if($!==null&&$!==Z){z(f,"Received different permessage-deflate than the one set.");return}const ee=i.headersList.get("Sec-WebSocket-Protocol");if(ee!==null&&ee!==S.headersList.get("Sec-WebSocket-Protocol")){z(f,"Protocol was not set in the opening handshake.");return}i.socket.on("data",onSocketData);i.socket.on("close",onSocketClose);i.socket.on("error",onSocketError);if(nn.open.hasSubscribers){nn.open.publish({address:i.socket.address(),protocol:ee,extensions:$})}E(i)}});return $}function onSocketData(i){if(!this.ws[J].write(i)){this.pause()}}function onSocketClose(){const{ws:i}=this;const g=i[S]&&i[Z];let f=1005;let E="";const p=i[J].closingInfo;if(p){f=p.code??1005;E=p.reason}else if(!i[S]){f=1006}i[b]=y.CLOSED;$("close",i,ee,{wasClean:g,code:f,reason:E});if(nn.close.hasSubscribers){nn.close.publish({websocket:i,code:f,reason:E})}}function onSocketError(i){const{ws:g}=this;g[b]=y.CLOSING;if(nn.socketError.hasSubscribers){nn.socketError.publish(i)}this.destroy()}i.exports={establishWebSocketConnection:establishWebSocketConnection}},5913:i=>{const g="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const f={enumerable:true,writable:false,configurable:false};const E={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const p={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const y=2**16-1;const b={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const S=Buffer.allocUnsafe(0);i.exports={uid:g,staticPropertyDescriptors:f,states:E,opcodes:p,maxUnsigned16Bit:y,parserStates:b,emptyBuffer:S}},6255:(i,g,f)=>{const{webidl:E}=f(4222);const{kEnumerableProperty:p}=f(3440);const{MessagePort:y}=f(8167);class MessageEvent extends Event{#A;constructor(i,g={}){E.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});i=E.converters.DOMString(i);g=E.converters.MessageEventInit(g);super(i,g);this.#A=g}get data(){E.brandCheck(this,MessageEvent);return this.#A.data}get origin(){E.brandCheck(this,MessageEvent);return this.#A.origin}get lastEventId(){E.brandCheck(this,MessageEvent);return this.#A.lastEventId}get source(){E.brandCheck(this,MessageEvent);return this.#A.source}get ports(){E.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#A.ports)){Object.freeze(this.#A.ports)}return this.#A.ports}initMessageEvent(i,g=false,f=false,p=null,y="",b="",S=null,J=[]){E.brandCheck(this,MessageEvent);E.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(i,{bubbles:g,cancelable:f,data:p,origin:y,lastEventId:b,source:S,ports:J})}}class CloseEvent extends Event{#A;constructor(i,g={}){E.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});i=E.converters.DOMString(i);g=E.converters.CloseEventInit(g);super(i,g);this.#A=g}get wasClean(){E.brandCheck(this,CloseEvent);return this.#A.wasClean}get code(){E.brandCheck(this,CloseEvent);return this.#A.code}get reason(){E.brandCheck(this,CloseEvent);return this.#A.reason}}class ErrorEvent extends Event{#A;constructor(i,g){E.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(i,g);i=E.converters.DOMString(i);g=E.converters.ErrorEventInit(g??{});this.#A=g}get message(){E.brandCheck(this,ErrorEvent);return this.#A.message}get filename(){E.brandCheck(this,ErrorEvent);return this.#A.filename}get lineno(){E.brandCheck(this,ErrorEvent);return this.#A.lineno}get colno(){E.brandCheck(this,ErrorEvent);return this.#A.colno}get error(){E.brandCheck(this,ErrorEvent);return this.#A.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:p,origin:p,lastEventId:p,source:p,ports:p,initMessageEvent:p});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:p,code:p,wasClean:p});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:p,filename:p,lineno:p,colno:p,error:p});E.converters.MessagePort=E.interfaceConverter(y);E.converters["sequence<MessagePort>"]=E.sequenceConverter(E.converters.MessagePort);const b=[{key:"bubbles",converter:E.converters.boolean,defaultValue:false},{key:"cancelable",converter:E.converters.boolean,defaultValue:false},{key:"composed",converter:E.converters.boolean,defaultValue:false}];E.converters.MessageEventInit=E.dictionaryConverter([...b,{key:"data",converter:E.converters.any,defaultValue:null},{key:"origin",converter:E.converters.USVString,defaultValue:""},{key:"lastEventId",converter:E.converters.DOMString,defaultValue:""},{key:"source",converter:E.nullableConverter(E.converters.MessagePort),defaultValue:null},{key:"ports",converter:E.converters["sequence<MessagePort>"],get defaultValue(){return[]}}]);E.converters.CloseEventInit=E.dictionaryConverter([...b,{key:"wasClean",converter:E.converters.boolean,defaultValue:false},{key:"code",converter:E.converters["unsigned short"],defaultValue:0},{key:"reason",converter:E.converters.USVString,defaultValue:""}]);E.converters.ErrorEventInit=E.dictionaryConverter([...b,{key:"message",converter:E.converters.DOMString,defaultValue:""},{key:"filename",converter:E.converters.USVString,defaultValue:""},{key:"lineno",converter:E.converters["unsigned long"],defaultValue:0},{key:"colno",converter:E.converters["unsigned long"],defaultValue:0},{key:"error",converter:E.converters.any}]);i.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},1237:(i,g,f)=>{const{maxUnsigned16Bit:E}=f(5913);let p;try{p=f(6982)}catch{}class WebsocketFrameSend{constructor(i){this.frameData=i;this.maskKey=p.randomBytes(4)}createFrame(i){const g=this.frameData?.byteLength??0;let f=g;let p=6;if(g>E){p+=8;f=127}else if(g>125){p+=2;f=126}const y=Buffer.allocUnsafe(g+p);y[0]=y[1]=0;y[0]|=128;y[0]=(y[0]&240)+i;
17
- /*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */y[p-4]=this.maskKey[0];y[p-3]=this.maskKey[1];y[p-2]=this.maskKey[2];y[p-1]=this.maskKey[3];y[1]=f;if(f===126){y.writeUInt16BE(g,2)}else if(f===127){y[2]=y[3]=0;y.writeUIntBE(g,4,6)}y[1]|=128;for(let i=0;i<g;i++){y[p+i]=this.frameData[i]^this.maskKey[i%4]}return y}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},3171:(i,g,f)=>{const{Writable:E}=f(2203);const p=f(1637);const{parserStates:y,opcodes:b,states:S,emptyBuffer:J}=f(5913);const{kReadyState:Z,kSentClose:$,kResponse:z,kReceivedClose:ee}=f(2933);const{isValidStatusCode:re,failWebsocketConnection:Pe,websocketMessageReceived:$t}=f(3574);const{WebsocketFrameSend:tn}=f(1237);const sn={};sn.ping=p.channel("undici:websocket:ping");sn.pong=p.channel("undici:websocket:pong");class ByteParser extends E{#i=[];#o=0;#a=y.INFO;#c={};#l=[];constructor(i){super();this.ws=i}_write(i,g,f){this.#i.push(i);this.#o+=i.length;this.run(f)}run(i){while(true){if(this.#a===y.INFO){if(this.#o<2){return i()}const g=this.consume(2);this.#c.fin=(g[0]&128)!==0;this.#c.opcode=g[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==b.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==b.BINARY&&this.#c.opcode!==b.TEXT){Pe(this.ws,"Invalid frame type was fragmented.");return}const f=g[1]&127;if(f<=125){this.#c.payloadLength=f;this.#a=y.READ_DATA}else if(f===126){this.#a=y.PAYLOADLENGTH_16}else if(f===127){this.#a=y.PAYLOADLENGTH_64}if(this.#c.fragmented&&f>125){Pe(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===b.PING||this.#c.opcode===b.PONG||this.#c.opcode===b.CLOSE)&&f>125){Pe(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===b.CLOSE){if(f===1){Pe(this.ws,"Received close frame with a 1-byte body.");return}const i=this.consume(f);this.#c.closeInfo=this.parseCloseBody(false,i);if(!this.ws[$]){const i=Buffer.allocUnsafe(2);i.writeUInt16BE(this.#c.closeInfo.code,0);const g=new tn(i);this.ws[z].socket.write(g.createFrame(b.CLOSE),(i=>{if(!i){this.ws[$]=true}}))}this.ws[Z]=S.CLOSING;this.ws[ee]=true;this.end();return}else if(this.#c.opcode===b.PING){const g=this.consume(f);if(!this.ws[ee]){const i=new tn(g);this.ws[z].socket.write(i.createFrame(b.PONG));if(sn.ping.hasSubscribers){sn.ping.publish({payload:g})}}this.#a=y.INFO;if(this.#o>0){continue}else{i();return}}else if(this.#c.opcode===b.PONG){const g=this.consume(f);if(sn.pong.hasSubscribers){sn.pong.publish({payload:g})}if(this.#o>0){continue}else{i();return}}}else if(this.#a===y.PAYLOADLENGTH_16){if(this.#o<2){return i()}const g=this.consume(2);this.#c.payloadLength=g.readUInt16BE(0);this.#a=y.READ_DATA}else if(this.#a===y.PAYLOADLENGTH_64){if(this.#o<8){return i()}const g=this.consume(8);const f=g.readUInt32BE(0);if(f>2**31-1){Pe(this.ws,"Received payload length > 2^31 bytes.");return}const E=g.readUInt32BE(4);this.#c.payloadLength=(f<<8)+E;this.#a=y.READ_DATA}else if(this.#a===y.READ_DATA){if(this.#o<this.#c.payloadLength){return i()}else if(this.#o>=this.#c.payloadLength){const i=this.consume(this.#c.payloadLength);this.#l.push(i);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===b.CONTINUATION){const i=Buffer.concat(this.#l);$t(this.ws,this.#c.originalOpcode,i);this.#c={};this.#l.length=0}this.#a=y.INFO}}if(this.#o>0){continue}else{i();break}}}consume(i){if(i>this.#o){return null}else if(i===0){return J}if(this.#i[0].length===i){this.#o-=this.#i[0].length;return this.#i.shift()}const g=Buffer.allocUnsafe(i);let f=0;while(f!==i){const E=this.#i[0];const{length:p}=E;if(p+f===i){g.set(this.#i.shift(),f);break}else if(p+f>i){g.set(E.subarray(0,i-f),f);this.#i[0]=E.subarray(i-f);break}else{g.set(this.#i.shift(),f);f+=E.length}}this.#o-=i;return g}parseCloseBody(i,g){let f;if(g.length>=2){f=g.readUInt16BE(0)}if(i){if(!re(f)){return null}return{code:f}}let E=g.subarray(2);if(E[0]===239&&E[1]===187&&E[2]===191){E=E.subarray(3)}if(f!==undefined&&!re(f)){return null}try{E=new TextDecoder("utf-8",{fatal:true}).decode(E)}catch{return null}return{code:f,reason:E}}get closingInfo(){return this.#c.closeInfo}}i.exports={ByteParser:ByteParser}},2933:i=>{i.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(i,g,f)=>{const{kReadyState:E,kController:p,kResponse:y,kBinaryType:b,kWebSocketURL:S}=f(2933);const{states:J,opcodes:Z}=f(5913);const{MessageEvent:$,ErrorEvent:z}=f(6255);function isEstablished(i){return i[E]===J.OPEN}function isClosing(i){return i[E]===J.CLOSING}function isClosed(i){return i[E]===J.CLOSED}function fireEvent(i,g,f=Event,E){const p=new f(i,E);g.dispatchEvent(p)}function websocketMessageReceived(i,g,f){if(i[E]!==J.OPEN){return}let p;if(g===Z.TEXT){try{p=new TextDecoder("utf-8",{fatal:true}).decode(f)}catch{failWebsocketConnection(i,"Received invalid UTF-8 in text frame.");return}}else if(g===Z.BINARY){if(i[b]==="blob"){p=new Blob([f])}else{p=new Uint8Array(f).buffer}}fireEvent("message",i,$,{origin:i[S].origin,data:p})}function isValidSubprotocol(i){if(i.length===0){return false}for(const g of i){const i=g.charCodeAt(0);if(i<33||i>126||g==="("||g===")"||g==="<"||g===">"||g==="@"||g===","||g===";"||g===":"||g==="\\"||g==='"'||g==="/"||g==="["||g==="]"||g==="?"||g==="="||g==="{"||g==="}"||i===32||i===9){return false}}return true}function isValidStatusCode(i){if(i>=1e3&&i<1015){return i!==1004&&i!==1005&&i!==1006}return i>=3e3&&i<=4999}function failWebsocketConnection(i,g){const{[p]:f,[y]:E}=i;f.abort();if(E?.socket&&!E.socket.destroyed){E.socket.destroy()}if(g){fireEvent("error",i,z,{error:new Error(g)})}}i.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},5171:(i,g,f)=>{const{webidl:E}=f(4222);const{DOMException:p}=f(7326);const{URLSerializer:y}=f(4322);const{getGlobalOrigin:b}=f(5628);const{staticPropertyDescriptors:S,states:J,opcodes:Z,emptyBuffer:$}=f(5913);const{kWebSocketURL:z,kReadyState:ee,kController:re,kBinaryType:Pe,kResponse:$t,kSentClose:tn,kByteParser:sn}=f(2933);const{isEstablished:nn,isClosing:rn,isValidSubprotocol:An,failWebsocketConnection:on,fireEvent:an}=f(3574);const{establishWebSocketConnection:cn}=f(8550);const{WebsocketFrameSend:ln}=f(1237);const{ByteParser:un}=f(3171);const{kEnumerableProperty:hn,isBlobLike:dn}=f(3440);const{getGlobalDispatcher:gn}=f(2581);const{types:fn}=f(9023);let En=false;class WebSocket extends EventTarget{#u={open:null,error:null,close:null,message:null};#h=0;#d="";#g="";constructor(i,g=[]){super();E.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!En){En=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const f=E.converters["DOMString or sequence<DOMString> or WebSocketInit"](g);i=E.converters.USVString(i);g=f.protocols;const y=b();let S;try{S=new URL(i,y)}catch(i){throw new p(i,"SyntaxError")}if(S.protocol==="http:"){S.protocol="ws:"}else if(S.protocol==="https:"){S.protocol="wss:"}if(S.protocol!=="ws:"&&S.protocol!=="wss:"){throw new p(`Expected a ws: or wss: protocol, got ${S.protocol}`,"SyntaxError")}if(S.hash||S.href.endsWith("#")){throw new p("Got fragment","SyntaxError")}if(typeof g==="string"){g=[g]}if(g.length!==new Set(g.map((i=>i.toLowerCase()))).size){throw new p("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(g.length>0&&!g.every((i=>An(i)))){throw new p("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[z]=new URL(S.href);this[re]=cn(S,g,this,(i=>this.#f(i)),f);this[ee]=WebSocket.CONNECTING;this[Pe]="blob"}close(i=undefined,g=undefined){E.brandCheck(this,WebSocket);if(i!==undefined){i=E.converters["unsigned short"](i,{clamp:true})}if(g!==undefined){g=E.converters.USVString(g)}if(i!==undefined){if(i!==1e3&&(i<3e3||i>4999)){throw new p("invalid code","InvalidAccessError")}}let f=0;if(g!==undefined){f=Buffer.byteLength(g);if(f>123){throw new p(`Reason must be less than 123 bytes; received ${f}`,"SyntaxError")}}if(this[ee]===WebSocket.CLOSING||this[ee]===WebSocket.CLOSED){}else if(!nn(this)){on(this,"Connection was closed before it was established.");this[ee]=WebSocket.CLOSING}else if(!rn(this)){const E=new ln;if(i!==undefined&&g===undefined){E.frameData=Buffer.allocUnsafe(2);E.frameData.writeUInt16BE(i,0)}else if(i!==undefined&&g!==undefined){E.frameData=Buffer.allocUnsafe(2+f);E.frameData.writeUInt16BE(i,0);E.frameData.write(g,2,"utf-8")}else{E.frameData=$}const p=this[$t].socket;p.write(E.createFrame(Z.CLOSE),(i=>{if(!i){this[tn]=true}}));this[ee]=J.CLOSING}else{this[ee]=WebSocket.CLOSING}}send(i){E.brandCheck(this,WebSocket);E.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});i=E.converters.WebSocketSendData(i);if(this[ee]===WebSocket.CONNECTING){throw new p("Sent before connected.","InvalidStateError")}if(!nn(this)||rn(this)){return}const g=this[$t].socket;if(typeof i==="string"){const f=Buffer.from(i);const E=new ln(f);const p=E.createFrame(Z.TEXT);this.#h+=f.byteLength;g.write(p,(()=>{this.#h-=f.byteLength}))}else if(fn.isArrayBuffer(i)){const f=Buffer.from(i);const E=new ln(f);const p=E.createFrame(Z.BINARY);this.#h+=f.byteLength;g.write(p,(()=>{this.#h-=f.byteLength}))}else if(ArrayBuffer.isView(i)){const f=Buffer.from(i,i.byteOffset,i.byteLength);const E=new ln(f);const p=E.createFrame(Z.BINARY);this.#h+=f.byteLength;g.write(p,(()=>{this.#h-=f.byteLength}))}else if(dn(i)){const f=new ln;i.arrayBuffer().then((i=>{const E=Buffer.from(i);f.frameData=E;const p=f.createFrame(Z.BINARY);this.#h+=E.byteLength;g.write(p,(()=>{this.#h-=E.byteLength}))}))}}get readyState(){E.brandCheck(this,WebSocket);return this[ee]}get bufferedAmount(){E.brandCheck(this,WebSocket);return this.#h}get url(){E.brandCheck(this,WebSocket);return y(this[z])}get extensions(){E.brandCheck(this,WebSocket);return this.#g}get protocol(){E.brandCheck(this,WebSocket);return this.#d}get onopen(){E.brandCheck(this,WebSocket);return this.#u.open}set onopen(i){E.brandCheck(this,WebSocket);if(this.#u.open){this.removeEventListener("open",this.#u.open)}if(typeof i==="function"){this.#u.open=i;this.addEventListener("open",i)}else{this.#u.open=null}}get onerror(){E.brandCheck(this,WebSocket);return this.#u.error}set onerror(i){E.brandCheck(this,WebSocket);if(this.#u.error){this.removeEventListener("error",this.#u.error)}if(typeof i==="function"){this.#u.error=i;this.addEventListener("error",i)}else{this.#u.error=null}}get onclose(){E.brandCheck(this,WebSocket);return this.#u.close}set onclose(i){E.brandCheck(this,WebSocket);if(this.#u.close){this.removeEventListener("close",this.#u.close)}if(typeof i==="function"){this.#u.close=i;this.addEventListener("close",i)}else{this.#u.close=null}}get onmessage(){E.brandCheck(this,WebSocket);return this.#u.message}set onmessage(i){E.brandCheck(this,WebSocket);if(this.#u.message){this.removeEventListener("message",this.#u.message)}if(typeof i==="function"){this.#u.message=i;this.addEventListener("message",i)}else{this.#u.message=null}}get binaryType(){E.brandCheck(this,WebSocket);return this[Pe]}set binaryType(i){E.brandCheck(this,WebSocket);if(i!=="blob"&&i!=="arraybuffer"){this[Pe]="blob"}else{this[Pe]=i}}#f(i){this[$t]=i;const g=new un(this);g.on("drain",(function onParserDrain(){this.ws[$t].socket.resume()}));i.socket.ws=this;this[sn]=g;this[ee]=J.OPEN;const f=i.headersList.get("sec-websocket-extensions");if(f!==null){this.#g=f}const E=i.headersList.get("sec-websocket-protocol");if(E!==null){this.#d=E}an("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=J.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=J.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=J.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=J.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:S,OPEN:S,CLOSING:S,CLOSED:S,url:hn,readyState:hn,bufferedAmount:hn,onopen:hn,onerror:hn,onclose:hn,close:hn,onmessage:hn,binaryType:hn,send:hn,extensions:hn,protocol:hn,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:S,OPEN:S,CLOSING:S,CLOSED:S});E.converters["sequence<DOMString>"]=E.sequenceConverter(E.converters.DOMString);E.converters["DOMString or sequence<DOMString>"]=function(i){if(E.util.Type(i)==="Object"&&Symbol.iterator in i){return E.converters["sequence<DOMString>"](i)}return E.converters.DOMString(i)};E.converters.WebSocketInit=E.dictionaryConverter([{key:"protocols",converter:E.converters["DOMString or sequence<DOMString>"],get defaultValue(){return[]}},{key:"dispatcher",converter:i=>i,get defaultValue(){return gn()}},{key:"headers",converter:E.nullableConverter(E.converters.HeadersInit)}]);E.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(i){if(E.util.Type(i)==="Object"&&!(Symbol.iterator in i)){return E.converters.WebSocketInit(i)}return{protocols:E.converters["DOMString or sequence<DOMString>"](i)}};E.converters.WebSocketSendData=function(i){if(E.util.Type(i)==="Object"){if(dn(i)){return E.converters.Blob(i,{strict:false})}if(ArrayBuffer.isView(i)||fn.isAnyArrayBuffer(i)){return E.converters.BufferSource(i)}}return E.converters.USVString(i)};i.exports={WebSocket:WebSocket}},2613:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("assert")},290:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("async_hooks")},181:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("buffer")},5317:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("child_process")},4236:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("console")},6982:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("crypto")},1637:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("diagnostics_channel")},4434:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("events")},9896:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs")},8611:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http")},5675:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http2")},5692:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("https")},9278:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("net")},7598:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:crypto")},8474:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:events")},7075:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream")},7975:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util")},857:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("os")},6928:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("path")},2987:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("perf_hooks")},932:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("process")},3480:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("querystring")},2203:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream")},3774:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream/web")},3193:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("string_decoder")},3557:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("timers")},4756:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tls")},7016:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("url")},9023:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util")},8253:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util/types")},8167:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("worker_threads")},3106:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("zlib")},7182:(i,g,f)=>{const E=f(7075).Writable;const p=f(7975).inherits;const y=f(4136);const b=f(612);const S=f(2271);const J=45;const Z=Buffer.from("-");const $=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(i){if(!(this instanceof Dicer)){return new Dicer(i)}E.call(this,i);if(!i||!i.headerFirst&&typeof i.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof i.boundary==="string"){this.setBoundary(i.boundary)}else{this._bparser=undefined}this._headerFirst=i.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:i.partHwm};this._pause=false;const g=this;this._hparser=new S(i);this._hparser.on("header",(function(i){g._inHeader=false;g._part.emit("header",i)}))}p(Dicer,E);Dicer.prototype.emit=function(i){if(i==="finish"&&!this._realFinish){if(!this._finished){const i=this;process.nextTick((function(){i.emit("error",new Error("Unexpected end of multipart data"));if(i._part&&!i._ignoreData){const g=i._isPreamble?"Preamble":"Part";i._part.emit("error",new Error(g+" terminated early due to unexpected end of multipart data"));i._part.push(null);process.nextTick((function(){i._realFinish=true;i.emit("finish");i._realFinish=false}));return}i._realFinish=true;i.emit("finish");i._realFinish=false}))}}else{E.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(i,g,f){if(!this._hparser&&!this._bparser){return f()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new b(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const g=this._hparser.push(i);if(!this._inHeader&&g!==undefined&&g<i.length){i=i.slice(g)}else{return f()}}if(this._firstWrite){this._bparser.push($);this._firstWrite=false}this._bparser.push(i);if(this._pause){this._cb=f}else{f()}};Dicer.prototype.reset=function(){this._part=undefined;this._bparser=undefined;this._hparser=undefined};Dicer.prototype.setBoundary=function(i){const g=this;this._bparser=new y("\r\n--"+i);this._bparser.on("info",(function(i,f,E,p){g._oninfo(i,f,E,p)}))};Dicer.prototype._ignore=function(){if(this._part&&!this._ignoreData){this._ignoreData=true;this._part.on("error",EMPTY_FN);this._part.resume()}};Dicer.prototype._oninfo=function(i,g,f,E){let p;const y=this;let S=0;let $;let z=true;if(!this._part&&this._justMatched&&g){while(this._dashes<2&&f+S<E){if(g[f+S]===J){++S;++this._dashes}else{if(this._dashes){p=Z}this._dashes=0;break}}if(this._dashes===2){if(f+S<E&&this.listenerCount("trailer")!==0){this.emit("trailer",g.slice(f+S,E))}this.reset();this._finished=true;if(y._parts===0){y._realFinish=true;y.emit("finish");y._realFinish=false}}if(this._dashes){return}}if(this._justMatched){this._justMatched=false}if(!this._part){this._part=new b(this._partOpts);this._part._read=function(i){y._unpause()};if(this._isPreamble&&this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else if(this._isPreamble!==true&&this.listenerCount("part")!==0){this.emit("part",this._part)}else{this._ignore()}if(!this._isPreamble){this._inHeader=true}}if(g&&f<E&&!this._ignoreData){if(this._isPreamble||!this._inHeader){if(p){z=this._part.push(p)}z=this._part.push(g.slice(f,E));if(!z){this._pause=true}}else if(!this._isPreamble&&this._inHeader){if(p){this._hparser.push(p)}$=this._hparser.push(g.slice(f,E));if(!this._inHeader&&$!==undefined&&$<E){this._oninfo(false,g,f+$,E)}}}if(i){this._hparser.reset();if(this._isPreamble){this._isPreamble=false}else{if(f!==E){++this._parts;this._part.on("end",(function(){if(--y._parts===0){if(y._finished){y._realFinish=true;y.emit("finish");y._realFinish=false}else{y._unpause()}}}))}}this._part.push(null);this._part=undefined;this._ignoreData=false;this._justMatched=true;this._dashes=0}};Dicer.prototype._unpause=function(){if(!this._pause){return}this._pause=false;if(this._cb){const i=this._cb;this._cb=undefined;i()}};i.exports=Dicer},2271:(i,g,f)=>{const E=f(8474).EventEmitter;const p=f(7975).inherits;const y=f(2393);const b=f(4136);const S=Buffer.from("\r\n\r\n");const J=/\r\n/g;const Z=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(i){E.call(this);i=i||{};const g=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=y(i,"maxHeaderPairs",2e3);this.maxHeaderSize=y(i,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new b(S);this.ss.on("info",(function(i,f,E,p){if(f&&!g.maxed){if(g.nread+p-E>=g.maxHeaderSize){p=g.maxHeaderSize-g.nread+E;g.nread=g.maxHeaderSize;g.maxed=true}else{g.nread+=p-E}g.buffer+=f.toString("binary",E,p)}if(i){g._finish()}}))}p(HeaderParser,E);HeaderParser.prototype.push=function(i){const g=this.ss.push(i);if(this.finished){return g}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const i=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",i)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const i=this.buffer.split(J);const g=i.length;let f,E;for(var p=0;p<g;++p){if(i[p].length===0){continue}if(i[p][0]==="\t"||i[p][0]===" "){if(E){this.header[E][this.header[E].length-1]+=i[p];continue}}const g=i[p].indexOf(":");if(g===-1||g===0){return}f=Z.exec(i[p]);E=f[1].toLowerCase();this.header[E]=this.header[E]||[];this.header[E].push(f[2]||"");if(++this.npairs===this.maxHeaderPairs){break}}};i.exports=HeaderParser},612:(i,g,f)=>{const E=f(7975).inherits;const p=f(7075).Readable;function PartStream(i){p.call(this,i)}E(PartStream,p);PartStream.prototype._read=function(i){};i.exports=PartStream},4136:(i,g,f)=>{const E=f(8474).EventEmitter;const p=f(7975).inherits;function SBMH(i){if(typeof i==="string"){i=Buffer.from(i)}if(!Buffer.isBuffer(i)){throw new TypeError("The needle has to be a String or a Buffer.")}const g=i.length;if(g===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(g>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(g);this._lookbehind_size=0;this._needle=i;this._bufpos=0;this._lookbehind=Buffer.alloc(g);for(var f=0;f<g-1;++f){this._occ[i[f]]=g-1-f}}p(SBMH,E);SBMH.prototype.reset=function(){this._lookbehind_size=0;this.matches=0;this._bufpos=0};SBMH.prototype.push=function(i,g){if(!Buffer.isBuffer(i)){i=Buffer.from(i,"binary")}const f=i.length;this._bufpos=g||0;let E;while(E!==f&&this.matches<this.maxMatches){E=this._sbmh_feed(i)}return E};SBMH.prototype._sbmh_feed=function(i){const g=i.length;const f=this._needle;const E=f.length;const p=f[E-1];let y=-this._lookbehind_size;let b;if(y<0){while(y<0&&y<=g-E){b=this._sbmh_lookup_char(i,y+E-1);if(b===p&&this._sbmh_memcmp(i,y,E-1)){this._lookbehind_size=0;++this.matches;this.emit("info",true);return this._bufpos=y+E}y+=this._occ[b]}if(y<0){while(y<0&&!this._sbmh_memcmp(i,y,g-y)){++y}}if(y>=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const f=this._lookbehind_size+y;if(f>0){this.emit("info",false,this._lookbehind,0,f)}this._lookbehind.copy(this._lookbehind,0,f,this._lookbehind_size-f);this._lookbehind_size-=f;i.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=g;this._bufpos=g;return g}}y+=(y>=0)*this._bufpos;if(i.indexOf(f,y)!==-1){y=i.indexOf(f,y);++this.matches;if(y>0){this.emit("info",true,i,this._bufpos,y)}else{this.emit("info",true)}return this._bufpos=y+E}else{y=g-E}while(y<g&&(i[y]!==f[0]||Buffer.compare(i.subarray(y,y+g-y),f.subarray(0,g-y))!==0)){++y}if(y<g){i.copy(this._lookbehind,0,y,y+(g-y));this._lookbehind_size=g-y}if(y>0){this.emit("info",false,i,this._bufpos,y<g?y:g)}this._bufpos=g;return g};SBMH.prototype._sbmh_lookup_char=function(i,g){return g<0?this._lookbehind[this._lookbehind_size+g]:i[g]};SBMH.prototype._sbmh_memcmp=function(i,g,f){for(var E=0;E<f;++E){if(this._sbmh_lookup_char(i,g+E)!==this._needle[E]){return false}}return true};i.exports=SBMH},9581:(i,g,f)=>{const E=f(7075).Writable;const{inherits:p}=f(7975);const y=f(7182);const b=f(1192);const S=f(855);const J=f(8929);function Busboy(i){if(!(this instanceof Busboy)){return new Busboy(i)}if(typeof i!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof i.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof i.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:g,...f}=i;this.opts={autoDestroy:false,...f};E.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(g);this._finished=false}p(Busboy,E);Busboy.prototype.emit=function(i){if(i==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}E.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(i){const g=J(i["content-type"]);const f={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:i,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:g,preservePath:this.opts.preservePath};if(b.detect.test(g[0])){return new b(this,f)}if(S.detect.test(g[0])){return new S(this,f)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(i,g,f){this._parser.write(i,f)};i.exports=Busboy;i.exports["default"]=Busboy;i.exports.Busboy=Busboy;i.exports.Dicer=y},1192:(i,g,f)=>{const{Readable:E}=f(7075);const{inherits:p}=f(7975);const y=f(7182);const b=f(8929);const S=f(2747);const J=f(692);const Z=f(2393);const $=/^boundary$/i;const z=/^form-data$/i;const ee=/^charset$/i;const re=/^filename$/i;const Pe=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(i,g){let f;let E;const p=this;let $t;const tn=g.limits;const sn=g.isPartAFile||((i,g,f)=>g==="application/octet-stream"||f!==undefined);const nn=g.parsedConType||[];const rn=g.defCharset||"utf8";const An=g.preservePath;const on={highWaterMark:g.fileHwm};for(f=0,E=nn.length;f<E;++f){if(Array.isArray(nn[f])&&$.test(nn[f][0])){$t=nn[f][1];break}}function checkFinished(){if(pn===0&&Qn&&!i._done){Qn=false;p.end()}}if(typeof $t!=="string"){throw new Error("Multipart: Boundary not found")}const an=Z(tn,"fieldSize",1*1024*1024);const cn=Z(tn,"fileSize",Infinity);const ln=Z(tn,"files",Infinity);const un=Z(tn,"fields",Infinity);const hn=Z(tn,"parts",Infinity);const dn=Z(tn,"headerPairs",2e3);const gn=Z(tn,"headerSize",80*1024);let fn=0;let En=0;let pn=0;let Cn;let In;let Qn=false;this._needDrain=false;this._pause=false;this._cb=undefined;this._nparts=0;this._boy=i;const Bn={boundary:$t,maxHeaderPairs:dn,maxHeaderSize:gn,partHwm:on.highWaterMark,highWaterMark:g.highWaterMark};this.parser=new y(Bn);this.parser.on("drain",(function(){p._needDrain=false;if(p._cb&&!p._pause){const i=p._cb;p._cb=undefined;i()}})).on("part",(function onPart(g){if(++p._nparts>hn){p.parser.removeListener("part",onPart);p.parser.on("part",skipPart);i.hitPartsLimit=true;i.emit("partsLimit");return skipPart(g)}if(In){const i=In;i.emit("end");i.removeAllListeners("end")}g.on("header",(function(y){let Z;let $;let $t;let tn;let nn;let hn;let dn=0;if(y["content-type"]){$t=b(y["content-type"][0]);if($t[0]){Z=$t[0].toLowerCase();for(f=0,E=$t.length;f<E;++f){if(ee.test($t[f][0])){tn=$t[f][1].toLowerCase();break}}}}if(Z===undefined){Z="text/plain"}if(tn===undefined){tn=rn}if(y["content-disposition"]){$t=b(y["content-disposition"][0]);if(!z.test($t[0])){return skipPart(g)}for(f=0,E=$t.length;f<E;++f){if(Pe.test($t[f][0])){$=$t[f][1]}else if(re.test($t[f][0])){hn=$t[f][1];if(!An){hn=J(hn)}}}}else{return skipPart(g)}if(y["content-transfer-encoding"]){nn=y["content-transfer-encoding"][0].toLowerCase()}else{nn="7bit"}let gn,Qn;if(sn($,Z,hn)){if(fn===ln){if(!i.hitFilesLimit){i.hitFilesLimit=true;i.emit("filesLimit")}return skipPart(g)}++fn;if(i.listenerCount("file")===0){p.parser._ignore();return}++pn;const f=new FileStream(on);Cn=f;f.on("end",(function(){--pn;p._pause=false;checkFinished();if(p._cb&&!p._needDrain){const i=p._cb;p._cb=undefined;i()}}));f._read=function(i){if(!p._pause){return}p._pause=false;if(p._cb&&!p._needDrain){const i=p._cb;p._cb=undefined;i()}};i.emit("file",$,f,hn,nn,Z);gn=function(i){if((dn+=i.length)>cn){const E=cn-dn+i.length;if(E>0){f.push(i.slice(0,E))}f.truncated=true;f.bytesRead=cn;g.removeAllListeners("data");f.emit("limit");return}else if(!f.push(i)){p._pause=true}f.bytesRead=dn};Qn=function(){Cn=undefined;f.push(null)}}else{if(En===un){if(!i.hitFieldsLimit){i.hitFieldsLimit=true;i.emit("fieldsLimit")}return skipPart(g)}++En;++pn;let f="";let E=false;In=g;gn=function(i){if((dn+=i.length)>an){const p=an-(dn-i.length);f+=i.toString("binary",0,p);E=true;g.removeAllListeners("data")}else{f+=i.toString("binary")}};Qn=function(){In=undefined;if(f.length){f=S(f,"binary",tn)}i.emit("field",$,f,false,E,nn,Z);--pn;checkFinished()}}g._readableState.sync=false;g.on("data",gn);g.on("end",Qn)})).on("error",(function(i){if(Cn){Cn.emit("error",i)}}))})).on("error",(function(g){i.emit("error",g)})).on("finish",(function(){Qn=true;checkFinished()}))}Multipart.prototype.write=function(i,g){const f=this.parser.write(i);if(f&&!this._pause){g()}else{this._needDrain=!f;this._cb=g}};Multipart.prototype.end=function(){const i=this;if(i.parser.writable){i.parser.end()}else if(!i._boy._done){process.nextTick((function(){i._boy._done=true;i._boy.emit("finish")}))}};function skipPart(i){i.resume()}function FileStream(i){E.call(this,i);this.bytesRead=0;this.truncated=false}p(FileStream,E);FileStream.prototype._read=function(i){};i.exports=Multipart},855:(i,g,f)=>{const E=f(1496);const p=f(2747);const y=f(2393);const b=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(i,g){const f=g.limits;const p=g.parsedConType;this.boy=i;this.fieldSizeLimit=y(f,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=y(f,"fieldNameSize",100);this.fieldsLimit=y(f,"fields",Infinity);let S;for(var J=0,Z=p.length;J<Z;++J){if(Array.isArray(p[J])&&b.test(p[J][0])){S=p[J][1].toLowerCase();break}}if(S===undefined){S=g.defCharset||"utf8"}this.decoder=new E;this.charset=S;this._fields=0;this._state="key";this._checkingBytes=true;this._bytesKey=0;this._bytesVal=0;this._key="";this._val="";this._keyTrunc=false;this._valTrunc=false;this._hitLimit=false}UrlEncoded.prototype.write=function(i,g){if(this._fields===this.fieldsLimit){if(!this.boy.hitFieldsLimit){this.boy.hitFieldsLimit=true;this.boy.emit("fieldsLimit")}return g()}let f;let E;let y;let b=0;const S=i.length;while(b<S){if(this._state==="key"){f=E=undefined;for(y=b;y<S;++y){if(!this._checkingBytes){++b}if(i[y]===61){f=y;break}else if(i[y]===38){E=y;break}if(this._checkingBytes&&this._bytesKey===this.fieldNameSizeLimit){this._hitLimit=true;break}else if(this._checkingBytes){++this._bytesKey}}if(f!==undefined){if(f>b){this._key+=this.decoder.write(i.toString("binary",b,f))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();b=f+1}else if(E!==undefined){++this._fields;let f;const y=this._keyTrunc;if(E>b){f=this._key+=this.decoder.write(i.toString("binary",b,E))}else{f=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(f.length){this.boy.emit("field",p(f,"binary",this.charset),"",y,false)}b=E+1;if(this._fields===this.fieldsLimit){return g()}}else if(this._hitLimit){if(y>b){this._key+=this.decoder.write(i.toString("binary",b,y))}b=y;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(b<S){this._key+=this.decoder.write(i.toString("binary",b))}b=S}}else{E=undefined;for(y=b;y<S;++y){if(!this._checkingBytes){++b}if(i[y]===38){E=y;break}if(this._checkingBytes&&this._bytesVal===this.fieldSizeLimit){this._hitLimit=true;break}else if(this._checkingBytes){++this._bytesVal}}if(E!==undefined){++this._fields;if(E>b){this._val+=this.decoder.write(i.toString("binary",b,E))}this.boy.emit("field",p(this._key,"binary",this.charset),p(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();b=E+1;if(this._fields===this.fieldsLimit){return g()}}else if(this._hitLimit){if(y>b){this._val+=this.decoder.write(i.toString("binary",b,y))}b=y;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(b<S){this._val+=this.decoder.write(i.toString("binary",b))}b=S}}}g()};UrlEncoded.prototype.end=function(){if(this.boy._done){return}if(this._state==="key"&&this._key.length>0){this.boy.emit("field",p(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",p(this._key,"binary",this.charset),p(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};i.exports=UrlEncoded},1496:i=>{const g=/\+/g;const f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(i){i=i.replace(g," ");let E="";let p=0;let y=0;const b=i.length;for(;p<b;++p){if(this.buffer!==undefined){if(!f[i.charCodeAt(p)]){E+="%"+this.buffer;this.buffer=undefined;--p}else{this.buffer+=i[p];++y;if(this.buffer.length===2){E+=String.fromCharCode(parseInt(this.buffer,16));this.buffer=undefined}}}else if(i[p]==="%"){if(p>y){E+=i.substring(y,p);y=p}this.buffer="";++y}}if(y<b&&this.buffer===undefined){E+=i.substring(y)}return E};Decoder.prototype.reset=function(){this.buffer=undefined};i.exports=Decoder},692:i=>{i.exports=function basename(i){if(typeof i!=="string"){return""}for(var g=i.length-1;g>=0;--g){switch(i.charCodeAt(g)){case 47:case 92:i=i.slice(g+1);return i===".."||i==="."?"":i}}return i===".."||i==="."?"":i}},2747:function(i){const g=new TextDecoder("utf-8");const f=new Map([["utf-8",g],["utf8",g]]);function getDecoder(i){let g;while(true){switch(i){case"utf-8":case"utf8":return E.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return E.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return E.utf16le;case"base64":return E.base64;default:if(g===undefined){g=true;i=i.toLowerCase();continue}return E.other.bind(i)}}}const E={utf8:(i,g)=>{if(i.length===0){return""}if(typeof i==="string"){i=Buffer.from(i,g)}return i.utf8Slice(0,i.length)},latin1:(i,g)=>{if(i.length===0){return""}if(typeof i==="string"){return i}return i.latin1Slice(0,i.length)},utf16le:(i,g)=>{if(i.length===0){return""}if(typeof i==="string"){i=Buffer.from(i,g)}return i.ucs2Slice(0,i.length)},base64:(i,g)=>{if(i.length===0){return""}if(typeof i==="string"){i=Buffer.from(i,g)}return i.base64Slice(0,i.length)},other:(i,g)=>{if(i.length===0){return""}if(typeof i==="string"){i=Buffer.from(i,g)}if(f.has(this.toString())){try{return f.get(this).decode(i)}catch{}}return typeof i==="string"?i:i.toString()}};function decodeText(i,g,f){if(i){return getDecoder(f)(i,g)}return i}i.exports=decodeText},2393:i=>{i.exports=function getLimit(i,g,f){if(!i||i[g]===undefined||i[g]===null){return f}if(typeof i[g]!=="number"||isNaN(i[g])){throw new TypeError("Limit "+g+" is not a valid number")}return i[g]}},8929:(i,g,f)=>{const E=f(2747);const p=/%[a-fA-F0-9][a-fA-F0-9]/g;const y={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(i){return y[i]}const b=0;const S=1;const J=2;const Z=3;function parseParams(i){const g=[];let f=b;let y="";let $=false;let z=false;let ee=0;let re="";const Pe=i.length;for(var $t=0;$t<Pe;++$t){const Pe=i[$t];if(Pe==="\\"&&$){if(z){z=false}else{z=true;continue}}else if(Pe==='"'){if(!z){if($){$=false;f=b}else{$=true}continue}else{z=false}}else{if(z&&$){re+="\\"}z=false;if((f===J||f===Z)&&Pe==="'"){if(f===J){f=Z;y=re.substring(1)}else{f=S}re="";continue}else if(f===b&&(Pe==="*"||Pe==="=")&&g.length){f=Pe==="*"?J:S;g[ee]=[re,undefined];re="";continue}else if(!$&&Pe===";"){f=b;if(y){if(re.length){re=E(re.replace(p,encodedReplacer),"binary",y)}y=""}else if(re.length){re=E(re,"binary","utf8")}if(g[ee]===undefined){g[ee]=re}else{g[ee][1]=re}re="";++ee;continue}else if(!$&&(Pe===" "||Pe==="\t")){continue}}re+=Pe}if(y&&re.length){re=E(re.replace(p,encodedReplacer),"binary",y)}else if(re){re=E(re,"binary","utf8")}if(g[ee]===undefined){if(re){g[ee]=re}}else{g[ee][1]=re}return g}i.exports=parseParams},7349:(i,g,f)=>{var E=f(1127);var p=f(3301);var y=f(4454);var b=f(2223);var S=f(7103);var J=f(334);var Z=f(3142);function resolveCollection(i,g,f,E,p,y){const b=f.type==="block-map"?S.resolveBlockMap(i,g,f,E,y):f.type==="block-seq"?J.resolveBlockSeq(i,g,f,E,y):Z.resolveFlowCollection(i,g,f,E,y);const $=b.constructor;if(p==="!"||p===$.tagName){b.tag=$.tagName;return b}if(p)b.tag=p;return b}function composeCollection(i,g,f,S,J){const Z=S.tag;const $=!Z?null:g.directives.tagName(Z.source,(i=>J(Z,"TAG_RESOLVE_FAILED",i)));if(f.type==="block-seq"){const{anchor:i,newlineAfterProp:g}=S;const f=i&&Z?i.offset>Z.offset?i:Z:i??Z;if(f&&(!g||g.offset<f.offset)){const i="Missing newline after block sequence props";J(f,"MISSING_CHAR",i)}}const z=f.type==="block-map"?"map":f.type==="block-seq"?"seq":f.start.source==="{"?"map":"seq";if(!Z||!$||$==="!"||$===y.YAMLMap.tagName&&z==="map"||$===b.YAMLSeq.tagName&&z==="seq"){return resolveCollection(i,g,f,J,$)}let ee=g.schema.tags.find((i=>i.tag===$&&i.collection===z));if(!ee){const E=g.schema.knownTags[$];if(E?.collection===z){g.schema.tags.push(Object.assign({},E,{default:false}));ee=E}else{if(E){J(Z,"BAD_COLLECTION_TYPE",`${E.tag} used for ${z} collection, but expects ${E.collection??"scalar"}`,true)}else{J(Z,"TAG_RESOLVE_FAILED",`Unresolved tag: ${$}`,true)}return resolveCollection(i,g,f,J,$)}}const re=resolveCollection(i,g,f,J,$,ee);const Pe=ee.resolve?.(re,(i=>J(Z,"TAG_RESOLVE_FAILED",i)),g.options)??re;const $t=E.isNode(Pe)?Pe:new p.Scalar(Pe);$t.range=re.range;$t.tag=$;if(ee?.format)$t.format=ee.format;return $t}g.composeCollection=composeCollection},3683:(i,g,f)=>{var E=f(3021);var p=f(5937);var y=f(7788);var b=f(4631);function composeDoc(i,g,{offset:f,start:S,value:J,end:Z},$){const z=Object.assign({_directives:g},i);const ee=new E.Document(undefined,z);const re={atKey:false,atRoot:true,directives:ee.directives,options:ee.options,schema:ee.schema};const Pe=b.resolveProps(S,{indicator:"doc-start",next:J??Z?.[0],offset:f,onError:$,parentIndent:0,startOnNewline:true});if(Pe.found){ee.directives.docStart=true;if(J&&(J.type==="block-map"||J.type==="block-seq")&&!Pe.hasNewline)$(Pe.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}ee.contents=J?p.composeNode(re,J,Pe,$):p.composeEmptyNode(re,Pe.end,S,null,Pe,$);const $t=ee.contents.range[2];const tn=y.resolveEnd(Z,$t,false,$);if(tn.comment)ee.comment=tn.comment;ee.range=[f,$t,tn.offset];return ee}g.composeDoc=composeDoc},5937:(i,g,f)=>{var E=f(4065);var p=f(1127);var y=f(7349);var b=f(5413);var S=f(7788);var J=f(2599);const Z={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(i,g,f,E){const S=i.atKey;const{spaceBefore:J,comment:$,anchor:z,tag:ee}=f;let re;let Pe=true;switch(g.type){case"alias":re=composeAlias(i,g,E);if(z||ee)E(g,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":re=b.composeScalar(i,g,ee,E);if(z)re.anchor=z.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":re=y.composeCollection(Z,i,g,f,E);if(z)re.anchor=z.source.substring(1);break;default:{const p=g.type==="error"?g.message:`Unsupported token (type: ${g.type})`;E(g,"UNEXPECTED_TOKEN",p);re=composeEmptyNode(i,g.offset,undefined,null,f,E);Pe=false}}if(z&&re.anchor==="")E(z,"BAD_ALIAS","Anchor cannot be an empty string");if(S&&i.options.stringKeys&&(!p.isScalar(re)||typeof re.value!=="string"||re.tag&&re.tag!=="tag:yaml.org,2002:str")){const i="With stringKeys, all keys must be strings";E(ee??g,"NON_STRING_KEY",i)}if(J)re.spaceBefore=true;if($){if(g.type==="scalar"&&g.source==="")re.comment=$;else re.commentBefore=$}if(i.options.keepSourceTokens&&Pe)re.srcToken=g;return re}function composeEmptyNode(i,g,f,E,{spaceBefore:p,comment:y,anchor:S,tag:Z,end:$},z){const ee={type:"scalar",offset:J.emptyScalarPosition(g,f,E),indent:-1,source:""};const re=b.composeScalar(i,ee,Z,z);if(S){re.anchor=S.source.substring(1);if(re.anchor==="")z(S,"BAD_ALIAS","Anchor cannot be an empty string")}if(p)re.spaceBefore=true;if(y){re.comment=y;re.range[2]=$}return re}function composeAlias({options:i},{offset:g,source:f,end:p},y){const b=new E.Alias(f.substring(1));if(b.source==="")y(g,"BAD_ALIAS","Alias cannot be an empty string");if(b.source.endsWith(":"))y(g+f.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const J=g+f.length;const Z=S.resolveEnd(p,J,i.strict,y);b.range=[g,J,Z.offset];if(Z.comment)b.comment=Z.comment;return b}g.composeEmptyNode=composeEmptyNode;g.composeNode=composeNode},5413:(i,g,f)=>{var E=f(1127);var p=f(3301);var y=f(8913);var b=f(6842);function composeScalar(i,g,f,S){const{value:J,type:Z,comment:$,range:z}=g.type==="block-scalar"?y.resolveBlockScalar(i,g,S):b.resolveFlowScalar(g,i.options.strict,S);const ee=f?i.directives.tagName(f.source,(i=>S(f,"TAG_RESOLVE_FAILED",i))):null;let re;if(i.options.stringKeys&&i.atKey){re=i.schema[E.SCALAR]}else if(ee)re=findScalarTagByName(i.schema,J,ee,f,S);else if(g.type==="scalar")re=findScalarTagByTest(i,J,g,S);else re=i.schema[E.SCALAR];let Pe;try{const y=re.resolve(J,(i=>S(f??g,"TAG_RESOLVE_FAILED",i)),i.options);Pe=E.isScalar(y)?y:new p.Scalar(y)}catch(i){const E=i instanceof Error?i.message:String(i);S(f??g,"TAG_RESOLVE_FAILED",E);Pe=new p.Scalar(J)}Pe.range=z;Pe.source=J;if(Z)Pe.type=Z;if(ee)Pe.tag=ee;if(re.format)Pe.format=re.format;if($)Pe.comment=$;return Pe}function findScalarTagByName(i,g,f,p,y){if(f==="!")return i[E.SCALAR];const b=[];for(const g of i.tags){if(!g.collection&&g.tag===f){if(g.default&&g.test)b.push(g);else return g}}for(const i of b)if(i.test?.test(g))return i;const S=i.knownTags[f];if(S&&!S.collection){i.tags.push(Object.assign({},S,{default:false,test:undefined}));return S}y(p,"TAG_RESOLVE_FAILED",`Unresolved tag: ${f}`,f!=="tag:yaml.org,2002:str");return i[E.SCALAR]}function findScalarTagByTest({atKey:i,directives:g,schema:f},p,y,b){const S=f.tags.find((g=>(g.default===true||i&&g.default==="key")&&g.test?.test(p)))||f[E.SCALAR];if(f.compat){const i=f.compat.find((i=>i.default&&i.test?.test(p)))??f[E.SCALAR];if(S.tag!==i.tag){const f=g.tagString(S.tag);const E=g.tagString(i.tag);const p=`Value may be parsed as either ${f} or ${E}`;b(y,"TAG_RESOLVE_FAILED",p,true)}}return S}g.composeScalar=composeScalar},9984:(i,g,f)=>{var E=f(932);var p=f(1342);var y=f(3021);var b=f(1464);var S=f(1127);var J=f(3683);var Z=f(7788);function getErrorPos(i){if(typeof i==="number")return[i,i+1];if(Array.isArray(i))return i.length===2?i:[i[0],i[1]];const{offset:g,source:f}=i;return[g,g+(typeof f==="string"?f.length:1)]}function parsePrelude(i){let g="";let f=false;let E=false;for(let p=0;p<i.length;++p){const y=i[p];switch(y[0]){case"#":g+=(g===""?"":E?"\n\n":"\n")+(y.substring(1)||" ");f=true;E=false;break;case"%":if(i[p+1]?.[0]!=="#")p+=1;f=false;break;default:if(!f)E=true;f=false}}return{comment:g,afterEmptyLine:E}}class Composer{constructor(i={}){this.doc=null;this.atDirectives=false;this.prelude=[];this.errors=[];this.warnings=[];this.onError=(i,g,f,E)=>{const p=getErrorPos(i);if(E)this.warnings.push(new b.YAMLWarning(p,g,f));else this.errors.push(new b.YAMLParseError(p,g,f))};this.directives=new p.Directives({version:i.version||"1.2"});this.options=i}decorate(i,g){const{comment:f,afterEmptyLine:E}=parsePrelude(this.prelude);if(f){const p=i.contents;if(g){i.comment=i.comment?`${i.comment}\n${f}`:f}else if(E||i.directives.docStart||!p){i.commentBefore=f}else if(S.isCollection(p)&&!p.flow&&p.items.length>0){let i=p.items[0];if(S.isPair(i))i=i.key;const g=i.commentBefore;i.commentBefore=g?`${f}\n${g}`:f}else{const i=p.commentBefore;p.commentBefore=i?`${f}\n${i}`:f}}if(g){Array.prototype.push.apply(i.errors,this.errors);Array.prototype.push.apply(i.warnings,this.warnings)}else{i.errors=this.errors;i.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(i,g=false,f=-1){for(const g of i)yield*this.next(g);yield*this.end(g,f)}*next(i){if(E.env.LOG_STREAM)console.dir(i,{depth:null});switch(i.type){case"directive":this.directives.add(i.source,((g,f,E)=>{const p=getErrorPos(i);p[0]+=g;this.onError(p,"BAD_DIRECTIVE",f,E)}));this.prelude.push(i.source);this.atDirectives=true;break;case"document":{const g=J.composeDoc(this.options,this.directives,i,this.onError);if(this.atDirectives&&!g.directives.docStart)this.onError(i,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(g,false);if(this.doc)yield this.doc;this.doc=g;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(i.source);break;case"error":{const g=i.source?`${i.message}: ${JSON.stringify(i.source)}`:i.message;const f=new b.YAMLParseError(getErrorPos(i),"UNEXPECTED_TOKEN",g);if(this.atDirectives||!this.doc)this.errors.push(f);else this.doc.errors.push(f);break}case"doc-end":{if(!this.doc){const g="Unexpected doc-end without preceding document";this.errors.push(new b.YAMLParseError(getErrorPos(i),"UNEXPECTED_TOKEN",g));break}this.doc.directives.docEnd=true;const g=Z.resolveEnd(i.end,i.offset+i.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(g.comment){const i=this.doc.comment;this.doc.comment=i?`${i}\n${g.comment}`:g.comment}this.doc.range[2]=g.offset;break}default:this.errors.push(new b.YAMLParseError(getErrorPos(i),"UNEXPECTED_TOKEN",`Unsupported token ${i.type}`))}}*end(i=false,g=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(i){const i=Object.assign({_directives:this.directives},this.options);const f=new y.Document(undefined,i);if(this.atDirectives)this.onError(g,"MISSING_CHAR","Missing directives-end indicator line");f.range=[0,g,g];this.decorate(f,false);yield f}}}g.Composer=Composer},7103:(i,g,f)=>{var E=f(7165);var p=f(4454);var y=f(4631);var b=f(9499);var S=f(4051);var J=f(1187);const Z="All mapping items must start at the same column";function resolveBlockMap({composeNode:i,composeEmptyNode:g},f,$,z,ee){const re=ee?.nodeClass??p.YAMLMap;const Pe=new re(f.schema);if(f.atRoot)f.atRoot=false;let $t=$.offset;let tn=null;for(const p of $.items){const{start:ee,key:re,sep:sn,value:nn}=p;const rn=y.resolveProps(ee,{indicator:"explicit-key-ind",next:re??sn?.[0],offset:$t,onError:z,parentIndent:$.indent,startOnNewline:true});const An=!rn.found;if(An){if(re){if(re.type==="block-seq")z($t,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in re&&re.indent!==$.indent)z($t,"BAD_INDENT",Z)}if(!rn.anchor&&!rn.tag&&!sn){tn=rn.end;if(rn.comment){if(Pe.comment)Pe.comment+="\n"+rn.comment;else Pe.comment=rn.comment}continue}if(rn.newlineAfterProp||b.containsNewline(re)){z(re??ee[ee.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(rn.found?.indent!==$.indent){z($t,"BAD_INDENT",Z)}f.atKey=true;const on=rn.end;const an=re?i(f,re,rn,z):g(f,on,ee,null,rn,z);if(f.schema.compat)S.flowIndentCheck($.indent,re,z);f.atKey=false;if(J.mapIncludes(f,Pe.items,an))z(on,"DUPLICATE_KEY","Map keys must be unique");const cn=y.resolveProps(sn??[],{indicator:"map-value-ind",next:nn,offset:an.range[2],onError:z,parentIndent:$.indent,startOnNewline:!re||re.type==="block-scalar"});$t=cn.end;if(cn.found){if(An){if(nn?.type==="block-map"&&!cn.hasNewline)z($t,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(f.options.strict&&rn.start<cn.found.offset-1024)z(an.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}const y=nn?i(f,nn,cn,z):g(f,$t,sn,null,cn,z);if(f.schema.compat)S.flowIndentCheck($.indent,nn,z);$t=y.range[2];const b=new E.Pair(an,y);if(f.options.keepSourceTokens)b.srcToken=p;Pe.items.push(b)}else{if(An)z(an.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(cn.comment){if(an.comment)an.comment+="\n"+cn.comment;else an.comment=cn.comment}const i=new E.Pair(an);if(f.options.keepSourceTokens)i.srcToken=p;Pe.items.push(i)}}if(tn&&tn<$t)z(tn,"IMPOSSIBLE","Map comment with trailing content");Pe.range=[$.offset,$t,tn??$t];return Pe}g.resolveBlockMap=resolveBlockMap},8913:(i,g,f)=>{var E=f(3301);function resolveBlockScalar(i,g,f){const p=g.offset;const y=parseBlockScalarHeader(g,i.options.strict,f);if(!y)return{value:"",type:null,comment:"",range:[p,p,p]};const b=y.mode===">"?E.Scalar.BLOCK_FOLDED:E.Scalar.BLOCK_LITERAL;const S=g.source?splitLines(g.source):[];let J=S.length;for(let i=S.length-1;i>=0;--i){const g=S[i][1];if(g===""||g==="\r")J=i;else break}if(J===0){const i=y.chomp==="+"&&S.length>0?"\n".repeat(Math.max(1,S.length-1)):"";let f=p+y.length;if(g.source)f+=g.source.length;return{value:i,type:b,comment:y.comment,range:[p,f,f]}}let Z=g.indent+y.indent;let $=g.offset+y.length;let z=0;for(let g=0;g<J;++g){const[E,p]=S[g];if(p===""||p==="\r"){if(y.indent===0&&E.length>Z)Z=E.length}else{if(E.length<Z){const i="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";f($+E.length,"MISSING_CHAR",i)}if(y.indent===0)Z=E.length;z=g;if(Z===0&&!i.atRoot){const i="Block scalar values in collections must be indented";f($,"BAD_INDENT",i)}break}$+=E.length+p.length+1}for(let i=S.length-1;i>=J;--i){if(S[i][0].length>Z)J=i+1}let ee="";let re="";let Pe=false;for(let i=0;i<z;++i)ee+=S[i][0].slice(Z)+"\n";for(let i=z;i<J;++i){let[g,p]=S[i];$+=g.length+p.length+1;const J=p[p.length-1]==="\r";if(J)p=p.slice(0,-1);if(p&&g.length<Z){const i=y.indent?"explicit indentation indicator":"first line";const E=`Block scalar lines must not be less indented than their ${i}`;f($-p.length-(J?2:1),"BAD_INDENT",E);g=""}if(b===E.Scalar.BLOCK_LITERAL){ee+=re+g.slice(Z)+p;re="\n"}else if(g.length>Z||p[0]==="\t"){if(re===" ")re="\n";else if(!Pe&&re==="\n")re="\n\n";ee+=re+g.slice(Z)+p;re="\n";Pe=true}else if(p===""){if(re==="\n")ee+="\n";else re="\n"}else{ee+=re+p;re=" ";Pe=false}}switch(y.chomp){case"-":break;case"+":for(let i=J;i<S.length;++i)ee+="\n"+S[i][0].slice(Z);if(ee[ee.length-1]!=="\n")ee+="\n";break;default:ee+="\n"}const $t=p+y.length+g.source.length;return{value:ee,type:b,comment:y.comment,range:[p,$t,$t]}}function parseBlockScalarHeader({offset:i,props:g},f,E){if(g[0].type!=="block-scalar-header"){E(g[0],"IMPOSSIBLE","Block scalar header not found");return null}const{source:p}=g[0];const y=p[0];let b=0;let S="";let J=-1;for(let g=1;g<p.length;++g){const f=p[g];if(!S&&(f==="-"||f==="+"))S=f;else{const E=Number(f);if(!b&&E)b=E;else if(J===-1)J=i+g}}if(J!==-1)E(J,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${p}`);let Z=false;let $="";let z=p.length;for(let i=1;i<g.length;++i){const p=g[i];switch(p.type){case"space":Z=true;case"newline":z+=p.source.length;break;case"comment":if(f&&!Z){const i="Comments must be separated from other tokens by white space characters";E(p,"MISSING_CHAR",i)}z+=p.source.length;$=p.source.substring(1);break;case"error":E(p,"UNEXPECTED_TOKEN",p.message);z+=p.source.length;break;default:{const i=`Unexpected token in block scalar header: ${p.type}`;E(p,"UNEXPECTED_TOKEN",i);const g=p.source;if(g&&typeof g==="string")z+=g.length}}}return{mode:y,indent:b,chomp:S,comment:$,length:z}}function splitLines(i){const g=i.split(/\n( *)/);const f=g[0];const E=f.match(/^( *)/);const p=E?.[1]?[E[1],f.slice(E[1].length)]:["",f];const y=[p];for(let i=1;i<g.length;i+=2)y.push([g[i],g[i+1]]);return y}g.resolveBlockScalar=resolveBlockScalar},334:(i,g,f)=>{var E=f(2223);var p=f(4631);var y=f(4051);function resolveBlockSeq({composeNode:i,composeEmptyNode:g},f,b,S,J){const Z=J?.nodeClass??E.YAMLSeq;const $=new Z(f.schema);if(f.atRoot)f.atRoot=false;if(f.atKey)f.atKey=false;let z=b.offset;let ee=null;for(const{start:E,value:J}of b.items){const Z=p.resolveProps(E,{indicator:"seq-item-ind",next:J,offset:z,onError:S,parentIndent:b.indent,startOnNewline:true});if(!Z.found){if(Z.anchor||Z.tag||J){if(J?.type==="block-seq")S(Z.end,"BAD_INDENT","All sequence items must start at the same column");else S(z,"MISSING_CHAR","Sequence item without - indicator")}else{ee=Z.end;if(Z.comment)$.comment=Z.comment;continue}}const re=J?i(f,J,Z,S):g(f,Z.end,E,null,Z,S);if(f.schema.compat)y.flowIndentCheck(b.indent,J,S);z=re.range[2];$.items.push(re)}$.range=[b.offset,z,ee??z];return $}g.resolveBlockSeq=resolveBlockSeq},7788:(i,g)=>{function resolveEnd(i,g,f,E){let p="";if(i){let y=false;let b="";for(const S of i){const{source:i,type:J}=S;switch(J){case"space":y=true;break;case"comment":{if(f&&!y)E(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const g=i.substring(1)||" ";if(!p)p=g;else p+=b+g;b="";break}case"newline":if(p)b+=i;y=true;break;default:E(S,"UNEXPECTED_TOKEN",`Unexpected ${J} at node end`)}g+=i.length}}return{comment:p,offset:g}}g.resolveEnd=resolveEnd},3142:(i,g,f)=>{var E=f(1127);var p=f(7165);var y=f(4454);var b=f(2223);var S=f(7788);var J=f(4631);var Z=f(9499);var $=f(1187);const z="Block collections are not allowed within flow collections";const isBlock=i=>i&&(i.type==="block-map"||i.type==="block-seq");function resolveFlowCollection({composeNode:i,composeEmptyNode:g},f,ee,re,Pe){const $t=ee.start.source==="{";const tn=$t?"flow map":"flow sequence";const sn=Pe?.nodeClass??($t?y.YAMLMap:b.YAMLSeq);const nn=new sn(f.schema);nn.flow=true;const rn=f.atRoot;if(rn)f.atRoot=false;if(f.atKey)f.atKey=false;let An=ee.offset+ee.start.source.length;for(let b=0;b<ee.items.length;++b){const S=ee.items[b];const{start:Pe,key:sn,sep:rn,value:on}=S;const an=J.resolveProps(Pe,{flow:tn,indicator:"explicit-key-ind",next:sn??rn?.[0],offset:An,onError:re,parentIndent:ee.indent,startOnNewline:false});if(!an.found){if(!an.anchor&&!an.tag&&!rn&&!on){if(b===0&&an.comma)re(an.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${tn}`);else if(b<ee.items.length-1)re(an.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${tn}`);if(an.comment){if(nn.comment)nn.comment+="\n"+an.comment;else nn.comment=an.comment}An=an.end;continue}if(!$t&&f.options.strict&&Z.containsNewline(sn))re(sn,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0){if(an.comma)re(an.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${tn}`)}else{if(!an.comma)re(an.start,"MISSING_CHAR",`Missing , between ${tn} items`);if(an.comment){let i="";e:for(const g of Pe){switch(g.type){case"comma":case"space":break;case"comment":i=g.source.substring(1);break e;default:break e}}if(i){let g=nn.items[nn.items.length-1];if(E.isPair(g))g=g.value??g.key;if(g.comment)g.comment+="\n"+i;else g.comment=i;an.comment=an.comment.substring(i.length+1)}}}if(!$t&&!rn&&!an.found){const E=on?i(f,on,an,re):g(f,an.end,rn,null,an,re);nn.items.push(E);An=E.range[2];if(isBlock(on))re(E.range,"BLOCK_IN_FLOW",z)}else{f.atKey=true;const E=an.end;const b=sn?i(f,sn,an,re):g(f,E,Pe,null,an,re);if(isBlock(sn))re(b.range,"BLOCK_IN_FLOW",z);f.atKey=false;const Z=J.resolveProps(rn??[],{flow:tn,indicator:"map-value-ind",next:on,offset:b.range[2],onError:re,parentIndent:ee.indent,startOnNewline:false});if(Z.found){if(!$t&&!an.found&&f.options.strict){if(rn)for(const i of rn){if(i===Z.found)break;if(i.type==="newline"){re(i,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(an.start<Z.found.offset-1024)re(Z.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(on){if("source"in on&&on.source?.[0]===":")re(on,"MISSING_CHAR",`Missing space after : in ${tn}`);else re(Z.start,"MISSING_CHAR",`Missing , or : between ${tn} items`)}const cn=on?i(f,on,Z,re):Z.found?g(f,Z.end,rn,null,Z,re):null;if(cn){if(isBlock(on))re(cn.range,"BLOCK_IN_FLOW",z)}else if(Z.comment){if(b.comment)b.comment+="\n"+Z.comment;else b.comment=Z.comment}const ln=new p.Pair(b,cn);if(f.options.keepSourceTokens)ln.srcToken=S;if($t){const i=nn;if($.mapIncludes(f,i.items,b))re(E,"DUPLICATE_KEY","Map keys must be unique");i.items.push(ln)}else{const i=new y.YAMLMap(f.schema);i.flow=true;i.items.push(ln);const g=(cn??b).range;i.range=[b.range[0],g[1],g[2]];nn.items.push(i)}An=cn?cn.range[2]:Z.end}}const on=$t?"}":"]";const[an,...cn]=ee.end;let ln=An;if(an?.source===on)ln=an.offset+an.source.length;else{const i=tn[0].toUpperCase()+tn.substring(1);const g=rn?`${i} must end with a ${on}`:`${i} in block collection must be sufficiently indented and end with a ${on}`;re(An,rn?"MISSING_CHAR":"BAD_INDENT",g);if(an&&an.source.length!==1)cn.unshift(an)}if(cn.length>0){const i=S.resolveEnd(cn,ln,f.options.strict,re);if(i.comment){if(nn.comment)nn.comment+="\n"+i.comment;else nn.comment=i.comment}nn.range=[ee.offset,ln,i.offset]}else{nn.range=[ee.offset,ln,ln]}return nn}g.resolveFlowCollection=resolveFlowCollection},6842:(i,g,f)=>{var E=f(3301);var p=f(7788);function resolveFlowScalar(i,g,f){const{offset:y,type:b,source:S,end:J}=i;let Z;let $;const _onError=(i,g,E)=>f(y+i,g,E);switch(b){case"scalar":Z=E.Scalar.PLAIN;$=plainValue(S,_onError);break;case"single-quoted-scalar":Z=E.Scalar.QUOTE_SINGLE;$=singleQuotedValue(S,_onError);break;case"double-quoted-scalar":Z=E.Scalar.QUOTE_DOUBLE;$=doubleQuotedValue(S,_onError);break;default:f(i,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${b}`);return{value:"",type:null,comment:"",range:[y,y+S.length,y+S.length]}}const z=y+S.length;const ee=p.resolveEnd(J,z,g,f);return{value:$,type:Z,comment:ee.comment,range:[y,z,ee.offset]}}function plainValue(i,g){let f="";switch(i[0]){case"\t":f="a tab character";break;case",":f="flow indicator character ,";break;case"%":f="directive indicator character %";break;case"|":case">":{f=`block scalar indicator ${i[0]}`;break}case"@":case"`":{f=`reserved character ${i[0]}`;break}}if(f)g(0,"BAD_SCALAR_START",`Plain value cannot start with ${f}`);return foldLines(i)}function singleQuotedValue(i,g){if(i[i.length-1]!=="'"||i.length===1)g(i.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(i.slice(1,-1)).replace(/''/g,"'")}function foldLines(i){let g,f;try{g=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy");f=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch{g=/(.*?)[ \t]*\r?\n/sy;f=/[ \t]*(.*?)[ \t]*\r?\n/sy}let E=g.exec(i);if(!E)return i;let p=E[1];let y=" ";let b=g.lastIndex;f.lastIndex=b;while(E=f.exec(i)){if(E[1]===""){if(y==="\n")p+=y;else y="\n"}else{p+=y+E[1];y=" "}b=f.lastIndex}const S=/[ \t]*(.*)/sy;S.lastIndex=b;E=S.exec(i);return p+y+(E?.[1]??"")}function doubleQuotedValue(i,g){let f="";for(let E=1;E<i.length-1;++E){const p=i[E];if(p==="\r"&&i[E+1]==="\n")continue;if(p==="\n"){const{fold:g,offset:p}=foldNewline(i,E);f+=g;E=p}else if(p==="\\"){let p=i[++E];const b=y[p];if(b)f+=b;else if(p==="\n"){p=i[E+1];while(p===" "||p==="\t")p=i[++E+1]}else if(p==="\r"&&i[E+1]==="\n"){p=i[++E+1];while(p===" "||p==="\t")p=i[++E+1]}else if(p==="x"||p==="u"||p==="U"){const y={x:2,u:4,U:8}[p];f+=parseCharCode(i,E+1,y,g);E+=y}else{const p=i.substr(E-1,2);g(E-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${p}`);f+=p}}else if(p===" "||p==="\t"){const g=E;let y=i[E+1];while(y===" "||y==="\t")y=i[++E+1];if(y!=="\n"&&!(y==="\r"&&i[E+2]==="\n"))f+=E>g?i.slice(g,E+1):p}else{f+=p}}if(i[i.length-1]!=='"'||i.length===1)g(i.length,"MISSING_CHAR",'Missing closing "quote');return f}function foldNewline(i,g){let f="";let E=i[g+1];while(E===" "||E==="\t"||E==="\n"||E==="\r"){if(E==="\r"&&i[g+2]!=="\n")break;if(E==="\n")f+="\n";g+=1;E=i[g+1]}if(!f)f=" ";return{fold:f,offset:g}}const y={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(i,g,f,E){const p=i.substr(g,f);const y=p.length===f&&/^[0-9a-fA-F]+$/.test(p);const b=y?parseInt(p,16):NaN;if(isNaN(b)){const p=i.substr(g-2,f+2);E(g-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${p}`);return p}return String.fromCodePoint(b)}g.resolveFlowScalar=resolveFlowScalar},4631:(i,g)=>{function resolveProps(i,{flow:g,indicator:f,next:E,offset:p,onError:y,parentIndent:b,startOnNewline:S}){let J=false;let Z=S;let $=S;let z="";let ee="";let re=false;let Pe=false;let $t=null;let tn=null;let sn=null;let nn=null;let rn=null;let An=null;let on=null;for(const p of i){if(Pe){if(p.type!=="space"&&p.type!=="newline"&&p.type!=="comma")y(p.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");Pe=false}if($t){if(Z&&p.type!=="comment"&&p.type!=="newline"){y($t,"TAB_AS_INDENT","Tabs are not allowed as indentation")}$t=null}switch(p.type){case"space":if(!g&&(f!=="doc-start"||E?.type!=="flow-collection")&&p.source.includes("\t")){$t=p}$=true;break;case"comment":{if(!$)y(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const i=p.source.substring(1)||" ";if(!z)z=i;else z+=ee+i;ee="";Z=false;break}case"newline":if(Z){if(z)z+=p.source;else if(!An||f!=="seq-item-ind")J=true}else ee+=p.source;Z=true;re=true;if(tn||sn)nn=p;$=true;break;case"anchor":if(tn)y(p,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(p.source.endsWith(":"))y(p.offset+p.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);tn=p;on??(on=p.offset);Z=false;$=false;Pe=true;break;case"tag":{if(sn)y(p,"MULTIPLE_TAGS","A node can have at most one tag");sn=p;on??(on=p.offset);Z=false;$=false;Pe=true;break}case f:if(tn||sn)y(p,"BAD_PROP_ORDER",`Anchors and tags must be after the ${p.source} indicator`);if(An)y(p,"UNEXPECTED_TOKEN",`Unexpected ${p.source} in ${g??"collection"}`);An=p;Z=f==="seq-item-ind"||f==="explicit-key-ind";$=false;break;case"comma":if(g){if(rn)y(p,"UNEXPECTED_TOKEN",`Unexpected , in ${g}`);rn=p;Z=false;$=false;break}default:y(p,"UNEXPECTED_TOKEN",`Unexpected ${p.type} token`);Z=false;$=false}}const an=i[i.length-1];const cn=an?an.offset+an.source.length:p;if(Pe&&E&&E.type!=="space"&&E.type!=="newline"&&E.type!=="comma"&&(E.type!=="scalar"||E.source!=="")){y(E.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if($t&&(Z&&$t.indent<=b||E?.type==="block-map"||E?.type==="block-seq"))y($t,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:rn,found:An,spaceBefore:J,comment:z,hasNewline:re,anchor:tn,tag:sn,newlineAfterProp:nn,end:cn,start:on??cn}}g.resolveProps=resolveProps},9499:(i,g)=>{function containsNewline(i){if(!i)return null;switch(i.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(i.source.includes("\n"))return true;if(i.end)for(const g of i.end)if(g.type==="newline")return true;return false;case"flow-collection":for(const g of i.items){for(const i of g.start)if(i.type==="newline")return true;if(g.sep)for(const i of g.sep)if(i.type==="newline")return true;if(containsNewline(g.key)||containsNewline(g.value))return true}return false;default:return true}}g.containsNewline=containsNewline},2599:(i,g)=>{function emptyScalarPosition(i,g,f){if(g){f??(f=g.length);for(let E=f-1;E>=0;--E){let f=g[E];switch(f.type){case"space":case"comment":case"newline":i-=f.source.length;continue}f=g[++E];while(f?.type==="space"){i+=f.source.length;f=g[++E]}break}}return i}g.emptyScalarPosition=emptyScalarPosition},4051:(i,g,f)=>{var E=f(9499);function flowIndentCheck(i,g,f){if(g?.type==="flow-collection"){const p=g.end[0];if(p.indent===i&&(p.source==="]"||p.source==="}")&&E.containsNewline(g)){const i="Flow end indicator should be more indented than parent";f(p,"BAD_INDENT",i,true)}}}g.flowIndentCheck=flowIndentCheck},1187:(i,g,f)=>{var E=f(1127);function mapIncludes(i,g,f){const{uniqueKeys:p}=i.options;if(p===false)return false;const y=typeof p==="function"?p:(i,g)=>i===g||E.isScalar(i)&&E.isScalar(g)&&i.value===g.value;return g.some((i=>y(i.key,f)))}g.mapIncludes=mapIncludes},3021:(i,g,f)=>{var E=f(4065);var p=f(101);var y=f(1127);var b=f(7165);var S=f(6424);var J=f(5840);var Z=f(6829);var $=f(1596);var z=f(3661);var ee=f(2404);var re=f(1342);class Document{constructor(i,g,f){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,y.NODE_TYPE,{value:y.DOC});let E=null;if(typeof g==="function"||Array.isArray(g)){E=g}else if(f===undefined&&g){f=g;g=undefined}const p=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,stringKeys:false,uniqueKeys:true,version:"1.2"},f);this.options=p;let{version:b}=p;if(f?._directives){this.directives=f._directives.atDocument();if(this.directives.yaml.explicit)b=this.directives.yaml.version}else this.directives=new re.Directives({version:b});this.setSchema(b,f);this.contents=i===undefined?null:this.createNode(i,E,f)}clone(){const i=Object.create(Document.prototype,{[y.NODE_TYPE]:{value:y.DOC}});i.commentBefore=this.commentBefore;i.comment=this.comment;i.errors=this.errors.slice();i.warnings=this.warnings.slice();i.options=Object.assign({},this.options);if(this.directives)i.directives=this.directives.clone();i.schema=this.schema.clone();i.contents=y.isNode(this.contents)?this.contents.clone(i.schema):this.contents;if(this.range)i.range=this.range.slice();return i}add(i){if(assertCollection(this.contents))this.contents.add(i)}addIn(i,g){if(assertCollection(this.contents))this.contents.addIn(i,g)}createAlias(i,g){if(!i.anchor){const f=$.anchorNames(this);i.anchor=!g||f.has(g)?$.findNewAnchor(g||"a",f):g}return new E.Alias(i.anchor)}createNode(i,g,f){let E=undefined;if(typeof g==="function"){i=g.call({"":i},"",i);E=g}else if(Array.isArray(g)){const keyToStr=i=>typeof i==="number"||i instanceof String||i instanceof Number;const i=g.filter(keyToStr).map(String);if(i.length>0)g=g.concat(i);E=g}else if(f===undefined&&g){f=g;g=undefined}const{aliasDuplicateObjects:p,anchorPrefix:b,flow:S,keepUndefined:J,onTagObj:Z,tag:z}=f??{};const{onAnchor:re,setAnchors:Pe,sourceObjects:$t}=$.createNodeAnchors(this,b||"a");const tn={aliasDuplicateObjects:p??true,keepUndefined:J??false,onAnchor:re,onTagObj:Z,replacer:E,schema:this.schema,sourceObjects:$t};const sn=ee.createNode(i,z,tn);if(S&&y.isCollection(sn))sn.flow=true;Pe();return sn}createPair(i,g,f={}){const E=this.createNode(i,null,f);const p=this.createNode(g,null,f);return new b.Pair(E,p)}delete(i){return assertCollection(this.contents)?this.contents.delete(i):false}deleteIn(i){if(p.isEmptyPath(i)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(i):false}get(i,g){return y.isCollection(this.contents)?this.contents.get(i,g):undefined}getIn(i,g){if(p.isEmptyPath(i))return!g&&y.isScalar(this.contents)?this.contents.value:this.contents;return y.isCollection(this.contents)?this.contents.getIn(i,g):undefined}has(i){return y.isCollection(this.contents)?this.contents.has(i):false}hasIn(i){if(p.isEmptyPath(i))return this.contents!==undefined;return y.isCollection(this.contents)?this.contents.hasIn(i):false}set(i,g){if(this.contents==null){this.contents=p.collectionFromPath(this.schema,[i],g)}else if(assertCollection(this.contents)){this.contents.set(i,g)}}setIn(i,g){if(p.isEmptyPath(i)){this.contents=g}else if(this.contents==null){this.contents=p.collectionFromPath(this.schema,Array.from(i),g)}else if(assertCollection(this.contents)){this.contents.setIn(i,g)}}setSchema(i,g={}){if(typeof i==="number")i=String(i);let f;switch(i){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new re.Directives({version:"1.1"});f={resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=i;else this.directives=new re.Directives({version:i});f={resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;f=null;break;default:{const g=JSON.stringify(i);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${g}`)}}if(g.schema instanceof Object)this.schema=g.schema;else if(f)this.schema=new J.Schema(Object.assign(f,g));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:i,jsonArg:g,mapAsMap:f,maxAliasCount:E,onAnchor:p,reviver:y}={}){const b={anchors:new Map,doc:this,keep:!i,mapAsMap:f===true,mapKeyWarned:false,maxAliasCount:typeof E==="number"?E:100};const J=S.toJS(this.contents,g??"",b);if(typeof p==="function")for(const{count:i,res:g}of b.anchors.values())p(g,i);return typeof y==="function"?z.applyReviver(y,{"":J},"",J):J}toJSON(i,g){return this.toJS({json:true,jsonArg:i,mapAsMap:false,onAnchor:g})}toString(i={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in i&&(!Number.isInteger(i.indent)||Number(i.indent)<=0)){const g=JSON.stringify(i.indent);throw new Error(`"indent" option must be a positive integer, not ${g}`)}return Z.stringifyDocument(this,i)}}function assertCollection(i){if(y.isCollection(i))return true;throw new Error("Expected a YAML collection as document contents")}g.Document=Document},1596:(i,g,f)=>{var E=f(1127);var p=f(204);function anchorIsValid(i){if(/[\x00-\x19\s,[\]{}]/.test(i)){const g=JSON.stringify(i);const f=`Anchor must not contain whitespace or control characters: ${g}`;throw new Error(f)}return true}function anchorNames(i){const g=new Set;p.visit(i,{Value(i,f){if(f.anchor)g.add(f.anchor)}});return g}function findNewAnchor(i,g){for(let f=1;true;++f){const E=`${i}${f}`;if(!g.has(E))return E}}function createNodeAnchors(i,g){const f=[];const p=new Map;let y=null;return{onAnchor:E=>{f.push(E);y??(y=anchorNames(i));const p=findNewAnchor(g,y);y.add(p);return p},setAnchors:()=>{for(const i of f){const g=p.get(i);if(typeof g==="object"&&g.anchor&&(E.isScalar(g.node)||E.isCollection(g.node))){g.node.anchor=g.anchor}else{const g=new Error("Failed to resolve repeated object (this should not happen)");g.source=i;throw g}}},sourceObjects:p}}g.anchorIsValid=anchorIsValid;g.anchorNames=anchorNames;g.createNodeAnchors=createNodeAnchors;g.findNewAnchor=findNewAnchor},3661:(i,g)=>{function applyReviver(i,g,f,E){if(E&&typeof E==="object"){if(Array.isArray(E)){for(let g=0,f=E.length;g<f;++g){const f=E[g];const p=applyReviver(i,E,String(g),f);if(p===undefined)delete E[g];else if(p!==f)E[g]=p}}else if(E instanceof Map){for(const g of Array.from(E.keys())){const f=E.get(g);const p=applyReviver(i,E,g,f);if(p===undefined)E.delete(g);else if(p!==f)E.set(g,p)}}else if(E instanceof Set){for(const g of Array.from(E)){const f=applyReviver(i,E,g,g);if(f===undefined)E.delete(g);else if(f!==g){E.delete(g);E.add(f)}}}else{for(const[g,f]of Object.entries(E)){const p=applyReviver(i,E,g,f);if(p===undefined)delete E[g];else if(p!==f)E[g]=p}}}return i.call(g,f,E)}g.applyReviver=applyReviver},2404:(i,g,f)=>{var E=f(4065);var p=f(1127);var y=f(3301);const b="tag:yaml.org,2002:";function findTagObject(i,g,f){if(g){const i=f.filter((i=>i.tag===g));const E=i.find((i=>!i.format))??i[0];if(!E)throw new Error(`Tag ${g} not found`);return E}return f.find((g=>g.identify?.(i)&&!g.format))}function createNode(i,g,f){if(p.isDocument(i))i=i.contents;if(p.isNode(i))return i;if(p.isPair(i)){const g=f.schema[p.MAP].createNode?.(f.schema,null,f);g.items.push(i);return g}if(i instanceof String||i instanceof Number||i instanceof Boolean||typeof BigInt!=="undefined"&&i instanceof BigInt){i=i.valueOf()}const{aliasDuplicateObjects:S,onAnchor:J,onTagObj:Z,schema:$,sourceObjects:z}=f;let ee=undefined;if(S&&i&&typeof i==="object"){ee=z.get(i);if(ee){ee.anchor??(ee.anchor=J(i));return new E.Alias(ee.anchor)}else{ee={anchor:null,node:null};z.set(i,ee)}}if(g?.startsWith("!!"))g=b+g.slice(2);let re=findTagObject(i,g,$.tags);if(!re){if(i&&typeof i.toJSON==="function"){i=i.toJSON()}if(!i||typeof i!=="object"){const g=new y.Scalar(i);if(ee)ee.node=g;return g}re=i instanceof Map?$[p.MAP]:Symbol.iterator in Object(i)?$[p.SEQ]:$[p.MAP]}if(Z){Z(re);delete f.onTagObj}const Pe=re?.createNode?re.createNode(f.schema,i,f):typeof re?.nodeClass?.from==="function"?re.nodeClass.from(f.schema,i,f):new y.Scalar(i);if(g)Pe.tag=g;else if(!re.default)Pe.tag=re.tag;if(ee)ee.node=Pe;return Pe}g.createNode=createNode},1342:(i,g,f)=>{var E=f(1127);var p=f(204);const y={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=i=>i.replace(/[!,[\]{}]/g,(i=>y[i]));class Directives{constructor(i,g){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,i);this.tags=Object.assign({},Directives.defaultTags,g)}clone(){const i=new Directives(this.yaml,this.tags);i.docStart=this.docStart;return i}atDocument(){const i=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return i}add(i,g){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const f=i.trim().split(/[ \t]+/);const E=f.shift();switch(E){case"%TAG":{if(f.length!==2){g(0,"%TAG directive should contain exactly two parts");if(f.length<2)return false}const[i,E]=f;this.tags[i]=E;return true}case"%YAML":{this.yaml.explicit=true;if(f.length!==1){g(0,"%YAML directive should contain exactly one part");return false}const[i]=f;if(i==="1.1"||i==="1.2"){this.yaml.version=i;return true}else{const f=/^\d+\.\d+$/.test(i);g(6,`Unsupported YAML version ${i}`,f);return false}}default:g(0,`Unknown directive ${E}`,true);return false}}tagName(i,g){if(i==="!")return"!";if(i[0]!=="!"){g(`Not a valid tag: ${i}`);return null}if(i[1]==="<"){const f=i.slice(2,-1);if(f==="!"||f==="!!"){g(`Verbatim tags aren't resolved, so ${i} is invalid.`);return null}if(i[i.length-1]!==">")g("Verbatim tags must end with a >");return f}const[,f,E]=i.match(/^(.*!)([^!]*)$/s);if(!E)g(`The ${i} tag has no suffix`);const p=this.tags[f];if(p){try{return p+decodeURIComponent(E)}catch(i){g(String(i));return null}}if(f==="!")return i;g(`Could not resolve tag: ${i}`);return null}tagString(i){for(const[g,f]of Object.entries(this.tags)){if(i.startsWith(f))return g+escapeTagName(i.substring(f.length))}return i[0]==="!"?i:`!<${i}>`}toString(i){const g=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const f=Object.entries(this.tags);let y;if(i&&f.length>0&&E.isNode(i.contents)){const g={};p.visit(i.contents,((i,f)=>{if(E.isNode(f)&&f.tag)g[f.tag]=true}));y=Object.keys(g)}else y=[];for(const[E,p]of f){if(E==="!!"&&p==="tag:yaml.org,2002:")continue;if(!i||y.some((i=>i.startsWith(p))))g.push(`%TAG ${E} ${p}`)}return g.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};g.Directives=Directives},1464:(i,g)=>{class YAMLError extends Error{constructor(i,g,f,E){super();this.name=i;this.code=f;this.message=E;this.pos=g}}class YAMLParseError extends YAMLError{constructor(i,g,f){super("YAMLParseError",i,g,f)}}class YAMLWarning extends YAMLError{constructor(i,g,f){super("YAMLWarning",i,g,f)}}const prettifyError=(i,g)=>f=>{if(f.pos[0]===-1)return;f.linePos=f.pos.map((i=>g.linePos(i)));const{line:E,col:p}=f.linePos[0];f.message+=` at line ${E}, column ${p}`;let y=p-1;let b=i.substring(g.lineStarts[E-1],g.lineStarts[E]).replace(/[\n\r]+$/,"");if(y>=60&&b.length>80){const i=Math.min(y-39,b.length-79);b="…"+b.substring(i);y-=i-1}if(b.length>80)b=b.substring(0,79)+"…";if(E>1&&/^ *$/.test(b.substring(0,y))){let f=i.substring(g.lineStarts[E-2],g.lineStarts[E-1]);if(f.length>80)f=f.substring(0,79)+"…\n";b=f+b}if(/[^ ]/.test(b)){let i=1;const g=f.linePos[1];if(g?.line===E&&g.col>p){i=Math.max(1,Math.min(g.col-p,80-y))}const S=" ".repeat(y)+"^".repeat(i);f.message+=`:\n\n${b}\n${S}\n`}};g.YAMLError=YAMLError;g.YAMLParseError=YAMLParseError;g.YAMLWarning=YAMLWarning;g.prettifyError=prettifyError},8815:(i,g,f)=>{var E=f(9984);var p=f(3021);var y=f(5840);var b=f(1464);var S=f(4065);var J=f(1127);var Z=f(7165);var $=f(3301);var z=f(4454);var ee=f(2223);var re=f(3461);var Pe=f(361);var $t=f(6628);var tn=f(3456);var sn=f(4047);var nn=f(204);g.Composer=E.Composer;g.Document=p.Document;g.Schema=y.Schema;g.YAMLError=b.YAMLError;g.YAMLParseError=b.YAMLParseError;g.YAMLWarning=b.YAMLWarning;g.Alias=S.Alias;g.isAlias=J.isAlias;g.isCollection=J.isCollection;g.isDocument=J.isDocument;g.isMap=J.isMap;g.isNode=J.isNode;g.isPair=J.isPair;g.isScalar=J.isScalar;g.isSeq=J.isSeq;g.Pair=Z.Pair;g.Scalar=$.Scalar;g.YAMLMap=z.YAMLMap;g.YAMLSeq=ee.YAMLSeq;g.CST=re;g.Lexer=Pe.Lexer;g.LineCounter=$t.LineCounter;g.Parser=tn.Parser;g.parse=sn.parse;g.parseAllDocuments=sn.parseAllDocuments;g.parseDocument=sn.parseDocument;g.stringify=sn.stringify;g.visit=nn.visit;g.visitAsync=nn.visitAsync},7249:(i,g,f)=>{var E=f(932);function debug(i,...g){if(i==="debug")console.log(...g)}function warn(i,g){if(i==="debug"||i==="warn"){if(typeof E.emitWarning==="function")E.emitWarning(g);else console.warn(g)}}g.debug=debug;g.warn=warn},4065:(i,g,f)=>{var E=f(1596);var p=f(204);var y=f(1127);var b=f(6673);var S=f(6424);class Alias extends b.NodeBase{constructor(i){super(y.ALIAS);this.source=i;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(i,g){let f;if(g?.aliasResolveCache){f=g.aliasResolveCache}else{f=[];p.visit(i,{Node:(i,g)=>{if(y.isAlias(g)||y.hasAnchor(g))f.push(g)}});if(g)g.aliasResolveCache=f}let E=undefined;for(const i of f){if(i===this)break;if(i.anchor===this.source)E=i}return E}toJSON(i,g){if(!g)return{source:this.source};const{anchors:f,doc:E,maxAliasCount:p}=g;const y=this.resolve(E,g);if(!y){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(i)}let b=f.get(y);if(!b){S.toJS(y,null,g);b=f.get(y)}if(b?.res===undefined){const i="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(i)}if(p>=0){b.count+=1;if(b.aliasCount===0)b.aliasCount=getAliasCount(E,y,f);if(b.count*b.aliasCount>p){const i="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(i)}}return b.res}toString(i,g,f){const p=`*${this.source}`;if(i){E.anchorIsValid(this.source);if(i.options.verifyAliasOrder&&!i.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(i.implicitKey)return`${p} `}return p}}function getAliasCount(i,g,f){if(y.isAlias(g)){const E=g.resolve(i);const p=f&&E&&f.get(E);return p?p.count*p.aliasCount:0}else if(y.isCollection(g)){let E=0;for(const p of g.items){const g=getAliasCount(i,p,f);if(g>E)E=g}return E}else if(y.isPair(g)){const E=getAliasCount(i,g.key,f);const p=getAliasCount(i,g.value,f);return Math.max(E,p)}return 1}g.Alias=Alias},101:(i,g,f)=>{var E=f(2404);var p=f(1127);var y=f(6673);function collectionFromPath(i,g,f){let p=f;for(let i=g.length-1;i>=0;--i){const f=g[i];if(typeof f==="number"&&Number.isInteger(f)&&f>=0){const i=[];i[f]=p;p=i}else{p=new Map([[f,p]])}}return E.createNode(p,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:i,sourceObjects:new Map})}const isEmptyPath=i=>i==null||typeof i==="object"&&!!i[Symbol.iterator]().next().done;class Collection extends y.NodeBase{constructor(i,g){super(i);Object.defineProperty(this,"schema",{value:g,configurable:true,enumerable:false,writable:true})}clone(i){const g=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(i)g.schema=i;g.items=g.items.map((g=>p.isNode(g)||p.isPair(g)?g.clone(i):g));if(this.range)g.range=this.range.slice();return g}addIn(i,g){if(isEmptyPath(i))this.add(g);else{const[f,...E]=i;const y=this.get(f,true);if(p.isCollection(y))y.addIn(E,g);else if(y===undefined&&this.schema)this.set(f,collectionFromPath(this.schema,E,g));else throw new Error(`Expected YAML collection at ${f}. Remaining path: ${E}`)}}deleteIn(i){const[g,...f]=i;if(f.length===0)return this.delete(g);const E=this.get(g,true);if(p.isCollection(E))return E.deleteIn(f);else throw new Error(`Expected YAML collection at ${g}. Remaining path: ${f}`)}getIn(i,g){const[f,...E]=i;const y=this.get(f,true);if(E.length===0)return!g&&p.isScalar(y)?y.value:y;else return p.isCollection(y)?y.getIn(E,g):undefined}hasAllNullValues(i){return this.items.every((g=>{if(!p.isPair(g))return false;const f=g.value;return f==null||i&&p.isScalar(f)&&f.value==null&&!f.commentBefore&&!f.comment&&!f.tag}))}hasIn(i){const[g,...f]=i;if(f.length===0)return this.has(g);const E=this.get(g,true);return p.isCollection(E)?E.hasIn(f):false}setIn(i,g){const[f,...E]=i;if(E.length===0){this.set(f,g)}else{const i=this.get(f,true);if(p.isCollection(i))i.setIn(E,g);else if(i===undefined&&this.schema)this.set(f,collectionFromPath(this.schema,E,g));else throw new Error(`Expected YAML collection at ${f}. Remaining path: ${E}`)}}}g.Collection=Collection;g.collectionFromPath=collectionFromPath;g.isEmptyPath=isEmptyPath},6673:(i,g,f)=>{var E=f(3661);var p=f(1127);var y=f(6424);class NodeBase{constructor(i){Object.defineProperty(this,p.NODE_TYPE,{value:i})}clone(){const i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)i.range=this.range.slice();return i}toJS(i,{mapAsMap:g,maxAliasCount:f,onAnchor:b,reviver:S}={}){if(!p.isDocument(i))throw new TypeError("A document argument is required");const J={anchors:new Map,doc:i,keep:true,mapAsMap:g===true,mapKeyWarned:false,maxAliasCount:typeof f==="number"?f:100};const Z=y.toJS(this,"",J);if(typeof b==="function")for(const{count:i,res:g}of J.anchors.values())b(g,i);return typeof S==="function"?E.applyReviver(S,{"":Z},"",Z):Z}}g.NodeBase=NodeBase},7165:(i,g,f)=>{var E=f(2404);var p=f(9748);var y=f(7104);var b=f(1127);function createPair(i,g,f){const p=E.createNode(i,undefined,f);const y=E.createNode(g,undefined,f);return new Pair(p,y)}class Pair{constructor(i,g=null){Object.defineProperty(this,b.NODE_TYPE,{value:b.PAIR});this.key=i;this.value=g}clone(i){let{key:g,value:f}=this;if(b.isNode(g))g=g.clone(i);if(b.isNode(f))f=f.clone(i);return new Pair(g,f)}toJSON(i,g){const f=g?.mapAsMap?new Map:{};return y.addPairToJSMap(g,f,this)}toString(i,g,f){return i?.doc?p.stringifyPair(this,i,g,f):JSON.stringify(this)}}g.Pair=Pair;g.createPair=createPair},3301:(i,g,f)=>{var E=f(1127);var p=f(6673);var y=f(6424);const isScalarValue=i=>!i||typeof i!=="function"&&typeof i!=="object";class Scalar extends p.NodeBase{constructor(i){super(E.SCALAR);this.value=i}toJSON(i,g){return g?.keep?this.value:y.toJS(this.value,i,g)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";g.Scalar=Scalar;g.isScalarValue=isScalarValue},4454:(i,g,f)=>{var E=f(1212);var p=f(7104);var y=f(101);var b=f(1127);var S=f(7165);var J=f(3301);function findPair(i,g){const f=b.isScalar(g)?g.value:g;for(const E of i){if(b.isPair(E)){if(E.key===g||E.key===f)return E;if(b.isScalar(E.key)&&E.key.value===f)return E}}return undefined}class YAMLMap extends y.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(i){super(b.MAP,i);this.items=[]}static from(i,g,f){const{keepUndefined:E,replacer:p}=f;const y=new this(i);const add=(i,b)=>{if(typeof p==="function")b=p.call(g,i,b);else if(Array.isArray(p)&&!p.includes(i))return;if(b!==undefined||E)y.items.push(S.createPair(i,b,f))};if(g instanceof Map){for(const[i,f]of g)add(i,f)}else if(g&&typeof g==="object"){for(const i of Object.keys(g))add(i,g[i])}if(typeof i.sortMapEntries==="function"){y.items.sort(i.sortMapEntries)}return y}add(i,g){let f;if(b.isPair(i))f=i;else if(!i||typeof i!=="object"||!("key"in i)){f=new S.Pair(i,i?.value)}else f=new S.Pair(i.key,i.value);const E=findPair(this.items,f.key);const p=this.schema?.sortMapEntries;if(E){if(!g)throw new Error(`Key ${f.key} already set`);if(b.isScalar(E.value)&&J.isScalarValue(f.value))E.value.value=f.value;else E.value=f.value}else if(p){const i=this.items.findIndex((i=>p(f,i)<0));if(i===-1)this.items.push(f);else this.items.splice(i,0,f)}else{this.items.push(f)}}delete(i){const g=findPair(this.items,i);if(!g)return false;const f=this.items.splice(this.items.indexOf(g),1);return f.length>0}get(i,g){const f=findPair(this.items,i);const E=f?.value;return(!g&&b.isScalar(E)?E.value:E)??undefined}has(i){return!!findPair(this.items,i)}set(i,g){this.add(new S.Pair(i,g),true)}toJSON(i,g,f){const E=f?new f:g?.mapAsMap?new Map:{};if(g?.onCreate)g.onCreate(E);for(const i of this.items)p.addPairToJSMap(g,E,i);return E}toString(i,g,f){if(!i)return JSON.stringify(this);for(const i of this.items){if(!b.isPair(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`)}if(!i.allNullValues&&this.hasAllNullValues(false))i=Object.assign({},i,{allNullValues:true});return E.stringifyCollection(this,i,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:i.indent||"",onChompKeep:f,onComment:g})}}g.YAMLMap=YAMLMap;g.findPair=findPair},2223:(i,g,f)=>{var E=f(2404);var p=f(1212);var y=f(101);var b=f(1127);var S=f(3301);var J=f(6424);class YAMLSeq extends y.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(i){super(b.SEQ,i);this.items=[]}add(i){this.items.push(i)}delete(i){const g=asItemIndex(i);if(typeof g!=="number")return false;const f=this.items.splice(g,1);return f.length>0}get(i,g){const f=asItemIndex(i);if(typeof f!=="number")return undefined;const E=this.items[f];return!g&&b.isScalar(E)?E.value:E}has(i){const g=asItemIndex(i);return typeof g==="number"&&g<this.items.length}set(i,g){const f=asItemIndex(i);if(typeof f!=="number")throw new Error(`Expected a valid index, not ${i}.`);const E=this.items[f];if(b.isScalar(E)&&S.isScalarValue(g))E.value=g;else this.items[f]=g}toJSON(i,g){const f=[];if(g?.onCreate)g.onCreate(f);let E=0;for(const i of this.items)f.push(J.toJS(i,String(E++),g));return f}toString(i,g,f){if(!i)return JSON.stringify(this);return p.stringifyCollection(this,i,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(i.indent||"")+" ",onChompKeep:f,onComment:g})}static from(i,g,f){const{replacer:p}=f;const y=new this(i);if(g&&Symbol.iterator in Object(g)){let i=0;for(let b of g){if(typeof p==="function"){const f=g instanceof Set?b:String(i++);b=p.call(g,f,b)}y.items.push(E.createNode(b,undefined,f))}}return y}}function asItemIndex(i){let g=b.isScalar(i)?i.value:i;if(g&&typeof g==="string")g=Number(g);return typeof g==="number"&&Number.isInteger(g)&&g>=0?g:null}g.YAMLSeq=YAMLSeq},7104:(i,g,f)=>{var E=f(7249);var p=f(452);var y=f(2148);var b=f(1127);var S=f(6424);function addPairToJSMap(i,g,{key:f,value:E}){if(b.isNode(f)&&f.addToJSMap)f.addToJSMap(i,g,E);else if(p.isMergeKey(i,f))p.addMergeToJSMap(i,g,E);else{const p=S.toJS(f,"",i);if(g instanceof Map){g.set(p,S.toJS(E,p,i))}else if(g instanceof Set){g.add(p)}else{const y=stringifyKey(f,p,i);const b=S.toJS(E,y,i);if(y in g)Object.defineProperty(g,y,{value:b,writable:true,enumerable:true,configurable:true});else g[y]=b}}return g}function stringifyKey(i,g,f){if(g===null)return"";if(typeof g!=="object")return String(g);if(b.isNode(i)&&f?.doc){const g=y.createStringifyContext(f.doc,{});g.anchors=new Set;for(const i of f.anchors.keys())g.anchors.add(i.anchor);g.inFlow=true;g.inStringifyKey=true;const p=i.toString(g);if(!f.mapKeyWarned){let i=JSON.stringify(p);if(i.length>40)i=i.substring(0,36)+'..."';E.warn(f.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`);f.mapKeyWarned=true}return p}return JSON.stringify(g)}g.addPairToJSMap=addPairToJSMap},1127:(i,g)=>{const f=Symbol.for("yaml.alias");const E=Symbol.for("yaml.document");const p=Symbol.for("yaml.map");const y=Symbol.for("yaml.pair");const b=Symbol.for("yaml.scalar");const S=Symbol.for("yaml.seq");const J=Symbol.for("yaml.node.type");const isAlias=i=>!!i&&typeof i==="object"&&i[J]===f;const isDocument=i=>!!i&&typeof i==="object"&&i[J]===E;const isMap=i=>!!i&&typeof i==="object"&&i[J]===p;const isPair=i=>!!i&&typeof i==="object"&&i[J]===y;const isScalar=i=>!!i&&typeof i==="object"&&i[J]===b;const isSeq=i=>!!i&&typeof i==="object"&&i[J]===S;function isCollection(i){if(i&&typeof i==="object")switch(i[J]){case p:case S:return true}return false}function isNode(i){if(i&&typeof i==="object")switch(i[J]){case f:case p:case b:case S:return true}return false}const hasAnchor=i=>(isScalar(i)||isCollection(i))&&!!i.anchor;g.ALIAS=f;g.DOC=E;g.MAP=p;g.NODE_TYPE=J;g.PAIR=y;g.SCALAR=b;g.SEQ=S;g.hasAnchor=hasAnchor;g.isAlias=isAlias;g.isCollection=isCollection;g.isDocument=isDocument;g.isMap=isMap;g.isNode=isNode;g.isPair=isPair;g.isScalar=isScalar;g.isSeq=isSeq},6424:(i,g,f)=>{var E=f(1127);function toJS(i,g,f){if(Array.isArray(i))return i.map(((i,g)=>toJS(i,String(g),f)));if(i&&typeof i.toJSON==="function"){if(!f||!E.hasAnchor(i))return i.toJSON(g,f);const p={aliasCount:0,count:1,res:undefined};f.anchors.set(i,p);f.onCreate=i=>{p.res=i;delete f.onCreate};const y=i.toJSON(g,f);if(f.onCreate)f.onCreate(y);return y}if(typeof i==="bigint"&&!f?.keep)return Number(i);return i}g.toJS=toJS},110:(i,g,f)=>{var E=f(8913);var p=f(6842);var y=f(1464);var b=f(3069);function resolveAsScalar(i,g=true,f){if(i){const _onError=(i,g,E)=>{const p=typeof i==="number"?i:Array.isArray(i)?i[0]:i.offset;if(f)f(p,g,E);else throw new y.YAMLParseError([p,p+1],g,E)};switch(i.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return p.resolveFlowScalar(i,g,_onError);case"block-scalar":return E.resolveBlockScalar({options:{strict:g}},i,_onError)}}return null}function createScalarToken(i,g){const{implicitKey:f=false,indent:E,inFlow:p=false,offset:y=-1,type:S="PLAIN"}=g;const J=b.stringifyString({type:S,value:i},{implicitKey:f,indent:E>0?" ".repeat(E):"",inFlow:p,options:{blockQuote:true,lineWidth:-1}});const Z=g.end??[{type:"newline",offset:-1,indent:E,source:"\n"}];switch(J[0]){case"|":case">":{const i=J.indexOf("\n");const g=J.substring(0,i);const f=J.substring(i+1)+"\n";const p=[{type:"block-scalar-header",offset:y,indent:E,source:g}];if(!addEndtoBlockProps(p,Z))p.push({type:"newline",offset:-1,indent:E,source:"\n"});return{type:"block-scalar",offset:y,indent:E,props:p,source:f}}case'"':return{type:"double-quoted-scalar",offset:y,indent:E,source:J,end:Z};case"'":return{type:"single-quoted-scalar",offset:y,indent:E,source:J,end:Z};default:return{type:"scalar",offset:y,indent:E,source:J,end:Z}}}function setScalarValue(i,g,f={}){let{afterKey:E=false,implicitKey:p=false,inFlow:y=false,type:S}=f;let J="indent"in i?i.indent:null;if(E&&typeof J==="number")J+=2;if(!S)switch(i.type){case"single-quoted-scalar":S="QUOTE_SINGLE";break;case"double-quoted-scalar":S="QUOTE_DOUBLE";break;case"block-scalar":{const g=i.props[0];if(g.type!=="block-scalar-header")throw new Error("Invalid block scalar header");S=g.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:S="PLAIN"}const Z=b.stringifyString({type:S,value:g},{implicitKey:p||J===null,indent:J!==null&&J>0?" ".repeat(J):"",inFlow:y,options:{blockQuote:true,lineWidth:-1}});switch(Z[0]){case"|":case">":setBlockScalarValue(i,Z);break;case'"':setFlowScalarValue(i,Z,"double-quoted-scalar");break;case"'":setFlowScalarValue(i,Z,"single-quoted-scalar");break;default:setFlowScalarValue(i,Z,"scalar")}}function setBlockScalarValue(i,g){const f=g.indexOf("\n");const E=g.substring(0,f);const p=g.substring(f+1)+"\n";if(i.type==="block-scalar"){const g=i.props[0];if(g.type!=="block-scalar-header")throw new Error("Invalid block scalar header");g.source=E;i.source=p}else{const{offset:g}=i;const f="indent"in i?i.indent:-1;const y=[{type:"block-scalar-header",offset:g,indent:f,source:E}];if(!addEndtoBlockProps(y,"end"in i?i.end:undefined))y.push({type:"newline",offset:-1,indent:f,source:"\n"});for(const g of Object.keys(i))if(g!=="type"&&g!=="offset")delete i[g];Object.assign(i,{type:"block-scalar",indent:f,props:y,source:p})}}function addEndtoBlockProps(i,g){if(g)for(const f of g)switch(f.type){case"space":case"comment":i.push(f);break;case"newline":i.push(f);return true}return false}function setFlowScalarValue(i,g,f){switch(i.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":i.type=f;i.source=g;break;case"block-scalar":{const E=i.props.slice(1);let p=g.length;if(i.props[0].type==="block-scalar-header")p-=i.props[0].source.length;for(const i of E)i.offset+=p;delete i.props;Object.assign(i,{type:f,source:g,end:E});break}case"block-map":case"block-seq":{const E=i.offset+g.length;const p={type:"newline",offset:E,indent:i.indent,source:"\n"};delete i.items;Object.assign(i,{type:f,source:g,end:[p]});break}default:{const E="indent"in i?i.indent:-1;const p="end"in i&&Array.isArray(i.end)?i.end.filter((i=>i.type==="space"||i.type==="comment"||i.type==="newline")):[];for(const g of Object.keys(i))if(g!=="type"&&g!=="offset")delete i[g];Object.assign(i,{type:f,indent:E,source:g,end:p})}}}g.createScalarToken=createScalarToken;g.resolveAsScalar=resolveAsScalar;g.setScalarValue=setScalarValue},1733:(i,g)=>{const stringify=i=>"type"in i?stringifyToken(i):stringifyItem(i);function stringifyToken(i){switch(i.type){case"block-scalar":{let g="";for(const f of i.props)g+=stringifyToken(f);return g+i.source}case"block-map":case"block-seq":{let g="";for(const f of i.items)g+=stringifyItem(f);return g}case"flow-collection":{let g=i.start.source;for(const f of i.items)g+=stringifyItem(f);for(const f of i.end)g+=f.source;return g}case"document":{let g=stringifyItem(i);if(i.end)for(const f of i.end)g+=f.source;return g}default:{let g=i.source;if("end"in i&&i.end)for(const f of i.end)g+=f.source;return g}}}function stringifyItem({start:i,key:g,sep:f,value:E}){let p="";for(const g of i)p+=g.source;if(g)p+=stringifyToken(g);if(f)for(const i of f)p+=i.source;if(E)p+=stringifyToken(E);return p}g.stringify=stringify},7715:(i,g)=>{const f=Symbol("break visit");const E=Symbol("skip children");const p=Symbol("remove item");function visit(i,g){if("type"in i&&i.type==="document")i={start:i.start,value:i.value};_visit(Object.freeze([]),i,g)}visit.BREAK=f;visit.SKIP=E;visit.REMOVE=p;visit.itemAtPath=(i,g)=>{let f=i;for(const[i,E]of g){const g=f?.[i];if(g&&"items"in g){f=g.items[E]}else return undefined}return f};visit.parentCollection=(i,g)=>{const f=visit.itemAtPath(i,g.slice(0,-1));const E=g[g.length-1][0];const p=f?.[E];if(p&&"items"in p)return p;throw new Error("Parent collection not found")};function _visit(i,g,E){let y=E(g,i);if(typeof y==="symbol")return y;for(const b of["key","value"]){const S=g[b];if(S&&"items"in S){for(let g=0;g<S.items.length;++g){const y=_visit(Object.freeze(i.concat([[b,g]])),S.items[g],E);if(typeof y==="number")g=y-1;else if(y===f)return f;else if(y===p){S.items.splice(g,1);g-=1}}if(typeof y==="function"&&b==="key")y=y(g,i)}}return typeof y==="function"?y(g,i):y}g.visit=visit},3461:(i,g,f)=>{var E=f(110);var p=f(1733);var y=f(7715);const b="\ufeff";const S="";const J="";const Z="";const isCollection=i=>!!i&&"items"in i;const isScalar=i=>!!i&&(i.type==="scalar"||i.type==="single-quoted-scalar"||i.type==="double-quoted-scalar"||i.type==="block-scalar");function prettyToken(i){switch(i){case b:return"<BOM>";case S:return"<DOC>";case J:return"<FLOW_END>";case Z:return"<SCALAR>";default:return JSON.stringify(i)}}function tokenType(i){switch(i){case b:return"byte-order-mark";case S:return"doc-mode";case J:return"flow-error-end";case Z:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(i[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}g.createScalarToken=E.createScalarToken;g.resolveAsScalar=E.resolveAsScalar;g.setScalarValue=E.setScalarValue;g.stringify=p.stringify;g.visit=y.visit;g.BOM=b;g.DOCUMENT=S;g.FLOW_END=J;g.SCALAR=Z;g.isCollection=isCollection;g.isScalar=isScalar;g.prettyToken=prettyToken;g.tokenType=tokenType},361:(i,g,f)=>{var E=f(3461);function isEmpty(i){switch(i){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const p=new Set("0123456789ABCDEFabcdef");const y=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const b=new Set(",[]{}");const S=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=i=>!i||S.has(i);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(i,g=false){if(i){if(typeof i!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+i:i;this.lineEndPos=null}this.atEnd=!g;let f=this.next??"stream";while(f&&(g||this.hasChars(1)))f=yield*this.parseNext(f)}atLineEnd(){let i=this.pos;let g=this.buffer[i];while(g===" "||g==="\t")g=this.buffer[++i];if(!g||g==="#"||g==="\n")return true;if(g==="\r")return this.buffer[i+1]==="\n";return false}charAt(i){return this.buffer[this.pos+i]}continueScalar(i){let g=this.buffer[i];if(this.indentNext>0){let f=0;while(g===" ")g=this.buffer[++f+i];if(g==="\r"){const g=this.buffer[f+i+1];if(g==="\n"||!g&&!this.atEnd)return i+f+1}return g==="\n"||f>=this.indentNext||!g&&!this.atEnd?i+f:-1}if(g==="-"||g==="."){const g=this.buffer.substr(i,3);if((g==="---"||g==="...")&&isEmpty(this.buffer[i+3]))return-1}return i}getLine(){let i=this.lineEndPos;if(typeof i!=="number"||i!==-1&&i<this.pos){i=this.buffer.indexOf("\n",this.pos);this.lineEndPos=i}if(i===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[i-1]==="\r")i-=1;return this.buffer.substring(this.pos,i)}hasChars(i){return this.pos+i<=this.buffer.length}setNext(i){this.buffer=this.buffer.substring(this.pos);this.pos=0;this.lineEndPos=null;this.next=i;return null}peek(i){return this.buffer.substr(this.pos,i)}*parseNext(i){switch(i){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let i=this.getLine();if(i===null)return this.setNext("stream");if(i[0]===E.BOM){yield*this.pushCount(1);i=i.substring(1)}if(i[0]==="%"){let g=i.length;let f=i.indexOf("#");while(f!==-1){const E=i[f-1];if(E===" "||E==="\t"){g=f-1;break}else{f=i.indexOf("#",f+1)}}while(true){const f=i[g-1];if(f===" "||f==="\t")g-=1;else break}const E=(yield*this.pushCount(g))+(yield*this.pushSpaces(true));yield*this.pushCount(i.length-E);this.pushNewline();return"stream"}if(this.atLineEnd()){const g=yield*this.pushSpaces(true);yield*this.pushCount(i.length-g);yield*this.pushNewline();return"stream"}yield E.DOCUMENT;return yield*this.parseLineStart()}*parseLineStart(){const i=this.charAt(0);if(!i&&!this.atEnd)return this.setNext("line-start");if(i==="-"||i==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const i=this.peek(3);if((i==="---"||i==="...")&&isEmpty(this.charAt(3))){yield*this.pushCount(3);this.indentValue=0;this.indentNext=0;return i==="---"?"doc":"stream"}}this.indentValue=yield*this.pushSpaces(false);if(this.indentNext>this.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[i,g]=this.peek(2);if(!g&&!this.atEnd)return this.setNext("block-start");if((i==="-"||i==="?"||i===":")&&isEmpty(g)){const i=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=i;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const i=this.getLine();if(i===null)return this.setNext("doc");let g=yield*this.pushIndicators();switch(i[g]){case"#":yield*this.pushCount(i.length-g);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":g+=(yield*this.parseBlockScalarHeader());g+=(yield*this.pushSpaces(true));yield*this.pushCount(i.length-g);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let i,g;let f=-1;do{i=yield*this.pushNewline();if(i>0){g=yield*this.pushSpaces(false);this.indentValue=f=g}else{g=0}g+=(yield*this.pushSpaces(true))}while(i+g>0);const p=this.getLine();if(p===null)return this.setNext("flow");if(f!==-1&&f<this.indentNext&&p[0]!=="#"||f===0&&(p.startsWith("---")||p.startsWith("..."))&&isEmpty(p[3])){const i=f===this.indentNext-1&&this.flowLevel===1&&(p[0]==="]"||p[0]==="}");if(!i){this.flowLevel=0;yield E.FLOW_END;return yield*this.parseLineStart()}}let y=0;while(p[y]===","){y+=(yield*this.pushCount(1));y+=(yield*this.pushSpaces(true));this.flowKey=false}y+=(yield*this.pushIndicators());switch(p[y]){case undefined:return"flow";case"#":yield*this.pushCount(p.length-y);return"flow";case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel+=1;return"flow";case"}":case"]":yield*this.pushCount(1);this.flowKey=true;this.flowLevel-=1;return this.flowLevel?"flow":"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"flow";case'"':case"'":this.flowKey=true;return yield*this.parseQuotedScalar();case":":{const i=this.charAt(1);if(this.flowKey||isEmpty(i)||i===","){this.flowKey=false;yield*this.pushCount(1);yield*this.pushSpaces(true);return"flow"}}default:this.flowKey=false;return yield*this.parsePlainScalar()}}*parseQuotedScalar(){const i=this.charAt(0);let g=this.buffer.indexOf(i,this.pos+1);if(i==="'"){while(g!==-1&&this.buffer[g+1]==="'")g=this.buffer.indexOf("'",g+2)}else{while(g!==-1){let i=0;while(this.buffer[g-1-i]==="\\")i+=1;if(i%2===0)break;g=this.buffer.indexOf('"',g+1)}}const f=this.buffer.substring(0,g);let E=f.indexOf("\n",this.pos);if(E!==-1){while(E!==-1){const i=this.continueScalar(E+1);if(i===-1)break;E=f.indexOf("\n",i)}if(E!==-1){g=E-(f[E-1]==="\r"?2:1)}}if(g===-1){if(!this.atEnd)return this.setNext("quoted-scalar");g=this.buffer.length}yield*this.pushToIndex(g+1,false);return this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1;this.blockScalarKeep=false;let i=this.pos;while(true){const g=this.buffer[++i];if(g==="+")this.blockScalarKeep=true;else if(g>"0"&&g<="9")this.blockScalarIndent=Number(g)-1;else if(g!=="-")break}return yield*this.pushUntil((i=>isEmpty(i)||i==="#"))}*parseBlockScalar(){let i=this.pos-1;let g=0;let f;e:for(let E=this.pos;f=this.buffer[E];++E){switch(f){case" ":g+=1;break;case"\n":i=E;g=0;break;case"\r":{const i=this.buffer[E+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i==="\n")break}default:break e}}if(!f&&!this.atEnd)return this.setNext("block-scalar");if(g>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=g;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const g=this.continueScalar(i+1);if(g===-1)break;i=this.buffer.indexOf("\n",g)}while(i!==-1);if(i===-1){if(!this.atEnd)return this.setNext("block-scalar");i=this.buffer.length}}let p=i+1;f=this.buffer[p];while(f===" ")f=this.buffer[++p];if(f==="\t"){while(f==="\t"||f===" "||f==="\r"||f==="\n")f=this.buffer[++p];i=p-1}else if(!this.blockScalarKeep){do{let f=i-1;let E=this.buffer[f];if(E==="\r")E=this.buffer[--f];const p=f;while(E===" ")E=this.buffer[--f];if(E==="\n"&&f>=this.pos&&f+1+g>p)i=f;else break}while(true)}yield E.SCALAR;yield*this.pushToIndex(i+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const i=this.flowLevel>0;let g=this.pos-1;let f=this.pos-1;let p;while(p=this.buffer[++f]){if(p===":"){const E=this.buffer[f+1];if(isEmpty(E)||i&&b.has(E))break;g=f}else if(isEmpty(p)){let E=this.buffer[f+1];if(p==="\r"){if(E==="\n"){f+=1;p="\n";E=this.buffer[f+1]}else g=f}if(E==="#"||i&&b.has(E))break;if(p==="\n"){const i=this.continueScalar(f+1);if(i===-1)break;f=Math.max(f,i-2)}}else{if(i&&b.has(p))break;g=f}}if(!p&&!this.atEnd)return this.setNext("plain-scalar");yield E.SCALAR;yield*this.pushToIndex(g+1,true);return i?"flow":"doc"}*pushCount(i){if(i>0){yield this.buffer.substr(this.pos,i);this.pos+=i;return i}return 0}*pushToIndex(i,g){const f=this.buffer.slice(this.pos,i);if(f){yield f;this.pos+=f.length;return f.length}else if(g)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const i=this.flowLevel>0;const g=this.charAt(1);if(isEmpty(g)||i&&b.has(g)){if(!i)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let i=this.pos+2;let g=this.buffer[i];while(!isEmpty(g)&&g!==">")g=this.buffer[++i];return yield*this.pushToIndex(g===">"?i+1:i,false)}else{let i=this.pos+1;let g=this.buffer[i];while(g){if(y.has(g))g=this.buffer[++i];else if(g==="%"&&p.has(this.buffer[i+1])&&p.has(this.buffer[i+2])){g=this.buffer[i+=3]}else break}return yield*this.pushToIndex(i,false)}}*pushNewline(){const i=this.buffer[this.pos];if(i==="\n")return yield*this.pushCount(1);else if(i==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(i){let g=this.pos-1;let f;do{f=this.buffer[++g]}while(f===" "||i&&f==="\t");const E=g-this.pos;if(E>0){yield this.buffer.substr(this.pos,E);this.pos=g}return E}*pushUntil(i){let g=this.pos;let f=this.buffer[g];while(!i(f))f=this.buffer[++g];return yield*this.pushToIndex(g,false)}}g.Lexer=Lexer},6628:(i,g)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=i=>this.lineStarts.push(i);this.linePos=i=>{let g=0;let f=this.lineStarts.length;while(g<f){const E=g+f>>1;if(this.lineStarts[E]<i)g=E+1;else f=E}if(this.lineStarts[g]===i)return{line:g+1,col:1};if(g===0)return{line:0,col:i};const E=this.lineStarts[g-1];return{line:g,col:i-E+1}}}}g.LineCounter=LineCounter},3456:(i,g,f)=>{var E=f(932);var p=f(3461);var y=f(361);function includesToken(i,g){for(let f=0;f<i.length;++f)if(i[f].type===g)return true;return false}function findNonEmptyIndex(i){for(let g=0;g<i.length;++g){switch(i[g].type){case"space":case"comment":case"newline":break;default:return g}}return-1}function isFlowToken(i){switch(i?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return true;default:return false}}function getPrevProps(i){switch(i.type){case"document":return i.start;case"block-map":{const g=i.items[i.items.length-1];return g.sep??g.start}case"block-seq":return i.items[i.items.length-1].start;default:return[]}}function getFirstKeyStartProps(i){if(i.length===0)return[];let g=i.length;e:while(--g>=0){switch(i[g].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(i[++g]?.type==="space"){}return i.splice(g,i.length)}function fixFlowSeqItems(i){if(i.start.type==="flow-seq-start"){for(const g of i.items){if(g.sep&&!g.value&&!includesToken(g.start,"explicit-key-ind")&&!includesToken(g.sep,"map-value-ind")){if(g.key)g.value=g.key;delete g.key;if(isFlowToken(g.value)){if(g.value.end)Array.prototype.push.apply(g.value.end,g.sep);else g.value.end=g.sep}else Array.prototype.push.apply(g.start,g.sep);delete g.sep}}}}class Parser{constructor(i){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new y.Lexer;this.onNewLine=i}*parse(i,g=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const f of this.lexer.lex(i,g))yield*this.next(f);if(!g)yield*this.end()}*next(i){this.source=i;if(E.env.LOG_TOKENS)console.log("|",p.prettyToken(i));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=i.length;return}const g=p.tokenType(i);if(!g){const g=`Not a YAML token: ${i}`;yield*this.pop({type:"error",offset:this.offset,message:g,source:i});this.offset+=i.length}else if(g==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=g;yield*this.step();switch(g){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+i.length);break;case"space":if(this.atNewLine&&i[0]===" ")this.indent+=i.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=i.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=i.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const i={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return i}*step(){const i=this.peek(1);if(this.type==="doc-end"&&i?.type!=="doc-end"){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!i)return yield*this.stream();switch(i.type){case"document":return yield*this.document(i);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(i);case"block-scalar":return yield*this.blockScalar(i);case"block-map":return yield*this.blockMap(i);case"block-seq":return yield*this.blockSequence(i);case"flow-collection":return yield*this.flowCollection(i);case"doc-end":return yield*this.documentEnd(i)}yield*this.pop()}peek(i){return this.stack[this.stack.length-i]}*pop(i){const g=i??this.stack.pop();if(!g){const i="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:i}}else if(this.stack.length===0){yield g}else{const i=this.peek(1);if(g.type==="block-scalar"){g.indent="indent"in i?i.indent:0}else if(g.type==="flow-collection"&&i.type==="document"){g.indent=0}if(g.type==="flow-collection")fixFlowSeqItems(g);switch(i.type){case"document":i.value=g;break;case"block-scalar":i.props.push(g);break;case"block-map":{const f=i.items[i.items.length-1];if(f.value){i.items.push({start:[],key:g,sep:[]});this.onKeyLine=true;return}else if(f.sep){f.value=g}else{Object.assign(f,{key:g,sep:[]});this.onKeyLine=!f.explicitKey;return}break}case"block-seq":{const f=i.items[i.items.length-1];if(f.value)i.items.push({start:[],value:g});else f.value=g;break}case"flow-collection":{const f=i.items[i.items.length-1];if(!f||f.value)i.items.push({start:[],key:g,sep:[]});else if(f.sep)f.value=g;else Object.assign(f,{key:g,sep:[]});return}default:yield*this.pop();yield*this.pop(g)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(g.type==="block-map"||g.type==="block-seq")){const f=g.items[g.items.length-1];if(f&&!f.sep&&!f.value&&f.start.length>0&&findNonEmptyIndex(f.start)===-1&&(g.indent===0||f.start.every((i=>i.type!=="comment"||i.indent<g.indent)))){if(i.type==="document")i.end=f.start;else i.items.push({start:f.start});g.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const i={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")i.start.push(this.sourceToken);this.stack.push(i);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(i){if(i.value)return yield*this.lineEnd(i);switch(this.type){case"doc-start":{if(findNonEmptyIndex(i.start)!==-1){yield*this.pop();yield*this.step()}else i.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":i.start.push(this.sourceToken);return}const g=this.startBlockValue(i);if(g)this.stack.push(g);else{yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}}*scalar(i){if(this.type==="map-value-ind"){const g=getPrevProps(this.peek(2));const f=getFirstKeyStartProps(g);let E;if(i.end){E=i.end;E.push(this.sourceToken);delete i.end}else E=[this.sourceToken];const p={type:"block-map",offset:i.offset,indent:i.indent,items:[{start:f,key:i,sep:E}]};this.onKeyLine=true;this.stack[this.stack.length-1]=p}else yield*this.lineEnd(i)}*blockScalar(i){switch(this.type){case"space":case"comment":case"newline":i.props.push(this.sourceToken);return;case"scalar":i.source=this.source;this.atNewLine=true;this.indent=0;if(this.onNewLine){let i=this.source.indexOf("\n")+1;while(i!==0){this.onNewLine(this.offset+i);i=this.source.indexOf("\n",i)+1}}yield*this.pop();break;default:yield*this.pop();yield*this.step()}}*blockMap(i){const g=i.items[i.items.length-1];switch(this.type){case"newline":this.onKeyLine=false;if(g.value){const f="end"in g.value?g.value.end:undefined;const E=Array.isArray(f)?f[f.length-1]:undefined;if(E?.type==="comment")f?.push(this.sourceToken);else i.items.push({start:[this.sourceToken]})}else if(g.sep){g.sep.push(this.sourceToken)}else{g.start.push(this.sourceToken)}return;case"space":case"comment":if(g.value){i.items.push({start:[this.sourceToken]})}else if(g.sep){g.sep.push(this.sourceToken)}else{if(this.atIndentedComment(g.start,i.indent)){const f=i.items[i.items.length-2];const E=f?.value?.end;if(Array.isArray(E)){Array.prototype.push.apply(E,g.start);E.push(this.sourceToken);i.items.pop();return}}g.start.push(this.sourceToken)}return}if(this.indent>=i.indent){const f=!this.onKeyLine&&this.indent===i.indent;const E=f&&(g.sep||g.explicitKey)&&this.type!=="seq-item-ind";let p=[];if(E&&g.sep&&!g.value){const f=[];for(let E=0;E<g.sep.length;++E){const p=g.sep[E];switch(p.type){case"newline":f.push(E);break;case"space":break;case"comment":if(p.indent>i.indent)f.length=0;break;default:f.length=0}}if(f.length>=2)p=g.sep.splice(f[1])}switch(this.type){case"anchor":case"tag":if(E||g.value){p.push(this.sourceToken);i.items.push({start:p});this.onKeyLine=true}else if(g.sep){g.sep.push(this.sourceToken)}else{g.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!g.sep&&!g.explicitKey){g.start.push(this.sourceToken);g.explicitKey=true}else if(E||g.value){p.push(this.sourceToken);i.items.push({start:p,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(g.explicitKey){if(!g.sep){if(includesToken(g.start,"newline")){Object.assign(g,{key:null,sep:[this.sourceToken]})}else{const i=getFirstKeyStartProps(g.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]})}}else if(g.value){i.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(g.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:p,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(g.key)&&!includesToken(g.sep,"newline")){const i=getFirstKeyStartProps(g.start);const f=g.key;const E=g.sep;E.push(this.sourceToken);delete g.key;delete g.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:f,sep:E}]})}else if(p.length>0){g.sep=g.sep.concat(p,this.sourceToken)}else{g.sep.push(this.sourceToken)}}else{if(!g.sep){Object.assign(g,{key:null,sep:[this.sourceToken]})}else if(g.value||E){i.items.push({start:p,key:null,sep:[this.sourceToken]})}else if(includesToken(g.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{g.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const f=this.flowScalar(this.type);if(E||g.value){i.items.push({start:p,key:f,sep:[]});this.onKeyLine=true}else if(g.sep){this.stack.push(f)}else{Object.assign(g,{key:f,sep:[]});this.onKeyLine=true}return}default:{const E=this.startBlockValue(i);if(E){if(E.type==="block-seq"){if(!g.explicitKey&&g.sep&&!includesToken(g.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(f){i.items.push({start:p})}this.stack.push(E);return}}}}yield*this.pop();yield*this.step()}*blockSequence(i){const g=i.items[i.items.length-1];switch(this.type){case"newline":if(g.value){const f="end"in g.value?g.value.end:undefined;const E=Array.isArray(f)?f[f.length-1]:undefined;if(E?.type==="comment")f?.push(this.sourceToken);else i.items.push({start:[this.sourceToken]})}else g.start.push(this.sourceToken);return;case"space":case"comment":if(g.value)i.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(g.start,i.indent)){const f=i.items[i.items.length-2];const E=f?.value?.end;if(Array.isArray(E)){Array.prototype.push.apply(E,g.start);E.push(this.sourceToken);i.items.pop();return}}g.start.push(this.sourceToken)}return;case"anchor":case"tag":if(g.value||this.indent<=i.indent)break;g.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==i.indent)break;if(g.value||includesToken(g.start,"seq-item-ind"))i.items.push({start:[this.sourceToken]});else g.start.push(this.sourceToken);return}if(this.indent>i.indent){const g=this.startBlockValue(i);if(g){this.stack.push(g);return}}yield*this.pop();yield*this.step()}*flowCollection(i){const g=i.items[i.items.length-1];if(this.type==="flow-error-end"){let i;do{yield*this.pop();i=this.peek(1)}while(i?.type==="flow-collection")}else if(i.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!g||g.sep)i.items.push({start:[this.sourceToken]});else g.start.push(this.sourceToken);return;case"map-value-ind":if(!g||g.value)i.items.push({start:[],key:null,sep:[this.sourceToken]});else if(g.sep)g.sep.push(this.sourceToken);else Object.assign(g,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!g||g.value)i.items.push({start:[this.sourceToken]});else if(g.sep)g.sep.push(this.sourceToken);else g.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const f=this.flowScalar(this.type);if(!g||g.value)i.items.push({start:[],key:f,sep:[]});else if(g.sep)this.stack.push(f);else Object.assign(g,{key:f,sep:[]});return}case"flow-map-end":case"flow-seq-end":i.end.push(this.sourceToken);return}const f=this.startBlockValue(i);if(f)this.stack.push(f);else{yield*this.pop();yield*this.step()}}else{const g=this.peek(2);if(g.type==="block-map"&&(this.type==="map-value-ind"&&g.indent===i.indent||this.type==="newline"&&!g.items[g.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&g.type!=="flow-collection"){const f=getPrevProps(g);const E=getFirstKeyStartProps(f);fixFlowSeqItems(i);const p=i.end.splice(1,i.end.length);p.push(this.sourceToken);const y={type:"block-map",offset:i.offset,indent:i.indent,items:[{start:E,key:i,sep:p}]};this.onKeyLine=true;this.stack[this.stack.length-1]=y}else{yield*this.lineEnd(i)}}}flowScalar(i){if(this.onNewLine){let i=this.source.indexOf("\n")+1;while(i!==0){this.onNewLine(this.offset+i);i=this.source.indexOf("\n",i)+1}}return{type:i,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(i){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const g=getPrevProps(i);const f=getFirstKeyStartProps(g);f.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const g=getPrevProps(i);const f=getFirstKeyStartProps(g);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(i,g){if(this.type!=="comment")return false;if(this.indent<=g)return false;return i.every((i=>i.type==="newline"||i.type==="space"))}*documentEnd(i){if(this.type!=="doc-mode"){if(i.end)i.end.push(this.sourceToken);else i.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(i){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(i.end)i.end.push(this.sourceToken);else i.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}g.Parser=Parser},4047:(i,g,f)=>{var E=f(9984);var p=f(3021);var y=f(1464);var b=f(7249);var S=f(1127);var J=f(6628);var Z=f(3456);function parseOptions(i){const g=i.prettyErrors!==false;const f=i.lineCounter||g&&new J.LineCounter||null;return{lineCounter:f,prettyErrors:g}}function parseAllDocuments(i,g={}){const{lineCounter:f,prettyErrors:p}=parseOptions(g);const b=new Z.Parser(f?.addNewLine);const S=new E.Composer(g);const J=Array.from(S.compose(b.parse(i)));if(p&&f)for(const g of J){g.errors.forEach(y.prettifyError(i,f));g.warnings.forEach(y.prettifyError(i,f))}if(J.length>0)return J;return Object.assign([],{empty:true},S.streamInfo())}function parseDocument(i,g={}){const{lineCounter:f,prettyErrors:p}=parseOptions(g);const b=new Z.Parser(f?.addNewLine);const S=new E.Composer(g);let J=null;for(const g of S.compose(b.parse(i),true,i.length)){if(!J)J=g;else if(J.options.logLevel!=="silent"){J.errors.push(new y.YAMLParseError(g.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(p&&f){J.errors.forEach(y.prettifyError(i,f));J.warnings.forEach(y.prettifyError(i,f))}return J}function parse(i,g,f){let E=undefined;if(typeof g==="function"){E=g}else if(f===undefined&&g&&typeof g==="object"){f=g}const p=parseDocument(i,f);if(!p)return null;p.warnings.forEach((i=>b.warn(p.options.logLevel,i)));if(p.errors.length>0){if(p.options.logLevel!=="silent")throw p.errors[0];else p.errors=[]}return p.toJS(Object.assign({reviver:E},f))}function stringify(i,g,f){let E=null;if(typeof g==="function"||Array.isArray(g)){E=g}else if(f===undefined&&g){f=g}if(typeof f==="string")f=f.length;if(typeof f==="number"){const i=Math.round(f);f=i<1?undefined:i>8?{indent:8}:{indent:i}}if(i===undefined){const{keepUndefined:i}=f??g??{};if(!i)return undefined}if(S.isDocument(i)&&!E)return i.toString(f);return new p.Document(i,E,f).toString(f)}g.parse=parse;g.parseAllDocuments=parseAllDocuments;g.parseDocument=parseDocument;g.stringify=stringify},5840:(i,g,f)=>{var E=f(1127);var p=f(7451);var y=f(1706);var b=f(6464);var S=f(18);const sortMapEntriesByKey=(i,g)=>i.key<g.key?-1:i.key>g.key?1:0;class Schema{constructor({compat:i,customTags:g,merge:f,resolveKnownTags:J,schema:Z,sortMapEntries:$,toStringDefaults:z}){this.compat=Array.isArray(i)?S.getTags(i,"compat"):i?S.getTags(null,i):null;this.name=typeof Z==="string"&&Z||"core";this.knownTags=J?S.coreKnownTags:{};this.tags=S.getTags(g,this.name,f);this.toStringOptions=z??null;Object.defineProperty(this,E.MAP,{value:p.map});Object.defineProperty(this,E.SCALAR,{value:b.string});Object.defineProperty(this,E.SEQ,{value:y.seq});this.sortMapEntries=typeof $==="function"?$:$===true?sortMapEntriesByKey:null}clone(){const i=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));i.tags=this.tags.slice();return i}}g.Schema=Schema},7451:(i,g,f)=>{var E=f(1127);var p=f(4454);const y={collection:"map",default:true,nodeClass:p.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(i,g){if(!E.isMap(i))g("Expected a mapping for this tag");return i},createNode:(i,g,f)=>p.YAMLMap.from(i,g,f)};g.map=y},3632:(i,g,f)=>{var E=f(3301);const p={identify:i=>i==null,createNode:()=>new E.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new E.Scalar(null),stringify:({source:i},g)=>typeof i==="string"&&p.test.test(i)?i:g.options.nullStr};g.nullTag=p},1706:(i,g,f)=>{var E=f(1127);var p=f(2223);const y={collection:"seq",default:true,nodeClass:p.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(i,g){if(!E.isSeq(i))g("Expected a sequence for this tag");return i},createNode:(i,g,f)=>p.YAMLSeq.from(i,g,f)};g.seq=y},6464:(i,g,f)=>{var E=f(3069);const p={identify:i=>typeof i==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify(i,g,f,p){g=Object.assign({actualString:true},g);return E.stringifyString(i,g,f,p)}};g.string=p},3959:(i,g,f)=>{var E=f(3301);const p={identify:i=>typeof i==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:i=>new E.Scalar(i[0]==="t"||i[0]==="T"),stringify({source:i,value:g},f){if(i&&p.test.test(i)){const f=i[0]==="t"||i[0]==="T";if(g===f)return i}return g?f.options.trueStr:f.options.falseStr}};g.boolTag=p},8405:(i,g,f)=>{var E=f(3301);var p=f(8689);const y={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:p.stringifyNumber};const b={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i),stringify(i){const g=Number(i.value);return isFinite(g)?g.toExponential():p.stringifyNumber(i)}};const S={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(i){const g=new E.Scalar(parseFloat(i));const f=i.indexOf(".");if(f!==-1&&i[i.length-1]==="0")g.minFractionDigits=i.length-f-1;return g},stringify:p.stringifyNumber};g.float=S;g.floatExp=b;g.floatNaN=y},9874:(i,g,f)=>{var E=f(8689);const intIdentify=i=>typeof i==="bigint"||Number.isInteger(i);const intResolve=(i,g,f,{intAsBigInt:E})=>E?BigInt(i):parseInt(i.substring(g),f);function intStringify(i,g,f){const{value:p}=i;if(intIdentify(p)&&p>=0)return f+p.toString(g);return E.stringifyNumber(i)}const p={identify:i=>intIdentify(i)&&i>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(i,g,f)=>intResolve(i,2,8,f),stringify:i=>intStringify(i,8,"0o")};const y={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(i,g,f)=>intResolve(i,0,10,f),stringify:E.stringifyNumber};const b={identify:i=>intIdentify(i)&&i>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(i,g,f)=>intResolve(i,2,16,f),stringify:i=>intStringify(i,16,"0x")};g.int=y;g.intHex=b;g.intOct=p},896:(i,g,f)=>{var E=f(7451);var p=f(3632);var y=f(1706);var b=f(6464);var S=f(3959);var J=f(8405);var Z=f(9874);const $=[E.map,y.seq,b.string,p.nullTag,S.boolTag,Z.intOct,Z.int,Z.intHex,J.floatNaN,J.floatExp,J.float];g.schema=$},3559:(i,g,f)=>{var E=f(3301);var p=f(7451);var y=f(1706);function intIdentify(i){return typeof i==="bigint"||Number.isInteger(i)}const stringifyJSON=({value:i})=>JSON.stringify(i);const b=[{identify:i=>typeof i==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify:stringifyJSON},{identify:i=>i==null,createNode:()=>new E.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:i=>typeof i==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:i=>i==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(i,g,{intAsBigInt:f})=>f?BigInt(i):parseInt(i,10),stringify:({value:i})=>intIdentify(i)?i.toString():JSON.stringify(i)},{identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:i=>parseFloat(i),stringify:stringifyJSON}];const S={default:true,tag:"",test:/^/,resolve(i,g){g(`Unresolved plain scalar ${JSON.stringify(i)}`);return i}};const J=[p.map,y.seq].concat(b,S);g.schema=J},18:(i,g,f)=>{var E=f(7451);var p=f(3632);var y=f(1706);var b=f(6464);var S=f(3959);var J=f(8405);var Z=f(9874);var $=f(896);var z=f(3559);var ee=f(6083);var re=f(452);var Pe=f(303);var $t=f(8385);var tn=f(8294);var sn=f(1528);var nn=f(4371);const rn=new Map([["core",$.schema],["failsafe",[E.map,y.seq,b.string]],["json",z.schema],["yaml11",tn.schema],["yaml-1.1",tn.schema]]);const An={binary:ee.binary,bool:S.boolTag,float:J.float,floatExp:J.floatExp,floatNaN:J.floatNaN,floatTime:nn.floatTime,int:Z.int,intHex:Z.intHex,intOct:Z.intOct,intTime:nn.intTime,map:E.map,merge:re.merge,null:p.nullTag,omap:Pe.omap,pairs:$t.pairs,seq:y.seq,set:sn.set,timestamp:nn.timestamp};const on={"tag:yaml.org,2002:binary":ee.binary,"tag:yaml.org,2002:merge":re.merge,"tag:yaml.org,2002:omap":Pe.omap,"tag:yaml.org,2002:pairs":$t.pairs,"tag:yaml.org,2002:set":sn.set,"tag:yaml.org,2002:timestamp":nn.timestamp};function getTags(i,g,f){const E=rn.get(g);if(E&&!i){return f&&!E.includes(re.merge)?E.concat(re.merge):E.slice()}let p=E;if(!p){if(Array.isArray(i))p=[];else{const i=Array.from(rn.keys()).filter((i=>i!=="yaml11")).map((i=>JSON.stringify(i))).join(", ");throw new Error(`Unknown schema "${g}"; use one of ${i} or define customTags array`)}}if(Array.isArray(i)){for(const g of i)p=p.concat(g)}else if(typeof i==="function"){p=i(p.slice())}if(f)p=p.concat(re.merge);return p.reduce(((i,g)=>{const f=typeof g==="string"?An[g]:g;if(!f){const i=JSON.stringify(g);const f=Object.keys(An).map((i=>JSON.stringify(i))).join(", ");throw new Error(`Unknown custom tag ${i}; use one of ${f}`)}if(!i.includes(f))i.push(f);return i}),[])}g.coreKnownTags=on;g.getTags=getTags},6083:(i,g,f)=>{var E=f(181);var p=f(3301);var y=f(3069);const b={identify:i=>i instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(i,g){if(typeof E.Buffer==="function"){return E.Buffer.from(i,"base64")}else if(typeof atob==="function"){const g=atob(i.replace(/[\n\r]/g,""));const f=new Uint8Array(g.length);for(let i=0;i<g.length;++i)f[i]=g.charCodeAt(i);return f}else{g("This environment does not support reading binary tags; either Buffer or atob is required");return i}},stringify({comment:i,type:g,value:f},b,S,J){if(!f)return"";const Z=f;let $;if(typeof E.Buffer==="function"){$=Z instanceof E.Buffer?Z.toString("base64"):E.Buffer.from(Z.buffer).toString("base64")}else if(typeof btoa==="function"){let i="";for(let g=0;g<Z.length;++g)i+=String.fromCharCode(Z[g]);$=btoa(i)}else{throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required")}g??(g=p.Scalar.BLOCK_LITERAL);if(g!==p.Scalar.QUOTE_DOUBLE){const i=Math.max(b.options.lineWidth-b.indent.length,b.options.minContentWidth);const f=Math.ceil($.length/i);const E=new Array(f);for(let g=0,p=0;g<f;++g,p+=i){E[g]=$.substr(p,i)}$=E.join(g===p.Scalar.BLOCK_LITERAL?"\n":" ")}return y.stringifyString({comment:i,type:g,value:$},b,S,J)}};g.binary=b},8398:(i,g,f)=>{var E=f(3301);function boolStringify({value:i,source:g},f){const E=i?p:y;if(g&&E.test.test(g))return g;return i?f.options.trueStr:f.options.falseStr}const p={identify:i=>i===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new E.Scalar(true),stringify:boolStringify};const y={identify:i=>i===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new E.Scalar(false),stringify:boolStringify};g.falseTag=y;g.trueTag=p},5782:(i,g,f)=>{var E=f(3301);var p=f(8689);const y={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:p.stringifyNumber};const b={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i.replace(/_/g,"")),stringify(i){const g=Number(i.value);return isFinite(g)?g.toExponential():p.stringifyNumber(i)}};const S={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(i){const g=new E.Scalar(parseFloat(i.replace(/_/g,"")));const f=i.indexOf(".");if(f!==-1){const E=i.substring(f+1).replace(/_/g,"");if(E[E.length-1]==="0")g.minFractionDigits=E.length}return g},stringify:p.stringifyNumber};g.float=S;g.floatExp=b;g.floatNaN=y},873:(i,g,f)=>{var E=f(8689);const intIdentify=i=>typeof i==="bigint"||Number.isInteger(i);function intResolve(i,g,f,{intAsBigInt:E}){const p=i[0];if(p==="-"||p==="+")g+=1;i=i.substring(g).replace(/_/g,"");if(E){switch(f){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}const g=BigInt(i);return p==="-"?BigInt(-1)*g:g}const y=parseInt(i,f);return p==="-"?-1*y:y}function intStringify(i,g,f){const{value:p}=i;if(intIdentify(p)){const i=p.toString(g);return p<0?"-"+f+i.substr(1):f+i}return E.stringifyNumber(i)}const p={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(i,g,f)=>intResolve(i,2,2,f),stringify:i=>intStringify(i,2,"0b")};const y={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(i,g,f)=>intResolve(i,1,8,f),stringify:i=>intStringify(i,8,"0")};const b={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(i,g,f)=>intResolve(i,0,10,f),stringify:E.stringifyNumber};const S={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(i,g,f)=>intResolve(i,2,16,f),stringify:i=>intStringify(i,16,"0x")};g.int=b;g.intBin=p;g.intHex=S;g.intOct=y},452:(i,g,f)=>{var E=f(1127);var p=f(3301);const y="<<";const b={identify:i=>i===y||typeof i==="symbol"&&i.description===y,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new p.Scalar(Symbol(y)),{addToJSMap:addMergeToJSMap}),stringify:()=>y};const isMergeKey=(i,g)=>(b.identify(g)||E.isScalar(g)&&(!g.type||g.type===p.Scalar.PLAIN)&&b.identify(g.value))&&i?.doc.schema.tags.some((i=>i.tag===b.tag&&i.default));function addMergeToJSMap(i,g,f){f=i&&E.isAlias(f)?f.resolve(i.doc):f;if(E.isSeq(f))for(const E of f.items)mergeValue(i,g,E);else if(Array.isArray(f))for(const E of f)mergeValue(i,g,E);else mergeValue(i,g,f)}function mergeValue(i,g,f){const p=i&&E.isAlias(f)?f.resolve(i.doc):f;if(!E.isMap(p))throw new Error("Merge sources must be maps or map aliases");const y=p.toJSON(null,i,Map);for(const[i,f]of y){if(g instanceof Map){if(!g.has(i))g.set(i,f)}else if(g instanceof Set){g.add(i)}else if(!Object.prototype.hasOwnProperty.call(g,i)){Object.defineProperty(g,i,{value:f,writable:true,enumerable:true,configurable:true})}}return g}g.addMergeToJSMap=addMergeToJSMap;g.isMergeKey=isMergeKey;g.merge=b},303:(i,g,f)=>{var E=f(1127);var p=f(6424);var y=f(4454);var b=f(2223);var S=f(8385);class YAMLOMap extends b.YAMLSeq{constructor(){super();this.add=y.YAMLMap.prototype.add.bind(this);this.delete=y.YAMLMap.prototype.delete.bind(this);this.get=y.YAMLMap.prototype.get.bind(this);this.has=y.YAMLMap.prototype.has.bind(this);this.set=y.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(i,g){if(!g)return super.toJSON(i);const f=new Map;if(g?.onCreate)g.onCreate(f);for(const i of this.items){let y,b;if(E.isPair(i)){y=p.toJS(i.key,"",g);b=p.toJS(i.value,y,g)}else{y=p.toJS(i,"",g)}if(f.has(y))throw new Error("Ordered maps must not include duplicate keys");f.set(y,b)}return f}static from(i,g,f){const E=S.createPairs(i,g,f);const p=new this;p.items=E.items;return p}}YAMLOMap.tag="tag:yaml.org,2002:omap";const J={collection:"seq",identify:i=>i instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(i,g){const f=S.resolvePairs(i,g);const p=[];for(const{key:i}of f.items){if(E.isScalar(i)){if(p.includes(i.value)){g(`Ordered maps must not include duplicate keys: ${i.value}`)}else{p.push(i.value)}}}return Object.assign(new YAMLOMap,f)},createNode:(i,g,f)=>YAMLOMap.from(i,g,f)};g.YAMLOMap=YAMLOMap;g.omap=J},8385:(i,g,f)=>{var E=f(1127);var p=f(7165);var y=f(3301);var b=f(2223);function resolvePairs(i,g){if(E.isSeq(i)){for(let f=0;f<i.items.length;++f){let b=i.items[f];if(E.isPair(b))continue;else if(E.isMap(b)){if(b.items.length>1)g("Each pair must have its own sequence indicator");const i=b.items[0]||new p.Pair(new y.Scalar(null));if(b.commentBefore)i.key.commentBefore=i.key.commentBefore?`${b.commentBefore}\n${i.key.commentBefore}`:b.commentBefore;if(b.comment){const g=i.value??i.key;g.comment=g.comment?`${b.comment}\n${g.comment}`:b.comment}b=i}i.items[f]=E.isPair(b)?b:new p.Pair(b)}}else g("Expected a sequence for this tag");return i}function createPairs(i,g,f){const{replacer:E}=f;const y=new b.YAMLSeq(i);y.tag="tag:yaml.org,2002:pairs";let S=0;if(g&&Symbol.iterator in Object(g))for(let i of g){if(typeof E==="function")i=E.call(g,String(S++),i);let b,J;if(Array.isArray(i)){if(i.length===2){b=i[0];J=i[1]}else throw new TypeError(`Expected [key, value] tuple: ${i}`)}else if(i&&i instanceof Object){const g=Object.keys(i);if(g.length===1){b=g[0];J=i[b]}else{throw new TypeError(`Expected tuple with one key, not ${g.length} keys`)}}else{b=i}y.items.push(p.createPair(b,J,f))}return y}const S={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};g.createPairs=createPairs;g.pairs=S;g.resolvePairs=resolvePairs},8294:(i,g,f)=>{var E=f(7451);var p=f(3632);var y=f(1706);var b=f(6464);var S=f(6083);var J=f(8398);var Z=f(5782);var $=f(873);var z=f(452);var ee=f(303);var re=f(8385);var Pe=f(1528);var $t=f(4371);const tn=[E.map,y.seq,b.string,p.nullTag,J.trueTag,J.falseTag,$.intBin,$.intOct,$.int,$.intHex,Z.floatNaN,Z.floatExp,Z.float,S.binary,z.merge,ee.omap,re.pairs,Pe.set,$t.intTime,$t.floatTime,$t.timestamp];g.schema=tn},1528:(i,g,f)=>{var E=f(1127);var p=f(7165);var y=f(4454);class YAMLSet extends y.YAMLMap{constructor(i){super(i);this.tag=YAMLSet.tag}add(i){let g;if(E.isPair(i))g=i;else if(i&&typeof i==="object"&&"key"in i&&"value"in i&&i.value===null)g=new p.Pair(i.key,null);else g=new p.Pair(i,null);const f=y.findPair(this.items,g.key);if(!f)this.items.push(g)}get(i,g){const f=y.findPair(this.items,i);return!g&&E.isPair(f)?E.isScalar(f.key)?f.key.value:f.key:f}set(i,g){if(typeof g!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof g}`);const f=y.findPair(this.items,i);if(f&&!g){this.items.splice(this.items.indexOf(f),1)}else if(!f&&g){this.items.push(new p.Pair(i))}}toJSON(i,g){return super.toJSON(i,g,Set)}toString(i,g,f){if(!i)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},i,{allNullValues:true}),g,f);else throw new Error("Set items must all have null values")}static from(i,g,f){const{replacer:E}=f;const y=new this(i);if(g&&Symbol.iterator in Object(g))for(let i of g){if(typeof E==="function")i=E.call(g,i,i);y.items.push(p.createPair(i,null,f))}return y}}YAMLSet.tag="tag:yaml.org,2002:set";const b={collection:"map",identify:i=>i instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(i,g,f)=>YAMLSet.from(i,g,f),resolve(i,g){if(E.isMap(i)){if(i.hasAllNullValues(true))return Object.assign(new YAMLSet,i);else g("Set items must all have null values")}else g("Expected a mapping for this tag");return i}};g.YAMLSet=YAMLSet;g.set=b},4371:(i,g,f)=>{var E=f(8689);function parseSexagesimal(i,g){const f=i[0];const E=f==="-"||f==="+"?i.substring(1):i;const num=i=>g?BigInt(i):Number(i);const p=E.replace(/_/g,"").split(":").reduce(((i,g)=>i*num(60)+num(g)),num(0));return f==="-"?num(-1)*p:p}function stringifySexagesimal(i){let{value:g}=i;let num=i=>i;if(typeof g==="bigint")num=i=>BigInt(i);else if(isNaN(g)||!isFinite(g))return E.stringifyNumber(i);let f="";if(g<0){f="-";g*=num(-1)}const p=num(60);const y=[g%p];if(g<60){y.unshift(0)}else{g=(g-y[0])/p;y.unshift(g%p);if(g>=60){g=(g-y[0])/p;y.unshift(g)}}return f+y.map((i=>String(i).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const p={identify:i=>typeof i==="bigint"||Number.isInteger(i),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(i,g,{intAsBigInt:f})=>parseSexagesimal(i,f),stringify:stringifySexagesimal};const y={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:i=>parseSexagesimal(i,false),stringify:stringifySexagesimal};const b={identify:i=>i instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(i){const g=i.match(b.test);if(!g)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,f,E,p,y,S,J]=g.map(Number);const Z=g[7]?Number((g[7]+"00").substr(1,3)):0;let $=Date.UTC(f,E-1,p,y||0,S||0,J||0,Z);const z=g[8];if(z&&z!=="Z"){let i=parseSexagesimal(z,false);if(Math.abs(i)<30)i*=60;$-=6e4*i}return new Date($)},stringify:({value:i})=>i?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};g.floatTime=y;g.intTime=p;g.timestamp=b},4475:(i,g)=>{const f="flow";const E="block";const p="quoted";function foldFlowLines(i,g,f="flow",{indentAtStart:y,lineWidth:b=80,minContentWidth:S=20,onFold:J,onOverflow:Z}={}){if(!b||b<0)return i;if(b<S)S=0;const $=Math.max(1+S,1+b-g.length);if(i.length<=$)return i;const z=[];const ee={};let re=b-g.length;if(typeof y==="number"){if(y>b-Math.max(2,S))z.push(0);else re=b-y}let Pe=undefined;let $t=undefined;let tn=false;let sn=-1;let nn=-1;let rn=-1;if(f===E){sn=consumeMoreIndentedLines(i,sn,g.length);if(sn!==-1)re=sn+$}for(let y;y=i[sn+=1];){if(f===p&&y==="\\"){nn=sn;switch(i[sn+1]){case"x":sn+=3;break;case"u":sn+=5;break;case"U":sn+=9;break;default:sn+=1}rn=sn}if(y==="\n"){if(f===E)sn=consumeMoreIndentedLines(i,sn,g.length);re=sn+g.length+$;Pe=undefined}else{if(y===" "&&$t&&$t!==" "&&$t!=="\n"&&$t!=="\t"){const g=i[sn+1];if(g&&g!==" "&&g!=="\n"&&g!=="\t")Pe=sn}if(sn>=re){if(Pe){z.push(Pe);re=Pe+$;Pe=undefined}else if(f===p){while($t===" "||$t==="\t"){$t=y;y=i[sn+=1];tn=true}const g=sn>rn+1?sn-2:nn-1;if(ee[g])return i;z.push(g);ee[g]=true;re=g+$;Pe=undefined}else{tn=true}}}$t=y}if(tn&&Z)Z();if(z.length===0)return i;if(J)J();let An=i.slice(0,z[0]);for(let E=0;E<z.length;++E){const y=z[E];const b=z[E+1]||i.length;if(y===0)An=`\n${g}${i.slice(0,b)}`;else{if(f===p&&ee[y])An+=`${i[y]}\\`;An+=`\n${g}${i.slice(y+1,b)}`}}return An}function consumeMoreIndentedLines(i,g,f){let E=g;let p=g+1;let y=i[p];while(y===" "||y==="\t"){if(g<p+f){y=i[++g]}else{do{y=i[++g]}while(y&&y!=="\n");E=g;p=g+1;y=i[p]}}return E}g.FOLD_BLOCK=E;g.FOLD_FLOW=f;g.FOLD_QUOTED=p;g.foldFlowLines=foldFlowLines},2148:(i,g,f)=>{var E=f(1596);var p=f(1127);var y=f(9799);var b=f(3069);function createStringifyContext(i,g){const f=Object.assign({blockQuote:true,commentString:y.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},i.schema.toStringOptions,g);let E;switch(f.collectionStyle){case"block":E=false;break;case"flow":E=true;break;default:E=null}return{anchors:new Set,doc:i,flowCollectionPadding:f.flowCollectionPadding?" ":"",indent:"",indentStep:typeof f.indent==="number"?" ".repeat(f.indent):" ",inFlow:E,options:f}}function getTagObject(i,g){if(g.tag){const f=i.filter((i=>i.tag===g.tag));if(f.length>0)return f.find((i=>i.format===g.format))??f[0]}let f=undefined;let E;if(p.isScalar(g)){E=g.value;let p=i.filter((i=>i.identify?.(E)));if(p.length>1){const i=p.filter((i=>i.test));if(i.length>0)p=i}f=p.find((i=>i.format===g.format))??p.find((i=>!i.format))}else{E=g;f=i.find((i=>i.nodeClass&&E instanceof i.nodeClass))}if(!f){const i=E?.constructor?.name??(E===null?"null":typeof E);throw new Error(`Tag not resolved for ${i} value`)}return f}function stringifyProps(i,g,{anchors:f,doc:y}){if(!y.directives)return"";const b=[];const S=(p.isScalar(i)||p.isCollection(i))&&i.anchor;if(S&&E.anchorIsValid(S)){f.add(S);b.push(`&${S}`)}const J=i.tag??(g.default?null:g.tag);if(J)b.push(y.directives.tagString(J));return b.join(" ")}function stringify(i,g,f,E){if(p.isPair(i))return i.toString(g,f,E);if(p.isAlias(i)){if(g.doc.directives)return i.toString(g);if(g.resolvedAliases?.has(i)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(g.resolvedAliases)g.resolvedAliases.add(i);else g.resolvedAliases=new Set([i]);i=i.resolve(g.doc)}}let y=undefined;const S=p.isNode(i)?i:g.doc.createNode(i,{onTagObj:i=>y=i});y??(y=getTagObject(g.doc.schema.tags,S));const J=stringifyProps(S,y,g);if(J.length>0)g.indentAtStart=(g.indentAtStart??0)+J.length+1;const Z=typeof y.stringify==="function"?y.stringify(S,g,f,E):p.isScalar(S)?b.stringifyString(S,g,f,E):S.toString(g,f,E);if(!J)return Z;return p.isScalar(S)||Z[0]==="{"||Z[0]==="["?`${J} ${Z}`:`${J}\n${g.indent}${Z}`}g.createStringifyContext=createStringifyContext;g.stringify=stringify},1212:(i,g,f)=>{var E=f(1127);var p=f(2148);var y=f(9799);function stringifyCollection(i,g,f){const E=g.inFlow??i.flow;const p=E?stringifyFlowCollection:stringifyBlockCollection;return p(i,g,f)}function stringifyBlockCollection({comment:i,items:g},f,{blockItemPrefix:b,flowChars:S,itemIndent:J,onChompKeep:Z,onComment:$}){const{indent:z,options:{commentString:ee}}=f;const re=Object.assign({},f,{indent:J,type:null});let Pe=false;const $t=[];for(let i=0;i<g.length;++i){const S=g[i];let Z=null;if(E.isNode(S)){if(!Pe&&S.spaceBefore)$t.push("");addCommentBefore(f,$t,S.commentBefore,Pe);if(S.comment)Z=S.comment}else if(E.isPair(S)){const i=E.isNode(S.key)?S.key:null;if(i){if(!Pe&&i.spaceBefore)$t.push("");addCommentBefore(f,$t,i.commentBefore,Pe)}}Pe=false;let $=p.stringify(S,re,(()=>Z=null),(()=>Pe=true));if(Z)$+=y.lineComment($,J,ee(Z));if(Pe&&Z)Pe=false;$t.push(b+$)}let tn;if($t.length===0){tn=S.start+S.end}else{tn=$t[0];for(let i=1;i<$t.length;++i){const g=$t[i];tn+=g?`\n${z}${g}`:"\n"}}if(i){tn+="\n"+y.indentComment(ee(i),z);if($)$()}else if(Pe&&Z)Z();return tn}function stringifyFlowCollection({items:i},g,{flowChars:f,itemIndent:b}){const{indent:S,indentStep:J,flowCollectionPadding:Z,options:{commentString:$}}=g;b+=J;const z=Object.assign({},g,{indent:b,inFlow:true,type:null});let ee=false;let re=0;const Pe=[];for(let f=0;f<i.length;++f){const S=i[f];let J=null;if(E.isNode(S)){if(S.spaceBefore)Pe.push("");addCommentBefore(g,Pe,S.commentBefore,false);if(S.comment)J=S.comment}else if(E.isPair(S)){const i=E.isNode(S.key)?S.key:null;if(i){if(i.spaceBefore)Pe.push("");addCommentBefore(g,Pe,i.commentBefore,false);if(i.comment)ee=true}const f=E.isNode(S.value)?S.value:null;if(f){if(f.comment)J=f.comment;if(f.commentBefore)ee=true}else if(S.value==null&&i?.comment){J=i.comment}}if(J)ee=true;let Z=p.stringify(S,z,(()=>J=null));if(f<i.length-1)Z+=",";if(J)Z+=y.lineComment(Z,b,$(J));if(!ee&&(Pe.length>re||Z.includes("\n")))ee=true;Pe.push(Z);re=Pe.length}const{start:$t,end:tn}=f;if(Pe.length===0){return $t+tn}else{if(!ee){const i=Pe.reduce(((i,g)=>i+g.length+2),2);ee=g.options.lineWidth>0&&i>g.options.lineWidth}if(ee){let i=$t;for(const g of Pe)i+=g?`\n${J}${S}${g}`:"\n";return`${i}\n${S}${tn}`}else{return`${$t}${Z}${Pe.join(" ")}${Z}${tn}`}}}function addCommentBefore({indent:i,options:{commentString:g}},f,E,p){if(E&&p)E=E.replace(/^\n+/,"");if(E){const p=y.indentComment(g(E),i);f.push(p.trimStart())}}g.stringifyCollection=stringifyCollection},9799:(i,g)=>{const stringifyComment=i=>i.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(i,g){if(/^\n+$/.test(i))return i.substring(1);return g?i.replace(/^(?! *$)/gm,g):i}const lineComment=(i,g,f)=>i.endsWith("\n")?indentComment(f,g):f.includes("\n")?"\n"+indentComment(f,g):(i.endsWith(" ")?"":" ")+f;g.indentComment=indentComment;g.lineComment=lineComment;g.stringifyComment=stringifyComment},6829:(i,g,f)=>{var E=f(1127);var p=f(2148);var y=f(9799);function stringifyDocument(i,g){const f=[];let b=g.directives===true;if(g.directives!==false&&i.directives){const g=i.directives.toString(i);if(g){f.push(g);b=true}else if(i.directives.docStart)b=true}if(b)f.push("---");const S=p.createStringifyContext(i,g);const{commentString:J}=S.options;if(i.commentBefore){if(f.length!==1)f.unshift("");const g=J(i.commentBefore);f.unshift(y.indentComment(g,""))}let Z=false;let $=null;if(i.contents){if(E.isNode(i.contents)){if(i.contents.spaceBefore&&b)f.push("");if(i.contents.commentBefore){const g=J(i.contents.commentBefore);f.push(y.indentComment(g,""))}S.forceBlockIndent=!!i.comment;$=i.contents.comment}const g=$?undefined:()=>Z=true;let z=p.stringify(i.contents,S,(()=>$=null),g);if($)z+=y.lineComment(z,"",J($));if((z[0]==="|"||z[0]===">")&&f[f.length-1]==="---"){f[f.length-1]=`--- ${z}`}else f.push(z)}else{f.push(p.stringify(i.contents,S))}if(i.directives?.docEnd){if(i.comment){const g=J(i.comment);if(g.includes("\n")){f.push("...");f.push(y.indentComment(g,""))}else{f.push(`... ${g}`)}}else{f.push("...")}}else{let g=i.comment;if(g&&Z)g=g.replace(/^\n+/,"");if(g){if((!Z||$)&&f[f.length-1]!=="")f.push("");f.push(y.indentComment(J(g),""))}}return f.join("\n")+"\n"}g.stringifyDocument=stringifyDocument},8689:(i,g)=>{function stringifyNumber({format:i,minFractionDigits:g,tag:f,value:E}){if(typeof E==="bigint")return String(E);const p=typeof E==="number"?E:Number(E);if(!isFinite(p))return isNaN(p)?".nan":p<0?"-.inf":".inf";let y=Object.is(E,-0)?"-0":JSON.stringify(E);if(!i&&g&&(!f||f==="tag:yaml.org,2002:float")&&/^\d/.test(y)){let i=y.indexOf(".");if(i<0){i=y.length;y+="."}let f=g-(y.length-i-1);while(f-- >0)y+="0"}return y}g.stringifyNumber=stringifyNumber},9748:(i,g,f)=>{var E=f(1127);var p=f(3301);var y=f(2148);var b=f(9799);function stringifyPair({key:i,value:g},f,S,J){const{allNullValues:Z,doc:$,indent:z,indentStep:ee,options:{commentString:re,indentSeq:Pe,simpleKeys:$t}}=f;let tn=E.isNode(i)&&i.comment||null;if($t){if(tn){throw new Error("With simple keys, key nodes cannot have comments")}if(E.isCollection(i)||!E.isNode(i)&&typeof i==="object"){const i="With simple keys, collection cannot be used as a key value";throw new Error(i)}}let sn=!$t&&(!i||tn&&g==null&&!f.inFlow||E.isCollection(i)||(E.isScalar(i)?i.type===p.Scalar.BLOCK_FOLDED||i.type===p.Scalar.BLOCK_LITERAL:typeof i==="object"));f=Object.assign({},f,{allNullValues:false,implicitKey:!sn&&($t||!Z),indent:z+ee});let nn=false;let rn=false;let An=y.stringify(i,f,(()=>nn=true),(()=>rn=true));if(!sn&&!f.inFlow&&An.length>1024){if($t)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");sn=true}if(f.inFlow){if(Z||g==null){if(nn&&S)S();return An===""?"?":sn?`? ${An}`:An}}else if(Z&&!$t||g==null&&sn){An=`? ${An}`;if(tn&&!nn){An+=b.lineComment(An,f.indent,re(tn))}else if(rn&&J)J();return An}if(nn)tn=null;if(sn){if(tn)An+=b.lineComment(An,f.indent,re(tn));An=`? ${An}\n${z}:`}else{An=`${An}:`;if(tn)An+=b.lineComment(An,f.indent,re(tn))}let on,an,cn;if(E.isNode(g)){on=!!g.spaceBefore;an=g.commentBefore;cn=g.comment}else{on=false;an=null;cn=null;if(g&&typeof g==="object")g=$.createNode(g)}f.implicitKey=false;if(!sn&&!tn&&E.isScalar(g))f.indentAtStart=An.length+1;rn=false;if(!Pe&&ee.length>=2&&!f.inFlow&&!sn&&E.isSeq(g)&&!g.flow&&!g.tag&&!g.anchor){f.indent=f.indent.substring(2)}let ln=false;const un=y.stringify(g,f,(()=>ln=true),(()=>rn=true));let hn=" ";if(tn||on||an){hn=on?"\n":"";if(an){const i=re(an);hn+=`\n${b.indentComment(i,f.indent)}`}if(un===""&&!f.inFlow){if(hn==="\n"&&cn)hn="\n\n"}else{hn+=`\n${f.indent}`}}else if(!sn&&E.isCollection(g)){const i=un[0];const E=un.indexOf("\n");const p=E!==-1;const y=f.inFlow??g.flow??g.items.length===0;if(p||!y){let g=false;if(p&&(i==="&"||i==="!")){let f=un.indexOf(" ");if(i==="&"&&f!==-1&&f<E&&un[f+1]==="!"){f=un.indexOf(" ",f+1)}if(f===-1||E<f)g=true}if(!g)hn=`\n${f.indent}`}}else if(un===""||un[0]==="\n"){hn=""}An+=hn+un;if(f.inFlow){if(ln&&S)S()}else if(cn&&!ln){An+=b.lineComment(An,f.indent,re(cn))}else if(rn&&J){J()}return An}g.stringifyPair=stringifyPair},3069:(i,g,f)=>{var E=f(3301);var p=f(4475);const getFoldOptions=(i,g)=>({indentAtStart:g?i.indent.length:i.indentAtStart,lineWidth:i.options.lineWidth,minContentWidth:i.options.minContentWidth});const containsDocumentMarker=i=>/^(%|---|\.\.\.)/m.test(i);function lineLengthOverLimit(i,g,f){if(!g||g<0)return false;const E=g-f;const p=i.length;if(p<=E)return false;for(let g=0,f=0;g<p;++g){if(i[g]==="\n"){if(g-f>E)return true;f=g+1;if(p-f<=E)return false}}return true}function doubleQuotedString(i,g){const f=JSON.stringify(i);if(g.options.doubleQuotedAsJSON)return f;const{implicitKey:E}=g;const y=g.options.doubleQuotedMinMultiLineLength;const b=g.indent||(containsDocumentMarker(i)?" ":"");let S="";let J=0;for(let i=0,g=f[i];g;g=f[++i]){if(g===" "&&f[i+1]==="\\"&&f[i+2]==="n"){S+=f.slice(J,i)+"\\ ";i+=1;J=i;g="\\"}if(g==="\\")switch(f[i+1]){case"u":{S+=f.slice(J,i);const g=f.substr(i+2,4);switch(g){case"0000":S+="\\0";break;case"0007":S+="\\a";break;case"000b":S+="\\v";break;case"001b":S+="\\e";break;case"0085":S+="\\N";break;case"00a0":S+="\\_";break;case"2028":S+="\\L";break;case"2029":S+="\\P";break;default:if(g.substr(0,2)==="00")S+="\\x"+g.substr(2);else S+=f.substr(i,6)}i+=5;J=i+1}break;case"n":if(E||f[i+2]==='"'||f.length<y){i+=1}else{S+=f.slice(J,i)+"\n\n";while(f[i+2]==="\\"&&f[i+3]==="n"&&f[i+4]!=='"'){S+="\n";i+=2}S+=b;if(f[i+2]===" ")S+="\\";i+=1;J=i+1}break;default:i+=1}}S=J?S+f.slice(J):f;return E?S:p.foldFlowLines(S,b,p.FOLD_QUOTED,getFoldOptions(g,false))}function singleQuotedString(i,g){if(g.options.singleQuote===false||g.implicitKey&&i.includes("\n")||/[ \t]\n|\n[ \t]/.test(i))return doubleQuotedString(i,g);const f=g.indent||(containsDocumentMarker(i)?" ":"");const E="'"+i.replace(/'/g,"''").replace(/\n+/g,`$&\n${f}`)+"'";return g.implicitKey?E:p.foldFlowLines(E,f,p.FOLD_FLOW,getFoldOptions(g,false))}function quotedString(i,g){const{singleQuote:f}=g.options;let E;if(f===false)E=doubleQuotedString;else{const g=i.includes('"');const p=i.includes("'");if(g&&!p)E=singleQuotedString;else if(p&&!g)E=doubleQuotedString;else E=f?singleQuotedString:doubleQuotedString}return E(i,g)}let y;try{y=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{y=/\n+(?!\n|$)/g}function blockString({comment:i,type:g,value:f},b,S,J){const{blockQuote:Z,commentString:$,lineWidth:z}=b.options;if(!Z||/\n[\t ]+$/.test(f)){return quotedString(f,b)}const ee=b.indent||(b.forceBlockIndent||containsDocumentMarker(f)?" ":"");const re=Z==="literal"?true:Z==="folded"||g===E.Scalar.BLOCK_FOLDED?false:g===E.Scalar.BLOCK_LITERAL?true:!lineLengthOverLimit(f,z,ee.length);if(!f)return re?"|\n":">\n";let Pe;let $t;for($t=f.length;$t>0;--$t){const i=f[$t-1];if(i!=="\n"&&i!=="\t"&&i!==" ")break}let tn=f.substring($t);const sn=tn.indexOf("\n");if(sn===-1){Pe="-"}else if(f===tn||sn!==tn.length-1){Pe="+";if(J)J()}else{Pe=""}if(tn){f=f.slice(0,-tn.length);if(tn[tn.length-1]==="\n")tn=tn.slice(0,-1);tn=tn.replace(y,`$&${ee}`)}let nn=false;let rn;let An=-1;for(rn=0;rn<f.length;++rn){const i=f[rn];if(i===" ")nn=true;else if(i==="\n")An=rn;else break}let on=f.substring(0,An<rn?An+1:rn);if(on){f=f.substring(on.length);on=on.replace(/\n+/g,`$&${ee}`)}const an=ee?"2":"1";let cn=(nn?an:"")+Pe;if(i){cn+=" "+$(i.replace(/ ?[\r\n]+/g," "));if(S)S()}if(!re){const i=f.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${ee}`);let y=false;const S=getFoldOptions(b,true);if(Z!=="folded"&&g!==E.Scalar.BLOCK_FOLDED){S.onOverflow=()=>{y=true}}const J=p.foldFlowLines(`${on}${i}${tn}`,ee,p.FOLD_BLOCK,S);if(!y)return`>${cn}\n${ee}${J}`}f=f.replace(/\n+/g,`$&${ee}`);return`|${cn}\n${ee}${on}${f}${tn}`}function plainString(i,g,f,y){const{type:b,value:S}=i;const{actualString:J,implicitKey:Z,indent:$,indentStep:z,inFlow:ee}=g;if(Z&&S.includes("\n")||ee&&/[[\]{},]/.test(S)){return quotedString(S,g)}if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(S)){return Z||ee||!S.includes("\n")?quotedString(S,g):blockString(i,g,f,y)}if(!Z&&!ee&&b!==E.Scalar.PLAIN&&S.includes("\n")){return blockString(i,g,f,y)}if(containsDocumentMarker(S)){if($===""){g.forceBlockIndent=true;return blockString(i,g,f,y)}else if(Z&&$===z){return quotedString(S,g)}}const re=S.replace(/\n+/g,`$&\n${$}`);if(J){const test=i=>i.default&&i.tag!=="tag:yaml.org,2002:str"&&i.test?.test(re);const{compat:i,tags:f}=g.doc.schema;if(f.some(test)||i?.some(test))return quotedString(S,g)}return Z?re:p.foldFlowLines(re,$,p.FOLD_FLOW,getFoldOptions(g,false))}function stringifyString(i,g,f,p){const{implicitKey:y,inFlow:b}=g;const S=typeof i.value==="string"?i:Object.assign({},i,{value:String(i.value)});let{type:J}=i;if(J!==E.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(S.value))J=E.Scalar.QUOTE_DOUBLE}const _stringify=i=>{switch(i){case E.Scalar.BLOCK_FOLDED:case E.Scalar.BLOCK_LITERAL:return y||b?quotedString(S.value,g):blockString(S,g,f,p);case E.Scalar.QUOTE_DOUBLE:return doubleQuotedString(S.value,g);case E.Scalar.QUOTE_SINGLE:return singleQuotedString(S.value,g);case E.Scalar.PLAIN:return plainString(S,g,f,p);default:return null}};let Z=_stringify(J);if(Z===null){const{defaultKeyType:i,defaultStringType:f}=g.options;const E=y&&i||f;Z=_stringify(E);if(Z===null)throw new Error(`Unsupported default string type ${E}`)}return Z}g.stringifyString=stringifyString},204:(i,g,f)=>{var E=f(1127);const p=Symbol("break visit");const y=Symbol("skip children");const b=Symbol("remove node");function visit(i,g){const f=initVisitor(g);if(E.isDocument(i)){const g=visit_(null,i.contents,f,Object.freeze([i]));if(g===b)i.contents=null}else visit_(null,i,f,Object.freeze([]))}visit.BREAK=p;visit.SKIP=y;visit.REMOVE=b;function visit_(i,g,f,y){const S=callVisitor(i,g,f,y);if(E.isNode(S)||E.isPair(S)){replaceNode(i,y,S);return visit_(i,S,f,y)}if(typeof S!=="symbol"){if(E.isCollection(g)){y=Object.freeze(y.concat(g));for(let i=0;i<g.items.length;++i){const E=visit_(i,g.items[i],f,y);if(typeof E==="number")i=E-1;else if(E===p)return p;else if(E===b){g.items.splice(i,1);i-=1}}}else if(E.isPair(g)){y=Object.freeze(y.concat(g));const i=visit_("key",g.key,f,y);if(i===p)return p;else if(i===b)g.key=null;const E=visit_("value",g.value,f,y);if(E===p)return p;else if(E===b)g.value=null}}return S}async function visitAsync(i,g){const f=initVisitor(g);if(E.isDocument(i)){const g=await visitAsync_(null,i.contents,f,Object.freeze([i]));if(g===b)i.contents=null}else await visitAsync_(null,i,f,Object.freeze([]))}visitAsync.BREAK=p;visitAsync.SKIP=y;visitAsync.REMOVE=b;async function visitAsync_(i,g,f,y){const S=await callVisitor(i,g,f,y);if(E.isNode(S)||E.isPair(S)){replaceNode(i,y,S);return visitAsync_(i,S,f,y)}if(typeof S!=="symbol"){if(E.isCollection(g)){y=Object.freeze(y.concat(g));for(let i=0;i<g.items.length;++i){const E=await visitAsync_(i,g.items[i],f,y);if(typeof E==="number")i=E-1;else if(E===p)return p;else if(E===b){g.items.splice(i,1);i-=1}}}else if(E.isPair(g)){y=Object.freeze(y.concat(g));const i=await visitAsync_("key",g.key,f,y);if(i===p)return p;else if(i===b)g.key=null;const E=await visitAsync_("value",g.value,f,y);if(E===p)return p;else if(E===b)g.value=null}}return S}function initVisitor(i){if(typeof i==="object"&&(i.Collection||i.Node||i.Value)){return Object.assign({Alias:i.Node,Map:i.Node,Scalar:i.Node,Seq:i.Node},i.Value&&{Map:i.Value,Scalar:i.Value,Seq:i.Value},i.Collection&&{Map:i.Collection,Seq:i.Collection},i)}return i}function callVisitor(i,g,f,p){if(typeof f==="function")return f(i,g,p);if(E.isMap(g))return f.Map?.(i,g,p);if(E.isSeq(g))return f.Seq?.(i,g,p);if(E.isPair(g))return f.Pair?.(i,g,p);if(E.isScalar(g))return f.Scalar?.(i,g,p);if(E.isAlias(g))return f.Alias?.(i,g,p);return undefined}function replaceNode(i,g,f){const p=g[g.length-1];if(E.isCollection(p)){p.items[i]=f}else if(E.isPair(p)){if(i==="key")p.key=f;else p.value=f}else if(E.isDocument(p)){p.contents=f}else{const i=E.isAlias(p)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}g.visit=visit;g.visitAsync=visitAsync}};var __webpack_module_cache__={};function __nccwpck_require__(i){var g=__webpack_module_cache__[i];if(g!==undefined){return g.exports}var f=__webpack_module_cache__[i]={exports:{}};var E=true;try{__webpack_modules__[i].call(f.exports,f,f.exports,__nccwpck_require__);E=false}finally{if(E)delete __webpack_module_cache__[i]}return f.exports}(()=>{__nccwpck_require__.n=i=>{var g=i&&i.__esModule?()=>i["default"]:()=>i;__nccwpck_require__.d(g,{a:g});return g}})();(()=>{var i=Object.getPrototypeOf?i=>Object.getPrototypeOf(i):i=>i.__proto__;var g;__nccwpck_require__.t=function(f,E){if(E&1)f=this(f);if(E&8)return f;if(typeof f==="object"&&f){if(E&4&&f.__esModule)return f;if(E&16&&typeof f.then==="function")return f}var p=Object.create(null);__nccwpck_require__.r(p);var y={};g=g||[null,i({}),i([]),i(i)];for(var b=E&2&&f;typeof b=="object"&&!~g.indexOf(b);b=i(b)){Object.getOwnPropertyNames(b).forEach((i=>y[i]=()=>f[i]))}y["default"]=()=>f;__nccwpck_require__.d(p,y);return p}})();(()=>{__nccwpck_require__.d=(i,g)=>{for(var f in g){if(__nccwpck_require__.o(g,f)&&!__nccwpck_require__.o(i,f)){Object.defineProperty(i,f,{enumerable:true,get:g[f]})}}}})();(()=>{__nccwpck_require__.o=(i,g)=>Object.prototype.hasOwnProperty.call(i,g)})();(()=>{__nccwpck_require__.r=i=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(i,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var __webpack_exports__={};var core=__nccwpck_require__(7484);var external_path_=__nccwpck_require__(6928);const promises_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs/promises");const ANSI_BACKGROUND_OFFSET=10;const wrapAnsi16=(i=0)=>g=>`[${g+i}m`;const wrapAnsi256=(i=0)=>g=>`[${38+i};5;${g}m`;const wrapAnsi16m=(i=0)=>(g,f,E)=>`[${38+i};2;${g};${f};${E}m`;const styles={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};const modifierNames=Object.keys(styles.modifier);const foregroundColorNames=Object.keys(styles.color);const backgroundColorNames=Object.keys(styles.bgColor);const colorNames=[...foregroundColorNames,...backgroundColorNames];function assembleStyles(){const i=new Map;for(const[g,f]of Object.entries(styles)){for(const[g,E]of Object.entries(f)){styles[g]={open:`[${E[0]}m`,close:`[${E[1]}m`};f[g]=styles[g];i.set(E[0],E[1])}Object.defineProperty(styles,g,{value:f,enumerable:false})}Object.defineProperty(styles,"codes",{value:i,enumerable:false});styles.color.close="";styles.bgColor.close="";styles.color.ansi=wrapAnsi16();styles.color.ansi256=wrapAnsi256();styles.color.ansi16m=wrapAnsi16m();styles.bgColor.ansi=wrapAnsi16(ANSI_BACKGROUND_OFFSET);styles.bgColor.ansi256=wrapAnsi256(ANSI_BACKGROUND_OFFSET);styles.bgColor.ansi16m=wrapAnsi16m(ANSI_BACKGROUND_OFFSET);Object.defineProperties(styles,{rgbToAnsi256:{value(i,g,f){if(i===g&&g===f){if(i<8){return 16}if(i>248){return 231}return Math.round((i-8)/247*24)+232}return 16+36*Math.round(i/255*5)+6*Math.round(g/255*5)+Math.round(f/255*5)},enumerable:false},hexToRgb:{value(i){const g=/[a-f\d]{6}|[a-f\d]{3}/i.exec(i.toString(16));if(!g){return[0,0,0]}let[f]=g;if(f.length===3){f=[...f].map((i=>i+i)).join("")}const E=Number.parseInt(f,16);return[E>>16&255,E>>8&255,E&255]},enumerable:false},hexToAnsi256:{value:i=>styles.rgbToAnsi256(...styles.hexToRgb(i)),enumerable:false},ansi256ToAnsi:{value(i){if(i<8){return 30+i}if(i<16){return 90+(i-8)}let g;let f;let E;if(i>=232){g=((i-232)*10+8)/255;f=g;E=g}else{i-=16;const p=i%36;g=Math.floor(i/36)/5;f=Math.floor(p/6)/5;E=p%6/5}const p=Math.max(g,f,E)*2;if(p===0){return 30}let y=30+(Math.round(E)<<2|Math.round(f)<<1|Math.round(g));if(p===2){y+=60}return y},enumerable:false},rgbToAnsi:{value:(i,g,f)=>styles.ansi256ToAnsi(styles.rgbToAnsi256(i,g,f)),enumerable:false},hexToAnsi:{value:i=>styles.ansi256ToAnsi(styles.hexToAnsi256(i)),enumerable:false}});return styles}const ansiStyles=assembleStyles();const ansi_styles=ansiStyles;const external_node_process_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process");const external_node_os_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:os");const external_node_tty_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:tty");function hasFlag(i,g=(globalThis.Deno?globalThis.Deno.args:external_node_process_namespaceObject.argv)){const f=i.startsWith("-")?"":i.length===1?"-":"--";const E=g.indexOf(f+i);const p=g.indexOf("--");return E!==-1&&(p===-1||E<p)}const{env:env}=external_node_process_namespaceObject;let flagForceColor;if(hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")){flagForceColor=0}else if(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always")){flagForceColor=1}function envForceColor(){if("FORCE_COLOR"in env){if(env.FORCE_COLOR==="true"){return 1}if(env.FORCE_COLOR==="false"){return 0}return env.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(env.FORCE_COLOR,10),3)}}function translateLevel(i){if(i===0){return false}return{level:i,hasBasic:true,has256:i>=2,has16m:i>=3}}function _supportsColor(i,{streamIsTTY:g,sniffFlags:f=true}={}){const E=envForceColor();if(E!==undefined){flagForceColor=E}const p=f?flagForceColor:E;if(p===0){return 0}if(f){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor")){return 3}if(hasFlag("color=256")){return 2}}if("TF_BUILD"in env&&"AGENT_NAME"in env){return 1}if(i&&!g&&p===undefined){return 0}const y=p||0;if(env.TERM==="dumb"){return y}if(external_node_process_namespaceObject.platform==="win32"){const i=external_node_os_namespaceObject.release().split(".");if(Number(i[0])>=10&&Number(i[2])>=10586){return Number(i[2])>=14931?3:2}return 1}if("CI"in env){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((i=>i in env))){return 3}if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((i=>i in env))||env.CI_NAME==="codeship"){return 1}return y}if("TEAMCITY_VERSION"in env){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION)?1:0}if(env.COLORTERM==="truecolor"){return 3}if(env.TERM==="xterm-kitty"){return 3}if(env.TERM==="xterm-ghostty"){return 3}if(env.TERM==="wezterm"){return 3}if("TERM_PROGRAM"in env){const i=Number.parseInt((env.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(env.TERM_PROGRAM){case"iTerm.app":{return i>=3?3:2}case"Apple_Terminal":{return 2}}}if(/-256(color)?$/i.test(env.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)){return 1}if("COLORTERM"in env){return 1}return y}function createSupportsColor(i,g={}){const f=_supportsColor(i,{streamIsTTY:i&&i.isTTY,...g});return translateLevel(f)}const supportsColor={stdout:createSupportsColor({isTTY:external_node_tty_namespaceObject.isatty(1)}),stderr:createSupportsColor({isTTY:external_node_tty_namespaceObject.isatty(2)})};const supports_color=supportsColor;function stringReplaceAll(i,g,f){let E=i.indexOf(g);if(E===-1){return i}const p=g.length;let y=0;let b="";do{b+=i.slice(y,E)+g+f;y=E+p;E=i.indexOf(g,y)}while(E!==-1);b+=i.slice(y);return b}function stringEncaseCRLFWithFirstIndex(i,g,f,E){let p=0;let y="";do{const b=i[E-1]==="\r";y+=i.slice(p,b?E-1:E)+g+(b?"\r\n":"\n")+f;p=E+1;E=i.indexOf("\n",p)}while(E!==-1);y+=i.slice(p);return y}const{stdout:stdoutColor,stderr:stderrColor}=supports_color;const GENERATOR=Symbol("GENERATOR");const STYLER=Symbol("STYLER");const IS_EMPTY=Symbol("IS_EMPTY");const levelMapping=["ansi","ansi","ansi256","ansi16m"];const source_styles=Object.create(null);const applyOptions=(i,g={})=>{if(g.level&&!(Number.isInteger(g.level)&&g.level>=0&&g.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const f=stdoutColor?stdoutColor.level:0;i.level=g.level===undefined?f:g.level};class Chalk{constructor(i){return chalkFactory(i)}}const chalkFactory=i=>{const chalk=(...i)=>i.join(" ");applyOptions(chalk,i);Object.setPrototypeOf(chalk,createChalk.prototype);return chalk};function createChalk(i){return chalkFactory(i)}Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[i,g]of Object.entries(ansi_styles)){source_styles[i]={get(){const f=createBuilder(this,createStyler(g.open,g.close,this[STYLER]),this[IS_EMPTY]);Object.defineProperty(this,i,{value:f});return f}}}source_styles.visible={get(){const i=createBuilder(this,this[STYLER],true);Object.defineProperty(this,"visible",{value:i});return i}};const getModelAnsi=(i,g,f,...E)=>{if(i==="rgb"){if(g==="ansi16m"){return ansi_styles[f].ansi16m(...E)}if(g==="ansi256"){return ansi_styles[f].ansi256(ansi_styles.rgbToAnsi256(...E))}return ansi_styles[f].ansi(ansi_styles.rgbToAnsi(...E))}if(i==="hex"){return getModelAnsi("rgb",g,f,...ansi_styles.hexToRgb(...E))}return ansi_styles[f][i](...E)};const usedModels=["rgb","hex","ansi256"];for(const i of usedModels){source_styles[i]={get(){const{level:g}=this;return function(...f){const E=createStyler(getModelAnsi(i,levelMapping[g],"color",...f),ansi_styles.color.close,this[STYLER]);return createBuilder(this,E,this[IS_EMPTY])}}};const g="bg"+i[0].toUpperCase()+i.slice(1);source_styles[g]={get(){const{level:g}=this;return function(...f){const E=createStyler(getModelAnsi(i,levelMapping[g],"bgColor",...f),ansi_styles.bgColor.close,this[STYLER]);return createBuilder(this,E,this[IS_EMPTY])}}}}const proto=Object.defineProperties((()=>{}),{...source_styles,level:{enumerable:true,get(){return this[GENERATOR].level},set(i){this[GENERATOR].level=i}}});const createStyler=(i,g,f)=>{let E;let p;if(f===undefined){E=i;p=g}else{E=f.openAll+i;p=g+f.closeAll}return{open:i,close:g,openAll:E,closeAll:p,parent:f}};const createBuilder=(i,g,f)=>{const builder=(...i)=>applyStyle(builder,i.length===1?""+i[0]:i.join(" "));Object.setPrototypeOf(builder,proto);builder[GENERATOR]=i;builder[STYLER]=g;builder[IS_EMPTY]=f;return builder};const applyStyle=(i,g)=>{if(i.level<=0||!g){return i[IS_EMPTY]?"":g}let f=i[STYLER];if(f===undefined){return g}const{openAll:E,closeAll:p}=f;if(g.includes("")){while(f!==undefined){g=stringReplaceAll(g,f.close,f.open);f=f.parent}}const y=g.indexOf("\n");if(y!==-1){g=stringEncaseCRLFWithFirstIndex(g,p,E,y)}return E+g+p};Object.defineProperties(createChalk.prototype,source_styles);const chalk=createChalk();const chalkStderr=createChalk({level:stderrColor?stderrColor.level:0});const source=chalk;class Logger{silent=false;verbose=false;prefix="";configure(i){if(i.silent!==undefined)this.silent=i.silent;if(i.verbose!==undefined)this.verbose=i.verbose;if(i.prefix!==undefined)this.prefix=i.prefix}formatMessage(i){return this.prefix?`${this.prefix} ${i}`:i}debug(i,...g){if(this.silent||!this.verbose)return;console.log(source.gray(`[DEBUG] ${this.formatMessage(i)}`),...g)}info(i,...g){if(this.silent)return;console.log(source.blue("ℹ"),this.formatMessage(i),...g)}success(i,...g){if(this.silent)return;console.log(source.green("✓"),this.formatMessage(i),...g)}warn(i,...g){if(this.silent)return;console.log(source.yellow("⚠"),this.formatMessage(i),...g)}error(i,...g){console.error(source.red("✗"),this.formatMessage(i),...g)}header(i){if(this.silent)return;console.log();console.log(source.bold.cyan(`━━━ ${i} ━━━`));console.log()}subheader(i){if(this.silent)return;console.log();console.log(source.bold(i))}list(i,g=0){if(this.silent)return;const f=" ".repeat(g);i.forEach((i=>{console.log(`${f}• ${i}`)}))}table(i,g){if(this.silent)return;const f=i.map(((i,f)=>Math.max(i.length,...g.map((i=>(i[f]??"").length)))));const E=f.map((i=>"─".repeat(i+2))).join("┼");const p=i.map(((i,g)=>` ${i.padEnd(f[g]??0)} `)).join("│");console.log(source.gray(`┌${E.replace(/┼/g,"┬")}┐`));console.log(source.bold(`│${p}│`));console.log(source.gray(`├${E}┤`));g.forEach((i=>{const g=i.map(((i,g)=>` ${(i??"").padEnd(f[g]??0)} `)).join("│");console.log(`│${g}│`)}));console.log(source.gray(`└${E.replace(/┼/g,"┴")}┘`))}progress(i,g,f){if(this.silent)return;const E=Math.round(i/g*100);const p=30;const y=Math.round(i/g*p);const b=p-y;const S=source.green("█".repeat(y))+source.gray("░".repeat(b));const J=f?` ${f}`:"";process.stdout.write(`\r${S} ${E}%${J}`);if(i===g)console.log()}newline(){if(this.silent)return;console.log()}emoji={docs:"📚",check:"✅",cross:"❌",warn:"⚠️",info:"ℹ️",search:"🔍",stats:"📊",fix:"🔧",link:"🔗",folder:"📁",file:"📄",clock:"⏱️",sparkles:"✨"}}const logger=new Logger;const utils_logger=null&&logger;var external_fs_=__nccwpck_require__(9896);var util;(function(i){i.assertEqual=i=>{};function assertIs(i){}i.assertIs=assertIs;function assertNever(i){throw new Error}i.assertNever=assertNever;i.arrayToEnum=i=>{const g={};for(const f of i){g[f]=f}return g};i.getValidEnumValues=g=>{const f=i.objectKeys(g).filter((i=>typeof g[g[i]]!=="number"));const E={};for(const i of f){E[i]=g[i]}return i.objectValues(E)};i.objectValues=g=>i.objectKeys(g).map((function(i){return g[i]}));i.objectKeys=typeof Object.keys==="function"?i=>Object.keys(i):i=>{const g=[];for(const f in i){if(Object.prototype.hasOwnProperty.call(i,f)){g.push(f)}}return g};i.find=(i,g)=>{for(const f of i){if(g(f))return f}return undefined};i.isInteger=typeof Number.isInteger==="function"?i=>Number.isInteger(i):i=>typeof i==="number"&&Number.isFinite(i)&&Math.floor(i)===i;function joinValues(i,g=" | "){return i.map((i=>typeof i==="string"?`'${i}'`:i)).join(g)}i.joinValues=joinValues;i.jsonStringifyReplacer=(i,g)=>{if(typeof g==="bigint"){return g.toString()}return g}})(util||(util={}));var objectUtil;(function(i){i.mergeShapes=(i,g)=>({...i,...g})})(objectUtil||(objectUtil={}));const ZodParsedType=util.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);const getParsedType=i=>{const g=typeof i;switch(g){case"undefined":return ZodParsedType.undefined;case"string":return ZodParsedType.string;case"number":return Number.isNaN(i)?ZodParsedType.nan:ZodParsedType.number;case"boolean":return ZodParsedType.boolean;case"function":return ZodParsedType.function;case"bigint":return ZodParsedType.bigint;case"symbol":return ZodParsedType.symbol;case"object":if(Array.isArray(i)){return ZodParsedType.array}if(i===null){return ZodParsedType.null}if(i.then&&typeof i.then==="function"&&i.catch&&typeof i.catch==="function"){return ZodParsedType.promise}if(typeof Map!=="undefined"&&i instanceof Map){return ZodParsedType.map}if(typeof Set!=="undefined"&&i instanceof Set){return ZodParsedType.set}if(typeof Date!=="undefined"&&i instanceof Date){return ZodParsedType.date}return ZodParsedType.object;default:return ZodParsedType.unknown}};const ZodIssueCode=util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);const quotelessJson=i=>{const g=JSON.stringify(i,null,2);return g.replace(/"([^"]+)":/g,"$1:")};class ZodError extends Error{get errors(){return this.issues}constructor(i){super();this.issues=[];this.addIssue=i=>{this.issues=[...this.issues,i]};this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const g=new.target.prototype;if(Object.setPrototypeOf){Object.setPrototypeOf(this,g)}else{this.__proto__=g}this.name="ZodError";this.issues=i}format(i){const g=i||function(i){return i.message};const f={_errors:[]};const processError=i=>{for(const E of i.issues){if(E.code==="invalid_union"){E.unionErrors.map(processError)}else if(E.code==="invalid_return_type"){processError(E.returnTypeError)}else if(E.code==="invalid_arguments"){processError(E.argumentsError)}else if(E.path.length===0){f._errors.push(g(E))}else{let i=f;let p=0;while(p<E.path.length){const f=E.path[p];const y=p===E.path.length-1;if(!y){i[f]=i[f]||{_errors:[]}}else{i[f]=i[f]||{_errors:[]};i[f]._errors.push(g(E))}i=i[f];p++}}}};processError(this);return f}static assert(i){if(!(i instanceof ZodError)){throw new Error(`Not a ZodError: ${i}`)}}toString(){return this.message}get message(){return JSON.stringify(this.issues,util.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(i=i=>i.message){const g={};const f=[];for(const E of this.issues){if(E.path.length>0){const f=E.path[0];g[f]=g[f]||[];g[f].push(i(E))}else{f.push(i(E))}}return{formErrors:f,fieldErrors:g}}get formErrors(){return this.flatten()}}ZodError.create=i=>{const g=new ZodError(i);return g};const errorMap=(i,g)=>{let f;switch(i.code){case ZodIssueCode.invalid_type:if(i.received===ZodParsedType.undefined){f="Required"}else{f=`Expected ${i.expected}, received ${i.received}`}break;case ZodIssueCode.invalid_literal:f=`Invalid literal value, expected ${JSON.stringify(i.expected,util.jsonStringifyReplacer)}`;break;case ZodIssueCode.unrecognized_keys:f=`Unrecognized key(s) in object: ${util.joinValues(i.keys,", ")}`;break;case ZodIssueCode.invalid_union:f=`Invalid input`;break;case ZodIssueCode.invalid_union_discriminator:f=`Invalid discriminator value. Expected ${util.joinValues(i.options)}`;break;case ZodIssueCode.invalid_enum_value:f=`Invalid enum value. Expected ${util.joinValues(i.options)}, received '${i.received}'`;break;case ZodIssueCode.invalid_arguments:f=`Invalid function arguments`;break;case ZodIssueCode.invalid_return_type:f=`Invalid function return type`;break;case ZodIssueCode.invalid_date:f=`Invalid date`;break;case ZodIssueCode.invalid_string:if(typeof i.validation==="object"){if("includes"in i.validation){f=`Invalid input: must include "${i.validation.includes}"`;if(typeof i.validation.position==="number"){f=`${f} at one or more positions greater than or equal to ${i.validation.position}`}}else if("startsWith"in i.validation){f=`Invalid input: must start with "${i.validation.startsWith}"`}else if("endsWith"in i.validation){f=`Invalid input: must end with "${i.validation.endsWith}"`}else{util.assertNever(i.validation)}}else if(i.validation!=="regex"){f=`Invalid ${i.validation}`}else{f="Invalid"}break;case ZodIssueCode.too_small:if(i.type==="array")f=`Array must contain ${i.exact?"exactly":i.inclusive?`at least`:`more than`} ${i.minimum} element(s)`;else if(i.type==="string")f=`String must contain ${i.exact?"exactly":i.inclusive?`at least`:`over`} ${i.minimum} character(s)`;else if(i.type==="number")f=`Number must be ${i.exact?`exactly equal to `:i.inclusive?`greater than or equal to `:`greater than `}${i.minimum}`;else if(i.type==="bigint")f=`Number must be ${i.exact?`exactly equal to `:i.inclusive?`greater than or equal to `:`greater than `}${i.minimum}`;else if(i.type==="date")f=`Date must be ${i.exact?`exactly equal to `:i.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(i.minimum))}`;else f="Invalid input";break;case ZodIssueCode.too_big:if(i.type==="array")f=`Array must contain ${i.exact?`exactly`:i.inclusive?`at most`:`less than`} ${i.maximum} element(s)`;else if(i.type==="string")f=`String must contain ${i.exact?`exactly`:i.inclusive?`at most`:`under`} ${i.maximum} character(s)`;else if(i.type==="number")f=`Number must be ${i.exact?`exactly`:i.inclusive?`less than or equal to`:`less than`} ${i.maximum}`;else if(i.type==="bigint")f=`BigInt must be ${i.exact?`exactly`:i.inclusive?`less than or equal to`:`less than`} ${i.maximum}`;else if(i.type==="date")f=`Date must be ${i.exact?`exactly`:i.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(i.maximum))}`;else f="Invalid input";break;case ZodIssueCode.custom:f=`Invalid input`;break;case ZodIssueCode.invalid_intersection_types:f=`Intersection results could not be merged`;break;case ZodIssueCode.not_multiple_of:f=`Number must be a multiple of ${i.multipleOf}`;break;case ZodIssueCode.not_finite:f="Number must be finite";break;default:f=g.defaultError;util.assertNever(i)}return{message:f}};const en=errorMap;let overrideErrorMap=en;function setErrorMap(i){overrideErrorMap=i}function getErrorMap(){return overrideErrorMap}var errorUtil;(function(i){i.errToObj=i=>typeof i==="string"?{message:i}:i||{};i.toString=i=>typeof i==="string"?i:i?.message})(errorUtil||(errorUtil={}));const makeIssue=i=>{const{data:g,path:f,errorMaps:E,issueData:p}=i;const y=[...f,...p.path||[]];const b={...p,path:y};if(p.message!==undefined){return{...p,path:y,message:p.message}}let S="";const J=E.filter((i=>!!i)).slice().reverse();for(const i of J){S=i(b,{data:g,defaultError:S}).message}return{...p,path:y,message:S}};const EMPTY_PATH=null&&[];function addIssueToContext(i,g){const f=getErrorMap();const E=makeIssue({issueData:g,data:i.data,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,f,f===en?undefined:en].filter((i=>!!i))});i.common.issues.push(E)}class ParseStatus{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(i,g){const f=[];for(const E of g){if(E.status==="aborted")return parseUtil_INVALID;if(E.status==="dirty")i.dirty();f.push(E.value)}return{status:i.value,value:f}}static async mergeObjectAsync(i,g){const f=[];for(const i of g){const g=await i.key;const E=await i.value;f.push({key:g,value:E})}return ParseStatus.mergeObjectSync(i,f)}static mergeObjectSync(i,g){const f={};for(const E of g){const{key:g,value:p}=E;if(g.status==="aborted")return parseUtil_INVALID;if(p.status==="aborted")return parseUtil_INVALID;if(g.status==="dirty")i.dirty();if(p.status==="dirty")i.dirty();if(g.value!=="__proto__"&&(typeof p.value!=="undefined"||E.alwaysSet)){f[g.value]=p.value}}return{status:i.value,value:f}}}const parseUtil_INVALID=Object.freeze({status:"aborted"});const DIRTY=i=>({status:"dirty",value:i});const OK=i=>({status:"valid",value:i});const isAborted=i=>i.status==="aborted";const isDirty=i=>i.status==="dirty";const isValid=i=>i.status==="valid";const isAsync=i=>typeof Promise!=="undefined"&&i instanceof Promise;class ParseInputLazyPath{constructor(i,g,f,E){this._cachedPath=[];this.parent=i;this.data=g;this._path=f;this._key=E}get path(){if(!this._cachedPath.length){if(Array.isArray(this._key)){this._cachedPath.push(...this._path,...this._key)}else{this._cachedPath.push(...this._path,this._key)}}return this._cachedPath}}const handleResult=(i,g)=>{if(isValid(g)){return{success:true,data:g.value}}else{if(!i.common.issues.length){throw new Error("Validation failed but no issues detected.")}return{success:false,get error(){if(this._error)return this._error;const g=new ZodError(i.common.issues);this._error=g;return this._error}}}};function processCreateParams(i){if(!i)return{};const{errorMap:g,invalid_type_error:f,required_error:E,description:p}=i;if(g&&(f||E)){throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`)}if(g)return{errorMap:g,description:p};const customMap=(g,p)=>{const{message:y}=i;if(g.code==="invalid_enum_value"){return{message:y??p.defaultError}}if(typeof p.data==="undefined"){return{message:y??E??p.defaultError}}if(g.code!=="invalid_type")return{message:p.defaultError};return{message:y??f??p.defaultError}};return{errorMap:customMap,description:p}}class ZodType{get description(){return this._def.description}_getType(i){return getParsedType(i.data)}_getOrReturnCtx(i,g){return g||{common:i.parent.common,data:i.data,parsedType:getParsedType(i.data),schemaErrorMap:this._def.errorMap,path:i.path,parent:i.parent}}_processInputParams(i){return{status:new ParseStatus,ctx:{common:i.parent.common,data:i.data,parsedType:getParsedType(i.data),schemaErrorMap:this._def.errorMap,path:i.path,parent:i.parent}}}_parseSync(i){const g=this._parse(i);if(isAsync(g)){throw new Error("Synchronous parse encountered promise.")}return g}_parseAsync(i){const g=this._parse(i);return Promise.resolve(g)}parse(i,g){const f=this.safeParse(i,g);if(f.success)return f.data;throw f.error}safeParse(i,g){const f={common:{issues:[],async:g?.async??false,contextualErrorMap:g?.errorMap},path:g?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:getParsedType(i)};const E=this._parseSync({data:i,path:f.path,parent:f});return handleResult(f,E)}"~validate"(i){const g={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:getParsedType(i)};if(!this["~standard"].async){try{const f=this._parseSync({data:i,path:[],parent:g});return isValid(f)?{value:f.value}:{issues:g.common.issues}}catch(i){if(i?.message?.toLowerCase()?.includes("encountered")){this["~standard"].async=true}g.common={issues:[],async:true}}}return this._parseAsync({data:i,path:[],parent:g}).then((i=>isValid(i)?{value:i.value}:{issues:g.common.issues}))}async parseAsync(i,g){const f=await this.safeParseAsync(i,g);if(f.success)return f.data;throw f.error}async safeParseAsync(i,g){const f={common:{issues:[],contextualErrorMap:g?.errorMap,async:true},path:g?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:getParsedType(i)};const E=this._parse({data:i,path:f.path,parent:f});const p=await(isAsync(E)?E:Promise.resolve(E));return handleResult(f,p)}refine(i,g){const getIssueProperties=i=>{if(typeof g==="string"||typeof g==="undefined"){return{message:g}}else if(typeof g==="function"){return g(i)}else{return g}};return this._refinement(((g,f)=>{const E=i(g);const setError=()=>f.addIssue({code:ZodIssueCode.custom,...getIssueProperties(g)});if(typeof Promise!=="undefined"&&E instanceof Promise){return E.then((i=>{if(!i){setError();return false}else{return true}}))}if(!E){setError();return false}else{return true}}))}refinement(i,g){return this._refinement(((f,E)=>{if(!i(f)){E.addIssue(typeof g==="function"?g(f,E):g);return false}else{return true}}))}_refinement(i){return new ZodEffects({schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"refinement",refinement:i}})}superRefine(i){return this._refinement(i)}constructor(i){this.spa=this.safeParseAsync;this._def=i;this.parse=this.parse.bind(this);this.safeParse=this.safeParse.bind(this);this.parseAsync=this.parseAsync.bind(this);this.safeParseAsync=this.safeParseAsync.bind(this);this.spa=this.spa.bind(this);this.refine=this.refine.bind(this);this.refinement=this.refinement.bind(this);this.superRefine=this.superRefine.bind(this);this.optional=this.optional.bind(this);this.nullable=this.nullable.bind(this);this.nullish=this.nullish.bind(this);this.array=this.array.bind(this);this.promise=this.promise.bind(this);this.or=this.or.bind(this);this.and=this.and.bind(this);this.transform=this.transform.bind(this);this.brand=this.brand.bind(this);this.default=this.default.bind(this);this.catch=this.catch.bind(this);this.describe=this.describe.bind(this);this.pipe=this.pipe.bind(this);this.readonly=this.readonly.bind(this);this.isNullable=this.isNullable.bind(this);this.isOptional=this.isOptional.bind(this);this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this)}promise(){return ZodPromise.create(this,this._def)}or(i){return ZodUnion.create([this,i],this._def)}and(i){return ZodIntersection.create(this,i,this._def)}transform(i){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"transform",transform:i}})}default(i){const g=typeof i==="function"?i:()=>i;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:g,typeName:ZodFirstPartyTypeKind.ZodDefault})}brand(){return new ZodBranded({typeName:ZodFirstPartyTypeKind.ZodBranded,type:this,...processCreateParams(this._def)})}catch(i){const g=typeof i==="function"?i:()=>i;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:g,typeName:ZodFirstPartyTypeKind.ZodCatch})}describe(i){const g=this.constructor;return new g({...this._def,description:i})}pipe(i){return ZodPipeline.create(this,i)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(undefined).success}isNullable(){return this.safeParse(null).success}}const cuidRegex=/^c[^\s-]{8,}$/i;const cuid2Regex=/^[0-9a-z]+$/;const ulidRegex=/^[0-9A-HJKMNP-TV-Z]{26}$/i;const uuidRegex=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;const nanoidRegex=/^[a-z0-9_-]{21}$/i;const jwtRegex=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;const durationRegex=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;const emailRegex=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;const _emojiRegex=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;let emojiRegex;const ipv4Regex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;const ipv4CidrRegex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;const ipv6Regex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;const ipv6CidrRegex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;const base64Regex=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;const base64urlRegex=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;const dateRegexSource=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;const dateRegex=new RegExp(`^${dateRegexSource}$`);function timeRegexSource(i){let g=`[0-5]\\d`;if(i.precision){g=`${g}\\.\\d{${i.precision}}`}else if(i.precision==null){g=`${g}(\\.\\d+)?`}const f=i.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${g})${f}`}function timeRegex(i){return new RegExp(`^${timeRegexSource(i)}$`)}function datetimeRegex(i){let g=`${dateRegexSource}T${timeRegexSource(i)}`;const f=[];f.push(i.local?`Z?`:`Z`);if(i.offset)f.push(`([+-]\\d{2}:?\\d{2})`);g=`${g}(${f.join("|")})`;return new RegExp(`^${g}$`)}function isValidIP(i,g){if((g==="v4"||!g)&&ipv4Regex.test(i)){return true}if((g==="v6"||!g)&&ipv6Regex.test(i)){return true}return false}function isValidJWT(i,g){if(!jwtRegex.test(i))return false;try{const[f]=i.split(".");if(!f)return false;const E=f.replace(/-/g,"+").replace(/_/g,"/").padEnd(f.length+(4-f.length%4)%4,"=");const p=JSON.parse(atob(E));if(typeof p!=="object"||p===null)return false;if("typ"in p&&p?.typ!=="JWT")return false;if(!p.alg)return false;if(g&&p.alg!==g)return false;return true}catch{return false}}function isValidCidr(i,g){if((g==="v4"||!g)&&ipv4CidrRegex.test(i)){return true}if((g==="v6"||!g)&&ipv6CidrRegex.test(i)){return true}return false}class ZodString extends ZodType{_parse(i){if(this._def.coerce){i.data=String(i.data)}const g=this._getType(i);if(g!==ZodParsedType.string){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:g.parsedType});return parseUtil_INVALID}const f=new ParseStatus;let E=undefined;for(const g of this._def.checks){if(g.kind==="min"){if(i.data.length<g.value){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.too_small,minimum:g.value,type:"string",inclusive:true,exact:false,message:g.message});f.dirty()}}else if(g.kind==="max"){if(i.data.length>g.value){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.too_big,maximum:g.value,type:"string",inclusive:true,exact:false,message:g.message});f.dirty()}}else if(g.kind==="length"){const p=i.data.length>g.value;const y=i.data.length<g.value;if(p||y){E=this._getOrReturnCtx(i,E);if(p){addIssueToContext(E,{code:ZodIssueCode.too_big,maximum:g.value,type:"string",inclusive:true,exact:true,message:g.message})}else if(y){addIssueToContext(E,{code:ZodIssueCode.too_small,minimum:g.value,type:"string",inclusive:true,exact:true,message:g.message})}f.dirty()}}else if(g.kind==="email"){if(!emailRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"email",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="emoji"){if(!emojiRegex){emojiRegex=new RegExp(_emojiRegex,"u")}if(!emojiRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"emoji",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="uuid"){if(!uuidRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"uuid",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="nanoid"){if(!nanoidRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"nanoid",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="cuid"){if(!cuidRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"cuid",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="cuid2"){if(!cuid2Regex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"cuid2",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="ulid"){if(!ulidRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"ulid",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="url"){try{new URL(i.data)}catch{E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"url",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="regex"){g.regex.lastIndex=0;const p=g.regex.test(i.data);if(!p){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"regex",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="trim"){i.data=i.data.trim()}else if(g.kind==="includes"){if(!i.data.includes(g.value,g.position)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.invalid_string,validation:{includes:g.value,position:g.position},message:g.message});f.dirty()}}else if(g.kind==="toLowerCase"){i.data=i.data.toLowerCase()}else if(g.kind==="toUpperCase"){i.data=i.data.toUpperCase()}else if(g.kind==="startsWith"){if(!i.data.startsWith(g.value)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.invalid_string,validation:{startsWith:g.value},message:g.message});f.dirty()}}else if(g.kind==="endsWith"){if(!i.data.endsWith(g.value)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.invalid_string,validation:{endsWith:g.value},message:g.message});f.dirty()}}else if(g.kind==="datetime"){const p=datetimeRegex(g);if(!p.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.invalid_string,validation:"datetime",message:g.message});f.dirty()}}else if(g.kind==="date"){const p=dateRegex;if(!p.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.invalid_string,validation:"date",message:g.message});f.dirty()}}else if(g.kind==="time"){const p=timeRegex(g);if(!p.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.invalid_string,validation:"time",message:g.message});f.dirty()}}else if(g.kind==="duration"){if(!durationRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"duration",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="ip"){if(!isValidIP(i.data,g.version)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"ip",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="jwt"){if(!isValidJWT(i.data,g.alg)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"jwt",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="cidr"){if(!isValidCidr(i.data,g.version)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"cidr",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="base64"){if(!base64Regex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"base64",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="base64url"){if(!base64urlRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"base64url",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else{util.assertNever(g)}}return{status:f.value,value:i.data}}_regex(i,g,f){return this.refinement((g=>i.test(g)),{validation:g,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(f)})}_addCheck(i){return new ZodString({...this._def,checks:[...this._def.checks,i]})}email(i){return this._addCheck({kind:"email",...errorUtil.errToObj(i)})}url(i){return this._addCheck({kind:"url",...errorUtil.errToObj(i)})}emoji(i){return this._addCheck({kind:"emoji",...errorUtil.errToObj(i)})}uuid(i){return this._addCheck({kind:"uuid",...errorUtil.errToObj(i)})}nanoid(i){return this._addCheck({kind:"nanoid",...errorUtil.errToObj(i)})}cuid(i){return this._addCheck({kind:"cuid",...errorUtil.errToObj(i)})}cuid2(i){return this._addCheck({kind:"cuid2",...errorUtil.errToObj(i)})}ulid(i){return this._addCheck({kind:"ulid",...errorUtil.errToObj(i)})}base64(i){return this._addCheck({kind:"base64",...errorUtil.errToObj(i)})}base64url(i){return this._addCheck({kind:"base64url",...errorUtil.errToObj(i)})}jwt(i){return this._addCheck({kind:"jwt",...errorUtil.errToObj(i)})}ip(i){return this._addCheck({kind:"ip",...errorUtil.errToObj(i)})}cidr(i){return this._addCheck({kind:"cidr",...errorUtil.errToObj(i)})}datetime(i){if(typeof i==="string"){return this._addCheck({kind:"datetime",precision:null,offset:false,local:false,message:i})}return this._addCheck({kind:"datetime",precision:typeof i?.precision==="undefined"?null:i?.precision,offset:i?.offset??false,local:i?.local??false,...errorUtil.errToObj(i?.message)})}date(i){return this._addCheck({kind:"date",message:i})}time(i){if(typeof i==="string"){return this._addCheck({kind:"time",precision:null,message:i})}return this._addCheck({kind:"time",precision:typeof i?.precision==="undefined"?null:i?.precision,...errorUtil.errToObj(i?.message)})}duration(i){return this._addCheck({kind:"duration",...errorUtil.errToObj(i)})}regex(i,g){return this._addCheck({kind:"regex",regex:i,...errorUtil.errToObj(g)})}includes(i,g){return this._addCheck({kind:"includes",value:i,position:g?.position,...errorUtil.errToObj(g?.message)})}startsWith(i,g){return this._addCheck({kind:"startsWith",value:i,...errorUtil.errToObj(g)})}endsWith(i,g){return this._addCheck({kind:"endsWith",value:i,...errorUtil.errToObj(g)})}min(i,g){return this._addCheck({kind:"min",value:i,...errorUtil.errToObj(g)})}max(i,g){return this._addCheck({kind:"max",value:i,...errorUtil.errToObj(g)})}length(i,g){return this._addCheck({kind:"length",value:i,...errorUtil.errToObj(g)})}nonempty(i){return this.min(1,errorUtil.errToObj(i))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((i=>i.kind==="datetime"))}get isDate(){return!!this._def.checks.find((i=>i.kind==="date"))}get isTime(){return!!this._def.checks.find((i=>i.kind==="time"))}get isDuration(){return!!this._def.checks.find((i=>i.kind==="duration"))}get isEmail(){return!!this._def.checks.find((i=>i.kind==="email"))}get isURL(){return!!this._def.checks.find((i=>i.kind==="url"))}get isEmoji(){return!!this._def.checks.find((i=>i.kind==="emoji"))}get isUUID(){return!!this._def.checks.find((i=>i.kind==="uuid"))}get isNANOID(){return!!this._def.checks.find((i=>i.kind==="nanoid"))}get isCUID(){return!!this._def.checks.find((i=>i.kind==="cuid"))}get isCUID2(){return!!this._def.checks.find((i=>i.kind==="cuid2"))}get isULID(){return!!this._def.checks.find((i=>i.kind==="ulid"))}get isIP(){return!!this._def.checks.find((i=>i.kind==="ip"))}get isCIDR(){return!!this._def.checks.find((i=>i.kind==="cidr"))}get isBase64(){return!!this._def.checks.find((i=>i.kind==="base64"))}get isBase64url(){return!!this._def.checks.find((i=>i.kind==="base64url"))}get minLength(){let i=null;for(const g of this._def.checks){if(g.kind==="min"){if(i===null||g.value>i)i=g.value}}return i}get maxLength(){let i=null;for(const g of this._def.checks){if(g.kind==="max"){if(i===null||g.value<i)i=g.value}}return i}}ZodString.create=i=>new ZodString({checks:[],typeName:ZodFirstPartyTypeKind.ZodString,coerce:i?.coerce??false,...processCreateParams(i)});function floatSafeRemainder(i,g){const f=(i.toString().split(".")[1]||"").length;const E=(g.toString().split(".")[1]||"").length;const p=f>E?f:E;const y=Number.parseInt(i.toFixed(p).replace(".",""));const b=Number.parseInt(g.toFixed(p).replace(".",""));return y%b/10**p}class ZodNumber extends ZodType{constructor(){super(...arguments);this.min=this.gte;this.max=this.lte;this.step=this.multipleOf}_parse(i){if(this._def.coerce){i.data=Number(i.data)}const g=this._getType(i);if(g!==ZodParsedType.number){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:g.parsedType});return parseUtil_INVALID}let f=undefined;const E=new ParseStatus;for(const g of this._def.checks){if(g.kind==="int"){if(!util.isInteger(i.data)){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:"integer",received:"float",message:g.message});E.dirty()}}else if(g.kind==="min"){const p=g.inclusive?i.data<g.value:i.data<=g.value;if(p){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.too_small,minimum:g.value,type:"number",inclusive:g.inclusive,exact:false,message:g.message});E.dirty()}}else if(g.kind==="max"){const p=g.inclusive?i.data>g.value:i.data>=g.value;if(p){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.too_big,maximum:g.value,type:"number",inclusive:g.inclusive,exact:false,message:g.message});E.dirty()}}else if(g.kind==="multipleOf"){if(floatSafeRemainder(i.data,g.value)!==0){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.not_multiple_of,multipleOf:g.value,message:g.message});E.dirty()}}else if(g.kind==="finite"){if(!Number.isFinite(i.data)){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.not_finite,message:g.message});E.dirty()}}else{util.assertNever(g)}}return{status:E.value,value:i.data}}gte(i,g){return this.setLimit("min",i,true,errorUtil.toString(g))}gt(i,g){return this.setLimit("min",i,false,errorUtil.toString(g))}lte(i,g){return this.setLimit("max",i,true,errorUtil.toString(g))}lt(i,g){return this.setLimit("max",i,false,errorUtil.toString(g))}setLimit(i,g,f,E){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:i,value:g,inclusive:f,message:errorUtil.toString(E)}]})}_addCheck(i){return new ZodNumber({...this._def,checks:[...this._def.checks,i]})}int(i){return this._addCheck({kind:"int",message:errorUtil.toString(i)})}positive(i){return this._addCheck({kind:"min",value:0,inclusive:false,message:errorUtil.toString(i)})}negative(i){return this._addCheck({kind:"max",value:0,inclusive:false,message:errorUtil.toString(i)})}nonpositive(i){return this._addCheck({kind:"max",value:0,inclusive:true,message:errorUtil.toString(i)})}nonnegative(i){return this._addCheck({kind:"min",value:0,inclusive:true,message:errorUtil.toString(i)})}multipleOf(i,g){return this._addCheck({kind:"multipleOf",value:i,message:errorUtil.toString(g)})}finite(i){return this._addCheck({kind:"finite",message:errorUtil.toString(i)})}safe(i){return this._addCheck({kind:"min",inclusive:true,value:Number.MIN_SAFE_INTEGER,message:errorUtil.toString(i)})._addCheck({kind:"max",inclusive:true,value:Number.MAX_SAFE_INTEGER,message:errorUtil.toString(i)})}get minValue(){let i=null;for(const g of this._def.checks){if(g.kind==="min"){if(i===null||g.value>i)i=g.value}}return i}get maxValue(){let i=null;for(const g of this._def.checks){if(g.kind==="max"){if(i===null||g.value<i)i=g.value}}return i}get isInt(){return!!this._def.checks.find((i=>i.kind==="int"||i.kind==="multipleOf"&&util.isInteger(i.value)))}get isFinite(){let i=null;let g=null;for(const f of this._def.checks){if(f.kind==="finite"||f.kind==="int"||f.kind==="multipleOf"){return true}else if(f.kind==="min"){if(g===null||f.value>g)g=f.value}else if(f.kind==="max"){if(i===null||f.value<i)i=f.value}}return Number.isFinite(g)&&Number.isFinite(i)}}ZodNumber.create=i=>new ZodNumber({checks:[],typeName:ZodFirstPartyTypeKind.ZodNumber,coerce:i?.coerce||false,...processCreateParams(i)});class ZodBigInt extends ZodType{constructor(){super(...arguments);this.min=this.gte;this.max=this.lte}_parse(i){if(this._def.coerce){try{i.data=BigInt(i.data)}catch{return this._getInvalidInput(i)}}const g=this._getType(i);if(g!==ZodParsedType.bigint){return this._getInvalidInput(i)}let f=undefined;const E=new ParseStatus;for(const g of this._def.checks){if(g.kind==="min"){const p=g.inclusive?i.data<g.value:i.data<=g.value;if(p){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.too_small,type:"bigint",minimum:g.value,inclusive:g.inclusive,message:g.message});E.dirty()}}else if(g.kind==="max"){const p=g.inclusive?i.data>g.value:i.data>=g.value;if(p){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.too_big,type:"bigint",maximum:g.value,inclusive:g.inclusive,message:g.message});E.dirty()}}else if(g.kind==="multipleOf"){if(i.data%g.value!==BigInt(0)){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.not_multiple_of,multipleOf:g.value,message:g.message});E.dirty()}}else{util.assertNever(g)}}return{status:E.value,value:i.data}}_getInvalidInput(i){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.bigint,received:g.parsedType});return parseUtil_INVALID}gte(i,g){return this.setLimit("min",i,true,errorUtil.toString(g))}gt(i,g){return this.setLimit("min",i,false,errorUtil.toString(g))}lte(i,g){return this.setLimit("max",i,true,errorUtil.toString(g))}lt(i,g){return this.setLimit("max",i,false,errorUtil.toString(g))}setLimit(i,g,f,E){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:i,value:g,inclusive:f,message:errorUtil.toString(E)}]})}_addCheck(i){return new ZodBigInt({...this._def,checks:[...this._def.checks,i]})}positive(i){return this._addCheck({kind:"min",value:BigInt(0),inclusive:false,message:errorUtil.toString(i)})}negative(i){return this._addCheck({kind:"max",value:BigInt(0),inclusive:false,message:errorUtil.toString(i)})}nonpositive(i){return this._addCheck({kind:"max",value:BigInt(0),inclusive:true,message:errorUtil.toString(i)})}nonnegative(i){return this._addCheck({kind:"min",value:BigInt(0),inclusive:true,message:errorUtil.toString(i)})}multipleOf(i,g){return this._addCheck({kind:"multipleOf",value:i,message:errorUtil.toString(g)})}get minValue(){let i=null;for(const g of this._def.checks){if(g.kind==="min"){if(i===null||g.value>i)i=g.value}}return i}get maxValue(){let i=null;for(const g of this._def.checks){if(g.kind==="max"){if(i===null||g.value<i)i=g.value}}return i}}ZodBigInt.create=i=>new ZodBigInt({checks:[],typeName:ZodFirstPartyTypeKind.ZodBigInt,coerce:i?.coerce??false,...processCreateParams(i)});class ZodBoolean extends ZodType{_parse(i){if(this._def.coerce){i.data=Boolean(i.data)}const g=this._getType(i);if(g!==ZodParsedType.boolean){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:g.parsedType});return parseUtil_INVALID}return OK(i.data)}}ZodBoolean.create=i=>new ZodBoolean({typeName:ZodFirstPartyTypeKind.ZodBoolean,coerce:i?.coerce||false,...processCreateParams(i)});class ZodDate extends ZodType{_parse(i){if(this._def.coerce){i.data=new Date(i.data)}const g=this._getType(i);if(g!==ZodParsedType.date){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:g.parsedType});return parseUtil_INVALID}if(Number.isNaN(i.data.getTime())){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_date});return parseUtil_INVALID}const f=new ParseStatus;let E=undefined;for(const g of this._def.checks){if(g.kind==="min"){if(i.data.getTime()<g.value){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.too_small,message:g.message,inclusive:true,exact:false,minimum:g.value,type:"date"});f.dirty()}}else if(g.kind==="max"){if(i.data.getTime()>g.value){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.too_big,message:g.message,inclusive:true,exact:false,maximum:g.value,type:"date"});f.dirty()}}else{util.assertNever(g)}}return{status:f.value,value:new Date(i.data.getTime())}}_addCheck(i){return new ZodDate({...this._def,checks:[...this._def.checks,i]})}min(i,g){return this._addCheck({kind:"min",value:i.getTime(),message:errorUtil.toString(g)})}max(i,g){return this._addCheck({kind:"max",value:i.getTime(),message:errorUtil.toString(g)})}get minDate(){let i=null;for(const g of this._def.checks){if(g.kind==="min"){if(i===null||g.value>i)i=g.value}}return i!=null?new Date(i):null}get maxDate(){let i=null;for(const g of this._def.checks){if(g.kind==="max"){if(i===null||g.value<i)i=g.value}}return i!=null?new Date(i):null}}ZodDate.create=i=>new ZodDate({checks:[],coerce:i?.coerce||false,typeName:ZodFirstPartyTypeKind.ZodDate,...processCreateParams(i)});class ZodSymbol extends ZodType{_parse(i){const g=this._getType(i);if(g!==ZodParsedType.symbol){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:g.parsedType});return parseUtil_INVALID}return OK(i.data)}}ZodSymbol.create=i=>new ZodSymbol({typeName:ZodFirstPartyTypeKind.ZodSymbol,...processCreateParams(i)});class ZodUndefined extends ZodType{_parse(i){const g=this._getType(i);if(g!==ZodParsedType.undefined){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:g.parsedType});return parseUtil_INVALID}return OK(i.data)}}ZodUndefined.create=i=>new ZodUndefined({typeName:ZodFirstPartyTypeKind.ZodUndefined,...processCreateParams(i)});class ZodNull extends ZodType{_parse(i){const g=this._getType(i);if(g!==ZodParsedType.null){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:g.parsedType});return parseUtil_INVALID}return OK(i.data)}}ZodNull.create=i=>new ZodNull({typeName:ZodFirstPartyTypeKind.ZodNull,...processCreateParams(i)});class ZodAny extends ZodType{constructor(){super(...arguments);this._any=true}_parse(i){return OK(i.data)}}ZodAny.create=i=>new ZodAny({typeName:ZodFirstPartyTypeKind.ZodAny,...processCreateParams(i)});class ZodUnknown extends ZodType{constructor(){super(...arguments);this._unknown=true}_parse(i){return OK(i.data)}}ZodUnknown.create=i=>new ZodUnknown({typeName:ZodFirstPartyTypeKind.ZodUnknown,...processCreateParams(i)});class ZodNever extends ZodType{_parse(i){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.never,received:g.parsedType});return parseUtil_INVALID}}ZodNever.create=i=>new ZodNever({typeName:ZodFirstPartyTypeKind.ZodNever,...processCreateParams(i)});class ZodVoid extends ZodType{_parse(i){const g=this._getType(i);if(g!==ZodParsedType.undefined){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:g.parsedType});return parseUtil_INVALID}return OK(i.data)}}ZodVoid.create=i=>new ZodVoid({typeName:ZodFirstPartyTypeKind.ZodVoid,...processCreateParams(i)});class ZodArray extends ZodType{_parse(i){const{ctx:g,status:f}=this._processInputParams(i);const E=this._def;if(g.parsedType!==ZodParsedType.array){addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:g.parsedType});return parseUtil_INVALID}if(E.exactLength!==null){const i=g.data.length>E.exactLength.value;const p=g.data.length<E.exactLength.value;if(i||p){addIssueToContext(g,{code:i?ZodIssueCode.too_big:ZodIssueCode.too_small,minimum:p?E.exactLength.value:undefined,maximum:i?E.exactLength.value:undefined,type:"array",inclusive:true,exact:true,message:E.exactLength.message});f.dirty()}}if(E.minLength!==null){if(g.data.length<E.minLength.value){addIssueToContext(g,{code:ZodIssueCode.too_small,minimum:E.minLength.value,type:"array",inclusive:true,exact:false,message:E.minLength.message});f.dirty()}}if(E.maxLength!==null){if(g.data.length>E.maxLength.value){addIssueToContext(g,{code:ZodIssueCode.too_big,maximum:E.maxLength.value,type:"array",inclusive:true,exact:false,message:E.maxLength.message});f.dirty()}}if(g.common.async){return Promise.all([...g.data].map(((i,f)=>E.type._parseAsync(new ParseInputLazyPath(g,i,g.path,f))))).then((i=>ParseStatus.mergeArray(f,i)))}const p=[...g.data].map(((i,f)=>E.type._parseSync(new ParseInputLazyPath(g,i,g.path,f))));return ParseStatus.mergeArray(f,p)}get element(){return this._def.type}min(i,g){return new ZodArray({...this._def,minLength:{value:i,message:errorUtil.toString(g)}})}max(i,g){return new ZodArray({...this._def,maxLength:{value:i,message:errorUtil.toString(g)}})}length(i,g){return new ZodArray({...this._def,exactLength:{value:i,message:errorUtil.toString(g)}})}nonempty(i){return this.min(1,i)}}ZodArray.create=(i,g)=>new ZodArray({type:i,minLength:null,maxLength:null,exactLength:null,typeName:ZodFirstPartyTypeKind.ZodArray,...processCreateParams(g)});function deepPartialify(i){if(i instanceof ZodObject){const g={};for(const f in i.shape){const E=i.shape[f];g[f]=ZodOptional.create(deepPartialify(E))}return new ZodObject({...i._def,shape:()=>g})}else if(i instanceof ZodArray){return new ZodArray({...i._def,type:deepPartialify(i.element)})}else if(i instanceof ZodOptional){return ZodOptional.create(deepPartialify(i.unwrap()))}else if(i instanceof ZodNullable){return ZodNullable.create(deepPartialify(i.unwrap()))}else if(i instanceof ZodTuple){return ZodTuple.create(i.items.map((i=>deepPartialify(i))))}else{return i}}class ZodObject extends ZodType{constructor(){super(...arguments);this._cached=null;this.nonstrict=this.passthrough;this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const i=this._def.shape();const g=util.objectKeys(i);this._cached={shape:i,keys:g};return this._cached}_parse(i){const g=this._getType(i);if(g!==ZodParsedType.object){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:g.parsedType});return parseUtil_INVALID}const{status:f,ctx:E}=this._processInputParams(i);const{shape:p,keys:y}=this._getCached();const b=[];if(!(this._def.catchall instanceof ZodNever&&this._def.unknownKeys==="strip")){for(const i in E.data){if(!y.includes(i)){b.push(i)}}}const S=[];for(const i of y){const g=p[i];const f=E.data[i];S.push({key:{status:"valid",value:i},value:g._parse(new ParseInputLazyPath(E,f,E.path,i)),alwaysSet:i in E.data})}if(this._def.catchall instanceof ZodNever){const i=this._def.unknownKeys;if(i==="passthrough"){for(const i of b){S.push({key:{status:"valid",value:i},value:{status:"valid",value:E.data[i]}})}}else if(i==="strict"){if(b.length>0){addIssueToContext(E,{code:ZodIssueCode.unrecognized_keys,keys:b});f.dirty()}}else if(i==="strip"){}else{throw new Error(`Internal ZodObject error: invalid unknownKeys value.`)}}else{const i=this._def.catchall;for(const g of b){const f=E.data[g];S.push({key:{status:"valid",value:g},value:i._parse(new ParseInputLazyPath(E,f,E.path,g)),alwaysSet:g in E.data})}}if(E.common.async){return Promise.resolve().then((async()=>{const i=[];for(const g of S){const f=await g.key;const E=await g.value;i.push({key:f,value:E,alwaysSet:g.alwaysSet})}return i})).then((i=>ParseStatus.mergeObjectSync(f,i)))}else{return ParseStatus.mergeObjectSync(f,S)}}get shape(){return this._def.shape()}strict(i){errorUtil.errToObj;return new ZodObject({...this._def,unknownKeys:"strict",...i!==undefined?{errorMap:(g,f)=>{const E=this._def.errorMap?.(g,f).message??f.defaultError;if(g.code==="unrecognized_keys")return{message:errorUtil.errToObj(i).message??E};return{message:E}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(i){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...i})})}merge(i){const g=new ZodObject({unknownKeys:i._def.unknownKeys,catchall:i._def.catchall,shape:()=>({...this._def.shape(),...i._def.shape()}),typeName:ZodFirstPartyTypeKind.ZodObject});return g}setKey(i,g){return this.augment({[i]:g})}catchall(i){return new ZodObject({...this._def,catchall:i})}pick(i){const g={};for(const f of util.objectKeys(i)){if(i[f]&&this.shape[f]){g[f]=this.shape[f]}}return new ZodObject({...this._def,shape:()=>g})}omit(i){const g={};for(const f of util.objectKeys(this.shape)){if(!i[f]){g[f]=this.shape[f]}}return new ZodObject({...this._def,shape:()=>g})}deepPartial(){return deepPartialify(this)}partial(i){const g={};for(const f of util.objectKeys(this.shape)){const E=this.shape[f];if(i&&!i[f]){g[f]=E}else{g[f]=E.optional()}}return new ZodObject({...this._def,shape:()=>g})}required(i){const g={};for(const f of util.objectKeys(this.shape)){if(i&&!i[f]){g[f]=this.shape[f]}else{const i=this.shape[f];let E=i;while(E instanceof ZodOptional){E=E._def.innerType}g[f]=E}}return new ZodObject({...this._def,shape:()=>g})}keyof(){return createZodEnum(util.objectKeys(this.shape))}}ZodObject.create=(i,g)=>new ZodObject({shape:()=>i,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(g)});ZodObject.strictCreate=(i,g)=>new ZodObject({shape:()=>i,unknownKeys:"strict",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(g)});ZodObject.lazycreate=(i,g)=>new ZodObject({shape:i,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(g)});class ZodUnion extends ZodType{_parse(i){const{ctx:g}=this._processInputParams(i);const f=this._def.options;function handleResults(i){for(const g of i){if(g.result.status==="valid"){return g.result}}for(const f of i){if(f.result.status==="dirty"){g.common.issues.push(...f.ctx.common.issues);return f.result}}const f=i.map((i=>new ZodError(i.ctx.common.issues)));addIssueToContext(g,{code:ZodIssueCode.invalid_union,unionErrors:f});return parseUtil_INVALID}if(g.common.async){return Promise.all(f.map((async i=>{const f={...g,common:{...g.common,issues:[]},parent:null};return{result:await i._parseAsync({data:g.data,path:g.path,parent:f}),ctx:f}}))).then(handleResults)}else{let i=undefined;const E=[];for(const p of f){const f={...g,common:{...g.common,issues:[]},parent:null};const y=p._parseSync({data:g.data,path:g.path,parent:f});if(y.status==="valid"){return y}else if(y.status==="dirty"&&!i){i={result:y,ctx:f}}if(f.common.issues.length){E.push(f.common.issues)}}if(i){g.common.issues.push(...i.ctx.common.issues);return i.result}const p=E.map((i=>new ZodError(i)));addIssueToContext(g,{code:ZodIssueCode.invalid_union,unionErrors:p});return parseUtil_INVALID}}get options(){return this._def.options}}ZodUnion.create=(i,g)=>new ZodUnion({options:i,typeName:ZodFirstPartyTypeKind.ZodUnion,...processCreateParams(g)});const getDiscriminator=i=>{if(i instanceof ZodLazy){return getDiscriminator(i.schema)}else if(i instanceof ZodEffects){return getDiscriminator(i.innerType())}else if(i instanceof ZodLiteral){return[i.value]}else if(i instanceof ZodEnum){return i.options}else if(i instanceof ZodNativeEnum){return util.objectValues(i.enum)}else if(i instanceof ZodDefault){return getDiscriminator(i._def.innerType)}else if(i instanceof ZodUndefined){return[undefined]}else if(i instanceof ZodNull){return[null]}else if(i instanceof ZodOptional){return[undefined,...getDiscriminator(i.unwrap())]}else if(i instanceof ZodNullable){return[null,...getDiscriminator(i.unwrap())]}else if(i instanceof ZodBranded){return getDiscriminator(i.unwrap())}else if(i instanceof ZodReadonly){return getDiscriminator(i.unwrap())}else if(i instanceof ZodCatch){return getDiscriminator(i._def.innerType)}else{return[]}};class ZodDiscriminatedUnion extends ZodType{_parse(i){const{ctx:g}=this._processInputParams(i);if(g.parsedType!==ZodParsedType.object){addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:g.parsedType});return parseUtil_INVALID}const f=this.discriminator;const E=g.data[f];const p=this.optionsMap.get(E);if(!p){addIssueToContext(g,{code:ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[f]});return parseUtil_INVALID}if(g.common.async){return p._parseAsync({data:g.data,path:g.path,parent:g})}else{return p._parseSync({data:g.data,path:g.path,parent:g})}}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(i,g,f){const E=new Map;for(const f of g){const g=getDiscriminator(f.shape[i]);if(!g.length){throw new Error(`A discriminator value for key \`${i}\` could not be extracted from all schema options`)}for(const p of g){if(E.has(p)){throw new Error(`Discriminator property ${String(i)} has duplicate value ${String(p)}`)}E.set(p,f)}}return new ZodDiscriminatedUnion({typeName:ZodFirstPartyTypeKind.ZodDiscriminatedUnion,discriminator:i,options:g,optionsMap:E,...processCreateParams(f)})}}function mergeValues(i,g){const f=getParsedType(i);const E=getParsedType(g);if(i===g){return{valid:true,data:i}}else if(f===ZodParsedType.object&&E===ZodParsedType.object){const f=util.objectKeys(g);const E=util.objectKeys(i).filter((i=>f.indexOf(i)!==-1));const p={...i,...g};for(const f of E){const E=mergeValues(i[f],g[f]);if(!E.valid){return{valid:false}}p[f]=E.data}return{valid:true,data:p}}else if(f===ZodParsedType.array&&E===ZodParsedType.array){if(i.length!==g.length){return{valid:false}}const f=[];for(let E=0;E<i.length;E++){const p=i[E];const y=g[E];const b=mergeValues(p,y);if(!b.valid){return{valid:false}}f.push(b.data)}return{valid:true,data:f}}else if(f===ZodParsedType.date&&E===ZodParsedType.date&&+i===+g){return{valid:true,data:i}}else{return{valid:false}}}class ZodIntersection extends ZodType{_parse(i){const{status:g,ctx:f}=this._processInputParams(i);const handleParsed=(i,E)=>{if(isAborted(i)||isAborted(E)){return parseUtil_INVALID}const p=mergeValues(i.value,E.value);if(!p.valid){addIssueToContext(f,{code:ZodIssueCode.invalid_intersection_types});return parseUtil_INVALID}if(isDirty(i)||isDirty(E)){g.dirty()}return{status:g.value,value:p.data}};if(f.common.async){return Promise.all([this._def.left._parseAsync({data:f.data,path:f.path,parent:f}),this._def.right._parseAsync({data:f.data,path:f.path,parent:f})]).then((([i,g])=>handleParsed(i,g)))}else{return handleParsed(this._def.left._parseSync({data:f.data,path:f.path,parent:f}),this._def.right._parseSync({data:f.data,path:f.path,parent:f}))}}}ZodIntersection.create=(i,g,f)=>new ZodIntersection({left:i,right:g,typeName:ZodFirstPartyTypeKind.ZodIntersection,...processCreateParams(f)});class ZodTuple extends ZodType{_parse(i){const{status:g,ctx:f}=this._processInputParams(i);if(f.parsedType!==ZodParsedType.array){addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:f.parsedType});return parseUtil_INVALID}if(f.data.length<this._def.items.length){addIssueToContext(f,{code:ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:true,exact:false,type:"array"});return parseUtil_INVALID}const E=this._def.rest;if(!E&&f.data.length>this._def.items.length){addIssueToContext(f,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:true,exact:false,type:"array"});g.dirty()}const p=[...f.data].map(((i,g)=>{const E=this._def.items[g]||this._def.rest;if(!E)return null;return E._parse(new ParseInputLazyPath(f,i,f.path,g))})).filter((i=>!!i));if(f.common.async){return Promise.all(p).then((i=>ParseStatus.mergeArray(g,i)))}else{return ParseStatus.mergeArray(g,p)}}get items(){return this._def.items}rest(i){return new ZodTuple({...this._def,rest:i})}}ZodTuple.create=(i,g)=>{if(!Array.isArray(i)){throw new Error("You must pass an array of schemas to z.tuple([ ... ])")}return new ZodTuple({items:i,typeName:ZodFirstPartyTypeKind.ZodTuple,rest:null,...processCreateParams(g)})};class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(i){const{status:g,ctx:f}=this._processInputParams(i);if(f.parsedType!==ZodParsedType.object){addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:f.parsedType});return parseUtil_INVALID}const E=[];const p=this._def.keyType;const y=this._def.valueType;for(const i in f.data){E.push({key:p._parse(new ParseInputLazyPath(f,i,f.path,i)),value:y._parse(new ParseInputLazyPath(f,f.data[i],f.path,i)),alwaysSet:i in f.data})}if(f.common.async){return ParseStatus.mergeObjectAsync(g,E)}else{return ParseStatus.mergeObjectSync(g,E)}}get element(){return this._def.valueType}static create(i,g,f){if(g instanceof ZodType){return new ZodRecord({keyType:i,valueType:g,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(f)})}return new ZodRecord({keyType:ZodString.create(),valueType:i,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(g)})}}class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(i){const{status:g,ctx:f}=this._processInputParams(i);if(f.parsedType!==ZodParsedType.map){addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:f.parsedType});return parseUtil_INVALID}const E=this._def.keyType;const p=this._def.valueType;const y=[...f.data.entries()].map((([i,g],y)=>({key:E._parse(new ParseInputLazyPath(f,i,f.path,[y,"key"])),value:p._parse(new ParseInputLazyPath(f,g,f.path,[y,"value"]))})));if(f.common.async){const i=new Map;return Promise.resolve().then((async()=>{for(const f of y){const E=await f.key;const p=await f.value;if(E.status==="aborted"||p.status==="aborted"){return parseUtil_INVALID}if(E.status==="dirty"||p.status==="dirty"){g.dirty()}i.set(E.value,p.value)}return{status:g.value,value:i}}))}else{const i=new Map;for(const f of y){const E=f.key;const p=f.value;if(E.status==="aborted"||p.status==="aborted"){return parseUtil_INVALID}if(E.status==="dirty"||p.status==="dirty"){g.dirty()}i.set(E.value,p.value)}return{status:g.value,value:i}}}}ZodMap.create=(i,g,f)=>new ZodMap({valueType:g,keyType:i,typeName:ZodFirstPartyTypeKind.ZodMap,...processCreateParams(f)});class ZodSet extends ZodType{_parse(i){const{status:g,ctx:f}=this._processInputParams(i);if(f.parsedType!==ZodParsedType.set){addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:f.parsedType});return parseUtil_INVALID}const E=this._def;if(E.minSize!==null){if(f.data.size<E.minSize.value){addIssueToContext(f,{code:ZodIssueCode.too_small,minimum:E.minSize.value,type:"set",inclusive:true,exact:false,message:E.minSize.message});g.dirty()}}if(E.maxSize!==null){if(f.data.size>E.maxSize.value){addIssueToContext(f,{code:ZodIssueCode.too_big,maximum:E.maxSize.value,type:"set",inclusive:true,exact:false,message:E.maxSize.message});g.dirty()}}const p=this._def.valueType;function finalizeSet(i){const f=new Set;for(const E of i){if(E.status==="aborted")return parseUtil_INVALID;if(E.status==="dirty")g.dirty();f.add(E.value)}return{status:g.value,value:f}}const y=[...f.data.values()].map(((i,g)=>p._parse(new ParseInputLazyPath(f,i,f.path,g))));if(f.common.async){return Promise.all(y).then((i=>finalizeSet(i)))}else{return finalizeSet(y)}}min(i,g){return new ZodSet({...this._def,minSize:{value:i,message:errorUtil.toString(g)}})}max(i,g){return new ZodSet({...this._def,maxSize:{value:i,message:errorUtil.toString(g)}})}size(i,g){return this.min(i,g).max(i,g)}nonempty(i){return this.min(1,i)}}ZodSet.create=(i,g)=>new ZodSet({valueType:i,minSize:null,maxSize:null,typeName:ZodFirstPartyTypeKind.ZodSet,...processCreateParams(g)});class ZodFunction extends ZodType{constructor(){super(...arguments);this.validate=this.implement}_parse(i){const{ctx:g}=this._processInputParams(i);if(g.parsedType!==ZodParsedType.function){addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.function,received:g.parsedType});return parseUtil_INVALID}function makeArgsIssue(i,f){return makeIssue({data:i,path:g.path,errorMaps:[g.common.contextualErrorMap,g.schemaErrorMap,getErrorMap(),en].filter((i=>!!i)),issueData:{code:ZodIssueCode.invalid_arguments,argumentsError:f}})}function makeReturnsIssue(i,f){return makeIssue({data:i,path:g.path,errorMaps:[g.common.contextualErrorMap,g.schemaErrorMap,getErrorMap(),en].filter((i=>!!i)),issueData:{code:ZodIssueCode.invalid_return_type,returnTypeError:f}})}const f={errorMap:g.common.contextualErrorMap};const E=g.data;if(this._def.returns instanceof ZodPromise){const i=this;return OK((async function(...g){const p=new ZodError([]);const y=await i._def.args.parseAsync(g,f).catch((i=>{p.addIssue(makeArgsIssue(g,i));throw p}));const b=await Reflect.apply(E,this,y);const S=await i._def.returns._def.type.parseAsync(b,f).catch((i=>{p.addIssue(makeReturnsIssue(b,i));throw p}));return S}))}else{const i=this;return OK((function(...g){const p=i._def.args.safeParse(g,f);if(!p.success){throw new ZodError([makeArgsIssue(g,p.error)])}const y=Reflect.apply(E,this,p.data);const b=i._def.returns.safeParse(y,f);if(!b.success){throw new ZodError([makeReturnsIssue(y,b.error)])}return b.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...i){return new ZodFunction({...this._def,args:ZodTuple.create(i).rest(ZodUnknown.create())})}returns(i){return new ZodFunction({...this._def,returns:i})}implement(i){const g=this.parse(i);return g}strictImplement(i){const g=this.parse(i);return g}static create(i,g,f){return new ZodFunction({args:i?i:ZodTuple.create([]).rest(ZodUnknown.create()),returns:g||ZodUnknown.create(),typeName:ZodFirstPartyTypeKind.ZodFunction,...processCreateParams(f)})}}class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(i){const{ctx:g}=this._processInputParams(i);const f=this._def.getter();return f._parse({data:g.data,path:g.path,parent:g})}}ZodLazy.create=(i,g)=>new ZodLazy({getter:i,typeName:ZodFirstPartyTypeKind.ZodLazy,...processCreateParams(g)});class ZodLiteral extends ZodType{_parse(i){if(i.data!==this._def.value){const g=this._getOrReturnCtx(i);addIssueToContext(g,{received:g.data,code:ZodIssueCode.invalid_literal,expected:this._def.value});return parseUtil_INVALID}return{status:"valid",value:i.data}}get value(){return this._def.value}}ZodLiteral.create=(i,g)=>new ZodLiteral({value:i,typeName:ZodFirstPartyTypeKind.ZodLiteral,...processCreateParams(g)});function createZodEnum(i,g){return new ZodEnum({values:i,typeName:ZodFirstPartyTypeKind.ZodEnum,...processCreateParams(g)})}class ZodEnum extends ZodType{_parse(i){if(typeof i.data!=="string"){const g=this._getOrReturnCtx(i);const f=this._def.values;addIssueToContext(g,{expected:util.joinValues(f),received:g.parsedType,code:ZodIssueCode.invalid_type});return parseUtil_INVALID}if(!this._cache){this._cache=new Set(this._def.values)}if(!this._cache.has(i.data)){const g=this._getOrReturnCtx(i);const f=this._def.values;addIssueToContext(g,{received:g.data,code:ZodIssueCode.invalid_enum_value,options:f});return parseUtil_INVALID}return OK(i.data)}get options(){return this._def.values}get enum(){const i={};for(const g of this._def.values){i[g]=g}return i}get Values(){const i={};for(const g of this._def.values){i[g]=g}return i}get Enum(){const i={};for(const g of this._def.values){i[g]=g}return i}extract(i,g=this._def){return ZodEnum.create(i,{...this._def,...g})}exclude(i,g=this._def){return ZodEnum.create(this.options.filter((g=>!i.includes(g))),{...this._def,...g})}}ZodEnum.create=createZodEnum;class ZodNativeEnum extends ZodType{_parse(i){const g=util.getValidEnumValues(this._def.values);const f=this._getOrReturnCtx(i);if(f.parsedType!==ZodParsedType.string&&f.parsedType!==ZodParsedType.number){const i=util.objectValues(g);addIssueToContext(f,{expected:util.joinValues(i),received:f.parsedType,code:ZodIssueCode.invalid_type});return parseUtil_INVALID}if(!this._cache){this._cache=new Set(util.getValidEnumValues(this._def.values))}if(!this._cache.has(i.data)){const i=util.objectValues(g);addIssueToContext(f,{received:f.data,code:ZodIssueCode.invalid_enum_value,options:i});return parseUtil_INVALID}return OK(i.data)}get enum(){return this._def.values}}ZodNativeEnum.create=(i,g)=>new ZodNativeEnum({values:i,typeName:ZodFirstPartyTypeKind.ZodNativeEnum,...processCreateParams(g)});class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(i){const{ctx:g}=this._processInputParams(i);if(g.parsedType!==ZodParsedType.promise&&g.common.async===false){addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.promise,received:g.parsedType});return parseUtil_INVALID}const f=g.parsedType===ZodParsedType.promise?g.data:Promise.resolve(g.data);return OK(f.then((i=>this._def.type.parseAsync(i,{path:g.path,errorMap:g.common.contextualErrorMap}))))}}ZodPromise.create=(i,g)=>new ZodPromise({type:i,typeName:ZodFirstPartyTypeKind.ZodPromise,...processCreateParams(g)});class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ZodFirstPartyTypeKind.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(i){const{status:g,ctx:f}=this._processInputParams(i);const E=this._def.effect||null;const p={addIssue:i=>{addIssueToContext(f,i);if(i.fatal){g.abort()}else{g.dirty()}},get path(){return f.path}};p.addIssue=p.addIssue.bind(p);if(E.type==="preprocess"){const i=E.transform(f.data,p);if(f.common.async){return Promise.resolve(i).then((async i=>{if(g.value==="aborted")return parseUtil_INVALID;const E=await this._def.schema._parseAsync({data:i,path:f.path,parent:f});if(E.status==="aborted")return parseUtil_INVALID;if(E.status==="dirty")return DIRTY(E.value);if(g.value==="dirty")return DIRTY(E.value);return E}))}else{if(g.value==="aborted")return parseUtil_INVALID;const E=this._def.schema._parseSync({data:i,path:f.path,parent:f});if(E.status==="aborted")return parseUtil_INVALID;if(E.status==="dirty")return DIRTY(E.value);if(g.value==="dirty")return DIRTY(E.value);return E}}if(E.type==="refinement"){const executeRefinement=i=>{const g=E.refinement(i,p);if(f.common.async){return Promise.resolve(g)}if(g instanceof Promise){throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.")}return i};if(f.common.async===false){const i=this._def.schema._parseSync({data:f.data,path:f.path,parent:f});if(i.status==="aborted")return parseUtil_INVALID;if(i.status==="dirty")g.dirty();executeRefinement(i.value);return{status:g.value,value:i.value}}else{return this._def.schema._parseAsync({data:f.data,path:f.path,parent:f}).then((i=>{if(i.status==="aborted")return parseUtil_INVALID;if(i.status==="dirty")g.dirty();return executeRefinement(i.value).then((()=>({status:g.value,value:i.value})))}))}}if(E.type==="transform"){if(f.common.async===false){const i=this._def.schema._parseSync({data:f.data,path:f.path,parent:f});if(!isValid(i))return parseUtil_INVALID;const y=E.transform(i.value,p);if(y instanceof Promise){throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`)}return{status:g.value,value:y}}else{return this._def.schema._parseAsync({data:f.data,path:f.path,parent:f}).then((i=>{if(!isValid(i))return parseUtil_INVALID;return Promise.resolve(E.transform(i.value,p)).then((i=>({status:g.value,value:i})))}))}}util.assertNever(E)}}ZodEffects.create=(i,g,f)=>new ZodEffects({schema:i,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:g,...processCreateParams(f)});ZodEffects.createWithPreprocess=(i,g,f)=>new ZodEffects({schema:g,effect:{type:"preprocess",transform:i},typeName:ZodFirstPartyTypeKind.ZodEffects,...processCreateParams(f)});class ZodOptional extends ZodType{_parse(i){const g=this._getType(i);if(g===ZodParsedType.undefined){return OK(undefined)}return this._def.innerType._parse(i)}unwrap(){return this._def.innerType}}ZodOptional.create=(i,g)=>new ZodOptional({innerType:i,typeName:ZodFirstPartyTypeKind.ZodOptional,...processCreateParams(g)});class ZodNullable extends ZodType{_parse(i){const g=this._getType(i);if(g===ZodParsedType.null){return OK(null)}return this._def.innerType._parse(i)}unwrap(){return this._def.innerType}}ZodNullable.create=(i,g)=>new ZodNullable({innerType:i,typeName:ZodFirstPartyTypeKind.ZodNullable,...processCreateParams(g)});class ZodDefault extends ZodType{_parse(i){const{ctx:g}=this._processInputParams(i);let f=g.data;if(g.parsedType===ZodParsedType.undefined){f=this._def.defaultValue()}return this._def.innerType._parse({data:f,path:g.path,parent:g})}removeDefault(){return this._def.innerType}}ZodDefault.create=(i,g)=>new ZodDefault({innerType:i,typeName:ZodFirstPartyTypeKind.ZodDefault,defaultValue:typeof g.default==="function"?g.default:()=>g.default,...processCreateParams(g)});class ZodCatch extends ZodType{_parse(i){const{ctx:g}=this._processInputParams(i);const f={...g,common:{...g.common,issues:[]}};const E=this._def.innerType._parse({data:f.data,path:f.path,parent:{...f}});if(isAsync(E)){return E.then((i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ZodError(f.common.issues)},input:f.data})})))}else{return{status:"valid",value:E.status==="valid"?E.value:this._def.catchValue({get error(){return new ZodError(f.common.issues)},input:f.data})}}}removeCatch(){return this._def.innerType}}ZodCatch.create=(i,g)=>new ZodCatch({innerType:i,typeName:ZodFirstPartyTypeKind.ZodCatch,catchValue:typeof g.catch==="function"?g.catch:()=>g.catch,...processCreateParams(g)});class ZodNaN extends ZodType{_parse(i){const g=this._getType(i);if(g!==ZodParsedType.nan){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:g.parsedType});return parseUtil_INVALID}return{status:"valid",value:i.data}}}ZodNaN.create=i=>new ZodNaN({typeName:ZodFirstPartyTypeKind.ZodNaN,...processCreateParams(i)});const BRAND=Symbol("zod_brand");class ZodBranded extends ZodType{_parse(i){const{ctx:g}=this._processInputParams(i);const f=g.data;return this._def.type._parse({data:f,path:g.path,parent:g})}unwrap(){return this._def.type}}class ZodPipeline extends ZodType{_parse(i){const{status:g,ctx:f}=this._processInputParams(i);if(f.common.async){const handleAsync=async()=>{const i=await this._def.in._parseAsync({data:f.data,path:f.path,parent:f});if(i.status==="aborted")return parseUtil_INVALID;if(i.status==="dirty"){g.dirty();return DIRTY(i.value)}else{return this._def.out._parseAsync({data:i.value,path:f.path,parent:f})}};return handleAsync()}else{const i=this._def.in._parseSync({data:f.data,path:f.path,parent:f});if(i.status==="aborted")return parseUtil_INVALID;if(i.status==="dirty"){g.dirty();return{status:"dirty",value:i.value}}else{return this._def.out._parseSync({data:i.value,path:f.path,parent:f})}}}static create(i,g){return new ZodPipeline({in:i,out:g,typeName:ZodFirstPartyTypeKind.ZodPipeline})}}class ZodReadonly extends ZodType{_parse(i){const g=this._def.innerType._parse(i);const freeze=i=>{if(isValid(i)){i.value=Object.freeze(i.value)}return i};return isAsync(g)?g.then((i=>freeze(i))):freeze(g)}unwrap(){return this._def.innerType}}ZodReadonly.create=(i,g)=>new ZodReadonly({innerType:i,typeName:ZodFirstPartyTypeKind.ZodReadonly,...processCreateParams(g)});function cleanParams(i,g){const f=typeof i==="function"?i(g):typeof i==="string"?{message:i}:i;const E=typeof f==="string"?{message:f}:f;return E}function custom(i,g={},f){if(i)return ZodAny.create().superRefine(((E,p)=>{const y=i(E);if(y instanceof Promise){return y.then((i=>{if(!i){const i=cleanParams(g,E);const y=i.fatal??f??true;p.addIssue({code:"custom",...i,fatal:y})}}))}if(!y){const i=cleanParams(g,E);const y=i.fatal??f??true;p.addIssue({code:"custom",...i,fatal:y})}return}));return ZodAny.create()}const late={object:ZodObject.lazycreate};var ZodFirstPartyTypeKind;(function(i){i["ZodString"]="ZodString";i["ZodNumber"]="ZodNumber";i["ZodNaN"]="ZodNaN";i["ZodBigInt"]="ZodBigInt";i["ZodBoolean"]="ZodBoolean";i["ZodDate"]="ZodDate";i["ZodSymbol"]="ZodSymbol";i["ZodUndefined"]="ZodUndefined";i["ZodNull"]="ZodNull";i["ZodAny"]="ZodAny";i["ZodUnknown"]="ZodUnknown";i["ZodNever"]="ZodNever";i["ZodVoid"]="ZodVoid";i["ZodArray"]="ZodArray";i["ZodObject"]="ZodObject";i["ZodUnion"]="ZodUnion";i["ZodDiscriminatedUnion"]="ZodDiscriminatedUnion";i["ZodIntersection"]="ZodIntersection";i["ZodTuple"]="ZodTuple";i["ZodRecord"]="ZodRecord";i["ZodMap"]="ZodMap";i["ZodSet"]="ZodSet";i["ZodFunction"]="ZodFunction";i["ZodLazy"]="ZodLazy";i["ZodLiteral"]="ZodLiteral";i["ZodEnum"]="ZodEnum";i["ZodEffects"]="ZodEffects";i["ZodNativeEnum"]="ZodNativeEnum";i["ZodOptional"]="ZodOptional";i["ZodNullable"]="ZodNullable";i["ZodDefault"]="ZodDefault";i["ZodCatch"]="ZodCatch";i["ZodPromise"]="ZodPromise";i["ZodBranded"]="ZodBranded";i["ZodPipeline"]="ZodPipeline";i["ZodReadonly"]="ZodReadonly"})(ZodFirstPartyTypeKind||(ZodFirstPartyTypeKind={}));class Class{constructor(...i){}}const instanceOfType=(i,g={message:`Input not instance of ${i.name}`})=>custom((g=>g instanceof i),g);const stringType=ZodString.create;const numberType=ZodNumber.create;const nanType=ZodNaN.create;const bigIntType=ZodBigInt.create;const booleanType=ZodBoolean.create;const dateType=ZodDate.create;const symbolType=ZodSymbol.create;const undefinedType=ZodUndefined.create;const nullType=ZodNull.create;const anyType=ZodAny.create;const unknownType=ZodUnknown.create;const neverType=ZodNever.create;const voidType=ZodVoid.create;const arrayType=ZodArray.create;const objectType=ZodObject.create;const strictObjectType=ZodObject.strictCreate;const unionType=ZodUnion.create;const discriminatedUnionType=ZodDiscriminatedUnion.create;const intersectionType=ZodIntersection.create;const tupleType=ZodTuple.create;const recordType=ZodRecord.create;const mapType=ZodMap.create;const setType=ZodSet.create;const functionType=ZodFunction.create;const lazyType=ZodLazy.create;const literalType=ZodLiteral.create;const enumType=ZodEnum.create;const nativeEnumType=ZodNativeEnum.create;const promiseType=ZodPromise.create;const effectsType=ZodEffects.create;const optionalType=ZodOptional.create;const nullableType=ZodNullable.create;const preprocessType=ZodEffects.createWithPreprocess;const pipelineType=ZodPipeline.create;const ostring=()=>stringType().optional();const onumber=()=>numberType().optional();const oboolean=()=>booleanType().optional();const coerce={string:i=>ZodString.create({...i,coerce:true}),number:i=>ZodNumber.create({...i,coerce:true}),boolean:i=>ZodBoolean.create({...i,coerce:true}),bigint:i=>ZodBigInt.create({...i,coerce:true}),date:i=>ZodDate.create({...i,coerce:true})};const NEVER=null&&INVALID;const DEFAULT_VAULT_ROOT=".documentation/knowledge-base/";const DEFAULT_PLAYBOOK_GLOBS=[".documentation/**/*.md"];const DEFAULT_AUDIT_WINDOW_DAYS=90;const KEBAB_SLUG_RE=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;const DOMAIN_CATEGORY_VALUES=["core","development","features","advanced"];const customDomainSchema=objectType({id:stringType().regex(KEBAB_SLUG_RE,"domain id must be kebab-case"),name:stringType().min(1),description:stringType().min(1),keywords:arrayType(stringType().min(1)).min(1,"at least one keyword is required"),loadPriority:numberType().int().min(1).max(10),category:enumType(DOMAIN_CATEGORY_VALUES)});const lenientDomainsArray=preprocessType((i=>{if(!Array.isArray(i))return[];return i.filter((i=>customDomainSchema.safeParse(i).success))}),arrayType(customDomainSchema)).default([]);const vaultConfigSchema=objectType({root:stringType().default(DEFAULT_VAULT_ROOT),playbook_paths:arrayType(stringType()).default(DEFAULT_PLAYBOOK_GLOBS),audit_window_days:numberType().int().positive().default(DEFAULT_AUDIT_WINDOW_DAYS)}).default({});const DEFAULT_ARCHIVE_CANDIDATE_DAYS=365;const archiveConfigSchema=objectType({honor_status_deprecated:booleanType().default(true),candidate_after_days:numberType().int().positive().default(DEFAULT_ARCHIVE_CANDIDATE_DAYS),require_orphaned:booleanType().default(true),auto:booleanType().default(false)}).default({});const pluginConfigSchema=objectType({vault:vaultConfigSchema,domains:lenientDomainsArray,archive:archiveConfigSchema}).passthrough();const CONFIG_FILENAME=".claude/hit-em-with-the-docs.json";async function loadPluginConfig(i){const g=i??process.cwd();const f=(0,external_path_.resolve)(g,CONFIG_FILENAME);let E;try{const i=await(0,promises_namespaceObject.readFile)(f,"utf-8");E=JSON.parse(i)}catch{E={}}const p=pluginConfigSchema.safeParse(E);if(p.success){return p.data}return pluginConfigSchema.parse({})}function loadPluginConfigSync(i){const g=i??process.cwd();const f=(0,external_path_.resolve)(g,CONFIG_FILENAME);let E;try{const i=(0,external_fs_.readFileSync)(f,"utf-8");E=JSON.parse(i)}catch{E={}}const p=pluginConfigSchema.safeParse(E);if(p.success){return p.data}return pluginConfigSchema.parse({})}async function readRawConfig(i){const g=i??process.cwd();const f=resolve(g,CONFIG_FILENAME);try{const i=await readFile(f,"utf-8");const g=JSON.parse(i);return g&&typeof g==="object"&&!Array.isArray(g)?g:{}}catch{return{}}}async function writeRawConfig(i,g){const f=resolve(i,CONFIG_FILENAME);await mkdir(dirname(f),{recursive:true});await writeFile(f,JSON.stringify(g,null,2)+"\n","utf-8");return f}function configFilePath(i){return resolve(i,CONFIG_FILENAME)}function resolveVaultRoot(i,g){return(0,external_path_.resolve)(i,g.vault.root)}function resolvePlaybookGlobs(i,g){return g.vault.playbook_paths.map((g=>(0,external_path_.join)(i,g)))}const DOMAINS=["agents","api","architecture","backups","database","devops","features","plans","procedures","quickstart","security","standards","testing","troubleshooting","workflows"];const DOMAIN_DEFINITIONS={security:{id:"security",name:"Security",description:"Security, auth, Vault, Keycloak, RLS",keywords:["security","auth","authentication","authorization","oauth","jwt","keycloak","vault","secrets","rls","row-level-security","rbac","permissions","access-control","encryption","ssl","tls","certificate"],loadPriority:9,category:"core"},devops:{id:"devops",name:"DevOps",description:"Deployment, CI/CD, Docker, environments, infrastructure",keywords:["devops","deployment","deploy","ci","cd","ci/cd","pipeline","docker","container","kubernetes","k8s","infrastructure","terraform","ansible","aws","gcp","azure","cloud","environment","production","staging","development","nginx","load-balancer","monitoring"],loadPriority:8,category:"core"},database:{id:"database",name:"Database",description:"Schema, migrations, RLS, queries, procedures",keywords:["database","db","postgres","postgresql","mysql","sql","schema","migration","migrations","alembic","query","queries","table","index","indexes","rls","procedure","function","trigger","transaction","orm","sqlalchemy","prisma"],loadPriority:8,category:"core"},api:{id:"api",name:"API",description:"API endpoints, routes, specifications, contracts",keywords:["api","endpoint","endpoints","route","routes","rest","restful","graphql","grpc","openapi","swagger","specification","contract","request","response","http","fastapi","express","flask","django"],loadPriority:8,category:"core"},standards:{id:"standards",name:"Standards",description:"Coding standards (backend, frontend, database, devops, security)",keywords:["standard","standards","convention","conventions","pattern","patterns","best-practice","best-practices","guideline","guidelines","style","style-guide","coding","naming","formatting","linting","rules"],loadPriority:10,category:"development"},testing:{id:"testing",name:"Testing",description:"Test strategies, fixtures, patterns, integration/e2e",keywords:["test","testing","tests","unit","unit-test","integration","integration-test","e2e","end-to-end","fixture","fixtures","mock","mocking","stub","pytest","jest","vitest","playwright","cypress","coverage","tdd","bdd"],loadPriority:7,category:"development"},architecture:{id:"architecture",name:"Architecture",description:"System design, AI coach, project registry, patterns",keywords:["architecture","design","system","system-design","pattern","patterns","microservices","monolith","serverless","event-driven","cqrs","ddd","domain-driven","clean-architecture","hexagonal","decision","adr","registry","diagram"],loadPriority:7,category:"development"},features:{id:"features",name:"Features",description:"Feature implementation guides, admin docs",keywords:["feature","features","implementation","guide","how-to","tutorial","admin","administration","dashboard","ui","component","module","functionality","capability"],loadPriority:6,category:"features"},quickstart:{id:"quickstart",name:"Quickstart",description:"Setup guides, dev workflow, onboarding",keywords:["quickstart","quick-start","getting-started","setup","install","installation","onboarding","developer","dev","workflow","start","begin","intro","introduction","new-developer"],loadPriority:9,category:"features"},procedures:{id:"procedures",name:"Procedures",description:"Step-by-step operational procedures (SOP)",keywords:["procedure","procedures","sop","standard-operating-procedure","step","steps","operational","operation","operations","runbook","playbook","checklist","process","manual"],loadPriority:6,category:"features"},workflows:{id:"workflows",name:"Workflows",description:"Process documentation, multi-step operations",keywords:["workflow","workflows","process","processes","flow","flowchart","sequence","pipeline","automation","automated","multi-step","orchestration","state-machine"],loadPriority:5,category:"features"},agents:{id:"agents",name:"Agents",description:"Expert agent documentation, specialty matrix",keywords:["agent","agents","ai","assistant","expert","specialist","llm","langchain","rag","retrieval","embedding","vector","prompt","orchestration","chain","tool"],loadPriority:5,category:"advanced"},backups:{id:"backups",name:"Backups",description:"Backup/restore guides, disaster recovery",keywords:["backup","backups","restore","recovery","disaster","disaster-recovery","dr","snapshot","archive","retention","replication","failover"],loadPriority:4,category:"advanced"},troubleshooting:{id:"troubleshooting",name:"Troubleshooting",description:"Debug guides, common issues, solutions",keywords:["troubleshooting","troubleshoot","debug","debugging","issue","issues","problem","problems","error","errors","fix","solution","solutions","resolve","diagnose","diagnosis","log","logs","faq"],loadPriority:6,category:"advanced"},plans:{id:"plans",name:"Plans",description:"Planning documents, roadmaps, proposals",keywords:["plan","plans","planning","roadmap","proposal","proposals","rfc","design-doc","specification","spec","milestone","timeline","schedule","project","initiative"],loadPriority:3,category:"advanced"}};function isBuiltinDomain(i){return DOMAINS.includes(i)}let cached=null;function buildRegistry(i){const g=loadPluginConfigSync(i);const f=new Map;const E=[];for(const i of DOMAINS){f.set(i,DOMAIN_DEFINITIONS[i]);E.push(i)}for(const i of g.domains??[]){if(f.has(i.id)){logger.warn(`Custom domain "${i.id}" collides with a built-in domain; ignoring the config entry.`);continue}f.set(i.id,{id:i.id,name:i.name,description:i.description,keywords:i.keywords,loadPriority:i.loadPriority,category:i.category});E.push(i.id)}return{ids:E,definitions:f}}function getRegistry(i){if(!cached){cached=buildRegistry(i)}return cached}function resetRegistry(){cached=null}function registry_getAllDomains(){return[...getRegistry().ids]}function registry_getDomainDefinition(i){const g=getRegistry().definitions.get(i);if(!g){throw new Error(`Unknown domain: ${i}`)}return g}function isValidDomain(i){return getRegistry().definitions.has(i)}function getDomainsByCategory(i){const g=getRegistry();return g.ids.filter((f=>g.definitions.get(f).category===i))}function getDomainsByPriority(){const i=getRegistry();return[...i.ids].sort(((g,f)=>i.definitions.get(f).loadPriority-i.definitions.get(g).loadPriority))}function getAllKeywords(){const i=getRegistry();const g=new Map;for(const f of i.ids){const E=i.definitions.get(f);for(const i of E.keywords){const E=g.get(i)??[];E.push(f);g.set(i,E)}}return g}function detectDomain(i,g,f=".documentation"){const E=detectDomainFromPath(i,f);if(E.domain&&E.confidence>=.9){return E}if(g){const i=detectDomainFromContent(g);if(E.domain){if(i.confidence>E.confidence){i.alternativeDomains.unshift({domain:E.domain,confidence:E.confidence});return i}return E}return i}return E}function detectDomainFromPath(i,g=".documentation"){const f={domain:null,confidence:0,method:"path",alternativeDomains:[]};const E=i.replace(/\\/g,"/");const p=g.replace(/\\/g,"/");let y;try{y=(0,external_path_.relative)(p,E).replace(/\\/g,"/")}catch{y=E}const b=y.split("/");for(let i=0;i<b.length;i++){const g=b[i];if(g&&isValidDomain(g)){f.domain=g;f.confidence=i===0?1:.9-i*.1;break}}if(!f.domain){const g=(0,external_path_.basename)(i,".md");for(const i of registry_getAllDomains()){if(g.includes(i)){f.domain=i;f.confidence=.6;break}}}return f}function detectDomainFromContent(i){const g={domain:null,confidence:0,method:"content",alternativeDomains:[]};const f=i.toLowerCase();const E=getAllKeywords();const p=new Map;for(const[i,g]of E){const E=new RegExp(`\\b${escapeRegExp(i)}\\b`,"gi");const y=f.match(E);if(y){const i=y.length;for(const f of g){const g=p.get(f)??0;p.set(f,g+i)}}}const y=[...p.entries()].filter((([,i])=>i>0)).sort(((i,g)=>g[1]-i[1]));if(y.length>0){const i=y[0][1];const f=y[0][0];const E=y[1]?.[1]??0;const p=i-E;const b=Math.min(i/20,1);const S=Math.min(p/10,.3);g.domain=f;g.confidence=Math.min(.5+b*.3+S,.95);g.method="keywords";for(let f=1;f<Math.min(y.length,4);f++){const[E,p]=y[f];g.alternativeDomains.push({domain:E,confidence:p/i*g.confidence*.8})}}return g}function suggestDomainsForFile(i){const g=basename(i,".md").toLowerCase();const f=[];for(const i of getAllDomains()){const E=getDomainDefinition(i);for(const p of E.keywords){if(g.includes(p.replace(/-/g,""))){if(!f.includes(i)){f.push(i)}break}}}for(const i of getAllDomains()){if(g.includes(i)&&!f.includes(i)){f.unshift(i)}}return f}function validateDomainPlacement(i,g=".documentation"){const f=detectDomainFromPath(i,g);return{isCorrect:f.confidence>=.8,currentDomain:f.domain,suggestedDomain:f.domain}}function escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const TIERS=["guide","standard","example","reference","admin","plan","fact","incident-narrative","incident-facts"];const LIFECYCLE_TRACKED_TIERS=["plan","fact","incident-narrative","incident-facts"];function isLifecycleTrackedTier(i){return typeof i==="string"&&LIFECYCLE_TRACKED_TIERS.includes(i)}const TIER_DEFINITIONS={guide:{id:"guide",name:"Guide",description:"Step-by-step how-to guides",sizeRange:{min:15,max:30},indicators:["how to","step by step","tutorial","guide","walkthrough","getting started","learn","implement","build","create"],headingPatterns:[/^#+\s*(prerequisites?|requirements?)/i,/^#+\s*(step\s*\d+|first|next|then|finally)/i,/^#+\s*(overview|introduction|getting started)/i,/^#+\s*(example|demo|try it)/i]},standard:{id:"standard",name:"Standard",description:"Coding standards and conventions",sizeRange:{min:5,max:15},indicators:["standard","convention","rule","must","should","must not","should not","required","recommended","best practice","guideline"],headingPatterns:[/^#+\s*(rules?|guidelines?|conventions?)/i,/^#+\s*(do|don'?t|avoid|prefer)/i,/^#+\s*(naming|formatting|style)/i,/^#+\s*(required|recommended|optional)/i]},example:{id:"example",name:"Example",description:"Code examples and templates",sizeRange:{min:3,max:10},indicators:["example","sample","template","snippet","code","demo","showcase","pattern example","usage example"],headingPatterns:[/^#+\s*(example|sample|template)/i,/^#+\s*(code|snippet|usage)/i,/^#+\s*(input|output|result)/i]},reference:{id:"reference",name:"Reference",description:"Comprehensive references",sizeRange:{min:30,max:100},indicators:["reference","specification","api","complete","comprehensive","all","full list","documentation","schema","interface"],headingPatterns:[/^#+\s*(api|schema|interface|type)/i,/^#+\s*(parameters?|arguments?|options?)/i,/^#+\s*(methods?|functions?|endpoints?)/i,/^#+\s*(properties|fields|attributes)/i]},admin:{id:"admin",name:"Admin",description:"Administrative/operational docs",sizeRange:{min:10,max:20},indicators:["admin","administrative","operational","maintenance","ops","manage","configure","setup","deployment","monitoring"],headingPatterns:[/^#+\s*(configuration|setup|installation)/i,/^#+\s*(maintenance|monitoring|logging)/i,/^#+\s*(backup|restore|recovery)/i,/^#+\s*(troubleshooting|debugging)/i]},plan:{id:"plan",name:"Plan",description:"Phase/task/atom planning artifacts (added in 2.2.0 for persistent-planning lg-mode interop). Plans typically carry tier: plan in frontmatter; auto-classification is a fallback.",sizeRange:{min:1,max:200},indicators:["phase","task","atom","milestone","deliverable","plan","roadmap","blocker","dependency","next concrete action"],headingPatterns:[/^#+\s*(goal|scope|status)/i,/^#+\s*(phases?|tasks?|atoms?)/i,/^#+\s*(decisions? made|errors? encountered)/i,/^#+\s*(implementation notes|key questions)/i]},fact:{id:"fact",name:"Fact",description:"Atomic, single-claim, citable unit of knowledge (added in 2.3.0). Facts use last_verified + confidence instead of semver versioning. Facts typically carry tier: fact in frontmatter; auto-classification is a fallback.",sizeRange:{min:1,max:5},indicators:["claim","confidence","verify","last verified","provenance","citation","fact","hypothesis","invalidated by","consequence"],headingPatterns:[/^#+\s*(claim|the claim)/i,/^#+\s*(how to verify|verification)/i,/^#+\s*(consequences?|implications?)/i,/^#+\s*(cited by|provenance)/i]},"incident-narrative":{id:"incident-narrative",name:"Incident narrative",description:"Immutable postmortem story (added in 2.3.0). Lives at <vault-root>/incidents/<date-slug>/narrative.md. Date-stamped; uses lifecycle status (open/partial/resolved/planned) not semver.",sizeRange:{min:2,max:50},indicators:["postmortem","incident","outage","severity","resolution","timeline","root cause","remediation","symptoms","on-call"],headingPatterns:[/^#+\s*(timeline|sequence of events)/i,/^#+\s*(root cause|cause)/i,/^#+\s*(impact|severity)/i,/^#+\s*(remediation|resolution|fix)/i,/^#+\s*(lessons learned|action items|follow[-\s]ups?)/i]},"incident-facts":{id:"incident-facts",name:"Incident facts bridge",description:"Bridge document linking an incident to the facts it produced, strengthened, or weakened (added in 2.3.0). Lives at <vault-root>/incidents/<date-slug>/facts.md.",sizeRange:{min:1,max:10},indicators:["produced","strengthened","weakened","facts from","incident facts","bridges to","derived from"],headingPatterns:[/^#+\s*(produced|new facts)/i,/^#+\s*(strengthened)/i,/^#+\s*(weakened|invalidated)/i]}};function classifyTier(i){const g={guide:0,standard:0,example:0,reference:0,admin:0,plan:0,fact:0,"incident-narrative":0,"incident-facts":0};const f=[];const E=i.toLowerCase();const p=Buffer.byteLength(i,"utf8")/1024;for(const y of TIERS){const b=TIER_DEFINITIONS[y];for(const i of b.indicators){const p=new RegExp(`\\b${classifier_escapeRegExp(i)}\\b`,"gi");const b=E.match(p);if(b){g[y]+=b.length*2;if(b.length>=3){f.push(`Found indicator "${i}" ${b.length} times (${y})`)}}}for(const E of b.headingPatterns){const p=i.match(new RegExp(E.source,"gim"));if(p){g[y]+=p.length*5;f.push(`Matched heading pattern for ${y}: ${p.length} matches`)}}if(p>=b.sizeRange.min&&p<=b.sizeRange.max){g[y]+=10;f.push(`Size ${p.toFixed(1)}KB matches ${y} range`)}}const y=(i.match(/```/g)??[]).length/2;const b=i.split("\n").length;const S=y/(b/50);if(S>.5){g.example+=15;f.push("High code block ratio suggests example")}const J=(i.match(/^[\s]*[-*\d.]+\s/gm)??[]).length;const Z=J/b;if(Z>.3){g.guide+=10;g.standard+=8;f.push("High list ratio suggests guide or standard")}const $=(i.match(/^\|.*\|$/gm)??[]).length;if($>5){g.reference+=15;f.push("Multiple tables suggest reference")}const z=(i.match(/>\s*\*\*(warning|note|caution|important)/gi)??[]).length;if(z>2){g.admin+=10;f.push("Warning boxes suggest admin documentation")}let ee=0;let re="guide";for(const i of TIERS){if(g[i]>ee){ee=g[i];re=i}}const Pe=Object.values(g).sort(((i,g)=>g-i));const $t=Pe[0]??0;const tn=Pe[1]??0;const sn=$t-tn;let nn=.5;if($t>0){nn=Math.min(.5+sn/$t*.3+$t/100*.2,.95)}return{tier:re,confidence:nn,scores:g,reasoning:f}}function getTierDefinition(i){return TIER_DEFINITIONS[i]}function isValidTier(i){return TIERS.includes(i)}function getTierDisplayName(i){return TIER_DEFINITIONS[i].name}function classifier_escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function markdown_extractLinks(i){const g=[];const f=i.split("\n");const E=/\[([^\]]*)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)/g;f.forEach(((i,f)=>{let p;while((p=E.exec(i))!==null){const[i,E,y,b]=p;const S=y??"";const J=!S.startsWith("http://")&&!S.startsWith("https://")&&!S.startsWith("mailto:")&&!S.startsWith("#");const Z={text:E??"",url:S,isInternal:J,lineNumber:f+1,startIndex:p.index,endIndex:p.index+(i?.length??0)};if(b){Z.title=b}g.push(Z)}E.lastIndex=0}));return g}function extractInternalLinks(i){return markdown_extractLinks(i).filter((i=>i.isInternal))}function extractHeadings(i){const g=[];const f=i.split("\n");const E=/^(#{1,6})\s+(.+)$/;f.forEach(((i,f)=>{const p=i.match(E);if(p){g.push({level:p[1]?.length??1,text:(p[2]??"").trim(),lineNumber:f+1})}}));return g}function extractTitle(i){const g=extractHeadings(i);const f=g.find((i=>i.level===1));return f?.text??null}function countWords(i){let g=i.replace(/^---[\s\S]*?---\n*/m,"");g=g.replace(/```[\s\S]*?```/g,"");g=g.replace(/`[^`]+`/g,"");g=g.replace(/[#*_~\[\]()]/g," ");const f=g.split(/\s+/).filter((i=>i.length>0));return f.length}function calculateReadTime(i,g=200){const f=countWords(i);return Math.ceil(f/g)}function formatReadTime(i){const g=calculateReadTime(i);return`${g} minute${g===1?"":"s"}`}function createLink(i,g,f){if(f){return`[${i}](${g} "${f}")`}return`[${i}](${g})`}function createHeading(i,g=1){const f="#".repeat(Math.min(Math.max(g,1),6));return`${f} ${i}`}function createTable(i,g){const f=`| ${i.join(" | ")} |`;const E=`| ${i.map((()=>"---")).join(" | ")} |`;const p=g.map((i=>`| ${i.join(" | ")} |`));return[f,E,...p].join("\n")}function createList(i,g=false){return i.map(((i,f)=>g?`${f+1}. ${i}`:`- ${i}`)).join("\n")}function createCheckboxList(i){return i.map((i=>`- [${i.checked?"x":" "}] ${i.text}`)).join("\n")}function createCodeBlock(i,g=""){return`\`\`\`${g}\n${i}\n\`\`\``}function createInlineCode(i){return`\`${i}\``}function createBlockquote(i){return i.split("\n").map((i=>`> ${i}`)).join("\n")}function slugify(i){return i.toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}function extractExcerpt(i,g=200){let f=i.replace(/^---[\s\S]*?---\n*/m,"");f=f.replace(/^#+\s+.*$/gm,"");const E=f.split(/\n\n+/).filter((i=>i.trim().length>0));const p=E[0]??"";if(p.length<=g){return p.trim()}return p.slice(0,g).trim()+"..."}function generateMetadata(i){const{filePath:g,content:f,docsRoot:E=".documentation",existingMetadata:p={}}=i;const y={_generated:{fields:[],confidence:{}}};if(!p.title){const i=extractTitle(f);const E=formatTitleFromFileName((0,external_path_.basename)(g,".md"));y.title=i??E;y._generated.fields.push("title");y._generated.confidence["title"]=i?.9:.7}if(!p.tier){const i=classifyTier(f);y.tier=i.tier;y._generated.fields.push("tier");y._generated.confidence["tier"]=i.confidence}if(!p.domains||p.domains.length===0){const i=detectDomain(g,f,E);if(i.domain){y.domains=[i.domain];for(const g of i.alternativeDomains){if(g.confidence>.5&&y.domains.length<3){y.domains.push(g.domain)}}y._generated.fields.push("domains");y._generated.confidence["domains"]=i.confidence}}if(!p.audience||p.audience.length===0){y.audience=detectAudience(f);y._generated.fields.push("audience");y._generated.confidence["audience"]=.7}if(!p.tags||p.tags.length===0){y.tags=extractTags(f);y._generated.fields.push("tags");y._generated.confidence["tags"]=.6}if(!p.status){y.status="draft";y._generated.fields.push("status");y._generated.confidence["status"]=1}if(!p.last_updated){y.last_updated=formatDate(new Date);y._generated.fields.push("last_updated");y._generated.confidence["last_updated"]=1}if(!p.version){y.version="1.0.0";y._generated.fields.push("version");y._generated.confidence["version"]=1}y.word_count=countWords(f);y._generated.fields.push("word_count");y._generated.confidence["word_count"]=1;y.estimated_read_time=formatReadTime(f);y._generated.fields.push("estimated_read_time");y._generated.confidence["estimated_read_time"]=1;y.last_validated=formatDate(new Date);y._generated.fields.push("last_validated");y._generated.confidence["last_validated"]=1;if(!p.purpose){const i=generatePurpose(f,y.title??"");if(i){y.purpose=i;y._generated.fields.push("purpose");y._generated.confidence["purpose"]=.6}}return y}function mergeMetadata(i,g){const{_generated:f,...E}=g;return{title:i.title??E.title??"Untitled",tier:i.tier??E.tier??"guide",domains:i.domains??E.domains??["features"],audience:i.audience??E.audience??["all"],tags:i.tags??E.tags??[],status:i.status??E.status??"draft",last_updated:i.last_updated??E.last_updated??formatDate(new Date),version:i.version??E.version??"1.0.0",purpose:i.purpose??E.purpose,related_docs:i.related_docs??E.related_docs,load_priority:i.load_priority??E.load_priority,author:i.author??E.author,maintainer:i.maintainer??E.maintainer,review_frequency:i.review_frequency??E.review_frequency,implementation_status:i.implementation_status??E.implementation_status,tested:i.tested??E.tested,production_ready:i.production_ready??E.production_ready,estimated_read_time:E.estimated_read_time,word_count:E.word_count,last_validated:E.last_validated,backlinks:i.backlinks??[]}}function formatDate(i){return i.toISOString().split("T")[0]??""}function formatTitleFromFileName(i){return i.replace(/-/g," ").replace(/_/g," ").split(" ").map((i=>i.charAt(0).toUpperCase()+i.slice(1))).join(" ")}function detectAudience(i){const g=i.toLowerCase();const f=[];if(g.includes("developer")||g.includes("coding")||g.includes("api")){f.push("developers")}if(g.includes("devops")||g.includes("deploy")||g.includes("infrastructure")){f.push("devops")}if(g.includes("admin")||g.includes("configuration")||g.includes("management")){f.push("admin")}return f.length>0?f:["all"]}function extractTags(i){const g=i.toLowerCase();const f=[];const E=["api","rest","graphql","database","postgres","mysql","redis","docker","kubernetes","aws","gcp","azure","ci/cd","testing","security","authentication","authorization","oauth","jwt","react","vue","angular","node","python","typescript","javascript","fastapi","express","django","flask","nextjs","migration","deployment","monitoring","logging","caching","performance"];for(const i of E){const E=new RegExp(`\\b${i}\\b`,"gi");const p=g.match(E);if(p&&p.length>=2){f.push(i)}}return f.slice(0,10)}function generatePurpose(i,g){const f=i.replace(/^---[\s\S]*?---\n*/m,"").replace(/^#+\s+.*$/gm,"").split(/\n\n+/).filter((i=>i.trim().length>0));const E=f[0];if(E&&E.length>20&&E.length<200){const i=E.replace(/\n/g," ").replace(/\s+/g," ").trim();if(!i.startsWith("```")&&!i.startsWith("|")&&!i.startsWith("-")){return i}}if(g){return`Documentation for ${g.toLowerCase()}`}return undefined}function generateRootIndex(i){const g=formatDate(new Date);let f=`---\ntitle: Documentation Index\ntier: reference\ndomains: [root]\nstatus: active\nlast_updated: '${g}'\nversion: '1.0.0'\npurpose: Navigation hub for all documentation\n---\n\n# Documentation Index\n\n> Complete listing of all documentation organized by domain.\n\n## Overview\n\n| Domain | Documents | Description |\n|--------|-----------|-------------|\n`;for(const g of registry_getAllDomains()){const E=registry_getDomainDefinition(g);const p=i?.[g]?.length??0;f+=`| [${E.name}](#${g}) | ${p} | ${E.description} |\n`}f+=`\n---\n\n`;for(const g of registry_getAllDomains()){const E=registry_getDomainDefinition(g);const p=i?.[g]??[];f+=`## ${E.name}\n\n`;f+=`> ${E.description}\n\n`;f+=`**Path:** \`${g}/\`\n\n`;if(p.length===0){f+=`*No documents yet.*\n\n`}else{f+=`| Document | Tier | Status | Updated |\n`;f+=`|----------|------|--------|----------|\n`;for(const i of p){f+=`| [${i.title}](${i.path}) | ${i.tier} | ${i.status} | ${i.lastUpdated} |\n`}f+=`\n`}f+=`---\n\n`}f+=`## Maintenance\n\n`;f+=`- **Last generated:** ${g}\n`;f+=`- **Run maintenance:** \`npx hit-em-with-the-docs maintain\`\n`;f+=`- **Regenerate index:** \`npx hit-em-with-the-docs index\`\n`;return f}function generateDomainIndexContent(i,g=[]){const f=registry_getDomainDefinition(i);const E=formatDate(new Date);let p=`---\ntitle: ${f.name} Documentation Index\ntier: reference\ndomains: [${i}]\nstatus: active\nlast_updated: '${E}'\nversion: '1.0.0'\npurpose: Complete listing of ${i} documentation\n---\n\n# ${f.name} Documentation\n\n> ${f.description}\n\n## Overview\n\n- **Total Documents:** ${g.length}\n- **Domain:** \`${i}/\`\n- **Category:** ${f.category}\n- **Load Priority:** ${f.loadPriority}/10\n\n## Documents\n\n`;if(g.length===0){p+=`*No documents in this domain yet.*\n\n`;p+=`To add a document:\n\n`;p+=`1. Create a markdown file in this directory\n`;p+=`2. Add YAML frontmatter with required metadata\n`;p+=`3. Run \`npx hit-em-with-the-docs integrate <file>\`\n`}else{const i=groupByTier(g);for(const[g,f]of Object.entries(i)){if(f.length===0)continue;p+=`### ${capitalize(g)}s\n\n`;p+=`| Document | Status | Updated | Words |\n`;p+=`|----------|--------|---------|-------|\n`;for(const i of f){const g=i.wordCount?i.wordCount.toLocaleString():"-";p+=`| [${i.title}](${i.path}) | ${i.status} | ${i.lastUpdated} | ${g} |\n`}p+=`\n`}}p+=`## Keywords\n\n`;p+=`This domain covers: ${f.keywords.slice(0,10).join(", ")}\n\n`;const y=findRelatedDomains(i);if(y.length>0){p+=`## Related Domains\n\n`;for(const i of y){const g=registry_getDomainDefinition(i);p+=`- [${g.name}](../${i}/) - ${g.description}\n`}p+=`\n`}p+=`---\n\n`;p+=`*Last updated: ${E}*\n`;return p}function groupByTier(i){const g={guide:[],standard:[],example:[],reference:[],admin:[]};for(const f of i){const i=f.tier.toLowerCase();if(i in g){g[i].push(f)}else{g["guide"].push(f)}}return g}function findRelatedDomains(i){const g=registry_getDomainDefinition(i);const f=[];for(const E of registry_getAllDomains()){if(E===i)continue;const p=registry_getDomainDefinition(E);let y=0;for(const i of g.keywords){if(p.keywords.includes(i)){y++}}if(g.category===p.category){y+=2}if(y>0){f.push({domain:E,score:y})}}return f.sort(((i,g)=>g.score-i.score)).slice(0,3).map((i=>i.domain))}function capitalize(i){return i.charAt(0).toUpperCase()+i.slice(1)}function generateRootRegistry(){const i=formatDate(new Date);let g=`---\ntitle: Documentation Registry\ntier: reference\ndomains: [root]\nstatus: active\nlast_updated: '${i}'\nversion: '1.0.0'\npurpose: Quick reference for all documentation domains\n---\n\n# Documentation Registry\n\n> Quick reference tables for fast navigation.\n\n## Domain Quick Reference\n\n| Domain | Category | Priority | Keywords |\n|--------|----------|----------|----------|\n`;for(const i of registry_getAllDomains()){const f=registry_getDomainDefinition(i);const E=f.keywords.slice(0,3).join(", ");g+=`| [${f.name}](${i}/) | ${f.category} | ${f.loadPriority}/10 | ${E} |\n`}g+=`\n## By Category\n\n`;const f=["core","development","features","advanced"];for(const i of f){const f=getDomainsByCategory(i);g+=`### ${registry_generator_capitalize(i)}\n\n`;for(const i of f){const f=registry_getDomainDefinition(i);g+=`- **[${f.name}](${i}/)** - ${f.description}\n`}g+=`\n`}g+=`## Common Tasks\n\n`;g+=`| Task | Start Here |\n`;g+=`|------|------------|\n`;g+=`| New developer setup | [quickstart/](quickstart/) |\n`;g+=`| Coding standards | [standards/](standards/) |\n`;g+=`| API development | [api/](api/) |\n`;g+=`| Security implementation | [security/](security/) |\n`;g+=`| Database changes | [database/](database/) |\n`;g+=`| Deployment | [devops/](devops/) |\n`;g+=`| Troubleshooting | [troubleshooting/](troubleshooting/) |\n`;g+=`\n---\n\n`;g+=`*Last updated: ${i}*\n`;return g}function generateDomainRegistryContent(i,g=[]){const f=registry_getDomainDefinition(i);const E=formatDate(new Date);let p=`---\ntitle: ${f.name} Registry\ntier: reference\ndomains: [${i}]\nstatus: active\nlast_updated: '${E}'\nversion: '1.0.0'\npurpose: Quick reference for ${i} documentation\n---\n\n# ${f.name} Registry\n\n> Quick reference for ${f.description.toLowerCase()}.\n\n## At a Glance\n\n| Metric | Value |\n|--------|-------|\n| Documents | ${g.length} |\n| Category | ${f.category} |\n| Load Priority | ${f.loadPriority}/10 |\n\n`;if(g.length>0){const i=g.filter((i=>i.status==="active"));const f=[...g].sort(((i,g)=>g.lastUpdated.localeCompare(i.lastUpdated))).slice(0,5);if(i.length>0){p+=`## Active Documents\n\n`;for(const g of i.slice(0,10)){p+=`- [${g.title}](${g.path})\n`}p+=`\n`}if(f.length>0){p+=`## Recently Updated\n\n`;for(const i of f){p+=`- [${i.title}](${i.path}) - ${i.lastUpdated}\n`}p+=`\n`}p+=`## By Status\n\n`;const E=groupByStatus(g);p+=`| Status | Count |\n`;p+=`|--------|-------|\n`;for(const[i,g]of Object.entries(E)){p+=`| ${i} | ${g.length} |\n`}p+=`\n`}else{p+=`## Documents\n\n`;p+=`*No documents in this domain yet.*\n\n`}p+=`## Keywords\n\n`;p+=`\`${f.keywords.join("` `")}\`\n\n`;p+=`## See Also\n\n`;p+=`- [Full Index](INDEX.md) - Complete document listing\n`;p+=`- [Root Index](../INDEX.md) - All domains\n`;p+=`\n---\n\n`;p+=`*Last updated: ${E}*\n`;return p}function groupByStatus(i){const g={active:[],draft:[],deprecated:[],archived:[]};for(const f of i){const i=f.status.toLowerCase();if(i in g){g[i].push(f)}}return g}function registry_generator_capitalize(i){return i.charAt(0).toUpperCase()+i.slice(1)}function generateDomainIndex(i,g){const f=formatDate(new Date);return`---\ntitle: ${g.name} Documentation Index\ntier: reference\ndomains:\n - ${i}\nstatus: active\nlast_updated: '${f}'\nversion: '1.0.0'\npurpose: Complete listing of ${i} documentation\n---\n\n# ${g.name} Documentation\n\n> ${g.description}\n\n## Overview\n\n- **Domain:** \`${i}/\`\n- **Category:** ${g.category}\n- **Load Priority:** ${g.loadPriority}/10\n\n## Documents\n\n*No documents in this domain yet.*\n\n### Adding Documents\n\n1. Create a markdown file in this directory\n2. Add YAML frontmatter with required metadata:\n\n\`\`\`yaml\n---\ntitle: "Your Document Title"\ntier: guide\ndomains:\n - ${i}\nstatus: draft\nlast_updated: '${f}'\nversion: '1.0.0'\n---\n\`\`\`\n\n3. Run \`npx hit-em-with-the-docs integrate <file>\` to register\n\n## Keywords\n\nThis domain covers topics related to:\n\n${g.keywords.map((i=>`- ${i}`)).join("\n")}\n\n## Related Resources\n\n- [Domain Registry](REGISTRY.md) - Quick reference\n- [Root Index](../INDEX.md) - All documentation\n- [Standards](../standards/) - Coding standards\n\n---\n\n*Last updated: ${f}*\n`}function generateDomainRegistry(i,g){const f=formatDate(new Date);return`---\ntitle: ${g.name} Registry\ntier: reference\ndomains:\n - ${i}\nstatus: active\nlast_updated: '${f}'\nversion: '1.0.0'\npurpose: Quick reference for ${i} documentation\n---\n\n# ${g.name} Registry\n\n> Quick reference for ${g.description.toLowerCase()}.\n\n## At a Glance\n\n| Metric | Value |\n|--------|-------|\n| Documents | 0 |\n| Category | ${g.category} |\n| Load Priority | ${g.loadPriority}/10 |\n\n## Quick Links\n\n*No documents yet. Add your first document to see it listed here.*\n\n## By Tier\n\n| Tier | Count |\n|------|-------|\n| Guide | 0 |\n| Standard | 0 |\n| Example | 0 |\n| Reference | 0 |\n| Admin | 0 |\n\n## Keywords\n\n\`${g.keywords.slice(0,8).join("` `")}\`\n\n## See Also\n\n- [Full Index](INDEX.md) - Complete document listing\n- [Root Index](../INDEX.md) - All domains\n- [Root Registry](../REGISTRY.md) - All quick references\n\n---\n\n*Last updated: ${f}*\n`}const external_node_url_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:url");const external_node_path_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:path");const external_node_fs_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs");var external_node_fs_namespaceObject_0=__nccwpck_require__.t(external_node_fs_namespaceObject,2);const external_node_fs_promises_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs/promises");var external_node_events_=__nccwpck_require__(8474);var external_node_stream_=__nccwpck_require__(7075);const external_node_string_decoder_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:string_decoder");var Gt=(i,g,f)=>{let E=i instanceof RegExp?ce(i,f):i,p=g instanceof RegExp?ce(g,f):g,y=E!==null&&p!=null&&ss(E,p,f);return y&&{start:y[0],end:y[1],pre:f.slice(0,y[0]),body:f.slice(y[0]+E.length,y[1]),post:f.slice(y[1]+p.length)}},ce=(i,g)=>{let f=g.match(i);return f?f[0]:null},ss=(i,g,f)=>{let E,p,y,b,S,J=f.indexOf(i),Z=f.indexOf(g,J+1),$=J;if(J>=0&&Z>0){if(i===g)return[J,Z];for(E=[],y=f.length;$>=0&&!S;){if($===J)E.push($),J=f.indexOf(i,$+1);else if(E.length===1){let i=E.pop();i!==void 0&&(S=[i,Z])}else p=E.pop(),p!==void 0&&p<y&&(y=p,b=Z),Z=f.indexOf(g,$+1);$=J<Z&&J>=0?J:Z}E.length&&b!==void 0&&(S=[y,b])}return S};var fe="\0SLASH"+Math.random()+"\0",ue="\0OPEN"+Math.random()+"\0",qt="\0CLOSE"+Math.random()+"\0",de="\0COMMA"+Math.random()+"\0",pe="\0PERIOD"+Math.random()+"\0",is=new RegExp(fe,"g"),rs=new RegExp(ue,"g"),ns=new RegExp(qt,"g"),os=new RegExp(de,"g"),hs=new RegExp(pe,"g"),as=/\\\\/g,ls=/\\{/g,cs=/\\}/g,fs=/\\,/g,us=/\\./g,ds=1e5;function Ht(i){return isNaN(i)?i.charCodeAt(0):parseInt(i,10)}function ps(i){return i.replace(as,fe).replace(ls,ue).replace(cs,qt).replace(fs,de).replace(us,pe)}function ms(i){return i.replace(is,"\\").replace(rs,"{").replace(ns,"}").replace(os,",").replace(hs,".")}function me(i){if(!i)return[""];let g=[],f=Gt("{","}",i);if(!f)return i.split(",");let{pre:E,body:p,post:y}=f,b=E.split(",");b[b.length-1]+="{"+p+"}";let S=me(y);return y.length&&(b[b.length-1]+=S.shift(),b.push.apply(b,S)),g.push.apply(g,b),g}function ge(i,g={}){if(!i)return[];let{max:f=ds}=g;return i.slice(0,2)==="{}"&&(i="\\{\\}"+i.slice(2)),ht(ps(i),f,!0).map(ms)}function gs(i){return"{"+i+"}"}function ws(i){return/^-?0\d/.test(i)}function ys(i,g){return i<=g}function bs(i,g){return i>=g}function ht(i,g,f){let E=[],p=Gt("{","}",i);if(!p)return[i];let y=p.pre,b=p.post.length?ht(p.post,g,!1):[""];if(/\$$/.test(p.pre))for(let i=0;i<b.length&&i<g;i++){let g=y+"{"+p.body+"}"+b[i];E.push(g)}else{let S=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(p.body),J=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(p.body),Z=S||J,$=p.body.indexOf(",")>=0;if(!Z&&!$)return p.post.match(/,(?!,).*\}/)?(i=p.pre+"{"+p.body+qt+p.post,ht(i,g,!0)):[i];let z;if(Z)z=p.body.split(/\.\./);else if(z=me(p.body),z.length===1&&z[0]!==void 0&&(z=ht(z[0],g,!1).map(gs),z.length===1))return b.map((i=>p.pre+z[0]+i));let ee;if(Z&&z[0]!==void 0&&z[1]!==void 0){let i=Ht(z[0]),g=Ht(z[1]),f=Math.max(z[0].length,z[1].length),E=z.length===3&&z[2]!==void 0?Math.abs(Ht(z[2])):1,p=ys;g<i&&(E*=-1,p=bs);let y=z.some(ws);ee=[];for(let b=i;p(b,g);b+=E){let i;if(J)i=String.fromCharCode(b),i==="\\"&&(i="");else if(i=String(b),y){let g=f-i.length;if(g>0){let f=new Array(g+1).join("0");b<0?i="-"+f+i.slice(1):i=f+i}}ee.push(i)}}else{ee=[];for(let i=0;i<z.length;i++)ee.push.apply(ee,ht(z[i],g,!1))}for(let i=0;i<ee.length;i++)for(let p=0;p<b.length&&E.length<g;p++){let g=y+ee[i]+b[p];(!f||Z||g)&&E.push(g)}}return E}var at=i=>{if(typeof i!="string")throw new TypeError("invalid pattern");if(i.length>65536)throw new TypeError("pattern is too long")};var Ss={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},lt=i=>i.replace(/[[\]\\-]/g,"\\$&"),Es=i=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),we=i=>i.join(""),ye=(i,g)=>{let f=g;if(i.charAt(f)!=="[")throw new Error("not in a brace expression");let E=[],p=[],y=f+1,b=!1,S=!1,J=!1,Z=!1,$=f,z="";e:for(;y<i.length;){let g=i.charAt(y);if((g==="!"||g==="^")&&y===f+1){Z=!0,y++;continue}if(g==="]"&&b&&!J){$=y+1;break}if(b=!0,g==="\\"&&!J){J=!0,y++;continue}if(g==="["&&!J){for(let[g,[b,J,Z]]of Object.entries(Ss))if(i.startsWith(g,y)){if(z)return["$.",!1,i.length-f,!0];y+=g.length,Z?p.push(b):E.push(b),S=S||J;continue e}}if(J=!1,z){g>z?E.push(lt(z)+"-"+lt(g)):g===z&&E.push(lt(g)),z="",y++;continue}if(i.startsWith("-]",y+1)){E.push(lt(g+"-")),y+=2;continue}if(i.startsWith("-",y+1)){z=g,y+=2;continue}E.push(lt(g)),y++}if($<y)return["",!1,0,!1];if(!E.length&&!p.length)return["$.",!1,i.length-f,!0];if(p.length===0&&E.length===1&&/^\\?.$/.test(E[0])&&!Z){let i=E[0].length===2?E[0].slice(-1):E[0];return[Es(i),!1,$-f,!1]}let ee="["+(Z?"^":"")+we(E)+"]",re="["+(Z?"":"^")+we(p)+"]";return[E.length&&p.length?"("+ee+"|"+re+")":E.length?ee:re,S,$-f,!0]};var W=(i,{windowsPathsNoEscape:g=!1,magicalBraces:f=!0}={})=>f?g?i.replace(/\[([^\/\\])\]/g,"$1"):i.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):g?i.replace(/\[([^\/\\{}])\]/g,"$1"):i.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1");var xs=new Set(["!","?","+","*","@"]),be=i=>xs.has(i),vs="(?!(?:^|/)\\.\\.?(?:$|/))",Ct="(?!\\.)",Cs=new Set(["[","."]),Ts=new Set(["..","."]),As=new Set("().*{}+?[]^$\\!"),ks=i=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Kt="[^/]",Se=Kt+"*?",Ee=Kt+"+?",Q=class n{type;#E;#p;#C=!1;#I=[];#Q;#B;#m;#y=!1;#w;#b;#k=!1;constructor(i,g,f={}){this.type=i,i&&(this.#p=!0),this.#Q=g,this.#E=this.#Q?this.#Q.#E:this,this.#w=this.#E===this?f:this.#E.#w,this.#m=this.#E===this?[]:this.#E.#m,i==="!"&&!this.#E.#y&&this.#m.push(this),this.#B=this.#Q?this.#Q.#I.length:0}get hasMagic(){if(this.#p!==void 0)return this.#p;for(let i of this.#I)if(typeof i!="string"&&(i.type||i.hasMagic))return this.#p=!0;return this.#p}toString(){return this.#b!==void 0?this.#b:this.type?this.#b=this.type+"("+this.#I.map((i=>String(i))).join("|")+")":this.#b=this.#I.map((i=>String(i))).join("")}#S(){if(this!==this.#E)throw new Error("should only call on root");if(this.#y)return this;this.toString(),this.#y=!0;let i;for(;i=this.#m.pop();){if(i.type!=="!")continue;let g=i,f=g.#Q;for(;f;){for(let E=g.#B+1;!f.type&&E<f.#I.length;E++)for(let g of i.#I){if(typeof g=="string")throw new Error("string part in extglob AST??");g.copyIn(f.#I[E])}g=f,f=g.#Q}}return this}push(...i){for(let g of i)if(g!==""){if(typeof g!="string"&&!(g instanceof n&&g.#Q===this))throw new Error("invalid part: "+g);this.#I.push(g)}}toJSON(){let i=this.type===null?this.#I.slice().map((i=>typeof i=="string"?i:i.toJSON())):[this.type,...this.#I.map((i=>i.toJSON()))];return this.isStart()&&!this.type&&i.unshift([]),this.isEnd()&&(this===this.#E||this.#E.#y&&this.#Q?.type==="!")&&i.push({}),i}isStart(){if(this.#E===this)return!0;if(!this.#Q?.isStart())return!1;if(this.#B===0)return!0;let i=this.#Q;for(let g=0;g<this.#B;g++){let f=i.#I[g];if(!(f instanceof n&&f.type==="!"))return!1}return!0}isEnd(){if(this.#E===this||this.#Q?.type==="!")return!0;if(!this.#Q?.isEnd())return!1;if(!this.type)return this.#Q?.isEnd();let i=this.#Q?this.#Q.#I.length:0;return this.#B===i-1}copyIn(i){typeof i=="string"?this.push(i):this.push(i.clone(this))}clone(i){let g=new n(this.type,i);for(let i of this.#I)g.copyIn(i);return g}static#R(i,g,f,E){let p=!1,y=!1,b=-1,S=!1;if(g.type===null){let J=f,Z="";for(;J<i.length;){let f=i.charAt(J++);if(p||f==="\\"){p=!p,Z+=f;continue}if(y){J===b+1?(f==="^"||f==="!")&&(S=!0):f==="]"&&!(J===b+2&&S)&&(y=!1),Z+=f;continue}else if(f==="["){y=!0,b=J,S=!1,Z+=f;continue}if(!E.noext&&be(f)&&i.charAt(J)==="("){g.push(Z),Z="";let p=new n(f,g);J=n.#R(i,p,J,E),g.push(p);continue}Z+=f}return g.push(Z),J}let J=f+1,Z=new n(null,g),$=[],z="";for(;J<i.length;){let f=i.charAt(J++);if(p||f==="\\"){p=!p,z+=f;continue}if(y){J===b+1?(f==="^"||f==="!")&&(S=!0):f==="]"&&!(J===b+2&&S)&&(y=!1),z+=f;continue}else if(f==="["){y=!0,b=J,S=!1,z+=f;continue}if(be(f)&&i.charAt(J)==="("){Z.push(z),z="";let g=new n(f,Z);Z.push(g),J=n.#R(i,g,J,E);continue}if(f==="|"){Z.push(z),z="",$.push(Z),Z=new n(null,g);continue}if(f===")")return z===""&&g.#I.length===0&&(g.#k=!0),Z.push(z),z="",g.push(...$,Z),J;z+=f}return g.type=null,g.#p=void 0,g.#I=[i.substring(f-1)],J}static fromGlob(i,g={}){let f=new n(null,void 0,g);return n.#R(i,f,0,g),f}toMMPattern(){if(this!==this.#E)return this.#E.toMMPattern();let i=this.toString(),[g,f,E,p]=this.toRegExpSource();if(!(E||this.#p||this.#w.nocase&&!this.#w.nocaseMagicOnly&&i.toUpperCase()!==i.toLowerCase()))return f;let y=(this.#w.nocase?"i":"")+(p?"u":"");return Object.assign(new RegExp(`^${g}$`,y),{_src:g,_glob:i})}get options(){return this.#w}toRegExpSource(i){let g=i??!!this.#w.dot;if(this.#E===this&&this.#S(),!this.type){let f=this.isStart()&&this.isEnd()&&!this.#I.some((i=>typeof i!="string")),E=this.#I.map((g=>{let[E,p,y,b]=typeof g=="string"?n.#D(g,this.#p,f):g.toRegExpSource(i);return this.#p=this.#p||y,this.#C=this.#C||b,E})).join(""),p="";if(this.isStart()&&typeof this.#I[0]=="string"&&!(this.#I.length===1&&Ts.has(this.#I[0]))){let f=Cs,y=g&&f.has(E.charAt(0))||E.startsWith("\\.")&&f.has(E.charAt(2))||E.startsWith("\\.\\.")&&f.has(E.charAt(4)),b=!g&&!i&&f.has(E.charAt(0));p=y?vs:b?Ct:""}let y="";return this.isEnd()&&this.#E.#y&&this.#Q?.type==="!"&&(y="(?:$|\\/)"),[p+E+y,W(E),this.#p=!!this.#p,this.#C]}let f=this.type==="*"||this.type==="+",E=this.type==="!"?"(?:(?!(?:":"(?:",p=this.#v(g);if(this.isStart()&&this.isEnd()&&!p&&this.type!=="!"){let i=this.toString();return this.#I=[i],this.type=null,this.#p=void 0,[i,W(this.toString()),!1,!1]}let y=!f||i||g||!Ct?"":this.#v(!0);y===p&&(y=""),y&&(p=`(?:${p})(?:${y})*?`);let b="";if(this.type==="!"&&this.#k)b=(this.isStart()&&!g?Ct:"")+Ee;else{let f=this.type==="!"?"))"+(this.isStart()&&!g&&!i?Ct:"")+Se+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&y?")":this.type==="*"&&y?")?":`)${this.type}`;b=E+p+f}return[b,W(p),this.#p=!!this.#p,this.#C]}#v(i){return this.#I.map((g=>{if(typeof g=="string")throw new Error("string type in extglob ast??");let[f,E,p,y]=g.toRegExpSource(i);return this.#C=this.#C||y,f})).filter((i=>!(this.isStart()&&this.isEnd())||!!i)).join("|")}static#D(i,g,f=!1){let E=!1,p="",y=!1,b=!1;for(let S=0;S<i.length;S++){let J=i.charAt(S);if(E){E=!1,p+=(As.has(J)?"\\":"")+J;continue}if(J==="*"){if(b)continue;b=!0,p+=f&&/^[*]+$/.test(i)?Ee:Se,g=!0;continue}else b=!1;if(J==="\\"){S===i.length-1?p+="\\\\":E=!0;continue}if(J==="["){let[f,E,b,J]=ye(i,S);if(b){p+=f,y=y||E,S+=b-1,g=g||J;continue}}if(J==="?"){p+=Kt,g=!0;continue}p+=ks(J)}return[p,W(i),!!g,y]}};var tt=(i,{windowsPathsNoEscape:g=!1,magicalBraces:f=!1}={})=>f?g?i.replace(/[?*()[\]{}]/g,"[$&]"):i.replace(/[?*()[\]\\{}]/g,"\\$&"):g?i.replace(/[?*()[\]]/g,"[$&]"):i.replace(/[?*()[\]\\]/g,"\\$&");var O=(i,g,f={})=>(at(g),!f.nocomment&&g.charAt(0)==="#"?!1:new D(g,f).match(i)),Rs=/^\*+([^+@!?\*\[\(]*)$/,Os=i=>g=>!g.startsWith(".")&&g.endsWith(i),Fs=i=>g=>g.endsWith(i),Ds=i=>(i=i.toLowerCase(),g=>!g.startsWith(".")&&g.toLowerCase().endsWith(i)),Ms=i=>(i=i.toLowerCase(),g=>g.toLowerCase().endsWith(i)),Ns=/^\*+\.\*+$/,_s=i=>!i.startsWith(".")&&i.includes("."),Ls=i=>i!=="."&&i!==".."&&i.includes("."),Ws=/^\.\*+$/,Ps=i=>i!=="."&&i!==".."&&i.startsWith("."),js=/^\*+$/,Is=i=>i.length!==0&&!i.startsWith("."),zs=i=>i.length!==0&&i!=="."&&i!=="..",Bs=/^\?+([^+@!?\*\[\(]*)?$/,Us=([i,g=""])=>{let f=Ce([i]);return g?(g=g.toLowerCase(),i=>f(i)&&i.toLowerCase().endsWith(g)):f},$s=([i,g=""])=>{let f=Te([i]);return g?(g=g.toLowerCase(),i=>f(i)&&i.toLowerCase().endsWith(g)):f},Gs=([i,g=""])=>{let f=Te([i]);return g?i=>f(i)&&i.endsWith(g):f},Hs=([i,g=""])=>{let f=Ce([i]);return g?i=>f(i)&&i.endsWith(g):f},Ce=([i])=>{let g=i.length;return i=>i.length===g&&!i.startsWith(".")},Te=([i])=>{let g=i.length;return i=>i.length===g&&i!=="."&&i!==".."},Ae=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",xe={win32:{sep:"\\"},posix:{sep:"/"}},qs=Ae==="win32"?xe.win32.sep:xe.posix.sep;O.sep=qs;var A=Symbol("globstar **");O.GLOBSTAR=A;var Ks="[^/]",Vs=Ks+"*?",Ys="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Xs="(?:(?!(?:\\/|^)\\.).)*?",Js=(i,g={})=>f=>O(f,i,g);O.filter=Js;var N=(i,g={})=>Object.assign({},i,g),Zs=i=>{if(!i||typeof i!="object"||!Object.keys(i).length)return O;let g=O;return Object.assign(((f,E,p={})=>g(f,E,N(i,p))),{Minimatch:class extends g.Minimatch{constructor(g,f={}){super(g,N(i,f))}static defaults(f){return g.defaults(N(i,f)).Minimatch}},AST:class extends g.AST{constructor(g,f,E={}){super(g,f,N(i,E))}static fromGlob(f,E={}){return g.AST.fromGlob(f,N(i,E))}},unescape:(f,E={})=>g.unescape(f,N(i,E)),escape:(f,E={})=>g.escape(f,N(i,E)),filter:(f,E={})=>g.filter(f,N(i,E)),defaults:f=>g.defaults(N(i,f)),makeRe:(f,E={})=>g.makeRe(f,N(i,E)),braceExpand:(f,E={})=>g.braceExpand(f,N(i,E)),match:(f,E,p={})=>g.match(f,E,N(i,p)),sep:g.sep,GLOBSTAR:A})};O.defaults=Zs;var ke=(i,g={})=>(at(i),g.nobrace||!/\{(?:(?!\{).)*\}/.test(i)?[i]:ge(i,{max:g.braceExpandMax}));O.braceExpand=ke;var Qs=(i,g={})=>new D(i,g).makeRe();O.makeRe=Qs;var ti=(i,g,f={})=>{let E=new D(g,f);return i=i.filter((i=>E.match(i))),E.options.nonull&&!i.length&&i.push(g),i};O.match=ti;var ve=/[?*]|[+@!]\(.*?\)|\[|\]/,ei=i=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),D=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(i,g={}){at(i),g=g||{},this.options=g,this.pattern=i,this.platform=g.platform||Ae,this.isWindows=this.platform==="win32";let f="allowWindowsEscape";this.windowsPathsNoEscape=!!g.windowsPathsNoEscape||g[f]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!g.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!g.nonegate,this.comment=!1,this.empty=!1,this.partial=!!g.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=g.windowsNoMagicRoot!==void 0?g.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let i of this.set)for(let g of i)if(typeof g!="string")return!0;return!1}debug(...i){}make(){let i=this.pattern,g=this.options;if(!g.nocomment&&i.charAt(0)==="#"){this.comment=!0;return}if(!i){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],g.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);let f=this.globSet.map((i=>this.slashSplit(i)));this.globParts=this.preprocess(f),this.debug(this.pattern,this.globParts);let E=this.globParts.map(((i,g,f)=>{if(this.isWindows&&this.windowsNoMagicRoot){let g=i[0]===""&&i[1]===""&&(i[2]==="?"||!ve.test(i[2]))&&!ve.test(i[3]),f=/^[a-z]:/i.test(i[0]);if(g)return[...i.slice(0,4),...i.slice(4).map((i=>this.parse(i)))];if(f)return[i[0],...i.slice(1).map((i=>this.parse(i)))]}return i.map((i=>this.parse(i)))}));if(this.debug(this.pattern,E),this.set=E.filter((i=>i.indexOf(!1)===-1)),this.isWindows)for(let i=0;i<this.set.length;i++){let g=this.set[i];g[0]===""&&g[1]===""&&this.globParts[i][2]==="?"&&typeof g[3]=="string"&&/^[a-z]:$/i.test(g[3])&&(g[2]="?")}this.debug(this.pattern,this.set)}preprocess(i){if(this.options.noglobstar)for(let g=0;g<i.length;g++)for(let f=0;f<i[g].length;f++)i[g][f]==="**"&&(i[g][f]="*");let{optimizationLevel:g=1}=this.options;return g>=2?(i=this.firstPhasePreProcess(i),i=this.secondPhasePreProcess(i)):g>=1?i=this.levelOneOptimize(i):i=this.adjascentGlobstarOptimize(i),i}adjascentGlobstarOptimize(i){return i.map((i=>{let g=-1;for(;(g=i.indexOf("**",g+1))!==-1;){let f=g;for(;i[f+1]==="**";)f++;f!==g&&i.splice(g,f-g)}return i}))}levelOneOptimize(i){return i.map((i=>(i=i.reduce(((i,g)=>{let f=i[i.length-1];return g==="**"&&f==="**"?i:g===".."&&f&&f!==".."&&f!=="."&&f!=="**"?(i.pop(),i):(i.push(g),i)}),[]),i.length===0?[""]:i)))}levelTwoFileOptimize(i){Array.isArray(i)||(i=this.slashSplit(i));let g=!1;do{if(g=!1,!this.preserveMultipleSlashes){for(let f=1;f<i.length-1;f++){let E=i[f];f===1&&E===""&&i[0]===""||(E==="."||E==="")&&(g=!0,i.splice(f,1),f--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(g=!0,i.pop())}let f=0;for(;(f=i.indexOf("..",f+1))!==-1;){let E=i[f-1];E&&E!=="."&&E!==".."&&E!=="**"&&(g=!0,i.splice(f-1,2),f-=2)}}while(g);return i.length===0?[""]:i}firstPhasePreProcess(i){let g=!1;do{g=!1;for(let f of i){let E=-1;for(;(E=f.indexOf("**",E+1))!==-1;){let p=E;for(;f[p+1]==="**";)p++;p>E&&f.splice(E+1,p-E);let y=f[E+1],b=f[E+2],S=f[E+3];if(y!==".."||!b||b==="."||b===".."||!S||S==="."||S==="..")continue;g=!0,f.splice(E,1);let J=f.slice(0);J[E]="**",i.push(J),E--}if(!this.preserveMultipleSlashes){for(let i=1;i<f.length-1;i++){let E=f[i];i===1&&E===""&&f[0]===""||(E==="."||E==="")&&(g=!0,f.splice(i,1),i--)}f[0]==="."&&f.length===2&&(f[1]==="."||f[1]==="")&&(g=!0,f.pop())}let p=0;for(;(p=f.indexOf("..",p+1))!==-1;){let i=f[p-1];if(i&&i!=="."&&i!==".."&&i!=="**"){g=!0;let i=p===1&&f[p+1]==="**"?["."]:[];f.splice(p-1,2,...i),f.length===0&&f.push(""),p-=2}}}}while(g);return i}secondPhasePreProcess(i){for(let g=0;g<i.length-1;g++)for(let f=g+1;f<i.length;f++){let E=this.partsMatch(i[g],i[f],!this.preserveMultipleSlashes);if(E){i[g]=[],i[f]=E;break}}return i.filter((i=>i.length))}partsMatch(i,g,f=!1){let E=0,p=0,y=[],b="";for(;E<i.length&&p<g.length;)if(i[E]===g[p])y.push(b==="b"?g[p]:i[E]),E++,p++;else if(f&&i[E]==="**"&&g[p]===i[E+1])y.push(i[E]),E++;else if(f&&g[p]==="**"&&i[E]===g[p+1])y.push(g[p]),p++;else if(i[E]==="*"&&g[p]&&(this.options.dot||!g[p].startsWith("."))&&g[p]!=="**"){if(b==="b")return!1;b="a",y.push(i[E]),E++,p++}else if(g[p]==="*"&&i[E]&&(this.options.dot||!i[E].startsWith("."))&&i[E]!=="**"){if(b==="a")return!1;b="b",y.push(g[p]),E++,p++}else return!1;return i.length===g.length&&y}parseNegate(){if(this.nonegate)return;let i=this.pattern,g=!1,f=0;for(let E=0;E<i.length&&i.charAt(E)==="!";E++)g=!g,f++;f&&(this.pattern=i.slice(f)),this.negate=g}matchOne(i,g,f=!1){let E=this.options;if(this.isWindows){let f=typeof i[0]=="string"&&/^[a-z]:$/i.test(i[0]),E=!f&&i[0]===""&&i[1]===""&&i[2]==="?"&&/^[a-z]:$/i.test(i[3]),p=typeof g[0]=="string"&&/^[a-z]:$/i.test(g[0]),y=!p&&g[0]===""&&g[1]===""&&g[2]==="?"&&typeof g[3]=="string"&&/^[a-z]:$/i.test(g[3]),b=E?3:f?0:void 0,S=y?3:p?0:void 0;if(typeof b=="number"&&typeof S=="number"){let[f,E]=[i[b],g[S]];f.toLowerCase()===E.toLowerCase()&&(g[S]=f,S>b?g=g.slice(S):b>S&&(i=i.slice(b)))}}let{optimizationLevel:p=1}=this.options;p>=2&&(i=this.levelTwoFileOptimize(i)),this.debug("matchOne",this,{file:i,pattern:g}),this.debug("matchOne",i.length,g.length);for(var y=0,b=0,S=i.length,J=g.length;y<S&&b<J;y++,b++){this.debug("matchOne loop");var Z=g[b],$=i[y];if(this.debug(g,Z,$),Z===!1)return!1;if(Z===A){this.debug("GLOBSTAR",[g,Z,$]);var z=y,ee=b+1;if(ee===J){for(this.debug("** at the end");y<S;y++)if(i[y]==="."||i[y]===".."||!E.dot&&i[y].charAt(0)===".")return!1;return!0}for(;z<S;){var re=i[z];if(this.debug(`\nglobstar while`,i,z,g,ee,re),this.matchOne(i.slice(z),g.slice(ee),f))return this.debug("globstar found match!",z,S,re),!0;if(re==="."||re===".."||!E.dot&&re.charAt(0)==="."){this.debug("dot detected!",i,z,g,ee);break}this.debug("globstar swallow a segment, and continue"),z++}return!!(f&&(this.debug(`\n>>> no match, partial?`,i,z,g,ee),z===S))}let p;if(typeof Z=="string"?(p=$===Z,this.debug("string match",Z,$,p)):(p=Z.test($),this.debug("pattern match",Z,$,p)),!p)return!1}if(y===S&&b===J)return!0;if(y===S)return f;if(b===J)return y===S-1&&i[y]==="";throw new Error("wtf?")}braceExpand(){return ke(this.pattern,this.options)}parse(i){at(i);let g=this.options;if(i==="**")return A;if(i==="")return"";let f,E=null;(f=i.match(js))?E=g.dot?zs:Is:(f=i.match(Rs))?E=(g.nocase?g.dot?Ms:Ds:g.dot?Fs:Os)(f[1]):(f=i.match(Bs))?E=(g.nocase?g.dot?$s:Us:g.dot?Gs:Hs)(f):(f=i.match(Ns))?E=g.dot?Ls:_s:(f=i.match(Ws))&&(E=Ps);let p=Q.fromGlob(i,this.options).toMMPattern();return E&&typeof p=="object"&&Reflect.defineProperty(p,"test",{value:E}),p}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let i=this.set;if(!i.length)return this.regexp=!1,this.regexp;let g=this.options,f=g.noglobstar?Vs:g.dot?Ys:Xs,E=new Set(g.nocase?["i"]:[]),p=i.map((i=>{let g=i.map((i=>{if(i instanceof RegExp)for(let g of i.flags.split(""))E.add(g);return typeof i=="string"?ei(i):i===A?A:i._src}));g.forEach(((i,E)=>{let p=g[E+1],y=g[E-1];i!==A||y===A||(y===void 0?p!==void 0&&p!==A?g[E+1]="(?:\\/|"+f+"\\/)?"+p:g[E]=f:p===void 0?g[E-1]=y+"(?:\\/|\\/"+f+")?":p!==A&&(g[E-1]=y+"(?:\\/|\\/"+f+"\\/)"+p,g[E+1]=A))}));let p=g.filter((i=>i!==A));if(this.partial&&p.length>=1){let i=[];for(let g=1;g<=p.length;g++)i.push(p.slice(0,g).join("/"));return"(?:"+i.join("|")+")"}return p.join("/")})).join("|"),[y,b]=i.length>1?["(?:",")"]:["",""];p="^"+y+p+b+"$",this.partial&&(p="^(?:\\/|"+y+p.slice(1,-1)+b+")$"),this.negate&&(p="^(?!"+p+").+$");try{this.regexp=new RegExp(p,[...E].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(i){return this.preserveMultipleSlashes?i.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(i)?["",...i.split(/\/+/)]:i.split(/\/+/)}match(i,g=this.partial){if(this.debug("match",i,this.pattern),this.comment)return!1;if(this.empty)return i==="";if(i==="/"&&g)return!0;let f=this.options;this.isWindows&&(i=i.split("\\").join("/"));let E=this.slashSplit(i);this.debug(this.pattern,"split",E);let p=this.set;this.debug(this.pattern,"set",p);let y=E[E.length-1];if(!y)for(let i=E.length-2;!y&&i>=0;i--)y=E[i];for(let i=0;i<p.length;i++){let b=p[i],S=E;if(f.matchBase&&b.length===1&&(S=[y]),this.matchOne(S,b,g))return f.flipNegate?!0:!this.negate}return f.flipNegate?!1:this.negate}static defaults(i){return O.defaults(i).Minimatch}};O.AST=Q;O.Minimatch=D;O.escape=tt;O.unescape=W;var si=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Oe=new Set,Vt=typeof process=="object"&&process?process:{},Fe=(i,g,f,E)=>{typeof Vt.emitWarning=="function"?Vt.emitWarning(i,g,f,E):console.error(`[${f}] ${g}: ${i}`)},At=globalThis.AbortController,Re=globalThis.AbortSignal;if(typeof At>"u"){Re=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,g){this._onabort.push(g)}},At=class{constructor(){t()}signal=new Re;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let g of this.signal._onabort)g(i);this.signal.onabort?.(i)}}};let i=Vt.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{i&&(i=!1,Fe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var ii=i=>!Oe.has(i);var q=i=>i&&i===Math.floor(i)&&i>0&&isFinite(i),De=i=>q(i)?i<=Math.pow(2,8)?Uint8Array:i<=Math.pow(2,16)?Uint16Array:i<=Math.pow(2,32)?Uint32Array:i<=Number.MAX_SAFE_INTEGER?Tt:null:null,Tt=class extends Array{constructor(i){super(i),this.fill(0)}},ri=class ct{heap;length;static#E=!1;static create(i){let g=De(i);if(!g)return[];ct.#E=!0;let f=new ct(i,g);return ct.#E=!1,f}constructor(i,g){if(!ct.#E)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new g(i),this.length=0}push(i){this.heap[this.length++]=i}pop(){return this.heap[--this.length]}},ft=class Me{#E;#p;#C;#I;#Q;#B;#m;#y;get perf(){return this.#y}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#w;#b;#k;#S;#R;#v;#D;#N;#F;#T;#_;#L;#M;#x;#U;#O;#P;#Y;#G;static unsafeExposeInternals(i){return{starts:i.#M,ttls:i.#x,autopurgeTimers:i.#U,sizes:i.#L,keyMap:i.#k,keyList:i.#S,valList:i.#R,next:i.#v,prev:i.#D,get head(){return i.#N},get tail(){return i.#F},free:i.#T,isBackgroundFetch:g=>i.#H(g),backgroundFetch:(g,f,E,p)=>i.#J(g,f,E,p),moveToTail:g=>i.#V(g),indexes:g=>i.#W(g),rindexes:g=>i.#q(g),isStale:g=>i.#j(g)}}get max(){return this.#E}get maxSize(){return this.#p}get calculatedSize(){return this.#b}get size(){return this.#w}get fetchMethod(){return this.#B}get memoMethod(){return this.#m}get dispose(){return this.#C}get onInsert(){return this.#I}get disposeAfter(){return this.#Q}constructor(i){let{max:g=0,ttl:f,ttlResolution:E=1,ttlAutopurge:p,updateAgeOnGet:y,updateAgeOnHas:b,allowStale:S,dispose:J,onInsert:Z,disposeAfter:$,noDisposeOnSet:z,noUpdateTTL:ee,maxSize:re=0,maxEntrySize:Pe=0,sizeCalculation:$t,fetchMethod:tn,memoMethod:sn,noDeleteOnFetchRejection:nn,noDeleteOnStaleGet:rn,allowStaleOnFetchRejection:An,allowStaleOnFetchAbort:on,ignoreFetchAbort:an,perf:cn}=i;if(cn!==void 0&&typeof cn?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#y=cn??si,g!==0&&!q(g))throw new TypeError("max option must be a nonnegative integer");let ln=g?De(g):Array;if(!ln)throw new Error("invalid max value: "+g);if(this.#E=g,this.#p=re,this.maxEntrySize=Pe||this.#p,this.sizeCalculation=$t,this.sizeCalculation){if(!this.#p&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(sn!==void 0&&typeof sn!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#m=sn,tn!==void 0&&typeof tn!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#B=tn,this.#P=!!tn,this.#k=new Map,this.#S=new Array(g).fill(void 0),this.#R=new Array(g).fill(void 0),this.#v=new ln(g),this.#D=new ln(g),this.#N=0,this.#F=0,this.#T=ri.create(g),this.#w=0,this.#b=0,typeof J=="function"&&(this.#C=J),typeof Z=="function"&&(this.#I=Z),typeof $=="function"?(this.#Q=$,this.#_=[]):(this.#Q=void 0,this.#_=void 0),this.#O=!!this.#C,this.#G=!!this.#I,this.#Y=!!this.#Q,this.noDisposeOnSet=!!z,this.noUpdateTTL=!!ee,this.noDeleteOnFetchRejection=!!nn,this.allowStaleOnFetchRejection=!!An,this.allowStaleOnFetchAbort=!!on,this.ignoreFetchAbort=!!an,this.maxEntrySize!==0){if(this.#p!==0&&!q(this.#p))throw new TypeError("maxSize must be a positive integer if specified");if(!q(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#Z()}if(this.allowStale=!!S,this.noDeleteOnStaleGet=!!rn,this.updateAgeOnGet=!!y,this.updateAgeOnHas=!!b,this.ttlResolution=q(E)||E===0?E:1,this.ttlAutopurge=!!p,this.ttl=f||0,this.ttl){if(!q(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#K()}if(this.#E===0&&this.ttl===0&&this.#p===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#E&&!this.#p){let i="LRU_CACHE_UNBOUNDED";ii(i)&&(Oe.add(i),Fe("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",i,Me))}}getRemainingTTL(i){return this.#k.has(i)?1/0:0}#K(){let i=new Tt(this.#E),g=new Tt(this.#E);this.#x=i,this.#M=g;let f=this.ttlAutopurge?new Array(this.#E):void 0;this.#U=f,this.#$=(E,p,y=this.#y.now())=>{if(g[E]=p!==0?y:0,i[E]=p,f?.[E]&&(clearTimeout(f[E]),f[E]=void 0),p!==0&&f){let i=setTimeout((()=>{this.#j(E)&&this.#z(this.#S[E],"expire")}),p+1);i.unref&&i.unref(),f[E]=i}},this.#X=f=>{g[f]=i[f]!==0?this.#y.now():0},this.#ee=(f,p)=>{if(i[p]){let y=i[p],b=g[p];if(!y||!b)return;f.ttl=y,f.start=b,f.now=E||r();let S=f.now-b;f.remainingTTL=y-S}};let E=0,r=()=>{let i=this.#y.now();if(this.ttlResolution>0){E=i;let g=setTimeout((()=>E=0),this.ttlResolution);g.unref&&g.unref()}return i};this.getRemainingTTL=f=>{let p=this.#k.get(f);if(p===void 0)return 0;let y=i[p],b=g[p];if(!y||!b)return 1/0;let S=(E||r())-b;return y-S},this.#j=f=>{let p=g[f],y=i[f];return!!y&&!!p&&(E||r())-p>y}}#X=()=>{};#ee=()=>{};#$=()=>{};#j=()=>!1;#Z(){let i=new Tt(this.#E);this.#b=0,this.#L=i,this.#te=g=>{this.#b-=i[g],i[g]=0},this.#se=(i,g,f,E)=>{if(this.#H(g))return 0;if(!q(f))if(E){if(typeof E!="function")throw new TypeError("sizeCalculation must be a function");if(f=E(g,i),!q(f))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return f},this.#ne=(g,f,E)=>{if(i[g]=f,this.#p){let f=this.#p-i[g];for(;this.#b>f;)this.#re(!0)}this.#b+=i[g],E&&(E.entrySize=f,E.totalCalculatedSize=this.#b)}}#te=i=>{};#ne=(i,g,f)=>{};#se=(i,g,f,E)=>{if(f||E)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#W({allowStale:i=this.allowStale}={}){if(this.#w)for(let g=this.#F;!(!this.#Ae(g)||((i||!this.#j(g))&&(yield g),g===this.#N));)g=this.#D[g]}*#q({allowStale:i=this.allowStale}={}){if(this.#w)for(let g=this.#N;!(!this.#Ae(g)||((i||!this.#j(g))&&(yield g),g===this.#F));)g=this.#v[g]}#Ae(i){return i!==void 0&&this.#k.get(this.#S[i])===i}*entries(){for(let i of this.#W())this.#R[i]!==void 0&&this.#S[i]!==void 0&&!this.#H(this.#R[i])&&(yield[this.#S[i],this.#R[i]])}*rentries(){for(let i of this.#q())this.#R[i]!==void 0&&this.#S[i]!==void 0&&!this.#H(this.#R[i])&&(yield[this.#S[i],this.#R[i]])}*keys(){for(let i of this.#W()){let g=this.#S[i];g!==void 0&&!this.#H(this.#R[i])&&(yield g)}}*rkeys(){for(let i of this.#q()){let g=this.#S[i];g!==void 0&&!this.#H(this.#R[i])&&(yield g)}}*values(){for(let i of this.#W())this.#R[i]!==void 0&&!this.#H(this.#R[i])&&(yield this.#R[i])}*rvalues(){for(let i of this.#q())this.#R[i]!==void 0&&!this.#H(this.#R[i])&&(yield this.#R[i])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(i,g={}){for(let f of this.#W()){let E=this.#R[f],p=this.#H(E)?E.__staleWhileFetching:E;if(p!==void 0&&i(p,this.#S[f],this))return this.get(this.#S[f],g)}}forEach(i,g=this){for(let f of this.#W()){let E=this.#R[f],p=this.#H(E)?E.__staleWhileFetching:E;p!==void 0&&i.call(g,p,this.#S[f],this)}}rforEach(i,g=this){for(let f of this.#q()){let E=this.#R[f],p=this.#H(E)?E.__staleWhileFetching:E;p!==void 0&&i.call(g,p,this.#S[f],this)}}purgeStale(){let i=!1;for(let g of this.#q({allowStale:!0}))this.#j(g)&&(this.#z(this.#S[g],"expire"),i=!0);return i}info(i){let g=this.#k.get(i);if(g===void 0)return;let f=this.#R[g],E=this.#H(f)?f.__staleWhileFetching:f;if(E===void 0)return;let p={value:E};if(this.#x&&this.#M){let i=this.#x[g],f=this.#M[g];if(i&&f){let g=i-(this.#y.now()-f);p.ttl=g,p.start=Date.now()}}return this.#L&&(p.size=this.#L[g]),p}dump(){let i=[];for(let g of this.#W({allowStale:!0})){let f=this.#S[g],E=this.#R[g],p=this.#H(E)?E.__staleWhileFetching:E;if(p===void 0||f===void 0)continue;let y={value:p};if(this.#x&&this.#M){y.ttl=this.#x[g];let i=this.#y.now()-this.#M[g];y.start=Math.floor(Date.now()-i)}this.#L&&(y.size=this.#L[g]),i.unshift([f,y])}return i}load(i){this.clear();for(let[g,f]of i){if(f.start){let i=Date.now()-f.start;f.start=this.#y.now()-i}this.set(g,f.value,f)}}set(i,g,f={}){if(g===void 0)return this.delete(i),this;let{ttl:E=this.ttl,start:p,noDisposeOnSet:y=this.noDisposeOnSet,sizeCalculation:b=this.sizeCalculation,status:S}=f,{noUpdateTTL:J=this.noUpdateTTL}=f,Z=this.#se(i,g,f.size||0,b);if(this.maxEntrySize&&Z>this.maxEntrySize)return S&&(S.set="miss",S.maxEntrySizeExceeded=!0),this.#z(i,"set"),this;let $=this.#w===0?void 0:this.#k.get(i);if($===void 0)$=this.#w===0?this.#F:this.#T.length!==0?this.#T.pop():this.#w===this.#E?this.#re(!1):this.#w,this.#S[$]=i,this.#R[$]=g,this.#k.set(i,$),this.#v[this.#F]=$,this.#D[$]=this.#F,this.#F=$,this.#w++,this.#ne($,Z,S),S&&(S.set="add"),J=!1,this.#G&&this.#I?.(g,i,"add");else{this.#V($);let f=this.#R[$];if(g!==f){if(this.#P&&this.#H(f)){f.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:g}=f;g!==void 0&&!y&&(this.#O&&this.#C?.(g,i,"set"),this.#Y&&this.#_?.push([g,i,"set"]))}else y||(this.#O&&this.#C?.(f,i,"set"),this.#Y&&this.#_?.push([f,i,"set"]));if(this.#te($),this.#ne($,Z,S),this.#R[$]=g,S){S.set="replace";let i=f&&this.#H(f)?f.__staleWhileFetching:f;i!==void 0&&(S.oldValue=i)}}else S&&(S.set="update");this.#G&&this.onInsert?.(g,i,g===f?"update":"replace")}if(E!==0&&!this.#x&&this.#K(),this.#x&&(J||this.#$($,E,p),S&&this.#ee(S,$)),!y&&this.#Y&&this.#_){let i=this.#_,g;for(;g=i?.shift();)this.#Q?.(...g)}return this}pop(){try{for(;this.#w;){let i=this.#R[this.#N];if(this.#re(!0),this.#H(i)){if(i.__staleWhileFetching)return i.__staleWhileFetching}else if(i!==void 0)return i}}finally{if(this.#Y&&this.#_){let i=this.#_,g;for(;g=i?.shift();)this.#Q?.(...g)}}}#re(i){let g=this.#N,f=this.#S[g],E=this.#R[g];return this.#P&&this.#H(E)?E.__abortController.abort(new Error("evicted")):(this.#O||this.#Y)&&(this.#O&&this.#C?.(E,f,"evict"),this.#Y&&this.#_?.push([E,f,"evict"])),this.#te(g),this.#U?.[g]&&(clearTimeout(this.#U[g]),this.#U[g]=void 0),i&&(this.#S[g]=void 0,this.#R[g]=void 0,this.#T.push(g)),this.#w===1?(this.#N=this.#F=0,this.#T.length=0):this.#N=this.#v[g],this.#k.delete(f),this.#w--,g}has(i,g={}){let{updateAgeOnHas:f=this.updateAgeOnHas,status:E}=g,p=this.#k.get(i);if(p!==void 0){let i=this.#R[p];if(this.#H(i)&&i.__staleWhileFetching===void 0)return!1;if(this.#j(p))E&&(E.has="stale",this.#ee(E,p));else return f&&this.#X(p),E&&(E.has="hit",this.#ee(E,p)),!0}else E&&(E.has="miss");return!1}peek(i,g={}){let{allowStale:f=this.allowStale}=g,E=this.#k.get(i);if(E===void 0||!f&&this.#j(E))return;let p=this.#R[E];return this.#H(p)?p.__staleWhileFetching:p}#J(i,g,f,E){let p=g===void 0?void 0:this.#R[g];if(this.#H(p))return p;let y=new At,{signal:b}=f;b?.addEventListener("abort",(()=>y.abort(b.reason)),{signal:y.signal});let S={signal:y.signal,options:f,context:E},l=(E,p=!1)=>{let{aborted:b}=y.signal,Z=f.ignoreFetchAbort&&E!==void 0,$=f.ignoreFetchAbort||!!(f.allowStaleOnFetchAbort&&E!==void 0);if(f.status&&(b&&!p?(f.status.fetchAborted=!0,f.status.fetchError=y.signal.reason,Z&&(f.status.fetchAbortIgnored=!0)):f.status.fetchResolved=!0),b&&!Z&&!p)return c(y.signal.reason,$);let z=J,ee=this.#R[g];return(ee===J||Z&&p&&ee===void 0)&&(E===void 0?z.__staleWhileFetching!==void 0?this.#R[g]=z.__staleWhileFetching:this.#z(i,"fetch"):(f.status&&(f.status.fetchUpdated=!0),this.set(i,E,S.options))),E},u=i=>(f.status&&(f.status.fetchRejected=!0,f.status.fetchError=i),c(i,!1)),c=(E,p)=>{let{aborted:b}=y.signal,S=b&&f.allowStaleOnFetchAbort,Z=S||f.allowStaleOnFetchRejection,$=Z||f.noDeleteOnFetchRejection,z=J;if(this.#R[g]===J&&(!$||!p&&z.__staleWhileFetching===void 0?this.#z(i,"fetch"):S||(this.#R[g]=z.__staleWhileFetching)),Z)return f.status&&z.__staleWhileFetching!==void 0&&(f.status.returnedStale=!0),z.__staleWhileFetching;if(z.__returned===z)throw E},d=(g,E)=>{let b=this.#B?.(i,p,S);b&&b instanceof Promise&&b.then((i=>g(i===void 0?void 0:i)),E),y.signal.addEventListener("abort",(()=>{(!f.ignoreFetchAbort||f.allowStaleOnFetchAbort)&&(g(void 0),f.allowStaleOnFetchAbort&&(g=i=>l(i,!0)))}))};f.status&&(f.status.fetchDispatched=!0);let J=new Promise(d).then(l,u),Z=Object.assign(J,{__abortController:y,__staleWhileFetching:p,__returned:void 0});return g===void 0?(this.set(i,Z,{...S.options,status:void 0}),g=this.#k.get(i)):this.#R[g]=Z,Z}#H(i){if(!this.#P)return!1;let g=i;return!!g&&g instanceof Promise&&g.hasOwnProperty("__staleWhileFetching")&&g.__abortController instanceof At}async fetch(i,g={}){let{allowStale:f=this.allowStale,updateAgeOnGet:E=this.updateAgeOnGet,noDeleteOnStaleGet:p=this.noDeleteOnStaleGet,ttl:y=this.ttl,noDisposeOnSet:b=this.noDisposeOnSet,size:S=0,sizeCalculation:J=this.sizeCalculation,noUpdateTTL:Z=this.noUpdateTTL,noDeleteOnFetchRejection:$=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:z=this.allowStaleOnFetchRejection,ignoreFetchAbort:ee=this.ignoreFetchAbort,allowStaleOnFetchAbort:re=this.allowStaleOnFetchAbort,context:Pe,forceRefresh:$t=!1,status:tn,signal:sn}=g;if(!this.#P)return tn&&(tn.fetch="get"),this.get(i,{allowStale:f,updateAgeOnGet:E,noDeleteOnStaleGet:p,status:tn});let nn={allowStale:f,updateAgeOnGet:E,noDeleteOnStaleGet:p,ttl:y,noDisposeOnSet:b,size:S,sizeCalculation:J,noUpdateTTL:Z,noDeleteOnFetchRejection:$,allowStaleOnFetchRejection:z,allowStaleOnFetchAbort:re,ignoreFetchAbort:ee,status:tn,signal:sn},rn=this.#k.get(i);if(rn===void 0){tn&&(tn.fetch="miss");let g=this.#J(i,rn,nn,Pe);return g.__returned=g}else{let g=this.#R[rn];if(this.#H(g)){let i=f&&g.__staleWhileFetching!==void 0;return tn&&(tn.fetch="inflight",i&&(tn.returnedStale=!0)),i?g.__staleWhileFetching:g.__returned=g}let p=this.#j(rn);if(!$t&&!p)return tn&&(tn.fetch="hit"),this.#V(rn),E&&this.#X(rn),tn&&this.#ee(tn,rn),g;let y=this.#J(i,rn,nn,Pe),b=y.__staleWhileFetching!==void 0&&f;return tn&&(tn.fetch=p?"stale":"refresh",b&&p&&(tn.returnedStale=!0)),b?y.__staleWhileFetching:y.__returned=y}}async forceFetch(i,g={}){let f=await this.fetch(i,g);if(f===void 0)throw new Error("fetch() returned undefined");return f}memo(i,g={}){let f=this.#m;if(!f)throw new Error("no memoMethod provided to constructor");let{context:E,forceRefresh:p,...y}=g,b=this.get(i,y);if(!p&&b!==void 0)return b;let S=f(i,b,{options:y,context:E});return this.set(i,S,y),S}get(i,g={}){let{allowStale:f=this.allowStale,updateAgeOnGet:E=this.updateAgeOnGet,noDeleteOnStaleGet:p=this.noDeleteOnStaleGet,status:y}=g,b=this.#k.get(i);if(b!==void 0){let g=this.#R[b],S=this.#H(g);return y&&this.#ee(y,b),this.#j(b)?(y&&(y.get="stale"),S?(y&&f&&g.__staleWhileFetching!==void 0&&(y.returnedStale=!0),f?g.__staleWhileFetching:void 0):(p||this.#z(i,"expire"),y&&f&&(y.returnedStale=!0),f?g:void 0)):(y&&(y.get="hit"),S?g.__staleWhileFetching:(this.#V(b),E&&this.#X(b),g))}else y&&(y.get="miss")}#ie(i,g){this.#D[g]=i,this.#v[i]=g}#V(i){i!==this.#F&&(i===this.#N?this.#N=this.#v[i]:this.#ie(this.#D[i],this.#v[i]),this.#ie(this.#F,i),this.#F=i)}delete(i){return this.#z(i,"delete")}#z(i,g){let f=!1;if(this.#w!==0){let E=this.#k.get(i);if(E!==void 0)if(this.#U?.[E]&&(clearTimeout(this.#U?.[E]),this.#U[E]=void 0),f=!0,this.#w===1)this.#oe(g);else{this.#te(E);let f=this.#R[E];if(this.#H(f)?f.__abortController.abort(new Error("deleted")):(this.#O||this.#Y)&&(this.#O&&this.#C?.(f,i,g),this.#Y&&this.#_?.push([f,i,g])),this.#k.delete(i),this.#S[E]=void 0,this.#R[E]=void 0,E===this.#F)this.#F=this.#D[E];else if(E===this.#N)this.#N=this.#v[E];else{let i=this.#D[E];this.#v[i]=this.#v[E];let g=this.#v[E];this.#D[g]=this.#D[E]}this.#w--,this.#T.push(E)}}if(this.#Y&&this.#_?.length){let i=this.#_,g;for(;g=i?.shift();)this.#Q?.(...g)}return f}clear(){return this.#oe("delete")}#oe(i){for(let g of this.#q({allowStale:!0})){let f=this.#R[g];if(this.#H(f))f.__abortController.abort(new Error("deleted"));else{let E=this.#S[g];this.#O&&this.#C?.(f,E,i),this.#Y&&this.#_?.push([f,E,i])}}if(this.#k.clear(),this.#R.fill(void 0),this.#S.fill(void 0),this.#x&&this.#M){this.#x.fill(0),this.#M.fill(0);for(let i of this.#U??[])i!==void 0&&clearTimeout(i);this.#U?.fill(void 0)}if(this.#L&&this.#L.fill(0),this.#N=0,this.#F=0,this.#T.length=0,this.#b=0,this.#w=0,this.#Y&&this.#_){let i=this.#_,g;for(;g=i?.shift();)this.#Q?.(...g)}}};var Ne=typeof process=="object"&&process?process:{stdout:null,stderr:null},oi=i=>!!i&&typeof i=="object"&&(i instanceof V||i instanceof external_node_stream_||hi(i)||ai(i)),hi=i=>!!i&&typeof i=="object"&&i instanceof external_node_events_.EventEmitter&&typeof i.pipe=="function"&&i.pipe!==external_node_stream_.Writable.prototype.pipe,ai=i=>!!i&&typeof i=="object"&&i instanceof external_node_events_.EventEmitter&&typeof i.write=="function"&&typeof i.end=="function",G=Symbol("EOF"),H=Symbol("maybeEmitEnd"),K=Symbol("emittedEnd"),kt=Symbol("emittingEnd"),ut=Symbol("emittedError"),Rt=Symbol("closed"),_e=Symbol("read"),Ot=Symbol("flush"),Le=Symbol("flushChunk"),P=Symbol("encoding"),et=Symbol("decoder"),v=Symbol("flowing"),dt=Symbol("paused"),st=Symbol("resume"),C=Symbol("buffer"),F=Symbol("pipes"),T=Symbol("bufferLength"),Yt=Symbol("bufferPush"),Ft=Symbol("bufferShift"),k=Symbol("objectMode"),x=Symbol("destroyed"),Xt=Symbol("error"),Jt=Symbol("emitData"),We=Symbol("emitEnd"),Zt=Symbol("emitEnd2"),B=Symbol("async"),Qt=Symbol("abort"),Dt=Symbol("aborted"),pt=Symbol("signal"),Y=Symbol("dataListeners"),M=Symbol("discarded"),mt=i=>Promise.resolve().then(i),li=i=>i(),ci=i=>i==="end"||i==="finish"||i==="prefinish",fi=i=>i instanceof ArrayBuffer||!!i&&typeof i=="object"&&i.constructor&&i.constructor.name==="ArrayBuffer"&&i.byteLength>=0,ui=i=>!Buffer.isBuffer(i)&&ArrayBuffer.isView(i),Mt=class{src;dest;opts;ondrain;constructor(i,g,f){this.src=i,this.dest=g,this.opts=f,this.ondrain=()=>i[st](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(i){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},te=class extends Mt{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(i,g,f){super(i,g,f),this.proxyErrors=i=>this.dest.emit("error",i),i.on("error",this.proxyErrors)}},di=i=>!!i.objectMode,pi=i=>!i.objectMode&&!!i.encoding&&i.encoding!=="buffer",V=class extends external_node_events_.EventEmitter{[v]=!1;[dt]=!1;[F]=[];[C]=[];[k];[P];[B];[et];[G]=!1;[K]=!1;[kt]=!1;[Rt]=!1;[ut]=null;[T]=0;[x]=!1;[pt];[Dt]=!1;[Y]=0;[M]=!1;writable=!0;readable=!0;constructor(...i){let g=i[0]||{};if(super(),g.objectMode&&typeof g.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");di(g)?(this[k]=!0,this[P]=null):pi(g)?(this[P]=g.encoding,this[k]=!1):(this[k]=!1,this[P]=null),this[B]=!!g.async,this[et]=this[P]?new external_node_string_decoder_namespaceObject.StringDecoder(this[P]):null,g&&g.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[C]}),g&&g.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[F]});let{signal:f}=g;f&&(this[pt]=f,f.aborted?this[Qt]():f.addEventListener("abort",(()=>this[Qt]())))}get bufferLength(){return this[T]}get encoding(){return this[P]}set encoding(i){throw new Error("Encoding must be set at instantiation time")}setEncoding(i){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[k]}set objectMode(i){throw new Error("objectMode must be set at instantiation time")}get async(){return this[B]}set async(i){this[B]=this[B]||!!i}[Qt](){this[Dt]=!0,this.emit("abort",this[pt]?.reason),this.destroy(this[pt]?.reason)}get aborted(){return this[Dt]}set aborted(i){}write(i,g,f){if(this[Dt])return!1;if(this[G])throw new Error("write after end");if(this[x])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof g=="function"&&(f=g,g="utf8"),g||(g="utf8");let E=this[B]?mt:li;if(!this[k]&&!Buffer.isBuffer(i)){if(ui(i))i=Buffer.from(i.buffer,i.byteOffset,i.byteLength);else if(fi(i))i=Buffer.from(i);else if(typeof i!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[k]?(this[v]&&this[T]!==0&&this[Ot](!0),this[v]?this.emit("data",i):this[Yt](i),this[T]!==0&&this.emit("readable"),f&&E(f),this[v]):i.length?(typeof i=="string"&&!(g===this[P]&&!this[et]?.lastNeed)&&(i=Buffer.from(i,g)),Buffer.isBuffer(i)&&this[P]&&(i=this[et].write(i)),this[v]&&this[T]!==0&&this[Ot](!0),this[v]?this.emit("data",i):this[Yt](i),this[T]!==0&&this.emit("readable"),f&&E(f),this[v]):(this[T]!==0&&this.emit("readable"),f&&E(f),this[v])}read(i){if(this[x])return null;if(this[M]=!1,this[T]===0||i===0||i&&i>this[T])return this[H](),null;this[k]&&(i=null),this[C].length>1&&!this[k]&&(this[C]=[this[P]?this[C].join(""):Buffer.concat(this[C],this[T])]);let g=this[_e](i||null,this[C][0]);return this[H](),g}[_e](i,g){if(this[k])this[Ft]();else{let f=g;i===f.length||i===null?this[Ft]():typeof f=="string"?(this[C][0]=f.slice(i),g=f.slice(0,i),this[T]-=i):(this[C][0]=f.subarray(i),g=f.subarray(0,i),this[T]-=i)}return this.emit("data",g),!this[C].length&&!this[G]&&this.emit("drain"),g}end(i,g,f){return typeof i=="function"&&(f=i,i=void 0),typeof g=="function"&&(f=g,g="utf8"),i!==void 0&&this.write(i,g),f&&this.once("end",f),this[G]=!0,this.writable=!1,(this[v]||!this[dt])&&this[H](),this}[st](){this[x]||(!this[Y]&&!this[F].length&&(this[M]=!0),this[dt]=!1,this[v]=!0,this.emit("resume"),this[C].length?this[Ot]():this[G]?this[H]():this.emit("drain"))}resume(){return this[st]()}pause(){this[v]=!1,this[dt]=!0,this[M]=!1}get destroyed(){return this[x]}get flowing(){return this[v]}get paused(){return this[dt]}[Yt](i){this[k]?this[T]+=1:this[T]+=i.length,this[C].push(i)}[Ft](){return this[k]?this[T]-=1:this[T]-=this[C][0].length,this[C].shift()}[Ot](i=!1){do{}while(this[Le](this[Ft]())&&this[C].length);!i&&!this[C].length&&!this[G]&&this.emit("drain")}[Le](i){return this.emit("data",i),this[v]}pipe(i,g){if(this[x])return i;this[M]=!1;let f=this[K];return g=g||{},i===Ne.stdout||i===Ne.stderr?g.end=!1:g.end=g.end!==!1,g.proxyErrors=!!g.proxyErrors,f?g.end&&i.end():(this[F].push(g.proxyErrors?new te(this,i,g):new Mt(this,i,g)),this[B]?mt((()=>this[st]())):this[st]()),i}unpipe(i){let g=this[F].find((g=>g.dest===i));g&&(this[F].length===1?(this[v]&&this[Y]===0&&(this[v]=!1),this[F]=[]):this[F].splice(this[F].indexOf(g),1),g.unpipe())}addListener(i,g){return this.on(i,g)}on(i,g){let f=super.on(i,g);if(i==="data")this[M]=!1,this[Y]++,!this[F].length&&!this[v]&&this[st]();else if(i==="readable"&&this[T]!==0)super.emit("readable");else if(ci(i)&&this[K])super.emit(i),this.removeAllListeners(i);else if(i==="error"&&this[ut]){let i=g;this[B]?mt((()=>i.call(this,this[ut]))):i.call(this,this[ut])}return f}removeListener(i,g){return this.off(i,g)}off(i,g){let f=super.off(i,g);return i==="data"&&(this[Y]=this.listeners("data").length,this[Y]===0&&!this[M]&&!this[F].length&&(this[v]=!1)),f}removeAllListeners(i){let g=super.removeAllListeners(i);return(i==="data"||i===void 0)&&(this[Y]=0,!this[M]&&!this[F].length&&(this[v]=!1)),g}get emittedEnd(){return this[K]}[H](){!this[kt]&&!this[K]&&!this[x]&&this[C].length===0&&this[G]&&(this[kt]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Rt]&&this.emit("close"),this[kt]=!1)}emit(i,...g){let f=g[0];if(i!=="error"&&i!=="close"&&i!==x&&this[x])return!1;if(i==="data")return!this[k]&&!f?!1:this[B]?(mt((()=>this[Jt](f))),!0):this[Jt](f);if(i==="end")return this[We]();if(i==="close"){if(this[Rt]=!0,!this[K]&&!this[x])return!1;let i=super.emit("close");return this.removeAllListeners("close"),i}else if(i==="error"){this[ut]=f,super.emit(Xt,f);let i=!this[pt]||this.listeners("error").length?super.emit("error",f):!1;return this[H](),i}else if(i==="resume"){let i=super.emit("resume");return this[H](),i}else if(i==="finish"||i==="prefinish"){let g=super.emit(i);return this.removeAllListeners(i),g}let E=super.emit(i,...g);return this[H](),E}[Jt](i){for(let g of this[F])g.dest.write(i)===!1&&this.pause();let g=this[M]?!1:super.emit("data",i);return this[H](),g}[We](){return this[K]?!1:(this[K]=!0,this.readable=!1,this[B]?(mt((()=>this[Zt]())),!0):this[Zt]())}[Zt](){if(this[et]){let i=this[et].end();if(i){for(let g of this[F])g.dest.write(i);this[M]||super.emit("data",i)}}for(let i of this[F])i.end();let i=super.emit("end");return this.removeAllListeners("end"),i}async collect(){let i=Object.assign([],{dataLength:0});this[k]||(i.dataLength=0);let g=this.promise();return this.on("data",(g=>{i.push(g),this[k]||(i.dataLength+=g.length)})),await g,i}async concat(){if(this[k])throw new Error("cannot concat in objectMode");let i=await this.collect();return this[P]?i.join(""):Buffer.concat(i,i.dataLength)}async promise(){return new Promise(((i,g)=>{this.on(x,(()=>g(new Error("stream destroyed")))),this.on("error",(i=>g(i))),this.on("end",(()=>i()))}))}[Symbol.asyncIterator](){this[M]=!1;let i=!1,e=async()=>(this.pause(),i=!0,{value:void 0,done:!0});return{next:()=>{if(i)return e();let g=this.read();if(g!==null)return Promise.resolve({done:!1,value:g});if(this[G])return e();let f,E,h=i=>{this.off("data",a),this.off("end",l),this.off(x,u),e(),E(i)},a=i=>{this.off("error",h),this.off("end",l),this.off(x,u),this.pause(),f({value:i,done:!!this[G]})},l=()=>{this.off("error",h),this.off("data",a),this.off(x,u),e(),f({done:!0,value:void 0})},u=()=>h(new Error("stream destroyed"));return new Promise(((i,g)=>{E=g,f=i,this.once(x,u),this.once("error",h),this.once("end",l),this.once("data",a)}))},throw:e,return:e,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[M]=!1;let i=!1,e=()=>(this.pause(),this.off(Xt,e),this.off(x,e),this.off("end",e),i=!0,{done:!0,value:void 0}),s=()=>{if(i)return e();let g=this.read();return g===null?e():{done:!1,value:g}};return this.once("end",e),this.once(Xt,e),this.once(x,e),{next:s,throw:e,return:e,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(i){if(this[x])return i?this.emit("error",i):this.emit(x),this;this[x]=!0,this[M]=!0,this[C].length=0,this[T]=0;let g=this;return typeof g.close=="function"&&!this[Rt]&&g.close(),i?this.emit("error",i):this.emit(x),this}static get isStream(){return oi}};var vi=external_fs_.realpathSync.native,wt={lstatSync:external_fs_.lstatSync,readdir:external_fs_.readdir,readdirSync:external_fs_.readdirSync,readlinkSync:external_fs_.readlinkSync,realpathSync:vi,promises:{lstat:external_node_fs_promises_namespaceObject.lstat,readdir:external_node_fs_promises_namespaceObject.readdir,readlink:external_node_fs_promises_namespaceObject.readlink,realpath:external_node_fs_promises_namespaceObject.realpath}},Ue=i=>!i||i===wt||i===external_node_fs_namespaceObject_0?wt:{...wt,...i,promises:{...wt.promises,...i.promises||{}}},$e=/^\\\\\?\\([a-z]:)\\?$/i,Ri=i=>i.replace(/\//g,"\\").replace($e,"$1\\"),Oi=/[\\\/]/,L=0,Ge=1,He=2,U=4,qe=6,Ke=8,X=10,Ve=12,_=15,gt=~_,se=16,je=32,yt=64,j=128,Nt=256,Lt=512,Ie=yt|j|Lt,Fi=1023,ie=i=>i.isFile()?Ke:i.isDirectory()?U:i.isSymbolicLink()?X:i.isCharacterDevice()?He:i.isBlockDevice()?qe:i.isSocket()?Ve:i.isFIFO()?Ge:L,ze=new ft({max:2**12}),bt=i=>{let g=ze.get(i);if(g)return g;let f=i.normalize("NFKD");return ze.set(i,f),f},Be=new ft({max:2**12}),_t=i=>{let g=Be.get(i);if(g)return g;let f=bt(i.toLowerCase());return Be.set(i,f),f},Wt=class extends ft{constructor(){super({max:256})}},ne=class extends ft{constructor(i=16*1024){super({maxSize:i,sizeCalculation:i=>i.length+1})}},Ye=Symbol("PathScurry setAsCwd"),R=class{name;root;roots;parent;nocase;isCWD=!1;#E;#p;get dev(){return this.#p}#C;get mode(){return this.#C}#I;get nlink(){return this.#I}#Q;get uid(){return this.#Q}#B;get gid(){return this.#B}#m;get rdev(){return this.#m}#y;get blksize(){return this.#y}#w;get ino(){return this.#w}#b;get size(){return this.#b}#k;get blocks(){return this.#k}#S;get atimeMs(){return this.#S}#R;get mtimeMs(){return this.#R}#v;get ctimeMs(){return this.#v}#D;get birthtimeMs(){return this.#D}#N;get atime(){return this.#N}#F;get mtime(){return this.#F}#T;get ctime(){return this.#T}#_;get birthtime(){return this.#_}#L;#M;#x;#U;#O;#P;#Y;#G;#K;#X;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(i,g=L,f,E,p,y,b){this.name=i,this.#L=p?_t(i):bt(i),this.#Y=g&Fi,this.nocase=p,this.roots=E,this.root=f||this,this.#G=y,this.#x=b.fullpath,this.#O=b.relative,this.#P=b.relativePosix,this.parent=b.parent,this.parent?this.#E=this.parent.#E:this.#E=Ue(b.fs)}depth(){return this.#M!==void 0?this.#M:this.parent?this.#M=this.parent.depth()+1:this.#M=0}childrenCache(){return this.#G}resolve(i){if(!i)return this;let g=this.getRootString(i),f=i.substring(g.length).split(this.splitSep);return g?this.getRoot(g).#ee(f):this.#ee(f)}#ee(i){let g=this;for(let f of i)g=g.child(f);return g}children(){let i=this.#G.get(this);if(i)return i;let g=Object.assign([],{provisional:0});return this.#G.set(this,g),this.#Y&=~se,g}child(i,g){if(i===""||i===".")return this;if(i==="..")return this.parent||this;let f=this.children(),E=this.nocase?_t(i):bt(i);for(let i of f)if(i.#L===E)return i;let p=this.parent?this.sep:"",y=this.#x?this.#x+p+i:void 0,b=this.newChild(i,L,{...g,parent:this,fullpath:y});return this.canReaddir()||(b.#Y|=j),f.push(b),b}relative(){if(this.isCWD)return"";if(this.#O!==void 0)return this.#O;let i=this.name,g=this.parent;if(!g)return this.#O=this.name;let f=g.relative();return f+(!f||!g.parent?"":this.sep)+i}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#P!==void 0)return this.#P;let i=this.name,g=this.parent;if(!g)return this.#P=this.fullpathPosix();let f=g.relativePosix();return f+(!f||!g.parent?"":"/")+i}fullpath(){if(this.#x!==void 0)return this.#x;let i=this.name,g=this.parent;if(!g)return this.#x=this.name;let f=g.fullpath()+(g.parent?this.sep:"")+i;return this.#x=f}fullpathPosix(){if(this.#U!==void 0)return this.#U;if(this.sep==="/")return this.#U=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#U=`//?/${i}`:this.#U=i}let i=this.parent,g=i.fullpathPosix(),f=g+(!g||!i.parent?"":"/")+this.name;return this.#U=f}isUnknown(){return(this.#Y&_)===L}isType(i){return this[`is${i}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#Y&_)===Ke}isDirectory(){return(this.#Y&_)===U}isCharacterDevice(){return(this.#Y&_)===He}isBlockDevice(){return(this.#Y&_)===qe}isFIFO(){return(this.#Y&_)===Ge}isSocket(){return(this.#Y&_)===Ve}isSymbolicLink(){return(this.#Y&X)===X}lstatCached(){return this.#Y&je?this:void 0}readlinkCached(){return this.#K}realpathCached(){return this.#X}readdirCached(){let i=this.children();return i.slice(0,i.provisional)}canReadlink(){if(this.#K)return!0;if(!this.parent)return!1;let i=this.#Y&_;return!(i!==L&&i!==X||this.#Y&Nt||this.#Y&j)}calledReaddir(){return!!(this.#Y&se)}isENOENT(){return!!(this.#Y&j)}isNamed(i){return this.nocase?this.#L===_t(i):this.#L===bt(i)}async readlink(){let i=this.#K;if(i)return i;if(this.canReadlink()&&this.parent)try{let i=await this.#E.promises.readlink(this.fullpath()),g=(await this.parent.realpath())?.resolve(i);if(g)return this.#K=g}catch(i){this.#q(i.code);return}}readlinkSync(){let i=this.#K;if(i)return i;if(this.canReadlink()&&this.parent)try{let i=this.#E.readlinkSync(this.fullpath()),g=this.parent.realpathSync()?.resolve(i);if(g)return this.#K=g}catch(i){this.#q(i.code);return}}#$(i){this.#Y|=se;for(let g=i.provisional;g<i.length;g++){let f=i[g];f&&f.#j()}}#j(){this.#Y&j||(this.#Y=(this.#Y|j)&gt,this.#Z())}#Z(){let i=this.children();i.provisional=0;for(let g of i)g.#j()}#te(){this.#Y|=Lt,this.#ne()}#ne(){if(this.#Y&yt)return;let i=this.#Y;(i&_)===U&&(i&=gt),this.#Y=i|yt,this.#Z()}#se(i=""){i==="ENOTDIR"||i==="EPERM"?this.#ne():i==="ENOENT"?this.#j():this.children().provisional=0}#W(i=""){i==="ENOTDIR"?this.parent.#ne():i==="ENOENT"&&this.#j()}#q(i=""){let g=this.#Y;g|=Nt,i==="ENOENT"&&(g|=j),(i==="EINVAL"||i==="UNKNOWN")&&(g&=gt),this.#Y=g,i==="ENOTDIR"&&this.parent&&this.parent.#ne()}#Ae(i,g){return this.#J(i,g)||this.#re(i,g)}#re(i,g){let f=ie(i),E=this.newChild(i.name,f,{parent:this}),p=E.#Y&_;return p!==U&&p!==X&&p!==L&&(E.#Y|=yt),g.unshift(E),g.provisional++,E}#J(i,g){for(let f=g.provisional;f<g.length;f++){let E=g[f];if((this.nocase?_t(i.name):bt(i.name))===E.#L)return this.#H(i,E,f,g)}}#H(i,g,f,E){let p=g.name;return g.#Y=g.#Y&gt|ie(i),p!==i.name&&(g.name=i.name),f!==E.provisional&&(f===E.length-1?E.pop():E.splice(f,1),E.unshift(g)),E.provisional++,g}async lstat(){if((this.#Y&j)===0)try{return this.#ie(await this.#E.promises.lstat(this.fullpath())),this}catch(i){this.#W(i.code)}}lstatSync(){if((this.#Y&j)===0)try{return this.#ie(this.#E.lstatSync(this.fullpath())),this}catch(i){this.#W(i.code)}}#ie(i){let{atime:g,atimeMs:f,birthtime:E,birthtimeMs:p,blksize:y,blocks:b,ctime:S,ctimeMs:J,dev:Z,gid:$,ino:z,mode:ee,mtime:re,mtimeMs:Pe,nlink:$t,rdev:tn,size:sn,uid:nn}=i;this.#N=g,this.#S=f,this.#_=E,this.#D=p,this.#y=y,this.#k=b,this.#T=S,this.#v=J,this.#p=Z,this.#B=$,this.#w=z,this.#C=ee,this.#F=re,this.#R=Pe,this.#I=$t,this.#m=tn,this.#b=sn,this.#Q=nn;let rn=ie(i);this.#Y=this.#Y&gt|rn|je,rn!==L&&rn!==U&&rn!==X&&(this.#Y|=yt)}#V=[];#z=!1;#oe(i){this.#z=!1;let g=this.#V.slice();this.#V.length=0,g.forEach((g=>g(null,i)))}readdirCB(i,g=!1){if(!this.canReaddir()){g?i(null,[]):queueMicrotask((()=>i(null,[])));return}let f=this.children();if(this.calledReaddir()){let E=f.slice(0,f.provisional);g?i(null,E):queueMicrotask((()=>i(null,E)));return}if(this.#V.push(i),this.#z)return;this.#z=!0;let E=this.fullpath();this.#E.readdir(E,{withFileTypes:!0},((i,g)=>{if(i)this.#se(i.code),f.provisional=0;else{for(let i of g)this.#Ae(i,f);this.#$(f)}this.#oe(f.slice(0,f.provisional))}))}#ae;async readdir(){if(!this.canReaddir())return[];let i=this.children();if(this.calledReaddir())return i.slice(0,i.provisional);let g=this.fullpath();if(this.#ae)await this.#ae;else{let s=()=>{};this.#ae=new Promise((i=>s=i));try{for(let f of await this.#E.promises.readdir(g,{withFileTypes:!0}))this.#Ae(f,i);this.#$(i)}catch(g){this.#se(g.code),i.provisional=0}this.#ae=void 0,s()}return i.slice(0,i.provisional)}readdirSync(){if(!this.canReaddir())return[];let i=this.children();if(this.calledReaddir())return i.slice(0,i.provisional);let g=this.fullpath();try{for(let f of this.#E.readdirSync(g,{withFileTypes:!0}))this.#Ae(f,i);this.#$(i)}catch(g){this.#se(g.code),i.provisional=0}return i.slice(0,i.provisional)}canReaddir(){if(this.#Y&Ie)return!1;let i=_&this.#Y;return i===L||i===U||i===X}shouldWalk(i,g){return(this.#Y&U)===U&&!(this.#Y&Ie)&&!i.has(this)&&(!g||g(this))}async realpath(){if(this.#X)return this.#X;if(!((Lt|Nt|j)&this.#Y))try{let i=await this.#E.promises.realpath(this.fullpath());return this.#X=this.resolve(i)}catch{this.#te()}}realpathSync(){if(this.#X)return this.#X;if(!((Lt|Nt|j)&this.#Y))try{let i=this.#E.realpathSync(this.fullpath());return this.#X=this.resolve(i)}catch{this.#te()}}[Ye](i){if(i===this)return;i.isCWD=!1,this.isCWD=!0;let g=new Set([]),f=[],E=this;for(;E&&E.parent;)g.add(E),E.#O=f.join(this.sep),E.#P=f.join("/"),E=E.parent,f.push("..");for(E=i;E&&E.parent&&!g.has(E);)E.#O=void 0,E.#P=void 0,E=E.parent}},Pt=class n extends R{sep="\\";splitSep=Oi;constructor(i,g=L,f,E,p,y,b){super(i,g,f,E,p,y,b)}newChild(i,g=L,f={}){return new n(i,g,this.root,this.roots,this.nocase,this.childrenCache(),f)}getRootString(i){return external_node_path_namespaceObject.win32.parse(i).root}getRoot(i){if(i=Ri(i.toUpperCase()),i===this.root.name)return this.root;for(let[g,f]of Object.entries(this.roots))if(this.sameRoot(i,g))return this.roots[i]=f;return this.roots[i]=new it(i,this).root}sameRoot(i,g=this.root.name){return i=i.toUpperCase().replace(/\//g,"\\").replace($e,"$1\\"),i===g}},jt=class n extends R{splitSep="/";sep="/";constructor(i,g=L,f,E,p,y,b){super(i,g,f,E,p,y,b)}getRootString(i){return i.startsWith("/")?"/":""}getRoot(i){return this.root}newChild(i,g=L,f={}){return new n(i,g,this.root,this.roots,this.nocase,this.childrenCache(),f)}},It=class{root;rootPath;roots;cwd;#E;#p;#C;nocase;#I;constructor(i=process.cwd(),g,f,{nocase:E,childrenCacheSize:p=16*1024,fs:y=wt}={}){this.#I=Ue(y),(i instanceof URL||i.startsWith("file://"))&&(i=(0,external_node_url_namespaceObject.fileURLToPath)(i));let b=g.resolve(i);this.roots=Object.create(null),this.rootPath=this.parseRootPath(b),this.#E=new Wt,this.#p=new Wt,this.#C=new ne(p);let S=b.substring(this.rootPath.length).split(f);if(S.length===1&&!S[0]&&S.pop(),E===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=E,this.root=this.newRoot(this.#I),this.roots[this.rootPath]=this.root;let J=this.root,Z=S.length-1,$=g.sep,z=this.rootPath,ee=!1;for(let i of S){let g=Z--;J=J.child(i,{relative:new Array(g).fill("..").join($),relativePosix:new Array(g).fill("..").join("/"),fullpath:z+=(ee?"":$)+i}),ee=!0}this.cwd=J}depth(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),i.depth()}childrenCache(){return this.#C}resolve(...i){let g="";for(let f=i.length-1;f>=0;f--){let E=i[f];if(!(!E||E===".")&&(g=g?`${E}/${g}`:E,this.isAbsolute(E)))break}let f=this.#E.get(g);if(f!==void 0)return f;let E=this.cwd.resolve(g).fullpath();return this.#E.set(g,E),E}resolvePosix(...i){let g="";for(let f=i.length-1;f>=0;f--){let E=i[f];if(!(!E||E===".")&&(g=g?`${E}/${g}`:E,this.isAbsolute(E)))break}let f=this.#p.get(g);if(f!==void 0)return f;let E=this.cwd.resolve(g).fullpathPosix();return this.#p.set(g,E),E}relative(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),i.relative()}relativePosix(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),i.relativePosix()}basename(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),i.name}dirname(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),(i.parent||i).fullpath()}async readdir(i=this.cwd,g={withFileTypes:!0}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f}=g;if(i.canReaddir()){let g=await i.readdir();return f?g:g.map((i=>i.name))}else return[]}readdirSync(i=this.cwd,g={withFileTypes:!0}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f=!0}=g;return i.canReaddir()?f?i.readdirSync():i.readdirSync().map((i=>i.name)):[]}async lstat(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),i.lstat()}lstatSync(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),i.lstatSync()}async readlink(i=this.cwd,{withFileTypes:g}={withFileTypes:!1}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i.withFileTypes,i=this.cwd);let f=await i.readlink();return g?f:f?.fullpath()}readlinkSync(i=this.cwd,{withFileTypes:g}={withFileTypes:!1}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i.withFileTypes,i=this.cwd);let f=i.readlinkSync();return g?f:f?.fullpath()}async realpath(i=this.cwd,{withFileTypes:g}={withFileTypes:!1}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i.withFileTypes,i=this.cwd);let f=await i.realpath();return g?f:f?.fullpath()}realpathSync(i=this.cwd,{withFileTypes:g}={withFileTypes:!1}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i.withFileTypes,i=this.cwd);let f=i.realpathSync();return g?f:f?.fullpath()}async walk(i=this.cwd,g={}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f=!0,follow:E=!1,filter:p,walkFilter:y}=g,b=[];(!p||p(i))&&b.push(f?i:i.fullpath());let S=new Set,l=(i,g)=>{S.add(i),i.readdirCB(((i,J)=>{if(i)return g(i);let Z=J.length;if(!Z)return g();let w=()=>{--Z===0&&g()};for(let i of J)(!p||p(i))&&b.push(f?i:i.fullpath()),E&&i.isSymbolicLink()?i.realpath().then((i=>i?.isUnknown()?i.lstat():i)).then((i=>i?.shouldWalk(S,y)?l(i,w):w())):i.shouldWalk(S,y)?l(i,w):w()}),!0)},J=i;return new Promise(((i,g)=>{l(J,(f=>{if(f)return g(f);i(b)}))}))}walkSync(i=this.cwd,g={}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f=!0,follow:E=!1,filter:p,walkFilter:y}=g,b=[];(!p||p(i))&&b.push(f?i:i.fullpath());let S=new Set([i]);for(let i of S){let g=i.readdirSync();for(let i of g){(!p||p(i))&&b.push(f?i:i.fullpath());let g=i;if(i.isSymbolicLink()){if(!(E&&(g=i.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(S,y)&&S.add(g)}}return b}[Symbol.asyncIterator](){return this.iterate()}iterate(i=this.cwd,g={}){return typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd),this.stream(i,g)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(i=this.cwd,g={}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f=!0,follow:E=!1,filter:p,walkFilter:y}=g;(!p||p(i))&&(yield f?i:i.fullpath());let b=new Set([i]);for(let i of b){let g=i.readdirSync();for(let i of g){(!p||p(i))&&(yield f?i:i.fullpath());let g=i;if(i.isSymbolicLink()){if(!(E&&(g=i.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(b,y)&&b.add(g)}}}stream(i=this.cwd,g={}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f=!0,follow:E=!1,filter:p,walkFilter:y}=g,b=new V({objectMode:!0});(!p||p(i))&&b.write(f?i:i.fullpath());let S=new Set,J=[i],Z=0,c=()=>{let i=!1;for(;!i;){let g=J.shift();if(!g){Z===0&&b.end();return}Z++,S.add(g);let m=(g,z,ee=!1)=>{if(g)return b.emit("error",g);if(E&&!ee){let i=[];for(let g of z)g.isSymbolicLink()&&i.push(g.realpath().then((i=>i?.isUnknown()?i.lstat():i)));if(i.length){Promise.all(i).then((()=>m(null,z,!0)));return}}for(let g of z)g&&(!p||p(g))&&(b.write(f?g:g.fullpath())||(i=!0));Z--;for(let i of z){let g=i.realpathCached()||i;g.shouldWalk(S,y)&&J.push(g)}i&&!b.flowing?b.once("drain",c):$||c()},$=!0;g.readdirCB(m,!0),$=!1}};return c(),b}streamSync(i=this.cwd,g={}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f=!0,follow:E=!1,filter:p,walkFilter:y}=g,b=new V({objectMode:!0}),S=new Set;(!p||p(i))&&b.write(f?i:i.fullpath());let J=[i],Z=0,c=()=>{let i=!1;for(;!i;){let g=J.shift();if(!g){Z===0&&b.end();return}Z++,S.add(g);let $=g.readdirSync();for(let g of $)(!p||p(g))&&(b.write(f?g:g.fullpath())||(i=!0));Z--;for(let i of $){let g=i;if(i.isSymbolicLink()){if(!(E&&(g=i.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(S,y)&&J.push(g)}}i&&!b.flowing&&b.once("drain",c)};return c(),b}chdir(i=this.cwd){let g=this.cwd;this.cwd=typeof i=="string"?this.cwd.resolve(i):i,this.cwd[Ye](g)}},it=class extends It{sep="\\";constructor(i=process.cwd(),g={}){let{nocase:f=!0}=g;super(i,external_node_path_namespaceObject.win32,"\\",{...g,nocase:f}),this.nocase=f;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(i){return external_node_path_namespaceObject.win32.parse(i).root.toUpperCase()}newRoot(i){return new Pt(this.rootPath,U,void 0,this.roots,this.nocase,this.childrenCache(),{fs:i})}isAbsolute(i){return i.startsWith("/")||i.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(i)}},rt=class extends It{sep="/";constructor(i=process.cwd(),g={}){let{nocase:f=!1}=g;super(i,external_node_path_namespaceObject.posix,"/",{...g,nocase:f}),this.nocase=f}parseRootPath(i){return"/"}newRoot(i){return new jt(this.rootPath,U,void 0,this.roots,this.nocase,this.childrenCache(),{fs:i})}isAbsolute(i){return i.startsWith("/")}},St=class extends rt{constructor(i=process.cwd(),g={}){let{nocase:f=!0}=g;super(i,{...g,nocase:f})}},Cr=process.platform==="win32"?Pt:jt,Xe=process.platform==="win32"?it:process.platform==="darwin"?St:rt;var Di=i=>i.length>=1,Mi=i=>i.length>=1,Ni=Symbol.for("nodejs.util.inspect.custom"),nt=class n{#E;#p;#C;length;#I;#Q;#B;#m;#y;#w;#b=!0;constructor(i,g,f,E){if(!Di(i))throw new TypeError("empty pattern list");if(!Mi(g))throw new TypeError("empty glob list");if(g.length!==i.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=i.length,f<0||f>=this.length)throw new TypeError("index out of range");if(this.#E=i,this.#p=g,this.#C=f,this.#I=E,this.#C===0){if(this.isUNC()){let[i,g,f,E,...p]=this.#E,[y,b,S,J,...Z]=this.#p;p[0]===""&&(p.shift(),Z.shift());let $=[i,g,f,E,""].join("/"),z=[y,b,S,J,""].join("/");this.#E=[$,...p],this.#p=[z,...Z],this.length=this.#E.length}else if(this.isDrive()||this.isAbsolute()){let[i,...g]=this.#E,[f,...E]=this.#p;g[0]===""&&(g.shift(),E.shift());let p=i+"/",y=f+"/";this.#E=[p,...g],this.#p=[y,...E],this.length=this.#E.length}}}[Ni](){return"Pattern <"+this.#p.slice(this.#C).join("/")+">"}pattern(){return this.#E[this.#C]}isString(){return typeof this.#E[this.#C]=="string"}isGlobstar(){return this.#E[this.#C]===A}isRegExp(){return this.#E[this.#C]instanceof RegExp}globString(){return this.#B=this.#B||(this.#C===0?this.isAbsolute()?this.#p[0]+this.#p.slice(1).join("/"):this.#p.join("/"):this.#p.slice(this.#C).join("/"))}hasMore(){return this.length>this.#C+1}rest(){return this.#Q!==void 0?this.#Q:this.hasMore()?(this.#Q=new n(this.#E,this.#p,this.#C+1,this.#I),this.#Q.#w=this.#w,this.#Q.#y=this.#y,this.#Q.#m=this.#m,this.#Q):this.#Q=null}isUNC(){let i=this.#E;return this.#y!==void 0?this.#y:this.#y=this.#I==="win32"&&this.#C===0&&i[0]===""&&i[1]===""&&typeof i[2]=="string"&&!!i[2]&&typeof i[3]=="string"&&!!i[3]}isDrive(){let i=this.#E;return this.#m!==void 0?this.#m:this.#m=this.#I==="win32"&&this.#C===0&&this.length>1&&typeof i[0]=="string"&&/^[a-z]:$/i.test(i[0])}isAbsolute(){let i=this.#E;return this.#w!==void 0?this.#w:this.#w=i[0]===""&&i.length>1||this.isDrive()||this.isUNC()}root(){let i=this.#E[0];return typeof i=="string"&&this.isAbsolute()&&this.#C===0?i:""}checkFollowGlobstar(){return!(this.#C===0||!this.isGlobstar()||!this.#b)}markFollowGlobstar(){return this.#C===0||!this.isGlobstar()||!this.#b?!1:(this.#b=!1,!0)}};var _i=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ot=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(i,{nobrace:g,nocase:f,noext:E,noglobstar:p,platform:y=_i}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=y,this.mmopts={dot:!0,nobrace:g,nocase:f,noext:E,noglobstar:p,optimizationLevel:2,platform:y,nocomment:!0,nonegate:!0};for(let g of i)this.add(g)}add(i){let g=new D(i,this.mmopts);for(let i=0;i<g.set.length;i++){let f=g.set[i],E=g.globParts[i];if(!f||!E)throw new Error("invalid pattern object");for(;f[0]==="."&&E[0]===".";)f.shift(),E.shift();let p=new nt(f,E,0,this.platform),y=new D(p.globString(),this.mmopts),b=E[E.length-1]==="**",S=p.isAbsolute();S?this.absolute.push(y):this.relative.push(y),b&&(S?this.absoluteChildren.push(y):this.relativeChildren.push(y))}}ignored(i){let g=i.fullpath(),f=`${g}/`,E=i.relative()||".",p=`${E}/`;for(let i of this.relative)if(i.match(E)||i.match(p))return!0;for(let i of this.absolute)if(i.match(g)||i.match(f))return!0;return!1}childrenIgnored(i){let g=i.fullpath()+"/",f=(i.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(f))return!0;for(let i of this.absoluteChildren)if(i.match(g))return!0;return!1}};var oe=class n{store;constructor(i=new Map){this.store=i}copy(){return new n(new Map(this.store))}hasWalked(i,g){return this.store.get(i.fullpath())?.has(g.globString())}storeWalked(i,g){let f=i.fullpath(),E=this.store.get(f);E?E.add(g.globString()):this.store.set(f,new Set([g.globString()]))}},he=class{store=new Map;add(i,g,f){let E=(g?2:0)|(f?1:0),p=this.store.get(i);this.store.set(i,p===void 0?E:E&p)}entries(){return[...this.store.entries()].map((([i,g])=>[i,!!(g&2),!!(g&1)]))}},ae=class{store=new Map;add(i,g){if(!i.canReaddir())return;let f=this.store.get(i);f?f.find((i=>i.globString()===g.globString()))||f.push(g):this.store.set(i,[g])}get(i){let g=this.store.get(i);if(!g)throw new Error("attempting to walk unknown path");return g}entries(){return this.keys().map((i=>[i,this.store.get(i)]))}keys(){return[...this.store.keys()].filter((i=>i.canReaddir()))}},Et=class n{hasWalkedCache;matches=new he;subwalks=new ae;patterns;follow;dot;opts;constructor(i,g){this.opts=i,this.follow=!!i.follow,this.dot=!!i.dot,this.hasWalkedCache=g?g.copy():new oe}processPatterns(i,g){this.patterns=g;let f=g.map((g=>[i,g]));for(let[i,g]of f){this.hasWalkedCache.storeWalked(i,g);let f=g.root(),E=g.isAbsolute()&&this.opts.absolute!==!1;if(f){i=i.resolve(f==="/"&&this.opts.root!==void 0?this.opts.root:f);let E=g.rest();if(E)g=E;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let p,y,b=!1;for(;typeof(p=g.pattern())=="string"&&(y=g.rest());)i=i.resolve(p),g=y,b=!0;if(p=g.pattern(),y=g.rest(),b){if(this.hasWalkedCache.hasWalked(i,g))continue;this.hasWalkedCache.storeWalked(i,g)}if(typeof p=="string"){let g=p===".."||p===""||p===".";this.matches.add(i.resolve(p),E,g);continue}else if(p===A){(!i.isSymbolicLink()||this.follow||g.checkFollowGlobstar())&&this.subwalks.add(i,g);let f=y?.pattern(),p=y?.rest();if(!y||(f===""||f===".")&&!p)this.matches.add(i,E,f===""||f===".");else if(f===".."){let g=i.parent||i;p?this.hasWalkedCache.hasWalked(g,p)||this.subwalks.add(g,p):this.matches.add(g,E,!0)}}else p instanceof RegExp&&this.subwalks.add(i,g)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new n(this.opts,this.hasWalkedCache)}filterEntries(i,g){let f=this.subwalks.get(i),E=this.child();for(let i of g)for(let g of f){let f=g.isAbsolute(),p=g.pattern(),y=g.rest();p===A?E.testGlobstar(i,g,y,f):p instanceof RegExp?E.testRegExp(i,p,y,f):E.testString(i,p,y,f)}return E}testGlobstar(i,g,f,E){if((this.dot||!i.name.startsWith("."))&&(g.hasMore()||this.matches.add(i,E,!1),i.canReaddir()&&(this.follow||!i.isSymbolicLink()?this.subwalks.add(i,g):i.isSymbolicLink()&&(f&&g.checkFollowGlobstar()?this.subwalks.add(i,f):g.markFollowGlobstar()&&this.subwalks.add(i,g)))),f){let g=f.pattern();if(typeof g=="string"&&g!==".."&&g!==""&&g!==".")this.testString(i,g,f.rest(),E);else if(g===".."){let g=i.parent||i;this.subwalks.add(g,f)}else g instanceof RegExp&&this.testRegExp(i,g,f.rest(),E)}}testRegExp(i,g,f,E){g.test(i.name)&&(f?this.subwalks.add(i,f):this.matches.add(i,E,!1))}testString(i,g,f,E){i.isNamed(g)&&(f?this.subwalks.add(i,f):this.matches.add(i,E,!1))}};var Li=(i,g)=>typeof i=="string"?new ot([i],g):Array.isArray(i)?new ot(i,g):i,zt=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#E=[];#p;#C;signal;maxDepth;includeChildMatches;constructor(i,g,f){if(this.patterns=i,this.path=g,this.opts=f,this.#C=!f.posix&&f.platform==="win32"?"\\":"/",this.includeChildMatches=f.includeChildMatches!==!1,(f.ignore||!this.includeChildMatches)&&(this.#p=Li(f.ignore??[],f),!this.includeChildMatches&&typeof this.#p.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=f.maxDepth||1/0,f.signal&&(this.signal=f.signal,this.signal.addEventListener("abort",(()=>{this.#E.length=0})))}#I(i){return this.seen.has(i)||!!this.#p?.ignored?.(i)}#Q(i){return!!this.#p?.childrenIgnored?.(i)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let i;for(;!this.paused&&(i=this.#E.shift());)i()}onResume(i){this.signal?.aborted||(this.paused?this.#E.push(i):i())}async matchCheck(i,g){if(g&&this.opts.nodir)return;let f;if(this.opts.realpath){if(f=i.realpathCached()||await i.realpath(),!f)return;i=f}let E=i.isUnknown()||this.opts.stat?await i.lstat():i;if(this.opts.follow&&this.opts.nodir&&E?.isSymbolicLink()){let i=await E.realpath();i&&(i.isUnknown()||this.opts.stat)&&await i.lstat()}return this.matchCheckTest(E,g)}matchCheckTest(i,g){return i&&(this.maxDepth===1/0||i.depth()<=this.maxDepth)&&(!g||i.canReaddir())&&(!this.opts.nodir||!i.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!i.isSymbolicLink()||!i.realpathCached()?.isDirectory())&&!this.#I(i)?i:void 0}matchCheckSync(i,g){if(g&&this.opts.nodir)return;let f;if(this.opts.realpath){if(f=i.realpathCached()||i.realpathSync(),!f)return;i=f}let E=i.isUnknown()||this.opts.stat?i.lstatSync():i;if(this.opts.follow&&this.opts.nodir&&E?.isSymbolicLink()){let i=E.realpathSync();i&&(i?.isUnknown()||this.opts.stat)&&i.lstatSync()}return this.matchCheckTest(E,g)}matchFinish(i,g){if(this.#I(i))return;if(!this.includeChildMatches&&this.#p?.add){let g=`${i.relativePosix()}/**`;this.#p.add(g)}let f=this.opts.absolute===void 0?g:this.opts.absolute;this.seen.add(i);let E=this.opts.mark&&i.isDirectory()?this.#C:"";if(this.opts.withFileTypes)this.matchEmit(i);else if(f){let g=this.opts.posix?i.fullpathPosix():i.fullpath();this.matchEmit(g+E)}else{let g=this.opts.posix?i.relativePosix():i.relative(),f=this.opts.dotRelative&&!g.startsWith(".."+this.#C)?"."+this.#C:"";this.matchEmit(g?f+g+E:"."+E)}}async match(i,g,f){let E=await this.matchCheck(i,f);E&&this.matchFinish(E,g)}matchSync(i,g,f){let E=this.matchCheckSync(i,f);E&&this.matchFinish(E,g)}walkCB(i,g,f){this.signal?.aborted&&f(),this.walkCB2(i,g,new Et(this.opts),f)}walkCB2(i,g,f,E){if(this.#Q(i))return E();if(this.signal?.aborted&&E(),this.paused){this.onResume((()=>this.walkCB2(i,g,f,E)));return}f.processPatterns(i,g);let p=1,o=()=>{--p===0&&E()};for(let[i,g,E]of f.matches.entries())this.#I(i)||(p++,this.match(i,g,E).then((()=>o())));for(let i of f.subwalkTargets()){if(this.maxDepth!==1/0&&i.depth()>=this.maxDepth)continue;p++;let g=i.readdirCached();i.calledReaddir()?this.walkCB3(i,g,f,o):i.readdirCB(((g,E)=>this.walkCB3(i,E,f,o)),!0)}o()}walkCB3(i,g,f,E){f=f.filterEntries(i,g);let p=1,o=()=>{--p===0&&E()};for(let[i,g,E]of f.matches.entries())this.#I(i)||(p++,this.match(i,g,E).then((()=>o())));for(let[i,g]of f.subwalks.entries())p++,this.walkCB2(i,g,f.child(),o);o()}walkCBSync(i,g,f){this.signal?.aborted&&f(),this.walkCB2Sync(i,g,new Et(this.opts),f)}walkCB2Sync(i,g,f,E){if(this.#Q(i))return E();if(this.signal?.aborted&&E(),this.paused){this.onResume((()=>this.walkCB2Sync(i,g,f,E)));return}f.processPatterns(i,g);let p=1,o=()=>{--p===0&&E()};for(let[i,g,E]of f.matches.entries())this.#I(i)||this.matchSync(i,g,E);for(let i of f.subwalkTargets()){if(this.maxDepth!==1/0&&i.depth()>=this.maxDepth)continue;p++;let g=i.readdirSync();this.walkCB3Sync(i,g,f,o)}o()}walkCB3Sync(i,g,f,E){f=f.filterEntries(i,g);let p=1,o=()=>{--p===0&&E()};for(let[i,g,E]of f.matches.entries())this.#I(i)||this.matchSync(i,g,E);for(let[i,g]of f.subwalks.entries())p++,this.walkCB2Sync(i,g,f.child(),o);o()}},xt=class extends zt{matches=new Set;constructor(i,g,f){super(i,g,f)}matchEmit(i){this.matches.add(i)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((i,g)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?g(this.signal.reason):i(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}},vt=class extends zt{results;constructor(i,g,f){super(i,g,f),this.results=new V({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(i){this.results.write(i),this.results.flowing||this.pause()}stream(){let i=this.path;return i.isUnknown()?i.lstat().then((()=>{this.walkCB(i,this.patterns,(()=>this.results.end()))})):this.walkCB(i,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}};var Pi=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",I=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(i,g){if(!g)throw new TypeError("glob options required");if(this.withFileTypes=!!g.withFileTypes,this.signal=g.signal,this.follow=!!g.follow,this.dot=!!g.dot,this.dotRelative=!!g.dotRelative,this.nodir=!!g.nodir,this.mark=!!g.mark,g.cwd?(g.cwd instanceof URL||g.cwd.startsWith("file://"))&&(g.cwd=(0,external_node_url_namespaceObject.fileURLToPath)(g.cwd)):this.cwd="",this.cwd=g.cwd||"",this.root=g.root,this.magicalBraces=!!g.magicalBraces,this.nobrace=!!g.nobrace,this.noext=!!g.noext,this.realpath=!!g.realpath,this.absolute=g.absolute,this.includeChildMatches=g.includeChildMatches!==!1,this.noglobstar=!!g.noglobstar,this.matchBase=!!g.matchBase,this.maxDepth=typeof g.maxDepth=="number"?g.maxDepth:1/0,this.stat=!!g.stat,this.ignore=g.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof i=="string"&&(i=[i]),this.windowsPathsNoEscape=!!g.windowsPathsNoEscape||g.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(i=i.map((i=>i.replace(/\\/g,"/")))),this.matchBase){if(g.noglobstar)throw new TypeError("base matching requires globstar");i=i.map((i=>i.includes("/")?i:`./**/${i}`))}if(this.pattern=i,this.platform=g.platform||Pi,this.opts={...g,platform:this.platform},g.scurry){if(this.scurry=g.scurry,g.nocase!==void 0&&g.nocase!==g.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let i=g.platform==="win32"?it:g.platform==="darwin"?St:g.platform?rt:Xe;this.scurry=new i(this.cwd,{nocase:g.nocase,fs:g.fs})}this.nocase=this.scurry.nocase;let f=this.platform==="darwin"||this.platform==="win32",E={braceExpandMax:1e4,...g,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:f,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},p=this.pattern.map((i=>new D(i,E))),[y,b]=p.reduce(((i,g)=>(i[0].push(...g.set),i[1].push(...g.globParts),i)),[[],[]]);this.patterns=y.map(((i,g)=>{let f=b[g];if(!f)throw new Error("invalid pattern object");return new nt(i,f,0,this.platform)}))}async walk(){return[...await new xt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new xt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new vt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new vt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var le=(i,g={})=>{Array.isArray(i)||(i=[i]);for(let f of i)if(new D(f,g).hasMagic())return!0;return!1};function Bt(i,g={}){return new I(i,g).streamSync()}function Qe(i,g={}){return new I(i,g).stream()}function ts(i,g={}){return new I(i,g).walkSync()}async function Je(i,g={}){return new I(i,g).walk()}function Ut(i,g={}){return new I(i,g).iterateSync()}function es(i,g={}){return new I(i,g).iterate()}var ji=Bt,Ii=Object.assign(Qe,{sync:Bt}),zi=Ut,Bi=Object.assign(es,{sync:Ut}),Ui=Object.assign(ts,{stream:Bt,iterate:Ut}),Ze=Object.assign(Je,{glob:Je,globSync:ts,sync:Ui,globStream:Qe,stream:Ii,globStreamSync:Bt,streamSync:ji,globIterate:es,iterate:Bi,globIterateSync:Ut,iterateSync:zi,Glob:I,hasMagic:le,escape:tt,unescape:W});Ze.glob=Ze;async function glob(i,g={}){const{cwd:f=process.cwd(),absolute:E=false,ignore:p=["node_modules/**","dist/**",".git/**"],dot:y=false}=g;const b=await Ze(i,{cwd:f,absolute:E,ignore:p,dot:y,nodir:true});return b}const ARCHIVE_DIR="archive";const DOC_SCAN_IGNORE=["node_modules/**","dist/**",".git/**",`${ARCHIVE_DIR}/**`];async function findMarkdownFiles(i,g={}){const{ignore:f=[],...E}=g;return glob("**/*.md",{...E,ignore:[...DOC_SCAN_IGNORE,...f],cwd:i,absolute:true})}async function glob_pathExists(i){try{await(0,promises_namespaceObject.stat)(i);return true}catch{return false}}function pathExistsSync(i){return existsSync(i)}async function isDirectory(i){try{const g=await stat(i);return g.isDirectory()}catch{return false}}async function isFile(i){try{const g=await stat(i);return g.isFile()}catch{return false}}async function getSubdirectories(i){try{const g=await readdir(i,{withFileTypes:true});return g.filter((i=>i.isDirectory())).map((g=>join(i,g.name)))}catch{return[]}}function resolvePath(i,g){return resolve(i,g)}function getRelativePath(i,g){return relative(i,g)}function getDirname(i){return dirname(i)}function getBasename(i){return basename(i)}function getExtension(i){return extname(i)}function removeExtension(i){const g=extname(i);return i.slice(0,-g.length)}function normalizePath(i){return i.replace(/\\/g,"/")}async function createScaffold(i){const{rootPath:g,overwrite:f=false,domains:E=registry_getAllDomains(),silent:p=false}=i;const y={success:true,created:[],skipped:[],errors:[]};if(!p){logger.header("Creating Documentation Scaffold");logger.info(`Root path: ${g}`);logger.info(`Domains: ${E.length}`)}try{await createDirectory(g,y,f);await createRootFiles(g,y,f);for(const i of E){await createDomainStructure(g,i,y,f)}await createSpecialDirectories(g,y,f);if(!p){logger.newline();logger.success(`Scaffold created successfully!`);logger.info(`Created: ${y.created.length} files/directories`);if(y.skipped.length>0){logger.warn(`Skipped: ${y.skipped.length} (already exist)`)}}}catch(i){y.success=false;const g=i instanceof Error?i.message:String(i);y.errors.push(g);if(!p){logger.error(`Failed to create scaffold: ${g}`)}}return y}async function createDirectory(i,g,f){const E=await glob_pathExists(i);if(E&&!f){g.skipped.push(i);return}await(0,promises_namespaceObject.mkdir)(i,{recursive:true});g.created.push(i)}async function createFile(i,g,f,E){const p=await glob_pathExists(i);if(p&&!E){f.skipped.push(i);return}await(0,promises_namespaceObject.writeFile)(i,g,"utf-8");f.created.push(i)}async function createRootFiles(i,g,f){const E=generateRootIndex();await createFile((0,external_path_.join)(i,"INDEX.md"),E,g,f);const p=generateRootRegistry();await createFile((0,external_path_.join)(i,"REGISTRY.md"),p,g,f);const y=generateRootReadme();await createFile((0,external_path_.join)(i,"README.md"),y,g,f)}async function createDomainStructure(i,g,f,E){const p=(0,external_path_.join)(i,g);const y=registry_getDomainDefinition(g);await createDirectory(p,f,E);const b=generateDomainIndex(g,y);await createFile((0,external_path_.join)(p,"INDEX.md"),b,f,E);const S=generateDomainRegistry(g,y);await createFile((0,external_path_.join)(p,"REGISTRY.md"),S,f,E)}async function createSpecialDirectories(i,g,f){await createDirectory((0,external_path_.join)(i,"drafts"),g,f);await createDirectory((0,external_path_.join)(i,"reports"),g,f);await createDirectory((0,external_path_.join)(i,ARCHIVE_DIR),g,f);await createFile((0,external_path_.join)(i,"drafts",".gitkeep"),"# This file ensures the drafts directory is tracked by git\n",g,f);await createFile((0,external_path_.join)(i,"reports",".gitkeep"),"# This file ensures the reports directory is tracked by git\n",g,f);await createFile((0,external_path_.join)(i,ARCHIVE_DIR,"README.md"),generateArchiveReadme(),g,f)}function generateArchiveReadme(){return`# Archive\n\nThis folder holds **deprecated documentation** — docs that are retired but\nworth keeping (historical reference, superseded guides, old runbooks).\n\n## Don't move files here by hand — use the command\n\n\`\`\`bash\nhewtd archive <file> --reason "why" # e.g. hewtd archive api/old-webhooks.md\n\`\`\`\n\n\`hewtd archive\` does it properly: it moves the doc into\n\`archive/<same-domain-path>/\`, preserves git history (\`git mv\`), stamps\nlifecycle metadata (\`status: archived\`, \`archived_on\`, \`archived_from\`), and\nregenerates the indexes so the doc cleanly leaves the active set. It also\n**refuses if other active docs still link to the doc** (so you don't create\ndead links) — pass \`--force\` to override after you've reviewed them.\n\n## Reversible\n\n\`\`\`bash\nhewtd unarchive <file> # restores to its original path, status: active\n\`\`\`\n\nThe \`archived_from\` field records the exact restore path, so un-archiving is\nlossless.\n\n## Finding what to archive\n\n\`\`\`bash\nhewtd archive-candidates # advisory list — never moves anything\n\`\`\`\n\nSuggests docs worth retiring, ranked by signal: \`status: deprecated\` (strongest),\n\`superseded_by:\`, orphaned (no inbound links), and age (only when also orphaned).\nAge alone never qualifies a doc — an unchanged doc is often your most important one.\n\n## hewtd ignores this folder\n\nEverything under \`archive/\` is **excluded from every hewtd scan** — \`audit\`,\n\`link-check\`, \`metadata-sync\`, \`integrate\` duplicate-detection, the link\ngraph, and \`search\`. Archived docs are not validated, never appear in any\nINDEX.md / REGISTRY.md, and can't break audit/link-check with stale frontmatter.\n\n> Note: \`archive/\` is a reserved name. You cannot create a custom domain\n> called \`archive\`.\n`}function generateRootReadme(){return`# Documentation\n\nThis documentation system uses a hierarchical, domain-based structure for optimal organization and discoverability.\n\n## Quick Navigation\n\n- **[INDEX.md](INDEX.md)** - Complete document listing with metadata\n- **[REGISTRY.md](REGISTRY.md)** - Quick reference tables\n\n## Domains\n\n| Domain | Description |\n|--------|-------------|\n${registry_getAllDomains().map((i=>`| [${i}](${i}/) | ${registry_getDomainDefinition(i).description} |`)).join("\n")}\n\n## Adding New Documentation\n\n1. Identify the correct domain for your document\n2. Create the file in the domain directory\n3. Add YAML frontmatter with required metadata\n4. Run \`npx hit-em-with-the-docs integrate <file>\` to register\n\n## Metadata Schema\n\nEvery document should include:\n\n\`\`\`yaml\n---\ntitle: "Document Title"\ntier: guide|standard|example|reference|admin\ndomains: [primary-domain]\nstatus: draft|active|deprecated|archived\nlast_updated: 'YYYY-MM-DD'\nversion: '1.0.0'\n---\n\`\`\`\n\n## Maintenance\n\nRun weekly maintenance with:\n\n\`\`\`bash\nnpx hit-em-with-the-docs maintain\n\`\`\`\n\nThis will:\n- Sync metadata across all documents\n- Check for broken links\n- Audit compliance\n- Generate health reports\n`}async function scaffoldExists(i){const g=join(i,"INDEX.md");return pathExists(g)}async function getScaffoldStatus(i){const g=await scaffoldExists(i);if(!g){return{exists:false,domains:[],missingDomains:getAllDomains()}}const f=[];const E=[];for(const g of getAllDomains()){const p=join(i,g);if(await pathExists(p)){f.push(g)}else{E.push(g)}}return{exists:true,domains:f,missingDomains:E}}var gray_matter=__nccwpck_require__(9599);var gray_matter_default=__nccwpck_require__.n(gray_matter);var dist=__nccwpck_require__(8815);function parseFrontmatter(i){const g=gray_matter_default()(i);const f={data:g.data,content:g.content,isEmpty:Object.keys(g.data).length===0};if(g.excerpt){f.excerpt=g.excerpt}return f}function hasFrontmatter(i){return i.trimStart().startsWith("---")}function extractFrontmatterString(i){const g=i.match(/^---\r?\n([\s\S]*?)\r?\n---/);return g?g[1]??null:null}function stringifyFrontmatter(i){return dist.stringify(i,{indent:2,lineWidth:80,singleQuote:true})}function setFrontmatter(i,g){const{content:f}=parseFrontmatter(i);const E=stringifyFrontmatter(g);return`---\n${E}---\n\n${f.trimStart()}`}function mergeFrontmatter(i,g){const{data:f,content:E}=parseFrontmatter(i);const p={...f,...g};const y=stringifyFrontmatter(p);return`---\n${y}---\n\n${E.trimStart()}`}function removeFrontmatter(i){const{content:g}=parseFrontmatter(i);return g.trimStart()}function getFrontmatterField(i,g){const{data:f}=parseFrontmatter(i);return f[g]}function setFrontmatterField(i,g,f){const{data:E,content:p}=parseFrontmatter(i);E[g]=f;const y=stringifyFrontmatter(E);return`---\n${y}---\n\n${p.trimStart()}`}function validateFrontmatter(i,g){const{data:f}=parseFrontmatter(i);const E=g.filter((i=>!(i in f)||f[i]===undefined||f[i]===null));return{valid:E.length===0,missingFields:E}}const KB_ERROR_CODES={FACT_MISSING_ID:"FACT_MISSING_ID",FACT_ID_FILENAME_MISMATCH:"FACT_ID_FILENAME_MISMATCH",FACT_MISSING_PROVENANCE:"FACT_MISSING_PROVENANCE",FACT_INVALID_CONFIDENCE:"FACT_INVALID_CONFIDENCE",FACT_MISSING_LAST_VERIFIED:"FACT_MISSING_LAST_VERIFIED",FACT_VERIFY_COMMAND_MULTILINE_SHEBANG:"FACT_VERIFY_COMMAND_MULTILINE_SHEBANG",INCIDENT_FOLDER_MISSING_NARRATIVE:"INCIDENT_FOLDER_MISSING_NARRATIVE",INCIDENT_FOLDER_MISSING_FACTS:"INCIDENT_FOLDER_MISSING_FACTS",INCIDENT_NARRATIVE_MISSING_DATE:"INCIDENT_NARRATIVE_MISSING_DATE",INCIDENT_NARRATIVE_MISSING_SEVERITY:"INCIDENT_NARRATIVE_MISSING_SEVERITY",INCIDENT_NARRATIVE_INVALID_SEVERITY:"INCIDENT_NARRATIVE_INVALID_SEVERITY",INCIDENT_NARRATIVE_MISSING_RESOLUTION_STATUS:"INCIDENT_NARRATIVE_MISSING_RESOLUTION_STATUS",INCIDENT_NARRATIVE_INVALID_RESOLUTION_STATUS:"INCIDENT_NARRATIVE_INVALID_RESOLUTION_STATUS",INCIDENT_NARRATIVE_MISSING_COMPONENTS:"INCIDENT_NARRATIVE_MISSING_COMPONENTS",INCIDENT_FACTS_MISSING_INCIDENT_ID:"INCIDENT_FACTS_MISSING_INCIDENT_ID",INCIDENT_FACTS_MISSING_PRODUCED:"INCIDENT_FACTS_MISSING_PRODUCED",INCIDENT_FACTS_DANGLING_REF:"INCIDENT_FACTS_DANGLING_REF",PLAYBOOK_SYMPTOM_MISSING_KEY:"PLAYBOOK_SYMPTOM_MISSING_KEY",PLAYBOOK_SYMPTOM_MISSING_TARGET:"PLAYBOOK_SYMPTOM_MISSING_TARGET",PLAYBOOK_SYMPTOM_MISSING_CITES:"PLAYBOOK_SYMPTOM_MISSING_CITES",PLAYBOOK_SYMPTOM_DANGLING_CITE:"PLAYBOOK_SYMPTOM_DANGLING_CITE"};const KB_ERROR_SEVERITY={FACT_MISSING_ID:"error",FACT_ID_FILENAME_MISMATCH:"error",FACT_MISSING_PROVENANCE:"error",FACT_INVALID_CONFIDENCE:"error",FACT_MISSING_LAST_VERIFIED:"error",FACT_VERIFY_COMMAND_MULTILINE_SHEBANG:"warning",INCIDENT_FOLDER_MISSING_NARRATIVE:"error",INCIDENT_FOLDER_MISSING_FACTS:"error",INCIDENT_NARRATIVE_MISSING_DATE:"error",INCIDENT_NARRATIVE_MISSING_SEVERITY:"error",INCIDENT_NARRATIVE_INVALID_SEVERITY:"error",INCIDENT_NARRATIVE_MISSING_RESOLUTION_STATUS:"error",INCIDENT_NARRATIVE_INVALID_RESOLUTION_STATUS:"error",INCIDENT_NARRATIVE_MISSING_COMPONENTS:"error",INCIDENT_FACTS_MISSING_INCIDENT_ID:"error",INCIDENT_FACTS_MISSING_PRODUCED:"error",INCIDENT_FACTS_DANGLING_REF:"error",PLAYBOOK_SYMPTOM_MISSING_KEY:"error",PLAYBOOK_SYMPTOM_MISSING_TARGET:"error",PLAYBOOK_SYMPTOM_MISSING_CITES:"error",PLAYBOOK_SYMPTOM_DANGLING_CITE:"error"};function formatKbError(i,g){return`[${i}] ${g}`}const KB_ERROR_PREFIX_RE=/^\[([A-Z_]+)\]\s+(.*)$/;function parseKbErrorCode(i){const g=i.match(KB_ERROR_PREFIX_RE);if(!g)return null;const f=g[1];const E=g[2]??"";if(!(f in KB_ERROR_SEVERITY))return null;return{code:f,message:E}}const coreIdentitySchema=objectType({title:stringType().min(1,"Title is required"),tier:enumType(TIERS),domains:arrayType(stringType()).min(1,"At least one domain is required"),audience:arrayType(enumType(["all","developers","devops","admin"])).default(["all"]),tags:arrayType(stringType()).default([])});const DOC_STATUS_VALUES=["draft","active","deprecated","archived"];const dateStringSchema=preprocessType((i=>{if(i instanceof Date&&!Number.isNaN(i.getTime())){return i.toISOString().slice(0,10)}return i}),stringType().regex(/^\d{4}-\d{2}-\d{2}$/,"Must be YYYY-MM-DD format"));const statusSchema=objectType({status:stringType().min(1,"status is required"),last_updated:dateStringSchema,version:stringType().regex(/^\d+\.\d+\.\d+$/,"Must be semver format (X.Y.Z)").optional()});const discoverySchema=objectType({purpose:stringType().optional(),related_docs:arrayType(stringType()).optional(),load_priority:numberType().min(1).max(10).optional()});const ownershipSchema=objectType({author:stringType().optional(),maintainer:stringType().optional(),review_frequency:enumType(["weekly","monthly","quarterly","annually"]).optional()});const implementationSchema=objectType({implementation_status:enumType(["planned","in_progress","complete","deprecated"]).optional(),tested:booleanType().optional(),production_ready:booleanType().optional()});const autoGeneratedSchema=objectType({estimated_read_time:stringType().optional(),word_count:numberType().optional(),last_validated:dateStringSchema.optional(),backlinks:arrayType(stringType()).optional()});const FACT_CONFIDENCE_VALUES=["high","medium","low","hypothesis"];const INCIDENT_SEVERITY_VALUES=["low","medium","high","critical"];const INCIDENT_RESOLUTION_VALUES=["resolved","partial","open","planned"];const schema_KEBAB_SLUG_RE=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;const INCIDENT_ID_RE=/^\d{4}-\d{2}-\d{2}-[a-z0-9]+(?:-[a-z0-9]+)*$/;const knowledgeBaseSchema=objectType({id:stringType().min(1).optional(),confidence:stringType().optional(),last_verified:dateStringSchema.optional(),verify_command:stringType().optional(),provenance:arrayType(stringType()).optional(),sources:arrayType(stringType()).optional(),invalidated_by:arrayType(stringType()).optional(),working_dir:stringType().optional(),date:dateStringSchema.optional(),severity:stringType().optional(),resolution_status:stringType().optional(),components:arrayType(stringType()).optional(),incident_id:stringType().optional(),produced:arrayType(stringType()).optional(),strengthened:arrayType(stringType()).optional(),weakened:arrayType(stringType()).optional(),symptoms:arrayType(objectType({alert_name:stringType().optional(),user_phrase:unionType([stringType(),arrayType(stringType())]).optional(),error_pattern:stringType().optional(),severity:enumType(INCIDENT_SEVERITY_VALUES).optional(),target:stringType().min(1).optional(),cites:arrayType(stringType()).optional()})).optional()});const lifecycleSchema=objectType({superseded_by:stringType().optional(),archived_on:dateStringSchema.optional(),archived_from:stringType().optional(),archived_reason:stringType().optional()});const _baseMergedSchema=coreIdentitySchema.merge(statusSchema).merge(discoverySchema).merge(ownershipSchema).merge(implementationSchema).merge(autoGeneratedSchema).merge(knowledgeBaseSchema).merge(lifecycleSchema);const refineVersionRequired=i=>isLifecycleTrackedTier(i.tier)||i.version!==undefined;const refineStatusEnum=i=>isLifecycleTrackedTier(i.tier)||DOC_STATUS_VALUES.includes(i.status);const refineFactRequirements=i=>{if(i.tier!=="fact")return true;const g=[typeof i.id==="string"&&i.id.length>0,typeof i.confidence==="string"&&FACT_CONFIDENCE_VALUES.includes(i.confidence),typeof i.last_verified==="string",Array.isArray(i.provenance)&&i.provenance.length>0];return g.every(Boolean)};const refineIncidentNarrativeRequirements=i=>{if(i.tier!=="incident-narrative")return true;const g=[typeof i.id==="string"&&i.id.length>0,typeof i.date==="string",typeof i.severity==="string"&&INCIDENT_SEVERITY_VALUES.includes(i.severity),typeof i.resolution_status==="string"&&INCIDENT_RESOLUTION_VALUES.includes(i.resolution_status),Array.isArray(i.components)];return g.every(Boolean)};const refineIncidentFactsRequirements=i=>{if(i.tier!=="incident-facts")return true;const g=[typeof i.incident_id==="string"&&i.incident_id.length>0,Array.isArray(i.produced)];return g.every(Boolean)};const refineSymptomsEntries=i=>{if(!Array.isArray(i.symptoms))return true;for(const g of i.symptoms){const i=g.alert_name!==undefined||g.user_phrase!==undefined||g.error_pattern!==undefined;if(!i)return false;if(typeof g.target!=="string"||g.target.length===0)return false;if(!Array.isArray(g.cites)||g.cites.length===0)return false}return true};const MetadataSchema=_baseMergedSchema.refine(refineVersionRequired,{message:"version is required unless tier is plan, fact, incident-narrative, or incident-facts",path:["version"]}).refine(refineStatusEnum,{message:`status must be one of ${DOC_STATUS_VALUES.join("|")} for non-lifecycle-tracked tiers`,path:["status"]}).refine(refineFactRequirements,{message:formatKbError(KB_ERROR_CODES.FACT_MISSING_ID,"fact tier requires id (kebab-case), confidence (high|medium|low|hypothesis), last_verified (YYYY-MM-DD), and provenance (≥1 entry)"),path:["fact"]}).refine(refineIncidentNarrativeRequirements,{message:formatKbError(KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_DATE,"incident-narrative tier requires id, date (YYYY-MM-DD), severity (low|medium|high|critical), resolution_status (resolved|partial|open|planned), and components (array)"),path:["incident-narrative"]}).refine(refineIncidentFactsRequirements,{message:formatKbError(KB_ERROR_CODES.INCIDENT_FACTS_MISSING_INCIDENT_ID,"incident-facts tier requires incident_id and produced (array, may be empty)"),path:["incident-facts"]}).refine(refineSymptomsEntries,{message:formatKbError(KB_ERROR_CODES.PLAYBOOK_SYMPTOM_MISSING_KEY,"each symptoms[] entry requires one of alert_name|user_phrase|error_pattern AND a target AND a non-empty cites[] array"),path:["symptoms"]});const PartialMetadataSchema=_baseMergedSchema.partial();const REQUIRED_FIELDS=["title","tier","domains","status","last_updated","version"];const TIER_REQUIRED_EXTENSIONS={fact:["id","confidence","last_verified","provenance"],"incident-narrative":["id","date","severity","resolution_status","components"],"incident-facts":["incident_id","produced"]};const OPTIONAL_FIELDS_DEFAULTS={audience:["all"],tags:[],backlinks:[]};const AUTO_GENERATED_FIELDS=null&&["estimated_read_time","word_count","last_validated","backlinks"];const ALL_METADATA_FIELDS=["title","tier","domains","audience","tags","status","last_updated","version","purpose","related_docs","load_priority","author","maintainer","review_frequency","implementation_status","tested","production_ready","estimated_read_time","word_count","last_validated","backlinks"];function validateMetadata(i){const g=MetadataSchema.safeParse(i);if(g.success){return{valid:true,errors:[],data:g.data}}const f=g.error.errors.map((i=>`${i.path.join(".")}: ${i.message}`));return{valid:false,errors:f}}function isDateLike(i){if(typeof i==="string")return/^\d{4}-\d{2}-\d{2}$/.test(i);if(i instanceof Date&&!Number.isNaN(i.getTime()))return true;return false}function validateKnowledgeBaseFields(i){const g=[];const f=typeof i.tier==="string"?i.tier:undefined;if(f==="fact"){if(typeof i.id!=="string"||i.id.length===0){g.push({code:KB_ERROR_CODES.FACT_MISSING_ID,message:"fact tier requires an id (kebab-case slug)",path:"id"})}else if(!schema_KEBAB_SLUG_RE.test(i.id)){g.push({code:KB_ERROR_CODES.FACT_MISSING_ID,message:`fact id must be kebab-case (got: ${i.id})`,path:"id"})}if(typeof i.confidence!=="string"){g.push({code:KB_ERROR_CODES.FACT_INVALID_CONFIDENCE,message:`fact tier requires confidence (one of ${FACT_CONFIDENCE_VALUES.join("|")})`,path:"confidence"})}else if(!FACT_CONFIDENCE_VALUES.includes(i.confidence)){g.push({code:KB_ERROR_CODES.FACT_INVALID_CONFIDENCE,message:`confidence must be one of ${FACT_CONFIDENCE_VALUES.join("|")} (got: ${i.confidence})`,path:"confidence"})}if(i.last_verified===undefined||i.last_verified===null){g.push({code:KB_ERROR_CODES.FACT_MISSING_LAST_VERIFIED,message:"fact tier requires last_verified (YYYY-MM-DD)",path:"last_verified"})}else if(!isDateLike(i.last_verified)){g.push({code:KB_ERROR_CODES.FACT_MISSING_LAST_VERIFIED,message:`last_verified must be YYYY-MM-DD (got: ${String(i.last_verified)})`,path:"last_verified"})}if(!Array.isArray(i.provenance)||i.provenance.length===0){g.push({code:KB_ERROR_CODES.FACT_MISSING_PROVENANCE,message:"fact tier requires at least one provenance entry",path:"provenance"})}if(typeof i.verify_command==="string"){const f=i.verify_command.trim();if(f.includes("\n")&&!f.startsWith("#!")){g.push({code:KB_ERROR_CODES.FACT_VERIFY_COMMAND_MULTILINE_SHEBANG,message:"multi-line verify_command without a shebang line — fine, but consider adding `#!/usr/bin/env bash` for clarity",path:"verify_command"})}}}if(f==="incident-narrative"){if(typeof i.id!=="string"||i.id.length===0){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_DATE,message:"incident-narrative tier requires an id (YYYY-MM-DD-slug)",path:"id"})}else if(!INCIDENT_ID_RE.test(i.id)){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_DATE,message:`incident id must match YYYY-MM-DD-<slug> (got: ${i.id})`,path:"id"})}if(i.date===undefined||i.date===null){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_DATE,message:"incident-narrative tier requires date (YYYY-MM-DD)",path:"date"})}else if(!isDateLike(i.date)){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_DATE,message:`date must be YYYY-MM-DD (got: ${String(i.date)})`,path:"date"})}if(typeof i.severity!=="string"){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_SEVERITY,message:`incident-narrative tier requires severity (${INCIDENT_SEVERITY_VALUES.join("|")})`,path:"severity"})}else if(!INCIDENT_SEVERITY_VALUES.includes(i.severity)){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_INVALID_SEVERITY,message:`severity must be one of ${INCIDENT_SEVERITY_VALUES.join("|")} (got: ${i.severity})`,path:"severity"})}if(typeof i.resolution_status!=="string"){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_RESOLUTION_STATUS,message:`incident-narrative tier requires resolution_status (${INCIDENT_RESOLUTION_VALUES.join("|")})`,path:"resolution_status"})}else if(!INCIDENT_RESOLUTION_VALUES.includes(i.resolution_status)){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_INVALID_RESOLUTION_STATUS,message:`resolution_status must be one of ${INCIDENT_RESOLUTION_VALUES.join("|")} (got: ${i.resolution_status})`,path:"resolution_status"})}if(!Array.isArray(i.components)||i.components.length===0){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_COMPONENTS,message:"incident-narrative tier requires at least one component",path:"components"})}}if(f==="incident-facts"){if(typeof i.incident_id!=="string"||i.incident_id.length===0){g.push({code:KB_ERROR_CODES.INCIDENT_FACTS_MISSING_INCIDENT_ID,message:"incident-facts tier requires incident_id",path:"incident_id"})}if(!Array.isArray(i.produced)){g.push({code:KB_ERROR_CODES.INCIDENT_FACTS_MISSING_PRODUCED,message:"incident-facts tier requires produced (array, may be empty)",path:"produced"})}}if(Array.isArray(i.symptoms)){for(let f=0;f<i.symptoms.length;f++){const E=i.symptoms[f];const p=typeof E.alert_name==="string"||typeof E.user_phrase==="string"||Array.isArray(E.user_phrase)||typeof E.error_pattern==="string";if(!p){g.push({code:KB_ERROR_CODES.PLAYBOOK_SYMPTOM_MISSING_KEY,message:`symptoms[${f}] must have one of alert_name, user_phrase, or error_pattern`,path:`symptoms[${f}]`})}if(typeof E.target!=="string"||E.target.length===0){g.push({code:KB_ERROR_CODES.PLAYBOOK_SYMPTOM_MISSING_TARGET,message:`symptoms[${f}] requires a target (anchor or path)`,path:`symptoms[${f}].target`})}if(!Array.isArray(E.cites)||E.cites.length===0){g.push({code:KB_ERROR_CODES.PLAYBOOK_SYMPTOM_MISSING_CITES,message:`symptoms[${f}] requires at least one cite (fact id)`,path:`symptoms[${f}].cites`})}}}return g}function validatePartialMetadata(i){const g=PartialMetadataSchema.safeParse(i);if(g.success){return{valid:true,errors:[],data:g.data}}const f=g.error.errors.map((i=>`${i.path.join(".")}: ${i.message}`));return{valid:false,errors:f}}function getMissingRequiredFields(i){const g=typeof i.tier==="string"?i.tier:undefined;const f=isLifecycleTrackedTier(g);const E=g?TIER_REQUIRED_EXTENSIONS[g]??[]:[];const p=REQUIRED_FIELDS.filter((i=>{if(i==="version"&&f)return false;return true}));const y=[...p,...E];return y.filter((g=>{const f=i[g];if(f===undefined||f===null)return true;if(Array.isArray(f)&&f.length===0){return g==="provenance"||g==="components"}return false}))}function getMissingFields(i){const g=getMissingRequiredFields(i);const f=ALL_METADATA_FIELDS.filter((g=>!REQUIRED_FIELDS.includes(g)&&!(g in i)));return{required:g,optional:f}}function calculateMetadataCompleteness(i){const g=ALL_METADATA_FIELDS.filter((g=>g in i&&i[g]!==undefined&&i[g]!==null));return g.length/ALL_METADATA_FIELDS.length*100}function getFieldCategory(i){if(["title","tier","domains","audience","tags"].includes(i)){return"core"}if(["status","last_updated","version"].includes(i)){return"status"}if(["purpose","related_docs","load_priority"].includes(i)){return"discovery"}if(["author","maintainer","review_frequency"].includes(i)){return"ownership"}if(["implementation_status","tested","production_ready"].includes(i)){return"implementation"}return"auto"}async function syncMetadata(i){const{docsPath:g,dryRun:f=false,fix:E=false,domain:p,silent:y=false}=i;const b={totalFiles:0,validFiles:0,fixedFiles:0,skippedFiles:0,errors:[],stats:{totalWordCount:0,avgCompleteness:0,byDomain:{},byStatus:{},byTier:{}}};if(!y){logger.header("Metadata Sync");if(f)logger.info("Running in dry-run mode (no changes will be made)");if(E)logger.info("Auto-fix mode enabled")}let S=await findMarkdownFiles(g);if(p){S=S.filter((i=>{const f=(0,external_path_.relative)(g,i);return f.startsWith(p+"/")||f.startsWith(p+"\\")}))}S=S.filter((i=>{const g=i.split(/[/\\]/).pop()??"";return!["INDEX.md","REGISTRY.md"].includes(g)}));b.totalFiles=S.length;if(!y){logger.info(`Found ${S.length} documentation files`)}let J=0;for(const i of S){try{const p=await syncFile(i,g,f,E);if(p.valid){b.validFiles++}if(p.fixed){b.fixedFiles++}if(p.skipped){b.skippedFiles++}if(p.error){b.errors.push(p.error)}if(p.metadata){const i=p.metadata;J+=p.completeness;b.stats.totalWordCount+=i.word_count??0;const g=i.domains?.[0]??"unknown";b.stats.byDomain[g]=(b.stats.byDomain[g]??0)+1;const f=i.status??"unknown";b.stats.byStatus[f]=(b.stats.byStatus[f]??0)+1;const E=i.tier??"unknown";b.stats.byTier[E]=(b.stats.byTier[E]??0)+1}}catch(f){const E=f instanceof Error?f.message:String(f);b.errors.push({file:(0,external_path_.relative)(g,i),error:E,fixable:false})}}b.stats.avgCompleteness=S.length>0?J/S.length:0;if(!y){logger.newline();logger.success(`Sync complete!`);logger.info(`Valid: ${b.validFiles}/${b.totalFiles}`);if(b.fixedFiles>0){logger.info(`Fixed: ${b.fixedFiles}`)}if(b.errors.length>0){logger.warn(`Errors: ${b.errors.length}`)}logger.info(`Avg completeness: ${b.stats.avgCompleteness.toFixed(1)}%`)}return b}async function syncFile(i,g,f,E){const p={valid:false,fixed:false,skipped:false,completeness:0};const y=await(0,promises_namespaceObject.readFile)(i,"utf-8");const{data:b,content:S}=parseFrontmatter(y);const J=validatePartialMetadata(b);const Z=getMissingRequiredFields(b);p.completeness=calculateMetadataCompleteness(b);if(J.valid&&Z.length===0){p.valid=true;p.metadata=b;if(E){const g=updateAutoFields(b,S);if(JSON.stringify(g)!==JSON.stringify(b)){if(!f){const f=setFrontmatter(y,g);await(0,promises_namespaceObject.writeFile)(i,f,"utf-8")}p.fixed=true;p.metadata=g}}return p}if(!E){p.error={file:(0,external_path_.relative)(g,i),error:`Missing required fields: ${Z.join(", ")}`,fixable:true};return p}const $=generateMetadata({filePath:i,content:y,docsRoot:g,existingMetadata:b});const z=mergeMetadata(b,$);p.metadata=z;if(!f){const g=setFrontmatter(y,z);await(0,promises_namespaceObject.writeFile)(i,g,"utf-8")}p.fixed=true;p.valid=true;p.completeness=calculateMetadataCompleteness(z);return p}function updateAutoFields(i,g){return{...i,word_count:countWords(g),estimated_read_time:formatReadTime(g),last_validated:formatDate(new Date)}}async function getSyncStats(i){const g=await syncMetadata({docsPath:i,dryRun:true,fix:false,silent:true});return g.stats}async function checkLinks(i){const{docsPath:g,domain:f,checkExternal:E=false,silent:p=false}=i;const y={totalFiles:0,totalLinks:0,validLinks:0,brokenLinks:[],crossDomainLinks:[],externalLinks:[],stats:{internalLinks:0,externalLinks:0,crossDomainLinks:0,brokenPercentage:0,topConnectedDomains:[]}};if(!p){logger.header("Link Checker")}let b=await findMarkdownFiles(g);if(f){b=b.filter((i=>{const E=(0,external_path_.relative)(g,i);return E.startsWith(f+"/")||E.startsWith(f+"\\")}))}y.totalFiles=b.length;if(!p){logger.info(`Checking ${b.length} files...`)}const S=new Map;for(const i of b){try{const f=await(0,promises_namespaceObject.readFile)(i,"utf-8");const p=markdown_extractLinks(f);const b=(0,external_path_.relative)(g,i);const J=(0,external_path_.dirname)(i);for(const f of p){y.totalLinks++;if(f.isInternal){y.stats.internalLinks++;const E=resolveLink(f.url,J,g);const p=await glob_pathExists(E);if(!p){y.brokenLinks.push({sourceFile:b,targetPath:f.url,lineNumber:f.lineNumber,linkText:f.text,reason:"Target file does not exist"})}else{y.validLinks++;const p=detectDomainFromPath(i,g).domain;const J=detectDomainFromPath(E,g).domain;if(p&&J&&p!==J){y.stats.crossDomainLinks++;y.crossDomainLinks.push({sourceFile:b,sourceDomain:p,targetPath:f.url,targetDomain:J,linkText:f.text});const i=`${p} -> ${J}`;S.set(i,(S.get(i)??0)+1)}}}else{y.stats.externalLinks++;y.externalLinks.push({sourceFile:b,url:f.url,linkText:f.text});if(E){}}}}catch(f){const E=f instanceof Error?f.message:String(f);if(!p){logger.warn(`Error processing ${(0,external_path_.relative)(g,i)}: ${E}`)}}}y.stats.brokenPercentage=y.stats.internalLinks>0?y.brokenLinks.length/y.stats.internalLinks*100:0;y.stats.topConnectedDomains=[...S.entries()].map((([i,g])=>{const[f,E]=i.split(" -> ");return{from:f??"",to:E??"",count:g}})).sort(((i,g)=>g.count-i.count)).slice(0,10);if(!p){logger.newline();logger.success(`Link check complete!`);logger.info(`Total links: ${y.totalLinks}`);logger.info(`Valid: ${y.validLinks}`);if(y.brokenLinks.length>0){logger.warn(`Broken: ${y.brokenLinks.length}`)}logger.info(`Cross-domain: ${y.stats.crossDomainLinks}`)}return y}function resolveLink(i,g,f){const E=i.split("#")[0]??"";if(!E){return g}if(E.startsWith("/")){return(0,external_path_.join)(f,E)}return(0,external_path_.resolve)(g,E)}async function checkSingleLink(i,g,f){const E=dirname(g);const p=resolveLink(i,E,f);const y=await pathExists(p);if(!y){return{valid:false,reason:"Target file does not exist"}}return{valid:true}}async function getFileBrokenLinks(i,g){const f=await readFile(i,"utf-8");const E=extractLinks(f);const p=[];const y=dirname(i);const b=relative(g,i);for(const i of E){if(i.isInternal){const f=resolveLink(i.url,y,g);const E=await pathExists(f);if(!E){p.push({sourceFile:b,targetPath:i.url,lineNumber:i.lineNumber,linkText:i.text,reason:"Target file does not exist"})}}}return p}const SYSTEM_FILES=new Set(["INDEX.md","REGISTRY.md"]);async function listDomainDocFiles(i,g){try{const f=await(0,promises_namespaceObject.readdir)((0,external_path_.join)(i,g));return f.filter((i=>i.endsWith(".md")&&!SYSTEM_FILES.has(i))).sort()}catch{return[]}}function normalizeDate(i){if(i instanceof Date)return formatDate(i);if(typeof i==="string"){const g=i.match(/\d{4}-\d{2}-\d{2}/);return g?g[0]:i}return formatDate(new Date)}function regenerate_countWords(i){return i.split(/\s+/).filter(Boolean).length}function titleFromFileName(i){return i.replace(/\.md$/,"").replace(/[-_]/g," ").replace(/\b\w/g,(i=>i.toUpperCase()))}async function buildDomainEntries(i,g,f){const E=await listDomainDocFiles(i,g);const p=[];for(const y of E){let E;try{E=await(0,promises_namespaceObject.readFile)((0,external_path_.join)(i,g,y),"utf-8")}catch{continue}const{data:b,content:S}=parseFrontmatter(E);p.push({path:f+y,title:typeof b.title==="string"&&b.title.trim()?b.title:titleFromFileName(y),tier:typeof b.tier==="string"?b.tier:"guide",status:typeof b.status==="string"?b.status:"active",lastUpdated:normalizeDate(b.last_updated),wordCount:typeof b.word_count==="number"?b.word_count:regenerate_countWords(S)})}return p}async function regenerateIndexes(i){const{docsPath:g,silent:f=false}=i;const E=registry_getAllDomains();const p=i.domains??E;const y={documentCounts:{},filesWritten:[],totalDocuments:0};const b={};for(const i of E){const f=await buildDomainEntries(g,i,"");y.documentCounts[i]=f.length;y.totalDocuments+=f.length;b[i]=f.map((g=>({...g,path:`${i}/${g.path}`})));if(!p.includes(i))continue;const E=(0,external_path_.join)(g,i);if(!await glob_pathExists(E))continue;const S=(0,external_path_.join)(E,"INDEX.md");const J=(0,external_path_.join)(E,"REGISTRY.md");await(0,promises_namespaceObject.writeFile)(S,generateDomainIndexContent(i,f),"utf-8");await(0,promises_namespaceObject.writeFile)(J,generateDomainRegistryContent(i,f),"utf-8");y.filesWritten.push(S,J)}if(await glob_pathExists(g)){const i=(0,external_path_.join)(g,"INDEX.md");const f=(0,external_path_.join)(g,"REGISTRY.md");await(0,promises_namespaceObject.writeFile)(i,generateRootIndex(b),"utf-8");await(0,promises_namespaceObject.writeFile)(f,generateRootRegistry(),"utf-8");y.filesWritten.push(i,f)}if(!f){logger.success(`Regenerated ${y.filesWritten.length} index file(s) — `+`${y.totalDocuments} document(s) across ${E.length} domains`)}return y}function checkNamingConvention(i){const g=(0,external_path_.basename)(i,".md");if(["INDEX","REGISTRY","README","CHANGELOG","CONTRIBUTING"].includes(g)){return{valid:true}}const f=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;if(!f.test(g)){const i=[];if(/[A-Z]/.test(g)){i.push("contains uppercase letters")}if(/_/.test(g)){i.push("contains underscores")}if(/\s/.test(g)){i.push("contains spaces")}if(/^[0-9]/.test(g)){i.push("starts with a number")}if(/--/.test(g)){i.push("contains consecutive hyphens")}const f=g.toLowerCase().replace(/[_\s]+/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().replace(/--+/g,"-").replace(/^-|-$/g,"");return{valid:false,message:`File name ${i.join(", ")}`,suggestion:`Rename to: ${f}.md`}}return{valid:true}}function checkFilePlacement(i,g,f){const E=detectDomainFromPath(i,g);const p=E.domain;if(!p&&!f){return{valid:false,message:"File is not in a domain folder",suggestion:"Move file to appropriate domain folder (e.g., security/, api/, etc.)"}}if(f&&p&&f!==p){return{valid:false,message:`File declares domain '${f}' but is in '${p}/' folder`,suggestion:`Move to ${f}/ or update domains in frontmatter`}}if(!p){const E=(0,external_path_.relative)(g,i);const p=E.split(/[/\\]/);if(p.length===1){return{valid:false,message:"File is in documentation root, not in a domain folder",suggestion:f?`Move to ${f}/`:"Move file to appropriate domain folder"}}const y=p[0];if(y&&!isValidDomain(y)&&!["drafts","reports",ARCHIVE_DIR].includes(y)){return{valid:false,message:`File is in unknown folder '${y}'`,suggestion:"Move to a standard domain folder or add as custom domain"}}}return{valid:true}}function checkFileSize(i,g,f){const E=g/1024;const p={guide:{min:1,max:50},standard:{min:1,max:30},example:{min:.5,max:20},reference:{min:5,max:100},admin:{min:1,max:40}};const y=f&&p[f]?p[f]:{min:.5,max:100};if(E<y.min){return{valid:false,message:`File is very small (${E.toFixed(1)} KB)`,suggestion:"Consider adding more content or merging with related document"}}if(E>y.max){return{valid:false,message:`File is very large (${E.toFixed(1)} KB)`,suggestion:"Consider splitting into multiple documents"}}return{valid:true}}function checkRequiredSections(i,g){const f={guide:["overview","prerequisites","steps"],standard:["rules","examples"],example:["code","explanation"],reference:["api","parameters"],admin:["configuration","procedures"]};if(!g||!f[g]){return{valid:true}}const E=i.toLowerCase();const p=f[g];const y=[];for(const i of p){const g=[new RegExp(`^#+\\s*${i}`,"mi"),new RegExp(`^#+\\s*.*${i}`,"mi")];const f=g.some((i=>i.test(E)));if(!f){y.push(i)}}if(y.length>0){return{valid:false,message:`Missing recommended sections for ${g}: ${y.join(", ")}`,suggestion:`Consider adding sections: ${y.map((i=>`## ${rules_capitalize(i)}`)).join(", ")}`}}return{valid:true}}function checkRelativeLinks(i,g){const f=/\[([^\]]*)\]\(([^)]+)\)/g;const E=[];let p;while((p=f.exec(i))!==null){const i=p[2]??"";if(i.startsWith("/")&&!i.startsWith("/http")){if(i.includes("..")){E.push(i)}}if(i.includes("\\")){E.push(i)}if(i.includes(" ")&&!i.includes("%20")){E.push(i)}}if(E.length>0){return{valid:false,message:`Found ${E.length} suspicious links`,suggestion:"Review and fix link paths"}}return{valid:true}}function rules_capitalize(i){return i.charAt(0).toUpperCase()+i.slice(1)}const AUDIT_RULES=[{id:"naming-convention",name:"Naming Convention",description:"Check if file names follow kebab-case convention",severity:"warning",check:i=>checkNamingConvention(i)},{id:"placement",name:"File Placement",description:"Check if files are in the correct domain folders",severity:"warning",check:(i,g)=>checkFilePlacement(i,g)}];async function auditDocumentation(i){const{docsPath:g,domain:f,issuesOnly:E=false,silent:p=false}=i;const y={totalFiles:0,passedFiles:0,failedFiles:0,issues:[],stats:{metadataCompliance:0,namingCompliance:0,placementCompliance:0,tagConsistency:0,byDomain:{}},healthScore:0};if(!p){logger.header("Documentation Audit")}let b=await findMarkdownFiles(g);if(f){b=b.filter((i=>{const E=(0,external_path_.relative)(g,i);return E.startsWith(f+"/")||E.startsWith(f+"\\")}))}b=b.filter((i=>{const g=(0,external_path_.basename)(i);return!["INDEX.md","REGISTRY.md"].includes(g)}));y.totalFiles=b.length;if(!p){logger.info(`Auditing ${b.length} files...`)}let S=0;let J=0;let Z=0;const $=new Map;for(const i of b){const f=await auditFile(i,g);const p=f.some((i=>i.severity==="error"));if(p){y.failedFiles++}else{y.passedFiles++}if(!E||f.length>0){y.issues.push(...f)}const b=f.some((i=>i.rule.startsWith("metadata")));const z=f.some((i=>i.rule==="naming-convention"));const ee=f.some((i=>i.rule==="placement"));if(!b)S++;if(!z)J++;if(!ee)Z++;try{const E=await(0,promises_namespaceObject.readFile)(i,"utf-8");const{data:p}=parseFrontmatter(E);if(p.tags){for(const i of p.tags){$.set(i,($.get(i)??0)+1)}}const b=p.domains?.[0]??detectDomainFromPath(i,g).domain??"unknown";if(!y.stats.byDomain[b]){y.stats.byDomain[b]={files:0,issues:0,healthScore:0}}y.stats.byDomain[b].files++;y.stats.byDomain[b].issues+=f.length}catch{}}const z=await checkIndexDrift(g,f);y.issues.push(...z);y.stats.metadataCompliance=S/b.length*100||0;y.stats.namingCompliance=J/b.length*100||0;y.stats.placementCompliance=Z/b.length*100||0;const ee=[...$.values()].filter((i=>i>1)).length;y.stats.tagConsistency=$.size>0?ee/$.size*100:100;for(const i of Object.values(y.stats.byDomain)){const g=i.issues/i.files;i.healthScore=Math.max(0,100-g*10)}y.healthScore=y.stats.metadataCompliance*.4+y.stats.namingCompliance*.2+y.stats.placementCompliance*.2+y.stats.tagConsistency*.2;if(!p){logger.newline();logger.success(`Audit complete!`);logger.info(`Passed: ${y.passedFiles}/${y.totalFiles}`);logger.info(`Health Score: ${y.healthScore.toFixed(1)}/100`);if(y.issues.length>0){const i=y.issues.filter((i=>i.severity==="error")).length;const g=y.issues.filter((i=>i.severity==="warning")).length;logger.warn(`Issues: ${i} errors, ${g} warnings`)}}return y}async function auditFile(i,g){const f=[];const E=(0,external_path_.relative)(g,i);try{const p=await(0,promises_namespaceObject.readFile)(i,"utf-8");const{data:y}=parseFrontmatter(p);const b=getMissingRequiredFields(y);if(b.length>0){f.push({file:E,rule:"metadata-required",severity:"error",message:`Missing required fields: ${b.join(", ")}`,fixable:true,suggestion:"Run with --fix to auto-generate missing metadata"})}const S=validatePartialMetadata(y);if(!S.valid){for(const i of S.errors){f.push({file:E,rule:"metadata-invalid",severity:"error",message:i,fixable:false})}}if(y.tier&&!isValidTier(y.tier)){f.push({file:E,rule:"metadata-tier",severity:"error",message:`Invalid tier: ${y.tier}`,fixable:true,suggestion:`Valid tiers: ${TIERS.join(", ")}`})}const J=validateKnowledgeBaseFields(y);for(const i of J){const g=KB_ERROR_SEVERITY[i.code];f.push({file:E,rule:`metadata-${i.code.toLowerCase().replace(/_/g,"-")}`,severity:g,message:i.message,fixable:false,code:i.code})}if(y.domains){for(const i of y.domains){if(!isValidDomain(i)){f.push({file:E,rule:"metadata-domain",severity:"warning",message:`Unknown domain: ${i}`,fixable:false,suggestion:"Consider using a standard domain or adding this as a custom domain"})}}}const Z=checkNamingConvention(i);if(!Z.valid){const i={file:E,rule:"naming-convention",severity:"warning",message:Z.message??"Naming convention violation",fixable:false};if(Z.suggestion){i.suggestion=Z.suggestion}f.push(i)}const $=checkFilePlacement(i,g,y.domains?.[0]);if(!$.valid){const i={file:E,rule:"placement",severity:"warning",message:$.message??"File may be in wrong domain",fixable:false};if($.suggestion){i.suggestion=$.suggestion}f.push(i)}if(y.last_updated){const i=new Date(y.last_updated);const g=(Date.now()-i.getTime())/(1e3*60*60*24);if(g>365){f.push({file:E,rule:"stale-content",severity:"info",message:`Document not updated in ${Math.floor(g)} days`,fixable:false,suggestion:"Consider reviewing and updating this document"})}}if(y.status==="deprecated"){f.push({file:E,rule:"deprecated-not-archived",severity:"info",message:"Document is marked deprecated but still in an active domain folder",fixable:false,suggestion:`Retire it with \`hewtd archive ${E}\` (or restore it to active)`})}if(y.tags&&y.tags.length===0&&y.status==="active"){f.push({file:E,rule:"missing-tags",severity:"info",message:"Active document has no tags",fixable:true,suggestion:"Add relevant tags for better discoverability"})}}catch(i){const g=i instanceof Error?i.message:String(i);f.push({file:E,rule:"read-error",severity:"error",message:`Could not read file: ${g}`,fixable:false})}return f}async function checkIndexDrift(i,g){const f=[];const E=g?[g]:registry_getAllDomains();const p="Run `hewtd index` (or `hewtd maintain`) to regenerate it";for(const g of E){const E=await listDomainDocFiles(i,g);if(E.length===0)continue;let y=null;try{y=await(0,promises_namespaceObject.readFile)((0,external_path_.join)(i,g,"INDEX.md"),"utf-8")}catch{y=null}if(y===null){f.push({file:`${g}/INDEX.md`,rule:"index-drift",severity:"error",message:`INDEX.md is missing but ${E.length} document(s) exist in ${g}/`,fixable:true,suggestion:p});continue}const b=y;const S=E.filter((i=>!b.includes(i)));if(S.length>0){f.push({file:`${g}/INDEX.md`,rule:"index-drift",severity:"error",message:`INDEX.md lists ${E.length-S.length} of `+`${E.length} document(s) in ${g}/ — unlisted: ${S.join(", ")}`,fixable:true,suggestion:p})}}return f}async function getAuditSummaryForDomain(i,g){const f=await auditDocumentation({docsPath:i,domain:g,silent:true});return f.stats.byDomain[g]??{files:0,issues:0,healthScore:100}}const isString=i=>typeof i==="string";const isStringArray=i=>Array.isArray(i)&&i.every(isString);async function buildCiterIndex(i){const{projectRoot:g,vaultRoot:f,playbookGlobs:E}=i;const p=new Map;const y=new Map;const b=new Map;const S=await Ze((0,external_path_.join)(f,"facts/*.md"),{nodir:true,absolute:true});for(const i of S){const f=await readFactRef(i,g);if(f)p.set(f.id,f)}const J=await Ze((0,external_path_.join)(f,"incidents/*/narrative.md"),{nodir:true,absolute:true});for(const i of J){const f=await readIncidentRef(i,g);if(f)y.set(f.id,f)}if(p.size===0&&y.size===0){return{facts:p,incidents:y,citers:b}}const Z=new Set;for(const i of E){const g=await Ze(i,{nodir:true,absolute:true});for(const i of g)Z.add(i)}for(const i of Z){const f=await extractPlaybookCitations(i,g);for(const i of f){const g=i.factIds;for(const f of g){const g=b.get(f)??[];g.push(i.citation);b.set(f,g)}}}return{facts:p,incidents:y,citers:b}}async function readFactRef(i,g){try{const f=await(0,promises_namespaceObject.readFile)(i,"utf-8");const{data:E}=gray_matter_default()(f);if(E.tier!=="fact"||!isString(E.id))return null;const p=isStringArray(E.tags)?E.tags:[];const y=citers_normalizeDate(E.last_verified);return{id:E.id,path:i,relPath:(0,external_path_.relative)(g,i),title:isString(E.title)?E.title:E.id,confidence:isString(E.confidence)?E.confidence:undefined,lastVerified:y,tags:p}}catch{return null}}async function readIncidentRef(i,g){try{const f=await(0,promises_namespaceObject.readFile)(i,"utf-8");const{data:E}=gray_matter_default()(f);if(E.tier!=="incident-narrative"||!isString(E.id)){return null}const p=(0,external_path_.resolve)(i,"..");const y=(0,external_path_.join)(p,"facts.md");let b=[];let S=[];let J=[];try{const i=await(0,promises_namespaceObject.readFile)(y,"utf-8");const{data:g}=gray_matter_default()(i);if(g.tier==="incident-facts"){if(isStringArray(g.produced))b=g.produced;if(isStringArray(g.strengthened))S=g.strengthened;if(isStringArray(g.weakened))J=g.weakened}}catch{}return{id:E.id,folderPath:p,relFolderPath:(0,external_path_.relative)(g,p),title:isString(E.title)?E.title:E.id,date:citers_normalizeDate(E.date),severity:isString(E.severity)?E.severity:undefined,resolution_status:isString(E.resolution_status)?E.resolution_status:undefined,components:isStringArray(E.components)?E.components:[],produced:b,strengthened:S,weakened:J}}catch{return null}}async function extractPlaybookCitations(i,g){try{const f=await(0,promises_namespaceObject.readFile)(i,"utf-8");const{data:E}=gray_matter_default()(f);if(!Array.isArray(E.symptoms)||E.symptoms.length===0){return[]}const p=isString(E.title)?E.title:i;const y=[];for(const f of E.symptoms){const E=f;if(!isString(E.target)||!isStringArray(E.cites))continue;let b;let S;if(isString(E.alert_name)){b="alert_name";S=E.alert_name}else if(isStringArray(E.user_phrase)||isString(E.user_phrase)){b="user_phrase";S=E.user_phrase}else if(isString(E.error_pattern)){b="error_pattern";S=E.error_pattern}else{continue}y.push({citation:{relPath:(0,external_path_.relative)(g,i),path:i,title:p,target:E.target,kind:b,key:S,severity:isString(E.severity)?E.severity:undefined},factIds:E.cites})}return y}catch{return[]}}function citers_normalizeDate(i){if(typeof i==="string"&&/^\d{4}-\d{2}-\d{2}$/.test(i)){return i}if(i instanceof Date&&!Number.isNaN(i.getTime())){return i.toISOString().slice(0,10)}return undefined}function findCitersInIndex(i,g){const f=new Set;for(const E of i.citers.get(g)??[]){f.add(E.relPath)}const E=[];const p=[];const y=[];for(const f of i.incidents.values()){if(f.produced.includes(g))E.push(f.id);if(f.strengthened.includes(g))p.push(f.id);if(f.weakened.includes(g))y.push(f.id)}return{fact_id:g,fact_exists:i.facts.has(g),citers:[...f].sort(),incidents_produced_in:E.sort(),incidents_strengthened_by:p.sort(),incidents_weakened_by:y.sort()}}function citerCount(i,g){const f=i.citers.get(g);if(!f)return 0;const E=new Set;for(const i of f)E.add(i.relPath);return E.size}function formatMarkdownTable(i,g){const f=i.map(((i,f)=>{let E=i.length;for(const i of g){const g=i[f]??"";if(g.length>E)E=g.length}return E}));const pad=(i,g)=>i.padEnd(g," ");const E=`| ${i.map(((i,g)=>pad(i,f[g]))).join(" | ")} |`;const p=`|${f.map((i=>"-".repeat(i+2))).join("|")}|`;const y=g.map((i=>`| ${i.map(((i,g)=>pad(i??"",f[g]))).join(" | ")} |`));return[E,p,...y].join("\n")}const CONFIDENCE_ORDER=["high","medium","low","hypothesis"];const UNTAGGED_BUCKET="(untagged)";async function generateFactsIndex(i){const{vaultRoot:g,index:f}=i;const E=(0,external_path_.join)(g,"facts");await(0,promises_namespaceObject.mkdir)(E,{recursive:true});const p=(0,external_path_.join)(E,"INDEX.md");const y=renderFactsIndex(f);await(0,promises_namespaceObject.writeFile)(p,y,"utf-8");return p}function renderFactsIndex(i){const g=bucketFacts(i);const f=[];f.push("---");f.push("title: Facts Index");f.push("tier: reference");f.push("domains:");f.push(" - knowledge-base");f.push("status: active");f.push("last_updated: '0000-00-00'");f.push("version: '1.0.0'");f.push("purpose: Auto-generated index of all facts in the knowledge base, grouped by tag then confidence.");f.push("---");f.push("");f.push("# Facts Index");f.push("");f.push("\x3c!-- Auto-generated by `hewtd maintain`. Do not edit by hand — changes will be overwritten. --\x3e");f.push("");if(i.facts.size===0){f.push("_No facts yet. Create one with the `templates/knowledge-base/fact.template.md` template._");f.push("");return ensureTrailingNewline(f.join("\n"))}f.push(`**Total facts:** ${i.facts.size}`);f.push("");const E=Object.keys(g).sort(((i,g)=>{if(i===UNTAGGED_BUCKET)return 1;if(g===UNTAGGED_BUCKET)return-1;return i.localeCompare(g)}));for(const p of E){f.push(`## ${p}`);f.push("");const E=g[p]??{};const y=CONFIDENCE_ORDER.filter((i=>E[i]!==undefined&&E[i].length>0));for(const g of y){f.push(`### confidence: ${g}`);f.push("");const p=E[g].slice().sort(((i,g)=>i.id.localeCompare(g.id))).map((g=>[`\`${g.id}\``,escapeMd(g.title),g.lastVerified??"—",String(citerCount(i,g.id))]));f.push(formatMarkdownTable(["ID","Title","Last verified","Citers"],p));f.push("")}}return ensureTrailingNewline(f.join("\n"))}function bucketFacts(i){const g={};for(const f of i.facts.values()){const i=f.tags.length>0?f.tags:[UNTAGGED_BUCKET];const E=f.confidence??"unknown";for(const p of i){if(!g[p])g[p]={};if(!g[p][E])g[p][E]=[];g[p][E].push(f)}}return g}function escapeMd(i){return i.replace(/\|/g,"\\|")}function ensureTrailingNewline(i){return i.endsWith("\n")?i:i+"\n"}async function generateIncidentsIndex(i){const{vaultRoot:g,index:f}=i;const E=(0,external_path_.join)(g,"incidents");await(0,promises_namespaceObject.mkdir)(E,{recursive:true});const p=(0,external_path_.join)(E,"INDEX.md");const y=renderIncidentsIndex(f);await(0,promises_namespaceObject.writeFile)(p,y,"utf-8");return p}function renderIncidentsIndex(i){const g=[];g.push("---");g.push("title: Incidents Index");g.push("tier: reference");g.push("domains:");g.push(" - knowledge-base");g.push(" - incidents");g.push("status: active");g.push("last_updated: '0000-00-00'");g.push("version: '1.0.0'");g.push("purpose: Auto-generated chronological index of all incidents in the knowledge base.");g.push("---");g.push("");g.push("# Incidents Index");g.push("");g.push("\x3c!-- Auto-generated by `hewtd maintain`. Do not edit by hand — changes will be overwritten. --\x3e");g.push("");if(i.incidents.size===0){g.push("_No incidents yet. Create one with the `templates/knowledge-base/incident-narrative.template.md` template._");g.push("");return incidents_index_ensureTrailingNewline(g.join("\n"))}g.push(`**Total incidents:** ${i.incidents.size}`);g.push("");const f=[...i.incidents.values()].sort(compareIncidents);const E=f.map((i=>[i.date??"—",`\`${i.id}\``,incidents_index_escapeMd(i.title),i.severity??"—",i.resolution_status??"—",i.components.length>0?i.components.join(", "):"—",String(i.produced.length)]));g.push(formatMarkdownTable(["Date","ID","Title","Severity","Resolution","Components","Facts produced"],E));g.push("");return incidents_index_ensureTrailingNewline(g.join("\n"))}function compareIncidents(i,g){const f=i.date??"0000-00-00";const E=g.date??"0000-00-00";if(f!==E)return E.localeCompare(f);return i.id.localeCompare(g.id)}function incidents_index_escapeMd(i){return i.replace(/\|/g,"\\|")}function incidents_index_ensureTrailingNewline(i){return i.endsWith("\n")?i:i+"\n"}async function generateSymptomsIndex(i){const{vaultRoot:g,index:f}=i;const E=(0,external_path_.join)(g,"symptoms");await(0,promises_namespaceObject.mkdir)(E,{recursive:true});const p=(0,external_path_.join)(E,"INDEX.md");const y=renderSymptomsIndex(f);await(0,promises_namespaceObject.writeFile)(p,y,"utf-8");return p}function renderSymptomsIndex(i){const g=flattenSymptoms(i);const f=[];f.push("---");f.push("title: Symptoms Index");f.push("tier: reference");f.push("domains:");f.push(" - knowledge-base");f.push(" - operations");f.push("status: active");f.push("last_updated: '0000-00-00'");f.push("version: '1.0.0'");f.push("purpose: Auto-generated mapping of symptom keys (alert names, user phrases, error patterns) to playbook anchors and their fact citations.");f.push("---");f.push("");f.push("# Symptoms Index");f.push("");f.push("\x3c!-- Auto-generated by `hewtd maintain`. Do not edit by hand — changes will be overwritten. --\x3e");f.push("");if(g.length===0){f.push("_No symptoms blocks found in scanned playbooks. Add a `symptoms:` block to any playbook frontmatter to populate this index._");f.push("");return symptoms_index_ensureTrailingNewline(f.join("\n"))}for(const i of["alert_name","user_phrase","error_pattern"]){const E=g.filter((g=>g.kind===i)).sort(((i,g)=>{const f=i.key.localeCompare(g.key);if(f!==0)return f;return i.playbookRelPath.localeCompare(g.playbookRelPath)}));if(E.length===0)continue;f.push(`## ${humanizeKind(i)}`);f.push("");const p=E.map((i=>[`\`${symptoms_index_escapeMd(i.key)}\``,`[${i.playbookRelPath}](${i.playbookRelPath}${i.target})`,i.severity??"—",i.cites.map((i=>`\`${i}\``)).join(", ")]));f.push(formatMarkdownTable(["Key","Playbook","Severity","Cites"],p));f.push("")}return symptoms_index_ensureTrailingNewline(f.join("\n"))}function flattenSymptoms(i){const g=new Map;for(const[f,E]of i.citers.entries()){for(const i of E){const E=Array.isArray(i.key)?i.key:[i.key];for(const p of E){const E=`${i.kind}|${p}|${i.relPath}|${i.target}`;const y=g.get(E);if(y){if(!y.cites.includes(f))y.cites.push(f)}else{g.set(E,{kind:i.kind,key:p,playbookRelPath:i.relPath,target:i.target,severity:i.severity,cites:[f]})}}}}for(const i of g.values())i.cites.sort();return[...g.values()]}function humanizeKind(i){switch(i){case"alert_name":return"Alert names (exact match)";case"user_phrase":return"User phrases (fuzzy substring match)";case"error_pattern":return"Error patterns (regex match)"}}function symptoms_index_escapeMd(i){return i.replace(/\|/g,"\\|")}function symptoms_index_ensureTrailingNewline(i){return i.endsWith("\n")?i:i+"\n"}async function runMaintenance(i){const{docsPath:g,quick:f=false,fix:E=false,silent:p=false}=i;const y={success:true,domainHealth:{healthy:true,presentDomains:[],missingDomains:[],missingIndexes:[],missingRegistries:[]},healthScore:0,errors:[]};const b=Date.now();if(!p){logger.header("Documentation Maintenance");logger.info(`Mode: ${f?"Quick":"Full"}${E?" (Auto-fix)":""}`);logger.info(`Path: ${g}`)}if(!p){logger.subheader("Step 0: Domain Health Check")}y.domainHealth=await checkDomainHealth(g);if(!p){if(y.domainHealth.healthy){logger.success(`All ${y.domainHealth.presentDomains.length} domains healthy`)}else{logger.warn(`Domain issues found:`);if(y.domainHealth.missingDomains.length>0){logger.warn(` Missing domains: ${y.domainHealth.missingDomains.join(", ")}`)}if(y.domainHealth.missingIndexes.length>0){logger.warn(` Missing INDEX.md: ${y.domainHealth.missingIndexes.join(", ")}`)}if(y.domainHealth.missingRegistries.length>0){logger.warn(` Missing REGISTRY.md: ${y.domainHealth.missingRegistries.join(", ")}`)}}}if(!p){logger.subheader("Step 1: Metadata Sync")}try{y.metadataSync=await syncMetadata({docsPath:g,dryRun:!E,fix:E,silent:p})}catch(i){const g=i instanceof Error?i.message:String(i);y.errors.push(`Metadata sync failed: ${g}`);y.success=false}if(!p){logger.subheader("Step 1.5: Index Regeneration")}try{y.indexRegeneration=await regenerateIndexes({docsPath:g,silent:p})}catch(i){const g=i instanceof Error?i.message:String(i);y.errors.push(`Index regeneration failed: ${g}`)}if(!f){if(!p){logger.subheader("Step 2: Link Check")}try{y.linkCheck=await checkLinks({docsPath:g,silent:p})}catch(i){const g=i instanceof Error?i.message:String(i);y.errors.push(`Link check failed: ${g}`)}}else if(!p){logger.info("Step 2: Link Check (SKIPPED - quick mode)")}if(!p){logger.subheader("Step 3: Documentation Audit")}try{y.audit=await auditDocumentation({docsPath:g,silent:p})}catch(i){const g=i instanceof Error?i.message:String(i);y.errors.push(`Audit failed: ${g}`)}try{await maybeGenerateKbIndexes(g,p,y)}catch(i){const g=i instanceof Error?i.message:String(i);y.errors.push(`Knowledge-base index generation failed: ${g}`)}y.healthScore=calculateHealthScore(y);if(!p){logger.subheader("Step 4: Generate Report")}try{y.reportPath=await generateMaintenanceReport(g,y,b);if(!p){logger.success(`Report saved: ${y.reportPath}`)}}catch(i){const g=i instanceof Error?i.message:String(i);y.errors.push(`Report generation failed: ${g}`)}if(!p){const i=((Date.now()-b)/1e3).toFixed(1);logger.newline();logger.header("Maintenance Summary");logger.info(`Duration: ${i}s`);logger.info(`Health Score: ${y.healthScore.toFixed(1)}/100`);if(y.metadataSync){logger.info(`Files: ${y.metadataSync.totalFiles}`);if(E){logger.info(`Fixed: ${y.metadataSync.fixedFiles}`)}}if(y.linkCheck){logger.info(`Links: ${y.linkCheck.totalLinks} (${y.linkCheck.brokenLinks.length} broken)`)}if(y.audit){const i=y.audit.issues.filter((i=>i.severity==="error")).length;const g=y.audit.issues.filter((i=>i.severity==="warning")).length;logger.info(`Issues: ${i} errors, ${g} warnings`)}if(y.errors.length>0){logger.warn(`Errors: ${y.errors.length}`)}}return y}async function checkDomainHealth(i){const g={healthy:true,presentDomains:[],missingDomains:[],missingIndexes:[],missingRegistries:[]};for(const f of registry_getAllDomains()){const E=(0,external_path_.join)(i,f);const p=(0,external_path_.join)(E,"INDEX.md");const y=(0,external_path_.join)(E,"REGISTRY.md");const b=await glob_pathExists(E);const S=await glob_pathExists(p);const J=await glob_pathExists(y);if(!b){g.missingDomains.push(f);g.healthy=false}else{g.presentDomains.push(f);if(!S){g.missingIndexes.push(f);g.healthy=false}if(!J){g.missingRegistries.push(f);g.healthy=false}}}return g}function calculateHealthScore(i){let g=100;if(!i.domainHealth.healthy){const f=i.domainHealth.missingDomains.length+i.domainHealth.missingIndexes.length+i.domainHealth.missingRegistries.length;g-=f*2}if(i.metadataSync){const f=i.metadataSync.validFiles/i.metadataSync.totalFiles;g=g*.7+f*30}if(i.linkCheck){const f=i.linkCheck.brokenLinks.length/Math.max(i.linkCheck.totalLinks,1);g-=f*20}if(i.audit){g=g*.7+i.audit.healthScore*.3}return Math.max(0,Math.min(100,g))}async function generateMaintenanceReport(i,g,f){const E=formatDate(new Date);const p=(new Date).toISOString().replace(/[:.]/g,"-").slice(0,19);const y=((Date.now()-f)/1e3).toFixed(1);let b=`---\ntitle: Maintenance Report - ${E}\ntier: admin\ndomains: [root]\nstatus: active\nlast_updated: '${E}'\nversion: '1.0.0'\n---\n\n# Maintenance Report\n\n**Generated:** ${(new Date).toISOString()}\n**Duration:** ${y}s\n**Health Score:** ${g.healthScore.toFixed(1)}/100\n\n## Summary\n\n| Metric | Value |\n|--------|-------|\n| Overall Health | ${g.healthScore.toFixed(1)}% |\n| Domain Health | ${g.domainHealth.healthy?"Healthy":"Issues Found"} |\n| Indexes Regenerated | ${g.indexRegeneration?.filesWritten.length??0} files |\n| Files Scanned | ${g.metadataSync?.totalFiles??0} |\n| Valid Files | ${g.metadataSync?.validFiles??0} |\n| Broken Links | ${g.linkCheck?.brokenLinks.length??"Not checked"} |\n| Audit Issues | ${g.audit?.issues.length??0} |\n\n## Domain Health\n\n`;if(g.domainHealth.healthy){b+=`All ${g.domainHealth.presentDomains.length} domains are healthy.\n\n`}else{if(g.domainHealth.missingDomains.length>0){b+=`### Missing Domains\n\n`;b+=g.domainHealth.missingDomains.map((i=>`- ${i}`)).join("\n");b+="\n\n"}if(g.domainHealth.missingIndexes.length>0){b+=`### Missing INDEX.md Files\n\n`;b+=g.domainHealth.missingIndexes.map((i=>`- ${i}/INDEX.md`)).join("\n");b+="\n\n"}if(g.domainHealth.missingRegistries.length>0){b+=`### Missing REGISTRY.md Files\n\n`;b+=g.domainHealth.missingRegistries.map((i=>`- ${i}/REGISTRY.md`)).join("\n");b+="\n\n"}}if(g.metadataSync){b+=`## Metadata Sync\n\n| Metric | Value |\n|--------|-------|\n| Total Files | ${g.metadataSync.totalFiles} |\n| Valid | ${g.metadataSync.validFiles} |\n| Fixed | ${g.metadataSync.fixedFiles} |\n| Errors | ${g.metadataSync.errors.length} |\n| Avg Completeness | ${g.metadataSync.stats.avgCompleteness.toFixed(1)}% |\n\n`}if(g.linkCheck){b+=`## Link Check\n\n| Metric | Value |\n|--------|-------|\n| Total Links | ${g.linkCheck.totalLinks} |\n| Valid Links | ${g.linkCheck.validLinks} |\n| Broken Links | ${g.linkCheck.brokenLinks.length} |\n| Cross-Domain | ${g.linkCheck.stats.crossDomainLinks} |\n\n`;if(g.linkCheck.brokenLinks.length>0){b+=`### Broken Links\n\n`;b+=`| File | Target | Line |\n`;b+=`|------|--------|------|\n`;for(const i of g.linkCheck.brokenLinks.slice(0,20)){b+=`| ${i.sourceFile} | ${i.targetPath} | ${i.lineNumber} |\n`}if(g.linkCheck.brokenLinks.length>20){b+=`\n*...and ${g.linkCheck.brokenLinks.length-20} more*\n`}b+="\n"}}if(g.audit){b+=`## Audit Results\n\n| Metric | Value |\n|--------|-------|\n| Passed Files | ${g.audit.passedFiles} |\n| Failed Files | ${g.audit.failedFiles} |\n| Health Score | ${g.audit.healthScore.toFixed(1)}% |\n| Metadata Compliance | ${g.audit.stats.metadataCompliance.toFixed(1)}% |\n| Naming Compliance | ${g.audit.stats.namingCompliance.toFixed(1)}% |\n\n`;const i=g.audit.issues.filter((i=>i.severity==="error"));if(i.length>0){b+=`### Critical Issues\n\n`;for(const g of i.slice(0,10)){b+=`- **${g.file}**: ${g.message}\n`}if(i.length>10){b+=`\n*...and ${i.length-10} more errors*\n`}b+="\n"}}if(g.errors.length>0){b+=`## Errors\n\n`;for(const i of g.errors){b+=`- ${i}\n`}}b+=`\n---\n\n*Generated by hit-em-with-the-docs*\n`;const S=(0,external_path_.join)(i,"reports");if(!await glob_pathExists(S)){await(0,promises_namespaceObject.mkdir)(S,{recursive:true})}const J=(0,external_path_.join)(S,`maintenance-${p}.md`);await(0,promises_namespaceObject.writeFile)(J,b,"utf-8");return J}async function maybeGenerateKbIndexes(i,g,f){const E=(0,external_path_.dirname)(i);const p=await loadPluginConfig(E);const y=resolveVaultRoot(E,p);if(!await glob_pathExists(y)){return}if(!g){logger.subheader("Step 3.5: Knowledge-base Indexes")}const b=resolvePlaybookGlobs(E,p);const S=await buildCiterIndex({projectRoot:E,vaultRoot:y,playbookGlobs:b});const J=await generateFactsIndex({vaultRoot:y,index:S});const Z=await generateIncidentsIndex({vaultRoot:y,index:S});const $=await generateSymptomsIndex({vaultRoot:y,index:S});if(!g){logger.success(`Generated ${S.facts.size} facts → ${J}`);logger.success(`Generated ${S.incidents.size} incidents → ${Z}`);logger.success(`Generated symptoms index → ${$}`)}void f}async function quickHealthCheck(i){const g=await checkDomainHealth(i);const f=[];if(!g.healthy){if(g.missingDomains.length>0){f.push(`Missing domains: ${g.missingDomains.join(", ")}`)}if(g.missingIndexes.length>0){f.push(`Missing INDEX.md in: ${g.missingIndexes.join(", ")}`)}}const E=g.healthy?100:100-f.length*10;return{healthy:f.length===0,score:Math.max(0,E),issues:f}}const PATTERN_DEFINITIONS=[{name:"Service Layer with Dependency Injection",category:"architecture",description:"Classes that accept dependencies via constructor",patterns:[/class\s+\w+Service\s*{[\s\S]*?constructor\s*\([^)]*\)/g,/class\s+\w+\s*{[\s\S]*?constructor\s*\(\s*(?:private|readonly)\s+\w+:/g],languages:["typescript","javascript"]},{name:"Repository Pattern",category:"architecture",description:"Data access abstraction layer",patterns:[/class\s+\w+Repository/g,/interface\s+I?\w+Repository/g],languages:["typescript","javascript"]},{name:"Factory Pattern",category:"architecture",description:"Object creation abstraction",patterns:[/class\s+\w+Factory/g,/function\s+create\w+\s*\(/g,/const\s+create\w+\s*=/g],languages:["typescript","javascript"]},{name:"Singleton Pattern",category:"architecture",description:"Single instance management",patterns:[/private\s+static\s+instance/g,/getInstance\s*\(\s*\)/g],languages:["typescript","javascript"]},{name:"Async/Await Database Operations",category:"data-access",description:"Asynchronous database queries",patterns:[/async\s+\w+\s*\([^)]*\)\s*{[\s\S]*?await\s+(?:this\.)?(?:db|database|connection|pool|client)\./g,/await\s+(?:prisma|sequelize|typeorm|knex)\./g],languages:["typescript","javascript"]},{name:"Transaction Management",category:"data-access",description:"Database transaction handling",patterns:[/\.transaction\s*\(/g,/BEGIN\s+TRANSACTION/gi,/COMMIT/gi,/ROLLBACK/gi],languages:["typescript","javascript","sql"]},{name:"Try-Catch Error Handling",category:"error-handling",description:"Structured exception handling",patterns:[/try\s*{[\s\S]*?}\s*catch\s*\(/g],languages:["typescript","javascript"]},{name:"Custom Error Classes",category:"error-handling",description:"Domain-specific error types",patterns:[/class\s+\w+Error\s+extends\s+Error/g,/class\s+\w+Exception\s+extends/g],languages:["typescript","javascript"]},{name:"HTTP Exception Pattern",category:"error-handling",description:"HTTP error response handling",patterns:[/throw\s+new\s+Http\w*Exception/g,/throw\s+new\s+\w*HttpError/g,/throw\s+new\s+BadRequest/g,/throw\s+new\s+NotFound/g,/throw\s+new\s+Unauthorized/g],languages:["typescript","javascript"]},{name:"Authentication Middleware",category:"security",description:"Request authentication handling",patterns:[/(?:auth|authenticate|authorization)\s*(?:middleware|guard|handler)/gi,/@(?:Auth|Authorized|UseGuards)/g,/isAuthenticated/g],languages:["typescript","javascript"]},{name:"JWT Token Handling",category:"security",description:"JSON Web Token operations",patterns:[/jwt\.(?:sign|verify|decode)/g,/jsonwebtoken/g,/Bearer\s+/g],languages:["typescript","javascript"]},{name:"Input Validation",category:"security",description:"Request input sanitization",patterns:[/\.validate\s*\(/g,/zod\./g,/yup\./g,/joi\./g,/@IsString|@IsNumber|@IsEmail/g],languages:["typescript","javascript"]},{name:"Unit Test Structure",category:"testing",description:"Test organization with describe/it blocks",patterns:[/describe\s*\(\s*['"`][^'"`]+['"`]\s*,/g,/it\s*\(\s*['"`][^'"`]+['"`]\s*,/g,/test\s*\(\s*['"`][^'"`]+['"`]\s*,/g],languages:["typescript","javascript"]},{name:"Mock/Stub Pattern",category:"testing",description:"Test double implementations",patterns:[/jest\.mock\s*\(/g,/vi\.mock\s*\(/g,/sinon\.stub\s*\(/g,/\.mockImplementation\s*\(/g],languages:["typescript","javascript"]},{name:"REST Controller Pattern",category:"api",description:"HTTP endpoint handlers",patterns:[/@(?:Get|Post|Put|Delete|Patch)\s*\(/g,/router\.(?:get|post|put|delete|patch)\s*\(/g,/app\.(?:get|post|put|delete|patch)\s*\(/g],languages:["typescript","javascript"]},{name:"API Response Formatting",category:"api",description:"Consistent response structure",patterns:[/return\s*{\s*(?:data|success|message|error|status)/g,/res\.(?:json|send)\s*\(\s*{/g],languages:["typescript","javascript"]},{name:"React Hooks Pattern",category:"state-management",description:"React state and effect hooks",patterns:[/use(?:State|Effect|Context|Reducer|Callback|Memo|Ref)\s*\(/g],languages:["typescript","javascript"],filePatterns:["*.tsx","*.jsx"]},{name:"Redux/Zustand Store",category:"state-management",description:"Global state management",patterns:[/createSlice\s*\(/g,/createStore\s*\(/g,/create\s*\(\s*\([^)]*\)\s*=>\s*\(/g],languages:["typescript","javascript"]}];async function discoverPatterns(i){const{rootPath:g,language:f,category:E,silent:p=false}=i;const y=[];if(!p){logger.header("Pattern Discovery");logger.info(`Scanning: ${g}`)}const b=getExtensionsForLanguage(f);const S=b.map((i=>`**/*${i}`));let J=[];for(const i of S){const f=await glob(i,{cwd:g,absolute:true,ignore:["**/node_modules/**","**/dist/**","**/build/**","**/.git/**"]});J.push(...f)}J=[...new Set(J)];if(!p){logger.info(`Found ${J.length} source files`)}let Z=PATTERN_DEFINITIONS;if(f){Z=Z.filter((i=>!i.languages||i.languages.includes(f)))}if(E){Z=Z.filter((i=>i.category===E))}for(const i of Z){const f=await scanForPattern(J,g,i);if(f.occurrences>0){y.push(f)}}y.sort(((i,g)=>g.occurrences-i.occurrences));if(!p){logger.newline();logger.success(`Discovered ${y.length} patterns`);for(const i of y.slice(0,10)){logger.info(` ${i.name}: ${i.occurrences} occurrences`)}}return y}async function scanForPattern(i,g,f){const E=[];let p=0;for(const y of i){if(f.filePatterns){const i=(0,external_path_.extname)(y);const g=f.filePatterns.some((g=>g.endsWith(i)||g===`*${i}`));if(!g)continue}try{const i=await(0,promises_namespaceObject.readFile)(y,"utf-8");const b=i.split("\n");for(const S of f.patterns){S.lastIndex=0;let f;while((f=S.exec(i))!==null){p++;if(E.length<5){const p=i.slice(0,f.index);const S=(p.match(/\n/g)??[]).length+1;const J=b[S-1]??"";E.push({file:(0,external_path_.relative)(g,y),line:S,code:J.trim().slice(0,100)})}}}}catch{}}return{name:f.name,category:f.category,description:f.description,occurrences:p,examples:E}}function getExtensionsForLanguage(i){const g={typescript:[".ts",".tsx"],javascript:[".js",".jsx",".mjs"],python:[".py"],go:[".go"],rust:[".rs"],java:[".java"],csharp:[".cs"],ruby:[".rb"],php:[".php"]};if(i&&g[i]){return g[i]}return[".ts",".tsx",".js",".jsx",".mjs"]}function generatePatternDocumentation(i){let g=`# ${i.name}\n\n## Overview\n\n${i.description}\n\n**Category:** ${i.category}\n**Occurrences:** ${i.occurrences}\n\n## Examples\n\n`;for(const f of i.examples){g+=`### ${f.file}:${f.line}\n\n\`\`\`typescript\n${f.code}\n\`\`\`\n\n`}g+=`## Usage Guidelines\n\n[Add guidelines for when and how to use this pattern]\n\n## Related Patterns\n\n[Add links to related patterns]\n`;return g}const ANTI_PATTERN_DEFINITIONS=[{name:"Hardcoded Credentials",type:"hardcoded-credentials",severity:"high",description:"Sensitive credentials hardcoded in source code",patterns:[/(?:password|passwd|pwd)\s*[:=]\s*['"][^'"]+['"]/gi,/(?:api[_-]?key|apikey)\s*[:=]\s*['"][^'"]+['"]/gi,/(?:secret|token)\s*[:=]\s*['"][a-zA-Z0-9]{20,}['"]/gi,/(?:auth|bearer)\s*[:=]\s*['"][^'"]+['"]/gi],recommendation:"Move credentials to environment variables or a secrets manager",exclude:[/\.test\.|\.spec\.|mock|fixture|example/i]},{name:"Potential SQL Injection",type:"sql-injection",severity:"high",description:"String interpolation in SQL queries",patterns:[/`SELECT\s+.+\$\{/gi,/`INSERT\s+.+\$\{/gi,/`UPDATE\s+.+\$\{/gi,/`DELETE\s+.+\$\{/gi,/['"]SELECT\s+.+['"]\s*\+/gi],recommendation:"Use parameterized queries or prepared statements"},{name:"Missing Error Handling",type:"missing-error-handling",severity:"high",description:"Async operations without try-catch or .catch()",patterns:[/await\s+[^;]+;(?!\s*}\s*catch)/g],recommendation:"Wrap async operations in try-catch blocks"},{name:"Console.log in Production Code",type:"console-log",severity:"medium",description:"Debug console statements left in code",patterns:[/console\.log\s*\(/g,/console\.debug\s*\(/g,/console\.info\s*\(/g],recommendation:"Remove console statements or use a proper logging library",exclude:[/\.test\.|\.spec\./i]},{name:'TypeScript "any" Type',type:"any-type",severity:"medium",description:'Using "any" type defeats TypeScript benefits',patterns:[/:\s*any\s*[;,)=]/g,/as\s+any/g,/<any>/g],recommendation:'Use proper types or "unknown" with type guards'},{name:"Magic Numbers",type:"magic-numbers",severity:"medium",description:"Unexplained numeric literals in code",patterns:[/(?:if|while|for).*[<>=]+\s*\d{2,}/g,/setTimeout\s*\([^,]+,\s*\d{4,}\)/g,/setInterval\s*\([^,]+,\s*\d{4,}\)/g],recommendation:"Extract to named constants with descriptive names",exclude:[/\b(?:0|1|2|100|1000)\b/]},{name:"Long Function",type:"long-function",severity:"medium",description:"Functions exceeding recommended length",patterns:[],recommendation:"Break down into smaller, focused functions"},{name:"Unused Imports",type:"unused-import",severity:"low",description:"Imported modules that are not used",patterns:[],recommendation:"Remove unused imports to reduce bundle size"},{name:"Deprecated API Usage",type:"deprecated-api",severity:"low",description:"Using deprecated methods or APIs",patterns:[/@deprecated/gi,/\.substr\s*\(/g,/new\s+Buffer\s*\(/g],recommendation:"Update to use current API versions"}];async function discoverAntiPatterns(i){const{rootPath:g,silent:f=false}=i;const E=[];if(!f){logger.header("Anti-Pattern Discovery");logger.info(`Scanning: ${g}`)}const p=["**/*.ts","**/*.tsx","**/*.js","**/*.jsx"];let y=[];for(const i of p){const f=await glob(i,{cwd:g,absolute:true,ignore:["**/node_modules/**","**/dist/**","**/build/**","**/.git/**"]});y.push(...f)}y=[...new Set(y)];if(!f){logger.info(`Scanning ${y.length} files...`)}for(const i of ANTI_PATTERN_DEFINITIONS){if(i.patterns.length===0)continue;const f=await scanForAntiPattern(y,g,i);if(f.locations.length>0){E.push(f)}}const b=await findLongFunctions(y,g);if(b.locations.length>0){E.push(b)}const S=await findGodObjects(y,g);if(S.locations.length>0){E.push(S)}const J={high:0,medium:1,low:2};E.sort(((i,g)=>J[i.severity]-J[g.severity]));if(!f){logger.newline();logger.success(`Found ${E.length} anti-pattern types`);const i=E.filter((i=>i.severity==="high"));const g=E.filter((i=>i.severity==="medium"));const f=E.filter((i=>i.severity==="low"));if(i.length>0){logger.error(`High severity: ${i.length} types, ${i.reduce(((i,g)=>i+g.locations.length),0)} occurrences`)}if(g.length>0){logger.warn(`Medium severity: ${g.length} types, ${g.reduce(((i,g)=>i+g.locations.length),0)} occurrences`)}if(f.length>0){logger.info(`Low severity: ${f.length} types, ${f.reduce(((i,g)=>i+g.locations.length),0)} occurrences`)}}return E}async function scanForAntiPattern(i,g,f){const E=[];for(const p of i){if(f.exclude?.some((i=>i.test(p)))){continue}try{const i=await(0,promises_namespaceObject.readFile)(p,"utf-8");const y=i.split("\n");for(const b of f.patterns){b.lastIndex=0;let S;while((S=b.exec(i))!==null){if(f.exclude?.some((i=>i.test(S[0])))){continue}const b=i.slice(0,S.index);const J=(b.match(/\n/g)??[]).length+1;const Z=y[J-1]??"";if(Z.trim().startsWith("//")||Z.trim().startsWith("*")){continue}E.push({file:(0,external_path_.relative)(g,p),line:J,code:Z.trim().slice(0,100)});if(E.length>=20)break}if(E.length>=20)break}}catch{}}return{name:f.name,severity:f.severity,type:f.type,description:f.description,locations:E,recommendation:f.recommendation}}async function findLongFunctions(i,g){const f=[];const E=50;for(const p of i){try{const i=await(0,promises_namespaceObject.readFile)(p,"utf-8");const y=i.split("\n");const b=/(?:function\s+\w+|(?:async\s+)?(?:const|let|var)\s+\w+\s*=\s*(?:async\s*)?\([^)]*\)\s*=>|(?:async\s+)?\w+\s*\([^)]*\)\s*{)/g;let S;while((S=b.exec(i))!==null){const b=(i.slice(0,S.index).match(/\n/g)??[]).length+1;let J=0;let Z=false;let $=b;for(let i=b-1;i<y.length;i++){const g=y[i]??"";if(g.includes("{")){J+=(g.match(/{/g)??[]).length;Z=true}if(g.includes("}")){J-=(g.match(/}/g)??[]).length}if(Z&&J===0){$=i+1;break}}const z=$-b;if(z>E){f.push({file:(0,external_path_.relative)(g,p),line:b,code:`Function spans ${z} lines`});if(f.length>=10)break}}}catch{}}return{name:"Long Function",severity:"medium",type:"long-function",description:`Functions exceeding ${E} lines`,locations:f,recommendation:"Break down into smaller, focused functions"}}async function findGodObjects(i,g){const f=[];const E=500;for(const p of i){try{const i=await(0,promises_namespaceObject.readFile)(p,"utf-8");const y=i.split("\n");const b=/class\s+(\w+)/g;let S;while((S=b.exec(i))!==null){const b=S[1];const J=(i.slice(0,S.index).match(/\n/g)??[]).length+1;let Z=0;let $=false;let z=J;for(let i=J-1;i<y.length;i++){const g=y[i]??"";if(g.includes("{")){Z+=(g.match(/{/g)??[]).length;$=true}if(g.includes("}")){Z-=(g.match(/}/g)??[]).length}if($&&Z===0){z=i+1;break}}const ee=z-J;if(ee>E){f.push({file:(0,external_path_.relative)(g,p),line:J,code:`Class ${b} spans ${ee} lines`});if(f.length>=10)break}}}catch{}}return{name:"God Object",severity:"medium",type:"god-object",description:`Classes exceeding ${E} lines with too many responsibilities`,locations:f,recommendation:"Split into smaller classes with single responsibilities"}}async function discoverStandards(i){const{rootPath:g,silent:f=false}=i;if(!f){logger.header("Standards Discovery");logger.info(`Analyzing: ${g}`)}const E=await glob("**/*.{ts,tsx}",{cwd:g,absolute:true,ignore:["**/node_modules/**","**/dist/**"]});const p=await glob("**/*.{js,jsx,mjs}",{cwd:g,absolute:true,ignore:["**/node_modules/**","**/dist/**"]});const y=[...new Set([...E,...p])];if(!f){logger.info(`Analyzing ${y.length} source files...`)}const b=await discoverNamingStandards(y,g);const S=await discoverFileOrganization(g);const J=await discoverCodeStyle(y);const Z=await discoverDocumentationStandards(y);const $=await discoverTestingStandards(g);const z={naming:b,fileOrganization:S,codeStyle:J,documentation:Z,testing:$};if(!f){logger.newline();logger.success("Standards discovered:");logger.info(` Functions: ${b.functions.convention} (${b.functions.compliance.toFixed(0)}% compliance)`);logger.info(` Classes: ${b.classes.convention} (${b.classes.compliance.toFixed(0)}% compliance)`);logger.info(` Indentation: ${J.indentation}${J.indentSize?` (${J.indentSize} spaces)`:""}`);logger.info(` Type hints: ${Z.typeHintCoverage.toFixed(0)}% coverage`)}return z}async function discoverNamingStandards(i,g){const f=[];const E=[];const p=[];const y=[];for(const b of i.slice(0,100)){try{const i=await(0,promises_namespaceObject.readFile)(b,"utf-8");const S=(0,external_path_.relative)(g,b);const J=i.matchAll(/(?:function\s+(\w+)|(?:const|let|var)\s+(\w+)\s*=\s*(?:async\s*)?\([^)]*\)\s*=>)/g);for(const i of J){const g=i[1]??i[2];if(g)f.push({name:g,file:S})}const Z=i.matchAll(/class\s+(\w+)/g);for(const i of Z){if(i[1])E.push({name:i[1],file:S})}const $=i.matchAll(/const\s+([A-Z][A-Z0-9_]+)\s*=/g);for(const i of $){if(i[1])p.push({name:i[1],file:S})}const z=i.matchAll(/(?:const|let|var)\s+([a-z][a-zA-Z0-9]*)\s*=/g);for(const i of z){if(i[1])y.push({name:i[1],file:S})}}catch{}}const b=i.slice(0,20).map((i=>({name:(0,external_path_.basename)(i),file:(0,external_path_.relative)(g,i)})));return{functions:analyzeNamingConvention(f,"camelCase"),classes:analyzeNamingConvention(E,"PascalCase"),constants:analyzeNamingConvention(p,"UPPER_SNAKE_CASE"),variables:analyzeNamingConvention(y,"camelCase"),files:analyzeFileNaming(b)}}function analyzeNamingConvention(i,g){const f={camelCase:i=>/^[a-z][a-zA-Z0-9]*$/.test(i),PascalCase:i=>/^[A-Z][a-zA-Z0-9]*$/.test(i),UPPER_SNAKE_CASE:i=>/^[A-Z][A-Z0-9_]*$/.test(i),"kebab-case":i=>/^[a-z][a-z0-9-]*$/.test(i),snake_case:i=>/^[a-z][a-z0-9_]*$/.test(i)};const E=f[g]??f.camelCase;const p=i.filter((i=>E(i.name)));const y=i.length>0?p.length/i.length*100:100;let b=g;let S=y;for(const[g,E]of Object.entries(f)){const f=i.filter((i=>E(i.name))).length/Math.max(i.length,1)*100;if(f>S){S=f;b=g}}return{convention:b,compliance:S,examples:i.slice(0,5).map((i=>({...i,compliant:E(i.name)})))}}function analyzeFileNaming(i){const g=i.filter((i=>/^[a-z][a-z0-9-]*\./.test(i.name))).length;const f=i.filter((i=>/^[a-z][a-zA-Z0-9]*\./.test(i.name))).length;const E=i.filter((i=>/^[A-Z][a-zA-Z0-9]*\./.test(i.name))).length;const p=i.filter((i=>/^[a-z][a-z0-9_]*\./.test(i.name))).length;const y=i.length||1;const b=[{name:"kebab-case",count:g},{name:"camelCase",count:f},{name:"PascalCase",count:E},{name:"snake_case",count:p}];const S=b.sort(((i,g)=>g.count-i.count))[0];return{convention:S.name,compliance:S.count/y*100,examples:i.slice(0,5).map((i=>({...i,compliant:S.name==="kebab-case"?/^[a-z][a-z0-9-]*\./.test(i.name):true})))}}async function discoverFileOrganization(i){const g=[];const f=[{pattern:"src/",glob:"src/**/*"},{pattern:"lib/",glob:"lib/**/*"},{pattern:"components/",glob:"**/components/**/*"},{pattern:"services/",glob:"**/services/**/*"},{pattern:"models/",glob:"**/models/**/*"},{pattern:"utils/",glob:"**/utils/**/*"},{pattern:"hooks/",glob:"**/hooks/**/*"},{pattern:"api/",glob:"**/api/**/*"},{pattern:"routes/",glob:"**/routes/**/*"},{pattern:"routers/",glob:"**/routers/**/*"},{pattern:"tests/",glob:"**/tests/**/*"},{pattern:"__tests__/",glob:"**/__tests__/**/*"}];for(const{pattern:E,glob:p}of f){const f=await glob(p,{cwd:i,ignore:["**/node_modules/**","**/dist/**"]});if(f.length>0){g.push({pattern:E,files:f.length,examples:f.slice(0,3)})}}const E=await glob("*",{cwd:i});const p=E.filter((i=>!i.includes(".")));return{patterns:g.sort(((i,g)=>g.files-i.files)),rootFolders:p}}async function discoverCodeStyle(i){let g=0;let f=0;let E=0;let p=0;let y=0;let b=0;let S=0;let J=0;let Z=0;let $=0;let z=0;for(const ee of i.slice(0,50)){try{const i=await(0,promises_namespaceObject.readFile)(ee,"utf-8");const re=i.split("\n");for(const i of re){if(i.startsWith("\t"))g++;if(i.startsWith(" ")){f++;if(i.startsWith(" ")&&!i.startsWith(" "))p++;else if(i.startsWith(" ")&&!i.startsWith(" "))E++}if(i.length>z)z=i.length;if(/[a-zA-Z0-9)}\]'"`]\s*;$/.test(i.trim()))y++;if(/[a-zA-Z0-9)}\]'"`]$/.test(i.trim())&&!i.trim().endsWith("{"))b++;if(i.includes("'")&&!i.includes('"'))S++;if(i.includes('"')&&!i.includes("'"))J++;if(/,\s*[}\]]/.test(i))Z++;if(/[^,\s]\s*[}\]]/.test(i))$++}}catch{}}const ee=g>f*.8?"tabs":f>g*.8?"spaces":"mixed";const re=p>E?4:2;const Pe=y>b*2?"always":b>y*2?"never":"mixed";const $t=S>J*2?"single":J>S*2?"double":"mixed";const tn=Z>$*2?"always":$>Z*2?"never":"mixed";const sn={maxLineLength:z,indentation:ee,semicolons:Pe,quotes:$t,trailingCommas:tn};if(ee==="spaces"){sn.indentSize=re}return sn}async function discoverDocumentationStandards(i){let g=0;let f=0;let E=0;let p=0;let y=0;for(const b of i.slice(0,50)){try{const i=await(0,promises_namespaceObject.readFile)(b,"utf-8");const S=i.match(/(?:function\s+\w+|(?:const|let|var)\s+\w+\s*=\s*(?:async\s*)?\([^)]*\)\s*=>)/g);g+=S?.length??0;const J=i.match(/\/\*\*[\s\S]*?\*\/\s*(?:export\s+)?(?:async\s+)?(?:function|const|let|var)/g);f+=J?.length??0;if(i.includes("@param"))p++;if(i.includes("@returns"))y++;const Z=i.match(/\([^)]*:[^)]+\)\s*(?::\s*\w+)?\s*(?:=>|{)/g);E+=Z?.length??0}catch{}}const b=y>p?"TSDoc":"JSDoc";const S=g>0?f/g*100:0;const J=g>0?E/g*100:0;return{docstringStyle:b,coverage:S,typeHintCoverage:J}}async function discoverTestingStandards(i){const g=["**/*.test.ts","**/*.spec.ts","**/__tests__/*.ts","**/test/*.ts","**/tests/*.ts"];let f="*.test.ts";let E=0;for(const p of g){const g=await glob(p,{cwd:i,ignore:["**/node_modules/**"]});if(g.length>E){E=g.length;f=p.replace("**/","").replace("/*.ts","")}}const p=await glob("**/fixtures/**/*",{cwd:i,ignore:["**/node_modules/**"]});const y={pattern:f};if(p.length>0){y.fixturePattern="fixtures/"}return y}async function analyzeDependencies(i){const{rootPath:g,silent:f=false}=i;if(!f){logger.header("Dependency Analysis");logger.info(`Analyzing: ${g}`)}const E=await analyzePackages(g);if(!f){logger.info(`Found ${E.total} packages (${E.production} prod, ${E.development} dev)`)}const p=await analyzeModules(g);if(!f){logger.info(`Analyzed ${p.totalFiles} files, ${p.imports} imports`);if(p.circularDependencies.length>0){logger.warn(`Found ${p.circularDependencies.length} circular dependencies`)}}const y=await analyzeSecurityBasic(E);const b=await findUnusedDependencies(g,E);if(!f&&b.length>0){logger.warn(`Found ${b.length} potentially unused dependencies`)}return{packages:E,modules:p,security:y,unused:b}}async function analyzePackages(i){const g={total:0,production:0,development:0,dependencies:[],devDependencies:[]};const f=(0,external_path_.join)(i,"package.json");if(!await glob_pathExists(f)){return g}try{const i=await(0,promises_namespaceObject.readFile)(f,"utf-8");const E=JSON.parse(i);if(E.dependencies){for(const[i,f]of Object.entries(E.dependencies)){g.dependencies.push({name:i,version:String(f),type:"production"})}g.production=g.dependencies.length}if(E.devDependencies){for(const[i,f]of Object.entries(E.devDependencies)){g.devDependencies.push({name:i,version:String(f),type:"development"})}g.development=g.devDependencies.length}g.total=g.production+g.development}catch{}return g}async function analyzeModules(i){const g={totalFiles:0,imports:0,circularDependencies:[],highCoupling:[]};const f=await glob("**/*.{ts,tsx,js,jsx}",{cwd:i,absolute:true,ignore:["**/node_modules/**","**/dist/**","**/build/**"]});g.totalFiles=f.length;const E=new Map;const p=new Map;for(const y of f){try{const f=await(0,promises_namespaceObject.readFile)(y,"utf-8");const b=(0,external_path_.relative)(i,y);const S=f.matchAll(/import\s+.*?from\s+['"]([^'"]+)['"]/g);const J=new Set;for(const i of S){const f=i[1];if(f?.startsWith(".")){const i=resolveImport(b,f);J.add(i);g.imports++;if(!p.has(i)){p.set(i,new Set)}p.get(i).add(b)}}E.set(b,J)}catch{}}g.circularDependencies=detectCircularDependencies(E);for(const[i,f]of E){const E=f.size;const y=p.get(i)?.size??0;if(E>10||y>10){g.highCoupling.push({file:i,imports:E,importedBy:y})}}g.highCoupling.sort(((i,g)=>g.imports+g.importedBy-(i.imports+i.importedBy)));return g}function resolveImport(i,g){const f=i.split("/").slice(0,-1).join("/");const E=g.split("/");const p=f?f.split("/"):[];for(const i of E){if(i===".")continue;if(i===".."){p.pop()}else{p.push(i)}}let y=p.join("/");if(!y.match(/\.[jt]sx?$/)){y+=".ts"}return y}function detectCircularDependencies(i){const g=[];const f=new Set;const E=new Set;function dfs(p,y){if(E.has(p)){const i=y.indexOf(p);if(i!==-1){g.push({files:y.slice(i)})}return true}if(f.has(p)){return false}f.add(p);E.add(p);y.push(p);const b=i.get(p)??new Set;for(const i of b){dfs(i,[...y])}E.delete(p);return false}for(const g of i.keys()){if(!f.has(g)){dfs(g,[])}}const p=[];const y=new Set;for(const i of g){const g=[...i.files].sort().join("->");if(!y.has(g)){y.add(g);p.push(i)}}return p.slice(0,10)}async function analyzeSecurityBasic(i){const g=[];const f={lodash:{severity:"high",title:"Prototype Pollution in lodash < 4.17.21",fix:"Upgrade to lodash@4.17.21 or higher"},minimist:{severity:"moderate",title:"Prototype Pollution in minimist < 1.2.6",fix:"Upgrade to minimist@1.2.6 or higher"},"node-fetch":{severity:"moderate",title:"Exposure of Sensitive Information in node-fetch < 2.6.7",fix:"Upgrade to node-fetch@2.6.7 or higher"}};const E=[...i.dependencies,...i.devDependencies];for(const i of E){const E=f[i.name];if(E){g.push({package:i.name,severity:E.severity,title:E.title,recommendation:E.fix})}}return{vulnerabilities:g}}async function findUnusedDependencies(i,g){const f=[];const E=await glob("**/*.{ts,tsx,js,jsx,json}",{cwd:i,absolute:true,ignore:["**/node_modules/**","**/dist/**"]});let p="";for(const i of E){try{const g=await(0,promises_namespaceObject.readFile)(i,"utf-8");p+=g+"\n"}catch{}}const y=[...g.dependencies,...g.devDependencies];for(const i of y){const g=i.name;if(["typescript","@types/","eslint","prettier","vitest","jest"].some((i=>g.includes(i)))){continue}const E=[`from '${g}'`,`from "${g}"`,`require('${g}')`,`require("${g}")`,`from '${g}/`,`from "${g}/`];const y=E.some((i=>p.includes(i)));if(!y){f.push({name:g,type:i.type,reason:"No import found in source files"})}}return f}async function run(){try{const i=core.getInput("command",{required:true});const g=core.getInput("mode")||"quick";const f=(0,external_path_.resolve)(process.cwd(),core.getInput("docs-path")||".documentation");const E=core.getInput("domain")||undefined;const p=core.getInput("discover-type")||"patterns";const y=core.getInput("fail-on-error")==="true";const b=parseInt(core.getInput("fail-threshold")||"50",10);core.info(`Running command: ${i}`);core.info(`Documentation path: ${f}`);core.info(`Mode: ${g}`);let S=100;let J=0;let Z=0;let $=0;let z=0;let ee=100;let re="";switch(i){case"init":{core.info("Initializing documentation structure...");const i=await createScaffold({rootPath:f,overwrite:false,silent:false});if(!i.success){throw new Error(`Init failed: ${i.errors.join(", ")}`)}core.info(`Created ${i.created.length} files/directories`);break}case"maintain":{core.info("Running maintenance...");const i=await runMaintenance({docsPath:f,quick:g==="quick",fix:g==="fix",silent:false});S=i.healthScore;J=i.metadataSync?.totalFiles??0;Z=i.audit?.issues.length??0;$=i.metadataSync?.fixedFiles??0;z=i.linkCheck?.brokenLinks.length??0;ee=i.audit?.stats.metadataCompliance??100;re=i.reportPath??"";if(i.errors.length>0){core.warning(`Maintenance completed with errors: ${i.errors.join(", ")}`)}break}case"metadata-sync":{core.info("Syncing metadata...");const i=await syncMetadata({docsPath:f,...E?{domain:E}:{},fix:g==="fix",dryRun:g!=="fix",silent:false});J=i.totalFiles;Z=i.errors.length;$=i.fixedFiles;ee=i.stats.avgCompleteness;break}case"link-check":{core.info("Checking links...");const i=await checkLinks({docsPath:f,...E?{domain:E}:{},silent:false});J=i.totalFiles;z=i.brokenLinks.length;Z=z;if(z>0){core.warning(`Found ${z} broken links`);for(const g of i.brokenLinks.slice(0,10)){core.warning(` ${g.sourceFile}:${g.lineNumber} -> ${g.targetPath}`)}}break}case"audit":{core.info("Auditing documentation...");const i=await auditDocumentation({docsPath:f,...E?{domain:E}:{},silent:false});S=i.healthScore;J=i.totalFiles;Z=i.issues.length;ee=i.stats.metadataCompliance;const g=i.issues.filter((i=>i.severity==="error"));if(g.length>0){core.warning(`Found ${g.length} critical issues`)}break}case"discover":{core.info(`Discovering ${p}...`);switch(p){case"patterns":await discoverPatterns({rootPath:process.cwd(),silent:false});break;case"anti-patterns":await discoverAntiPatterns({rootPath:process.cwd(),silent:false});break;case"standards":await discoverStandards({rootPath:process.cwd(),silent:false});break;case"dependencies":await analyzeDependencies({rootPath:process.cwd(),silent:false});break;default:throw new Error(`Unknown discover type: ${p}`)}break}default:throw new Error(`Unknown command: ${i}`)}core.setOutput("health-score",S.toString());core.setOutput("total-documents",J.toString());core.setOutput("issues-found",Z.toString());core.setOutput("issues-fixed",$.toString());core.setOutput("broken-links",z.toString());core.setOutput("metadata-compliance",ee.toFixed(1));core.setOutput("report-path",re);if(y){if(S<b){core.setFailed(`Health score ${S.toFixed(1)} is below threshold ${b}`);return}if(z>0){core.setFailed(`Found ${z} broken links`);return}const i=Z;if(i>0&&g!=="fix"){core.setFailed(`Found ${i} issues that need attention`);return}}core.info("Command completed successfully!")}catch(i){const g=i instanceof Error?i.message:String(i);core.setFailed(g)}}run();
17
+ /*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */y[p-4]=this.maskKey[0];y[p-3]=this.maskKey[1];y[p-2]=this.maskKey[2];y[p-1]=this.maskKey[3];y[1]=f;if(f===126){y.writeUInt16BE(g,2)}else if(f===127){y[2]=y[3]=0;y.writeUIntBE(g,4,6)}y[1]|=128;for(let i=0;i<g;i++){y[p+i]=this.frameData[i]^this.maskKey[i%4]}return y}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},3171:(i,g,f)=>{const{Writable:E}=f(2203);const p=f(1637);const{parserStates:y,opcodes:b,states:S,emptyBuffer:J}=f(5913);const{kReadyState:Z,kSentClose:$,kResponse:z,kReceivedClose:ee}=f(2933);const{isValidStatusCode:re,failWebsocketConnection:Pe,websocketMessageReceived:$t}=f(3574);const{WebsocketFrameSend:tn}=f(1237);const sn={};sn.ping=p.channel("undici:websocket:ping");sn.pong=p.channel("undici:websocket:pong");class ByteParser extends E{#i=[];#o=0;#a=y.INFO;#c={};#l=[];constructor(i){super();this.ws=i}_write(i,g,f){this.#i.push(i);this.#o+=i.length;this.run(f)}run(i){while(true){if(this.#a===y.INFO){if(this.#o<2){return i()}const g=this.consume(2);this.#c.fin=(g[0]&128)!==0;this.#c.opcode=g[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==b.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==b.BINARY&&this.#c.opcode!==b.TEXT){Pe(this.ws,"Invalid frame type was fragmented.");return}const f=g[1]&127;if(f<=125){this.#c.payloadLength=f;this.#a=y.READ_DATA}else if(f===126){this.#a=y.PAYLOADLENGTH_16}else if(f===127){this.#a=y.PAYLOADLENGTH_64}if(this.#c.fragmented&&f>125){Pe(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===b.PING||this.#c.opcode===b.PONG||this.#c.opcode===b.CLOSE)&&f>125){Pe(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===b.CLOSE){if(f===1){Pe(this.ws,"Received close frame with a 1-byte body.");return}const i=this.consume(f);this.#c.closeInfo=this.parseCloseBody(false,i);if(!this.ws[$]){const i=Buffer.allocUnsafe(2);i.writeUInt16BE(this.#c.closeInfo.code,0);const g=new tn(i);this.ws[z].socket.write(g.createFrame(b.CLOSE),(i=>{if(!i){this.ws[$]=true}}))}this.ws[Z]=S.CLOSING;this.ws[ee]=true;this.end();return}else if(this.#c.opcode===b.PING){const g=this.consume(f);if(!this.ws[ee]){const i=new tn(g);this.ws[z].socket.write(i.createFrame(b.PONG));if(sn.ping.hasSubscribers){sn.ping.publish({payload:g})}}this.#a=y.INFO;if(this.#o>0){continue}else{i();return}}else if(this.#c.opcode===b.PONG){const g=this.consume(f);if(sn.pong.hasSubscribers){sn.pong.publish({payload:g})}if(this.#o>0){continue}else{i();return}}}else if(this.#a===y.PAYLOADLENGTH_16){if(this.#o<2){return i()}const g=this.consume(2);this.#c.payloadLength=g.readUInt16BE(0);this.#a=y.READ_DATA}else if(this.#a===y.PAYLOADLENGTH_64){if(this.#o<8){return i()}const g=this.consume(8);const f=g.readUInt32BE(0);if(f>2**31-1){Pe(this.ws,"Received payload length > 2^31 bytes.");return}const E=g.readUInt32BE(4);this.#c.payloadLength=(f<<8)+E;this.#a=y.READ_DATA}else if(this.#a===y.READ_DATA){if(this.#o<this.#c.payloadLength){return i()}else if(this.#o>=this.#c.payloadLength){const i=this.consume(this.#c.payloadLength);this.#l.push(i);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===b.CONTINUATION){const i=Buffer.concat(this.#l);$t(this.ws,this.#c.originalOpcode,i);this.#c={};this.#l.length=0}this.#a=y.INFO}}if(this.#o>0){continue}else{i();break}}}consume(i){if(i>this.#o){return null}else if(i===0){return J}if(this.#i[0].length===i){this.#o-=this.#i[0].length;return this.#i.shift()}const g=Buffer.allocUnsafe(i);let f=0;while(f!==i){const E=this.#i[0];const{length:p}=E;if(p+f===i){g.set(this.#i.shift(),f);break}else if(p+f>i){g.set(E.subarray(0,i-f),f);this.#i[0]=E.subarray(i-f);break}else{g.set(this.#i.shift(),f);f+=E.length}}this.#o-=i;return g}parseCloseBody(i,g){let f;if(g.length>=2){f=g.readUInt16BE(0)}if(i){if(!re(f)){return null}return{code:f}}let E=g.subarray(2);if(E[0]===239&&E[1]===187&&E[2]===191){E=E.subarray(3)}if(f!==undefined&&!re(f)){return null}try{E=new TextDecoder("utf-8",{fatal:true}).decode(E)}catch{return null}return{code:f,reason:E}}get closingInfo(){return this.#c.closeInfo}}i.exports={ByteParser:ByteParser}},2933:i=>{i.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(i,g,f)=>{const{kReadyState:E,kController:p,kResponse:y,kBinaryType:b,kWebSocketURL:S}=f(2933);const{states:J,opcodes:Z}=f(5913);const{MessageEvent:$,ErrorEvent:z}=f(6255);function isEstablished(i){return i[E]===J.OPEN}function isClosing(i){return i[E]===J.CLOSING}function isClosed(i){return i[E]===J.CLOSED}function fireEvent(i,g,f=Event,E){const p=new f(i,E);g.dispatchEvent(p)}function websocketMessageReceived(i,g,f){if(i[E]!==J.OPEN){return}let p;if(g===Z.TEXT){try{p=new TextDecoder("utf-8",{fatal:true}).decode(f)}catch{failWebsocketConnection(i,"Received invalid UTF-8 in text frame.");return}}else if(g===Z.BINARY){if(i[b]==="blob"){p=new Blob([f])}else{p=new Uint8Array(f).buffer}}fireEvent("message",i,$,{origin:i[S].origin,data:p})}function isValidSubprotocol(i){if(i.length===0){return false}for(const g of i){const i=g.charCodeAt(0);if(i<33||i>126||g==="("||g===")"||g==="<"||g===">"||g==="@"||g===","||g===";"||g===":"||g==="\\"||g==='"'||g==="/"||g==="["||g==="]"||g==="?"||g==="="||g==="{"||g==="}"||i===32||i===9){return false}}return true}function isValidStatusCode(i){if(i>=1e3&&i<1015){return i!==1004&&i!==1005&&i!==1006}return i>=3e3&&i<=4999}function failWebsocketConnection(i,g){const{[p]:f,[y]:E}=i;f.abort();if(E?.socket&&!E.socket.destroyed){E.socket.destroy()}if(g){fireEvent("error",i,z,{error:new Error(g)})}}i.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},5171:(i,g,f)=>{const{webidl:E}=f(4222);const{DOMException:p}=f(7326);const{URLSerializer:y}=f(4322);const{getGlobalOrigin:b}=f(5628);const{staticPropertyDescriptors:S,states:J,opcodes:Z,emptyBuffer:$}=f(5913);const{kWebSocketURL:z,kReadyState:ee,kController:re,kBinaryType:Pe,kResponse:$t,kSentClose:tn,kByteParser:sn}=f(2933);const{isEstablished:nn,isClosing:rn,isValidSubprotocol:An,failWebsocketConnection:on,fireEvent:an}=f(3574);const{establishWebSocketConnection:cn}=f(8550);const{WebsocketFrameSend:ln}=f(1237);const{ByteParser:un}=f(3171);const{kEnumerableProperty:hn,isBlobLike:dn}=f(3440);const{getGlobalDispatcher:gn}=f(2581);const{types:fn}=f(9023);let En=false;class WebSocket extends EventTarget{#u={open:null,error:null,close:null,message:null};#h=0;#d="";#g="";constructor(i,g=[]){super();E.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!En){En=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const f=E.converters["DOMString or sequence<DOMString> or WebSocketInit"](g);i=E.converters.USVString(i);g=f.protocols;const y=b();let S;try{S=new URL(i,y)}catch(i){throw new p(i,"SyntaxError")}if(S.protocol==="http:"){S.protocol="ws:"}else if(S.protocol==="https:"){S.protocol="wss:"}if(S.protocol!=="ws:"&&S.protocol!=="wss:"){throw new p(`Expected a ws: or wss: protocol, got ${S.protocol}`,"SyntaxError")}if(S.hash||S.href.endsWith("#")){throw new p("Got fragment","SyntaxError")}if(typeof g==="string"){g=[g]}if(g.length!==new Set(g.map((i=>i.toLowerCase()))).size){throw new p("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(g.length>0&&!g.every((i=>An(i)))){throw new p("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[z]=new URL(S.href);this[re]=cn(S,g,this,(i=>this.#f(i)),f);this[ee]=WebSocket.CONNECTING;this[Pe]="blob"}close(i=undefined,g=undefined){E.brandCheck(this,WebSocket);if(i!==undefined){i=E.converters["unsigned short"](i,{clamp:true})}if(g!==undefined){g=E.converters.USVString(g)}if(i!==undefined){if(i!==1e3&&(i<3e3||i>4999)){throw new p("invalid code","InvalidAccessError")}}let f=0;if(g!==undefined){f=Buffer.byteLength(g);if(f>123){throw new p(`Reason must be less than 123 bytes; received ${f}`,"SyntaxError")}}if(this[ee]===WebSocket.CLOSING||this[ee]===WebSocket.CLOSED){}else if(!nn(this)){on(this,"Connection was closed before it was established.");this[ee]=WebSocket.CLOSING}else if(!rn(this)){const E=new ln;if(i!==undefined&&g===undefined){E.frameData=Buffer.allocUnsafe(2);E.frameData.writeUInt16BE(i,0)}else if(i!==undefined&&g!==undefined){E.frameData=Buffer.allocUnsafe(2+f);E.frameData.writeUInt16BE(i,0);E.frameData.write(g,2,"utf-8")}else{E.frameData=$}const p=this[$t].socket;p.write(E.createFrame(Z.CLOSE),(i=>{if(!i){this[tn]=true}}));this[ee]=J.CLOSING}else{this[ee]=WebSocket.CLOSING}}send(i){E.brandCheck(this,WebSocket);E.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});i=E.converters.WebSocketSendData(i);if(this[ee]===WebSocket.CONNECTING){throw new p("Sent before connected.","InvalidStateError")}if(!nn(this)||rn(this)){return}const g=this[$t].socket;if(typeof i==="string"){const f=Buffer.from(i);const E=new ln(f);const p=E.createFrame(Z.TEXT);this.#h+=f.byteLength;g.write(p,(()=>{this.#h-=f.byteLength}))}else if(fn.isArrayBuffer(i)){const f=Buffer.from(i);const E=new ln(f);const p=E.createFrame(Z.BINARY);this.#h+=f.byteLength;g.write(p,(()=>{this.#h-=f.byteLength}))}else if(ArrayBuffer.isView(i)){const f=Buffer.from(i,i.byteOffset,i.byteLength);const E=new ln(f);const p=E.createFrame(Z.BINARY);this.#h+=f.byteLength;g.write(p,(()=>{this.#h-=f.byteLength}))}else if(dn(i)){const f=new ln;i.arrayBuffer().then((i=>{const E=Buffer.from(i);f.frameData=E;const p=f.createFrame(Z.BINARY);this.#h+=E.byteLength;g.write(p,(()=>{this.#h-=E.byteLength}))}))}}get readyState(){E.brandCheck(this,WebSocket);return this[ee]}get bufferedAmount(){E.brandCheck(this,WebSocket);return this.#h}get url(){E.brandCheck(this,WebSocket);return y(this[z])}get extensions(){E.brandCheck(this,WebSocket);return this.#g}get protocol(){E.brandCheck(this,WebSocket);return this.#d}get onopen(){E.brandCheck(this,WebSocket);return this.#u.open}set onopen(i){E.brandCheck(this,WebSocket);if(this.#u.open){this.removeEventListener("open",this.#u.open)}if(typeof i==="function"){this.#u.open=i;this.addEventListener("open",i)}else{this.#u.open=null}}get onerror(){E.brandCheck(this,WebSocket);return this.#u.error}set onerror(i){E.brandCheck(this,WebSocket);if(this.#u.error){this.removeEventListener("error",this.#u.error)}if(typeof i==="function"){this.#u.error=i;this.addEventListener("error",i)}else{this.#u.error=null}}get onclose(){E.brandCheck(this,WebSocket);return this.#u.close}set onclose(i){E.brandCheck(this,WebSocket);if(this.#u.close){this.removeEventListener("close",this.#u.close)}if(typeof i==="function"){this.#u.close=i;this.addEventListener("close",i)}else{this.#u.close=null}}get onmessage(){E.brandCheck(this,WebSocket);return this.#u.message}set onmessage(i){E.brandCheck(this,WebSocket);if(this.#u.message){this.removeEventListener("message",this.#u.message)}if(typeof i==="function"){this.#u.message=i;this.addEventListener("message",i)}else{this.#u.message=null}}get binaryType(){E.brandCheck(this,WebSocket);return this[Pe]}set binaryType(i){E.brandCheck(this,WebSocket);if(i!=="blob"&&i!=="arraybuffer"){this[Pe]="blob"}else{this[Pe]=i}}#f(i){this[$t]=i;const g=new un(this);g.on("drain",(function onParserDrain(){this.ws[$t].socket.resume()}));i.socket.ws=this;this[sn]=g;this[ee]=J.OPEN;const f=i.headersList.get("sec-websocket-extensions");if(f!==null){this.#g=f}const E=i.headersList.get("sec-websocket-protocol");if(E!==null){this.#d=E}an("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=J.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=J.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=J.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=J.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:S,OPEN:S,CLOSING:S,CLOSED:S,url:hn,readyState:hn,bufferedAmount:hn,onopen:hn,onerror:hn,onclose:hn,close:hn,onmessage:hn,binaryType:hn,send:hn,extensions:hn,protocol:hn,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:S,OPEN:S,CLOSING:S,CLOSED:S});E.converters["sequence<DOMString>"]=E.sequenceConverter(E.converters.DOMString);E.converters["DOMString or sequence<DOMString>"]=function(i){if(E.util.Type(i)==="Object"&&Symbol.iterator in i){return E.converters["sequence<DOMString>"](i)}return E.converters.DOMString(i)};E.converters.WebSocketInit=E.dictionaryConverter([{key:"protocols",converter:E.converters["DOMString or sequence<DOMString>"],get defaultValue(){return[]}},{key:"dispatcher",converter:i=>i,get defaultValue(){return gn()}},{key:"headers",converter:E.nullableConverter(E.converters.HeadersInit)}]);E.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(i){if(E.util.Type(i)==="Object"&&!(Symbol.iterator in i)){return E.converters.WebSocketInit(i)}return{protocols:E.converters["DOMString or sequence<DOMString>"](i)}};E.converters.WebSocketSendData=function(i){if(E.util.Type(i)==="Object"){if(dn(i)){return E.converters.Blob(i,{strict:false})}if(ArrayBuffer.isView(i)||fn.isAnyArrayBuffer(i)){return E.converters.BufferSource(i)}}return E.converters.USVString(i)};i.exports={WebSocket:WebSocket}},2613:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("assert")},290:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("async_hooks")},181:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("buffer")},5317:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("child_process")},4236:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("console")},6982:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("crypto")},1637:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("diagnostics_channel")},4434:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("events")},9896:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs")},8611:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http")},5675:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http2")},5692:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("https")},9278:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("net")},7598:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:crypto")},8474:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:events")},7075:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream")},7975:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util")},857:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("os")},6928:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("path")},2987:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("perf_hooks")},932:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("process")},3480:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("querystring")},2203:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream")},3774:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream/web")},3193:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("string_decoder")},3557:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("timers")},4756:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tls")},7016:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("url")},9023:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util")},8253:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util/types")},8167:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("worker_threads")},3106:i=>{i.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("zlib")},7182:(i,g,f)=>{const E=f(7075).Writable;const p=f(7975).inherits;const y=f(4136);const b=f(612);const S=f(2271);const J=45;const Z=Buffer.from("-");const $=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(i){if(!(this instanceof Dicer)){return new Dicer(i)}E.call(this,i);if(!i||!i.headerFirst&&typeof i.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof i.boundary==="string"){this.setBoundary(i.boundary)}else{this._bparser=undefined}this._headerFirst=i.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:i.partHwm};this._pause=false;const g=this;this._hparser=new S(i);this._hparser.on("header",(function(i){g._inHeader=false;g._part.emit("header",i)}))}p(Dicer,E);Dicer.prototype.emit=function(i){if(i==="finish"&&!this._realFinish){if(!this._finished){const i=this;process.nextTick((function(){i.emit("error",new Error("Unexpected end of multipart data"));if(i._part&&!i._ignoreData){const g=i._isPreamble?"Preamble":"Part";i._part.emit("error",new Error(g+" terminated early due to unexpected end of multipart data"));i._part.push(null);process.nextTick((function(){i._realFinish=true;i.emit("finish");i._realFinish=false}));return}i._realFinish=true;i.emit("finish");i._realFinish=false}))}}else{E.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(i,g,f){if(!this._hparser&&!this._bparser){return f()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new b(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const g=this._hparser.push(i);if(!this._inHeader&&g!==undefined&&g<i.length){i=i.slice(g)}else{return f()}}if(this._firstWrite){this._bparser.push($);this._firstWrite=false}this._bparser.push(i);if(this._pause){this._cb=f}else{f()}};Dicer.prototype.reset=function(){this._part=undefined;this._bparser=undefined;this._hparser=undefined};Dicer.prototype.setBoundary=function(i){const g=this;this._bparser=new y("\r\n--"+i);this._bparser.on("info",(function(i,f,E,p){g._oninfo(i,f,E,p)}))};Dicer.prototype._ignore=function(){if(this._part&&!this._ignoreData){this._ignoreData=true;this._part.on("error",EMPTY_FN);this._part.resume()}};Dicer.prototype._oninfo=function(i,g,f,E){let p;const y=this;let S=0;let $;let z=true;if(!this._part&&this._justMatched&&g){while(this._dashes<2&&f+S<E){if(g[f+S]===J){++S;++this._dashes}else{if(this._dashes){p=Z}this._dashes=0;break}}if(this._dashes===2){if(f+S<E&&this.listenerCount("trailer")!==0){this.emit("trailer",g.slice(f+S,E))}this.reset();this._finished=true;if(y._parts===0){y._realFinish=true;y.emit("finish");y._realFinish=false}}if(this._dashes){return}}if(this._justMatched){this._justMatched=false}if(!this._part){this._part=new b(this._partOpts);this._part._read=function(i){y._unpause()};if(this._isPreamble&&this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else if(this._isPreamble!==true&&this.listenerCount("part")!==0){this.emit("part",this._part)}else{this._ignore()}if(!this._isPreamble){this._inHeader=true}}if(g&&f<E&&!this._ignoreData){if(this._isPreamble||!this._inHeader){if(p){z=this._part.push(p)}z=this._part.push(g.slice(f,E));if(!z){this._pause=true}}else if(!this._isPreamble&&this._inHeader){if(p){this._hparser.push(p)}$=this._hparser.push(g.slice(f,E));if(!this._inHeader&&$!==undefined&&$<E){this._oninfo(false,g,f+$,E)}}}if(i){this._hparser.reset();if(this._isPreamble){this._isPreamble=false}else{if(f!==E){++this._parts;this._part.on("end",(function(){if(--y._parts===0){if(y._finished){y._realFinish=true;y.emit("finish");y._realFinish=false}else{y._unpause()}}}))}}this._part.push(null);this._part=undefined;this._ignoreData=false;this._justMatched=true;this._dashes=0}};Dicer.prototype._unpause=function(){if(!this._pause){return}this._pause=false;if(this._cb){const i=this._cb;this._cb=undefined;i()}};i.exports=Dicer},2271:(i,g,f)=>{const E=f(8474).EventEmitter;const p=f(7975).inherits;const y=f(2393);const b=f(4136);const S=Buffer.from("\r\n\r\n");const J=/\r\n/g;const Z=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(i){E.call(this);i=i||{};const g=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=y(i,"maxHeaderPairs",2e3);this.maxHeaderSize=y(i,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new b(S);this.ss.on("info",(function(i,f,E,p){if(f&&!g.maxed){if(g.nread+p-E>=g.maxHeaderSize){p=g.maxHeaderSize-g.nread+E;g.nread=g.maxHeaderSize;g.maxed=true}else{g.nread+=p-E}g.buffer+=f.toString("binary",E,p)}if(i){g._finish()}}))}p(HeaderParser,E);HeaderParser.prototype.push=function(i){const g=this.ss.push(i);if(this.finished){return g}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const i=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",i)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const i=this.buffer.split(J);const g=i.length;let f,E;for(var p=0;p<g;++p){if(i[p].length===0){continue}if(i[p][0]==="\t"||i[p][0]===" "){if(E){this.header[E][this.header[E].length-1]+=i[p];continue}}const g=i[p].indexOf(":");if(g===-1||g===0){return}f=Z.exec(i[p]);E=f[1].toLowerCase();this.header[E]=this.header[E]||[];this.header[E].push(f[2]||"");if(++this.npairs===this.maxHeaderPairs){break}}};i.exports=HeaderParser},612:(i,g,f)=>{const E=f(7975).inherits;const p=f(7075).Readable;function PartStream(i){p.call(this,i)}E(PartStream,p);PartStream.prototype._read=function(i){};i.exports=PartStream},4136:(i,g,f)=>{const E=f(8474).EventEmitter;const p=f(7975).inherits;function SBMH(i){if(typeof i==="string"){i=Buffer.from(i)}if(!Buffer.isBuffer(i)){throw new TypeError("The needle has to be a String or a Buffer.")}const g=i.length;if(g===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(g>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(g);this._lookbehind_size=0;this._needle=i;this._bufpos=0;this._lookbehind=Buffer.alloc(g);for(var f=0;f<g-1;++f){this._occ[i[f]]=g-1-f}}p(SBMH,E);SBMH.prototype.reset=function(){this._lookbehind_size=0;this.matches=0;this._bufpos=0};SBMH.prototype.push=function(i,g){if(!Buffer.isBuffer(i)){i=Buffer.from(i,"binary")}const f=i.length;this._bufpos=g||0;let E;while(E!==f&&this.matches<this.maxMatches){E=this._sbmh_feed(i)}return E};SBMH.prototype._sbmh_feed=function(i){const g=i.length;const f=this._needle;const E=f.length;const p=f[E-1];let y=-this._lookbehind_size;let b;if(y<0){while(y<0&&y<=g-E){b=this._sbmh_lookup_char(i,y+E-1);if(b===p&&this._sbmh_memcmp(i,y,E-1)){this._lookbehind_size=0;++this.matches;this.emit("info",true);return this._bufpos=y+E}y+=this._occ[b]}if(y<0){while(y<0&&!this._sbmh_memcmp(i,y,g-y)){++y}}if(y>=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const f=this._lookbehind_size+y;if(f>0){this.emit("info",false,this._lookbehind,0,f)}this._lookbehind.copy(this._lookbehind,0,f,this._lookbehind_size-f);this._lookbehind_size-=f;i.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=g;this._bufpos=g;return g}}y+=(y>=0)*this._bufpos;if(i.indexOf(f,y)!==-1){y=i.indexOf(f,y);++this.matches;if(y>0){this.emit("info",true,i,this._bufpos,y)}else{this.emit("info",true)}return this._bufpos=y+E}else{y=g-E}while(y<g&&(i[y]!==f[0]||Buffer.compare(i.subarray(y,y+g-y),f.subarray(0,g-y))!==0)){++y}if(y<g){i.copy(this._lookbehind,0,y,y+(g-y));this._lookbehind_size=g-y}if(y>0){this.emit("info",false,i,this._bufpos,y<g?y:g)}this._bufpos=g;return g};SBMH.prototype._sbmh_lookup_char=function(i,g){return g<0?this._lookbehind[this._lookbehind_size+g]:i[g]};SBMH.prototype._sbmh_memcmp=function(i,g,f){for(var E=0;E<f;++E){if(this._sbmh_lookup_char(i,g+E)!==this._needle[E]){return false}}return true};i.exports=SBMH},9581:(i,g,f)=>{const E=f(7075).Writable;const{inherits:p}=f(7975);const y=f(7182);const b=f(1192);const S=f(855);const J=f(8929);function Busboy(i){if(!(this instanceof Busboy)){return new Busboy(i)}if(typeof i!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof i.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof i.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:g,...f}=i;this.opts={autoDestroy:false,...f};E.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(g);this._finished=false}p(Busboy,E);Busboy.prototype.emit=function(i){if(i==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}E.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(i){const g=J(i["content-type"]);const f={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:i,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:g,preservePath:this.opts.preservePath};if(b.detect.test(g[0])){return new b(this,f)}if(S.detect.test(g[0])){return new S(this,f)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(i,g,f){this._parser.write(i,f)};i.exports=Busboy;i.exports["default"]=Busboy;i.exports.Busboy=Busboy;i.exports.Dicer=y},1192:(i,g,f)=>{const{Readable:E}=f(7075);const{inherits:p}=f(7975);const y=f(7182);const b=f(8929);const S=f(2747);const J=f(692);const Z=f(2393);const $=/^boundary$/i;const z=/^form-data$/i;const ee=/^charset$/i;const re=/^filename$/i;const Pe=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(i,g){let f;let E;const p=this;let $t;const tn=g.limits;const sn=g.isPartAFile||((i,g,f)=>g==="application/octet-stream"||f!==undefined);const nn=g.parsedConType||[];const rn=g.defCharset||"utf8";const An=g.preservePath;const on={highWaterMark:g.fileHwm};for(f=0,E=nn.length;f<E;++f){if(Array.isArray(nn[f])&&$.test(nn[f][0])){$t=nn[f][1];break}}function checkFinished(){if(pn===0&&Qn&&!i._done){Qn=false;p.end()}}if(typeof $t!=="string"){throw new Error("Multipart: Boundary not found")}const an=Z(tn,"fieldSize",1*1024*1024);const cn=Z(tn,"fileSize",Infinity);const ln=Z(tn,"files",Infinity);const un=Z(tn,"fields",Infinity);const hn=Z(tn,"parts",Infinity);const dn=Z(tn,"headerPairs",2e3);const gn=Z(tn,"headerSize",80*1024);let fn=0;let En=0;let pn=0;let Cn;let In;let Qn=false;this._needDrain=false;this._pause=false;this._cb=undefined;this._nparts=0;this._boy=i;const Bn={boundary:$t,maxHeaderPairs:dn,maxHeaderSize:gn,partHwm:on.highWaterMark,highWaterMark:g.highWaterMark};this.parser=new y(Bn);this.parser.on("drain",(function(){p._needDrain=false;if(p._cb&&!p._pause){const i=p._cb;p._cb=undefined;i()}})).on("part",(function onPart(g){if(++p._nparts>hn){p.parser.removeListener("part",onPart);p.parser.on("part",skipPart);i.hitPartsLimit=true;i.emit("partsLimit");return skipPart(g)}if(In){const i=In;i.emit("end");i.removeAllListeners("end")}g.on("header",(function(y){let Z;let $;let $t;let tn;let nn;let hn;let dn=0;if(y["content-type"]){$t=b(y["content-type"][0]);if($t[0]){Z=$t[0].toLowerCase();for(f=0,E=$t.length;f<E;++f){if(ee.test($t[f][0])){tn=$t[f][1].toLowerCase();break}}}}if(Z===undefined){Z="text/plain"}if(tn===undefined){tn=rn}if(y["content-disposition"]){$t=b(y["content-disposition"][0]);if(!z.test($t[0])){return skipPart(g)}for(f=0,E=$t.length;f<E;++f){if(Pe.test($t[f][0])){$=$t[f][1]}else if(re.test($t[f][0])){hn=$t[f][1];if(!An){hn=J(hn)}}}}else{return skipPart(g)}if(y["content-transfer-encoding"]){nn=y["content-transfer-encoding"][0].toLowerCase()}else{nn="7bit"}let gn,Qn;if(sn($,Z,hn)){if(fn===ln){if(!i.hitFilesLimit){i.hitFilesLimit=true;i.emit("filesLimit")}return skipPart(g)}++fn;if(i.listenerCount("file")===0){p.parser._ignore();return}++pn;const f=new FileStream(on);Cn=f;f.on("end",(function(){--pn;p._pause=false;checkFinished();if(p._cb&&!p._needDrain){const i=p._cb;p._cb=undefined;i()}}));f._read=function(i){if(!p._pause){return}p._pause=false;if(p._cb&&!p._needDrain){const i=p._cb;p._cb=undefined;i()}};i.emit("file",$,f,hn,nn,Z);gn=function(i){if((dn+=i.length)>cn){const E=cn-dn+i.length;if(E>0){f.push(i.slice(0,E))}f.truncated=true;f.bytesRead=cn;g.removeAllListeners("data");f.emit("limit");return}else if(!f.push(i)){p._pause=true}f.bytesRead=dn};Qn=function(){Cn=undefined;f.push(null)}}else{if(En===un){if(!i.hitFieldsLimit){i.hitFieldsLimit=true;i.emit("fieldsLimit")}return skipPart(g)}++En;++pn;let f="";let E=false;In=g;gn=function(i){if((dn+=i.length)>an){const p=an-(dn-i.length);f+=i.toString("binary",0,p);E=true;g.removeAllListeners("data")}else{f+=i.toString("binary")}};Qn=function(){In=undefined;if(f.length){f=S(f,"binary",tn)}i.emit("field",$,f,false,E,nn,Z);--pn;checkFinished()}}g._readableState.sync=false;g.on("data",gn);g.on("end",Qn)})).on("error",(function(i){if(Cn){Cn.emit("error",i)}}))})).on("error",(function(g){i.emit("error",g)})).on("finish",(function(){Qn=true;checkFinished()}))}Multipart.prototype.write=function(i,g){const f=this.parser.write(i);if(f&&!this._pause){g()}else{this._needDrain=!f;this._cb=g}};Multipart.prototype.end=function(){const i=this;if(i.parser.writable){i.parser.end()}else if(!i._boy._done){process.nextTick((function(){i._boy._done=true;i._boy.emit("finish")}))}};function skipPart(i){i.resume()}function FileStream(i){E.call(this,i);this.bytesRead=0;this.truncated=false}p(FileStream,E);FileStream.prototype._read=function(i){};i.exports=Multipart},855:(i,g,f)=>{const E=f(1496);const p=f(2747);const y=f(2393);const b=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(i,g){const f=g.limits;const p=g.parsedConType;this.boy=i;this.fieldSizeLimit=y(f,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=y(f,"fieldNameSize",100);this.fieldsLimit=y(f,"fields",Infinity);let S;for(var J=0,Z=p.length;J<Z;++J){if(Array.isArray(p[J])&&b.test(p[J][0])){S=p[J][1].toLowerCase();break}}if(S===undefined){S=g.defCharset||"utf8"}this.decoder=new E;this.charset=S;this._fields=0;this._state="key";this._checkingBytes=true;this._bytesKey=0;this._bytesVal=0;this._key="";this._val="";this._keyTrunc=false;this._valTrunc=false;this._hitLimit=false}UrlEncoded.prototype.write=function(i,g){if(this._fields===this.fieldsLimit){if(!this.boy.hitFieldsLimit){this.boy.hitFieldsLimit=true;this.boy.emit("fieldsLimit")}return g()}let f;let E;let y;let b=0;const S=i.length;while(b<S){if(this._state==="key"){f=E=undefined;for(y=b;y<S;++y){if(!this._checkingBytes){++b}if(i[y]===61){f=y;break}else if(i[y]===38){E=y;break}if(this._checkingBytes&&this._bytesKey===this.fieldNameSizeLimit){this._hitLimit=true;break}else if(this._checkingBytes){++this._bytesKey}}if(f!==undefined){if(f>b){this._key+=this.decoder.write(i.toString("binary",b,f))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();b=f+1}else if(E!==undefined){++this._fields;let f;const y=this._keyTrunc;if(E>b){f=this._key+=this.decoder.write(i.toString("binary",b,E))}else{f=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(f.length){this.boy.emit("field",p(f,"binary",this.charset),"",y,false)}b=E+1;if(this._fields===this.fieldsLimit){return g()}}else if(this._hitLimit){if(y>b){this._key+=this.decoder.write(i.toString("binary",b,y))}b=y;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(b<S){this._key+=this.decoder.write(i.toString("binary",b))}b=S}}else{E=undefined;for(y=b;y<S;++y){if(!this._checkingBytes){++b}if(i[y]===38){E=y;break}if(this._checkingBytes&&this._bytesVal===this.fieldSizeLimit){this._hitLimit=true;break}else if(this._checkingBytes){++this._bytesVal}}if(E!==undefined){++this._fields;if(E>b){this._val+=this.decoder.write(i.toString("binary",b,E))}this.boy.emit("field",p(this._key,"binary",this.charset),p(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();b=E+1;if(this._fields===this.fieldsLimit){return g()}}else if(this._hitLimit){if(y>b){this._val+=this.decoder.write(i.toString("binary",b,y))}b=y;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(b<S){this._val+=this.decoder.write(i.toString("binary",b))}b=S}}}g()};UrlEncoded.prototype.end=function(){if(this.boy._done){return}if(this._state==="key"&&this._key.length>0){this.boy.emit("field",p(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",p(this._key,"binary",this.charset),p(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};i.exports=UrlEncoded},1496:i=>{const g=/\+/g;const f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(i){i=i.replace(g," ");let E="";let p=0;let y=0;const b=i.length;for(;p<b;++p){if(this.buffer!==undefined){if(!f[i.charCodeAt(p)]){E+="%"+this.buffer;this.buffer=undefined;--p}else{this.buffer+=i[p];++y;if(this.buffer.length===2){E+=String.fromCharCode(parseInt(this.buffer,16));this.buffer=undefined}}}else if(i[p]==="%"){if(p>y){E+=i.substring(y,p);y=p}this.buffer="";++y}}if(y<b&&this.buffer===undefined){E+=i.substring(y)}return E};Decoder.prototype.reset=function(){this.buffer=undefined};i.exports=Decoder},692:i=>{i.exports=function basename(i){if(typeof i!=="string"){return""}for(var g=i.length-1;g>=0;--g){switch(i.charCodeAt(g)){case 47:case 92:i=i.slice(g+1);return i===".."||i==="."?"":i}}return i===".."||i==="."?"":i}},2747:function(i){const g=new TextDecoder("utf-8");const f=new Map([["utf-8",g],["utf8",g]]);function getDecoder(i){let g;while(true){switch(i){case"utf-8":case"utf8":return E.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return E.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return E.utf16le;case"base64":return E.base64;default:if(g===undefined){g=true;i=i.toLowerCase();continue}return E.other.bind(i)}}}const E={utf8:(i,g)=>{if(i.length===0){return""}if(typeof i==="string"){i=Buffer.from(i,g)}return i.utf8Slice(0,i.length)},latin1:(i,g)=>{if(i.length===0){return""}if(typeof i==="string"){return i}return i.latin1Slice(0,i.length)},utf16le:(i,g)=>{if(i.length===0){return""}if(typeof i==="string"){i=Buffer.from(i,g)}return i.ucs2Slice(0,i.length)},base64:(i,g)=>{if(i.length===0){return""}if(typeof i==="string"){i=Buffer.from(i,g)}return i.base64Slice(0,i.length)},other:(i,g)=>{if(i.length===0){return""}if(typeof i==="string"){i=Buffer.from(i,g)}if(f.has(this.toString())){try{return f.get(this).decode(i)}catch{}}return typeof i==="string"?i:i.toString()}};function decodeText(i,g,f){if(i){return getDecoder(f)(i,g)}return i}i.exports=decodeText},2393:i=>{i.exports=function getLimit(i,g,f){if(!i||i[g]===undefined||i[g]===null){return f}if(typeof i[g]!=="number"||isNaN(i[g])){throw new TypeError("Limit "+g+" is not a valid number")}return i[g]}},8929:(i,g,f)=>{const E=f(2747);const p=/%[a-fA-F0-9][a-fA-F0-9]/g;const y={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(i){return y[i]}const b=0;const S=1;const J=2;const Z=3;function parseParams(i){const g=[];let f=b;let y="";let $=false;let z=false;let ee=0;let re="";const Pe=i.length;for(var $t=0;$t<Pe;++$t){const Pe=i[$t];if(Pe==="\\"&&$){if(z){z=false}else{z=true;continue}}else if(Pe==='"'){if(!z){if($){$=false;f=b}else{$=true}continue}else{z=false}}else{if(z&&$){re+="\\"}z=false;if((f===J||f===Z)&&Pe==="'"){if(f===J){f=Z;y=re.substring(1)}else{f=S}re="";continue}else if(f===b&&(Pe==="*"||Pe==="=")&&g.length){f=Pe==="*"?J:S;g[ee]=[re,undefined];re="";continue}else if(!$&&Pe===";"){f=b;if(y){if(re.length){re=E(re.replace(p,encodedReplacer),"binary",y)}y=""}else if(re.length){re=E(re,"binary","utf8")}if(g[ee]===undefined){g[ee]=re}else{g[ee][1]=re}re="";++ee;continue}else if(!$&&(Pe===" "||Pe==="\t")){continue}}re+=Pe}if(y&&re.length){re=E(re.replace(p,encodedReplacer),"binary",y)}else if(re){re=E(re,"binary","utf8")}if(g[ee]===undefined){if(re){g[ee]=re}}else{g[ee][1]=re}return g}i.exports=parseParams},7349:(i,g,f)=>{var E=f(1127);var p=f(3301);var y=f(4454);var b=f(2223);var S=f(7103);var J=f(334);var Z=f(3142);function resolveCollection(i,g,f,E,p,y){const b=f.type==="block-map"?S.resolveBlockMap(i,g,f,E,y):f.type==="block-seq"?J.resolveBlockSeq(i,g,f,E,y):Z.resolveFlowCollection(i,g,f,E,y);const $=b.constructor;if(p==="!"||p===$.tagName){b.tag=$.tagName;return b}if(p)b.tag=p;return b}function composeCollection(i,g,f,S,J){const Z=S.tag;const $=!Z?null:g.directives.tagName(Z.source,(i=>J(Z,"TAG_RESOLVE_FAILED",i)));if(f.type==="block-seq"){const{anchor:i,newlineAfterProp:g}=S;const f=i&&Z?i.offset>Z.offset?i:Z:i??Z;if(f&&(!g||g.offset<f.offset)){const i="Missing newline after block sequence props";J(f,"MISSING_CHAR",i)}}const z=f.type==="block-map"?"map":f.type==="block-seq"?"seq":f.start.source==="{"?"map":"seq";if(!Z||!$||$==="!"||$===y.YAMLMap.tagName&&z==="map"||$===b.YAMLSeq.tagName&&z==="seq"){return resolveCollection(i,g,f,J,$)}let ee=g.schema.tags.find((i=>i.tag===$&&i.collection===z));if(!ee){const E=g.schema.knownTags[$];if(E?.collection===z){g.schema.tags.push(Object.assign({},E,{default:false}));ee=E}else{if(E){J(Z,"BAD_COLLECTION_TYPE",`${E.tag} used for ${z} collection, but expects ${E.collection??"scalar"}`,true)}else{J(Z,"TAG_RESOLVE_FAILED",`Unresolved tag: ${$}`,true)}return resolveCollection(i,g,f,J,$)}}const re=resolveCollection(i,g,f,J,$,ee);const Pe=ee.resolve?.(re,(i=>J(Z,"TAG_RESOLVE_FAILED",i)),g.options)??re;const $t=E.isNode(Pe)?Pe:new p.Scalar(Pe);$t.range=re.range;$t.tag=$;if(ee?.format)$t.format=ee.format;return $t}g.composeCollection=composeCollection},3683:(i,g,f)=>{var E=f(3021);var p=f(5937);var y=f(7788);var b=f(4631);function composeDoc(i,g,{offset:f,start:S,value:J,end:Z},$){const z=Object.assign({_directives:g},i);const ee=new E.Document(undefined,z);const re={atKey:false,atRoot:true,directives:ee.directives,options:ee.options,schema:ee.schema};const Pe=b.resolveProps(S,{indicator:"doc-start",next:J??Z?.[0],offset:f,onError:$,parentIndent:0,startOnNewline:true});if(Pe.found){ee.directives.docStart=true;if(J&&(J.type==="block-map"||J.type==="block-seq")&&!Pe.hasNewline)$(Pe.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}ee.contents=J?p.composeNode(re,J,Pe,$):p.composeEmptyNode(re,Pe.end,S,null,Pe,$);const $t=ee.contents.range[2];const tn=y.resolveEnd(Z,$t,false,$);if(tn.comment)ee.comment=tn.comment;ee.range=[f,$t,tn.offset];return ee}g.composeDoc=composeDoc},5937:(i,g,f)=>{var E=f(4065);var p=f(1127);var y=f(7349);var b=f(5413);var S=f(7788);var J=f(2599);const Z={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(i,g,f,E){const S=i.atKey;const{spaceBefore:J,comment:$,anchor:z,tag:ee}=f;let re;let Pe=true;switch(g.type){case"alias":re=composeAlias(i,g,E);if(z||ee)E(g,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":re=b.composeScalar(i,g,ee,E);if(z)re.anchor=z.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":re=y.composeCollection(Z,i,g,f,E);if(z)re.anchor=z.source.substring(1);break;default:{const p=g.type==="error"?g.message:`Unsupported token (type: ${g.type})`;E(g,"UNEXPECTED_TOKEN",p);re=composeEmptyNode(i,g.offset,undefined,null,f,E);Pe=false}}if(z&&re.anchor==="")E(z,"BAD_ALIAS","Anchor cannot be an empty string");if(S&&i.options.stringKeys&&(!p.isScalar(re)||typeof re.value!=="string"||re.tag&&re.tag!=="tag:yaml.org,2002:str")){const i="With stringKeys, all keys must be strings";E(ee??g,"NON_STRING_KEY",i)}if(J)re.spaceBefore=true;if($){if(g.type==="scalar"&&g.source==="")re.comment=$;else re.commentBefore=$}if(i.options.keepSourceTokens&&Pe)re.srcToken=g;return re}function composeEmptyNode(i,g,f,E,{spaceBefore:p,comment:y,anchor:S,tag:Z,end:$},z){const ee={type:"scalar",offset:J.emptyScalarPosition(g,f,E),indent:-1,source:""};const re=b.composeScalar(i,ee,Z,z);if(S){re.anchor=S.source.substring(1);if(re.anchor==="")z(S,"BAD_ALIAS","Anchor cannot be an empty string")}if(p)re.spaceBefore=true;if(y){re.comment=y;re.range[2]=$}return re}function composeAlias({options:i},{offset:g,source:f,end:p},y){const b=new E.Alias(f.substring(1));if(b.source==="")y(g,"BAD_ALIAS","Alias cannot be an empty string");if(b.source.endsWith(":"))y(g+f.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const J=g+f.length;const Z=S.resolveEnd(p,J,i.strict,y);b.range=[g,J,Z.offset];if(Z.comment)b.comment=Z.comment;return b}g.composeEmptyNode=composeEmptyNode;g.composeNode=composeNode},5413:(i,g,f)=>{var E=f(1127);var p=f(3301);var y=f(8913);var b=f(6842);function composeScalar(i,g,f,S){const{value:J,type:Z,comment:$,range:z}=g.type==="block-scalar"?y.resolveBlockScalar(i,g,S):b.resolveFlowScalar(g,i.options.strict,S);const ee=f?i.directives.tagName(f.source,(i=>S(f,"TAG_RESOLVE_FAILED",i))):null;let re;if(i.options.stringKeys&&i.atKey){re=i.schema[E.SCALAR]}else if(ee)re=findScalarTagByName(i.schema,J,ee,f,S);else if(g.type==="scalar")re=findScalarTagByTest(i,J,g,S);else re=i.schema[E.SCALAR];let Pe;try{const y=re.resolve(J,(i=>S(f??g,"TAG_RESOLVE_FAILED",i)),i.options);Pe=E.isScalar(y)?y:new p.Scalar(y)}catch(i){const E=i instanceof Error?i.message:String(i);S(f??g,"TAG_RESOLVE_FAILED",E);Pe=new p.Scalar(J)}Pe.range=z;Pe.source=J;if(Z)Pe.type=Z;if(ee)Pe.tag=ee;if(re.format)Pe.format=re.format;if($)Pe.comment=$;return Pe}function findScalarTagByName(i,g,f,p,y){if(f==="!")return i[E.SCALAR];const b=[];for(const g of i.tags){if(!g.collection&&g.tag===f){if(g.default&&g.test)b.push(g);else return g}}for(const i of b)if(i.test?.test(g))return i;const S=i.knownTags[f];if(S&&!S.collection){i.tags.push(Object.assign({},S,{default:false,test:undefined}));return S}y(p,"TAG_RESOLVE_FAILED",`Unresolved tag: ${f}`,f!=="tag:yaml.org,2002:str");return i[E.SCALAR]}function findScalarTagByTest({atKey:i,directives:g,schema:f},p,y,b){const S=f.tags.find((g=>(g.default===true||i&&g.default==="key")&&g.test?.test(p)))||f[E.SCALAR];if(f.compat){const i=f.compat.find((i=>i.default&&i.test?.test(p)))??f[E.SCALAR];if(S.tag!==i.tag){const f=g.tagString(S.tag);const E=g.tagString(i.tag);const p=`Value may be parsed as either ${f} or ${E}`;b(y,"TAG_RESOLVE_FAILED",p,true)}}return S}g.composeScalar=composeScalar},9984:(i,g,f)=>{var E=f(932);var p=f(1342);var y=f(3021);var b=f(1464);var S=f(1127);var J=f(3683);var Z=f(7788);function getErrorPos(i){if(typeof i==="number")return[i,i+1];if(Array.isArray(i))return i.length===2?i:[i[0],i[1]];const{offset:g,source:f}=i;return[g,g+(typeof f==="string"?f.length:1)]}function parsePrelude(i){let g="";let f=false;let E=false;for(let p=0;p<i.length;++p){const y=i[p];switch(y[0]){case"#":g+=(g===""?"":E?"\n\n":"\n")+(y.substring(1)||" ");f=true;E=false;break;case"%":if(i[p+1]?.[0]!=="#")p+=1;f=false;break;default:if(!f)E=true;f=false}}return{comment:g,afterEmptyLine:E}}class Composer{constructor(i={}){this.doc=null;this.atDirectives=false;this.prelude=[];this.errors=[];this.warnings=[];this.onError=(i,g,f,E)=>{const p=getErrorPos(i);if(E)this.warnings.push(new b.YAMLWarning(p,g,f));else this.errors.push(new b.YAMLParseError(p,g,f))};this.directives=new p.Directives({version:i.version||"1.2"});this.options=i}decorate(i,g){const{comment:f,afterEmptyLine:E}=parsePrelude(this.prelude);if(f){const p=i.contents;if(g){i.comment=i.comment?`${i.comment}\n${f}`:f}else if(E||i.directives.docStart||!p){i.commentBefore=f}else if(S.isCollection(p)&&!p.flow&&p.items.length>0){let i=p.items[0];if(S.isPair(i))i=i.key;const g=i.commentBefore;i.commentBefore=g?`${f}\n${g}`:f}else{const i=p.commentBefore;p.commentBefore=i?`${f}\n${i}`:f}}if(g){Array.prototype.push.apply(i.errors,this.errors);Array.prototype.push.apply(i.warnings,this.warnings)}else{i.errors=this.errors;i.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(i,g=false,f=-1){for(const g of i)yield*this.next(g);yield*this.end(g,f)}*next(i){if(E.env.LOG_STREAM)console.dir(i,{depth:null});switch(i.type){case"directive":this.directives.add(i.source,((g,f,E)=>{const p=getErrorPos(i);p[0]+=g;this.onError(p,"BAD_DIRECTIVE",f,E)}));this.prelude.push(i.source);this.atDirectives=true;break;case"document":{const g=J.composeDoc(this.options,this.directives,i,this.onError);if(this.atDirectives&&!g.directives.docStart)this.onError(i,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(g,false);if(this.doc)yield this.doc;this.doc=g;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(i.source);break;case"error":{const g=i.source?`${i.message}: ${JSON.stringify(i.source)}`:i.message;const f=new b.YAMLParseError(getErrorPos(i),"UNEXPECTED_TOKEN",g);if(this.atDirectives||!this.doc)this.errors.push(f);else this.doc.errors.push(f);break}case"doc-end":{if(!this.doc){const g="Unexpected doc-end without preceding document";this.errors.push(new b.YAMLParseError(getErrorPos(i),"UNEXPECTED_TOKEN",g));break}this.doc.directives.docEnd=true;const g=Z.resolveEnd(i.end,i.offset+i.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(g.comment){const i=this.doc.comment;this.doc.comment=i?`${i}\n${g.comment}`:g.comment}this.doc.range[2]=g.offset;break}default:this.errors.push(new b.YAMLParseError(getErrorPos(i),"UNEXPECTED_TOKEN",`Unsupported token ${i.type}`))}}*end(i=false,g=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(i){const i=Object.assign({_directives:this.directives},this.options);const f=new y.Document(undefined,i);if(this.atDirectives)this.onError(g,"MISSING_CHAR","Missing directives-end indicator line");f.range=[0,g,g];this.decorate(f,false);yield f}}}g.Composer=Composer},7103:(i,g,f)=>{var E=f(7165);var p=f(4454);var y=f(4631);var b=f(9499);var S=f(4051);var J=f(1187);const Z="All mapping items must start at the same column";function resolveBlockMap({composeNode:i,composeEmptyNode:g},f,$,z,ee){const re=ee?.nodeClass??p.YAMLMap;const Pe=new re(f.schema);if(f.atRoot)f.atRoot=false;let $t=$.offset;let tn=null;for(const p of $.items){const{start:ee,key:re,sep:sn,value:nn}=p;const rn=y.resolveProps(ee,{indicator:"explicit-key-ind",next:re??sn?.[0],offset:$t,onError:z,parentIndent:$.indent,startOnNewline:true});const An=!rn.found;if(An){if(re){if(re.type==="block-seq")z($t,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in re&&re.indent!==$.indent)z($t,"BAD_INDENT",Z)}if(!rn.anchor&&!rn.tag&&!sn){tn=rn.end;if(rn.comment){if(Pe.comment)Pe.comment+="\n"+rn.comment;else Pe.comment=rn.comment}continue}if(rn.newlineAfterProp||b.containsNewline(re)){z(re??ee[ee.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(rn.found?.indent!==$.indent){z($t,"BAD_INDENT",Z)}f.atKey=true;const on=rn.end;const an=re?i(f,re,rn,z):g(f,on,ee,null,rn,z);if(f.schema.compat)S.flowIndentCheck($.indent,re,z);f.atKey=false;if(J.mapIncludes(f,Pe.items,an))z(on,"DUPLICATE_KEY","Map keys must be unique");const cn=y.resolveProps(sn??[],{indicator:"map-value-ind",next:nn,offset:an.range[2],onError:z,parentIndent:$.indent,startOnNewline:!re||re.type==="block-scalar"});$t=cn.end;if(cn.found){if(An){if(nn?.type==="block-map"&&!cn.hasNewline)z($t,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(f.options.strict&&rn.start<cn.found.offset-1024)z(an.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}const y=nn?i(f,nn,cn,z):g(f,$t,sn,null,cn,z);if(f.schema.compat)S.flowIndentCheck($.indent,nn,z);$t=y.range[2];const b=new E.Pair(an,y);if(f.options.keepSourceTokens)b.srcToken=p;Pe.items.push(b)}else{if(An)z(an.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(cn.comment){if(an.comment)an.comment+="\n"+cn.comment;else an.comment=cn.comment}const i=new E.Pair(an);if(f.options.keepSourceTokens)i.srcToken=p;Pe.items.push(i)}}if(tn&&tn<$t)z(tn,"IMPOSSIBLE","Map comment with trailing content");Pe.range=[$.offset,$t,tn??$t];return Pe}g.resolveBlockMap=resolveBlockMap},8913:(i,g,f)=>{var E=f(3301);function resolveBlockScalar(i,g,f){const p=g.offset;const y=parseBlockScalarHeader(g,i.options.strict,f);if(!y)return{value:"",type:null,comment:"",range:[p,p,p]};const b=y.mode===">"?E.Scalar.BLOCK_FOLDED:E.Scalar.BLOCK_LITERAL;const S=g.source?splitLines(g.source):[];let J=S.length;for(let i=S.length-1;i>=0;--i){const g=S[i][1];if(g===""||g==="\r")J=i;else break}if(J===0){const i=y.chomp==="+"&&S.length>0?"\n".repeat(Math.max(1,S.length-1)):"";let f=p+y.length;if(g.source)f+=g.source.length;return{value:i,type:b,comment:y.comment,range:[p,f,f]}}let Z=g.indent+y.indent;let $=g.offset+y.length;let z=0;for(let g=0;g<J;++g){const[E,p]=S[g];if(p===""||p==="\r"){if(y.indent===0&&E.length>Z)Z=E.length}else{if(E.length<Z){const i="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";f($+E.length,"MISSING_CHAR",i)}if(y.indent===0)Z=E.length;z=g;if(Z===0&&!i.atRoot){const i="Block scalar values in collections must be indented";f($,"BAD_INDENT",i)}break}$+=E.length+p.length+1}for(let i=S.length-1;i>=J;--i){if(S[i][0].length>Z)J=i+1}let ee="";let re="";let Pe=false;for(let i=0;i<z;++i)ee+=S[i][0].slice(Z)+"\n";for(let i=z;i<J;++i){let[g,p]=S[i];$+=g.length+p.length+1;const J=p[p.length-1]==="\r";if(J)p=p.slice(0,-1);if(p&&g.length<Z){const i=y.indent?"explicit indentation indicator":"first line";const E=`Block scalar lines must not be less indented than their ${i}`;f($-p.length-(J?2:1),"BAD_INDENT",E);g=""}if(b===E.Scalar.BLOCK_LITERAL){ee+=re+g.slice(Z)+p;re="\n"}else if(g.length>Z||p[0]==="\t"){if(re===" ")re="\n";else if(!Pe&&re==="\n")re="\n\n";ee+=re+g.slice(Z)+p;re="\n";Pe=true}else if(p===""){if(re==="\n")ee+="\n";else re="\n"}else{ee+=re+p;re=" ";Pe=false}}switch(y.chomp){case"-":break;case"+":for(let i=J;i<S.length;++i)ee+="\n"+S[i][0].slice(Z);if(ee[ee.length-1]!=="\n")ee+="\n";break;default:ee+="\n"}const $t=p+y.length+g.source.length;return{value:ee,type:b,comment:y.comment,range:[p,$t,$t]}}function parseBlockScalarHeader({offset:i,props:g},f,E){if(g[0].type!=="block-scalar-header"){E(g[0],"IMPOSSIBLE","Block scalar header not found");return null}const{source:p}=g[0];const y=p[0];let b=0;let S="";let J=-1;for(let g=1;g<p.length;++g){const f=p[g];if(!S&&(f==="-"||f==="+"))S=f;else{const E=Number(f);if(!b&&E)b=E;else if(J===-1)J=i+g}}if(J!==-1)E(J,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${p}`);let Z=false;let $="";let z=p.length;for(let i=1;i<g.length;++i){const p=g[i];switch(p.type){case"space":Z=true;case"newline":z+=p.source.length;break;case"comment":if(f&&!Z){const i="Comments must be separated from other tokens by white space characters";E(p,"MISSING_CHAR",i)}z+=p.source.length;$=p.source.substring(1);break;case"error":E(p,"UNEXPECTED_TOKEN",p.message);z+=p.source.length;break;default:{const i=`Unexpected token in block scalar header: ${p.type}`;E(p,"UNEXPECTED_TOKEN",i);const g=p.source;if(g&&typeof g==="string")z+=g.length}}}return{mode:y,indent:b,chomp:S,comment:$,length:z}}function splitLines(i){const g=i.split(/\n( *)/);const f=g[0];const E=f.match(/^( *)/);const p=E?.[1]?[E[1],f.slice(E[1].length)]:["",f];const y=[p];for(let i=1;i<g.length;i+=2)y.push([g[i],g[i+1]]);return y}g.resolveBlockScalar=resolveBlockScalar},334:(i,g,f)=>{var E=f(2223);var p=f(4631);var y=f(4051);function resolveBlockSeq({composeNode:i,composeEmptyNode:g},f,b,S,J){const Z=J?.nodeClass??E.YAMLSeq;const $=new Z(f.schema);if(f.atRoot)f.atRoot=false;if(f.atKey)f.atKey=false;let z=b.offset;let ee=null;for(const{start:E,value:J}of b.items){const Z=p.resolveProps(E,{indicator:"seq-item-ind",next:J,offset:z,onError:S,parentIndent:b.indent,startOnNewline:true});if(!Z.found){if(Z.anchor||Z.tag||J){if(J?.type==="block-seq")S(Z.end,"BAD_INDENT","All sequence items must start at the same column");else S(z,"MISSING_CHAR","Sequence item without - indicator")}else{ee=Z.end;if(Z.comment)$.comment=Z.comment;continue}}const re=J?i(f,J,Z,S):g(f,Z.end,E,null,Z,S);if(f.schema.compat)y.flowIndentCheck(b.indent,J,S);z=re.range[2];$.items.push(re)}$.range=[b.offset,z,ee??z];return $}g.resolveBlockSeq=resolveBlockSeq},7788:(i,g)=>{function resolveEnd(i,g,f,E){let p="";if(i){let y=false;let b="";for(const S of i){const{source:i,type:J}=S;switch(J){case"space":y=true;break;case"comment":{if(f&&!y)E(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const g=i.substring(1)||" ";if(!p)p=g;else p+=b+g;b="";break}case"newline":if(p)b+=i;y=true;break;default:E(S,"UNEXPECTED_TOKEN",`Unexpected ${J} at node end`)}g+=i.length}}return{comment:p,offset:g}}g.resolveEnd=resolveEnd},3142:(i,g,f)=>{var E=f(1127);var p=f(7165);var y=f(4454);var b=f(2223);var S=f(7788);var J=f(4631);var Z=f(9499);var $=f(1187);const z="Block collections are not allowed within flow collections";const isBlock=i=>i&&(i.type==="block-map"||i.type==="block-seq");function resolveFlowCollection({composeNode:i,composeEmptyNode:g},f,ee,re,Pe){const $t=ee.start.source==="{";const tn=$t?"flow map":"flow sequence";const sn=Pe?.nodeClass??($t?y.YAMLMap:b.YAMLSeq);const nn=new sn(f.schema);nn.flow=true;const rn=f.atRoot;if(rn)f.atRoot=false;if(f.atKey)f.atKey=false;let An=ee.offset+ee.start.source.length;for(let b=0;b<ee.items.length;++b){const S=ee.items[b];const{start:Pe,key:sn,sep:rn,value:on}=S;const an=J.resolveProps(Pe,{flow:tn,indicator:"explicit-key-ind",next:sn??rn?.[0],offset:An,onError:re,parentIndent:ee.indent,startOnNewline:false});if(!an.found){if(!an.anchor&&!an.tag&&!rn&&!on){if(b===0&&an.comma)re(an.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${tn}`);else if(b<ee.items.length-1)re(an.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${tn}`);if(an.comment){if(nn.comment)nn.comment+="\n"+an.comment;else nn.comment=an.comment}An=an.end;continue}if(!$t&&f.options.strict&&Z.containsNewline(sn))re(sn,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0){if(an.comma)re(an.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${tn}`)}else{if(!an.comma)re(an.start,"MISSING_CHAR",`Missing , between ${tn} items`);if(an.comment){let i="";e:for(const g of Pe){switch(g.type){case"comma":case"space":break;case"comment":i=g.source.substring(1);break e;default:break e}}if(i){let g=nn.items[nn.items.length-1];if(E.isPair(g))g=g.value??g.key;if(g.comment)g.comment+="\n"+i;else g.comment=i;an.comment=an.comment.substring(i.length+1)}}}if(!$t&&!rn&&!an.found){const E=on?i(f,on,an,re):g(f,an.end,rn,null,an,re);nn.items.push(E);An=E.range[2];if(isBlock(on))re(E.range,"BLOCK_IN_FLOW",z)}else{f.atKey=true;const E=an.end;const b=sn?i(f,sn,an,re):g(f,E,Pe,null,an,re);if(isBlock(sn))re(b.range,"BLOCK_IN_FLOW",z);f.atKey=false;const Z=J.resolveProps(rn??[],{flow:tn,indicator:"map-value-ind",next:on,offset:b.range[2],onError:re,parentIndent:ee.indent,startOnNewline:false});if(Z.found){if(!$t&&!an.found&&f.options.strict){if(rn)for(const i of rn){if(i===Z.found)break;if(i.type==="newline"){re(i,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(an.start<Z.found.offset-1024)re(Z.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(on){if("source"in on&&on.source?.[0]===":")re(on,"MISSING_CHAR",`Missing space after : in ${tn}`);else re(Z.start,"MISSING_CHAR",`Missing , or : between ${tn} items`)}const cn=on?i(f,on,Z,re):Z.found?g(f,Z.end,rn,null,Z,re):null;if(cn){if(isBlock(on))re(cn.range,"BLOCK_IN_FLOW",z)}else if(Z.comment){if(b.comment)b.comment+="\n"+Z.comment;else b.comment=Z.comment}const ln=new p.Pair(b,cn);if(f.options.keepSourceTokens)ln.srcToken=S;if($t){const i=nn;if($.mapIncludes(f,i.items,b))re(E,"DUPLICATE_KEY","Map keys must be unique");i.items.push(ln)}else{const i=new y.YAMLMap(f.schema);i.flow=true;i.items.push(ln);const g=(cn??b).range;i.range=[b.range[0],g[1],g[2]];nn.items.push(i)}An=cn?cn.range[2]:Z.end}}const on=$t?"}":"]";const[an,...cn]=ee.end;let ln=An;if(an?.source===on)ln=an.offset+an.source.length;else{const i=tn[0].toUpperCase()+tn.substring(1);const g=rn?`${i} must end with a ${on}`:`${i} in block collection must be sufficiently indented and end with a ${on}`;re(An,rn?"MISSING_CHAR":"BAD_INDENT",g);if(an&&an.source.length!==1)cn.unshift(an)}if(cn.length>0){const i=S.resolveEnd(cn,ln,f.options.strict,re);if(i.comment){if(nn.comment)nn.comment+="\n"+i.comment;else nn.comment=i.comment}nn.range=[ee.offset,ln,i.offset]}else{nn.range=[ee.offset,ln,ln]}return nn}g.resolveFlowCollection=resolveFlowCollection},6842:(i,g,f)=>{var E=f(3301);var p=f(7788);function resolveFlowScalar(i,g,f){const{offset:y,type:b,source:S,end:J}=i;let Z;let $;const _onError=(i,g,E)=>f(y+i,g,E);switch(b){case"scalar":Z=E.Scalar.PLAIN;$=plainValue(S,_onError);break;case"single-quoted-scalar":Z=E.Scalar.QUOTE_SINGLE;$=singleQuotedValue(S,_onError);break;case"double-quoted-scalar":Z=E.Scalar.QUOTE_DOUBLE;$=doubleQuotedValue(S,_onError);break;default:f(i,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${b}`);return{value:"",type:null,comment:"",range:[y,y+S.length,y+S.length]}}const z=y+S.length;const ee=p.resolveEnd(J,z,g,f);return{value:$,type:Z,comment:ee.comment,range:[y,z,ee.offset]}}function plainValue(i,g){let f="";switch(i[0]){case"\t":f="a tab character";break;case",":f="flow indicator character ,";break;case"%":f="directive indicator character %";break;case"|":case">":{f=`block scalar indicator ${i[0]}`;break}case"@":case"`":{f=`reserved character ${i[0]}`;break}}if(f)g(0,"BAD_SCALAR_START",`Plain value cannot start with ${f}`);return foldLines(i)}function singleQuotedValue(i,g){if(i[i.length-1]!=="'"||i.length===1)g(i.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(i.slice(1,-1)).replace(/''/g,"'")}function foldLines(i){let g,f;try{g=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy");f=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch{g=/(.*?)[ \t]*\r?\n/sy;f=/[ \t]*(.*?)[ \t]*\r?\n/sy}let E=g.exec(i);if(!E)return i;let p=E[1];let y=" ";let b=g.lastIndex;f.lastIndex=b;while(E=f.exec(i)){if(E[1]===""){if(y==="\n")p+=y;else y="\n"}else{p+=y+E[1];y=" "}b=f.lastIndex}const S=/[ \t]*(.*)/sy;S.lastIndex=b;E=S.exec(i);return p+y+(E?.[1]??"")}function doubleQuotedValue(i,g){let f="";for(let E=1;E<i.length-1;++E){const p=i[E];if(p==="\r"&&i[E+1]==="\n")continue;if(p==="\n"){const{fold:g,offset:p}=foldNewline(i,E);f+=g;E=p}else if(p==="\\"){let p=i[++E];const b=y[p];if(b)f+=b;else if(p==="\n"){p=i[E+1];while(p===" "||p==="\t")p=i[++E+1]}else if(p==="\r"&&i[E+1]==="\n"){p=i[++E+1];while(p===" "||p==="\t")p=i[++E+1]}else if(p==="x"||p==="u"||p==="U"){const y={x:2,u:4,U:8}[p];f+=parseCharCode(i,E+1,y,g);E+=y}else{const p=i.substr(E-1,2);g(E-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${p}`);f+=p}}else if(p===" "||p==="\t"){const g=E;let y=i[E+1];while(y===" "||y==="\t")y=i[++E+1];if(y!=="\n"&&!(y==="\r"&&i[E+2]==="\n"))f+=E>g?i.slice(g,E+1):p}else{f+=p}}if(i[i.length-1]!=='"'||i.length===1)g(i.length,"MISSING_CHAR",'Missing closing "quote');return f}function foldNewline(i,g){let f="";let E=i[g+1];while(E===" "||E==="\t"||E==="\n"||E==="\r"){if(E==="\r"&&i[g+2]!=="\n")break;if(E==="\n")f+="\n";g+=1;E=i[g+1]}if(!f)f=" ";return{fold:f,offset:g}}const y={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(i,g,f,E){const p=i.substr(g,f);const y=p.length===f&&/^[0-9a-fA-F]+$/.test(p);const b=y?parseInt(p,16):NaN;if(isNaN(b)){const p=i.substr(g-2,f+2);E(g-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${p}`);return p}return String.fromCodePoint(b)}g.resolveFlowScalar=resolveFlowScalar},4631:(i,g)=>{function resolveProps(i,{flow:g,indicator:f,next:E,offset:p,onError:y,parentIndent:b,startOnNewline:S}){let J=false;let Z=S;let $=S;let z="";let ee="";let re=false;let Pe=false;let $t=null;let tn=null;let sn=null;let nn=null;let rn=null;let An=null;let on=null;for(const p of i){if(Pe){if(p.type!=="space"&&p.type!=="newline"&&p.type!=="comma")y(p.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");Pe=false}if($t){if(Z&&p.type!=="comment"&&p.type!=="newline"){y($t,"TAB_AS_INDENT","Tabs are not allowed as indentation")}$t=null}switch(p.type){case"space":if(!g&&(f!=="doc-start"||E?.type!=="flow-collection")&&p.source.includes("\t")){$t=p}$=true;break;case"comment":{if(!$)y(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const i=p.source.substring(1)||" ";if(!z)z=i;else z+=ee+i;ee="";Z=false;break}case"newline":if(Z){if(z)z+=p.source;else if(!An||f!=="seq-item-ind")J=true}else ee+=p.source;Z=true;re=true;if(tn||sn)nn=p;$=true;break;case"anchor":if(tn)y(p,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(p.source.endsWith(":"))y(p.offset+p.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);tn=p;on??(on=p.offset);Z=false;$=false;Pe=true;break;case"tag":{if(sn)y(p,"MULTIPLE_TAGS","A node can have at most one tag");sn=p;on??(on=p.offset);Z=false;$=false;Pe=true;break}case f:if(tn||sn)y(p,"BAD_PROP_ORDER",`Anchors and tags must be after the ${p.source} indicator`);if(An)y(p,"UNEXPECTED_TOKEN",`Unexpected ${p.source} in ${g??"collection"}`);An=p;Z=f==="seq-item-ind"||f==="explicit-key-ind";$=false;break;case"comma":if(g){if(rn)y(p,"UNEXPECTED_TOKEN",`Unexpected , in ${g}`);rn=p;Z=false;$=false;break}default:y(p,"UNEXPECTED_TOKEN",`Unexpected ${p.type} token`);Z=false;$=false}}const an=i[i.length-1];const cn=an?an.offset+an.source.length:p;if(Pe&&E&&E.type!=="space"&&E.type!=="newline"&&E.type!=="comma"&&(E.type!=="scalar"||E.source!=="")){y(E.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if($t&&(Z&&$t.indent<=b||E?.type==="block-map"||E?.type==="block-seq"))y($t,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:rn,found:An,spaceBefore:J,comment:z,hasNewline:re,anchor:tn,tag:sn,newlineAfterProp:nn,end:cn,start:on??cn}}g.resolveProps=resolveProps},9499:(i,g)=>{function containsNewline(i){if(!i)return null;switch(i.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(i.source.includes("\n"))return true;if(i.end)for(const g of i.end)if(g.type==="newline")return true;return false;case"flow-collection":for(const g of i.items){for(const i of g.start)if(i.type==="newline")return true;if(g.sep)for(const i of g.sep)if(i.type==="newline")return true;if(containsNewline(g.key)||containsNewline(g.value))return true}return false;default:return true}}g.containsNewline=containsNewline},2599:(i,g)=>{function emptyScalarPosition(i,g,f){if(g){f??(f=g.length);for(let E=f-1;E>=0;--E){let f=g[E];switch(f.type){case"space":case"comment":case"newline":i-=f.source.length;continue}f=g[++E];while(f?.type==="space"){i+=f.source.length;f=g[++E]}break}}return i}g.emptyScalarPosition=emptyScalarPosition},4051:(i,g,f)=>{var E=f(9499);function flowIndentCheck(i,g,f){if(g?.type==="flow-collection"){const p=g.end[0];if(p.indent===i&&(p.source==="]"||p.source==="}")&&E.containsNewline(g)){const i="Flow end indicator should be more indented than parent";f(p,"BAD_INDENT",i,true)}}}g.flowIndentCheck=flowIndentCheck},1187:(i,g,f)=>{var E=f(1127);function mapIncludes(i,g,f){const{uniqueKeys:p}=i.options;if(p===false)return false;const y=typeof p==="function"?p:(i,g)=>i===g||E.isScalar(i)&&E.isScalar(g)&&i.value===g.value;return g.some((i=>y(i.key,f)))}g.mapIncludes=mapIncludes},3021:(i,g,f)=>{var E=f(4065);var p=f(101);var y=f(1127);var b=f(7165);var S=f(6424);var J=f(5840);var Z=f(6829);var $=f(1596);var z=f(3661);var ee=f(2404);var re=f(1342);class Document{constructor(i,g,f){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,y.NODE_TYPE,{value:y.DOC});let E=null;if(typeof g==="function"||Array.isArray(g)){E=g}else if(f===undefined&&g){f=g;g=undefined}const p=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,stringKeys:false,uniqueKeys:true,version:"1.2"},f);this.options=p;let{version:b}=p;if(f?._directives){this.directives=f._directives.atDocument();if(this.directives.yaml.explicit)b=this.directives.yaml.version}else this.directives=new re.Directives({version:b});this.setSchema(b,f);this.contents=i===undefined?null:this.createNode(i,E,f)}clone(){const i=Object.create(Document.prototype,{[y.NODE_TYPE]:{value:y.DOC}});i.commentBefore=this.commentBefore;i.comment=this.comment;i.errors=this.errors.slice();i.warnings=this.warnings.slice();i.options=Object.assign({},this.options);if(this.directives)i.directives=this.directives.clone();i.schema=this.schema.clone();i.contents=y.isNode(this.contents)?this.contents.clone(i.schema):this.contents;if(this.range)i.range=this.range.slice();return i}add(i){if(assertCollection(this.contents))this.contents.add(i)}addIn(i,g){if(assertCollection(this.contents))this.contents.addIn(i,g)}createAlias(i,g){if(!i.anchor){const f=$.anchorNames(this);i.anchor=!g||f.has(g)?$.findNewAnchor(g||"a",f):g}return new E.Alias(i.anchor)}createNode(i,g,f){let E=undefined;if(typeof g==="function"){i=g.call({"":i},"",i);E=g}else if(Array.isArray(g)){const keyToStr=i=>typeof i==="number"||i instanceof String||i instanceof Number;const i=g.filter(keyToStr).map(String);if(i.length>0)g=g.concat(i);E=g}else if(f===undefined&&g){f=g;g=undefined}const{aliasDuplicateObjects:p,anchorPrefix:b,flow:S,keepUndefined:J,onTagObj:Z,tag:z}=f??{};const{onAnchor:re,setAnchors:Pe,sourceObjects:$t}=$.createNodeAnchors(this,b||"a");const tn={aliasDuplicateObjects:p??true,keepUndefined:J??false,onAnchor:re,onTagObj:Z,replacer:E,schema:this.schema,sourceObjects:$t};const sn=ee.createNode(i,z,tn);if(S&&y.isCollection(sn))sn.flow=true;Pe();return sn}createPair(i,g,f={}){const E=this.createNode(i,null,f);const p=this.createNode(g,null,f);return new b.Pair(E,p)}delete(i){return assertCollection(this.contents)?this.contents.delete(i):false}deleteIn(i){if(p.isEmptyPath(i)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(i):false}get(i,g){return y.isCollection(this.contents)?this.contents.get(i,g):undefined}getIn(i,g){if(p.isEmptyPath(i))return!g&&y.isScalar(this.contents)?this.contents.value:this.contents;return y.isCollection(this.contents)?this.contents.getIn(i,g):undefined}has(i){return y.isCollection(this.contents)?this.contents.has(i):false}hasIn(i){if(p.isEmptyPath(i))return this.contents!==undefined;return y.isCollection(this.contents)?this.contents.hasIn(i):false}set(i,g){if(this.contents==null){this.contents=p.collectionFromPath(this.schema,[i],g)}else if(assertCollection(this.contents)){this.contents.set(i,g)}}setIn(i,g){if(p.isEmptyPath(i)){this.contents=g}else if(this.contents==null){this.contents=p.collectionFromPath(this.schema,Array.from(i),g)}else if(assertCollection(this.contents)){this.contents.setIn(i,g)}}setSchema(i,g={}){if(typeof i==="number")i=String(i);let f;switch(i){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new re.Directives({version:"1.1"});f={resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=i;else this.directives=new re.Directives({version:i});f={resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;f=null;break;default:{const g=JSON.stringify(i);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${g}`)}}if(g.schema instanceof Object)this.schema=g.schema;else if(f)this.schema=new J.Schema(Object.assign(f,g));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:i,jsonArg:g,mapAsMap:f,maxAliasCount:E,onAnchor:p,reviver:y}={}){const b={anchors:new Map,doc:this,keep:!i,mapAsMap:f===true,mapKeyWarned:false,maxAliasCount:typeof E==="number"?E:100};const J=S.toJS(this.contents,g??"",b);if(typeof p==="function")for(const{count:i,res:g}of b.anchors.values())p(g,i);return typeof y==="function"?z.applyReviver(y,{"":J},"",J):J}toJSON(i,g){return this.toJS({json:true,jsonArg:i,mapAsMap:false,onAnchor:g})}toString(i={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in i&&(!Number.isInteger(i.indent)||Number(i.indent)<=0)){const g=JSON.stringify(i.indent);throw new Error(`"indent" option must be a positive integer, not ${g}`)}return Z.stringifyDocument(this,i)}}function assertCollection(i){if(y.isCollection(i))return true;throw new Error("Expected a YAML collection as document contents")}g.Document=Document},1596:(i,g,f)=>{var E=f(1127);var p=f(204);function anchorIsValid(i){if(/[\x00-\x19\s,[\]{}]/.test(i)){const g=JSON.stringify(i);const f=`Anchor must not contain whitespace or control characters: ${g}`;throw new Error(f)}return true}function anchorNames(i){const g=new Set;p.visit(i,{Value(i,f){if(f.anchor)g.add(f.anchor)}});return g}function findNewAnchor(i,g){for(let f=1;true;++f){const E=`${i}${f}`;if(!g.has(E))return E}}function createNodeAnchors(i,g){const f=[];const p=new Map;let y=null;return{onAnchor:E=>{f.push(E);y??(y=anchorNames(i));const p=findNewAnchor(g,y);y.add(p);return p},setAnchors:()=>{for(const i of f){const g=p.get(i);if(typeof g==="object"&&g.anchor&&(E.isScalar(g.node)||E.isCollection(g.node))){g.node.anchor=g.anchor}else{const g=new Error("Failed to resolve repeated object (this should not happen)");g.source=i;throw g}}},sourceObjects:p}}g.anchorIsValid=anchorIsValid;g.anchorNames=anchorNames;g.createNodeAnchors=createNodeAnchors;g.findNewAnchor=findNewAnchor},3661:(i,g)=>{function applyReviver(i,g,f,E){if(E&&typeof E==="object"){if(Array.isArray(E)){for(let g=0,f=E.length;g<f;++g){const f=E[g];const p=applyReviver(i,E,String(g),f);if(p===undefined)delete E[g];else if(p!==f)E[g]=p}}else if(E instanceof Map){for(const g of Array.from(E.keys())){const f=E.get(g);const p=applyReviver(i,E,g,f);if(p===undefined)E.delete(g);else if(p!==f)E.set(g,p)}}else if(E instanceof Set){for(const g of Array.from(E)){const f=applyReviver(i,E,g,g);if(f===undefined)E.delete(g);else if(f!==g){E.delete(g);E.add(f)}}}else{for(const[g,f]of Object.entries(E)){const p=applyReviver(i,E,g,f);if(p===undefined)delete E[g];else if(p!==f)E[g]=p}}}return i.call(g,f,E)}g.applyReviver=applyReviver},2404:(i,g,f)=>{var E=f(4065);var p=f(1127);var y=f(3301);const b="tag:yaml.org,2002:";function findTagObject(i,g,f){if(g){const i=f.filter((i=>i.tag===g));const E=i.find((i=>!i.format))??i[0];if(!E)throw new Error(`Tag ${g} not found`);return E}return f.find((g=>g.identify?.(i)&&!g.format))}function createNode(i,g,f){if(p.isDocument(i))i=i.contents;if(p.isNode(i))return i;if(p.isPair(i)){const g=f.schema[p.MAP].createNode?.(f.schema,null,f);g.items.push(i);return g}if(i instanceof String||i instanceof Number||i instanceof Boolean||typeof BigInt!=="undefined"&&i instanceof BigInt){i=i.valueOf()}const{aliasDuplicateObjects:S,onAnchor:J,onTagObj:Z,schema:$,sourceObjects:z}=f;let ee=undefined;if(S&&i&&typeof i==="object"){ee=z.get(i);if(ee){ee.anchor??(ee.anchor=J(i));return new E.Alias(ee.anchor)}else{ee={anchor:null,node:null};z.set(i,ee)}}if(g?.startsWith("!!"))g=b+g.slice(2);let re=findTagObject(i,g,$.tags);if(!re){if(i&&typeof i.toJSON==="function"){i=i.toJSON()}if(!i||typeof i!=="object"){const g=new y.Scalar(i);if(ee)ee.node=g;return g}re=i instanceof Map?$[p.MAP]:Symbol.iterator in Object(i)?$[p.SEQ]:$[p.MAP]}if(Z){Z(re);delete f.onTagObj}const Pe=re?.createNode?re.createNode(f.schema,i,f):typeof re?.nodeClass?.from==="function"?re.nodeClass.from(f.schema,i,f):new y.Scalar(i);if(g)Pe.tag=g;else if(!re.default)Pe.tag=re.tag;if(ee)ee.node=Pe;return Pe}g.createNode=createNode},1342:(i,g,f)=>{var E=f(1127);var p=f(204);const y={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=i=>i.replace(/[!,[\]{}]/g,(i=>y[i]));class Directives{constructor(i,g){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,i);this.tags=Object.assign({},Directives.defaultTags,g)}clone(){const i=new Directives(this.yaml,this.tags);i.docStart=this.docStart;return i}atDocument(){const i=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return i}add(i,g){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const f=i.trim().split(/[ \t]+/);const E=f.shift();switch(E){case"%TAG":{if(f.length!==2){g(0,"%TAG directive should contain exactly two parts");if(f.length<2)return false}const[i,E]=f;this.tags[i]=E;return true}case"%YAML":{this.yaml.explicit=true;if(f.length!==1){g(0,"%YAML directive should contain exactly one part");return false}const[i]=f;if(i==="1.1"||i==="1.2"){this.yaml.version=i;return true}else{const f=/^\d+\.\d+$/.test(i);g(6,`Unsupported YAML version ${i}`,f);return false}}default:g(0,`Unknown directive ${E}`,true);return false}}tagName(i,g){if(i==="!")return"!";if(i[0]!=="!"){g(`Not a valid tag: ${i}`);return null}if(i[1]==="<"){const f=i.slice(2,-1);if(f==="!"||f==="!!"){g(`Verbatim tags aren't resolved, so ${i} is invalid.`);return null}if(i[i.length-1]!==">")g("Verbatim tags must end with a >");return f}const[,f,E]=i.match(/^(.*!)([^!]*)$/s);if(!E)g(`The ${i} tag has no suffix`);const p=this.tags[f];if(p){try{return p+decodeURIComponent(E)}catch(i){g(String(i));return null}}if(f==="!")return i;g(`Could not resolve tag: ${i}`);return null}tagString(i){for(const[g,f]of Object.entries(this.tags)){if(i.startsWith(f))return g+escapeTagName(i.substring(f.length))}return i[0]==="!"?i:`!<${i}>`}toString(i){const g=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const f=Object.entries(this.tags);let y;if(i&&f.length>0&&E.isNode(i.contents)){const g={};p.visit(i.contents,((i,f)=>{if(E.isNode(f)&&f.tag)g[f.tag]=true}));y=Object.keys(g)}else y=[];for(const[E,p]of f){if(E==="!!"&&p==="tag:yaml.org,2002:")continue;if(!i||y.some((i=>i.startsWith(p))))g.push(`%TAG ${E} ${p}`)}return g.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};g.Directives=Directives},1464:(i,g)=>{class YAMLError extends Error{constructor(i,g,f,E){super();this.name=i;this.code=f;this.message=E;this.pos=g}}class YAMLParseError extends YAMLError{constructor(i,g,f){super("YAMLParseError",i,g,f)}}class YAMLWarning extends YAMLError{constructor(i,g,f){super("YAMLWarning",i,g,f)}}const prettifyError=(i,g)=>f=>{if(f.pos[0]===-1)return;f.linePos=f.pos.map((i=>g.linePos(i)));const{line:E,col:p}=f.linePos[0];f.message+=` at line ${E}, column ${p}`;let y=p-1;let b=i.substring(g.lineStarts[E-1],g.lineStarts[E]).replace(/[\n\r]+$/,"");if(y>=60&&b.length>80){const i=Math.min(y-39,b.length-79);b="…"+b.substring(i);y-=i-1}if(b.length>80)b=b.substring(0,79)+"…";if(E>1&&/^ *$/.test(b.substring(0,y))){let f=i.substring(g.lineStarts[E-2],g.lineStarts[E-1]);if(f.length>80)f=f.substring(0,79)+"…\n";b=f+b}if(/[^ ]/.test(b)){let i=1;const g=f.linePos[1];if(g?.line===E&&g.col>p){i=Math.max(1,Math.min(g.col-p,80-y))}const S=" ".repeat(y)+"^".repeat(i);f.message+=`:\n\n${b}\n${S}\n`}};g.YAMLError=YAMLError;g.YAMLParseError=YAMLParseError;g.YAMLWarning=YAMLWarning;g.prettifyError=prettifyError},8815:(i,g,f)=>{var E=f(9984);var p=f(3021);var y=f(5840);var b=f(1464);var S=f(4065);var J=f(1127);var Z=f(7165);var $=f(3301);var z=f(4454);var ee=f(2223);var re=f(3461);var Pe=f(361);var $t=f(6628);var tn=f(3456);var sn=f(4047);var nn=f(204);g.Composer=E.Composer;g.Document=p.Document;g.Schema=y.Schema;g.YAMLError=b.YAMLError;g.YAMLParseError=b.YAMLParseError;g.YAMLWarning=b.YAMLWarning;g.Alias=S.Alias;g.isAlias=J.isAlias;g.isCollection=J.isCollection;g.isDocument=J.isDocument;g.isMap=J.isMap;g.isNode=J.isNode;g.isPair=J.isPair;g.isScalar=J.isScalar;g.isSeq=J.isSeq;g.Pair=Z.Pair;g.Scalar=$.Scalar;g.YAMLMap=z.YAMLMap;g.YAMLSeq=ee.YAMLSeq;g.CST=re;g.Lexer=Pe.Lexer;g.LineCounter=$t.LineCounter;g.Parser=tn.Parser;g.parse=sn.parse;g.parseAllDocuments=sn.parseAllDocuments;g.parseDocument=sn.parseDocument;g.stringify=sn.stringify;g.visit=nn.visit;g.visitAsync=nn.visitAsync},7249:(i,g,f)=>{var E=f(932);function debug(i,...g){if(i==="debug")console.log(...g)}function warn(i,g){if(i==="debug"||i==="warn"){if(typeof E.emitWarning==="function")E.emitWarning(g);else console.warn(g)}}g.debug=debug;g.warn=warn},4065:(i,g,f)=>{var E=f(1596);var p=f(204);var y=f(1127);var b=f(6673);var S=f(6424);class Alias extends b.NodeBase{constructor(i){super(y.ALIAS);this.source=i;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(i,g){let f;if(g?.aliasResolveCache){f=g.aliasResolveCache}else{f=[];p.visit(i,{Node:(i,g)=>{if(y.isAlias(g)||y.hasAnchor(g))f.push(g)}});if(g)g.aliasResolveCache=f}let E=undefined;for(const i of f){if(i===this)break;if(i.anchor===this.source)E=i}return E}toJSON(i,g){if(!g)return{source:this.source};const{anchors:f,doc:E,maxAliasCount:p}=g;const y=this.resolve(E,g);if(!y){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(i)}let b=f.get(y);if(!b){S.toJS(y,null,g);b=f.get(y)}if(b?.res===undefined){const i="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(i)}if(p>=0){b.count+=1;if(b.aliasCount===0)b.aliasCount=getAliasCount(E,y,f);if(b.count*b.aliasCount>p){const i="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(i)}}return b.res}toString(i,g,f){const p=`*${this.source}`;if(i){E.anchorIsValid(this.source);if(i.options.verifyAliasOrder&&!i.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(i.implicitKey)return`${p} `}return p}}function getAliasCount(i,g,f){if(y.isAlias(g)){const E=g.resolve(i);const p=f&&E&&f.get(E);return p?p.count*p.aliasCount:0}else if(y.isCollection(g)){let E=0;for(const p of g.items){const g=getAliasCount(i,p,f);if(g>E)E=g}return E}else if(y.isPair(g)){const E=getAliasCount(i,g.key,f);const p=getAliasCount(i,g.value,f);return Math.max(E,p)}return 1}g.Alias=Alias},101:(i,g,f)=>{var E=f(2404);var p=f(1127);var y=f(6673);function collectionFromPath(i,g,f){let p=f;for(let i=g.length-1;i>=0;--i){const f=g[i];if(typeof f==="number"&&Number.isInteger(f)&&f>=0){const i=[];i[f]=p;p=i}else{p=new Map([[f,p]])}}return E.createNode(p,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:i,sourceObjects:new Map})}const isEmptyPath=i=>i==null||typeof i==="object"&&!!i[Symbol.iterator]().next().done;class Collection extends y.NodeBase{constructor(i,g){super(i);Object.defineProperty(this,"schema",{value:g,configurable:true,enumerable:false,writable:true})}clone(i){const g=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(i)g.schema=i;g.items=g.items.map((g=>p.isNode(g)||p.isPair(g)?g.clone(i):g));if(this.range)g.range=this.range.slice();return g}addIn(i,g){if(isEmptyPath(i))this.add(g);else{const[f,...E]=i;const y=this.get(f,true);if(p.isCollection(y))y.addIn(E,g);else if(y===undefined&&this.schema)this.set(f,collectionFromPath(this.schema,E,g));else throw new Error(`Expected YAML collection at ${f}. Remaining path: ${E}`)}}deleteIn(i){const[g,...f]=i;if(f.length===0)return this.delete(g);const E=this.get(g,true);if(p.isCollection(E))return E.deleteIn(f);else throw new Error(`Expected YAML collection at ${g}. Remaining path: ${f}`)}getIn(i,g){const[f,...E]=i;const y=this.get(f,true);if(E.length===0)return!g&&p.isScalar(y)?y.value:y;else return p.isCollection(y)?y.getIn(E,g):undefined}hasAllNullValues(i){return this.items.every((g=>{if(!p.isPair(g))return false;const f=g.value;return f==null||i&&p.isScalar(f)&&f.value==null&&!f.commentBefore&&!f.comment&&!f.tag}))}hasIn(i){const[g,...f]=i;if(f.length===0)return this.has(g);const E=this.get(g,true);return p.isCollection(E)?E.hasIn(f):false}setIn(i,g){const[f,...E]=i;if(E.length===0){this.set(f,g)}else{const i=this.get(f,true);if(p.isCollection(i))i.setIn(E,g);else if(i===undefined&&this.schema)this.set(f,collectionFromPath(this.schema,E,g));else throw new Error(`Expected YAML collection at ${f}. Remaining path: ${E}`)}}}g.Collection=Collection;g.collectionFromPath=collectionFromPath;g.isEmptyPath=isEmptyPath},6673:(i,g,f)=>{var E=f(3661);var p=f(1127);var y=f(6424);class NodeBase{constructor(i){Object.defineProperty(this,p.NODE_TYPE,{value:i})}clone(){const i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)i.range=this.range.slice();return i}toJS(i,{mapAsMap:g,maxAliasCount:f,onAnchor:b,reviver:S}={}){if(!p.isDocument(i))throw new TypeError("A document argument is required");const J={anchors:new Map,doc:i,keep:true,mapAsMap:g===true,mapKeyWarned:false,maxAliasCount:typeof f==="number"?f:100};const Z=y.toJS(this,"",J);if(typeof b==="function")for(const{count:i,res:g}of J.anchors.values())b(g,i);return typeof S==="function"?E.applyReviver(S,{"":Z},"",Z):Z}}g.NodeBase=NodeBase},7165:(i,g,f)=>{var E=f(2404);var p=f(9748);var y=f(7104);var b=f(1127);function createPair(i,g,f){const p=E.createNode(i,undefined,f);const y=E.createNode(g,undefined,f);return new Pair(p,y)}class Pair{constructor(i,g=null){Object.defineProperty(this,b.NODE_TYPE,{value:b.PAIR});this.key=i;this.value=g}clone(i){let{key:g,value:f}=this;if(b.isNode(g))g=g.clone(i);if(b.isNode(f))f=f.clone(i);return new Pair(g,f)}toJSON(i,g){const f=g?.mapAsMap?new Map:{};return y.addPairToJSMap(g,f,this)}toString(i,g,f){return i?.doc?p.stringifyPair(this,i,g,f):JSON.stringify(this)}}g.Pair=Pair;g.createPair=createPair},3301:(i,g,f)=>{var E=f(1127);var p=f(6673);var y=f(6424);const isScalarValue=i=>!i||typeof i!=="function"&&typeof i!=="object";class Scalar extends p.NodeBase{constructor(i){super(E.SCALAR);this.value=i}toJSON(i,g){return g?.keep?this.value:y.toJS(this.value,i,g)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";g.Scalar=Scalar;g.isScalarValue=isScalarValue},4454:(i,g,f)=>{var E=f(1212);var p=f(7104);var y=f(101);var b=f(1127);var S=f(7165);var J=f(3301);function findPair(i,g){const f=b.isScalar(g)?g.value:g;for(const E of i){if(b.isPair(E)){if(E.key===g||E.key===f)return E;if(b.isScalar(E.key)&&E.key.value===f)return E}}return undefined}class YAMLMap extends y.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(i){super(b.MAP,i);this.items=[]}static from(i,g,f){const{keepUndefined:E,replacer:p}=f;const y=new this(i);const add=(i,b)=>{if(typeof p==="function")b=p.call(g,i,b);else if(Array.isArray(p)&&!p.includes(i))return;if(b!==undefined||E)y.items.push(S.createPair(i,b,f))};if(g instanceof Map){for(const[i,f]of g)add(i,f)}else if(g&&typeof g==="object"){for(const i of Object.keys(g))add(i,g[i])}if(typeof i.sortMapEntries==="function"){y.items.sort(i.sortMapEntries)}return y}add(i,g){let f;if(b.isPair(i))f=i;else if(!i||typeof i!=="object"||!("key"in i)){f=new S.Pair(i,i?.value)}else f=new S.Pair(i.key,i.value);const E=findPair(this.items,f.key);const p=this.schema?.sortMapEntries;if(E){if(!g)throw new Error(`Key ${f.key} already set`);if(b.isScalar(E.value)&&J.isScalarValue(f.value))E.value.value=f.value;else E.value=f.value}else if(p){const i=this.items.findIndex((i=>p(f,i)<0));if(i===-1)this.items.push(f);else this.items.splice(i,0,f)}else{this.items.push(f)}}delete(i){const g=findPair(this.items,i);if(!g)return false;const f=this.items.splice(this.items.indexOf(g),1);return f.length>0}get(i,g){const f=findPair(this.items,i);const E=f?.value;return(!g&&b.isScalar(E)?E.value:E)??undefined}has(i){return!!findPair(this.items,i)}set(i,g){this.add(new S.Pair(i,g),true)}toJSON(i,g,f){const E=f?new f:g?.mapAsMap?new Map:{};if(g?.onCreate)g.onCreate(E);for(const i of this.items)p.addPairToJSMap(g,E,i);return E}toString(i,g,f){if(!i)return JSON.stringify(this);for(const i of this.items){if(!b.isPair(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`)}if(!i.allNullValues&&this.hasAllNullValues(false))i=Object.assign({},i,{allNullValues:true});return E.stringifyCollection(this,i,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:i.indent||"",onChompKeep:f,onComment:g})}}g.YAMLMap=YAMLMap;g.findPair=findPair},2223:(i,g,f)=>{var E=f(2404);var p=f(1212);var y=f(101);var b=f(1127);var S=f(3301);var J=f(6424);class YAMLSeq extends y.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(i){super(b.SEQ,i);this.items=[]}add(i){this.items.push(i)}delete(i){const g=asItemIndex(i);if(typeof g!=="number")return false;const f=this.items.splice(g,1);return f.length>0}get(i,g){const f=asItemIndex(i);if(typeof f!=="number")return undefined;const E=this.items[f];return!g&&b.isScalar(E)?E.value:E}has(i){const g=asItemIndex(i);return typeof g==="number"&&g<this.items.length}set(i,g){const f=asItemIndex(i);if(typeof f!=="number")throw new Error(`Expected a valid index, not ${i}.`);const E=this.items[f];if(b.isScalar(E)&&S.isScalarValue(g))E.value=g;else this.items[f]=g}toJSON(i,g){const f=[];if(g?.onCreate)g.onCreate(f);let E=0;for(const i of this.items)f.push(J.toJS(i,String(E++),g));return f}toString(i,g,f){if(!i)return JSON.stringify(this);return p.stringifyCollection(this,i,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(i.indent||"")+" ",onChompKeep:f,onComment:g})}static from(i,g,f){const{replacer:p}=f;const y=new this(i);if(g&&Symbol.iterator in Object(g)){let i=0;for(let b of g){if(typeof p==="function"){const f=g instanceof Set?b:String(i++);b=p.call(g,f,b)}y.items.push(E.createNode(b,undefined,f))}}return y}}function asItemIndex(i){let g=b.isScalar(i)?i.value:i;if(g&&typeof g==="string")g=Number(g);return typeof g==="number"&&Number.isInteger(g)&&g>=0?g:null}g.YAMLSeq=YAMLSeq},7104:(i,g,f)=>{var E=f(7249);var p=f(452);var y=f(2148);var b=f(1127);var S=f(6424);function addPairToJSMap(i,g,{key:f,value:E}){if(b.isNode(f)&&f.addToJSMap)f.addToJSMap(i,g,E);else if(p.isMergeKey(i,f))p.addMergeToJSMap(i,g,E);else{const p=S.toJS(f,"",i);if(g instanceof Map){g.set(p,S.toJS(E,p,i))}else if(g instanceof Set){g.add(p)}else{const y=stringifyKey(f,p,i);const b=S.toJS(E,y,i);if(y in g)Object.defineProperty(g,y,{value:b,writable:true,enumerable:true,configurable:true});else g[y]=b}}return g}function stringifyKey(i,g,f){if(g===null)return"";if(typeof g!=="object")return String(g);if(b.isNode(i)&&f?.doc){const g=y.createStringifyContext(f.doc,{});g.anchors=new Set;for(const i of f.anchors.keys())g.anchors.add(i.anchor);g.inFlow=true;g.inStringifyKey=true;const p=i.toString(g);if(!f.mapKeyWarned){let i=JSON.stringify(p);if(i.length>40)i=i.substring(0,36)+'..."';E.warn(f.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`);f.mapKeyWarned=true}return p}return JSON.stringify(g)}g.addPairToJSMap=addPairToJSMap},1127:(i,g)=>{const f=Symbol.for("yaml.alias");const E=Symbol.for("yaml.document");const p=Symbol.for("yaml.map");const y=Symbol.for("yaml.pair");const b=Symbol.for("yaml.scalar");const S=Symbol.for("yaml.seq");const J=Symbol.for("yaml.node.type");const isAlias=i=>!!i&&typeof i==="object"&&i[J]===f;const isDocument=i=>!!i&&typeof i==="object"&&i[J]===E;const isMap=i=>!!i&&typeof i==="object"&&i[J]===p;const isPair=i=>!!i&&typeof i==="object"&&i[J]===y;const isScalar=i=>!!i&&typeof i==="object"&&i[J]===b;const isSeq=i=>!!i&&typeof i==="object"&&i[J]===S;function isCollection(i){if(i&&typeof i==="object")switch(i[J]){case p:case S:return true}return false}function isNode(i){if(i&&typeof i==="object")switch(i[J]){case f:case p:case b:case S:return true}return false}const hasAnchor=i=>(isScalar(i)||isCollection(i))&&!!i.anchor;g.ALIAS=f;g.DOC=E;g.MAP=p;g.NODE_TYPE=J;g.PAIR=y;g.SCALAR=b;g.SEQ=S;g.hasAnchor=hasAnchor;g.isAlias=isAlias;g.isCollection=isCollection;g.isDocument=isDocument;g.isMap=isMap;g.isNode=isNode;g.isPair=isPair;g.isScalar=isScalar;g.isSeq=isSeq},6424:(i,g,f)=>{var E=f(1127);function toJS(i,g,f){if(Array.isArray(i))return i.map(((i,g)=>toJS(i,String(g),f)));if(i&&typeof i.toJSON==="function"){if(!f||!E.hasAnchor(i))return i.toJSON(g,f);const p={aliasCount:0,count:1,res:undefined};f.anchors.set(i,p);f.onCreate=i=>{p.res=i;delete f.onCreate};const y=i.toJSON(g,f);if(f.onCreate)f.onCreate(y);return y}if(typeof i==="bigint"&&!f?.keep)return Number(i);return i}g.toJS=toJS},110:(i,g,f)=>{var E=f(8913);var p=f(6842);var y=f(1464);var b=f(3069);function resolveAsScalar(i,g=true,f){if(i){const _onError=(i,g,E)=>{const p=typeof i==="number"?i:Array.isArray(i)?i[0]:i.offset;if(f)f(p,g,E);else throw new y.YAMLParseError([p,p+1],g,E)};switch(i.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return p.resolveFlowScalar(i,g,_onError);case"block-scalar":return E.resolveBlockScalar({options:{strict:g}},i,_onError)}}return null}function createScalarToken(i,g){const{implicitKey:f=false,indent:E,inFlow:p=false,offset:y=-1,type:S="PLAIN"}=g;const J=b.stringifyString({type:S,value:i},{implicitKey:f,indent:E>0?" ".repeat(E):"",inFlow:p,options:{blockQuote:true,lineWidth:-1}});const Z=g.end??[{type:"newline",offset:-1,indent:E,source:"\n"}];switch(J[0]){case"|":case">":{const i=J.indexOf("\n");const g=J.substring(0,i);const f=J.substring(i+1)+"\n";const p=[{type:"block-scalar-header",offset:y,indent:E,source:g}];if(!addEndtoBlockProps(p,Z))p.push({type:"newline",offset:-1,indent:E,source:"\n"});return{type:"block-scalar",offset:y,indent:E,props:p,source:f}}case'"':return{type:"double-quoted-scalar",offset:y,indent:E,source:J,end:Z};case"'":return{type:"single-quoted-scalar",offset:y,indent:E,source:J,end:Z};default:return{type:"scalar",offset:y,indent:E,source:J,end:Z}}}function setScalarValue(i,g,f={}){let{afterKey:E=false,implicitKey:p=false,inFlow:y=false,type:S}=f;let J="indent"in i?i.indent:null;if(E&&typeof J==="number")J+=2;if(!S)switch(i.type){case"single-quoted-scalar":S="QUOTE_SINGLE";break;case"double-quoted-scalar":S="QUOTE_DOUBLE";break;case"block-scalar":{const g=i.props[0];if(g.type!=="block-scalar-header")throw new Error("Invalid block scalar header");S=g.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:S="PLAIN"}const Z=b.stringifyString({type:S,value:g},{implicitKey:p||J===null,indent:J!==null&&J>0?" ".repeat(J):"",inFlow:y,options:{blockQuote:true,lineWidth:-1}});switch(Z[0]){case"|":case">":setBlockScalarValue(i,Z);break;case'"':setFlowScalarValue(i,Z,"double-quoted-scalar");break;case"'":setFlowScalarValue(i,Z,"single-quoted-scalar");break;default:setFlowScalarValue(i,Z,"scalar")}}function setBlockScalarValue(i,g){const f=g.indexOf("\n");const E=g.substring(0,f);const p=g.substring(f+1)+"\n";if(i.type==="block-scalar"){const g=i.props[0];if(g.type!=="block-scalar-header")throw new Error("Invalid block scalar header");g.source=E;i.source=p}else{const{offset:g}=i;const f="indent"in i?i.indent:-1;const y=[{type:"block-scalar-header",offset:g,indent:f,source:E}];if(!addEndtoBlockProps(y,"end"in i?i.end:undefined))y.push({type:"newline",offset:-1,indent:f,source:"\n"});for(const g of Object.keys(i))if(g!=="type"&&g!=="offset")delete i[g];Object.assign(i,{type:"block-scalar",indent:f,props:y,source:p})}}function addEndtoBlockProps(i,g){if(g)for(const f of g)switch(f.type){case"space":case"comment":i.push(f);break;case"newline":i.push(f);return true}return false}function setFlowScalarValue(i,g,f){switch(i.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":i.type=f;i.source=g;break;case"block-scalar":{const E=i.props.slice(1);let p=g.length;if(i.props[0].type==="block-scalar-header")p-=i.props[0].source.length;for(const i of E)i.offset+=p;delete i.props;Object.assign(i,{type:f,source:g,end:E});break}case"block-map":case"block-seq":{const E=i.offset+g.length;const p={type:"newline",offset:E,indent:i.indent,source:"\n"};delete i.items;Object.assign(i,{type:f,source:g,end:[p]});break}default:{const E="indent"in i?i.indent:-1;const p="end"in i&&Array.isArray(i.end)?i.end.filter((i=>i.type==="space"||i.type==="comment"||i.type==="newline")):[];for(const g of Object.keys(i))if(g!=="type"&&g!=="offset")delete i[g];Object.assign(i,{type:f,indent:E,source:g,end:p})}}}g.createScalarToken=createScalarToken;g.resolveAsScalar=resolveAsScalar;g.setScalarValue=setScalarValue},1733:(i,g)=>{const stringify=i=>"type"in i?stringifyToken(i):stringifyItem(i);function stringifyToken(i){switch(i.type){case"block-scalar":{let g="";for(const f of i.props)g+=stringifyToken(f);return g+i.source}case"block-map":case"block-seq":{let g="";for(const f of i.items)g+=stringifyItem(f);return g}case"flow-collection":{let g=i.start.source;for(const f of i.items)g+=stringifyItem(f);for(const f of i.end)g+=f.source;return g}case"document":{let g=stringifyItem(i);if(i.end)for(const f of i.end)g+=f.source;return g}default:{let g=i.source;if("end"in i&&i.end)for(const f of i.end)g+=f.source;return g}}}function stringifyItem({start:i,key:g,sep:f,value:E}){let p="";for(const g of i)p+=g.source;if(g)p+=stringifyToken(g);if(f)for(const i of f)p+=i.source;if(E)p+=stringifyToken(E);return p}g.stringify=stringify},7715:(i,g)=>{const f=Symbol("break visit");const E=Symbol("skip children");const p=Symbol("remove item");function visit(i,g){if("type"in i&&i.type==="document")i={start:i.start,value:i.value};_visit(Object.freeze([]),i,g)}visit.BREAK=f;visit.SKIP=E;visit.REMOVE=p;visit.itemAtPath=(i,g)=>{let f=i;for(const[i,E]of g){const g=f?.[i];if(g&&"items"in g){f=g.items[E]}else return undefined}return f};visit.parentCollection=(i,g)=>{const f=visit.itemAtPath(i,g.slice(0,-1));const E=g[g.length-1][0];const p=f?.[E];if(p&&"items"in p)return p;throw new Error("Parent collection not found")};function _visit(i,g,E){let y=E(g,i);if(typeof y==="symbol")return y;for(const b of["key","value"]){const S=g[b];if(S&&"items"in S){for(let g=0;g<S.items.length;++g){const y=_visit(Object.freeze(i.concat([[b,g]])),S.items[g],E);if(typeof y==="number")g=y-1;else if(y===f)return f;else if(y===p){S.items.splice(g,1);g-=1}}if(typeof y==="function"&&b==="key")y=y(g,i)}}return typeof y==="function"?y(g,i):y}g.visit=visit},3461:(i,g,f)=>{var E=f(110);var p=f(1733);var y=f(7715);const b="\ufeff";const S="";const J="";const Z="";const isCollection=i=>!!i&&"items"in i;const isScalar=i=>!!i&&(i.type==="scalar"||i.type==="single-quoted-scalar"||i.type==="double-quoted-scalar"||i.type==="block-scalar");function prettyToken(i){switch(i){case b:return"<BOM>";case S:return"<DOC>";case J:return"<FLOW_END>";case Z:return"<SCALAR>";default:return JSON.stringify(i)}}function tokenType(i){switch(i){case b:return"byte-order-mark";case S:return"doc-mode";case J:return"flow-error-end";case Z:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(i[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}g.createScalarToken=E.createScalarToken;g.resolveAsScalar=E.resolveAsScalar;g.setScalarValue=E.setScalarValue;g.stringify=p.stringify;g.visit=y.visit;g.BOM=b;g.DOCUMENT=S;g.FLOW_END=J;g.SCALAR=Z;g.isCollection=isCollection;g.isScalar=isScalar;g.prettyToken=prettyToken;g.tokenType=tokenType},361:(i,g,f)=>{var E=f(3461);function isEmpty(i){switch(i){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const p=new Set("0123456789ABCDEFabcdef");const y=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const b=new Set(",[]{}");const S=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=i=>!i||S.has(i);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(i,g=false){if(i){if(typeof i!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+i:i;this.lineEndPos=null}this.atEnd=!g;let f=this.next??"stream";while(f&&(g||this.hasChars(1)))f=yield*this.parseNext(f)}atLineEnd(){let i=this.pos;let g=this.buffer[i];while(g===" "||g==="\t")g=this.buffer[++i];if(!g||g==="#"||g==="\n")return true;if(g==="\r")return this.buffer[i+1]==="\n";return false}charAt(i){return this.buffer[this.pos+i]}continueScalar(i){let g=this.buffer[i];if(this.indentNext>0){let f=0;while(g===" ")g=this.buffer[++f+i];if(g==="\r"){const g=this.buffer[f+i+1];if(g==="\n"||!g&&!this.atEnd)return i+f+1}return g==="\n"||f>=this.indentNext||!g&&!this.atEnd?i+f:-1}if(g==="-"||g==="."){const g=this.buffer.substr(i,3);if((g==="---"||g==="...")&&isEmpty(this.buffer[i+3]))return-1}return i}getLine(){let i=this.lineEndPos;if(typeof i!=="number"||i!==-1&&i<this.pos){i=this.buffer.indexOf("\n",this.pos);this.lineEndPos=i}if(i===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[i-1]==="\r")i-=1;return this.buffer.substring(this.pos,i)}hasChars(i){return this.pos+i<=this.buffer.length}setNext(i){this.buffer=this.buffer.substring(this.pos);this.pos=0;this.lineEndPos=null;this.next=i;return null}peek(i){return this.buffer.substr(this.pos,i)}*parseNext(i){switch(i){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let i=this.getLine();if(i===null)return this.setNext("stream");if(i[0]===E.BOM){yield*this.pushCount(1);i=i.substring(1)}if(i[0]==="%"){let g=i.length;let f=i.indexOf("#");while(f!==-1){const E=i[f-1];if(E===" "||E==="\t"){g=f-1;break}else{f=i.indexOf("#",f+1)}}while(true){const f=i[g-1];if(f===" "||f==="\t")g-=1;else break}const E=(yield*this.pushCount(g))+(yield*this.pushSpaces(true));yield*this.pushCount(i.length-E);this.pushNewline();return"stream"}if(this.atLineEnd()){const g=yield*this.pushSpaces(true);yield*this.pushCount(i.length-g);yield*this.pushNewline();return"stream"}yield E.DOCUMENT;return yield*this.parseLineStart()}*parseLineStart(){const i=this.charAt(0);if(!i&&!this.atEnd)return this.setNext("line-start");if(i==="-"||i==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const i=this.peek(3);if((i==="---"||i==="...")&&isEmpty(this.charAt(3))){yield*this.pushCount(3);this.indentValue=0;this.indentNext=0;return i==="---"?"doc":"stream"}}this.indentValue=yield*this.pushSpaces(false);if(this.indentNext>this.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[i,g]=this.peek(2);if(!g&&!this.atEnd)return this.setNext("block-start");if((i==="-"||i==="?"||i===":")&&isEmpty(g)){const i=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=i;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const i=this.getLine();if(i===null)return this.setNext("doc");let g=yield*this.pushIndicators();switch(i[g]){case"#":yield*this.pushCount(i.length-g);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":g+=(yield*this.parseBlockScalarHeader());g+=(yield*this.pushSpaces(true));yield*this.pushCount(i.length-g);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let i,g;let f=-1;do{i=yield*this.pushNewline();if(i>0){g=yield*this.pushSpaces(false);this.indentValue=f=g}else{g=0}g+=(yield*this.pushSpaces(true))}while(i+g>0);const p=this.getLine();if(p===null)return this.setNext("flow");if(f!==-1&&f<this.indentNext&&p[0]!=="#"||f===0&&(p.startsWith("---")||p.startsWith("..."))&&isEmpty(p[3])){const i=f===this.indentNext-1&&this.flowLevel===1&&(p[0]==="]"||p[0]==="}");if(!i){this.flowLevel=0;yield E.FLOW_END;return yield*this.parseLineStart()}}let y=0;while(p[y]===","){y+=(yield*this.pushCount(1));y+=(yield*this.pushSpaces(true));this.flowKey=false}y+=(yield*this.pushIndicators());switch(p[y]){case undefined:return"flow";case"#":yield*this.pushCount(p.length-y);return"flow";case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel+=1;return"flow";case"}":case"]":yield*this.pushCount(1);this.flowKey=true;this.flowLevel-=1;return this.flowLevel?"flow":"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"flow";case'"':case"'":this.flowKey=true;return yield*this.parseQuotedScalar();case":":{const i=this.charAt(1);if(this.flowKey||isEmpty(i)||i===","){this.flowKey=false;yield*this.pushCount(1);yield*this.pushSpaces(true);return"flow"}}default:this.flowKey=false;return yield*this.parsePlainScalar()}}*parseQuotedScalar(){const i=this.charAt(0);let g=this.buffer.indexOf(i,this.pos+1);if(i==="'"){while(g!==-1&&this.buffer[g+1]==="'")g=this.buffer.indexOf("'",g+2)}else{while(g!==-1){let i=0;while(this.buffer[g-1-i]==="\\")i+=1;if(i%2===0)break;g=this.buffer.indexOf('"',g+1)}}const f=this.buffer.substring(0,g);let E=f.indexOf("\n",this.pos);if(E!==-1){while(E!==-1){const i=this.continueScalar(E+1);if(i===-1)break;E=f.indexOf("\n",i)}if(E!==-1){g=E-(f[E-1]==="\r"?2:1)}}if(g===-1){if(!this.atEnd)return this.setNext("quoted-scalar");g=this.buffer.length}yield*this.pushToIndex(g+1,false);return this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1;this.blockScalarKeep=false;let i=this.pos;while(true){const g=this.buffer[++i];if(g==="+")this.blockScalarKeep=true;else if(g>"0"&&g<="9")this.blockScalarIndent=Number(g)-1;else if(g!=="-")break}return yield*this.pushUntil((i=>isEmpty(i)||i==="#"))}*parseBlockScalar(){let i=this.pos-1;let g=0;let f;e:for(let E=this.pos;f=this.buffer[E];++E){switch(f){case" ":g+=1;break;case"\n":i=E;g=0;break;case"\r":{const i=this.buffer[E+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i==="\n")break}default:break e}}if(!f&&!this.atEnd)return this.setNext("block-scalar");if(g>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=g;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const g=this.continueScalar(i+1);if(g===-1)break;i=this.buffer.indexOf("\n",g)}while(i!==-1);if(i===-1){if(!this.atEnd)return this.setNext("block-scalar");i=this.buffer.length}}let p=i+1;f=this.buffer[p];while(f===" ")f=this.buffer[++p];if(f==="\t"){while(f==="\t"||f===" "||f==="\r"||f==="\n")f=this.buffer[++p];i=p-1}else if(!this.blockScalarKeep){do{let f=i-1;let E=this.buffer[f];if(E==="\r")E=this.buffer[--f];const p=f;while(E===" ")E=this.buffer[--f];if(E==="\n"&&f>=this.pos&&f+1+g>p)i=f;else break}while(true)}yield E.SCALAR;yield*this.pushToIndex(i+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const i=this.flowLevel>0;let g=this.pos-1;let f=this.pos-1;let p;while(p=this.buffer[++f]){if(p===":"){const E=this.buffer[f+1];if(isEmpty(E)||i&&b.has(E))break;g=f}else if(isEmpty(p)){let E=this.buffer[f+1];if(p==="\r"){if(E==="\n"){f+=1;p="\n";E=this.buffer[f+1]}else g=f}if(E==="#"||i&&b.has(E))break;if(p==="\n"){const i=this.continueScalar(f+1);if(i===-1)break;f=Math.max(f,i-2)}}else{if(i&&b.has(p))break;g=f}}if(!p&&!this.atEnd)return this.setNext("plain-scalar");yield E.SCALAR;yield*this.pushToIndex(g+1,true);return i?"flow":"doc"}*pushCount(i){if(i>0){yield this.buffer.substr(this.pos,i);this.pos+=i;return i}return 0}*pushToIndex(i,g){const f=this.buffer.slice(this.pos,i);if(f){yield f;this.pos+=f.length;return f.length}else if(g)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const i=this.flowLevel>0;const g=this.charAt(1);if(isEmpty(g)||i&&b.has(g)){if(!i)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let i=this.pos+2;let g=this.buffer[i];while(!isEmpty(g)&&g!==">")g=this.buffer[++i];return yield*this.pushToIndex(g===">"?i+1:i,false)}else{let i=this.pos+1;let g=this.buffer[i];while(g){if(y.has(g))g=this.buffer[++i];else if(g==="%"&&p.has(this.buffer[i+1])&&p.has(this.buffer[i+2])){g=this.buffer[i+=3]}else break}return yield*this.pushToIndex(i,false)}}*pushNewline(){const i=this.buffer[this.pos];if(i==="\n")return yield*this.pushCount(1);else if(i==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(i){let g=this.pos-1;let f;do{f=this.buffer[++g]}while(f===" "||i&&f==="\t");const E=g-this.pos;if(E>0){yield this.buffer.substr(this.pos,E);this.pos=g}return E}*pushUntil(i){let g=this.pos;let f=this.buffer[g];while(!i(f))f=this.buffer[++g];return yield*this.pushToIndex(g,false)}}g.Lexer=Lexer},6628:(i,g)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=i=>this.lineStarts.push(i);this.linePos=i=>{let g=0;let f=this.lineStarts.length;while(g<f){const E=g+f>>1;if(this.lineStarts[E]<i)g=E+1;else f=E}if(this.lineStarts[g]===i)return{line:g+1,col:1};if(g===0)return{line:0,col:i};const E=this.lineStarts[g-1];return{line:g,col:i-E+1}}}}g.LineCounter=LineCounter},3456:(i,g,f)=>{var E=f(932);var p=f(3461);var y=f(361);function includesToken(i,g){for(let f=0;f<i.length;++f)if(i[f].type===g)return true;return false}function findNonEmptyIndex(i){for(let g=0;g<i.length;++g){switch(i[g].type){case"space":case"comment":case"newline":break;default:return g}}return-1}function isFlowToken(i){switch(i?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return true;default:return false}}function getPrevProps(i){switch(i.type){case"document":return i.start;case"block-map":{const g=i.items[i.items.length-1];return g.sep??g.start}case"block-seq":return i.items[i.items.length-1].start;default:return[]}}function getFirstKeyStartProps(i){if(i.length===0)return[];let g=i.length;e:while(--g>=0){switch(i[g].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(i[++g]?.type==="space"){}return i.splice(g,i.length)}function fixFlowSeqItems(i){if(i.start.type==="flow-seq-start"){for(const g of i.items){if(g.sep&&!g.value&&!includesToken(g.start,"explicit-key-ind")&&!includesToken(g.sep,"map-value-ind")){if(g.key)g.value=g.key;delete g.key;if(isFlowToken(g.value)){if(g.value.end)Array.prototype.push.apply(g.value.end,g.sep);else g.value.end=g.sep}else Array.prototype.push.apply(g.start,g.sep);delete g.sep}}}}class Parser{constructor(i){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new y.Lexer;this.onNewLine=i}*parse(i,g=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const f of this.lexer.lex(i,g))yield*this.next(f);if(!g)yield*this.end()}*next(i){this.source=i;if(E.env.LOG_TOKENS)console.log("|",p.prettyToken(i));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=i.length;return}const g=p.tokenType(i);if(!g){const g=`Not a YAML token: ${i}`;yield*this.pop({type:"error",offset:this.offset,message:g,source:i});this.offset+=i.length}else if(g==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=g;yield*this.step();switch(g){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+i.length);break;case"space":if(this.atNewLine&&i[0]===" ")this.indent+=i.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=i.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=i.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const i={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return i}*step(){const i=this.peek(1);if(this.type==="doc-end"&&i?.type!=="doc-end"){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!i)return yield*this.stream();switch(i.type){case"document":return yield*this.document(i);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(i);case"block-scalar":return yield*this.blockScalar(i);case"block-map":return yield*this.blockMap(i);case"block-seq":return yield*this.blockSequence(i);case"flow-collection":return yield*this.flowCollection(i);case"doc-end":return yield*this.documentEnd(i)}yield*this.pop()}peek(i){return this.stack[this.stack.length-i]}*pop(i){const g=i??this.stack.pop();if(!g){const i="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:i}}else if(this.stack.length===0){yield g}else{const i=this.peek(1);if(g.type==="block-scalar"){g.indent="indent"in i?i.indent:0}else if(g.type==="flow-collection"&&i.type==="document"){g.indent=0}if(g.type==="flow-collection")fixFlowSeqItems(g);switch(i.type){case"document":i.value=g;break;case"block-scalar":i.props.push(g);break;case"block-map":{const f=i.items[i.items.length-1];if(f.value){i.items.push({start:[],key:g,sep:[]});this.onKeyLine=true;return}else if(f.sep){f.value=g}else{Object.assign(f,{key:g,sep:[]});this.onKeyLine=!f.explicitKey;return}break}case"block-seq":{const f=i.items[i.items.length-1];if(f.value)i.items.push({start:[],value:g});else f.value=g;break}case"flow-collection":{const f=i.items[i.items.length-1];if(!f||f.value)i.items.push({start:[],key:g,sep:[]});else if(f.sep)f.value=g;else Object.assign(f,{key:g,sep:[]});return}default:yield*this.pop();yield*this.pop(g)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(g.type==="block-map"||g.type==="block-seq")){const f=g.items[g.items.length-1];if(f&&!f.sep&&!f.value&&f.start.length>0&&findNonEmptyIndex(f.start)===-1&&(g.indent===0||f.start.every((i=>i.type!=="comment"||i.indent<g.indent)))){if(i.type==="document")i.end=f.start;else i.items.push({start:f.start});g.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const i={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")i.start.push(this.sourceToken);this.stack.push(i);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(i){if(i.value)return yield*this.lineEnd(i);switch(this.type){case"doc-start":{if(findNonEmptyIndex(i.start)!==-1){yield*this.pop();yield*this.step()}else i.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":i.start.push(this.sourceToken);return}const g=this.startBlockValue(i);if(g)this.stack.push(g);else{yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}}*scalar(i){if(this.type==="map-value-ind"){const g=getPrevProps(this.peek(2));const f=getFirstKeyStartProps(g);let E;if(i.end){E=i.end;E.push(this.sourceToken);delete i.end}else E=[this.sourceToken];const p={type:"block-map",offset:i.offset,indent:i.indent,items:[{start:f,key:i,sep:E}]};this.onKeyLine=true;this.stack[this.stack.length-1]=p}else yield*this.lineEnd(i)}*blockScalar(i){switch(this.type){case"space":case"comment":case"newline":i.props.push(this.sourceToken);return;case"scalar":i.source=this.source;this.atNewLine=true;this.indent=0;if(this.onNewLine){let i=this.source.indexOf("\n")+1;while(i!==0){this.onNewLine(this.offset+i);i=this.source.indexOf("\n",i)+1}}yield*this.pop();break;default:yield*this.pop();yield*this.step()}}*blockMap(i){const g=i.items[i.items.length-1];switch(this.type){case"newline":this.onKeyLine=false;if(g.value){const f="end"in g.value?g.value.end:undefined;const E=Array.isArray(f)?f[f.length-1]:undefined;if(E?.type==="comment")f?.push(this.sourceToken);else i.items.push({start:[this.sourceToken]})}else if(g.sep){g.sep.push(this.sourceToken)}else{g.start.push(this.sourceToken)}return;case"space":case"comment":if(g.value){i.items.push({start:[this.sourceToken]})}else if(g.sep){g.sep.push(this.sourceToken)}else{if(this.atIndentedComment(g.start,i.indent)){const f=i.items[i.items.length-2];const E=f?.value?.end;if(Array.isArray(E)){Array.prototype.push.apply(E,g.start);E.push(this.sourceToken);i.items.pop();return}}g.start.push(this.sourceToken)}return}if(this.indent>=i.indent){const f=!this.onKeyLine&&this.indent===i.indent;const E=f&&(g.sep||g.explicitKey)&&this.type!=="seq-item-ind";let p=[];if(E&&g.sep&&!g.value){const f=[];for(let E=0;E<g.sep.length;++E){const p=g.sep[E];switch(p.type){case"newline":f.push(E);break;case"space":break;case"comment":if(p.indent>i.indent)f.length=0;break;default:f.length=0}}if(f.length>=2)p=g.sep.splice(f[1])}switch(this.type){case"anchor":case"tag":if(E||g.value){p.push(this.sourceToken);i.items.push({start:p});this.onKeyLine=true}else if(g.sep){g.sep.push(this.sourceToken)}else{g.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!g.sep&&!g.explicitKey){g.start.push(this.sourceToken);g.explicitKey=true}else if(E||g.value){p.push(this.sourceToken);i.items.push({start:p,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(g.explicitKey){if(!g.sep){if(includesToken(g.start,"newline")){Object.assign(g,{key:null,sep:[this.sourceToken]})}else{const i=getFirstKeyStartProps(g.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]})}}else if(g.value){i.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(g.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:p,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(g.key)&&!includesToken(g.sep,"newline")){const i=getFirstKeyStartProps(g.start);const f=g.key;const E=g.sep;E.push(this.sourceToken);delete g.key;delete g.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:f,sep:E}]})}else if(p.length>0){g.sep=g.sep.concat(p,this.sourceToken)}else{g.sep.push(this.sourceToken)}}else{if(!g.sep){Object.assign(g,{key:null,sep:[this.sourceToken]})}else if(g.value||E){i.items.push({start:p,key:null,sep:[this.sourceToken]})}else if(includesToken(g.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{g.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const f=this.flowScalar(this.type);if(E||g.value){i.items.push({start:p,key:f,sep:[]});this.onKeyLine=true}else if(g.sep){this.stack.push(f)}else{Object.assign(g,{key:f,sep:[]});this.onKeyLine=true}return}default:{const E=this.startBlockValue(i);if(E){if(E.type==="block-seq"){if(!g.explicitKey&&g.sep&&!includesToken(g.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(f){i.items.push({start:p})}this.stack.push(E);return}}}}yield*this.pop();yield*this.step()}*blockSequence(i){const g=i.items[i.items.length-1];switch(this.type){case"newline":if(g.value){const f="end"in g.value?g.value.end:undefined;const E=Array.isArray(f)?f[f.length-1]:undefined;if(E?.type==="comment")f?.push(this.sourceToken);else i.items.push({start:[this.sourceToken]})}else g.start.push(this.sourceToken);return;case"space":case"comment":if(g.value)i.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(g.start,i.indent)){const f=i.items[i.items.length-2];const E=f?.value?.end;if(Array.isArray(E)){Array.prototype.push.apply(E,g.start);E.push(this.sourceToken);i.items.pop();return}}g.start.push(this.sourceToken)}return;case"anchor":case"tag":if(g.value||this.indent<=i.indent)break;g.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==i.indent)break;if(g.value||includesToken(g.start,"seq-item-ind"))i.items.push({start:[this.sourceToken]});else g.start.push(this.sourceToken);return}if(this.indent>i.indent){const g=this.startBlockValue(i);if(g){this.stack.push(g);return}}yield*this.pop();yield*this.step()}*flowCollection(i){const g=i.items[i.items.length-1];if(this.type==="flow-error-end"){let i;do{yield*this.pop();i=this.peek(1)}while(i?.type==="flow-collection")}else if(i.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!g||g.sep)i.items.push({start:[this.sourceToken]});else g.start.push(this.sourceToken);return;case"map-value-ind":if(!g||g.value)i.items.push({start:[],key:null,sep:[this.sourceToken]});else if(g.sep)g.sep.push(this.sourceToken);else Object.assign(g,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!g||g.value)i.items.push({start:[this.sourceToken]});else if(g.sep)g.sep.push(this.sourceToken);else g.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const f=this.flowScalar(this.type);if(!g||g.value)i.items.push({start:[],key:f,sep:[]});else if(g.sep)this.stack.push(f);else Object.assign(g,{key:f,sep:[]});return}case"flow-map-end":case"flow-seq-end":i.end.push(this.sourceToken);return}const f=this.startBlockValue(i);if(f)this.stack.push(f);else{yield*this.pop();yield*this.step()}}else{const g=this.peek(2);if(g.type==="block-map"&&(this.type==="map-value-ind"&&g.indent===i.indent||this.type==="newline"&&!g.items[g.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&g.type!=="flow-collection"){const f=getPrevProps(g);const E=getFirstKeyStartProps(f);fixFlowSeqItems(i);const p=i.end.splice(1,i.end.length);p.push(this.sourceToken);const y={type:"block-map",offset:i.offset,indent:i.indent,items:[{start:E,key:i,sep:p}]};this.onKeyLine=true;this.stack[this.stack.length-1]=y}else{yield*this.lineEnd(i)}}}flowScalar(i){if(this.onNewLine){let i=this.source.indexOf("\n")+1;while(i!==0){this.onNewLine(this.offset+i);i=this.source.indexOf("\n",i)+1}}return{type:i,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(i){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const g=getPrevProps(i);const f=getFirstKeyStartProps(g);f.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const g=getPrevProps(i);const f=getFirstKeyStartProps(g);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(i,g){if(this.type!=="comment")return false;if(this.indent<=g)return false;return i.every((i=>i.type==="newline"||i.type==="space"))}*documentEnd(i){if(this.type!=="doc-mode"){if(i.end)i.end.push(this.sourceToken);else i.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(i){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(i.end)i.end.push(this.sourceToken);else i.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}g.Parser=Parser},4047:(i,g,f)=>{var E=f(9984);var p=f(3021);var y=f(1464);var b=f(7249);var S=f(1127);var J=f(6628);var Z=f(3456);function parseOptions(i){const g=i.prettyErrors!==false;const f=i.lineCounter||g&&new J.LineCounter||null;return{lineCounter:f,prettyErrors:g}}function parseAllDocuments(i,g={}){const{lineCounter:f,prettyErrors:p}=parseOptions(g);const b=new Z.Parser(f?.addNewLine);const S=new E.Composer(g);const J=Array.from(S.compose(b.parse(i)));if(p&&f)for(const g of J){g.errors.forEach(y.prettifyError(i,f));g.warnings.forEach(y.prettifyError(i,f))}if(J.length>0)return J;return Object.assign([],{empty:true},S.streamInfo())}function parseDocument(i,g={}){const{lineCounter:f,prettyErrors:p}=parseOptions(g);const b=new Z.Parser(f?.addNewLine);const S=new E.Composer(g);let J=null;for(const g of S.compose(b.parse(i),true,i.length)){if(!J)J=g;else if(J.options.logLevel!=="silent"){J.errors.push(new y.YAMLParseError(g.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(p&&f){J.errors.forEach(y.prettifyError(i,f));J.warnings.forEach(y.prettifyError(i,f))}return J}function parse(i,g,f){let E=undefined;if(typeof g==="function"){E=g}else if(f===undefined&&g&&typeof g==="object"){f=g}const p=parseDocument(i,f);if(!p)return null;p.warnings.forEach((i=>b.warn(p.options.logLevel,i)));if(p.errors.length>0){if(p.options.logLevel!=="silent")throw p.errors[0];else p.errors=[]}return p.toJS(Object.assign({reviver:E},f))}function stringify(i,g,f){let E=null;if(typeof g==="function"||Array.isArray(g)){E=g}else if(f===undefined&&g){f=g}if(typeof f==="string")f=f.length;if(typeof f==="number"){const i=Math.round(f);f=i<1?undefined:i>8?{indent:8}:{indent:i}}if(i===undefined){const{keepUndefined:i}=f??g??{};if(!i)return undefined}if(S.isDocument(i)&&!E)return i.toString(f);return new p.Document(i,E,f).toString(f)}g.parse=parse;g.parseAllDocuments=parseAllDocuments;g.parseDocument=parseDocument;g.stringify=stringify},5840:(i,g,f)=>{var E=f(1127);var p=f(7451);var y=f(1706);var b=f(6464);var S=f(18);const sortMapEntriesByKey=(i,g)=>i.key<g.key?-1:i.key>g.key?1:0;class Schema{constructor({compat:i,customTags:g,merge:f,resolveKnownTags:J,schema:Z,sortMapEntries:$,toStringDefaults:z}){this.compat=Array.isArray(i)?S.getTags(i,"compat"):i?S.getTags(null,i):null;this.name=typeof Z==="string"&&Z||"core";this.knownTags=J?S.coreKnownTags:{};this.tags=S.getTags(g,this.name,f);this.toStringOptions=z??null;Object.defineProperty(this,E.MAP,{value:p.map});Object.defineProperty(this,E.SCALAR,{value:b.string});Object.defineProperty(this,E.SEQ,{value:y.seq});this.sortMapEntries=typeof $==="function"?$:$===true?sortMapEntriesByKey:null}clone(){const i=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));i.tags=this.tags.slice();return i}}g.Schema=Schema},7451:(i,g,f)=>{var E=f(1127);var p=f(4454);const y={collection:"map",default:true,nodeClass:p.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(i,g){if(!E.isMap(i))g("Expected a mapping for this tag");return i},createNode:(i,g,f)=>p.YAMLMap.from(i,g,f)};g.map=y},3632:(i,g,f)=>{var E=f(3301);const p={identify:i=>i==null,createNode:()=>new E.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new E.Scalar(null),stringify:({source:i},g)=>typeof i==="string"&&p.test.test(i)?i:g.options.nullStr};g.nullTag=p},1706:(i,g,f)=>{var E=f(1127);var p=f(2223);const y={collection:"seq",default:true,nodeClass:p.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(i,g){if(!E.isSeq(i))g("Expected a sequence for this tag");return i},createNode:(i,g,f)=>p.YAMLSeq.from(i,g,f)};g.seq=y},6464:(i,g,f)=>{var E=f(3069);const p={identify:i=>typeof i==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify(i,g,f,p){g=Object.assign({actualString:true},g);return E.stringifyString(i,g,f,p)}};g.string=p},3959:(i,g,f)=>{var E=f(3301);const p={identify:i=>typeof i==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:i=>new E.Scalar(i[0]==="t"||i[0]==="T"),stringify({source:i,value:g},f){if(i&&p.test.test(i)){const f=i[0]==="t"||i[0]==="T";if(g===f)return i}return g?f.options.trueStr:f.options.falseStr}};g.boolTag=p},8405:(i,g,f)=>{var E=f(3301);var p=f(8689);const y={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:p.stringifyNumber};const b={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i),stringify(i){const g=Number(i.value);return isFinite(g)?g.toExponential():p.stringifyNumber(i)}};const S={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(i){const g=new E.Scalar(parseFloat(i));const f=i.indexOf(".");if(f!==-1&&i[i.length-1]==="0")g.minFractionDigits=i.length-f-1;return g},stringify:p.stringifyNumber};g.float=S;g.floatExp=b;g.floatNaN=y},9874:(i,g,f)=>{var E=f(8689);const intIdentify=i=>typeof i==="bigint"||Number.isInteger(i);const intResolve=(i,g,f,{intAsBigInt:E})=>E?BigInt(i):parseInt(i.substring(g),f);function intStringify(i,g,f){const{value:p}=i;if(intIdentify(p)&&p>=0)return f+p.toString(g);return E.stringifyNumber(i)}const p={identify:i=>intIdentify(i)&&i>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(i,g,f)=>intResolve(i,2,8,f),stringify:i=>intStringify(i,8,"0o")};const y={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(i,g,f)=>intResolve(i,0,10,f),stringify:E.stringifyNumber};const b={identify:i=>intIdentify(i)&&i>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(i,g,f)=>intResolve(i,2,16,f),stringify:i=>intStringify(i,16,"0x")};g.int=y;g.intHex=b;g.intOct=p},896:(i,g,f)=>{var E=f(7451);var p=f(3632);var y=f(1706);var b=f(6464);var S=f(3959);var J=f(8405);var Z=f(9874);const $=[E.map,y.seq,b.string,p.nullTag,S.boolTag,Z.intOct,Z.int,Z.intHex,J.floatNaN,J.floatExp,J.float];g.schema=$},3559:(i,g,f)=>{var E=f(3301);var p=f(7451);var y=f(1706);function intIdentify(i){return typeof i==="bigint"||Number.isInteger(i)}const stringifyJSON=({value:i})=>JSON.stringify(i);const b=[{identify:i=>typeof i==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify:stringifyJSON},{identify:i=>i==null,createNode:()=>new E.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:i=>typeof i==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:i=>i==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(i,g,{intAsBigInt:f})=>f?BigInt(i):parseInt(i,10),stringify:({value:i})=>intIdentify(i)?i.toString():JSON.stringify(i)},{identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:i=>parseFloat(i),stringify:stringifyJSON}];const S={default:true,tag:"",test:/^/,resolve(i,g){g(`Unresolved plain scalar ${JSON.stringify(i)}`);return i}};const J=[p.map,y.seq].concat(b,S);g.schema=J},18:(i,g,f)=>{var E=f(7451);var p=f(3632);var y=f(1706);var b=f(6464);var S=f(3959);var J=f(8405);var Z=f(9874);var $=f(896);var z=f(3559);var ee=f(6083);var re=f(452);var Pe=f(303);var $t=f(8385);var tn=f(8294);var sn=f(1528);var nn=f(4371);const rn=new Map([["core",$.schema],["failsafe",[E.map,y.seq,b.string]],["json",z.schema],["yaml11",tn.schema],["yaml-1.1",tn.schema]]);const An={binary:ee.binary,bool:S.boolTag,float:J.float,floatExp:J.floatExp,floatNaN:J.floatNaN,floatTime:nn.floatTime,int:Z.int,intHex:Z.intHex,intOct:Z.intOct,intTime:nn.intTime,map:E.map,merge:re.merge,null:p.nullTag,omap:Pe.omap,pairs:$t.pairs,seq:y.seq,set:sn.set,timestamp:nn.timestamp};const on={"tag:yaml.org,2002:binary":ee.binary,"tag:yaml.org,2002:merge":re.merge,"tag:yaml.org,2002:omap":Pe.omap,"tag:yaml.org,2002:pairs":$t.pairs,"tag:yaml.org,2002:set":sn.set,"tag:yaml.org,2002:timestamp":nn.timestamp};function getTags(i,g,f){const E=rn.get(g);if(E&&!i){return f&&!E.includes(re.merge)?E.concat(re.merge):E.slice()}let p=E;if(!p){if(Array.isArray(i))p=[];else{const i=Array.from(rn.keys()).filter((i=>i!=="yaml11")).map((i=>JSON.stringify(i))).join(", ");throw new Error(`Unknown schema "${g}"; use one of ${i} or define customTags array`)}}if(Array.isArray(i)){for(const g of i)p=p.concat(g)}else if(typeof i==="function"){p=i(p.slice())}if(f)p=p.concat(re.merge);return p.reduce(((i,g)=>{const f=typeof g==="string"?An[g]:g;if(!f){const i=JSON.stringify(g);const f=Object.keys(An).map((i=>JSON.stringify(i))).join(", ");throw new Error(`Unknown custom tag ${i}; use one of ${f}`)}if(!i.includes(f))i.push(f);return i}),[])}g.coreKnownTags=on;g.getTags=getTags},6083:(i,g,f)=>{var E=f(181);var p=f(3301);var y=f(3069);const b={identify:i=>i instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(i,g){if(typeof E.Buffer==="function"){return E.Buffer.from(i,"base64")}else if(typeof atob==="function"){const g=atob(i.replace(/[\n\r]/g,""));const f=new Uint8Array(g.length);for(let i=0;i<g.length;++i)f[i]=g.charCodeAt(i);return f}else{g("This environment does not support reading binary tags; either Buffer or atob is required");return i}},stringify({comment:i,type:g,value:f},b,S,J){if(!f)return"";const Z=f;let $;if(typeof E.Buffer==="function"){$=Z instanceof E.Buffer?Z.toString("base64"):E.Buffer.from(Z.buffer).toString("base64")}else if(typeof btoa==="function"){let i="";for(let g=0;g<Z.length;++g)i+=String.fromCharCode(Z[g]);$=btoa(i)}else{throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required")}g??(g=p.Scalar.BLOCK_LITERAL);if(g!==p.Scalar.QUOTE_DOUBLE){const i=Math.max(b.options.lineWidth-b.indent.length,b.options.minContentWidth);const f=Math.ceil($.length/i);const E=new Array(f);for(let g=0,p=0;g<f;++g,p+=i){E[g]=$.substr(p,i)}$=E.join(g===p.Scalar.BLOCK_LITERAL?"\n":" ")}return y.stringifyString({comment:i,type:g,value:$},b,S,J)}};g.binary=b},8398:(i,g,f)=>{var E=f(3301);function boolStringify({value:i,source:g},f){const E=i?p:y;if(g&&E.test.test(g))return g;return i?f.options.trueStr:f.options.falseStr}const p={identify:i=>i===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new E.Scalar(true),stringify:boolStringify};const y={identify:i=>i===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new E.Scalar(false),stringify:boolStringify};g.falseTag=y;g.trueTag=p},5782:(i,g,f)=>{var E=f(3301);var p=f(8689);const y={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:p.stringifyNumber};const b={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i.replace(/_/g,"")),stringify(i){const g=Number(i.value);return isFinite(g)?g.toExponential():p.stringifyNumber(i)}};const S={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(i){const g=new E.Scalar(parseFloat(i.replace(/_/g,"")));const f=i.indexOf(".");if(f!==-1){const E=i.substring(f+1).replace(/_/g,"");if(E[E.length-1]==="0")g.minFractionDigits=E.length}return g},stringify:p.stringifyNumber};g.float=S;g.floatExp=b;g.floatNaN=y},873:(i,g,f)=>{var E=f(8689);const intIdentify=i=>typeof i==="bigint"||Number.isInteger(i);function intResolve(i,g,f,{intAsBigInt:E}){const p=i[0];if(p==="-"||p==="+")g+=1;i=i.substring(g).replace(/_/g,"");if(E){switch(f){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}const g=BigInt(i);return p==="-"?BigInt(-1)*g:g}const y=parseInt(i,f);return p==="-"?-1*y:y}function intStringify(i,g,f){const{value:p}=i;if(intIdentify(p)){const i=p.toString(g);return p<0?"-"+f+i.substr(1):f+i}return E.stringifyNumber(i)}const p={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(i,g,f)=>intResolve(i,2,2,f),stringify:i=>intStringify(i,2,"0b")};const y={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(i,g,f)=>intResolve(i,1,8,f),stringify:i=>intStringify(i,8,"0")};const b={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(i,g,f)=>intResolve(i,0,10,f),stringify:E.stringifyNumber};const S={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(i,g,f)=>intResolve(i,2,16,f),stringify:i=>intStringify(i,16,"0x")};g.int=b;g.intBin=p;g.intHex=S;g.intOct=y},452:(i,g,f)=>{var E=f(1127);var p=f(3301);const y="<<";const b={identify:i=>i===y||typeof i==="symbol"&&i.description===y,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new p.Scalar(Symbol(y)),{addToJSMap:addMergeToJSMap}),stringify:()=>y};const isMergeKey=(i,g)=>(b.identify(g)||E.isScalar(g)&&(!g.type||g.type===p.Scalar.PLAIN)&&b.identify(g.value))&&i?.doc.schema.tags.some((i=>i.tag===b.tag&&i.default));function addMergeToJSMap(i,g,f){f=i&&E.isAlias(f)?f.resolve(i.doc):f;if(E.isSeq(f))for(const E of f.items)mergeValue(i,g,E);else if(Array.isArray(f))for(const E of f)mergeValue(i,g,E);else mergeValue(i,g,f)}function mergeValue(i,g,f){const p=i&&E.isAlias(f)?f.resolve(i.doc):f;if(!E.isMap(p))throw new Error("Merge sources must be maps or map aliases");const y=p.toJSON(null,i,Map);for(const[i,f]of y){if(g instanceof Map){if(!g.has(i))g.set(i,f)}else if(g instanceof Set){g.add(i)}else if(!Object.prototype.hasOwnProperty.call(g,i)){Object.defineProperty(g,i,{value:f,writable:true,enumerable:true,configurable:true})}}return g}g.addMergeToJSMap=addMergeToJSMap;g.isMergeKey=isMergeKey;g.merge=b},303:(i,g,f)=>{var E=f(1127);var p=f(6424);var y=f(4454);var b=f(2223);var S=f(8385);class YAMLOMap extends b.YAMLSeq{constructor(){super();this.add=y.YAMLMap.prototype.add.bind(this);this.delete=y.YAMLMap.prototype.delete.bind(this);this.get=y.YAMLMap.prototype.get.bind(this);this.has=y.YAMLMap.prototype.has.bind(this);this.set=y.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(i,g){if(!g)return super.toJSON(i);const f=new Map;if(g?.onCreate)g.onCreate(f);for(const i of this.items){let y,b;if(E.isPair(i)){y=p.toJS(i.key,"",g);b=p.toJS(i.value,y,g)}else{y=p.toJS(i,"",g)}if(f.has(y))throw new Error("Ordered maps must not include duplicate keys");f.set(y,b)}return f}static from(i,g,f){const E=S.createPairs(i,g,f);const p=new this;p.items=E.items;return p}}YAMLOMap.tag="tag:yaml.org,2002:omap";const J={collection:"seq",identify:i=>i instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(i,g){const f=S.resolvePairs(i,g);const p=[];for(const{key:i}of f.items){if(E.isScalar(i)){if(p.includes(i.value)){g(`Ordered maps must not include duplicate keys: ${i.value}`)}else{p.push(i.value)}}}return Object.assign(new YAMLOMap,f)},createNode:(i,g,f)=>YAMLOMap.from(i,g,f)};g.YAMLOMap=YAMLOMap;g.omap=J},8385:(i,g,f)=>{var E=f(1127);var p=f(7165);var y=f(3301);var b=f(2223);function resolvePairs(i,g){if(E.isSeq(i)){for(let f=0;f<i.items.length;++f){let b=i.items[f];if(E.isPair(b))continue;else if(E.isMap(b)){if(b.items.length>1)g("Each pair must have its own sequence indicator");const i=b.items[0]||new p.Pair(new y.Scalar(null));if(b.commentBefore)i.key.commentBefore=i.key.commentBefore?`${b.commentBefore}\n${i.key.commentBefore}`:b.commentBefore;if(b.comment){const g=i.value??i.key;g.comment=g.comment?`${b.comment}\n${g.comment}`:b.comment}b=i}i.items[f]=E.isPair(b)?b:new p.Pair(b)}}else g("Expected a sequence for this tag");return i}function createPairs(i,g,f){const{replacer:E}=f;const y=new b.YAMLSeq(i);y.tag="tag:yaml.org,2002:pairs";let S=0;if(g&&Symbol.iterator in Object(g))for(let i of g){if(typeof E==="function")i=E.call(g,String(S++),i);let b,J;if(Array.isArray(i)){if(i.length===2){b=i[0];J=i[1]}else throw new TypeError(`Expected [key, value] tuple: ${i}`)}else if(i&&i instanceof Object){const g=Object.keys(i);if(g.length===1){b=g[0];J=i[b]}else{throw new TypeError(`Expected tuple with one key, not ${g.length} keys`)}}else{b=i}y.items.push(p.createPair(b,J,f))}return y}const S={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};g.createPairs=createPairs;g.pairs=S;g.resolvePairs=resolvePairs},8294:(i,g,f)=>{var E=f(7451);var p=f(3632);var y=f(1706);var b=f(6464);var S=f(6083);var J=f(8398);var Z=f(5782);var $=f(873);var z=f(452);var ee=f(303);var re=f(8385);var Pe=f(1528);var $t=f(4371);const tn=[E.map,y.seq,b.string,p.nullTag,J.trueTag,J.falseTag,$.intBin,$.intOct,$.int,$.intHex,Z.floatNaN,Z.floatExp,Z.float,S.binary,z.merge,ee.omap,re.pairs,Pe.set,$t.intTime,$t.floatTime,$t.timestamp];g.schema=tn},1528:(i,g,f)=>{var E=f(1127);var p=f(7165);var y=f(4454);class YAMLSet extends y.YAMLMap{constructor(i){super(i);this.tag=YAMLSet.tag}add(i){let g;if(E.isPair(i))g=i;else if(i&&typeof i==="object"&&"key"in i&&"value"in i&&i.value===null)g=new p.Pair(i.key,null);else g=new p.Pair(i,null);const f=y.findPair(this.items,g.key);if(!f)this.items.push(g)}get(i,g){const f=y.findPair(this.items,i);return!g&&E.isPair(f)?E.isScalar(f.key)?f.key.value:f.key:f}set(i,g){if(typeof g!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof g}`);const f=y.findPair(this.items,i);if(f&&!g){this.items.splice(this.items.indexOf(f),1)}else if(!f&&g){this.items.push(new p.Pair(i))}}toJSON(i,g){return super.toJSON(i,g,Set)}toString(i,g,f){if(!i)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},i,{allNullValues:true}),g,f);else throw new Error("Set items must all have null values")}static from(i,g,f){const{replacer:E}=f;const y=new this(i);if(g&&Symbol.iterator in Object(g))for(let i of g){if(typeof E==="function")i=E.call(g,i,i);y.items.push(p.createPair(i,null,f))}return y}}YAMLSet.tag="tag:yaml.org,2002:set";const b={collection:"map",identify:i=>i instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(i,g,f)=>YAMLSet.from(i,g,f),resolve(i,g){if(E.isMap(i)){if(i.hasAllNullValues(true))return Object.assign(new YAMLSet,i);else g("Set items must all have null values")}else g("Expected a mapping for this tag");return i}};g.YAMLSet=YAMLSet;g.set=b},4371:(i,g,f)=>{var E=f(8689);function parseSexagesimal(i,g){const f=i[0];const E=f==="-"||f==="+"?i.substring(1):i;const num=i=>g?BigInt(i):Number(i);const p=E.replace(/_/g,"").split(":").reduce(((i,g)=>i*num(60)+num(g)),num(0));return f==="-"?num(-1)*p:p}function stringifySexagesimal(i){let{value:g}=i;let num=i=>i;if(typeof g==="bigint")num=i=>BigInt(i);else if(isNaN(g)||!isFinite(g))return E.stringifyNumber(i);let f="";if(g<0){f="-";g*=num(-1)}const p=num(60);const y=[g%p];if(g<60){y.unshift(0)}else{g=(g-y[0])/p;y.unshift(g%p);if(g>=60){g=(g-y[0])/p;y.unshift(g)}}return f+y.map((i=>String(i).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const p={identify:i=>typeof i==="bigint"||Number.isInteger(i),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(i,g,{intAsBigInt:f})=>parseSexagesimal(i,f),stringify:stringifySexagesimal};const y={identify:i=>typeof i==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:i=>parseSexagesimal(i,false),stringify:stringifySexagesimal};const b={identify:i=>i instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(i){const g=i.match(b.test);if(!g)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,f,E,p,y,S,J]=g.map(Number);const Z=g[7]?Number((g[7]+"00").substr(1,3)):0;let $=Date.UTC(f,E-1,p,y||0,S||0,J||0,Z);const z=g[8];if(z&&z!=="Z"){let i=parseSexagesimal(z,false);if(Math.abs(i)<30)i*=60;$-=6e4*i}return new Date($)},stringify:({value:i})=>i?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};g.floatTime=y;g.intTime=p;g.timestamp=b},4475:(i,g)=>{const f="flow";const E="block";const p="quoted";function foldFlowLines(i,g,f="flow",{indentAtStart:y,lineWidth:b=80,minContentWidth:S=20,onFold:J,onOverflow:Z}={}){if(!b||b<0)return i;if(b<S)S=0;const $=Math.max(1+S,1+b-g.length);if(i.length<=$)return i;const z=[];const ee={};let re=b-g.length;if(typeof y==="number"){if(y>b-Math.max(2,S))z.push(0);else re=b-y}let Pe=undefined;let $t=undefined;let tn=false;let sn=-1;let nn=-1;let rn=-1;if(f===E){sn=consumeMoreIndentedLines(i,sn,g.length);if(sn!==-1)re=sn+$}for(let y;y=i[sn+=1];){if(f===p&&y==="\\"){nn=sn;switch(i[sn+1]){case"x":sn+=3;break;case"u":sn+=5;break;case"U":sn+=9;break;default:sn+=1}rn=sn}if(y==="\n"){if(f===E)sn=consumeMoreIndentedLines(i,sn,g.length);re=sn+g.length+$;Pe=undefined}else{if(y===" "&&$t&&$t!==" "&&$t!=="\n"&&$t!=="\t"){const g=i[sn+1];if(g&&g!==" "&&g!=="\n"&&g!=="\t")Pe=sn}if(sn>=re){if(Pe){z.push(Pe);re=Pe+$;Pe=undefined}else if(f===p){while($t===" "||$t==="\t"){$t=y;y=i[sn+=1];tn=true}const g=sn>rn+1?sn-2:nn-1;if(ee[g])return i;z.push(g);ee[g]=true;re=g+$;Pe=undefined}else{tn=true}}}$t=y}if(tn&&Z)Z();if(z.length===0)return i;if(J)J();let An=i.slice(0,z[0]);for(let E=0;E<z.length;++E){const y=z[E];const b=z[E+1]||i.length;if(y===0)An=`\n${g}${i.slice(0,b)}`;else{if(f===p&&ee[y])An+=`${i[y]}\\`;An+=`\n${g}${i.slice(y+1,b)}`}}return An}function consumeMoreIndentedLines(i,g,f){let E=g;let p=g+1;let y=i[p];while(y===" "||y==="\t"){if(g<p+f){y=i[++g]}else{do{y=i[++g]}while(y&&y!=="\n");E=g;p=g+1;y=i[p]}}return E}g.FOLD_BLOCK=E;g.FOLD_FLOW=f;g.FOLD_QUOTED=p;g.foldFlowLines=foldFlowLines},2148:(i,g,f)=>{var E=f(1596);var p=f(1127);var y=f(9799);var b=f(3069);function createStringifyContext(i,g){const f=Object.assign({blockQuote:true,commentString:y.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},i.schema.toStringOptions,g);let E;switch(f.collectionStyle){case"block":E=false;break;case"flow":E=true;break;default:E=null}return{anchors:new Set,doc:i,flowCollectionPadding:f.flowCollectionPadding?" ":"",indent:"",indentStep:typeof f.indent==="number"?" ".repeat(f.indent):" ",inFlow:E,options:f}}function getTagObject(i,g){if(g.tag){const f=i.filter((i=>i.tag===g.tag));if(f.length>0)return f.find((i=>i.format===g.format))??f[0]}let f=undefined;let E;if(p.isScalar(g)){E=g.value;let p=i.filter((i=>i.identify?.(E)));if(p.length>1){const i=p.filter((i=>i.test));if(i.length>0)p=i}f=p.find((i=>i.format===g.format))??p.find((i=>!i.format))}else{E=g;f=i.find((i=>i.nodeClass&&E instanceof i.nodeClass))}if(!f){const i=E?.constructor?.name??(E===null?"null":typeof E);throw new Error(`Tag not resolved for ${i} value`)}return f}function stringifyProps(i,g,{anchors:f,doc:y}){if(!y.directives)return"";const b=[];const S=(p.isScalar(i)||p.isCollection(i))&&i.anchor;if(S&&E.anchorIsValid(S)){f.add(S);b.push(`&${S}`)}const J=i.tag??(g.default?null:g.tag);if(J)b.push(y.directives.tagString(J));return b.join(" ")}function stringify(i,g,f,E){if(p.isPair(i))return i.toString(g,f,E);if(p.isAlias(i)){if(g.doc.directives)return i.toString(g);if(g.resolvedAliases?.has(i)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(g.resolvedAliases)g.resolvedAliases.add(i);else g.resolvedAliases=new Set([i]);i=i.resolve(g.doc)}}let y=undefined;const S=p.isNode(i)?i:g.doc.createNode(i,{onTagObj:i=>y=i});y??(y=getTagObject(g.doc.schema.tags,S));const J=stringifyProps(S,y,g);if(J.length>0)g.indentAtStart=(g.indentAtStart??0)+J.length+1;const Z=typeof y.stringify==="function"?y.stringify(S,g,f,E):p.isScalar(S)?b.stringifyString(S,g,f,E):S.toString(g,f,E);if(!J)return Z;return p.isScalar(S)||Z[0]==="{"||Z[0]==="["?`${J} ${Z}`:`${J}\n${g.indent}${Z}`}g.createStringifyContext=createStringifyContext;g.stringify=stringify},1212:(i,g,f)=>{var E=f(1127);var p=f(2148);var y=f(9799);function stringifyCollection(i,g,f){const E=g.inFlow??i.flow;const p=E?stringifyFlowCollection:stringifyBlockCollection;return p(i,g,f)}function stringifyBlockCollection({comment:i,items:g},f,{blockItemPrefix:b,flowChars:S,itemIndent:J,onChompKeep:Z,onComment:$}){const{indent:z,options:{commentString:ee}}=f;const re=Object.assign({},f,{indent:J,type:null});let Pe=false;const $t=[];for(let i=0;i<g.length;++i){const S=g[i];let Z=null;if(E.isNode(S)){if(!Pe&&S.spaceBefore)$t.push("");addCommentBefore(f,$t,S.commentBefore,Pe);if(S.comment)Z=S.comment}else if(E.isPair(S)){const i=E.isNode(S.key)?S.key:null;if(i){if(!Pe&&i.spaceBefore)$t.push("");addCommentBefore(f,$t,i.commentBefore,Pe)}}Pe=false;let $=p.stringify(S,re,(()=>Z=null),(()=>Pe=true));if(Z)$+=y.lineComment($,J,ee(Z));if(Pe&&Z)Pe=false;$t.push(b+$)}let tn;if($t.length===0){tn=S.start+S.end}else{tn=$t[0];for(let i=1;i<$t.length;++i){const g=$t[i];tn+=g?`\n${z}${g}`:"\n"}}if(i){tn+="\n"+y.indentComment(ee(i),z);if($)$()}else if(Pe&&Z)Z();return tn}function stringifyFlowCollection({items:i},g,{flowChars:f,itemIndent:b}){const{indent:S,indentStep:J,flowCollectionPadding:Z,options:{commentString:$}}=g;b+=J;const z=Object.assign({},g,{indent:b,inFlow:true,type:null});let ee=false;let re=0;const Pe=[];for(let f=0;f<i.length;++f){const S=i[f];let J=null;if(E.isNode(S)){if(S.spaceBefore)Pe.push("");addCommentBefore(g,Pe,S.commentBefore,false);if(S.comment)J=S.comment}else if(E.isPair(S)){const i=E.isNode(S.key)?S.key:null;if(i){if(i.spaceBefore)Pe.push("");addCommentBefore(g,Pe,i.commentBefore,false);if(i.comment)ee=true}const f=E.isNode(S.value)?S.value:null;if(f){if(f.comment)J=f.comment;if(f.commentBefore)ee=true}else if(S.value==null&&i?.comment){J=i.comment}}if(J)ee=true;let Z=p.stringify(S,z,(()=>J=null));if(f<i.length-1)Z+=",";if(J)Z+=y.lineComment(Z,b,$(J));if(!ee&&(Pe.length>re||Z.includes("\n")))ee=true;Pe.push(Z);re=Pe.length}const{start:$t,end:tn}=f;if(Pe.length===0){return $t+tn}else{if(!ee){const i=Pe.reduce(((i,g)=>i+g.length+2),2);ee=g.options.lineWidth>0&&i>g.options.lineWidth}if(ee){let i=$t;for(const g of Pe)i+=g?`\n${J}${S}${g}`:"\n";return`${i}\n${S}${tn}`}else{return`${$t}${Z}${Pe.join(" ")}${Z}${tn}`}}}function addCommentBefore({indent:i,options:{commentString:g}},f,E,p){if(E&&p)E=E.replace(/^\n+/,"");if(E){const p=y.indentComment(g(E),i);f.push(p.trimStart())}}g.stringifyCollection=stringifyCollection},9799:(i,g)=>{const stringifyComment=i=>i.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(i,g){if(/^\n+$/.test(i))return i.substring(1);return g?i.replace(/^(?! *$)/gm,g):i}const lineComment=(i,g,f)=>i.endsWith("\n")?indentComment(f,g):f.includes("\n")?"\n"+indentComment(f,g):(i.endsWith(" ")?"":" ")+f;g.indentComment=indentComment;g.lineComment=lineComment;g.stringifyComment=stringifyComment},6829:(i,g,f)=>{var E=f(1127);var p=f(2148);var y=f(9799);function stringifyDocument(i,g){const f=[];let b=g.directives===true;if(g.directives!==false&&i.directives){const g=i.directives.toString(i);if(g){f.push(g);b=true}else if(i.directives.docStart)b=true}if(b)f.push("---");const S=p.createStringifyContext(i,g);const{commentString:J}=S.options;if(i.commentBefore){if(f.length!==1)f.unshift("");const g=J(i.commentBefore);f.unshift(y.indentComment(g,""))}let Z=false;let $=null;if(i.contents){if(E.isNode(i.contents)){if(i.contents.spaceBefore&&b)f.push("");if(i.contents.commentBefore){const g=J(i.contents.commentBefore);f.push(y.indentComment(g,""))}S.forceBlockIndent=!!i.comment;$=i.contents.comment}const g=$?undefined:()=>Z=true;let z=p.stringify(i.contents,S,(()=>$=null),g);if($)z+=y.lineComment(z,"",J($));if((z[0]==="|"||z[0]===">")&&f[f.length-1]==="---"){f[f.length-1]=`--- ${z}`}else f.push(z)}else{f.push(p.stringify(i.contents,S))}if(i.directives?.docEnd){if(i.comment){const g=J(i.comment);if(g.includes("\n")){f.push("...");f.push(y.indentComment(g,""))}else{f.push(`... ${g}`)}}else{f.push("...")}}else{let g=i.comment;if(g&&Z)g=g.replace(/^\n+/,"");if(g){if((!Z||$)&&f[f.length-1]!=="")f.push("");f.push(y.indentComment(J(g),""))}}return f.join("\n")+"\n"}g.stringifyDocument=stringifyDocument},8689:(i,g)=>{function stringifyNumber({format:i,minFractionDigits:g,tag:f,value:E}){if(typeof E==="bigint")return String(E);const p=typeof E==="number"?E:Number(E);if(!isFinite(p))return isNaN(p)?".nan":p<0?"-.inf":".inf";let y=Object.is(E,-0)?"-0":JSON.stringify(E);if(!i&&g&&(!f||f==="tag:yaml.org,2002:float")&&/^\d/.test(y)){let i=y.indexOf(".");if(i<0){i=y.length;y+="."}let f=g-(y.length-i-1);while(f-- >0)y+="0"}return y}g.stringifyNumber=stringifyNumber},9748:(i,g,f)=>{var E=f(1127);var p=f(3301);var y=f(2148);var b=f(9799);function stringifyPair({key:i,value:g},f,S,J){const{allNullValues:Z,doc:$,indent:z,indentStep:ee,options:{commentString:re,indentSeq:Pe,simpleKeys:$t}}=f;let tn=E.isNode(i)&&i.comment||null;if($t){if(tn){throw new Error("With simple keys, key nodes cannot have comments")}if(E.isCollection(i)||!E.isNode(i)&&typeof i==="object"){const i="With simple keys, collection cannot be used as a key value";throw new Error(i)}}let sn=!$t&&(!i||tn&&g==null&&!f.inFlow||E.isCollection(i)||(E.isScalar(i)?i.type===p.Scalar.BLOCK_FOLDED||i.type===p.Scalar.BLOCK_LITERAL:typeof i==="object"));f=Object.assign({},f,{allNullValues:false,implicitKey:!sn&&($t||!Z),indent:z+ee});let nn=false;let rn=false;let An=y.stringify(i,f,(()=>nn=true),(()=>rn=true));if(!sn&&!f.inFlow&&An.length>1024){if($t)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");sn=true}if(f.inFlow){if(Z||g==null){if(nn&&S)S();return An===""?"?":sn?`? ${An}`:An}}else if(Z&&!$t||g==null&&sn){An=`? ${An}`;if(tn&&!nn){An+=b.lineComment(An,f.indent,re(tn))}else if(rn&&J)J();return An}if(nn)tn=null;if(sn){if(tn)An+=b.lineComment(An,f.indent,re(tn));An=`? ${An}\n${z}:`}else{An=`${An}:`;if(tn)An+=b.lineComment(An,f.indent,re(tn))}let on,an,cn;if(E.isNode(g)){on=!!g.spaceBefore;an=g.commentBefore;cn=g.comment}else{on=false;an=null;cn=null;if(g&&typeof g==="object")g=$.createNode(g)}f.implicitKey=false;if(!sn&&!tn&&E.isScalar(g))f.indentAtStart=An.length+1;rn=false;if(!Pe&&ee.length>=2&&!f.inFlow&&!sn&&E.isSeq(g)&&!g.flow&&!g.tag&&!g.anchor){f.indent=f.indent.substring(2)}let ln=false;const un=y.stringify(g,f,(()=>ln=true),(()=>rn=true));let hn=" ";if(tn||on||an){hn=on?"\n":"";if(an){const i=re(an);hn+=`\n${b.indentComment(i,f.indent)}`}if(un===""&&!f.inFlow){if(hn==="\n"&&cn)hn="\n\n"}else{hn+=`\n${f.indent}`}}else if(!sn&&E.isCollection(g)){const i=un[0];const E=un.indexOf("\n");const p=E!==-1;const y=f.inFlow??g.flow??g.items.length===0;if(p||!y){let g=false;if(p&&(i==="&"||i==="!")){let f=un.indexOf(" ");if(i==="&"&&f!==-1&&f<E&&un[f+1]==="!"){f=un.indexOf(" ",f+1)}if(f===-1||E<f)g=true}if(!g)hn=`\n${f.indent}`}}else if(un===""||un[0]==="\n"){hn=""}An+=hn+un;if(f.inFlow){if(ln&&S)S()}else if(cn&&!ln){An+=b.lineComment(An,f.indent,re(cn))}else if(rn&&J){J()}return An}g.stringifyPair=stringifyPair},3069:(i,g,f)=>{var E=f(3301);var p=f(4475);const getFoldOptions=(i,g)=>({indentAtStart:g?i.indent.length:i.indentAtStart,lineWidth:i.options.lineWidth,minContentWidth:i.options.minContentWidth});const containsDocumentMarker=i=>/^(%|---|\.\.\.)/m.test(i);function lineLengthOverLimit(i,g,f){if(!g||g<0)return false;const E=g-f;const p=i.length;if(p<=E)return false;for(let g=0,f=0;g<p;++g){if(i[g]==="\n"){if(g-f>E)return true;f=g+1;if(p-f<=E)return false}}return true}function doubleQuotedString(i,g){const f=JSON.stringify(i);if(g.options.doubleQuotedAsJSON)return f;const{implicitKey:E}=g;const y=g.options.doubleQuotedMinMultiLineLength;const b=g.indent||(containsDocumentMarker(i)?" ":"");let S="";let J=0;for(let i=0,g=f[i];g;g=f[++i]){if(g===" "&&f[i+1]==="\\"&&f[i+2]==="n"){S+=f.slice(J,i)+"\\ ";i+=1;J=i;g="\\"}if(g==="\\")switch(f[i+1]){case"u":{S+=f.slice(J,i);const g=f.substr(i+2,4);switch(g){case"0000":S+="\\0";break;case"0007":S+="\\a";break;case"000b":S+="\\v";break;case"001b":S+="\\e";break;case"0085":S+="\\N";break;case"00a0":S+="\\_";break;case"2028":S+="\\L";break;case"2029":S+="\\P";break;default:if(g.substr(0,2)==="00")S+="\\x"+g.substr(2);else S+=f.substr(i,6)}i+=5;J=i+1}break;case"n":if(E||f[i+2]==='"'||f.length<y){i+=1}else{S+=f.slice(J,i)+"\n\n";while(f[i+2]==="\\"&&f[i+3]==="n"&&f[i+4]!=='"'){S+="\n";i+=2}S+=b;if(f[i+2]===" ")S+="\\";i+=1;J=i+1}break;default:i+=1}}S=J?S+f.slice(J):f;return E?S:p.foldFlowLines(S,b,p.FOLD_QUOTED,getFoldOptions(g,false))}function singleQuotedString(i,g){if(g.options.singleQuote===false||g.implicitKey&&i.includes("\n")||/[ \t]\n|\n[ \t]/.test(i))return doubleQuotedString(i,g);const f=g.indent||(containsDocumentMarker(i)?" ":"");const E="'"+i.replace(/'/g,"''").replace(/\n+/g,`$&\n${f}`)+"'";return g.implicitKey?E:p.foldFlowLines(E,f,p.FOLD_FLOW,getFoldOptions(g,false))}function quotedString(i,g){const{singleQuote:f}=g.options;let E;if(f===false)E=doubleQuotedString;else{const g=i.includes('"');const p=i.includes("'");if(g&&!p)E=singleQuotedString;else if(p&&!g)E=doubleQuotedString;else E=f?singleQuotedString:doubleQuotedString}return E(i,g)}let y;try{y=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{y=/\n+(?!\n|$)/g}function blockString({comment:i,type:g,value:f},b,S,J){const{blockQuote:Z,commentString:$,lineWidth:z}=b.options;if(!Z||/\n[\t ]+$/.test(f)){return quotedString(f,b)}const ee=b.indent||(b.forceBlockIndent||containsDocumentMarker(f)?" ":"");const re=Z==="literal"?true:Z==="folded"||g===E.Scalar.BLOCK_FOLDED?false:g===E.Scalar.BLOCK_LITERAL?true:!lineLengthOverLimit(f,z,ee.length);if(!f)return re?"|\n":">\n";let Pe;let $t;for($t=f.length;$t>0;--$t){const i=f[$t-1];if(i!=="\n"&&i!=="\t"&&i!==" ")break}let tn=f.substring($t);const sn=tn.indexOf("\n");if(sn===-1){Pe="-"}else if(f===tn||sn!==tn.length-1){Pe="+";if(J)J()}else{Pe=""}if(tn){f=f.slice(0,-tn.length);if(tn[tn.length-1]==="\n")tn=tn.slice(0,-1);tn=tn.replace(y,`$&${ee}`)}let nn=false;let rn;let An=-1;for(rn=0;rn<f.length;++rn){const i=f[rn];if(i===" ")nn=true;else if(i==="\n")An=rn;else break}let on=f.substring(0,An<rn?An+1:rn);if(on){f=f.substring(on.length);on=on.replace(/\n+/g,`$&${ee}`)}const an=ee?"2":"1";let cn=(nn?an:"")+Pe;if(i){cn+=" "+$(i.replace(/ ?[\r\n]+/g," "));if(S)S()}if(!re){const i=f.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${ee}`);let y=false;const S=getFoldOptions(b,true);if(Z!=="folded"&&g!==E.Scalar.BLOCK_FOLDED){S.onOverflow=()=>{y=true}}const J=p.foldFlowLines(`${on}${i}${tn}`,ee,p.FOLD_BLOCK,S);if(!y)return`>${cn}\n${ee}${J}`}f=f.replace(/\n+/g,`$&${ee}`);return`|${cn}\n${ee}${on}${f}${tn}`}function plainString(i,g,f,y){const{type:b,value:S}=i;const{actualString:J,implicitKey:Z,indent:$,indentStep:z,inFlow:ee}=g;if(Z&&S.includes("\n")||ee&&/[[\]{},]/.test(S)){return quotedString(S,g)}if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(S)){return Z||ee||!S.includes("\n")?quotedString(S,g):blockString(i,g,f,y)}if(!Z&&!ee&&b!==E.Scalar.PLAIN&&S.includes("\n")){return blockString(i,g,f,y)}if(containsDocumentMarker(S)){if($===""){g.forceBlockIndent=true;return blockString(i,g,f,y)}else if(Z&&$===z){return quotedString(S,g)}}const re=S.replace(/\n+/g,`$&\n${$}`);if(J){const test=i=>i.default&&i.tag!=="tag:yaml.org,2002:str"&&i.test?.test(re);const{compat:i,tags:f}=g.doc.schema;if(f.some(test)||i?.some(test))return quotedString(S,g)}return Z?re:p.foldFlowLines(re,$,p.FOLD_FLOW,getFoldOptions(g,false))}function stringifyString(i,g,f,p){const{implicitKey:y,inFlow:b}=g;const S=typeof i.value==="string"?i:Object.assign({},i,{value:String(i.value)});let{type:J}=i;if(J!==E.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(S.value))J=E.Scalar.QUOTE_DOUBLE}const _stringify=i=>{switch(i){case E.Scalar.BLOCK_FOLDED:case E.Scalar.BLOCK_LITERAL:return y||b?quotedString(S.value,g):blockString(S,g,f,p);case E.Scalar.QUOTE_DOUBLE:return doubleQuotedString(S.value,g);case E.Scalar.QUOTE_SINGLE:return singleQuotedString(S.value,g);case E.Scalar.PLAIN:return plainString(S,g,f,p);default:return null}};let Z=_stringify(J);if(Z===null){const{defaultKeyType:i,defaultStringType:f}=g.options;const E=y&&i||f;Z=_stringify(E);if(Z===null)throw new Error(`Unsupported default string type ${E}`)}return Z}g.stringifyString=stringifyString},204:(i,g,f)=>{var E=f(1127);const p=Symbol("break visit");const y=Symbol("skip children");const b=Symbol("remove node");function visit(i,g){const f=initVisitor(g);if(E.isDocument(i)){const g=visit_(null,i.contents,f,Object.freeze([i]));if(g===b)i.contents=null}else visit_(null,i,f,Object.freeze([]))}visit.BREAK=p;visit.SKIP=y;visit.REMOVE=b;function visit_(i,g,f,y){const S=callVisitor(i,g,f,y);if(E.isNode(S)||E.isPair(S)){replaceNode(i,y,S);return visit_(i,S,f,y)}if(typeof S!=="symbol"){if(E.isCollection(g)){y=Object.freeze(y.concat(g));for(let i=0;i<g.items.length;++i){const E=visit_(i,g.items[i],f,y);if(typeof E==="number")i=E-1;else if(E===p)return p;else if(E===b){g.items.splice(i,1);i-=1}}}else if(E.isPair(g)){y=Object.freeze(y.concat(g));const i=visit_("key",g.key,f,y);if(i===p)return p;else if(i===b)g.key=null;const E=visit_("value",g.value,f,y);if(E===p)return p;else if(E===b)g.value=null}}return S}async function visitAsync(i,g){const f=initVisitor(g);if(E.isDocument(i)){const g=await visitAsync_(null,i.contents,f,Object.freeze([i]));if(g===b)i.contents=null}else await visitAsync_(null,i,f,Object.freeze([]))}visitAsync.BREAK=p;visitAsync.SKIP=y;visitAsync.REMOVE=b;async function visitAsync_(i,g,f,y){const S=await callVisitor(i,g,f,y);if(E.isNode(S)||E.isPair(S)){replaceNode(i,y,S);return visitAsync_(i,S,f,y)}if(typeof S!=="symbol"){if(E.isCollection(g)){y=Object.freeze(y.concat(g));for(let i=0;i<g.items.length;++i){const E=await visitAsync_(i,g.items[i],f,y);if(typeof E==="number")i=E-1;else if(E===p)return p;else if(E===b){g.items.splice(i,1);i-=1}}}else if(E.isPair(g)){y=Object.freeze(y.concat(g));const i=await visitAsync_("key",g.key,f,y);if(i===p)return p;else if(i===b)g.key=null;const E=await visitAsync_("value",g.value,f,y);if(E===p)return p;else if(E===b)g.value=null}}return S}function initVisitor(i){if(typeof i==="object"&&(i.Collection||i.Node||i.Value)){return Object.assign({Alias:i.Node,Map:i.Node,Scalar:i.Node,Seq:i.Node},i.Value&&{Map:i.Value,Scalar:i.Value,Seq:i.Value},i.Collection&&{Map:i.Collection,Seq:i.Collection},i)}return i}function callVisitor(i,g,f,p){if(typeof f==="function")return f(i,g,p);if(E.isMap(g))return f.Map?.(i,g,p);if(E.isSeq(g))return f.Seq?.(i,g,p);if(E.isPair(g))return f.Pair?.(i,g,p);if(E.isScalar(g))return f.Scalar?.(i,g,p);if(E.isAlias(g))return f.Alias?.(i,g,p);return undefined}function replaceNode(i,g,f){const p=g[g.length-1];if(E.isCollection(p)){p.items[i]=f}else if(E.isPair(p)){if(i==="key")p.key=f;else p.value=f}else if(E.isDocument(p)){p.contents=f}else{const i=E.isAlias(p)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}g.visit=visit;g.visitAsync=visitAsync}};var __webpack_module_cache__={};function __nccwpck_require__(i){var g=__webpack_module_cache__[i];if(g!==undefined){return g.exports}var f=__webpack_module_cache__[i]={exports:{}};var E=true;try{__webpack_modules__[i].call(f.exports,f,f.exports,__nccwpck_require__);E=false}finally{if(E)delete __webpack_module_cache__[i]}return f.exports}(()=>{__nccwpck_require__.n=i=>{var g=i&&i.__esModule?()=>i["default"]:()=>i;__nccwpck_require__.d(g,{a:g});return g}})();(()=>{var i=Object.getPrototypeOf?i=>Object.getPrototypeOf(i):i=>i.__proto__;var g;__nccwpck_require__.t=function(f,E){if(E&1)f=this(f);if(E&8)return f;if(typeof f==="object"&&f){if(E&4&&f.__esModule)return f;if(E&16&&typeof f.then==="function")return f}var p=Object.create(null);__nccwpck_require__.r(p);var y={};g=g||[null,i({}),i([]),i(i)];for(var b=E&2&&f;typeof b=="object"&&!~g.indexOf(b);b=i(b)){Object.getOwnPropertyNames(b).forEach((i=>y[i]=()=>f[i]))}y["default"]=()=>f;__nccwpck_require__.d(p,y);return p}})();(()=>{__nccwpck_require__.d=(i,g)=>{for(var f in g){if(__nccwpck_require__.o(g,f)&&!__nccwpck_require__.o(i,f)){Object.defineProperty(i,f,{enumerable:true,get:g[f]})}}}})();(()=>{__nccwpck_require__.o=(i,g)=>Object.prototype.hasOwnProperty.call(i,g)})();(()=>{__nccwpck_require__.r=i=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(i,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var __webpack_exports__={};var core=__nccwpck_require__(7484);var external_path_=__nccwpck_require__(6928);const promises_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs/promises");const ANSI_BACKGROUND_OFFSET=10;const wrapAnsi16=(i=0)=>g=>`[${g+i}m`;const wrapAnsi256=(i=0)=>g=>`[${38+i};5;${g}m`;const wrapAnsi16m=(i=0)=>(g,f,E)=>`[${38+i};2;${g};${f};${E}m`;const styles={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};const modifierNames=Object.keys(styles.modifier);const foregroundColorNames=Object.keys(styles.color);const backgroundColorNames=Object.keys(styles.bgColor);const colorNames=[...foregroundColorNames,...backgroundColorNames];function assembleStyles(){const i=new Map;for(const[g,f]of Object.entries(styles)){for(const[g,E]of Object.entries(f)){styles[g]={open:`[${E[0]}m`,close:`[${E[1]}m`};f[g]=styles[g];i.set(E[0],E[1])}Object.defineProperty(styles,g,{value:f,enumerable:false})}Object.defineProperty(styles,"codes",{value:i,enumerable:false});styles.color.close="";styles.bgColor.close="";styles.color.ansi=wrapAnsi16();styles.color.ansi256=wrapAnsi256();styles.color.ansi16m=wrapAnsi16m();styles.bgColor.ansi=wrapAnsi16(ANSI_BACKGROUND_OFFSET);styles.bgColor.ansi256=wrapAnsi256(ANSI_BACKGROUND_OFFSET);styles.bgColor.ansi16m=wrapAnsi16m(ANSI_BACKGROUND_OFFSET);Object.defineProperties(styles,{rgbToAnsi256:{value(i,g,f){if(i===g&&g===f){if(i<8){return 16}if(i>248){return 231}return Math.round((i-8)/247*24)+232}return 16+36*Math.round(i/255*5)+6*Math.round(g/255*5)+Math.round(f/255*5)},enumerable:false},hexToRgb:{value(i){const g=/[a-f\d]{6}|[a-f\d]{3}/i.exec(i.toString(16));if(!g){return[0,0,0]}let[f]=g;if(f.length===3){f=[...f].map((i=>i+i)).join("")}const E=Number.parseInt(f,16);return[E>>16&255,E>>8&255,E&255]},enumerable:false},hexToAnsi256:{value:i=>styles.rgbToAnsi256(...styles.hexToRgb(i)),enumerable:false},ansi256ToAnsi:{value(i){if(i<8){return 30+i}if(i<16){return 90+(i-8)}let g;let f;let E;if(i>=232){g=((i-232)*10+8)/255;f=g;E=g}else{i-=16;const p=i%36;g=Math.floor(i/36)/5;f=Math.floor(p/6)/5;E=p%6/5}const p=Math.max(g,f,E)*2;if(p===0){return 30}let y=30+(Math.round(E)<<2|Math.round(f)<<1|Math.round(g));if(p===2){y+=60}return y},enumerable:false},rgbToAnsi:{value:(i,g,f)=>styles.ansi256ToAnsi(styles.rgbToAnsi256(i,g,f)),enumerable:false},hexToAnsi:{value:i=>styles.ansi256ToAnsi(styles.hexToAnsi256(i)),enumerable:false}});return styles}const ansiStyles=assembleStyles();const ansi_styles=ansiStyles;const external_node_process_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process");const external_node_os_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:os");const external_node_tty_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:tty");function hasFlag(i,g=(globalThis.Deno?globalThis.Deno.args:external_node_process_namespaceObject.argv)){const f=i.startsWith("-")?"":i.length===1?"-":"--";const E=g.indexOf(f+i);const p=g.indexOf("--");return E!==-1&&(p===-1||E<p)}const{env:env}=external_node_process_namespaceObject;let flagForceColor;if(hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")){flagForceColor=0}else if(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always")){flagForceColor=1}function envForceColor(){if("FORCE_COLOR"in env){if(env.FORCE_COLOR==="true"){return 1}if(env.FORCE_COLOR==="false"){return 0}return env.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(env.FORCE_COLOR,10),3)}}function translateLevel(i){if(i===0){return false}return{level:i,hasBasic:true,has256:i>=2,has16m:i>=3}}function _supportsColor(i,{streamIsTTY:g,sniffFlags:f=true}={}){const E=envForceColor();if(E!==undefined){flagForceColor=E}const p=f?flagForceColor:E;if(p===0){return 0}if(f){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor")){return 3}if(hasFlag("color=256")){return 2}}if("TF_BUILD"in env&&"AGENT_NAME"in env){return 1}if(i&&!g&&p===undefined){return 0}const y=p||0;if(env.TERM==="dumb"){return y}if(external_node_process_namespaceObject.platform==="win32"){const i=external_node_os_namespaceObject.release().split(".");if(Number(i[0])>=10&&Number(i[2])>=10586){return Number(i[2])>=14931?3:2}return 1}if("CI"in env){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((i=>i in env))){return 3}if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((i=>i in env))||env.CI_NAME==="codeship"){return 1}return y}if("TEAMCITY_VERSION"in env){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION)?1:0}if(env.COLORTERM==="truecolor"){return 3}if(env.TERM==="xterm-kitty"){return 3}if(env.TERM==="xterm-ghostty"){return 3}if(env.TERM==="wezterm"){return 3}if("TERM_PROGRAM"in env){const i=Number.parseInt((env.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(env.TERM_PROGRAM){case"iTerm.app":{return i>=3?3:2}case"Apple_Terminal":{return 2}}}if(/-256(color)?$/i.test(env.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)){return 1}if("COLORTERM"in env){return 1}return y}function createSupportsColor(i,g={}){const f=_supportsColor(i,{streamIsTTY:i&&i.isTTY,...g});return translateLevel(f)}const supportsColor={stdout:createSupportsColor({isTTY:external_node_tty_namespaceObject.isatty(1)}),stderr:createSupportsColor({isTTY:external_node_tty_namespaceObject.isatty(2)})};const supports_color=supportsColor;function stringReplaceAll(i,g,f){let E=i.indexOf(g);if(E===-1){return i}const p=g.length;let y=0;let b="";do{b+=i.slice(y,E)+g+f;y=E+p;E=i.indexOf(g,y)}while(E!==-1);b+=i.slice(y);return b}function stringEncaseCRLFWithFirstIndex(i,g,f,E){let p=0;let y="";do{const b=i[E-1]==="\r";y+=i.slice(p,b?E-1:E)+g+(b?"\r\n":"\n")+f;p=E+1;E=i.indexOf("\n",p)}while(E!==-1);y+=i.slice(p);return y}const{stdout:stdoutColor,stderr:stderrColor}=supports_color;const GENERATOR=Symbol("GENERATOR");const STYLER=Symbol("STYLER");const IS_EMPTY=Symbol("IS_EMPTY");const levelMapping=["ansi","ansi","ansi256","ansi16m"];const source_styles=Object.create(null);const applyOptions=(i,g={})=>{if(g.level&&!(Number.isInteger(g.level)&&g.level>=0&&g.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const f=stdoutColor?stdoutColor.level:0;i.level=g.level===undefined?f:g.level};class Chalk{constructor(i){return chalkFactory(i)}}const chalkFactory=i=>{const chalk=(...i)=>i.join(" ");applyOptions(chalk,i);Object.setPrototypeOf(chalk,createChalk.prototype);return chalk};function createChalk(i){return chalkFactory(i)}Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[i,g]of Object.entries(ansi_styles)){source_styles[i]={get(){const f=createBuilder(this,createStyler(g.open,g.close,this[STYLER]),this[IS_EMPTY]);Object.defineProperty(this,i,{value:f});return f}}}source_styles.visible={get(){const i=createBuilder(this,this[STYLER],true);Object.defineProperty(this,"visible",{value:i});return i}};const getModelAnsi=(i,g,f,...E)=>{if(i==="rgb"){if(g==="ansi16m"){return ansi_styles[f].ansi16m(...E)}if(g==="ansi256"){return ansi_styles[f].ansi256(ansi_styles.rgbToAnsi256(...E))}return ansi_styles[f].ansi(ansi_styles.rgbToAnsi(...E))}if(i==="hex"){return getModelAnsi("rgb",g,f,...ansi_styles.hexToRgb(...E))}return ansi_styles[f][i](...E)};const usedModels=["rgb","hex","ansi256"];for(const i of usedModels){source_styles[i]={get(){const{level:g}=this;return function(...f){const E=createStyler(getModelAnsi(i,levelMapping[g],"color",...f),ansi_styles.color.close,this[STYLER]);return createBuilder(this,E,this[IS_EMPTY])}}};const g="bg"+i[0].toUpperCase()+i.slice(1);source_styles[g]={get(){const{level:g}=this;return function(...f){const E=createStyler(getModelAnsi(i,levelMapping[g],"bgColor",...f),ansi_styles.bgColor.close,this[STYLER]);return createBuilder(this,E,this[IS_EMPTY])}}}}const proto=Object.defineProperties((()=>{}),{...source_styles,level:{enumerable:true,get(){return this[GENERATOR].level},set(i){this[GENERATOR].level=i}}});const createStyler=(i,g,f)=>{let E;let p;if(f===undefined){E=i;p=g}else{E=f.openAll+i;p=g+f.closeAll}return{open:i,close:g,openAll:E,closeAll:p,parent:f}};const createBuilder=(i,g,f)=>{const builder=(...i)=>applyStyle(builder,i.length===1?""+i[0]:i.join(" "));Object.setPrototypeOf(builder,proto);builder[GENERATOR]=i;builder[STYLER]=g;builder[IS_EMPTY]=f;return builder};const applyStyle=(i,g)=>{if(i.level<=0||!g){return i[IS_EMPTY]?"":g}let f=i[STYLER];if(f===undefined){return g}const{openAll:E,closeAll:p}=f;if(g.includes("")){while(f!==undefined){g=stringReplaceAll(g,f.close,f.open);f=f.parent}}const y=g.indexOf("\n");if(y!==-1){g=stringEncaseCRLFWithFirstIndex(g,p,E,y)}return E+g+p};Object.defineProperties(createChalk.prototype,source_styles);const chalk=createChalk();const chalkStderr=createChalk({level:stderrColor?stderrColor.level:0});const source=chalk;class Logger{silent=false;verbose=false;prefix="";configure(i){if(i.silent!==undefined)this.silent=i.silent;if(i.verbose!==undefined)this.verbose=i.verbose;if(i.prefix!==undefined)this.prefix=i.prefix}formatMessage(i){return this.prefix?`${this.prefix} ${i}`:i}debug(i,...g){if(this.silent||!this.verbose)return;console.log(source.gray(`[DEBUG] ${this.formatMessage(i)}`),...g)}info(i,...g){if(this.silent)return;console.log(source.blue("ℹ"),this.formatMessage(i),...g)}success(i,...g){if(this.silent)return;console.log(source.green("✓"),this.formatMessage(i),...g)}warn(i,...g){if(this.silent)return;console.log(source.yellow("⚠"),this.formatMessage(i),...g)}error(i,...g){console.error(source.red("✗"),this.formatMessage(i),...g)}header(i){if(this.silent)return;console.log();console.log(source.bold.cyan(`━━━ ${i} ━━━`));console.log()}subheader(i){if(this.silent)return;console.log();console.log(source.bold(i))}list(i,g=0){if(this.silent)return;const f=" ".repeat(g);i.forEach((i=>{console.log(`${f}• ${i}`)}))}table(i,g){if(this.silent)return;const f=i.map(((i,f)=>Math.max(i.length,...g.map((i=>(i[f]??"").length)))));const E=f.map((i=>"─".repeat(i+2))).join("┼");const p=i.map(((i,g)=>` ${i.padEnd(f[g]??0)} `)).join("│");console.log(source.gray(`┌${E.replace(/┼/g,"┬")}┐`));console.log(source.bold(`│${p}│`));console.log(source.gray(`├${E}┤`));g.forEach((i=>{const g=i.map(((i,g)=>` ${(i??"").padEnd(f[g]??0)} `)).join("│");console.log(`│${g}│`)}));console.log(source.gray(`└${E.replace(/┼/g,"┴")}┘`))}progress(i,g,f){if(this.silent)return;const E=Math.round(i/g*100);const p=30;const y=Math.round(i/g*p);const b=p-y;const S=source.green("█".repeat(y))+source.gray("░".repeat(b));const J=f?` ${f}`:"";process.stdout.write(`\r${S} ${E}%${J}`);if(i===g)console.log()}newline(){if(this.silent)return;console.log()}emoji={docs:"📚",check:"✅",cross:"❌",warn:"⚠️",info:"ℹ️",search:"🔍",stats:"📊",fix:"🔧",link:"🔗",folder:"📁",file:"📄",clock:"⏱️",sparkles:"✨"}}const logger=new Logger;const utils_logger=null&&logger;var external_fs_=__nccwpck_require__(9896);var util;(function(i){i.assertEqual=i=>{};function assertIs(i){}i.assertIs=assertIs;function assertNever(i){throw new Error}i.assertNever=assertNever;i.arrayToEnum=i=>{const g={};for(const f of i){g[f]=f}return g};i.getValidEnumValues=g=>{const f=i.objectKeys(g).filter((i=>typeof g[g[i]]!=="number"));const E={};for(const i of f){E[i]=g[i]}return i.objectValues(E)};i.objectValues=g=>i.objectKeys(g).map((function(i){return g[i]}));i.objectKeys=typeof Object.keys==="function"?i=>Object.keys(i):i=>{const g=[];for(const f in i){if(Object.prototype.hasOwnProperty.call(i,f)){g.push(f)}}return g};i.find=(i,g)=>{for(const f of i){if(g(f))return f}return undefined};i.isInteger=typeof Number.isInteger==="function"?i=>Number.isInteger(i):i=>typeof i==="number"&&Number.isFinite(i)&&Math.floor(i)===i;function joinValues(i,g=" | "){return i.map((i=>typeof i==="string"?`'${i}'`:i)).join(g)}i.joinValues=joinValues;i.jsonStringifyReplacer=(i,g)=>{if(typeof g==="bigint"){return g.toString()}return g}})(util||(util={}));var objectUtil;(function(i){i.mergeShapes=(i,g)=>({...i,...g})})(objectUtil||(objectUtil={}));const ZodParsedType=util.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);const getParsedType=i=>{const g=typeof i;switch(g){case"undefined":return ZodParsedType.undefined;case"string":return ZodParsedType.string;case"number":return Number.isNaN(i)?ZodParsedType.nan:ZodParsedType.number;case"boolean":return ZodParsedType.boolean;case"function":return ZodParsedType.function;case"bigint":return ZodParsedType.bigint;case"symbol":return ZodParsedType.symbol;case"object":if(Array.isArray(i)){return ZodParsedType.array}if(i===null){return ZodParsedType.null}if(i.then&&typeof i.then==="function"&&i.catch&&typeof i.catch==="function"){return ZodParsedType.promise}if(typeof Map!=="undefined"&&i instanceof Map){return ZodParsedType.map}if(typeof Set!=="undefined"&&i instanceof Set){return ZodParsedType.set}if(typeof Date!=="undefined"&&i instanceof Date){return ZodParsedType.date}return ZodParsedType.object;default:return ZodParsedType.unknown}};const ZodIssueCode=util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);const quotelessJson=i=>{const g=JSON.stringify(i,null,2);return g.replace(/"([^"]+)":/g,"$1:")};class ZodError extends Error{get errors(){return this.issues}constructor(i){super();this.issues=[];this.addIssue=i=>{this.issues=[...this.issues,i]};this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const g=new.target.prototype;if(Object.setPrototypeOf){Object.setPrototypeOf(this,g)}else{this.__proto__=g}this.name="ZodError";this.issues=i}format(i){const g=i||function(i){return i.message};const f={_errors:[]};const processError=i=>{for(const E of i.issues){if(E.code==="invalid_union"){E.unionErrors.map(processError)}else if(E.code==="invalid_return_type"){processError(E.returnTypeError)}else if(E.code==="invalid_arguments"){processError(E.argumentsError)}else if(E.path.length===0){f._errors.push(g(E))}else{let i=f;let p=0;while(p<E.path.length){const f=E.path[p];const y=p===E.path.length-1;if(!y){i[f]=i[f]||{_errors:[]}}else{i[f]=i[f]||{_errors:[]};i[f]._errors.push(g(E))}i=i[f];p++}}}};processError(this);return f}static assert(i){if(!(i instanceof ZodError)){throw new Error(`Not a ZodError: ${i}`)}}toString(){return this.message}get message(){return JSON.stringify(this.issues,util.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(i=i=>i.message){const g={};const f=[];for(const E of this.issues){if(E.path.length>0){const f=E.path[0];g[f]=g[f]||[];g[f].push(i(E))}else{f.push(i(E))}}return{formErrors:f,fieldErrors:g}}get formErrors(){return this.flatten()}}ZodError.create=i=>{const g=new ZodError(i);return g};const errorMap=(i,g)=>{let f;switch(i.code){case ZodIssueCode.invalid_type:if(i.received===ZodParsedType.undefined){f="Required"}else{f=`Expected ${i.expected}, received ${i.received}`}break;case ZodIssueCode.invalid_literal:f=`Invalid literal value, expected ${JSON.stringify(i.expected,util.jsonStringifyReplacer)}`;break;case ZodIssueCode.unrecognized_keys:f=`Unrecognized key(s) in object: ${util.joinValues(i.keys,", ")}`;break;case ZodIssueCode.invalid_union:f=`Invalid input`;break;case ZodIssueCode.invalid_union_discriminator:f=`Invalid discriminator value. Expected ${util.joinValues(i.options)}`;break;case ZodIssueCode.invalid_enum_value:f=`Invalid enum value. Expected ${util.joinValues(i.options)}, received '${i.received}'`;break;case ZodIssueCode.invalid_arguments:f=`Invalid function arguments`;break;case ZodIssueCode.invalid_return_type:f=`Invalid function return type`;break;case ZodIssueCode.invalid_date:f=`Invalid date`;break;case ZodIssueCode.invalid_string:if(typeof i.validation==="object"){if("includes"in i.validation){f=`Invalid input: must include "${i.validation.includes}"`;if(typeof i.validation.position==="number"){f=`${f} at one or more positions greater than or equal to ${i.validation.position}`}}else if("startsWith"in i.validation){f=`Invalid input: must start with "${i.validation.startsWith}"`}else if("endsWith"in i.validation){f=`Invalid input: must end with "${i.validation.endsWith}"`}else{util.assertNever(i.validation)}}else if(i.validation!=="regex"){f=`Invalid ${i.validation}`}else{f="Invalid"}break;case ZodIssueCode.too_small:if(i.type==="array")f=`Array must contain ${i.exact?"exactly":i.inclusive?`at least`:`more than`} ${i.minimum} element(s)`;else if(i.type==="string")f=`String must contain ${i.exact?"exactly":i.inclusive?`at least`:`over`} ${i.minimum} character(s)`;else if(i.type==="number")f=`Number must be ${i.exact?`exactly equal to `:i.inclusive?`greater than or equal to `:`greater than `}${i.minimum}`;else if(i.type==="bigint")f=`Number must be ${i.exact?`exactly equal to `:i.inclusive?`greater than or equal to `:`greater than `}${i.minimum}`;else if(i.type==="date")f=`Date must be ${i.exact?`exactly equal to `:i.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(i.minimum))}`;else f="Invalid input";break;case ZodIssueCode.too_big:if(i.type==="array")f=`Array must contain ${i.exact?`exactly`:i.inclusive?`at most`:`less than`} ${i.maximum} element(s)`;else if(i.type==="string")f=`String must contain ${i.exact?`exactly`:i.inclusive?`at most`:`under`} ${i.maximum} character(s)`;else if(i.type==="number")f=`Number must be ${i.exact?`exactly`:i.inclusive?`less than or equal to`:`less than`} ${i.maximum}`;else if(i.type==="bigint")f=`BigInt must be ${i.exact?`exactly`:i.inclusive?`less than or equal to`:`less than`} ${i.maximum}`;else if(i.type==="date")f=`Date must be ${i.exact?`exactly`:i.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(i.maximum))}`;else f="Invalid input";break;case ZodIssueCode.custom:f=`Invalid input`;break;case ZodIssueCode.invalid_intersection_types:f=`Intersection results could not be merged`;break;case ZodIssueCode.not_multiple_of:f=`Number must be a multiple of ${i.multipleOf}`;break;case ZodIssueCode.not_finite:f="Number must be finite";break;default:f=g.defaultError;util.assertNever(i)}return{message:f}};const en=errorMap;let overrideErrorMap=en;function setErrorMap(i){overrideErrorMap=i}function getErrorMap(){return overrideErrorMap}var errorUtil;(function(i){i.errToObj=i=>typeof i==="string"?{message:i}:i||{};i.toString=i=>typeof i==="string"?i:i?.message})(errorUtil||(errorUtil={}));const makeIssue=i=>{const{data:g,path:f,errorMaps:E,issueData:p}=i;const y=[...f,...p.path||[]];const b={...p,path:y};if(p.message!==undefined){return{...p,path:y,message:p.message}}let S="";const J=E.filter((i=>!!i)).slice().reverse();for(const i of J){S=i(b,{data:g,defaultError:S}).message}return{...p,path:y,message:S}};const EMPTY_PATH=null&&[];function addIssueToContext(i,g){const f=getErrorMap();const E=makeIssue({issueData:g,data:i.data,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,f,f===en?undefined:en].filter((i=>!!i))});i.common.issues.push(E)}class ParseStatus{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(i,g){const f=[];for(const E of g){if(E.status==="aborted")return parseUtil_INVALID;if(E.status==="dirty")i.dirty();f.push(E.value)}return{status:i.value,value:f}}static async mergeObjectAsync(i,g){const f=[];for(const i of g){const g=await i.key;const E=await i.value;f.push({key:g,value:E})}return ParseStatus.mergeObjectSync(i,f)}static mergeObjectSync(i,g){const f={};for(const E of g){const{key:g,value:p}=E;if(g.status==="aborted")return parseUtil_INVALID;if(p.status==="aborted")return parseUtil_INVALID;if(g.status==="dirty")i.dirty();if(p.status==="dirty")i.dirty();if(g.value!=="__proto__"&&(typeof p.value!=="undefined"||E.alwaysSet)){f[g.value]=p.value}}return{status:i.value,value:f}}}const parseUtil_INVALID=Object.freeze({status:"aborted"});const DIRTY=i=>({status:"dirty",value:i});const OK=i=>({status:"valid",value:i});const isAborted=i=>i.status==="aborted";const isDirty=i=>i.status==="dirty";const isValid=i=>i.status==="valid";const isAsync=i=>typeof Promise!=="undefined"&&i instanceof Promise;class ParseInputLazyPath{constructor(i,g,f,E){this._cachedPath=[];this.parent=i;this.data=g;this._path=f;this._key=E}get path(){if(!this._cachedPath.length){if(Array.isArray(this._key)){this._cachedPath.push(...this._path,...this._key)}else{this._cachedPath.push(...this._path,this._key)}}return this._cachedPath}}const handleResult=(i,g)=>{if(isValid(g)){return{success:true,data:g.value}}else{if(!i.common.issues.length){throw new Error("Validation failed but no issues detected.")}return{success:false,get error(){if(this._error)return this._error;const g=new ZodError(i.common.issues);this._error=g;return this._error}}}};function processCreateParams(i){if(!i)return{};const{errorMap:g,invalid_type_error:f,required_error:E,description:p}=i;if(g&&(f||E)){throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`)}if(g)return{errorMap:g,description:p};const customMap=(g,p)=>{const{message:y}=i;if(g.code==="invalid_enum_value"){return{message:y??p.defaultError}}if(typeof p.data==="undefined"){return{message:y??E??p.defaultError}}if(g.code!=="invalid_type")return{message:p.defaultError};return{message:y??f??p.defaultError}};return{errorMap:customMap,description:p}}class ZodType{get description(){return this._def.description}_getType(i){return getParsedType(i.data)}_getOrReturnCtx(i,g){return g||{common:i.parent.common,data:i.data,parsedType:getParsedType(i.data),schemaErrorMap:this._def.errorMap,path:i.path,parent:i.parent}}_processInputParams(i){return{status:new ParseStatus,ctx:{common:i.parent.common,data:i.data,parsedType:getParsedType(i.data),schemaErrorMap:this._def.errorMap,path:i.path,parent:i.parent}}}_parseSync(i){const g=this._parse(i);if(isAsync(g)){throw new Error("Synchronous parse encountered promise.")}return g}_parseAsync(i){const g=this._parse(i);return Promise.resolve(g)}parse(i,g){const f=this.safeParse(i,g);if(f.success)return f.data;throw f.error}safeParse(i,g){const f={common:{issues:[],async:g?.async??false,contextualErrorMap:g?.errorMap},path:g?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:getParsedType(i)};const E=this._parseSync({data:i,path:f.path,parent:f});return handleResult(f,E)}"~validate"(i){const g={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:getParsedType(i)};if(!this["~standard"].async){try{const f=this._parseSync({data:i,path:[],parent:g});return isValid(f)?{value:f.value}:{issues:g.common.issues}}catch(i){if(i?.message?.toLowerCase()?.includes("encountered")){this["~standard"].async=true}g.common={issues:[],async:true}}}return this._parseAsync({data:i,path:[],parent:g}).then((i=>isValid(i)?{value:i.value}:{issues:g.common.issues}))}async parseAsync(i,g){const f=await this.safeParseAsync(i,g);if(f.success)return f.data;throw f.error}async safeParseAsync(i,g){const f={common:{issues:[],contextualErrorMap:g?.errorMap,async:true},path:g?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:getParsedType(i)};const E=this._parse({data:i,path:f.path,parent:f});const p=await(isAsync(E)?E:Promise.resolve(E));return handleResult(f,p)}refine(i,g){const getIssueProperties=i=>{if(typeof g==="string"||typeof g==="undefined"){return{message:g}}else if(typeof g==="function"){return g(i)}else{return g}};return this._refinement(((g,f)=>{const E=i(g);const setError=()=>f.addIssue({code:ZodIssueCode.custom,...getIssueProperties(g)});if(typeof Promise!=="undefined"&&E instanceof Promise){return E.then((i=>{if(!i){setError();return false}else{return true}}))}if(!E){setError();return false}else{return true}}))}refinement(i,g){return this._refinement(((f,E)=>{if(!i(f)){E.addIssue(typeof g==="function"?g(f,E):g);return false}else{return true}}))}_refinement(i){return new ZodEffects({schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"refinement",refinement:i}})}superRefine(i){return this._refinement(i)}constructor(i){this.spa=this.safeParseAsync;this._def=i;this.parse=this.parse.bind(this);this.safeParse=this.safeParse.bind(this);this.parseAsync=this.parseAsync.bind(this);this.safeParseAsync=this.safeParseAsync.bind(this);this.spa=this.spa.bind(this);this.refine=this.refine.bind(this);this.refinement=this.refinement.bind(this);this.superRefine=this.superRefine.bind(this);this.optional=this.optional.bind(this);this.nullable=this.nullable.bind(this);this.nullish=this.nullish.bind(this);this.array=this.array.bind(this);this.promise=this.promise.bind(this);this.or=this.or.bind(this);this.and=this.and.bind(this);this.transform=this.transform.bind(this);this.brand=this.brand.bind(this);this.default=this.default.bind(this);this.catch=this.catch.bind(this);this.describe=this.describe.bind(this);this.pipe=this.pipe.bind(this);this.readonly=this.readonly.bind(this);this.isNullable=this.isNullable.bind(this);this.isOptional=this.isOptional.bind(this);this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this)}promise(){return ZodPromise.create(this,this._def)}or(i){return ZodUnion.create([this,i],this._def)}and(i){return ZodIntersection.create(this,i,this._def)}transform(i){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"transform",transform:i}})}default(i){const g=typeof i==="function"?i:()=>i;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:g,typeName:ZodFirstPartyTypeKind.ZodDefault})}brand(){return new ZodBranded({typeName:ZodFirstPartyTypeKind.ZodBranded,type:this,...processCreateParams(this._def)})}catch(i){const g=typeof i==="function"?i:()=>i;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:g,typeName:ZodFirstPartyTypeKind.ZodCatch})}describe(i){const g=this.constructor;return new g({...this._def,description:i})}pipe(i){return ZodPipeline.create(this,i)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(undefined).success}isNullable(){return this.safeParse(null).success}}const cuidRegex=/^c[^\s-]{8,}$/i;const cuid2Regex=/^[0-9a-z]+$/;const ulidRegex=/^[0-9A-HJKMNP-TV-Z]{26}$/i;const uuidRegex=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;const nanoidRegex=/^[a-z0-9_-]{21}$/i;const jwtRegex=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;const durationRegex=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;const emailRegex=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;const _emojiRegex=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;let emojiRegex;const ipv4Regex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;const ipv4CidrRegex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;const ipv6Regex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;const ipv6CidrRegex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;const base64Regex=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;const base64urlRegex=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;const dateRegexSource=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;const dateRegex=new RegExp(`^${dateRegexSource}$`);function timeRegexSource(i){let g=`[0-5]\\d`;if(i.precision){g=`${g}\\.\\d{${i.precision}}`}else if(i.precision==null){g=`${g}(\\.\\d+)?`}const f=i.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${g})${f}`}function timeRegex(i){return new RegExp(`^${timeRegexSource(i)}$`)}function datetimeRegex(i){let g=`${dateRegexSource}T${timeRegexSource(i)}`;const f=[];f.push(i.local?`Z?`:`Z`);if(i.offset)f.push(`([+-]\\d{2}:?\\d{2})`);g=`${g}(${f.join("|")})`;return new RegExp(`^${g}$`)}function isValidIP(i,g){if((g==="v4"||!g)&&ipv4Regex.test(i)){return true}if((g==="v6"||!g)&&ipv6Regex.test(i)){return true}return false}function isValidJWT(i,g){if(!jwtRegex.test(i))return false;try{const[f]=i.split(".");if(!f)return false;const E=f.replace(/-/g,"+").replace(/_/g,"/").padEnd(f.length+(4-f.length%4)%4,"=");const p=JSON.parse(atob(E));if(typeof p!=="object"||p===null)return false;if("typ"in p&&p?.typ!=="JWT")return false;if(!p.alg)return false;if(g&&p.alg!==g)return false;return true}catch{return false}}function isValidCidr(i,g){if((g==="v4"||!g)&&ipv4CidrRegex.test(i)){return true}if((g==="v6"||!g)&&ipv6CidrRegex.test(i)){return true}return false}class ZodString extends ZodType{_parse(i){if(this._def.coerce){i.data=String(i.data)}const g=this._getType(i);if(g!==ZodParsedType.string){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:g.parsedType});return parseUtil_INVALID}const f=new ParseStatus;let E=undefined;for(const g of this._def.checks){if(g.kind==="min"){if(i.data.length<g.value){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.too_small,minimum:g.value,type:"string",inclusive:true,exact:false,message:g.message});f.dirty()}}else if(g.kind==="max"){if(i.data.length>g.value){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.too_big,maximum:g.value,type:"string",inclusive:true,exact:false,message:g.message});f.dirty()}}else if(g.kind==="length"){const p=i.data.length>g.value;const y=i.data.length<g.value;if(p||y){E=this._getOrReturnCtx(i,E);if(p){addIssueToContext(E,{code:ZodIssueCode.too_big,maximum:g.value,type:"string",inclusive:true,exact:true,message:g.message})}else if(y){addIssueToContext(E,{code:ZodIssueCode.too_small,minimum:g.value,type:"string",inclusive:true,exact:true,message:g.message})}f.dirty()}}else if(g.kind==="email"){if(!emailRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"email",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="emoji"){if(!emojiRegex){emojiRegex=new RegExp(_emojiRegex,"u")}if(!emojiRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"emoji",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="uuid"){if(!uuidRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"uuid",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="nanoid"){if(!nanoidRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"nanoid",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="cuid"){if(!cuidRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"cuid",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="cuid2"){if(!cuid2Regex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"cuid2",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="ulid"){if(!ulidRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"ulid",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="url"){try{new URL(i.data)}catch{E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"url",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="regex"){g.regex.lastIndex=0;const p=g.regex.test(i.data);if(!p){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"regex",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="trim"){i.data=i.data.trim()}else if(g.kind==="includes"){if(!i.data.includes(g.value,g.position)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.invalid_string,validation:{includes:g.value,position:g.position},message:g.message});f.dirty()}}else if(g.kind==="toLowerCase"){i.data=i.data.toLowerCase()}else if(g.kind==="toUpperCase"){i.data=i.data.toUpperCase()}else if(g.kind==="startsWith"){if(!i.data.startsWith(g.value)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.invalid_string,validation:{startsWith:g.value},message:g.message});f.dirty()}}else if(g.kind==="endsWith"){if(!i.data.endsWith(g.value)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.invalid_string,validation:{endsWith:g.value},message:g.message});f.dirty()}}else if(g.kind==="datetime"){const p=datetimeRegex(g);if(!p.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.invalid_string,validation:"datetime",message:g.message});f.dirty()}}else if(g.kind==="date"){const p=dateRegex;if(!p.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.invalid_string,validation:"date",message:g.message});f.dirty()}}else if(g.kind==="time"){const p=timeRegex(g);if(!p.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.invalid_string,validation:"time",message:g.message});f.dirty()}}else if(g.kind==="duration"){if(!durationRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"duration",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="ip"){if(!isValidIP(i.data,g.version)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"ip",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="jwt"){if(!isValidJWT(i.data,g.alg)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"jwt",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="cidr"){if(!isValidCidr(i.data,g.version)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"cidr",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="base64"){if(!base64Regex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"base64",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else if(g.kind==="base64url"){if(!base64urlRegex.test(i.data)){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{validation:"base64url",code:ZodIssueCode.invalid_string,message:g.message});f.dirty()}}else{util.assertNever(g)}}return{status:f.value,value:i.data}}_regex(i,g,f){return this.refinement((g=>i.test(g)),{validation:g,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(f)})}_addCheck(i){return new ZodString({...this._def,checks:[...this._def.checks,i]})}email(i){return this._addCheck({kind:"email",...errorUtil.errToObj(i)})}url(i){return this._addCheck({kind:"url",...errorUtil.errToObj(i)})}emoji(i){return this._addCheck({kind:"emoji",...errorUtil.errToObj(i)})}uuid(i){return this._addCheck({kind:"uuid",...errorUtil.errToObj(i)})}nanoid(i){return this._addCheck({kind:"nanoid",...errorUtil.errToObj(i)})}cuid(i){return this._addCheck({kind:"cuid",...errorUtil.errToObj(i)})}cuid2(i){return this._addCheck({kind:"cuid2",...errorUtil.errToObj(i)})}ulid(i){return this._addCheck({kind:"ulid",...errorUtil.errToObj(i)})}base64(i){return this._addCheck({kind:"base64",...errorUtil.errToObj(i)})}base64url(i){return this._addCheck({kind:"base64url",...errorUtil.errToObj(i)})}jwt(i){return this._addCheck({kind:"jwt",...errorUtil.errToObj(i)})}ip(i){return this._addCheck({kind:"ip",...errorUtil.errToObj(i)})}cidr(i){return this._addCheck({kind:"cidr",...errorUtil.errToObj(i)})}datetime(i){if(typeof i==="string"){return this._addCheck({kind:"datetime",precision:null,offset:false,local:false,message:i})}return this._addCheck({kind:"datetime",precision:typeof i?.precision==="undefined"?null:i?.precision,offset:i?.offset??false,local:i?.local??false,...errorUtil.errToObj(i?.message)})}date(i){return this._addCheck({kind:"date",message:i})}time(i){if(typeof i==="string"){return this._addCheck({kind:"time",precision:null,message:i})}return this._addCheck({kind:"time",precision:typeof i?.precision==="undefined"?null:i?.precision,...errorUtil.errToObj(i?.message)})}duration(i){return this._addCheck({kind:"duration",...errorUtil.errToObj(i)})}regex(i,g){return this._addCheck({kind:"regex",regex:i,...errorUtil.errToObj(g)})}includes(i,g){return this._addCheck({kind:"includes",value:i,position:g?.position,...errorUtil.errToObj(g?.message)})}startsWith(i,g){return this._addCheck({kind:"startsWith",value:i,...errorUtil.errToObj(g)})}endsWith(i,g){return this._addCheck({kind:"endsWith",value:i,...errorUtil.errToObj(g)})}min(i,g){return this._addCheck({kind:"min",value:i,...errorUtil.errToObj(g)})}max(i,g){return this._addCheck({kind:"max",value:i,...errorUtil.errToObj(g)})}length(i,g){return this._addCheck({kind:"length",value:i,...errorUtil.errToObj(g)})}nonempty(i){return this.min(1,errorUtil.errToObj(i))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((i=>i.kind==="datetime"))}get isDate(){return!!this._def.checks.find((i=>i.kind==="date"))}get isTime(){return!!this._def.checks.find((i=>i.kind==="time"))}get isDuration(){return!!this._def.checks.find((i=>i.kind==="duration"))}get isEmail(){return!!this._def.checks.find((i=>i.kind==="email"))}get isURL(){return!!this._def.checks.find((i=>i.kind==="url"))}get isEmoji(){return!!this._def.checks.find((i=>i.kind==="emoji"))}get isUUID(){return!!this._def.checks.find((i=>i.kind==="uuid"))}get isNANOID(){return!!this._def.checks.find((i=>i.kind==="nanoid"))}get isCUID(){return!!this._def.checks.find((i=>i.kind==="cuid"))}get isCUID2(){return!!this._def.checks.find((i=>i.kind==="cuid2"))}get isULID(){return!!this._def.checks.find((i=>i.kind==="ulid"))}get isIP(){return!!this._def.checks.find((i=>i.kind==="ip"))}get isCIDR(){return!!this._def.checks.find((i=>i.kind==="cidr"))}get isBase64(){return!!this._def.checks.find((i=>i.kind==="base64"))}get isBase64url(){return!!this._def.checks.find((i=>i.kind==="base64url"))}get minLength(){let i=null;for(const g of this._def.checks){if(g.kind==="min"){if(i===null||g.value>i)i=g.value}}return i}get maxLength(){let i=null;for(const g of this._def.checks){if(g.kind==="max"){if(i===null||g.value<i)i=g.value}}return i}}ZodString.create=i=>new ZodString({checks:[],typeName:ZodFirstPartyTypeKind.ZodString,coerce:i?.coerce??false,...processCreateParams(i)});function floatSafeRemainder(i,g){const f=(i.toString().split(".")[1]||"").length;const E=(g.toString().split(".")[1]||"").length;const p=f>E?f:E;const y=Number.parseInt(i.toFixed(p).replace(".",""));const b=Number.parseInt(g.toFixed(p).replace(".",""));return y%b/10**p}class ZodNumber extends ZodType{constructor(){super(...arguments);this.min=this.gte;this.max=this.lte;this.step=this.multipleOf}_parse(i){if(this._def.coerce){i.data=Number(i.data)}const g=this._getType(i);if(g!==ZodParsedType.number){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:g.parsedType});return parseUtil_INVALID}let f=undefined;const E=new ParseStatus;for(const g of this._def.checks){if(g.kind==="int"){if(!util.isInteger(i.data)){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:"integer",received:"float",message:g.message});E.dirty()}}else if(g.kind==="min"){const p=g.inclusive?i.data<g.value:i.data<=g.value;if(p){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.too_small,minimum:g.value,type:"number",inclusive:g.inclusive,exact:false,message:g.message});E.dirty()}}else if(g.kind==="max"){const p=g.inclusive?i.data>g.value:i.data>=g.value;if(p){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.too_big,maximum:g.value,type:"number",inclusive:g.inclusive,exact:false,message:g.message});E.dirty()}}else if(g.kind==="multipleOf"){if(floatSafeRemainder(i.data,g.value)!==0){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.not_multiple_of,multipleOf:g.value,message:g.message});E.dirty()}}else if(g.kind==="finite"){if(!Number.isFinite(i.data)){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.not_finite,message:g.message});E.dirty()}}else{util.assertNever(g)}}return{status:E.value,value:i.data}}gte(i,g){return this.setLimit("min",i,true,errorUtil.toString(g))}gt(i,g){return this.setLimit("min",i,false,errorUtil.toString(g))}lte(i,g){return this.setLimit("max",i,true,errorUtil.toString(g))}lt(i,g){return this.setLimit("max",i,false,errorUtil.toString(g))}setLimit(i,g,f,E){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:i,value:g,inclusive:f,message:errorUtil.toString(E)}]})}_addCheck(i){return new ZodNumber({...this._def,checks:[...this._def.checks,i]})}int(i){return this._addCheck({kind:"int",message:errorUtil.toString(i)})}positive(i){return this._addCheck({kind:"min",value:0,inclusive:false,message:errorUtil.toString(i)})}negative(i){return this._addCheck({kind:"max",value:0,inclusive:false,message:errorUtil.toString(i)})}nonpositive(i){return this._addCheck({kind:"max",value:0,inclusive:true,message:errorUtil.toString(i)})}nonnegative(i){return this._addCheck({kind:"min",value:0,inclusive:true,message:errorUtil.toString(i)})}multipleOf(i,g){return this._addCheck({kind:"multipleOf",value:i,message:errorUtil.toString(g)})}finite(i){return this._addCheck({kind:"finite",message:errorUtil.toString(i)})}safe(i){return this._addCheck({kind:"min",inclusive:true,value:Number.MIN_SAFE_INTEGER,message:errorUtil.toString(i)})._addCheck({kind:"max",inclusive:true,value:Number.MAX_SAFE_INTEGER,message:errorUtil.toString(i)})}get minValue(){let i=null;for(const g of this._def.checks){if(g.kind==="min"){if(i===null||g.value>i)i=g.value}}return i}get maxValue(){let i=null;for(const g of this._def.checks){if(g.kind==="max"){if(i===null||g.value<i)i=g.value}}return i}get isInt(){return!!this._def.checks.find((i=>i.kind==="int"||i.kind==="multipleOf"&&util.isInteger(i.value)))}get isFinite(){let i=null;let g=null;for(const f of this._def.checks){if(f.kind==="finite"||f.kind==="int"||f.kind==="multipleOf"){return true}else if(f.kind==="min"){if(g===null||f.value>g)g=f.value}else if(f.kind==="max"){if(i===null||f.value<i)i=f.value}}return Number.isFinite(g)&&Number.isFinite(i)}}ZodNumber.create=i=>new ZodNumber({checks:[],typeName:ZodFirstPartyTypeKind.ZodNumber,coerce:i?.coerce||false,...processCreateParams(i)});class ZodBigInt extends ZodType{constructor(){super(...arguments);this.min=this.gte;this.max=this.lte}_parse(i){if(this._def.coerce){try{i.data=BigInt(i.data)}catch{return this._getInvalidInput(i)}}const g=this._getType(i);if(g!==ZodParsedType.bigint){return this._getInvalidInput(i)}let f=undefined;const E=new ParseStatus;for(const g of this._def.checks){if(g.kind==="min"){const p=g.inclusive?i.data<g.value:i.data<=g.value;if(p){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.too_small,type:"bigint",minimum:g.value,inclusive:g.inclusive,message:g.message});E.dirty()}}else if(g.kind==="max"){const p=g.inclusive?i.data>g.value:i.data>=g.value;if(p){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.too_big,type:"bigint",maximum:g.value,inclusive:g.inclusive,message:g.message});E.dirty()}}else if(g.kind==="multipleOf"){if(i.data%g.value!==BigInt(0)){f=this._getOrReturnCtx(i,f);addIssueToContext(f,{code:ZodIssueCode.not_multiple_of,multipleOf:g.value,message:g.message});E.dirty()}}else{util.assertNever(g)}}return{status:E.value,value:i.data}}_getInvalidInput(i){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.bigint,received:g.parsedType});return parseUtil_INVALID}gte(i,g){return this.setLimit("min",i,true,errorUtil.toString(g))}gt(i,g){return this.setLimit("min",i,false,errorUtil.toString(g))}lte(i,g){return this.setLimit("max",i,true,errorUtil.toString(g))}lt(i,g){return this.setLimit("max",i,false,errorUtil.toString(g))}setLimit(i,g,f,E){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:i,value:g,inclusive:f,message:errorUtil.toString(E)}]})}_addCheck(i){return new ZodBigInt({...this._def,checks:[...this._def.checks,i]})}positive(i){return this._addCheck({kind:"min",value:BigInt(0),inclusive:false,message:errorUtil.toString(i)})}negative(i){return this._addCheck({kind:"max",value:BigInt(0),inclusive:false,message:errorUtil.toString(i)})}nonpositive(i){return this._addCheck({kind:"max",value:BigInt(0),inclusive:true,message:errorUtil.toString(i)})}nonnegative(i){return this._addCheck({kind:"min",value:BigInt(0),inclusive:true,message:errorUtil.toString(i)})}multipleOf(i,g){return this._addCheck({kind:"multipleOf",value:i,message:errorUtil.toString(g)})}get minValue(){let i=null;for(const g of this._def.checks){if(g.kind==="min"){if(i===null||g.value>i)i=g.value}}return i}get maxValue(){let i=null;for(const g of this._def.checks){if(g.kind==="max"){if(i===null||g.value<i)i=g.value}}return i}}ZodBigInt.create=i=>new ZodBigInt({checks:[],typeName:ZodFirstPartyTypeKind.ZodBigInt,coerce:i?.coerce??false,...processCreateParams(i)});class ZodBoolean extends ZodType{_parse(i){if(this._def.coerce){i.data=Boolean(i.data)}const g=this._getType(i);if(g!==ZodParsedType.boolean){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:g.parsedType});return parseUtil_INVALID}return OK(i.data)}}ZodBoolean.create=i=>new ZodBoolean({typeName:ZodFirstPartyTypeKind.ZodBoolean,coerce:i?.coerce||false,...processCreateParams(i)});class ZodDate extends ZodType{_parse(i){if(this._def.coerce){i.data=new Date(i.data)}const g=this._getType(i);if(g!==ZodParsedType.date){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:g.parsedType});return parseUtil_INVALID}if(Number.isNaN(i.data.getTime())){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_date});return parseUtil_INVALID}const f=new ParseStatus;let E=undefined;for(const g of this._def.checks){if(g.kind==="min"){if(i.data.getTime()<g.value){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.too_small,message:g.message,inclusive:true,exact:false,minimum:g.value,type:"date"});f.dirty()}}else if(g.kind==="max"){if(i.data.getTime()>g.value){E=this._getOrReturnCtx(i,E);addIssueToContext(E,{code:ZodIssueCode.too_big,message:g.message,inclusive:true,exact:false,maximum:g.value,type:"date"});f.dirty()}}else{util.assertNever(g)}}return{status:f.value,value:new Date(i.data.getTime())}}_addCheck(i){return new ZodDate({...this._def,checks:[...this._def.checks,i]})}min(i,g){return this._addCheck({kind:"min",value:i.getTime(),message:errorUtil.toString(g)})}max(i,g){return this._addCheck({kind:"max",value:i.getTime(),message:errorUtil.toString(g)})}get minDate(){let i=null;for(const g of this._def.checks){if(g.kind==="min"){if(i===null||g.value>i)i=g.value}}return i!=null?new Date(i):null}get maxDate(){let i=null;for(const g of this._def.checks){if(g.kind==="max"){if(i===null||g.value<i)i=g.value}}return i!=null?new Date(i):null}}ZodDate.create=i=>new ZodDate({checks:[],coerce:i?.coerce||false,typeName:ZodFirstPartyTypeKind.ZodDate,...processCreateParams(i)});class ZodSymbol extends ZodType{_parse(i){const g=this._getType(i);if(g!==ZodParsedType.symbol){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:g.parsedType});return parseUtil_INVALID}return OK(i.data)}}ZodSymbol.create=i=>new ZodSymbol({typeName:ZodFirstPartyTypeKind.ZodSymbol,...processCreateParams(i)});class ZodUndefined extends ZodType{_parse(i){const g=this._getType(i);if(g!==ZodParsedType.undefined){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:g.parsedType});return parseUtil_INVALID}return OK(i.data)}}ZodUndefined.create=i=>new ZodUndefined({typeName:ZodFirstPartyTypeKind.ZodUndefined,...processCreateParams(i)});class ZodNull extends ZodType{_parse(i){const g=this._getType(i);if(g!==ZodParsedType.null){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:g.parsedType});return parseUtil_INVALID}return OK(i.data)}}ZodNull.create=i=>new ZodNull({typeName:ZodFirstPartyTypeKind.ZodNull,...processCreateParams(i)});class ZodAny extends ZodType{constructor(){super(...arguments);this._any=true}_parse(i){return OK(i.data)}}ZodAny.create=i=>new ZodAny({typeName:ZodFirstPartyTypeKind.ZodAny,...processCreateParams(i)});class ZodUnknown extends ZodType{constructor(){super(...arguments);this._unknown=true}_parse(i){return OK(i.data)}}ZodUnknown.create=i=>new ZodUnknown({typeName:ZodFirstPartyTypeKind.ZodUnknown,...processCreateParams(i)});class ZodNever extends ZodType{_parse(i){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.never,received:g.parsedType});return parseUtil_INVALID}}ZodNever.create=i=>new ZodNever({typeName:ZodFirstPartyTypeKind.ZodNever,...processCreateParams(i)});class ZodVoid extends ZodType{_parse(i){const g=this._getType(i);if(g!==ZodParsedType.undefined){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:g.parsedType});return parseUtil_INVALID}return OK(i.data)}}ZodVoid.create=i=>new ZodVoid({typeName:ZodFirstPartyTypeKind.ZodVoid,...processCreateParams(i)});class ZodArray extends ZodType{_parse(i){const{ctx:g,status:f}=this._processInputParams(i);const E=this._def;if(g.parsedType!==ZodParsedType.array){addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:g.parsedType});return parseUtil_INVALID}if(E.exactLength!==null){const i=g.data.length>E.exactLength.value;const p=g.data.length<E.exactLength.value;if(i||p){addIssueToContext(g,{code:i?ZodIssueCode.too_big:ZodIssueCode.too_small,minimum:p?E.exactLength.value:undefined,maximum:i?E.exactLength.value:undefined,type:"array",inclusive:true,exact:true,message:E.exactLength.message});f.dirty()}}if(E.minLength!==null){if(g.data.length<E.minLength.value){addIssueToContext(g,{code:ZodIssueCode.too_small,minimum:E.minLength.value,type:"array",inclusive:true,exact:false,message:E.minLength.message});f.dirty()}}if(E.maxLength!==null){if(g.data.length>E.maxLength.value){addIssueToContext(g,{code:ZodIssueCode.too_big,maximum:E.maxLength.value,type:"array",inclusive:true,exact:false,message:E.maxLength.message});f.dirty()}}if(g.common.async){return Promise.all([...g.data].map(((i,f)=>E.type._parseAsync(new ParseInputLazyPath(g,i,g.path,f))))).then((i=>ParseStatus.mergeArray(f,i)))}const p=[...g.data].map(((i,f)=>E.type._parseSync(new ParseInputLazyPath(g,i,g.path,f))));return ParseStatus.mergeArray(f,p)}get element(){return this._def.type}min(i,g){return new ZodArray({...this._def,minLength:{value:i,message:errorUtil.toString(g)}})}max(i,g){return new ZodArray({...this._def,maxLength:{value:i,message:errorUtil.toString(g)}})}length(i,g){return new ZodArray({...this._def,exactLength:{value:i,message:errorUtil.toString(g)}})}nonempty(i){return this.min(1,i)}}ZodArray.create=(i,g)=>new ZodArray({type:i,minLength:null,maxLength:null,exactLength:null,typeName:ZodFirstPartyTypeKind.ZodArray,...processCreateParams(g)});function deepPartialify(i){if(i instanceof ZodObject){const g={};for(const f in i.shape){const E=i.shape[f];g[f]=ZodOptional.create(deepPartialify(E))}return new ZodObject({...i._def,shape:()=>g})}else if(i instanceof ZodArray){return new ZodArray({...i._def,type:deepPartialify(i.element)})}else if(i instanceof ZodOptional){return ZodOptional.create(deepPartialify(i.unwrap()))}else if(i instanceof ZodNullable){return ZodNullable.create(deepPartialify(i.unwrap()))}else if(i instanceof ZodTuple){return ZodTuple.create(i.items.map((i=>deepPartialify(i))))}else{return i}}class ZodObject extends ZodType{constructor(){super(...arguments);this._cached=null;this.nonstrict=this.passthrough;this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const i=this._def.shape();const g=util.objectKeys(i);this._cached={shape:i,keys:g};return this._cached}_parse(i){const g=this._getType(i);if(g!==ZodParsedType.object){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:g.parsedType});return parseUtil_INVALID}const{status:f,ctx:E}=this._processInputParams(i);const{shape:p,keys:y}=this._getCached();const b=[];if(!(this._def.catchall instanceof ZodNever&&this._def.unknownKeys==="strip")){for(const i in E.data){if(!y.includes(i)){b.push(i)}}}const S=[];for(const i of y){const g=p[i];const f=E.data[i];S.push({key:{status:"valid",value:i},value:g._parse(new ParseInputLazyPath(E,f,E.path,i)),alwaysSet:i in E.data})}if(this._def.catchall instanceof ZodNever){const i=this._def.unknownKeys;if(i==="passthrough"){for(const i of b){S.push({key:{status:"valid",value:i},value:{status:"valid",value:E.data[i]}})}}else if(i==="strict"){if(b.length>0){addIssueToContext(E,{code:ZodIssueCode.unrecognized_keys,keys:b});f.dirty()}}else if(i==="strip"){}else{throw new Error(`Internal ZodObject error: invalid unknownKeys value.`)}}else{const i=this._def.catchall;for(const g of b){const f=E.data[g];S.push({key:{status:"valid",value:g},value:i._parse(new ParseInputLazyPath(E,f,E.path,g)),alwaysSet:g in E.data})}}if(E.common.async){return Promise.resolve().then((async()=>{const i=[];for(const g of S){const f=await g.key;const E=await g.value;i.push({key:f,value:E,alwaysSet:g.alwaysSet})}return i})).then((i=>ParseStatus.mergeObjectSync(f,i)))}else{return ParseStatus.mergeObjectSync(f,S)}}get shape(){return this._def.shape()}strict(i){errorUtil.errToObj;return new ZodObject({...this._def,unknownKeys:"strict",...i!==undefined?{errorMap:(g,f)=>{const E=this._def.errorMap?.(g,f).message??f.defaultError;if(g.code==="unrecognized_keys")return{message:errorUtil.errToObj(i).message??E};return{message:E}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(i){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...i})})}merge(i){const g=new ZodObject({unknownKeys:i._def.unknownKeys,catchall:i._def.catchall,shape:()=>({...this._def.shape(),...i._def.shape()}),typeName:ZodFirstPartyTypeKind.ZodObject});return g}setKey(i,g){return this.augment({[i]:g})}catchall(i){return new ZodObject({...this._def,catchall:i})}pick(i){const g={};for(const f of util.objectKeys(i)){if(i[f]&&this.shape[f]){g[f]=this.shape[f]}}return new ZodObject({...this._def,shape:()=>g})}omit(i){const g={};for(const f of util.objectKeys(this.shape)){if(!i[f]){g[f]=this.shape[f]}}return new ZodObject({...this._def,shape:()=>g})}deepPartial(){return deepPartialify(this)}partial(i){const g={};for(const f of util.objectKeys(this.shape)){const E=this.shape[f];if(i&&!i[f]){g[f]=E}else{g[f]=E.optional()}}return new ZodObject({...this._def,shape:()=>g})}required(i){const g={};for(const f of util.objectKeys(this.shape)){if(i&&!i[f]){g[f]=this.shape[f]}else{const i=this.shape[f];let E=i;while(E instanceof ZodOptional){E=E._def.innerType}g[f]=E}}return new ZodObject({...this._def,shape:()=>g})}keyof(){return createZodEnum(util.objectKeys(this.shape))}}ZodObject.create=(i,g)=>new ZodObject({shape:()=>i,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(g)});ZodObject.strictCreate=(i,g)=>new ZodObject({shape:()=>i,unknownKeys:"strict",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(g)});ZodObject.lazycreate=(i,g)=>new ZodObject({shape:i,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(g)});class ZodUnion extends ZodType{_parse(i){const{ctx:g}=this._processInputParams(i);const f=this._def.options;function handleResults(i){for(const g of i){if(g.result.status==="valid"){return g.result}}for(const f of i){if(f.result.status==="dirty"){g.common.issues.push(...f.ctx.common.issues);return f.result}}const f=i.map((i=>new ZodError(i.ctx.common.issues)));addIssueToContext(g,{code:ZodIssueCode.invalid_union,unionErrors:f});return parseUtil_INVALID}if(g.common.async){return Promise.all(f.map((async i=>{const f={...g,common:{...g.common,issues:[]},parent:null};return{result:await i._parseAsync({data:g.data,path:g.path,parent:f}),ctx:f}}))).then(handleResults)}else{let i=undefined;const E=[];for(const p of f){const f={...g,common:{...g.common,issues:[]},parent:null};const y=p._parseSync({data:g.data,path:g.path,parent:f});if(y.status==="valid"){return y}else if(y.status==="dirty"&&!i){i={result:y,ctx:f}}if(f.common.issues.length){E.push(f.common.issues)}}if(i){g.common.issues.push(...i.ctx.common.issues);return i.result}const p=E.map((i=>new ZodError(i)));addIssueToContext(g,{code:ZodIssueCode.invalid_union,unionErrors:p});return parseUtil_INVALID}}get options(){return this._def.options}}ZodUnion.create=(i,g)=>new ZodUnion({options:i,typeName:ZodFirstPartyTypeKind.ZodUnion,...processCreateParams(g)});const getDiscriminator=i=>{if(i instanceof ZodLazy){return getDiscriminator(i.schema)}else if(i instanceof ZodEffects){return getDiscriminator(i.innerType())}else if(i instanceof ZodLiteral){return[i.value]}else if(i instanceof ZodEnum){return i.options}else if(i instanceof ZodNativeEnum){return util.objectValues(i.enum)}else if(i instanceof ZodDefault){return getDiscriminator(i._def.innerType)}else if(i instanceof ZodUndefined){return[undefined]}else if(i instanceof ZodNull){return[null]}else if(i instanceof ZodOptional){return[undefined,...getDiscriminator(i.unwrap())]}else if(i instanceof ZodNullable){return[null,...getDiscriminator(i.unwrap())]}else if(i instanceof ZodBranded){return getDiscriminator(i.unwrap())}else if(i instanceof ZodReadonly){return getDiscriminator(i.unwrap())}else if(i instanceof ZodCatch){return getDiscriminator(i._def.innerType)}else{return[]}};class ZodDiscriminatedUnion extends ZodType{_parse(i){const{ctx:g}=this._processInputParams(i);if(g.parsedType!==ZodParsedType.object){addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:g.parsedType});return parseUtil_INVALID}const f=this.discriminator;const E=g.data[f];const p=this.optionsMap.get(E);if(!p){addIssueToContext(g,{code:ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[f]});return parseUtil_INVALID}if(g.common.async){return p._parseAsync({data:g.data,path:g.path,parent:g})}else{return p._parseSync({data:g.data,path:g.path,parent:g})}}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(i,g,f){const E=new Map;for(const f of g){const g=getDiscriminator(f.shape[i]);if(!g.length){throw new Error(`A discriminator value for key \`${i}\` could not be extracted from all schema options`)}for(const p of g){if(E.has(p)){throw new Error(`Discriminator property ${String(i)} has duplicate value ${String(p)}`)}E.set(p,f)}}return new ZodDiscriminatedUnion({typeName:ZodFirstPartyTypeKind.ZodDiscriminatedUnion,discriminator:i,options:g,optionsMap:E,...processCreateParams(f)})}}function mergeValues(i,g){const f=getParsedType(i);const E=getParsedType(g);if(i===g){return{valid:true,data:i}}else if(f===ZodParsedType.object&&E===ZodParsedType.object){const f=util.objectKeys(g);const E=util.objectKeys(i).filter((i=>f.indexOf(i)!==-1));const p={...i,...g};for(const f of E){const E=mergeValues(i[f],g[f]);if(!E.valid){return{valid:false}}p[f]=E.data}return{valid:true,data:p}}else if(f===ZodParsedType.array&&E===ZodParsedType.array){if(i.length!==g.length){return{valid:false}}const f=[];for(let E=0;E<i.length;E++){const p=i[E];const y=g[E];const b=mergeValues(p,y);if(!b.valid){return{valid:false}}f.push(b.data)}return{valid:true,data:f}}else if(f===ZodParsedType.date&&E===ZodParsedType.date&&+i===+g){return{valid:true,data:i}}else{return{valid:false}}}class ZodIntersection extends ZodType{_parse(i){const{status:g,ctx:f}=this._processInputParams(i);const handleParsed=(i,E)=>{if(isAborted(i)||isAborted(E)){return parseUtil_INVALID}const p=mergeValues(i.value,E.value);if(!p.valid){addIssueToContext(f,{code:ZodIssueCode.invalid_intersection_types});return parseUtil_INVALID}if(isDirty(i)||isDirty(E)){g.dirty()}return{status:g.value,value:p.data}};if(f.common.async){return Promise.all([this._def.left._parseAsync({data:f.data,path:f.path,parent:f}),this._def.right._parseAsync({data:f.data,path:f.path,parent:f})]).then((([i,g])=>handleParsed(i,g)))}else{return handleParsed(this._def.left._parseSync({data:f.data,path:f.path,parent:f}),this._def.right._parseSync({data:f.data,path:f.path,parent:f}))}}}ZodIntersection.create=(i,g,f)=>new ZodIntersection({left:i,right:g,typeName:ZodFirstPartyTypeKind.ZodIntersection,...processCreateParams(f)});class ZodTuple extends ZodType{_parse(i){const{status:g,ctx:f}=this._processInputParams(i);if(f.parsedType!==ZodParsedType.array){addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:f.parsedType});return parseUtil_INVALID}if(f.data.length<this._def.items.length){addIssueToContext(f,{code:ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:true,exact:false,type:"array"});return parseUtil_INVALID}const E=this._def.rest;if(!E&&f.data.length>this._def.items.length){addIssueToContext(f,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:true,exact:false,type:"array"});g.dirty()}const p=[...f.data].map(((i,g)=>{const E=this._def.items[g]||this._def.rest;if(!E)return null;return E._parse(new ParseInputLazyPath(f,i,f.path,g))})).filter((i=>!!i));if(f.common.async){return Promise.all(p).then((i=>ParseStatus.mergeArray(g,i)))}else{return ParseStatus.mergeArray(g,p)}}get items(){return this._def.items}rest(i){return new ZodTuple({...this._def,rest:i})}}ZodTuple.create=(i,g)=>{if(!Array.isArray(i)){throw new Error("You must pass an array of schemas to z.tuple([ ... ])")}return new ZodTuple({items:i,typeName:ZodFirstPartyTypeKind.ZodTuple,rest:null,...processCreateParams(g)})};class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(i){const{status:g,ctx:f}=this._processInputParams(i);if(f.parsedType!==ZodParsedType.object){addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:f.parsedType});return parseUtil_INVALID}const E=[];const p=this._def.keyType;const y=this._def.valueType;for(const i in f.data){E.push({key:p._parse(new ParseInputLazyPath(f,i,f.path,i)),value:y._parse(new ParseInputLazyPath(f,f.data[i],f.path,i)),alwaysSet:i in f.data})}if(f.common.async){return ParseStatus.mergeObjectAsync(g,E)}else{return ParseStatus.mergeObjectSync(g,E)}}get element(){return this._def.valueType}static create(i,g,f){if(g instanceof ZodType){return new ZodRecord({keyType:i,valueType:g,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(f)})}return new ZodRecord({keyType:ZodString.create(),valueType:i,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(g)})}}class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(i){const{status:g,ctx:f}=this._processInputParams(i);if(f.parsedType!==ZodParsedType.map){addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:f.parsedType});return parseUtil_INVALID}const E=this._def.keyType;const p=this._def.valueType;const y=[...f.data.entries()].map((([i,g],y)=>({key:E._parse(new ParseInputLazyPath(f,i,f.path,[y,"key"])),value:p._parse(new ParseInputLazyPath(f,g,f.path,[y,"value"]))})));if(f.common.async){const i=new Map;return Promise.resolve().then((async()=>{for(const f of y){const E=await f.key;const p=await f.value;if(E.status==="aborted"||p.status==="aborted"){return parseUtil_INVALID}if(E.status==="dirty"||p.status==="dirty"){g.dirty()}i.set(E.value,p.value)}return{status:g.value,value:i}}))}else{const i=new Map;for(const f of y){const E=f.key;const p=f.value;if(E.status==="aborted"||p.status==="aborted"){return parseUtil_INVALID}if(E.status==="dirty"||p.status==="dirty"){g.dirty()}i.set(E.value,p.value)}return{status:g.value,value:i}}}}ZodMap.create=(i,g,f)=>new ZodMap({valueType:g,keyType:i,typeName:ZodFirstPartyTypeKind.ZodMap,...processCreateParams(f)});class ZodSet extends ZodType{_parse(i){const{status:g,ctx:f}=this._processInputParams(i);if(f.parsedType!==ZodParsedType.set){addIssueToContext(f,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:f.parsedType});return parseUtil_INVALID}const E=this._def;if(E.minSize!==null){if(f.data.size<E.minSize.value){addIssueToContext(f,{code:ZodIssueCode.too_small,minimum:E.minSize.value,type:"set",inclusive:true,exact:false,message:E.minSize.message});g.dirty()}}if(E.maxSize!==null){if(f.data.size>E.maxSize.value){addIssueToContext(f,{code:ZodIssueCode.too_big,maximum:E.maxSize.value,type:"set",inclusive:true,exact:false,message:E.maxSize.message});g.dirty()}}const p=this._def.valueType;function finalizeSet(i){const f=new Set;for(const E of i){if(E.status==="aborted")return parseUtil_INVALID;if(E.status==="dirty")g.dirty();f.add(E.value)}return{status:g.value,value:f}}const y=[...f.data.values()].map(((i,g)=>p._parse(new ParseInputLazyPath(f,i,f.path,g))));if(f.common.async){return Promise.all(y).then((i=>finalizeSet(i)))}else{return finalizeSet(y)}}min(i,g){return new ZodSet({...this._def,minSize:{value:i,message:errorUtil.toString(g)}})}max(i,g){return new ZodSet({...this._def,maxSize:{value:i,message:errorUtil.toString(g)}})}size(i,g){return this.min(i,g).max(i,g)}nonempty(i){return this.min(1,i)}}ZodSet.create=(i,g)=>new ZodSet({valueType:i,minSize:null,maxSize:null,typeName:ZodFirstPartyTypeKind.ZodSet,...processCreateParams(g)});class ZodFunction extends ZodType{constructor(){super(...arguments);this.validate=this.implement}_parse(i){const{ctx:g}=this._processInputParams(i);if(g.parsedType!==ZodParsedType.function){addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.function,received:g.parsedType});return parseUtil_INVALID}function makeArgsIssue(i,f){return makeIssue({data:i,path:g.path,errorMaps:[g.common.contextualErrorMap,g.schemaErrorMap,getErrorMap(),en].filter((i=>!!i)),issueData:{code:ZodIssueCode.invalid_arguments,argumentsError:f}})}function makeReturnsIssue(i,f){return makeIssue({data:i,path:g.path,errorMaps:[g.common.contextualErrorMap,g.schemaErrorMap,getErrorMap(),en].filter((i=>!!i)),issueData:{code:ZodIssueCode.invalid_return_type,returnTypeError:f}})}const f={errorMap:g.common.contextualErrorMap};const E=g.data;if(this._def.returns instanceof ZodPromise){const i=this;return OK((async function(...g){const p=new ZodError([]);const y=await i._def.args.parseAsync(g,f).catch((i=>{p.addIssue(makeArgsIssue(g,i));throw p}));const b=await Reflect.apply(E,this,y);const S=await i._def.returns._def.type.parseAsync(b,f).catch((i=>{p.addIssue(makeReturnsIssue(b,i));throw p}));return S}))}else{const i=this;return OK((function(...g){const p=i._def.args.safeParse(g,f);if(!p.success){throw new ZodError([makeArgsIssue(g,p.error)])}const y=Reflect.apply(E,this,p.data);const b=i._def.returns.safeParse(y,f);if(!b.success){throw new ZodError([makeReturnsIssue(y,b.error)])}return b.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...i){return new ZodFunction({...this._def,args:ZodTuple.create(i).rest(ZodUnknown.create())})}returns(i){return new ZodFunction({...this._def,returns:i})}implement(i){const g=this.parse(i);return g}strictImplement(i){const g=this.parse(i);return g}static create(i,g,f){return new ZodFunction({args:i?i:ZodTuple.create([]).rest(ZodUnknown.create()),returns:g||ZodUnknown.create(),typeName:ZodFirstPartyTypeKind.ZodFunction,...processCreateParams(f)})}}class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(i){const{ctx:g}=this._processInputParams(i);const f=this._def.getter();return f._parse({data:g.data,path:g.path,parent:g})}}ZodLazy.create=(i,g)=>new ZodLazy({getter:i,typeName:ZodFirstPartyTypeKind.ZodLazy,...processCreateParams(g)});class ZodLiteral extends ZodType{_parse(i){if(i.data!==this._def.value){const g=this._getOrReturnCtx(i);addIssueToContext(g,{received:g.data,code:ZodIssueCode.invalid_literal,expected:this._def.value});return parseUtil_INVALID}return{status:"valid",value:i.data}}get value(){return this._def.value}}ZodLiteral.create=(i,g)=>new ZodLiteral({value:i,typeName:ZodFirstPartyTypeKind.ZodLiteral,...processCreateParams(g)});function createZodEnum(i,g){return new ZodEnum({values:i,typeName:ZodFirstPartyTypeKind.ZodEnum,...processCreateParams(g)})}class ZodEnum extends ZodType{_parse(i){if(typeof i.data!=="string"){const g=this._getOrReturnCtx(i);const f=this._def.values;addIssueToContext(g,{expected:util.joinValues(f),received:g.parsedType,code:ZodIssueCode.invalid_type});return parseUtil_INVALID}if(!this._cache){this._cache=new Set(this._def.values)}if(!this._cache.has(i.data)){const g=this._getOrReturnCtx(i);const f=this._def.values;addIssueToContext(g,{received:g.data,code:ZodIssueCode.invalid_enum_value,options:f});return parseUtil_INVALID}return OK(i.data)}get options(){return this._def.values}get enum(){const i={};for(const g of this._def.values){i[g]=g}return i}get Values(){const i={};for(const g of this._def.values){i[g]=g}return i}get Enum(){const i={};for(const g of this._def.values){i[g]=g}return i}extract(i,g=this._def){return ZodEnum.create(i,{...this._def,...g})}exclude(i,g=this._def){return ZodEnum.create(this.options.filter((g=>!i.includes(g))),{...this._def,...g})}}ZodEnum.create=createZodEnum;class ZodNativeEnum extends ZodType{_parse(i){const g=util.getValidEnumValues(this._def.values);const f=this._getOrReturnCtx(i);if(f.parsedType!==ZodParsedType.string&&f.parsedType!==ZodParsedType.number){const i=util.objectValues(g);addIssueToContext(f,{expected:util.joinValues(i),received:f.parsedType,code:ZodIssueCode.invalid_type});return parseUtil_INVALID}if(!this._cache){this._cache=new Set(util.getValidEnumValues(this._def.values))}if(!this._cache.has(i.data)){const i=util.objectValues(g);addIssueToContext(f,{received:f.data,code:ZodIssueCode.invalid_enum_value,options:i});return parseUtil_INVALID}return OK(i.data)}get enum(){return this._def.values}}ZodNativeEnum.create=(i,g)=>new ZodNativeEnum({values:i,typeName:ZodFirstPartyTypeKind.ZodNativeEnum,...processCreateParams(g)});class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(i){const{ctx:g}=this._processInputParams(i);if(g.parsedType!==ZodParsedType.promise&&g.common.async===false){addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.promise,received:g.parsedType});return parseUtil_INVALID}const f=g.parsedType===ZodParsedType.promise?g.data:Promise.resolve(g.data);return OK(f.then((i=>this._def.type.parseAsync(i,{path:g.path,errorMap:g.common.contextualErrorMap}))))}}ZodPromise.create=(i,g)=>new ZodPromise({type:i,typeName:ZodFirstPartyTypeKind.ZodPromise,...processCreateParams(g)});class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ZodFirstPartyTypeKind.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(i){const{status:g,ctx:f}=this._processInputParams(i);const E=this._def.effect||null;const p={addIssue:i=>{addIssueToContext(f,i);if(i.fatal){g.abort()}else{g.dirty()}},get path(){return f.path}};p.addIssue=p.addIssue.bind(p);if(E.type==="preprocess"){const i=E.transform(f.data,p);if(f.common.async){return Promise.resolve(i).then((async i=>{if(g.value==="aborted")return parseUtil_INVALID;const E=await this._def.schema._parseAsync({data:i,path:f.path,parent:f});if(E.status==="aborted")return parseUtil_INVALID;if(E.status==="dirty")return DIRTY(E.value);if(g.value==="dirty")return DIRTY(E.value);return E}))}else{if(g.value==="aborted")return parseUtil_INVALID;const E=this._def.schema._parseSync({data:i,path:f.path,parent:f});if(E.status==="aborted")return parseUtil_INVALID;if(E.status==="dirty")return DIRTY(E.value);if(g.value==="dirty")return DIRTY(E.value);return E}}if(E.type==="refinement"){const executeRefinement=i=>{const g=E.refinement(i,p);if(f.common.async){return Promise.resolve(g)}if(g instanceof Promise){throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.")}return i};if(f.common.async===false){const i=this._def.schema._parseSync({data:f.data,path:f.path,parent:f});if(i.status==="aborted")return parseUtil_INVALID;if(i.status==="dirty")g.dirty();executeRefinement(i.value);return{status:g.value,value:i.value}}else{return this._def.schema._parseAsync({data:f.data,path:f.path,parent:f}).then((i=>{if(i.status==="aborted")return parseUtil_INVALID;if(i.status==="dirty")g.dirty();return executeRefinement(i.value).then((()=>({status:g.value,value:i.value})))}))}}if(E.type==="transform"){if(f.common.async===false){const i=this._def.schema._parseSync({data:f.data,path:f.path,parent:f});if(!isValid(i))return parseUtil_INVALID;const y=E.transform(i.value,p);if(y instanceof Promise){throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`)}return{status:g.value,value:y}}else{return this._def.schema._parseAsync({data:f.data,path:f.path,parent:f}).then((i=>{if(!isValid(i))return parseUtil_INVALID;return Promise.resolve(E.transform(i.value,p)).then((i=>({status:g.value,value:i})))}))}}util.assertNever(E)}}ZodEffects.create=(i,g,f)=>new ZodEffects({schema:i,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:g,...processCreateParams(f)});ZodEffects.createWithPreprocess=(i,g,f)=>new ZodEffects({schema:g,effect:{type:"preprocess",transform:i},typeName:ZodFirstPartyTypeKind.ZodEffects,...processCreateParams(f)});class ZodOptional extends ZodType{_parse(i){const g=this._getType(i);if(g===ZodParsedType.undefined){return OK(undefined)}return this._def.innerType._parse(i)}unwrap(){return this._def.innerType}}ZodOptional.create=(i,g)=>new ZodOptional({innerType:i,typeName:ZodFirstPartyTypeKind.ZodOptional,...processCreateParams(g)});class ZodNullable extends ZodType{_parse(i){const g=this._getType(i);if(g===ZodParsedType.null){return OK(null)}return this._def.innerType._parse(i)}unwrap(){return this._def.innerType}}ZodNullable.create=(i,g)=>new ZodNullable({innerType:i,typeName:ZodFirstPartyTypeKind.ZodNullable,...processCreateParams(g)});class ZodDefault extends ZodType{_parse(i){const{ctx:g}=this._processInputParams(i);let f=g.data;if(g.parsedType===ZodParsedType.undefined){f=this._def.defaultValue()}return this._def.innerType._parse({data:f,path:g.path,parent:g})}removeDefault(){return this._def.innerType}}ZodDefault.create=(i,g)=>new ZodDefault({innerType:i,typeName:ZodFirstPartyTypeKind.ZodDefault,defaultValue:typeof g.default==="function"?g.default:()=>g.default,...processCreateParams(g)});class ZodCatch extends ZodType{_parse(i){const{ctx:g}=this._processInputParams(i);const f={...g,common:{...g.common,issues:[]}};const E=this._def.innerType._parse({data:f.data,path:f.path,parent:{...f}});if(isAsync(E)){return E.then((i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ZodError(f.common.issues)},input:f.data})})))}else{return{status:"valid",value:E.status==="valid"?E.value:this._def.catchValue({get error(){return new ZodError(f.common.issues)},input:f.data})}}}removeCatch(){return this._def.innerType}}ZodCatch.create=(i,g)=>new ZodCatch({innerType:i,typeName:ZodFirstPartyTypeKind.ZodCatch,catchValue:typeof g.catch==="function"?g.catch:()=>g.catch,...processCreateParams(g)});class ZodNaN extends ZodType{_parse(i){const g=this._getType(i);if(g!==ZodParsedType.nan){const g=this._getOrReturnCtx(i);addIssueToContext(g,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:g.parsedType});return parseUtil_INVALID}return{status:"valid",value:i.data}}}ZodNaN.create=i=>new ZodNaN({typeName:ZodFirstPartyTypeKind.ZodNaN,...processCreateParams(i)});const BRAND=Symbol("zod_brand");class ZodBranded extends ZodType{_parse(i){const{ctx:g}=this._processInputParams(i);const f=g.data;return this._def.type._parse({data:f,path:g.path,parent:g})}unwrap(){return this._def.type}}class ZodPipeline extends ZodType{_parse(i){const{status:g,ctx:f}=this._processInputParams(i);if(f.common.async){const handleAsync=async()=>{const i=await this._def.in._parseAsync({data:f.data,path:f.path,parent:f});if(i.status==="aborted")return parseUtil_INVALID;if(i.status==="dirty"){g.dirty();return DIRTY(i.value)}else{return this._def.out._parseAsync({data:i.value,path:f.path,parent:f})}};return handleAsync()}else{const i=this._def.in._parseSync({data:f.data,path:f.path,parent:f});if(i.status==="aborted")return parseUtil_INVALID;if(i.status==="dirty"){g.dirty();return{status:"dirty",value:i.value}}else{return this._def.out._parseSync({data:i.value,path:f.path,parent:f})}}}static create(i,g){return new ZodPipeline({in:i,out:g,typeName:ZodFirstPartyTypeKind.ZodPipeline})}}class ZodReadonly extends ZodType{_parse(i){const g=this._def.innerType._parse(i);const freeze=i=>{if(isValid(i)){i.value=Object.freeze(i.value)}return i};return isAsync(g)?g.then((i=>freeze(i))):freeze(g)}unwrap(){return this._def.innerType}}ZodReadonly.create=(i,g)=>new ZodReadonly({innerType:i,typeName:ZodFirstPartyTypeKind.ZodReadonly,...processCreateParams(g)});function cleanParams(i,g){const f=typeof i==="function"?i(g):typeof i==="string"?{message:i}:i;const E=typeof f==="string"?{message:f}:f;return E}function custom(i,g={},f){if(i)return ZodAny.create().superRefine(((E,p)=>{const y=i(E);if(y instanceof Promise){return y.then((i=>{if(!i){const i=cleanParams(g,E);const y=i.fatal??f??true;p.addIssue({code:"custom",...i,fatal:y})}}))}if(!y){const i=cleanParams(g,E);const y=i.fatal??f??true;p.addIssue({code:"custom",...i,fatal:y})}return}));return ZodAny.create()}const late={object:ZodObject.lazycreate};var ZodFirstPartyTypeKind;(function(i){i["ZodString"]="ZodString";i["ZodNumber"]="ZodNumber";i["ZodNaN"]="ZodNaN";i["ZodBigInt"]="ZodBigInt";i["ZodBoolean"]="ZodBoolean";i["ZodDate"]="ZodDate";i["ZodSymbol"]="ZodSymbol";i["ZodUndefined"]="ZodUndefined";i["ZodNull"]="ZodNull";i["ZodAny"]="ZodAny";i["ZodUnknown"]="ZodUnknown";i["ZodNever"]="ZodNever";i["ZodVoid"]="ZodVoid";i["ZodArray"]="ZodArray";i["ZodObject"]="ZodObject";i["ZodUnion"]="ZodUnion";i["ZodDiscriminatedUnion"]="ZodDiscriminatedUnion";i["ZodIntersection"]="ZodIntersection";i["ZodTuple"]="ZodTuple";i["ZodRecord"]="ZodRecord";i["ZodMap"]="ZodMap";i["ZodSet"]="ZodSet";i["ZodFunction"]="ZodFunction";i["ZodLazy"]="ZodLazy";i["ZodLiteral"]="ZodLiteral";i["ZodEnum"]="ZodEnum";i["ZodEffects"]="ZodEffects";i["ZodNativeEnum"]="ZodNativeEnum";i["ZodOptional"]="ZodOptional";i["ZodNullable"]="ZodNullable";i["ZodDefault"]="ZodDefault";i["ZodCatch"]="ZodCatch";i["ZodPromise"]="ZodPromise";i["ZodBranded"]="ZodBranded";i["ZodPipeline"]="ZodPipeline";i["ZodReadonly"]="ZodReadonly"})(ZodFirstPartyTypeKind||(ZodFirstPartyTypeKind={}));class Class{constructor(...i){}}const instanceOfType=(i,g={message:`Input not instance of ${i.name}`})=>custom((g=>g instanceof i),g);const stringType=ZodString.create;const numberType=ZodNumber.create;const nanType=ZodNaN.create;const bigIntType=ZodBigInt.create;const booleanType=ZodBoolean.create;const dateType=ZodDate.create;const symbolType=ZodSymbol.create;const undefinedType=ZodUndefined.create;const nullType=ZodNull.create;const anyType=ZodAny.create;const unknownType=ZodUnknown.create;const neverType=ZodNever.create;const voidType=ZodVoid.create;const arrayType=ZodArray.create;const objectType=ZodObject.create;const strictObjectType=ZodObject.strictCreate;const unionType=ZodUnion.create;const discriminatedUnionType=ZodDiscriminatedUnion.create;const intersectionType=ZodIntersection.create;const tupleType=ZodTuple.create;const recordType=ZodRecord.create;const mapType=ZodMap.create;const setType=ZodSet.create;const functionType=ZodFunction.create;const lazyType=ZodLazy.create;const literalType=ZodLiteral.create;const enumType=ZodEnum.create;const nativeEnumType=ZodNativeEnum.create;const promiseType=ZodPromise.create;const effectsType=ZodEffects.create;const optionalType=ZodOptional.create;const nullableType=ZodNullable.create;const preprocessType=ZodEffects.createWithPreprocess;const pipelineType=ZodPipeline.create;const ostring=()=>stringType().optional();const onumber=()=>numberType().optional();const oboolean=()=>booleanType().optional();const coerce={string:i=>ZodString.create({...i,coerce:true}),number:i=>ZodNumber.create({...i,coerce:true}),boolean:i=>ZodBoolean.create({...i,coerce:true}),bigint:i=>ZodBigInt.create({...i,coerce:true}),date:i=>ZodDate.create({...i,coerce:true})};const NEVER=null&&INVALID;const DEFAULT_VAULT_ROOT=".documentation/knowledge-base/";const DEFAULT_PLAYBOOK_GLOBS=[".documentation/**/*.md"];const DEFAULT_AUDIT_WINDOW_DAYS=90;const KEBAB_SLUG_RE=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;const DOMAIN_CATEGORY_VALUES=["core","development","features","advanced"];const customDomainSchema=objectType({id:stringType().regex(KEBAB_SLUG_RE,"domain id must be kebab-case"),name:stringType().min(1),description:stringType().min(1),keywords:arrayType(stringType().min(1)).min(1,"at least one keyword is required"),loadPriority:numberType().int().min(1).max(10),category:enumType(DOMAIN_CATEGORY_VALUES)});const lenientDomainsArray=preprocessType((i=>{if(!Array.isArray(i))return[];return i.filter((i=>customDomainSchema.safeParse(i).success))}),arrayType(customDomainSchema)).default([]);const vaultConfigSchema=objectType({root:stringType().default(DEFAULT_VAULT_ROOT),playbook_paths:arrayType(stringType()).default(DEFAULT_PLAYBOOK_GLOBS),audit_window_days:numberType().int().positive().default(DEFAULT_AUDIT_WINDOW_DAYS)}).default({});const DEFAULT_ARCHIVE_CANDIDATE_DAYS=365;const archiveConfigSchema=objectType({honor_status_deprecated:booleanType().default(true),candidate_after_days:numberType().int().positive().default(DEFAULT_ARCHIVE_CANDIDATE_DAYS),require_orphaned:booleanType().default(true),auto:booleanType().default(false)}).default({});const pluginConfigSchema=objectType({vault:vaultConfigSchema,domains:lenientDomainsArray,archive:archiveConfigSchema}).passthrough();const CONFIG_FILENAME=".claude/hit-em-with-the-docs.json";async function loadPluginConfig(i){const g=i??process.cwd();const f=(0,external_path_.resolve)(g,CONFIG_FILENAME);let E;try{const i=await(0,promises_namespaceObject.readFile)(f,"utf-8");E=JSON.parse(i)}catch{E={}}const p=pluginConfigSchema.safeParse(E);if(p.success){return p.data}return pluginConfigSchema.parse({})}function loadPluginConfigSync(i){const g=i??process.cwd();const f=(0,external_path_.resolve)(g,CONFIG_FILENAME);let E;try{const i=(0,external_fs_.readFileSync)(f,"utf-8");E=JSON.parse(i)}catch{E={}}const p=pluginConfigSchema.safeParse(E);if(p.success){return p.data}return pluginConfigSchema.parse({})}async function readRawConfig(i){const g=i??process.cwd();const f=resolve(g,CONFIG_FILENAME);try{const i=await readFile(f,"utf-8");const g=JSON.parse(i);return g&&typeof g==="object"&&!Array.isArray(g)?g:{}}catch{return{}}}async function writeRawConfig(i,g){const f=resolve(i,CONFIG_FILENAME);await mkdir(dirname(f),{recursive:true});await writeFile(f,JSON.stringify(g,null,2)+"\n","utf-8");return f}function configFilePath(i){return resolve(i,CONFIG_FILENAME)}function resolveVaultRoot(i,g){return(0,external_path_.resolve)(i,g.vault.root)}function resolvePlaybookGlobs(i,g){return g.vault.playbook_paths.map((g=>(0,external_path_.join)(i,g)))}const DOMAINS=["agents","api","architecture","backups","database","devops","features","plans","procedures","quickstart","security","standards","testing","troubleshooting","workflows"];const DOMAIN_DEFINITIONS={security:{id:"security",name:"Security",description:"Security, auth, Vault, Keycloak, RLS",keywords:["security","auth","authentication","authorization","oauth","jwt","keycloak","vault","secrets","rls","row-level-security","rbac","permissions","access-control","encryption","ssl","tls","certificate"],loadPriority:9,category:"core"},devops:{id:"devops",name:"DevOps",description:"Deployment, CI/CD, Docker, environments, infrastructure",keywords:["devops","deployment","deploy","ci","cd","ci/cd","pipeline","docker","container","kubernetes","k8s","infrastructure","terraform","ansible","aws","gcp","azure","cloud","environment","production","staging","development","nginx","load-balancer","monitoring"],loadPriority:8,category:"core"},database:{id:"database",name:"Database",description:"Schema, migrations, RLS, queries, procedures",keywords:["database","db","postgres","postgresql","mysql","sql","schema","migration","migrations","alembic","query","queries","table","index","indexes","rls","procedure","function","trigger","transaction","orm","sqlalchemy","prisma"],loadPriority:8,category:"core"},api:{id:"api",name:"API",description:"API endpoints, routes, specifications, contracts",keywords:["api","endpoint","endpoints","route","routes","rest","restful","graphql","grpc","openapi","swagger","specification","contract","request","response","http","fastapi","express","flask","django"],loadPriority:8,category:"core"},standards:{id:"standards",name:"Standards",description:"Coding standards (backend, frontend, database, devops, security)",keywords:["standard","standards","convention","conventions","pattern","patterns","best-practice","best-practices","guideline","guidelines","style","style-guide","coding","naming","formatting","linting","rules"],loadPriority:10,category:"development"},testing:{id:"testing",name:"Testing",description:"Test strategies, fixtures, patterns, integration/e2e",keywords:["test","testing","tests","unit","unit-test","integration","integration-test","e2e","end-to-end","fixture","fixtures","mock","mocking","stub","pytest","jest","vitest","playwright","cypress","coverage","tdd","bdd"],loadPriority:7,category:"development"},architecture:{id:"architecture",name:"Architecture",description:"System design, AI coach, project registry, patterns",keywords:["architecture","design","system","system-design","pattern","patterns","microservices","monolith","serverless","event-driven","cqrs","ddd","domain-driven","clean-architecture","hexagonal","decision","adr","registry","diagram"],loadPriority:7,category:"development"},features:{id:"features",name:"Features",description:"Feature implementation guides, admin docs",keywords:["feature","features","implementation","guide","how-to","tutorial","admin","administration","dashboard","ui","component","module","functionality","capability"],loadPriority:6,category:"features"},quickstart:{id:"quickstart",name:"Quickstart",description:"Setup guides, dev workflow, onboarding",keywords:["quickstart","quick-start","getting-started","setup","install","installation","onboarding","developer","dev","workflow","start","begin","intro","introduction","new-developer"],loadPriority:9,category:"features"},procedures:{id:"procedures",name:"Procedures",description:"Step-by-step operational procedures (SOP)",keywords:["procedure","procedures","sop","standard-operating-procedure","step","steps","operational","operation","operations","runbook","playbook","checklist","process","manual"],loadPriority:6,category:"features"},workflows:{id:"workflows",name:"Workflows",description:"Process documentation, multi-step operations",keywords:["workflow","workflows","process","processes","flow","flowchart","sequence","pipeline","automation","automated","multi-step","orchestration","state-machine"],loadPriority:5,category:"features"},agents:{id:"agents",name:"Agents",description:"Expert agent documentation, specialty matrix",keywords:["agent","agents","ai","assistant","expert","specialist","llm","langchain","rag","retrieval","embedding","vector","prompt","orchestration","chain","tool"],loadPriority:5,category:"advanced"},backups:{id:"backups",name:"Backups",description:"Backup/restore guides, disaster recovery",keywords:["backup","backups","restore","recovery","disaster","disaster-recovery","dr","snapshot","archive","retention","replication","failover"],loadPriority:4,category:"advanced"},troubleshooting:{id:"troubleshooting",name:"Troubleshooting",description:"Debug guides, common issues, solutions",keywords:["troubleshooting","troubleshoot","debug","debugging","issue","issues","problem","problems","error","errors","fix","solution","solutions","resolve","diagnose","diagnosis","log","logs","faq"],loadPriority:6,category:"advanced"},plans:{id:"plans",name:"Plans",description:"Planning documents, roadmaps, proposals",keywords:["plan","plans","planning","roadmap","proposal","proposals","rfc","design-doc","specification","spec","milestone","timeline","schedule","project","initiative"],loadPriority:3,category:"advanced"}};function isBuiltinDomain(i){return DOMAINS.includes(i)}let cached=null;function buildRegistry(i){const g=loadPluginConfigSync(i);const f=new Map;const E=[];for(const i of DOMAINS){f.set(i,DOMAIN_DEFINITIONS[i]);E.push(i)}for(const i of g.domains??[]){if(f.has(i.id)){logger.warn(`Custom domain "${i.id}" collides with a built-in domain; ignoring the config entry.`);continue}f.set(i.id,{id:i.id,name:i.name,description:i.description,keywords:i.keywords,loadPriority:i.loadPriority,category:i.category});E.push(i.id)}return{ids:E,definitions:f}}function getRegistry(i){if(!cached){cached=buildRegistry(i)}return cached}function resetRegistry(){cached=null}function registry_getAllDomains(){return[...getRegistry().ids]}function registry_getDomainDefinition(i){const g=getRegistry().definitions.get(i);if(!g){throw new Error(`Unknown domain: ${i}`)}return g}function isValidDomain(i){return getRegistry().definitions.has(i)}function getDomainsByCategory(i){const g=getRegistry();return g.ids.filter((f=>g.definitions.get(f).category===i))}function getDomainsByPriority(){const i=getRegistry();return[...i.ids].sort(((g,f)=>i.definitions.get(f).loadPriority-i.definitions.get(g).loadPriority))}function getAllKeywords(){const i=getRegistry();const g=new Map;for(const f of i.ids){const E=i.definitions.get(f);for(const i of E.keywords){const E=g.get(i)??[];E.push(f);g.set(i,E)}}return g}function detectDomain(i,g,f=".documentation"){const E=detectDomainFromPath(i,f);if(E.domain&&E.confidence>=.9){return E}if(g){const i=detectDomainFromContent(g);if(E.domain){if(i.confidence>E.confidence){i.alternativeDomains.unshift({domain:E.domain,confidence:E.confidence});return i}return E}return i}return E}function detectDomainFromPath(i,g=".documentation"){const f={domain:null,confidence:0,method:"path",alternativeDomains:[]};const E=i.replace(/\\/g,"/");const p=g.replace(/\\/g,"/");let y;try{y=(0,external_path_.relative)(p,E).replace(/\\/g,"/")}catch{y=E}const b=y.split("/");for(let i=0;i<b.length;i++){const g=b[i];if(g&&isValidDomain(g)){f.domain=g;f.confidence=i===0?1:.9-i*.1;break}}if(!f.domain){const g=(0,external_path_.basename)(i,".md");for(const i of registry_getAllDomains()){if(g.includes(i)){f.domain=i;f.confidence=.6;break}}}return f}function detectDomainFromContent(i){const g={domain:null,confidence:0,method:"content",alternativeDomains:[]};const f=i.toLowerCase();const E=getAllKeywords();const p=new Map;for(const[i,g]of E){const E=new RegExp(`\\b${escapeRegExp(i)}\\b`,"gi");const y=f.match(E);if(y){const i=y.length;for(const f of g){const g=p.get(f)??0;p.set(f,g+i)}}}const y=[...p.entries()].filter((([,i])=>i>0)).sort(((i,g)=>g[1]-i[1]));if(y.length>0){const i=y[0][1];const f=y[0][0];const E=y[1]?.[1]??0;const p=i-E;const b=Math.min(i/20,1);const S=Math.min(p/10,.3);g.domain=f;g.confidence=Math.min(.5+b*.3+S,.95);g.method="keywords";for(let f=1;f<Math.min(y.length,4);f++){const[E,p]=y[f];g.alternativeDomains.push({domain:E,confidence:p/i*g.confidence*.8})}}return g}function suggestDomainsForFile(i){const g=basename(i,".md").toLowerCase();const f=[];for(const i of getAllDomains()){const E=getDomainDefinition(i);for(const p of E.keywords){if(g.includes(p.replace(/-/g,""))){if(!f.includes(i)){f.push(i)}break}}}for(const i of getAllDomains()){if(g.includes(i)&&!f.includes(i)){f.unshift(i)}}return f}function validateDomainPlacement(i,g=".documentation"){const f=detectDomainFromPath(i,g);return{isCorrect:f.confidence>=.8,currentDomain:f.domain,suggestedDomain:f.domain}}function escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const TIERS=["guide","standard","example","reference","admin","plan","fact","incident-narrative","incident-facts"];const LIFECYCLE_TRACKED_TIERS=["plan","fact","incident-narrative","incident-facts"];function isLifecycleTrackedTier(i){return typeof i==="string"&&LIFECYCLE_TRACKED_TIERS.includes(i)}const TIER_DEFINITIONS={guide:{id:"guide",name:"Guide",description:"Step-by-step how-to guides",sizeRange:{min:15,max:30},indicators:["how to","step by step","tutorial","guide","walkthrough","getting started","learn","implement","build","create"],headingPatterns:[/^#+\s*(prerequisites?|requirements?)/i,/^#+\s*(step\s*\d+|first|next|then|finally)/i,/^#+\s*(overview|introduction|getting started)/i,/^#+\s*(example|demo|try it)/i]},standard:{id:"standard",name:"Standard",description:"Coding standards and conventions",sizeRange:{min:5,max:15},indicators:["standard","convention","rule","must","should","must not","should not","required","recommended","best practice","guideline"],headingPatterns:[/^#+\s*(rules?|guidelines?|conventions?)/i,/^#+\s*(do|don'?t|avoid|prefer)/i,/^#+\s*(naming|formatting|style)/i,/^#+\s*(required|recommended|optional)/i]},example:{id:"example",name:"Example",description:"Code examples and templates",sizeRange:{min:3,max:10},indicators:["example","sample","template","snippet","code","demo","showcase","pattern example","usage example"],headingPatterns:[/^#+\s*(example|sample|template)/i,/^#+\s*(code|snippet|usage)/i,/^#+\s*(input|output|result)/i]},reference:{id:"reference",name:"Reference",description:"Comprehensive references",sizeRange:{min:30,max:100},indicators:["reference","specification","api","complete","comprehensive","all","full list","documentation","schema","interface"],headingPatterns:[/^#+\s*(api|schema|interface|type)/i,/^#+\s*(parameters?|arguments?|options?)/i,/^#+\s*(methods?|functions?|endpoints?)/i,/^#+\s*(properties|fields|attributes)/i]},admin:{id:"admin",name:"Admin",description:"Administrative/operational docs",sizeRange:{min:10,max:20},indicators:["admin","administrative","operational","maintenance","ops","manage","configure","setup","deployment","monitoring"],headingPatterns:[/^#+\s*(configuration|setup|installation)/i,/^#+\s*(maintenance|monitoring|logging)/i,/^#+\s*(backup|restore|recovery)/i,/^#+\s*(troubleshooting|debugging)/i]},plan:{id:"plan",name:"Plan",description:"Phase/task/atom planning artifacts (added in 2.2.0 for persistent-planning lg-mode interop). Plans typically carry tier: plan in frontmatter; auto-classification is a fallback.",sizeRange:{min:1,max:200},indicators:["phase","task","atom","milestone","deliverable","plan","roadmap","blocker","dependency","next concrete action"],headingPatterns:[/^#+\s*(goal|scope|status)/i,/^#+\s*(phases?|tasks?|atoms?)/i,/^#+\s*(decisions? made|errors? encountered)/i,/^#+\s*(implementation notes|key questions)/i]},fact:{id:"fact",name:"Fact",description:"Atomic, single-claim, citable unit of knowledge (added in 2.3.0). Facts use last_verified + confidence instead of semver versioning. Facts typically carry tier: fact in frontmatter; auto-classification is a fallback.",sizeRange:{min:1,max:5},indicators:["claim","confidence","verify","last verified","provenance","citation","fact","hypothesis","invalidated by","consequence"],headingPatterns:[/^#+\s*(claim|the claim)/i,/^#+\s*(how to verify|verification)/i,/^#+\s*(consequences?|implications?)/i,/^#+\s*(cited by|provenance)/i]},"incident-narrative":{id:"incident-narrative",name:"Incident narrative",description:"Immutable postmortem story (added in 2.3.0). Lives at <vault-root>/incidents/<date-slug>/narrative.md. Date-stamped; uses lifecycle status (open/partial/resolved/planned) not semver.",sizeRange:{min:2,max:50},indicators:["postmortem","incident","outage","severity","resolution","timeline","root cause","remediation","symptoms","on-call"],headingPatterns:[/^#+\s*(timeline|sequence of events)/i,/^#+\s*(root cause|cause)/i,/^#+\s*(impact|severity)/i,/^#+\s*(remediation|resolution|fix)/i,/^#+\s*(lessons learned|action items|follow[-\s]ups?)/i]},"incident-facts":{id:"incident-facts",name:"Incident facts bridge",description:"Bridge document linking an incident to the facts it produced, strengthened, or weakened (added in 2.3.0). Lives at <vault-root>/incidents/<date-slug>/facts.md.",sizeRange:{min:1,max:10},indicators:["produced","strengthened","weakened","facts from","incident facts","bridges to","derived from"],headingPatterns:[/^#+\s*(produced|new facts)/i,/^#+\s*(strengthened)/i,/^#+\s*(weakened|invalidated)/i]}};function classifyTier(i){const g={guide:0,standard:0,example:0,reference:0,admin:0,plan:0,fact:0,"incident-narrative":0,"incident-facts":0};const f=[];const E=i.toLowerCase();const p=Buffer.byteLength(i,"utf8")/1024;for(const y of TIERS){const b=TIER_DEFINITIONS[y];for(const i of b.indicators){const p=new RegExp(`\\b${classifier_escapeRegExp(i)}\\b`,"gi");const b=E.match(p);if(b){g[y]+=b.length*2;if(b.length>=3){f.push(`Found indicator "${i}" ${b.length} times (${y})`)}}}for(const E of b.headingPatterns){const p=i.match(new RegExp(E.source,"gim"));if(p){g[y]+=p.length*5;f.push(`Matched heading pattern for ${y}: ${p.length} matches`)}}if(p>=b.sizeRange.min&&p<=b.sizeRange.max){g[y]+=10;f.push(`Size ${p.toFixed(1)}KB matches ${y} range`)}}const y=(i.match(/```/g)??[]).length/2;const b=i.split("\n").length;const S=y/(b/50);if(S>.5){g.example+=15;f.push("High code block ratio suggests example")}const J=(i.match(/^[\s]*[-*\d.]+\s/gm)??[]).length;const Z=J/b;if(Z>.3){g.guide+=10;g.standard+=8;f.push("High list ratio suggests guide or standard")}const $=(i.match(/^\|.*\|$/gm)??[]).length;if($>5){g.reference+=15;f.push("Multiple tables suggest reference")}const z=(i.match(/>\s*\*\*(warning|note|caution|important)/gi)??[]).length;if(z>2){g.admin+=10;f.push("Warning boxes suggest admin documentation")}let ee=0;let re="guide";for(const i of TIERS){if(g[i]>ee){ee=g[i];re=i}}const Pe=Object.values(g).sort(((i,g)=>g-i));const $t=Pe[0]??0;const tn=Pe[1]??0;const sn=$t-tn;let nn=.5;if($t>0){nn=Math.min(.5+sn/$t*.3+$t/100*.2,.95)}return{tier:re,confidence:nn,scores:g,reasoning:f}}function getTierDefinition(i){return TIER_DEFINITIONS[i]}function isValidTier(i){return TIERS.includes(i)}function getTierDisplayName(i){return TIER_DEFINITIONS[i].name}function classifier_escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function markdown_extractLinks(i){const g=[];const f=i.split("\n");const E=/\[([^\]]*)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)/g;f.forEach(((i,f)=>{let p;while((p=E.exec(i))!==null){const[i,E,y,b]=p;const S=y??"";const J=!S.startsWith("http://")&&!S.startsWith("https://")&&!S.startsWith("mailto:")&&!S.startsWith("#");const Z={text:E??"",url:S,isInternal:J,lineNumber:f+1,startIndex:p.index,endIndex:p.index+(i?.length??0)};if(b){Z.title=b}g.push(Z)}E.lastIndex=0}));return g}function extractInternalLinks(i){return markdown_extractLinks(i).filter((i=>i.isInternal))}function extractHeadings(i){const g=[];const f=i.split("\n");const E=/^(#{1,6})\s+(.+)$/;f.forEach(((i,f)=>{const p=i.match(E);if(p){g.push({level:p[1]?.length??1,text:(p[2]??"").trim(),lineNumber:f+1})}}));return g}function extractTitle(i){const g=extractHeadings(i);const f=g.find((i=>i.level===1));return f?.text??null}function countWords(i){let g=i.replace(/^---[\s\S]*?---\n*/m,"");g=g.replace(/```[\s\S]*?```/g,"");g=g.replace(/`[^`]+`/g,"");g=g.replace(/[#*_~\[\]()]/g," ");const f=g.split(/\s+/).filter((i=>i.length>0));return f.length}function calculateReadTime(i,g=200){const f=countWords(i);return Math.ceil(f/g)}function formatReadTime(i){const g=calculateReadTime(i);return`${g} minute${g===1?"":"s"}`}function createLink(i,g,f){if(f){return`[${i}](${g} "${f}")`}return`[${i}](${g})`}function createHeading(i,g=1){const f="#".repeat(Math.min(Math.max(g,1),6));return`${f} ${i}`}function createTable(i,g){const f=`| ${i.join(" | ")} |`;const E=`| ${i.map((()=>"---")).join(" | ")} |`;const p=g.map((i=>`| ${i.join(" | ")} |`));return[f,E,...p].join("\n")}function createList(i,g=false){return i.map(((i,f)=>g?`${f+1}. ${i}`:`- ${i}`)).join("\n")}function createCheckboxList(i){return i.map((i=>`- [${i.checked?"x":" "}] ${i.text}`)).join("\n")}function createCodeBlock(i,g=""){return`\`\`\`${g}\n${i}\n\`\`\``}function createInlineCode(i){return`\`${i}\``}function createBlockquote(i){return i.split("\n").map((i=>`> ${i}`)).join("\n")}function slugify(i){return i.toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}function extractExcerpt(i,g=200){let f=i.replace(/^---[\s\S]*?---\n*/m,"");f=f.replace(/^#+\s+.*$/gm,"");const E=f.split(/\n\n+/).filter((i=>i.trim().length>0));const p=E[0]??"";if(p.length<=g){return p.trim()}return p.slice(0,g).trim()+"..."}function generateMetadata(i){const{filePath:g,content:f,docsRoot:E=".documentation",existingMetadata:p={}}=i;const y={_generated:{fields:[],confidence:{}}};if(!p.title){const i=extractTitle(f);const E=formatTitleFromFileName((0,external_path_.basename)(g,".md"));y.title=i??E;y._generated.fields.push("title");y._generated.confidence["title"]=i?.9:.7}if(!p.tier){const i=classifyTier(f);y.tier=i.tier;y._generated.fields.push("tier");y._generated.confidence["tier"]=i.confidence}if(!p.domains||p.domains.length===0){const i=detectDomain(g,f,E);if(i.domain){y.domains=[i.domain];for(const g of i.alternativeDomains){if(g.confidence>.5&&y.domains.length<3){y.domains.push(g.domain)}}y._generated.fields.push("domains");y._generated.confidence["domains"]=i.confidence}}if(!p.audience||p.audience.length===0){y.audience=detectAudience(f);y._generated.fields.push("audience");y._generated.confidence["audience"]=.7}if(!p.tags||p.tags.length===0){y.tags=extractTags(f);y._generated.fields.push("tags");y._generated.confidence["tags"]=.6}if(!p.status){y.status="draft";y._generated.fields.push("status");y._generated.confidence["status"]=1}if(!p.last_updated){y.last_updated=formatDate(new Date);y._generated.fields.push("last_updated");y._generated.confidence["last_updated"]=1}if(!p.version){y.version="1.0.0";y._generated.fields.push("version");y._generated.confidence["version"]=1}y.word_count=countWords(f);y._generated.fields.push("word_count");y._generated.confidence["word_count"]=1;y.estimated_read_time=formatReadTime(f);y._generated.fields.push("estimated_read_time");y._generated.confidence["estimated_read_time"]=1;y.last_validated=formatDate(new Date);y._generated.fields.push("last_validated");y._generated.confidence["last_validated"]=1;if(!p.purpose){const i=generatePurpose(f,y.title??"");if(i){y.purpose=i;y._generated.fields.push("purpose");y._generated.confidence["purpose"]=.6}}return y}function mergeMetadata(i,g){const{_generated:f,...E}=g;return{title:i.title??E.title??"Untitled",tier:i.tier??E.tier??"guide",domains:i.domains??E.domains??["features"],audience:i.audience??E.audience??["all"],tags:i.tags??E.tags??[],status:i.status??E.status??"draft",last_updated:i.last_updated??E.last_updated??formatDate(new Date),version:i.version??E.version??"1.0.0",purpose:i.purpose??E.purpose,related_docs:i.related_docs??E.related_docs,load_priority:i.load_priority??E.load_priority,author:i.author??E.author,maintainer:i.maintainer??E.maintainer,review_frequency:i.review_frequency??E.review_frequency,implementation_status:i.implementation_status??E.implementation_status,tested:i.tested??E.tested,production_ready:i.production_ready??E.production_ready,estimated_read_time:E.estimated_read_time,word_count:E.word_count,last_validated:E.last_validated,backlinks:i.backlinks??[]}}function formatDate(i){return i.toISOString().split("T")[0]??""}function formatTitleFromFileName(i){return i.replace(/-/g," ").replace(/_/g," ").split(" ").map((i=>i.charAt(0).toUpperCase()+i.slice(1))).join(" ")}function detectAudience(i){const g=i.toLowerCase();const f=[];if(g.includes("developer")||g.includes("coding")||g.includes("api")){f.push("developers")}if(g.includes("devops")||g.includes("deploy")||g.includes("infrastructure")){f.push("devops")}if(g.includes("admin")||g.includes("configuration")||g.includes("management")){f.push("admin")}return f.length>0?f:["all"]}function extractTags(i){const g=i.toLowerCase();const f=[];const E=["api","rest","graphql","database","postgres","mysql","redis","docker","kubernetes","aws","gcp","azure","ci/cd","testing","security","authentication","authorization","oauth","jwt","react","vue","angular","node","python","typescript","javascript","fastapi","express","django","flask","nextjs","migration","deployment","monitoring","logging","caching","performance"];for(const i of E){const E=new RegExp(`\\b${i}\\b`,"gi");const p=g.match(E);if(p&&p.length>=2){f.push(i)}}return f.slice(0,10)}function generatePurpose(i,g){const f=i.replace(/^---[\s\S]*?---\n*/m,"").replace(/^#+\s+.*$/gm,"").split(/\n\n+/).filter((i=>i.trim().length>0));const E=f[0];if(E&&E.length>20&&E.length<200){const i=E.replace(/\n/g," ").replace(/\s+/g," ").trim();if(!i.startsWith("```")&&!i.startsWith("|")&&!i.startsWith("-")){return i}}if(g){return`Documentation for ${g.toLowerCase()}`}return undefined}function generateRootIndex(i){const g=formatDate(new Date);let f=`---\ntitle: Documentation Index\ntier: reference\ndomains: [root]\nstatus: active\nlast_updated: '${g}'\nversion: '1.0.0'\npurpose: Navigation hub for all documentation\n---\n\n# Documentation Index\n\n> Complete listing of all documentation organized by domain.\n\n## Overview\n\n| Domain | Documents | Description |\n|--------|-----------|-------------|\n`;for(const g of registry_getAllDomains()){const E=registry_getDomainDefinition(g);const p=i?.[g]?.length??0;f+=`| [${E.name}](#${g}) | ${p} | ${E.description} |\n`}f+=`\n---\n\n`;for(const g of registry_getAllDomains()){const E=registry_getDomainDefinition(g);const p=i?.[g]??[];f+=`## ${E.name}\n\n`;f+=`> ${E.description}\n\n`;f+=`**Path:** \`${g}/\`\n\n`;if(p.length===0){f+=`*No documents yet.*\n\n`}else{f+=`| Document | Tier | Status | Updated |\n`;f+=`|----------|------|--------|----------|\n`;for(const i of p){f+=`| [${i.title}](${i.path}) | ${i.tier} | ${i.status} | ${i.lastUpdated} |\n`}f+=`\n`}f+=`---\n\n`}f+=`## Maintenance\n\n`;f+=`- **Last generated:** ${g}\n`;f+=`- **Run maintenance:** \`npx hit-em-with-the-docs maintain\`\n`;f+=`- **Regenerate index:** \`npx hit-em-with-the-docs index\`\n`;return f}function generateDomainIndexContent(i,g=[]){const f=registry_getDomainDefinition(i);const E=formatDate(new Date);let p=`---\ntitle: ${f.name} Documentation Index\ntier: reference\ndomains: [${i}]\nstatus: active\nlast_updated: '${E}'\nversion: '1.0.0'\npurpose: Complete listing of ${i} documentation\n---\n\n# ${f.name} Documentation\n\n> ${f.description}\n\n## Overview\n\n- **Total Documents:** ${g.length}\n- **Domain:** \`${i}/\`\n- **Category:** ${f.category}\n- **Load Priority:** ${f.loadPriority}/10\n\n## Documents\n\n`;if(g.length===0){p+=`*No documents in this domain yet.*\n\n`;p+=`To add a document:\n\n`;p+=`1. Create a markdown file in this directory\n`;p+=`2. Add YAML frontmatter with required metadata\n`;p+=`3. Run \`npx hit-em-with-the-docs integrate <file>\`\n`}else{const i=groupByTier(g);for(const[g,f]of Object.entries(i)){if(f.length===0)continue;p+=`### ${capitalize(g)}s\n\n`;p+=`| Document | Status | Updated | Words |\n`;p+=`|----------|--------|---------|-------|\n`;for(const i of f){const g=i.wordCount?i.wordCount.toLocaleString():"-";p+=`| [${i.title}](${i.path}) | ${i.status} | ${i.lastUpdated} | ${g} |\n`}p+=`\n`}}p+=`## Keywords\n\n`;p+=`This domain covers: ${f.keywords.slice(0,10).join(", ")}\n\n`;const y=findRelatedDomains(i);if(y.length>0){p+=`## Related Domains\n\n`;for(const i of y){const g=registry_getDomainDefinition(i);p+=`- [${g.name}](../${i}/) - ${g.description}\n`}p+=`\n`}p+=`---\n\n`;p+=`*Last updated: ${E}*\n`;return p}function groupByTier(i){const g={guide:[],standard:[],example:[],reference:[],admin:[]};for(const f of i){const i=f.tier.toLowerCase();if(i in g){g[i].push(f)}else{g["guide"].push(f)}}return g}function findRelatedDomains(i){const g=registry_getDomainDefinition(i);const f=[];for(const E of registry_getAllDomains()){if(E===i)continue;const p=registry_getDomainDefinition(E);let y=0;for(const i of g.keywords){if(p.keywords.includes(i)){y++}}if(g.category===p.category){y+=2}if(y>0){f.push({domain:E,score:y})}}return f.sort(((i,g)=>g.score-i.score)).slice(0,3).map((i=>i.domain))}function capitalize(i){return i.charAt(0).toUpperCase()+i.slice(1)}function generateRootRegistry(){const i=formatDate(new Date);let g=`---\ntitle: Documentation Registry\ntier: reference\ndomains: [root]\nstatus: active\nlast_updated: '${i}'\nversion: '1.0.0'\npurpose: Quick reference for all documentation domains\n---\n\n# Documentation Registry\n\n> Quick reference tables for fast navigation.\n\n## Domain Quick Reference\n\n| Domain | Category | Priority | Keywords |\n|--------|----------|----------|----------|\n`;for(const i of registry_getAllDomains()){const f=registry_getDomainDefinition(i);const E=f.keywords.slice(0,3).join(", ");g+=`| [${f.name}](${i}/) | ${f.category} | ${f.loadPriority}/10 | ${E} |\n`}g+=`\n## By Category\n\n`;const f=["core","development","features","advanced"];for(const i of f){const f=getDomainsByCategory(i);g+=`### ${registry_generator_capitalize(i)}\n\n`;for(const i of f){const f=registry_getDomainDefinition(i);g+=`- **[${f.name}](${i}/)** - ${f.description}\n`}g+=`\n`}g+=`## Common Tasks\n\n`;g+=`| Task | Start Here |\n`;g+=`|------|------------|\n`;g+=`| New developer setup | [quickstart/](quickstart/) |\n`;g+=`| Coding standards | [standards/](standards/) |\n`;g+=`| API development | [api/](api/) |\n`;g+=`| Security implementation | [security/](security/) |\n`;g+=`| Database changes | [database/](database/) |\n`;g+=`| Deployment | [devops/](devops/) |\n`;g+=`| Troubleshooting | [troubleshooting/](troubleshooting/) |\n`;g+=`\n---\n\n`;g+=`*Last updated: ${i}*\n`;return g}function generateDomainRegistryContent(i,g=[]){const f=registry_getDomainDefinition(i);const E=formatDate(new Date);let p=`---\ntitle: ${f.name} Registry\ntier: reference\ndomains: [${i}]\nstatus: active\nlast_updated: '${E}'\nversion: '1.0.0'\npurpose: Quick reference for ${i} documentation\n---\n\n# ${f.name} Registry\n\n> Quick reference for ${f.description.toLowerCase()}.\n\n## At a Glance\n\n| Metric | Value |\n|--------|-------|\n| Documents | ${g.length} |\n| Category | ${f.category} |\n| Load Priority | ${f.loadPriority}/10 |\n\n`;if(g.length>0){const i=g.filter((i=>i.status==="active"));const f=[...g].sort(((i,g)=>g.lastUpdated.localeCompare(i.lastUpdated))).slice(0,5);if(i.length>0){p+=`## Active Documents\n\n`;for(const g of i.slice(0,10)){p+=`- [${g.title}](${g.path})\n`}p+=`\n`}if(f.length>0){p+=`## Recently Updated\n\n`;for(const i of f){p+=`- [${i.title}](${i.path}) - ${i.lastUpdated}\n`}p+=`\n`}p+=`## By Status\n\n`;const E=groupByStatus(g);p+=`| Status | Count |\n`;p+=`|--------|-------|\n`;for(const[i,g]of Object.entries(E)){p+=`| ${i} | ${g.length} |\n`}p+=`\n`}else{p+=`## Documents\n\n`;p+=`*No documents in this domain yet.*\n\n`}p+=`## Keywords\n\n`;p+=`\`${f.keywords.join("` `")}\`\n\n`;p+=`## See Also\n\n`;p+=`- [Full Index](INDEX.md) - Complete document listing\n`;p+=`- [Root Index](../INDEX.md) - All domains\n`;p+=`\n---\n\n`;p+=`*Last updated: ${E}*\n`;return p}function groupByStatus(i){const g={active:[],draft:[],deprecated:[],archived:[]};for(const f of i){const i=f.status.toLowerCase();if(i in g){g[i].push(f)}}return g}function registry_generator_capitalize(i){return i.charAt(0).toUpperCase()+i.slice(1)}function generateDomainIndex(i,g){const f=formatDate(new Date);return`---\ntitle: ${g.name} Documentation Index\ntier: reference\ndomains:\n - ${i}\nstatus: active\nlast_updated: '${f}'\nversion: '1.0.0'\npurpose: Complete listing of ${i} documentation\n---\n\n# ${g.name} Documentation\n\n> ${g.description}\n\n## Overview\n\n- **Domain:** \`${i}/\`\n- **Category:** ${g.category}\n- **Load Priority:** ${g.loadPriority}/10\n\n## Documents\n\n*No documents in this domain yet.*\n\n### Adding Documents\n\n1. Create a markdown file in this directory\n2. Add YAML frontmatter with required metadata:\n\n\`\`\`yaml\n---\ntitle: "Your Document Title"\ntier: guide\ndomains:\n - ${i}\nstatus: draft\nlast_updated: '${f}'\nversion: '1.0.0'\n---\n\`\`\`\n\n3. Run \`npx hit-em-with-the-docs integrate <file>\` to register\n\n## Keywords\n\nThis domain covers topics related to:\n\n${g.keywords.map((i=>`- ${i}`)).join("\n")}\n\n## Related Resources\n\n- [Domain Registry](REGISTRY.md) - Quick reference\n- [Root Index](../INDEX.md) - All documentation\n- [Standards](../standards/) - Coding standards\n\n---\n\n*Last updated: ${f}*\n`}function generateDomainRegistry(i,g){const f=formatDate(new Date);return`---\ntitle: ${g.name} Registry\ntier: reference\ndomains:\n - ${i}\nstatus: active\nlast_updated: '${f}'\nversion: '1.0.0'\npurpose: Quick reference for ${i} documentation\n---\n\n# ${g.name} Registry\n\n> Quick reference for ${g.description.toLowerCase()}.\n\n## At a Glance\n\n| Metric | Value |\n|--------|-------|\n| Documents | 0 |\n| Category | ${g.category} |\n| Load Priority | ${g.loadPriority}/10 |\n\n## Quick Links\n\n*No documents yet. Add your first document to see it listed here.*\n\n## By Tier\n\n| Tier | Count |\n|------|-------|\n| Guide | 0 |\n| Standard | 0 |\n| Example | 0 |\n| Reference | 0 |\n| Admin | 0 |\n\n## Keywords\n\n\`${g.keywords.slice(0,8).join("` `")}\`\n\n## See Also\n\n- [Full Index](INDEX.md) - Complete document listing\n- [Root Index](../INDEX.md) - All domains\n- [Root Registry](../REGISTRY.md) - All quick references\n\n---\n\n*Last updated: ${f}*\n`}const external_node_url_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:url");const external_node_path_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:path");const external_node_fs_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs");var external_node_fs_namespaceObject_0=__nccwpck_require__.t(external_node_fs_namespaceObject,2);const external_node_fs_promises_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs/promises");var external_node_events_=__nccwpck_require__(8474);var external_node_stream_=__nccwpck_require__(7075);const external_node_string_decoder_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:string_decoder");var Gt=(i,g,f)=>{let E=i instanceof RegExp?ce(i,f):i,p=g instanceof RegExp?ce(g,f):g,y=E!==null&&p!=null&&ss(E,p,f);return y&&{start:y[0],end:y[1],pre:f.slice(0,y[0]),body:f.slice(y[0]+E.length,y[1]),post:f.slice(y[1]+p.length)}},ce=(i,g)=>{let f=g.match(i);return f?f[0]:null},ss=(i,g,f)=>{let E,p,y,b,S,J=f.indexOf(i),Z=f.indexOf(g,J+1),$=J;if(J>=0&&Z>0){if(i===g)return[J,Z];for(E=[],y=f.length;$>=0&&!S;){if($===J)E.push($),J=f.indexOf(i,$+1);else if(E.length===1){let i=E.pop();i!==void 0&&(S=[i,Z])}else p=E.pop(),p!==void 0&&p<y&&(y=p,b=Z),Z=f.indexOf(g,$+1);$=J<Z&&J>=0?J:Z}E.length&&b!==void 0&&(S=[y,b])}return S};var fe="\0SLASH"+Math.random()+"\0",ue="\0OPEN"+Math.random()+"\0",qt="\0CLOSE"+Math.random()+"\0",de="\0COMMA"+Math.random()+"\0",pe="\0PERIOD"+Math.random()+"\0",is=new RegExp(fe,"g"),rs=new RegExp(ue,"g"),ns=new RegExp(qt,"g"),os=new RegExp(de,"g"),hs=new RegExp(pe,"g"),as=/\\\\/g,ls=/\\{/g,cs=/\\}/g,fs=/\\,/g,us=/\\./g,ds=1e5;function Ht(i){return isNaN(i)?i.charCodeAt(0):parseInt(i,10)}function ps(i){return i.replace(as,fe).replace(ls,ue).replace(cs,qt).replace(fs,de).replace(us,pe)}function ms(i){return i.replace(is,"\\").replace(rs,"{").replace(ns,"}").replace(os,",").replace(hs,".")}function me(i){if(!i)return[""];let g=[],f=Gt("{","}",i);if(!f)return i.split(",");let{pre:E,body:p,post:y}=f,b=E.split(",");b[b.length-1]+="{"+p+"}";let S=me(y);return y.length&&(b[b.length-1]+=S.shift(),b.push.apply(b,S)),g.push.apply(g,b),g}function ge(i,g={}){if(!i)return[];let{max:f=ds}=g;return i.slice(0,2)==="{}"&&(i="\\{\\}"+i.slice(2)),ht(ps(i),f,!0).map(ms)}function gs(i){return"{"+i+"}"}function ws(i){return/^-?0\d/.test(i)}function ys(i,g){return i<=g}function bs(i,g){return i>=g}function ht(i,g,f){let E=[],p=Gt("{","}",i);if(!p)return[i];let y=p.pre,b=p.post.length?ht(p.post,g,!1):[""];if(/\$$/.test(p.pre))for(let i=0;i<b.length&&i<g;i++){let g=y+"{"+p.body+"}"+b[i];E.push(g)}else{let S=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(p.body),J=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(p.body),Z=S||J,$=p.body.indexOf(",")>=0;if(!Z&&!$)return p.post.match(/,(?!,).*\}/)?(i=p.pre+"{"+p.body+qt+p.post,ht(i,g,!0)):[i];let z;if(Z)z=p.body.split(/\.\./);else if(z=me(p.body),z.length===1&&z[0]!==void 0&&(z=ht(z[0],g,!1).map(gs),z.length===1))return b.map((i=>p.pre+z[0]+i));let ee;if(Z&&z[0]!==void 0&&z[1]!==void 0){let i=Ht(z[0]),g=Ht(z[1]),f=Math.max(z[0].length,z[1].length),E=z.length===3&&z[2]!==void 0?Math.abs(Ht(z[2])):1,p=ys;g<i&&(E*=-1,p=bs);let y=z.some(ws);ee=[];for(let b=i;p(b,g);b+=E){let i;if(J)i=String.fromCharCode(b),i==="\\"&&(i="");else if(i=String(b),y){let g=f-i.length;if(g>0){let f=new Array(g+1).join("0");b<0?i="-"+f+i.slice(1):i=f+i}}ee.push(i)}}else{ee=[];for(let i=0;i<z.length;i++)ee.push.apply(ee,ht(z[i],g,!1))}for(let i=0;i<ee.length;i++)for(let p=0;p<b.length&&E.length<g;p++){let g=y+ee[i]+b[p];(!f||Z||g)&&E.push(g)}}return E}var at=i=>{if(typeof i!="string")throw new TypeError("invalid pattern");if(i.length>65536)throw new TypeError("pattern is too long")};var Ss={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},lt=i=>i.replace(/[[\]\\-]/g,"\\$&"),Es=i=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),we=i=>i.join(""),ye=(i,g)=>{let f=g;if(i.charAt(f)!=="[")throw new Error("not in a brace expression");let E=[],p=[],y=f+1,b=!1,S=!1,J=!1,Z=!1,$=f,z="";e:for(;y<i.length;){let g=i.charAt(y);if((g==="!"||g==="^")&&y===f+1){Z=!0,y++;continue}if(g==="]"&&b&&!J){$=y+1;break}if(b=!0,g==="\\"&&!J){J=!0,y++;continue}if(g==="["&&!J){for(let[g,[b,J,Z]]of Object.entries(Ss))if(i.startsWith(g,y)){if(z)return["$.",!1,i.length-f,!0];y+=g.length,Z?p.push(b):E.push(b),S=S||J;continue e}}if(J=!1,z){g>z?E.push(lt(z)+"-"+lt(g)):g===z&&E.push(lt(g)),z="",y++;continue}if(i.startsWith("-]",y+1)){E.push(lt(g+"-")),y+=2;continue}if(i.startsWith("-",y+1)){z=g,y+=2;continue}E.push(lt(g)),y++}if($<y)return["",!1,0,!1];if(!E.length&&!p.length)return["$.",!1,i.length-f,!0];if(p.length===0&&E.length===1&&/^\\?.$/.test(E[0])&&!Z){let i=E[0].length===2?E[0].slice(-1):E[0];return[Es(i),!1,$-f,!1]}let ee="["+(Z?"^":"")+we(E)+"]",re="["+(Z?"":"^")+we(p)+"]";return[E.length&&p.length?"("+ee+"|"+re+")":E.length?ee:re,S,$-f,!0]};var W=(i,{windowsPathsNoEscape:g=!1,magicalBraces:f=!0}={})=>f?g?i.replace(/\[([^\/\\])\]/g,"$1"):i.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):g?i.replace(/\[([^\/\\{}])\]/g,"$1"):i.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1");var xs=new Set(["!","?","+","*","@"]),be=i=>xs.has(i),vs="(?!(?:^|/)\\.\\.?(?:$|/))",Ct="(?!\\.)",Cs=new Set(["[","."]),Ts=new Set(["..","."]),As=new Set("().*{}+?[]^$\\!"),ks=i=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Kt="[^/]",Se=Kt+"*?",Ee=Kt+"+?",Q=class n{type;#E;#p;#C=!1;#I=[];#Q;#B;#m;#y=!1;#w;#b;#k=!1;constructor(i,g,f={}){this.type=i,i&&(this.#p=!0),this.#Q=g,this.#E=this.#Q?this.#Q.#E:this,this.#w=this.#E===this?f:this.#E.#w,this.#m=this.#E===this?[]:this.#E.#m,i==="!"&&!this.#E.#y&&this.#m.push(this),this.#B=this.#Q?this.#Q.#I.length:0}get hasMagic(){if(this.#p!==void 0)return this.#p;for(let i of this.#I)if(typeof i!="string"&&(i.type||i.hasMagic))return this.#p=!0;return this.#p}toString(){return this.#b!==void 0?this.#b:this.type?this.#b=this.type+"("+this.#I.map((i=>String(i))).join("|")+")":this.#b=this.#I.map((i=>String(i))).join("")}#S(){if(this!==this.#E)throw new Error("should only call on root");if(this.#y)return this;this.toString(),this.#y=!0;let i;for(;i=this.#m.pop();){if(i.type!=="!")continue;let g=i,f=g.#Q;for(;f;){for(let E=g.#B+1;!f.type&&E<f.#I.length;E++)for(let g of i.#I){if(typeof g=="string")throw new Error("string part in extglob AST??");g.copyIn(f.#I[E])}g=f,f=g.#Q}}return this}push(...i){for(let g of i)if(g!==""){if(typeof g!="string"&&!(g instanceof n&&g.#Q===this))throw new Error("invalid part: "+g);this.#I.push(g)}}toJSON(){let i=this.type===null?this.#I.slice().map((i=>typeof i=="string"?i:i.toJSON())):[this.type,...this.#I.map((i=>i.toJSON()))];return this.isStart()&&!this.type&&i.unshift([]),this.isEnd()&&(this===this.#E||this.#E.#y&&this.#Q?.type==="!")&&i.push({}),i}isStart(){if(this.#E===this)return!0;if(!this.#Q?.isStart())return!1;if(this.#B===0)return!0;let i=this.#Q;for(let g=0;g<this.#B;g++){let f=i.#I[g];if(!(f instanceof n&&f.type==="!"))return!1}return!0}isEnd(){if(this.#E===this||this.#Q?.type==="!")return!0;if(!this.#Q?.isEnd())return!1;if(!this.type)return this.#Q?.isEnd();let i=this.#Q?this.#Q.#I.length:0;return this.#B===i-1}copyIn(i){typeof i=="string"?this.push(i):this.push(i.clone(this))}clone(i){let g=new n(this.type,i);for(let i of this.#I)g.copyIn(i);return g}static#R(i,g,f,E){let p=!1,y=!1,b=-1,S=!1;if(g.type===null){let J=f,Z="";for(;J<i.length;){let f=i.charAt(J++);if(p||f==="\\"){p=!p,Z+=f;continue}if(y){J===b+1?(f==="^"||f==="!")&&(S=!0):f==="]"&&!(J===b+2&&S)&&(y=!1),Z+=f;continue}else if(f==="["){y=!0,b=J,S=!1,Z+=f;continue}if(!E.noext&&be(f)&&i.charAt(J)==="("){g.push(Z),Z="";let p=new n(f,g);J=n.#R(i,p,J,E),g.push(p);continue}Z+=f}return g.push(Z),J}let J=f+1,Z=new n(null,g),$=[],z="";for(;J<i.length;){let f=i.charAt(J++);if(p||f==="\\"){p=!p,z+=f;continue}if(y){J===b+1?(f==="^"||f==="!")&&(S=!0):f==="]"&&!(J===b+2&&S)&&(y=!1),z+=f;continue}else if(f==="["){y=!0,b=J,S=!1,z+=f;continue}if(be(f)&&i.charAt(J)==="("){Z.push(z),z="";let g=new n(f,Z);Z.push(g),J=n.#R(i,g,J,E);continue}if(f==="|"){Z.push(z),z="",$.push(Z),Z=new n(null,g);continue}if(f===")")return z===""&&g.#I.length===0&&(g.#k=!0),Z.push(z),z="",g.push(...$,Z),J;z+=f}return g.type=null,g.#p=void 0,g.#I=[i.substring(f-1)],J}static fromGlob(i,g={}){let f=new n(null,void 0,g);return n.#R(i,f,0,g),f}toMMPattern(){if(this!==this.#E)return this.#E.toMMPattern();let i=this.toString(),[g,f,E,p]=this.toRegExpSource();if(!(E||this.#p||this.#w.nocase&&!this.#w.nocaseMagicOnly&&i.toUpperCase()!==i.toLowerCase()))return f;let y=(this.#w.nocase?"i":"")+(p?"u":"");return Object.assign(new RegExp(`^${g}$`,y),{_src:g,_glob:i})}get options(){return this.#w}toRegExpSource(i){let g=i??!!this.#w.dot;if(this.#E===this&&this.#S(),!this.type){let f=this.isStart()&&this.isEnd()&&!this.#I.some((i=>typeof i!="string")),E=this.#I.map((g=>{let[E,p,y,b]=typeof g=="string"?n.#D(g,this.#p,f):g.toRegExpSource(i);return this.#p=this.#p||y,this.#C=this.#C||b,E})).join(""),p="";if(this.isStart()&&typeof this.#I[0]=="string"&&!(this.#I.length===1&&Ts.has(this.#I[0]))){let f=Cs,y=g&&f.has(E.charAt(0))||E.startsWith("\\.")&&f.has(E.charAt(2))||E.startsWith("\\.\\.")&&f.has(E.charAt(4)),b=!g&&!i&&f.has(E.charAt(0));p=y?vs:b?Ct:""}let y="";return this.isEnd()&&this.#E.#y&&this.#Q?.type==="!"&&(y="(?:$|\\/)"),[p+E+y,W(E),this.#p=!!this.#p,this.#C]}let f=this.type==="*"||this.type==="+",E=this.type==="!"?"(?:(?!(?:":"(?:",p=this.#v(g);if(this.isStart()&&this.isEnd()&&!p&&this.type!=="!"){let i=this.toString();return this.#I=[i],this.type=null,this.#p=void 0,[i,W(this.toString()),!1,!1]}let y=!f||i||g||!Ct?"":this.#v(!0);y===p&&(y=""),y&&(p=`(?:${p})(?:${y})*?`);let b="";if(this.type==="!"&&this.#k)b=(this.isStart()&&!g?Ct:"")+Ee;else{let f=this.type==="!"?"))"+(this.isStart()&&!g&&!i?Ct:"")+Se+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&y?")":this.type==="*"&&y?")?":`)${this.type}`;b=E+p+f}return[b,W(p),this.#p=!!this.#p,this.#C]}#v(i){return this.#I.map((g=>{if(typeof g=="string")throw new Error("string type in extglob ast??");let[f,E,p,y]=g.toRegExpSource(i);return this.#C=this.#C||y,f})).filter((i=>!(this.isStart()&&this.isEnd())||!!i)).join("|")}static#D(i,g,f=!1){let E=!1,p="",y=!1,b=!1;for(let S=0;S<i.length;S++){let J=i.charAt(S);if(E){E=!1,p+=(As.has(J)?"\\":"")+J;continue}if(J==="*"){if(b)continue;b=!0,p+=f&&/^[*]+$/.test(i)?Ee:Se,g=!0;continue}else b=!1;if(J==="\\"){S===i.length-1?p+="\\\\":E=!0;continue}if(J==="["){let[f,E,b,J]=ye(i,S);if(b){p+=f,y=y||E,S+=b-1,g=g||J;continue}}if(J==="?"){p+=Kt,g=!0;continue}p+=ks(J)}return[p,W(i),!!g,y]}};var tt=(i,{windowsPathsNoEscape:g=!1,magicalBraces:f=!1}={})=>f?g?i.replace(/[?*()[\]{}]/g,"[$&]"):i.replace(/[?*()[\]\\{}]/g,"\\$&"):g?i.replace(/[?*()[\]]/g,"[$&]"):i.replace(/[?*()[\]\\]/g,"\\$&");var O=(i,g,f={})=>(at(g),!f.nocomment&&g.charAt(0)==="#"?!1:new D(g,f).match(i)),Rs=/^\*+([^+@!?\*\[\(]*)$/,Os=i=>g=>!g.startsWith(".")&&g.endsWith(i),Fs=i=>g=>g.endsWith(i),Ds=i=>(i=i.toLowerCase(),g=>!g.startsWith(".")&&g.toLowerCase().endsWith(i)),Ms=i=>(i=i.toLowerCase(),g=>g.toLowerCase().endsWith(i)),Ns=/^\*+\.\*+$/,_s=i=>!i.startsWith(".")&&i.includes("."),Ls=i=>i!=="."&&i!==".."&&i.includes("."),Ws=/^\.\*+$/,Ps=i=>i!=="."&&i!==".."&&i.startsWith("."),js=/^\*+$/,Is=i=>i.length!==0&&!i.startsWith("."),zs=i=>i.length!==0&&i!=="."&&i!=="..",Bs=/^\?+([^+@!?\*\[\(]*)?$/,Us=([i,g=""])=>{let f=Ce([i]);return g?(g=g.toLowerCase(),i=>f(i)&&i.toLowerCase().endsWith(g)):f},$s=([i,g=""])=>{let f=Te([i]);return g?(g=g.toLowerCase(),i=>f(i)&&i.toLowerCase().endsWith(g)):f},Gs=([i,g=""])=>{let f=Te([i]);return g?i=>f(i)&&i.endsWith(g):f},Hs=([i,g=""])=>{let f=Ce([i]);return g?i=>f(i)&&i.endsWith(g):f},Ce=([i])=>{let g=i.length;return i=>i.length===g&&!i.startsWith(".")},Te=([i])=>{let g=i.length;return i=>i.length===g&&i!=="."&&i!==".."},Ae=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",xe={win32:{sep:"\\"},posix:{sep:"/"}},qs=Ae==="win32"?xe.win32.sep:xe.posix.sep;O.sep=qs;var A=Symbol("globstar **");O.GLOBSTAR=A;var Ks="[^/]",Vs=Ks+"*?",Ys="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Xs="(?:(?!(?:\\/|^)\\.).)*?",Js=(i,g={})=>f=>O(f,i,g);O.filter=Js;var N=(i,g={})=>Object.assign({},i,g),Zs=i=>{if(!i||typeof i!="object"||!Object.keys(i).length)return O;let g=O;return Object.assign(((f,E,p={})=>g(f,E,N(i,p))),{Minimatch:class extends g.Minimatch{constructor(g,f={}){super(g,N(i,f))}static defaults(f){return g.defaults(N(i,f)).Minimatch}},AST:class extends g.AST{constructor(g,f,E={}){super(g,f,N(i,E))}static fromGlob(f,E={}){return g.AST.fromGlob(f,N(i,E))}},unescape:(f,E={})=>g.unescape(f,N(i,E)),escape:(f,E={})=>g.escape(f,N(i,E)),filter:(f,E={})=>g.filter(f,N(i,E)),defaults:f=>g.defaults(N(i,f)),makeRe:(f,E={})=>g.makeRe(f,N(i,E)),braceExpand:(f,E={})=>g.braceExpand(f,N(i,E)),match:(f,E,p={})=>g.match(f,E,N(i,p)),sep:g.sep,GLOBSTAR:A})};O.defaults=Zs;var ke=(i,g={})=>(at(i),g.nobrace||!/\{(?:(?!\{).)*\}/.test(i)?[i]:ge(i,{max:g.braceExpandMax}));O.braceExpand=ke;var Qs=(i,g={})=>new D(i,g).makeRe();O.makeRe=Qs;var ti=(i,g,f={})=>{let E=new D(g,f);return i=i.filter((i=>E.match(i))),E.options.nonull&&!i.length&&i.push(g),i};O.match=ti;var ve=/[?*]|[+@!]\(.*?\)|\[|\]/,ei=i=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),D=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(i,g={}){at(i),g=g||{},this.options=g,this.pattern=i,this.platform=g.platform||Ae,this.isWindows=this.platform==="win32";let f="allowWindowsEscape";this.windowsPathsNoEscape=!!g.windowsPathsNoEscape||g[f]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!g.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!g.nonegate,this.comment=!1,this.empty=!1,this.partial=!!g.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=g.windowsNoMagicRoot!==void 0?g.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let i of this.set)for(let g of i)if(typeof g!="string")return!0;return!1}debug(...i){}make(){let i=this.pattern,g=this.options;if(!g.nocomment&&i.charAt(0)==="#"){this.comment=!0;return}if(!i){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],g.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);let f=this.globSet.map((i=>this.slashSplit(i)));this.globParts=this.preprocess(f),this.debug(this.pattern,this.globParts);let E=this.globParts.map(((i,g,f)=>{if(this.isWindows&&this.windowsNoMagicRoot){let g=i[0]===""&&i[1]===""&&(i[2]==="?"||!ve.test(i[2]))&&!ve.test(i[3]),f=/^[a-z]:/i.test(i[0]);if(g)return[...i.slice(0,4),...i.slice(4).map((i=>this.parse(i)))];if(f)return[i[0],...i.slice(1).map((i=>this.parse(i)))]}return i.map((i=>this.parse(i)))}));if(this.debug(this.pattern,E),this.set=E.filter((i=>i.indexOf(!1)===-1)),this.isWindows)for(let i=0;i<this.set.length;i++){let g=this.set[i];g[0]===""&&g[1]===""&&this.globParts[i][2]==="?"&&typeof g[3]=="string"&&/^[a-z]:$/i.test(g[3])&&(g[2]="?")}this.debug(this.pattern,this.set)}preprocess(i){if(this.options.noglobstar)for(let g=0;g<i.length;g++)for(let f=0;f<i[g].length;f++)i[g][f]==="**"&&(i[g][f]="*");let{optimizationLevel:g=1}=this.options;return g>=2?(i=this.firstPhasePreProcess(i),i=this.secondPhasePreProcess(i)):g>=1?i=this.levelOneOptimize(i):i=this.adjascentGlobstarOptimize(i),i}adjascentGlobstarOptimize(i){return i.map((i=>{let g=-1;for(;(g=i.indexOf("**",g+1))!==-1;){let f=g;for(;i[f+1]==="**";)f++;f!==g&&i.splice(g,f-g)}return i}))}levelOneOptimize(i){return i.map((i=>(i=i.reduce(((i,g)=>{let f=i[i.length-1];return g==="**"&&f==="**"?i:g===".."&&f&&f!==".."&&f!=="."&&f!=="**"?(i.pop(),i):(i.push(g),i)}),[]),i.length===0?[""]:i)))}levelTwoFileOptimize(i){Array.isArray(i)||(i=this.slashSplit(i));let g=!1;do{if(g=!1,!this.preserveMultipleSlashes){for(let f=1;f<i.length-1;f++){let E=i[f];f===1&&E===""&&i[0]===""||(E==="."||E==="")&&(g=!0,i.splice(f,1),f--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(g=!0,i.pop())}let f=0;for(;(f=i.indexOf("..",f+1))!==-1;){let E=i[f-1];E&&E!=="."&&E!==".."&&E!=="**"&&(g=!0,i.splice(f-1,2),f-=2)}}while(g);return i.length===0?[""]:i}firstPhasePreProcess(i){let g=!1;do{g=!1;for(let f of i){let E=-1;for(;(E=f.indexOf("**",E+1))!==-1;){let p=E;for(;f[p+1]==="**";)p++;p>E&&f.splice(E+1,p-E);let y=f[E+1],b=f[E+2],S=f[E+3];if(y!==".."||!b||b==="."||b===".."||!S||S==="."||S==="..")continue;g=!0,f.splice(E,1);let J=f.slice(0);J[E]="**",i.push(J),E--}if(!this.preserveMultipleSlashes){for(let i=1;i<f.length-1;i++){let E=f[i];i===1&&E===""&&f[0]===""||(E==="."||E==="")&&(g=!0,f.splice(i,1),i--)}f[0]==="."&&f.length===2&&(f[1]==="."||f[1]==="")&&(g=!0,f.pop())}let p=0;for(;(p=f.indexOf("..",p+1))!==-1;){let i=f[p-1];if(i&&i!=="."&&i!==".."&&i!=="**"){g=!0;let i=p===1&&f[p+1]==="**"?["."]:[];f.splice(p-1,2,...i),f.length===0&&f.push(""),p-=2}}}}while(g);return i}secondPhasePreProcess(i){for(let g=0;g<i.length-1;g++)for(let f=g+1;f<i.length;f++){let E=this.partsMatch(i[g],i[f],!this.preserveMultipleSlashes);if(E){i[g]=[],i[f]=E;break}}return i.filter((i=>i.length))}partsMatch(i,g,f=!1){let E=0,p=0,y=[],b="";for(;E<i.length&&p<g.length;)if(i[E]===g[p])y.push(b==="b"?g[p]:i[E]),E++,p++;else if(f&&i[E]==="**"&&g[p]===i[E+1])y.push(i[E]),E++;else if(f&&g[p]==="**"&&i[E]===g[p+1])y.push(g[p]),p++;else if(i[E]==="*"&&g[p]&&(this.options.dot||!g[p].startsWith("."))&&g[p]!=="**"){if(b==="b")return!1;b="a",y.push(i[E]),E++,p++}else if(g[p]==="*"&&i[E]&&(this.options.dot||!i[E].startsWith("."))&&i[E]!=="**"){if(b==="a")return!1;b="b",y.push(g[p]),E++,p++}else return!1;return i.length===g.length&&y}parseNegate(){if(this.nonegate)return;let i=this.pattern,g=!1,f=0;for(let E=0;E<i.length&&i.charAt(E)==="!";E++)g=!g,f++;f&&(this.pattern=i.slice(f)),this.negate=g}matchOne(i,g,f=!1){let E=this.options;if(this.isWindows){let f=typeof i[0]=="string"&&/^[a-z]:$/i.test(i[0]),E=!f&&i[0]===""&&i[1]===""&&i[2]==="?"&&/^[a-z]:$/i.test(i[3]),p=typeof g[0]=="string"&&/^[a-z]:$/i.test(g[0]),y=!p&&g[0]===""&&g[1]===""&&g[2]==="?"&&typeof g[3]=="string"&&/^[a-z]:$/i.test(g[3]),b=E?3:f?0:void 0,S=y?3:p?0:void 0;if(typeof b=="number"&&typeof S=="number"){let[f,E]=[i[b],g[S]];f.toLowerCase()===E.toLowerCase()&&(g[S]=f,S>b?g=g.slice(S):b>S&&(i=i.slice(b)))}}let{optimizationLevel:p=1}=this.options;p>=2&&(i=this.levelTwoFileOptimize(i)),this.debug("matchOne",this,{file:i,pattern:g}),this.debug("matchOne",i.length,g.length);for(var y=0,b=0,S=i.length,J=g.length;y<S&&b<J;y++,b++){this.debug("matchOne loop");var Z=g[b],$=i[y];if(this.debug(g,Z,$),Z===!1)return!1;if(Z===A){this.debug("GLOBSTAR",[g,Z,$]);var z=y,ee=b+1;if(ee===J){for(this.debug("** at the end");y<S;y++)if(i[y]==="."||i[y]===".."||!E.dot&&i[y].charAt(0)===".")return!1;return!0}for(;z<S;){var re=i[z];if(this.debug(`\nglobstar while`,i,z,g,ee,re),this.matchOne(i.slice(z),g.slice(ee),f))return this.debug("globstar found match!",z,S,re),!0;if(re==="."||re===".."||!E.dot&&re.charAt(0)==="."){this.debug("dot detected!",i,z,g,ee);break}this.debug("globstar swallow a segment, and continue"),z++}return!!(f&&(this.debug(`\n>>> no match, partial?`,i,z,g,ee),z===S))}let p;if(typeof Z=="string"?(p=$===Z,this.debug("string match",Z,$,p)):(p=Z.test($),this.debug("pattern match",Z,$,p)),!p)return!1}if(y===S&&b===J)return!0;if(y===S)return f;if(b===J)return y===S-1&&i[y]==="";throw new Error("wtf?")}braceExpand(){return ke(this.pattern,this.options)}parse(i){at(i);let g=this.options;if(i==="**")return A;if(i==="")return"";let f,E=null;(f=i.match(js))?E=g.dot?zs:Is:(f=i.match(Rs))?E=(g.nocase?g.dot?Ms:Ds:g.dot?Fs:Os)(f[1]):(f=i.match(Bs))?E=(g.nocase?g.dot?$s:Us:g.dot?Gs:Hs)(f):(f=i.match(Ns))?E=g.dot?Ls:_s:(f=i.match(Ws))&&(E=Ps);let p=Q.fromGlob(i,this.options).toMMPattern();return E&&typeof p=="object"&&Reflect.defineProperty(p,"test",{value:E}),p}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let i=this.set;if(!i.length)return this.regexp=!1,this.regexp;let g=this.options,f=g.noglobstar?Vs:g.dot?Ys:Xs,E=new Set(g.nocase?["i"]:[]),p=i.map((i=>{let g=i.map((i=>{if(i instanceof RegExp)for(let g of i.flags.split(""))E.add(g);return typeof i=="string"?ei(i):i===A?A:i._src}));g.forEach(((i,E)=>{let p=g[E+1],y=g[E-1];i!==A||y===A||(y===void 0?p!==void 0&&p!==A?g[E+1]="(?:\\/|"+f+"\\/)?"+p:g[E]=f:p===void 0?g[E-1]=y+"(?:\\/|\\/"+f+")?":p!==A&&(g[E-1]=y+"(?:\\/|\\/"+f+"\\/)"+p,g[E+1]=A))}));let p=g.filter((i=>i!==A));if(this.partial&&p.length>=1){let i=[];for(let g=1;g<=p.length;g++)i.push(p.slice(0,g).join("/"));return"(?:"+i.join("|")+")"}return p.join("/")})).join("|"),[y,b]=i.length>1?["(?:",")"]:["",""];p="^"+y+p+b+"$",this.partial&&(p="^(?:\\/|"+y+p.slice(1,-1)+b+")$"),this.negate&&(p="^(?!"+p+").+$");try{this.regexp=new RegExp(p,[...E].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(i){return this.preserveMultipleSlashes?i.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(i)?["",...i.split(/\/+/)]:i.split(/\/+/)}match(i,g=this.partial){if(this.debug("match",i,this.pattern),this.comment)return!1;if(this.empty)return i==="";if(i==="/"&&g)return!0;let f=this.options;this.isWindows&&(i=i.split("\\").join("/"));let E=this.slashSplit(i);this.debug(this.pattern,"split",E);let p=this.set;this.debug(this.pattern,"set",p);let y=E[E.length-1];if(!y)for(let i=E.length-2;!y&&i>=0;i--)y=E[i];for(let i=0;i<p.length;i++){let b=p[i],S=E;if(f.matchBase&&b.length===1&&(S=[y]),this.matchOne(S,b,g))return f.flipNegate?!0:!this.negate}return f.flipNegate?!1:this.negate}static defaults(i){return O.defaults(i).Minimatch}};O.AST=Q;O.Minimatch=D;O.escape=tt;O.unescape=W;var si=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Oe=new Set,Vt=typeof process=="object"&&process?process:{},Fe=(i,g,f,E)=>{typeof Vt.emitWarning=="function"?Vt.emitWarning(i,g,f,E):console.error(`[${f}] ${g}: ${i}`)},At=globalThis.AbortController,Re=globalThis.AbortSignal;if(typeof At>"u"){Re=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,g){this._onabort.push(g)}},At=class{constructor(){t()}signal=new Re;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let g of this.signal._onabort)g(i);this.signal.onabort?.(i)}}};let i=Vt.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{i&&(i=!1,Fe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var ii=i=>!Oe.has(i);var q=i=>i&&i===Math.floor(i)&&i>0&&isFinite(i),De=i=>q(i)?i<=Math.pow(2,8)?Uint8Array:i<=Math.pow(2,16)?Uint16Array:i<=Math.pow(2,32)?Uint32Array:i<=Number.MAX_SAFE_INTEGER?Tt:null:null,Tt=class extends Array{constructor(i){super(i),this.fill(0)}},ri=class ct{heap;length;static#E=!1;static create(i){let g=De(i);if(!g)return[];ct.#E=!0;let f=new ct(i,g);return ct.#E=!1,f}constructor(i,g){if(!ct.#E)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new g(i),this.length=0}push(i){this.heap[this.length++]=i}pop(){return this.heap[--this.length]}},ft=class Me{#E;#p;#C;#I;#Q;#B;#m;#y;get perf(){return this.#y}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#w;#b;#k;#S;#R;#v;#D;#N;#F;#T;#_;#L;#M;#x;#U;#O;#P;#Y;#G;static unsafeExposeInternals(i){return{starts:i.#M,ttls:i.#x,autopurgeTimers:i.#U,sizes:i.#L,keyMap:i.#k,keyList:i.#S,valList:i.#R,next:i.#v,prev:i.#D,get head(){return i.#N},get tail(){return i.#F},free:i.#T,isBackgroundFetch:g=>i.#H(g),backgroundFetch:(g,f,E,p)=>i.#J(g,f,E,p),moveToTail:g=>i.#V(g),indexes:g=>i.#W(g),rindexes:g=>i.#q(g),isStale:g=>i.#j(g)}}get max(){return this.#E}get maxSize(){return this.#p}get calculatedSize(){return this.#b}get size(){return this.#w}get fetchMethod(){return this.#B}get memoMethod(){return this.#m}get dispose(){return this.#C}get onInsert(){return this.#I}get disposeAfter(){return this.#Q}constructor(i){let{max:g=0,ttl:f,ttlResolution:E=1,ttlAutopurge:p,updateAgeOnGet:y,updateAgeOnHas:b,allowStale:S,dispose:J,onInsert:Z,disposeAfter:$,noDisposeOnSet:z,noUpdateTTL:ee,maxSize:re=0,maxEntrySize:Pe=0,sizeCalculation:$t,fetchMethod:tn,memoMethod:sn,noDeleteOnFetchRejection:nn,noDeleteOnStaleGet:rn,allowStaleOnFetchRejection:An,allowStaleOnFetchAbort:on,ignoreFetchAbort:an,perf:cn}=i;if(cn!==void 0&&typeof cn?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#y=cn??si,g!==0&&!q(g))throw new TypeError("max option must be a nonnegative integer");let ln=g?De(g):Array;if(!ln)throw new Error("invalid max value: "+g);if(this.#E=g,this.#p=re,this.maxEntrySize=Pe||this.#p,this.sizeCalculation=$t,this.sizeCalculation){if(!this.#p&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(sn!==void 0&&typeof sn!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#m=sn,tn!==void 0&&typeof tn!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#B=tn,this.#P=!!tn,this.#k=new Map,this.#S=new Array(g).fill(void 0),this.#R=new Array(g).fill(void 0),this.#v=new ln(g),this.#D=new ln(g),this.#N=0,this.#F=0,this.#T=ri.create(g),this.#w=0,this.#b=0,typeof J=="function"&&(this.#C=J),typeof Z=="function"&&(this.#I=Z),typeof $=="function"?(this.#Q=$,this.#_=[]):(this.#Q=void 0,this.#_=void 0),this.#O=!!this.#C,this.#G=!!this.#I,this.#Y=!!this.#Q,this.noDisposeOnSet=!!z,this.noUpdateTTL=!!ee,this.noDeleteOnFetchRejection=!!nn,this.allowStaleOnFetchRejection=!!An,this.allowStaleOnFetchAbort=!!on,this.ignoreFetchAbort=!!an,this.maxEntrySize!==0){if(this.#p!==0&&!q(this.#p))throw new TypeError("maxSize must be a positive integer if specified");if(!q(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#Z()}if(this.allowStale=!!S,this.noDeleteOnStaleGet=!!rn,this.updateAgeOnGet=!!y,this.updateAgeOnHas=!!b,this.ttlResolution=q(E)||E===0?E:1,this.ttlAutopurge=!!p,this.ttl=f||0,this.ttl){if(!q(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#K()}if(this.#E===0&&this.ttl===0&&this.#p===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#E&&!this.#p){let i="LRU_CACHE_UNBOUNDED";ii(i)&&(Oe.add(i),Fe("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",i,Me))}}getRemainingTTL(i){return this.#k.has(i)?1/0:0}#K(){let i=new Tt(this.#E),g=new Tt(this.#E);this.#x=i,this.#M=g;let f=this.ttlAutopurge?new Array(this.#E):void 0;this.#U=f,this.#$=(E,p,y=this.#y.now())=>{if(g[E]=p!==0?y:0,i[E]=p,f?.[E]&&(clearTimeout(f[E]),f[E]=void 0),p!==0&&f){let i=setTimeout((()=>{this.#j(E)&&this.#z(this.#S[E],"expire")}),p+1);i.unref&&i.unref(),f[E]=i}},this.#X=f=>{g[f]=i[f]!==0?this.#y.now():0},this.#ee=(f,p)=>{if(i[p]){let y=i[p],b=g[p];if(!y||!b)return;f.ttl=y,f.start=b,f.now=E||r();let S=f.now-b;f.remainingTTL=y-S}};let E=0,r=()=>{let i=this.#y.now();if(this.ttlResolution>0){E=i;let g=setTimeout((()=>E=0),this.ttlResolution);g.unref&&g.unref()}return i};this.getRemainingTTL=f=>{let p=this.#k.get(f);if(p===void 0)return 0;let y=i[p],b=g[p];if(!y||!b)return 1/0;let S=(E||r())-b;return y-S},this.#j=f=>{let p=g[f],y=i[f];return!!y&&!!p&&(E||r())-p>y}}#X=()=>{};#ee=()=>{};#$=()=>{};#j=()=>!1;#Z(){let i=new Tt(this.#E);this.#b=0,this.#L=i,this.#te=g=>{this.#b-=i[g],i[g]=0},this.#se=(i,g,f,E)=>{if(this.#H(g))return 0;if(!q(f))if(E){if(typeof E!="function")throw new TypeError("sizeCalculation must be a function");if(f=E(g,i),!q(f))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return f},this.#ne=(g,f,E)=>{if(i[g]=f,this.#p){let f=this.#p-i[g];for(;this.#b>f;)this.#re(!0)}this.#b+=i[g],E&&(E.entrySize=f,E.totalCalculatedSize=this.#b)}}#te=i=>{};#ne=(i,g,f)=>{};#se=(i,g,f,E)=>{if(f||E)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#W({allowStale:i=this.allowStale}={}){if(this.#w)for(let g=this.#F;!(!this.#Ae(g)||((i||!this.#j(g))&&(yield g),g===this.#N));)g=this.#D[g]}*#q({allowStale:i=this.allowStale}={}){if(this.#w)for(let g=this.#N;!(!this.#Ae(g)||((i||!this.#j(g))&&(yield g),g===this.#F));)g=this.#v[g]}#Ae(i){return i!==void 0&&this.#k.get(this.#S[i])===i}*entries(){for(let i of this.#W())this.#R[i]!==void 0&&this.#S[i]!==void 0&&!this.#H(this.#R[i])&&(yield[this.#S[i],this.#R[i]])}*rentries(){for(let i of this.#q())this.#R[i]!==void 0&&this.#S[i]!==void 0&&!this.#H(this.#R[i])&&(yield[this.#S[i],this.#R[i]])}*keys(){for(let i of this.#W()){let g=this.#S[i];g!==void 0&&!this.#H(this.#R[i])&&(yield g)}}*rkeys(){for(let i of this.#q()){let g=this.#S[i];g!==void 0&&!this.#H(this.#R[i])&&(yield g)}}*values(){for(let i of this.#W())this.#R[i]!==void 0&&!this.#H(this.#R[i])&&(yield this.#R[i])}*rvalues(){for(let i of this.#q())this.#R[i]!==void 0&&!this.#H(this.#R[i])&&(yield this.#R[i])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(i,g={}){for(let f of this.#W()){let E=this.#R[f],p=this.#H(E)?E.__staleWhileFetching:E;if(p!==void 0&&i(p,this.#S[f],this))return this.get(this.#S[f],g)}}forEach(i,g=this){for(let f of this.#W()){let E=this.#R[f],p=this.#H(E)?E.__staleWhileFetching:E;p!==void 0&&i.call(g,p,this.#S[f],this)}}rforEach(i,g=this){for(let f of this.#q()){let E=this.#R[f],p=this.#H(E)?E.__staleWhileFetching:E;p!==void 0&&i.call(g,p,this.#S[f],this)}}purgeStale(){let i=!1;for(let g of this.#q({allowStale:!0}))this.#j(g)&&(this.#z(this.#S[g],"expire"),i=!0);return i}info(i){let g=this.#k.get(i);if(g===void 0)return;let f=this.#R[g],E=this.#H(f)?f.__staleWhileFetching:f;if(E===void 0)return;let p={value:E};if(this.#x&&this.#M){let i=this.#x[g],f=this.#M[g];if(i&&f){let g=i-(this.#y.now()-f);p.ttl=g,p.start=Date.now()}}return this.#L&&(p.size=this.#L[g]),p}dump(){let i=[];for(let g of this.#W({allowStale:!0})){let f=this.#S[g],E=this.#R[g],p=this.#H(E)?E.__staleWhileFetching:E;if(p===void 0||f===void 0)continue;let y={value:p};if(this.#x&&this.#M){y.ttl=this.#x[g];let i=this.#y.now()-this.#M[g];y.start=Math.floor(Date.now()-i)}this.#L&&(y.size=this.#L[g]),i.unshift([f,y])}return i}load(i){this.clear();for(let[g,f]of i){if(f.start){let i=Date.now()-f.start;f.start=this.#y.now()-i}this.set(g,f.value,f)}}set(i,g,f={}){if(g===void 0)return this.delete(i),this;let{ttl:E=this.ttl,start:p,noDisposeOnSet:y=this.noDisposeOnSet,sizeCalculation:b=this.sizeCalculation,status:S}=f,{noUpdateTTL:J=this.noUpdateTTL}=f,Z=this.#se(i,g,f.size||0,b);if(this.maxEntrySize&&Z>this.maxEntrySize)return S&&(S.set="miss",S.maxEntrySizeExceeded=!0),this.#z(i,"set"),this;let $=this.#w===0?void 0:this.#k.get(i);if($===void 0)$=this.#w===0?this.#F:this.#T.length!==0?this.#T.pop():this.#w===this.#E?this.#re(!1):this.#w,this.#S[$]=i,this.#R[$]=g,this.#k.set(i,$),this.#v[this.#F]=$,this.#D[$]=this.#F,this.#F=$,this.#w++,this.#ne($,Z,S),S&&(S.set="add"),J=!1,this.#G&&this.#I?.(g,i,"add");else{this.#V($);let f=this.#R[$];if(g!==f){if(this.#P&&this.#H(f)){f.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:g}=f;g!==void 0&&!y&&(this.#O&&this.#C?.(g,i,"set"),this.#Y&&this.#_?.push([g,i,"set"]))}else y||(this.#O&&this.#C?.(f,i,"set"),this.#Y&&this.#_?.push([f,i,"set"]));if(this.#te($),this.#ne($,Z,S),this.#R[$]=g,S){S.set="replace";let i=f&&this.#H(f)?f.__staleWhileFetching:f;i!==void 0&&(S.oldValue=i)}}else S&&(S.set="update");this.#G&&this.onInsert?.(g,i,g===f?"update":"replace")}if(E!==0&&!this.#x&&this.#K(),this.#x&&(J||this.#$($,E,p),S&&this.#ee(S,$)),!y&&this.#Y&&this.#_){let i=this.#_,g;for(;g=i?.shift();)this.#Q?.(...g)}return this}pop(){try{for(;this.#w;){let i=this.#R[this.#N];if(this.#re(!0),this.#H(i)){if(i.__staleWhileFetching)return i.__staleWhileFetching}else if(i!==void 0)return i}}finally{if(this.#Y&&this.#_){let i=this.#_,g;for(;g=i?.shift();)this.#Q?.(...g)}}}#re(i){let g=this.#N,f=this.#S[g],E=this.#R[g];return this.#P&&this.#H(E)?E.__abortController.abort(new Error("evicted")):(this.#O||this.#Y)&&(this.#O&&this.#C?.(E,f,"evict"),this.#Y&&this.#_?.push([E,f,"evict"])),this.#te(g),this.#U?.[g]&&(clearTimeout(this.#U[g]),this.#U[g]=void 0),i&&(this.#S[g]=void 0,this.#R[g]=void 0,this.#T.push(g)),this.#w===1?(this.#N=this.#F=0,this.#T.length=0):this.#N=this.#v[g],this.#k.delete(f),this.#w--,g}has(i,g={}){let{updateAgeOnHas:f=this.updateAgeOnHas,status:E}=g,p=this.#k.get(i);if(p!==void 0){let i=this.#R[p];if(this.#H(i)&&i.__staleWhileFetching===void 0)return!1;if(this.#j(p))E&&(E.has="stale",this.#ee(E,p));else return f&&this.#X(p),E&&(E.has="hit",this.#ee(E,p)),!0}else E&&(E.has="miss");return!1}peek(i,g={}){let{allowStale:f=this.allowStale}=g,E=this.#k.get(i);if(E===void 0||!f&&this.#j(E))return;let p=this.#R[E];return this.#H(p)?p.__staleWhileFetching:p}#J(i,g,f,E){let p=g===void 0?void 0:this.#R[g];if(this.#H(p))return p;let y=new At,{signal:b}=f;b?.addEventListener("abort",(()=>y.abort(b.reason)),{signal:y.signal});let S={signal:y.signal,options:f,context:E},l=(E,p=!1)=>{let{aborted:b}=y.signal,Z=f.ignoreFetchAbort&&E!==void 0,$=f.ignoreFetchAbort||!!(f.allowStaleOnFetchAbort&&E!==void 0);if(f.status&&(b&&!p?(f.status.fetchAborted=!0,f.status.fetchError=y.signal.reason,Z&&(f.status.fetchAbortIgnored=!0)):f.status.fetchResolved=!0),b&&!Z&&!p)return c(y.signal.reason,$);let z=J,ee=this.#R[g];return(ee===J||Z&&p&&ee===void 0)&&(E===void 0?z.__staleWhileFetching!==void 0?this.#R[g]=z.__staleWhileFetching:this.#z(i,"fetch"):(f.status&&(f.status.fetchUpdated=!0),this.set(i,E,S.options))),E},u=i=>(f.status&&(f.status.fetchRejected=!0,f.status.fetchError=i),c(i,!1)),c=(E,p)=>{let{aborted:b}=y.signal,S=b&&f.allowStaleOnFetchAbort,Z=S||f.allowStaleOnFetchRejection,$=Z||f.noDeleteOnFetchRejection,z=J;if(this.#R[g]===J&&(!$||!p&&z.__staleWhileFetching===void 0?this.#z(i,"fetch"):S||(this.#R[g]=z.__staleWhileFetching)),Z)return f.status&&z.__staleWhileFetching!==void 0&&(f.status.returnedStale=!0),z.__staleWhileFetching;if(z.__returned===z)throw E},d=(g,E)=>{let b=this.#B?.(i,p,S);b&&b instanceof Promise&&b.then((i=>g(i===void 0?void 0:i)),E),y.signal.addEventListener("abort",(()=>{(!f.ignoreFetchAbort||f.allowStaleOnFetchAbort)&&(g(void 0),f.allowStaleOnFetchAbort&&(g=i=>l(i,!0)))}))};f.status&&(f.status.fetchDispatched=!0);let J=new Promise(d).then(l,u),Z=Object.assign(J,{__abortController:y,__staleWhileFetching:p,__returned:void 0});return g===void 0?(this.set(i,Z,{...S.options,status:void 0}),g=this.#k.get(i)):this.#R[g]=Z,Z}#H(i){if(!this.#P)return!1;let g=i;return!!g&&g instanceof Promise&&g.hasOwnProperty("__staleWhileFetching")&&g.__abortController instanceof At}async fetch(i,g={}){let{allowStale:f=this.allowStale,updateAgeOnGet:E=this.updateAgeOnGet,noDeleteOnStaleGet:p=this.noDeleteOnStaleGet,ttl:y=this.ttl,noDisposeOnSet:b=this.noDisposeOnSet,size:S=0,sizeCalculation:J=this.sizeCalculation,noUpdateTTL:Z=this.noUpdateTTL,noDeleteOnFetchRejection:$=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:z=this.allowStaleOnFetchRejection,ignoreFetchAbort:ee=this.ignoreFetchAbort,allowStaleOnFetchAbort:re=this.allowStaleOnFetchAbort,context:Pe,forceRefresh:$t=!1,status:tn,signal:sn}=g;if(!this.#P)return tn&&(tn.fetch="get"),this.get(i,{allowStale:f,updateAgeOnGet:E,noDeleteOnStaleGet:p,status:tn});let nn={allowStale:f,updateAgeOnGet:E,noDeleteOnStaleGet:p,ttl:y,noDisposeOnSet:b,size:S,sizeCalculation:J,noUpdateTTL:Z,noDeleteOnFetchRejection:$,allowStaleOnFetchRejection:z,allowStaleOnFetchAbort:re,ignoreFetchAbort:ee,status:tn,signal:sn},rn=this.#k.get(i);if(rn===void 0){tn&&(tn.fetch="miss");let g=this.#J(i,rn,nn,Pe);return g.__returned=g}else{let g=this.#R[rn];if(this.#H(g)){let i=f&&g.__staleWhileFetching!==void 0;return tn&&(tn.fetch="inflight",i&&(tn.returnedStale=!0)),i?g.__staleWhileFetching:g.__returned=g}let p=this.#j(rn);if(!$t&&!p)return tn&&(tn.fetch="hit"),this.#V(rn),E&&this.#X(rn),tn&&this.#ee(tn,rn),g;let y=this.#J(i,rn,nn,Pe),b=y.__staleWhileFetching!==void 0&&f;return tn&&(tn.fetch=p?"stale":"refresh",b&&p&&(tn.returnedStale=!0)),b?y.__staleWhileFetching:y.__returned=y}}async forceFetch(i,g={}){let f=await this.fetch(i,g);if(f===void 0)throw new Error("fetch() returned undefined");return f}memo(i,g={}){let f=this.#m;if(!f)throw new Error("no memoMethod provided to constructor");let{context:E,forceRefresh:p,...y}=g,b=this.get(i,y);if(!p&&b!==void 0)return b;let S=f(i,b,{options:y,context:E});return this.set(i,S,y),S}get(i,g={}){let{allowStale:f=this.allowStale,updateAgeOnGet:E=this.updateAgeOnGet,noDeleteOnStaleGet:p=this.noDeleteOnStaleGet,status:y}=g,b=this.#k.get(i);if(b!==void 0){let g=this.#R[b],S=this.#H(g);return y&&this.#ee(y,b),this.#j(b)?(y&&(y.get="stale"),S?(y&&f&&g.__staleWhileFetching!==void 0&&(y.returnedStale=!0),f?g.__staleWhileFetching:void 0):(p||this.#z(i,"expire"),y&&f&&(y.returnedStale=!0),f?g:void 0)):(y&&(y.get="hit"),S?g.__staleWhileFetching:(this.#V(b),E&&this.#X(b),g))}else y&&(y.get="miss")}#ie(i,g){this.#D[g]=i,this.#v[i]=g}#V(i){i!==this.#F&&(i===this.#N?this.#N=this.#v[i]:this.#ie(this.#D[i],this.#v[i]),this.#ie(this.#F,i),this.#F=i)}delete(i){return this.#z(i,"delete")}#z(i,g){let f=!1;if(this.#w!==0){let E=this.#k.get(i);if(E!==void 0)if(this.#U?.[E]&&(clearTimeout(this.#U?.[E]),this.#U[E]=void 0),f=!0,this.#w===1)this.#oe(g);else{this.#te(E);let f=this.#R[E];if(this.#H(f)?f.__abortController.abort(new Error("deleted")):(this.#O||this.#Y)&&(this.#O&&this.#C?.(f,i,g),this.#Y&&this.#_?.push([f,i,g])),this.#k.delete(i),this.#S[E]=void 0,this.#R[E]=void 0,E===this.#F)this.#F=this.#D[E];else if(E===this.#N)this.#N=this.#v[E];else{let i=this.#D[E];this.#v[i]=this.#v[E];let g=this.#v[E];this.#D[g]=this.#D[E]}this.#w--,this.#T.push(E)}}if(this.#Y&&this.#_?.length){let i=this.#_,g;for(;g=i?.shift();)this.#Q?.(...g)}return f}clear(){return this.#oe("delete")}#oe(i){for(let g of this.#q({allowStale:!0})){let f=this.#R[g];if(this.#H(f))f.__abortController.abort(new Error("deleted"));else{let E=this.#S[g];this.#O&&this.#C?.(f,E,i),this.#Y&&this.#_?.push([f,E,i])}}if(this.#k.clear(),this.#R.fill(void 0),this.#S.fill(void 0),this.#x&&this.#M){this.#x.fill(0),this.#M.fill(0);for(let i of this.#U??[])i!==void 0&&clearTimeout(i);this.#U?.fill(void 0)}if(this.#L&&this.#L.fill(0),this.#N=0,this.#F=0,this.#T.length=0,this.#b=0,this.#w=0,this.#Y&&this.#_){let i=this.#_,g;for(;g=i?.shift();)this.#Q?.(...g)}}};var Ne=typeof process=="object"&&process?process:{stdout:null,stderr:null},oi=i=>!!i&&typeof i=="object"&&(i instanceof V||i instanceof external_node_stream_||hi(i)||ai(i)),hi=i=>!!i&&typeof i=="object"&&i instanceof external_node_events_.EventEmitter&&typeof i.pipe=="function"&&i.pipe!==external_node_stream_.Writable.prototype.pipe,ai=i=>!!i&&typeof i=="object"&&i instanceof external_node_events_.EventEmitter&&typeof i.write=="function"&&typeof i.end=="function",G=Symbol("EOF"),H=Symbol("maybeEmitEnd"),K=Symbol("emittedEnd"),kt=Symbol("emittingEnd"),ut=Symbol("emittedError"),Rt=Symbol("closed"),_e=Symbol("read"),Ot=Symbol("flush"),Le=Symbol("flushChunk"),P=Symbol("encoding"),et=Symbol("decoder"),v=Symbol("flowing"),dt=Symbol("paused"),st=Symbol("resume"),C=Symbol("buffer"),F=Symbol("pipes"),T=Symbol("bufferLength"),Yt=Symbol("bufferPush"),Ft=Symbol("bufferShift"),k=Symbol("objectMode"),x=Symbol("destroyed"),Xt=Symbol("error"),Jt=Symbol("emitData"),We=Symbol("emitEnd"),Zt=Symbol("emitEnd2"),B=Symbol("async"),Qt=Symbol("abort"),Dt=Symbol("aborted"),pt=Symbol("signal"),Y=Symbol("dataListeners"),M=Symbol("discarded"),mt=i=>Promise.resolve().then(i),li=i=>i(),ci=i=>i==="end"||i==="finish"||i==="prefinish",fi=i=>i instanceof ArrayBuffer||!!i&&typeof i=="object"&&i.constructor&&i.constructor.name==="ArrayBuffer"&&i.byteLength>=0,ui=i=>!Buffer.isBuffer(i)&&ArrayBuffer.isView(i),Mt=class{src;dest;opts;ondrain;constructor(i,g,f){this.src=i,this.dest=g,this.opts=f,this.ondrain=()=>i[st](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(i){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},te=class extends Mt{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(i,g,f){super(i,g,f),this.proxyErrors=i=>this.dest.emit("error",i),i.on("error",this.proxyErrors)}},di=i=>!!i.objectMode,pi=i=>!i.objectMode&&!!i.encoding&&i.encoding!=="buffer",V=class extends external_node_events_.EventEmitter{[v]=!1;[dt]=!1;[F]=[];[C]=[];[k];[P];[B];[et];[G]=!1;[K]=!1;[kt]=!1;[Rt]=!1;[ut]=null;[T]=0;[x]=!1;[pt];[Dt]=!1;[Y]=0;[M]=!1;writable=!0;readable=!0;constructor(...i){let g=i[0]||{};if(super(),g.objectMode&&typeof g.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");di(g)?(this[k]=!0,this[P]=null):pi(g)?(this[P]=g.encoding,this[k]=!1):(this[k]=!1,this[P]=null),this[B]=!!g.async,this[et]=this[P]?new external_node_string_decoder_namespaceObject.StringDecoder(this[P]):null,g&&g.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[C]}),g&&g.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[F]});let{signal:f}=g;f&&(this[pt]=f,f.aborted?this[Qt]():f.addEventListener("abort",(()=>this[Qt]())))}get bufferLength(){return this[T]}get encoding(){return this[P]}set encoding(i){throw new Error("Encoding must be set at instantiation time")}setEncoding(i){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[k]}set objectMode(i){throw new Error("objectMode must be set at instantiation time")}get async(){return this[B]}set async(i){this[B]=this[B]||!!i}[Qt](){this[Dt]=!0,this.emit("abort",this[pt]?.reason),this.destroy(this[pt]?.reason)}get aborted(){return this[Dt]}set aborted(i){}write(i,g,f){if(this[Dt])return!1;if(this[G])throw new Error("write after end");if(this[x])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof g=="function"&&(f=g,g="utf8"),g||(g="utf8");let E=this[B]?mt:li;if(!this[k]&&!Buffer.isBuffer(i)){if(ui(i))i=Buffer.from(i.buffer,i.byteOffset,i.byteLength);else if(fi(i))i=Buffer.from(i);else if(typeof i!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[k]?(this[v]&&this[T]!==0&&this[Ot](!0),this[v]?this.emit("data",i):this[Yt](i),this[T]!==0&&this.emit("readable"),f&&E(f),this[v]):i.length?(typeof i=="string"&&!(g===this[P]&&!this[et]?.lastNeed)&&(i=Buffer.from(i,g)),Buffer.isBuffer(i)&&this[P]&&(i=this[et].write(i)),this[v]&&this[T]!==0&&this[Ot](!0),this[v]?this.emit("data",i):this[Yt](i),this[T]!==0&&this.emit("readable"),f&&E(f),this[v]):(this[T]!==0&&this.emit("readable"),f&&E(f),this[v])}read(i){if(this[x])return null;if(this[M]=!1,this[T]===0||i===0||i&&i>this[T])return this[H](),null;this[k]&&(i=null),this[C].length>1&&!this[k]&&(this[C]=[this[P]?this[C].join(""):Buffer.concat(this[C],this[T])]);let g=this[_e](i||null,this[C][0]);return this[H](),g}[_e](i,g){if(this[k])this[Ft]();else{let f=g;i===f.length||i===null?this[Ft]():typeof f=="string"?(this[C][0]=f.slice(i),g=f.slice(0,i),this[T]-=i):(this[C][0]=f.subarray(i),g=f.subarray(0,i),this[T]-=i)}return this.emit("data",g),!this[C].length&&!this[G]&&this.emit("drain"),g}end(i,g,f){return typeof i=="function"&&(f=i,i=void 0),typeof g=="function"&&(f=g,g="utf8"),i!==void 0&&this.write(i,g),f&&this.once("end",f),this[G]=!0,this.writable=!1,(this[v]||!this[dt])&&this[H](),this}[st](){this[x]||(!this[Y]&&!this[F].length&&(this[M]=!0),this[dt]=!1,this[v]=!0,this.emit("resume"),this[C].length?this[Ot]():this[G]?this[H]():this.emit("drain"))}resume(){return this[st]()}pause(){this[v]=!1,this[dt]=!0,this[M]=!1}get destroyed(){return this[x]}get flowing(){return this[v]}get paused(){return this[dt]}[Yt](i){this[k]?this[T]+=1:this[T]+=i.length,this[C].push(i)}[Ft](){return this[k]?this[T]-=1:this[T]-=this[C][0].length,this[C].shift()}[Ot](i=!1){do{}while(this[Le](this[Ft]())&&this[C].length);!i&&!this[C].length&&!this[G]&&this.emit("drain")}[Le](i){return this.emit("data",i),this[v]}pipe(i,g){if(this[x])return i;this[M]=!1;let f=this[K];return g=g||{},i===Ne.stdout||i===Ne.stderr?g.end=!1:g.end=g.end!==!1,g.proxyErrors=!!g.proxyErrors,f?g.end&&i.end():(this[F].push(g.proxyErrors?new te(this,i,g):new Mt(this,i,g)),this[B]?mt((()=>this[st]())):this[st]()),i}unpipe(i){let g=this[F].find((g=>g.dest===i));g&&(this[F].length===1?(this[v]&&this[Y]===0&&(this[v]=!1),this[F]=[]):this[F].splice(this[F].indexOf(g),1),g.unpipe())}addListener(i,g){return this.on(i,g)}on(i,g){let f=super.on(i,g);if(i==="data")this[M]=!1,this[Y]++,!this[F].length&&!this[v]&&this[st]();else if(i==="readable"&&this[T]!==0)super.emit("readable");else if(ci(i)&&this[K])super.emit(i),this.removeAllListeners(i);else if(i==="error"&&this[ut]){let i=g;this[B]?mt((()=>i.call(this,this[ut]))):i.call(this,this[ut])}return f}removeListener(i,g){return this.off(i,g)}off(i,g){let f=super.off(i,g);return i==="data"&&(this[Y]=this.listeners("data").length,this[Y]===0&&!this[M]&&!this[F].length&&(this[v]=!1)),f}removeAllListeners(i){let g=super.removeAllListeners(i);return(i==="data"||i===void 0)&&(this[Y]=0,!this[M]&&!this[F].length&&(this[v]=!1)),g}get emittedEnd(){return this[K]}[H](){!this[kt]&&!this[K]&&!this[x]&&this[C].length===0&&this[G]&&(this[kt]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Rt]&&this.emit("close"),this[kt]=!1)}emit(i,...g){let f=g[0];if(i!=="error"&&i!=="close"&&i!==x&&this[x])return!1;if(i==="data")return!this[k]&&!f?!1:this[B]?(mt((()=>this[Jt](f))),!0):this[Jt](f);if(i==="end")return this[We]();if(i==="close"){if(this[Rt]=!0,!this[K]&&!this[x])return!1;let i=super.emit("close");return this.removeAllListeners("close"),i}else if(i==="error"){this[ut]=f,super.emit(Xt,f);let i=!this[pt]||this.listeners("error").length?super.emit("error",f):!1;return this[H](),i}else if(i==="resume"){let i=super.emit("resume");return this[H](),i}else if(i==="finish"||i==="prefinish"){let g=super.emit(i);return this.removeAllListeners(i),g}let E=super.emit(i,...g);return this[H](),E}[Jt](i){for(let g of this[F])g.dest.write(i)===!1&&this.pause();let g=this[M]?!1:super.emit("data",i);return this[H](),g}[We](){return this[K]?!1:(this[K]=!0,this.readable=!1,this[B]?(mt((()=>this[Zt]())),!0):this[Zt]())}[Zt](){if(this[et]){let i=this[et].end();if(i){for(let g of this[F])g.dest.write(i);this[M]||super.emit("data",i)}}for(let i of this[F])i.end();let i=super.emit("end");return this.removeAllListeners("end"),i}async collect(){let i=Object.assign([],{dataLength:0});this[k]||(i.dataLength=0);let g=this.promise();return this.on("data",(g=>{i.push(g),this[k]||(i.dataLength+=g.length)})),await g,i}async concat(){if(this[k])throw new Error("cannot concat in objectMode");let i=await this.collect();return this[P]?i.join(""):Buffer.concat(i,i.dataLength)}async promise(){return new Promise(((i,g)=>{this.on(x,(()=>g(new Error("stream destroyed")))),this.on("error",(i=>g(i))),this.on("end",(()=>i()))}))}[Symbol.asyncIterator](){this[M]=!1;let i=!1,e=async()=>(this.pause(),i=!0,{value:void 0,done:!0});return{next:()=>{if(i)return e();let g=this.read();if(g!==null)return Promise.resolve({done:!1,value:g});if(this[G])return e();let f,E,h=i=>{this.off("data",a),this.off("end",l),this.off(x,u),e(),E(i)},a=i=>{this.off("error",h),this.off("end",l),this.off(x,u),this.pause(),f({value:i,done:!!this[G]})},l=()=>{this.off("error",h),this.off("data",a),this.off(x,u),e(),f({done:!0,value:void 0})},u=()=>h(new Error("stream destroyed"));return new Promise(((i,g)=>{E=g,f=i,this.once(x,u),this.once("error",h),this.once("end",l),this.once("data",a)}))},throw:e,return:e,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[M]=!1;let i=!1,e=()=>(this.pause(),this.off(Xt,e),this.off(x,e),this.off("end",e),i=!0,{done:!0,value:void 0}),s=()=>{if(i)return e();let g=this.read();return g===null?e():{done:!1,value:g}};return this.once("end",e),this.once(Xt,e),this.once(x,e),{next:s,throw:e,return:e,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(i){if(this[x])return i?this.emit("error",i):this.emit(x),this;this[x]=!0,this[M]=!0,this[C].length=0,this[T]=0;let g=this;return typeof g.close=="function"&&!this[Rt]&&g.close(),i?this.emit("error",i):this.emit(x),this}static get isStream(){return oi}};var vi=external_fs_.realpathSync.native,wt={lstatSync:external_fs_.lstatSync,readdir:external_fs_.readdir,readdirSync:external_fs_.readdirSync,readlinkSync:external_fs_.readlinkSync,realpathSync:vi,promises:{lstat:external_node_fs_promises_namespaceObject.lstat,readdir:external_node_fs_promises_namespaceObject.readdir,readlink:external_node_fs_promises_namespaceObject.readlink,realpath:external_node_fs_promises_namespaceObject.realpath}},Ue=i=>!i||i===wt||i===external_node_fs_namespaceObject_0?wt:{...wt,...i,promises:{...wt.promises,...i.promises||{}}},$e=/^\\\\\?\\([a-z]:)\\?$/i,Ri=i=>i.replace(/\//g,"\\").replace($e,"$1\\"),Oi=/[\\\/]/,L=0,Ge=1,He=2,U=4,qe=6,Ke=8,X=10,Ve=12,_=15,gt=~_,se=16,je=32,yt=64,j=128,Nt=256,Lt=512,Ie=yt|j|Lt,Fi=1023,ie=i=>i.isFile()?Ke:i.isDirectory()?U:i.isSymbolicLink()?X:i.isCharacterDevice()?He:i.isBlockDevice()?qe:i.isSocket()?Ve:i.isFIFO()?Ge:L,ze=new ft({max:2**12}),bt=i=>{let g=ze.get(i);if(g)return g;let f=i.normalize("NFKD");return ze.set(i,f),f},Be=new ft({max:2**12}),_t=i=>{let g=Be.get(i);if(g)return g;let f=bt(i.toLowerCase());return Be.set(i,f),f},Wt=class extends ft{constructor(){super({max:256})}},ne=class extends ft{constructor(i=16*1024){super({maxSize:i,sizeCalculation:i=>i.length+1})}},Ye=Symbol("PathScurry setAsCwd"),R=class{name;root;roots;parent;nocase;isCWD=!1;#E;#p;get dev(){return this.#p}#C;get mode(){return this.#C}#I;get nlink(){return this.#I}#Q;get uid(){return this.#Q}#B;get gid(){return this.#B}#m;get rdev(){return this.#m}#y;get blksize(){return this.#y}#w;get ino(){return this.#w}#b;get size(){return this.#b}#k;get blocks(){return this.#k}#S;get atimeMs(){return this.#S}#R;get mtimeMs(){return this.#R}#v;get ctimeMs(){return this.#v}#D;get birthtimeMs(){return this.#D}#N;get atime(){return this.#N}#F;get mtime(){return this.#F}#T;get ctime(){return this.#T}#_;get birthtime(){return this.#_}#L;#M;#x;#U;#O;#P;#Y;#G;#K;#X;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(i,g=L,f,E,p,y,b){this.name=i,this.#L=p?_t(i):bt(i),this.#Y=g&Fi,this.nocase=p,this.roots=E,this.root=f||this,this.#G=y,this.#x=b.fullpath,this.#O=b.relative,this.#P=b.relativePosix,this.parent=b.parent,this.parent?this.#E=this.parent.#E:this.#E=Ue(b.fs)}depth(){return this.#M!==void 0?this.#M:this.parent?this.#M=this.parent.depth()+1:this.#M=0}childrenCache(){return this.#G}resolve(i){if(!i)return this;let g=this.getRootString(i),f=i.substring(g.length).split(this.splitSep);return g?this.getRoot(g).#ee(f):this.#ee(f)}#ee(i){let g=this;for(let f of i)g=g.child(f);return g}children(){let i=this.#G.get(this);if(i)return i;let g=Object.assign([],{provisional:0});return this.#G.set(this,g),this.#Y&=~se,g}child(i,g){if(i===""||i===".")return this;if(i==="..")return this.parent||this;let f=this.children(),E=this.nocase?_t(i):bt(i);for(let i of f)if(i.#L===E)return i;let p=this.parent?this.sep:"",y=this.#x?this.#x+p+i:void 0,b=this.newChild(i,L,{...g,parent:this,fullpath:y});return this.canReaddir()||(b.#Y|=j),f.push(b),b}relative(){if(this.isCWD)return"";if(this.#O!==void 0)return this.#O;let i=this.name,g=this.parent;if(!g)return this.#O=this.name;let f=g.relative();return f+(!f||!g.parent?"":this.sep)+i}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#P!==void 0)return this.#P;let i=this.name,g=this.parent;if(!g)return this.#P=this.fullpathPosix();let f=g.relativePosix();return f+(!f||!g.parent?"":"/")+i}fullpath(){if(this.#x!==void 0)return this.#x;let i=this.name,g=this.parent;if(!g)return this.#x=this.name;let f=g.fullpath()+(g.parent?this.sep:"")+i;return this.#x=f}fullpathPosix(){if(this.#U!==void 0)return this.#U;if(this.sep==="/")return this.#U=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#U=`//?/${i}`:this.#U=i}let i=this.parent,g=i.fullpathPosix(),f=g+(!g||!i.parent?"":"/")+this.name;return this.#U=f}isUnknown(){return(this.#Y&_)===L}isType(i){return this[`is${i}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#Y&_)===Ke}isDirectory(){return(this.#Y&_)===U}isCharacterDevice(){return(this.#Y&_)===He}isBlockDevice(){return(this.#Y&_)===qe}isFIFO(){return(this.#Y&_)===Ge}isSocket(){return(this.#Y&_)===Ve}isSymbolicLink(){return(this.#Y&X)===X}lstatCached(){return this.#Y&je?this:void 0}readlinkCached(){return this.#K}realpathCached(){return this.#X}readdirCached(){let i=this.children();return i.slice(0,i.provisional)}canReadlink(){if(this.#K)return!0;if(!this.parent)return!1;let i=this.#Y&_;return!(i!==L&&i!==X||this.#Y&Nt||this.#Y&j)}calledReaddir(){return!!(this.#Y&se)}isENOENT(){return!!(this.#Y&j)}isNamed(i){return this.nocase?this.#L===_t(i):this.#L===bt(i)}async readlink(){let i=this.#K;if(i)return i;if(this.canReadlink()&&this.parent)try{let i=await this.#E.promises.readlink(this.fullpath()),g=(await this.parent.realpath())?.resolve(i);if(g)return this.#K=g}catch(i){this.#q(i.code);return}}readlinkSync(){let i=this.#K;if(i)return i;if(this.canReadlink()&&this.parent)try{let i=this.#E.readlinkSync(this.fullpath()),g=this.parent.realpathSync()?.resolve(i);if(g)return this.#K=g}catch(i){this.#q(i.code);return}}#$(i){this.#Y|=se;for(let g=i.provisional;g<i.length;g++){let f=i[g];f&&f.#j()}}#j(){this.#Y&j||(this.#Y=(this.#Y|j)&gt,this.#Z())}#Z(){let i=this.children();i.provisional=0;for(let g of i)g.#j()}#te(){this.#Y|=Lt,this.#ne()}#ne(){if(this.#Y&yt)return;let i=this.#Y;(i&_)===U&&(i&=gt),this.#Y=i|yt,this.#Z()}#se(i=""){i==="ENOTDIR"||i==="EPERM"?this.#ne():i==="ENOENT"?this.#j():this.children().provisional=0}#W(i=""){i==="ENOTDIR"?this.parent.#ne():i==="ENOENT"&&this.#j()}#q(i=""){let g=this.#Y;g|=Nt,i==="ENOENT"&&(g|=j),(i==="EINVAL"||i==="UNKNOWN")&&(g&=gt),this.#Y=g,i==="ENOTDIR"&&this.parent&&this.parent.#ne()}#Ae(i,g){return this.#J(i,g)||this.#re(i,g)}#re(i,g){let f=ie(i),E=this.newChild(i.name,f,{parent:this}),p=E.#Y&_;return p!==U&&p!==X&&p!==L&&(E.#Y|=yt),g.unshift(E),g.provisional++,E}#J(i,g){for(let f=g.provisional;f<g.length;f++){let E=g[f];if((this.nocase?_t(i.name):bt(i.name))===E.#L)return this.#H(i,E,f,g)}}#H(i,g,f,E){let p=g.name;return g.#Y=g.#Y&gt|ie(i),p!==i.name&&(g.name=i.name),f!==E.provisional&&(f===E.length-1?E.pop():E.splice(f,1),E.unshift(g)),E.provisional++,g}async lstat(){if((this.#Y&j)===0)try{return this.#ie(await this.#E.promises.lstat(this.fullpath())),this}catch(i){this.#W(i.code)}}lstatSync(){if((this.#Y&j)===0)try{return this.#ie(this.#E.lstatSync(this.fullpath())),this}catch(i){this.#W(i.code)}}#ie(i){let{atime:g,atimeMs:f,birthtime:E,birthtimeMs:p,blksize:y,blocks:b,ctime:S,ctimeMs:J,dev:Z,gid:$,ino:z,mode:ee,mtime:re,mtimeMs:Pe,nlink:$t,rdev:tn,size:sn,uid:nn}=i;this.#N=g,this.#S=f,this.#_=E,this.#D=p,this.#y=y,this.#k=b,this.#T=S,this.#v=J,this.#p=Z,this.#B=$,this.#w=z,this.#C=ee,this.#F=re,this.#R=Pe,this.#I=$t,this.#m=tn,this.#b=sn,this.#Q=nn;let rn=ie(i);this.#Y=this.#Y&gt|rn|je,rn!==L&&rn!==U&&rn!==X&&(this.#Y|=yt)}#V=[];#z=!1;#oe(i){this.#z=!1;let g=this.#V.slice();this.#V.length=0,g.forEach((g=>g(null,i)))}readdirCB(i,g=!1){if(!this.canReaddir()){g?i(null,[]):queueMicrotask((()=>i(null,[])));return}let f=this.children();if(this.calledReaddir()){let E=f.slice(0,f.provisional);g?i(null,E):queueMicrotask((()=>i(null,E)));return}if(this.#V.push(i),this.#z)return;this.#z=!0;let E=this.fullpath();this.#E.readdir(E,{withFileTypes:!0},((i,g)=>{if(i)this.#se(i.code),f.provisional=0;else{for(let i of g)this.#Ae(i,f);this.#$(f)}this.#oe(f.slice(0,f.provisional))}))}#ae;async readdir(){if(!this.canReaddir())return[];let i=this.children();if(this.calledReaddir())return i.slice(0,i.provisional);let g=this.fullpath();if(this.#ae)await this.#ae;else{let s=()=>{};this.#ae=new Promise((i=>s=i));try{for(let f of await this.#E.promises.readdir(g,{withFileTypes:!0}))this.#Ae(f,i);this.#$(i)}catch(g){this.#se(g.code),i.provisional=0}this.#ae=void 0,s()}return i.slice(0,i.provisional)}readdirSync(){if(!this.canReaddir())return[];let i=this.children();if(this.calledReaddir())return i.slice(0,i.provisional);let g=this.fullpath();try{for(let f of this.#E.readdirSync(g,{withFileTypes:!0}))this.#Ae(f,i);this.#$(i)}catch(g){this.#se(g.code),i.provisional=0}return i.slice(0,i.provisional)}canReaddir(){if(this.#Y&Ie)return!1;let i=_&this.#Y;return i===L||i===U||i===X}shouldWalk(i,g){return(this.#Y&U)===U&&!(this.#Y&Ie)&&!i.has(this)&&(!g||g(this))}async realpath(){if(this.#X)return this.#X;if(!((Lt|Nt|j)&this.#Y))try{let i=await this.#E.promises.realpath(this.fullpath());return this.#X=this.resolve(i)}catch{this.#te()}}realpathSync(){if(this.#X)return this.#X;if(!((Lt|Nt|j)&this.#Y))try{let i=this.#E.realpathSync(this.fullpath());return this.#X=this.resolve(i)}catch{this.#te()}}[Ye](i){if(i===this)return;i.isCWD=!1,this.isCWD=!0;let g=new Set([]),f=[],E=this;for(;E&&E.parent;)g.add(E),E.#O=f.join(this.sep),E.#P=f.join("/"),E=E.parent,f.push("..");for(E=i;E&&E.parent&&!g.has(E);)E.#O=void 0,E.#P=void 0,E=E.parent}},Pt=class n extends R{sep="\\";splitSep=Oi;constructor(i,g=L,f,E,p,y,b){super(i,g,f,E,p,y,b)}newChild(i,g=L,f={}){return new n(i,g,this.root,this.roots,this.nocase,this.childrenCache(),f)}getRootString(i){return external_node_path_namespaceObject.win32.parse(i).root}getRoot(i){if(i=Ri(i.toUpperCase()),i===this.root.name)return this.root;for(let[g,f]of Object.entries(this.roots))if(this.sameRoot(i,g))return this.roots[i]=f;return this.roots[i]=new it(i,this).root}sameRoot(i,g=this.root.name){return i=i.toUpperCase().replace(/\//g,"\\").replace($e,"$1\\"),i===g}},jt=class n extends R{splitSep="/";sep="/";constructor(i,g=L,f,E,p,y,b){super(i,g,f,E,p,y,b)}getRootString(i){return i.startsWith("/")?"/":""}getRoot(i){return this.root}newChild(i,g=L,f={}){return new n(i,g,this.root,this.roots,this.nocase,this.childrenCache(),f)}},It=class{root;rootPath;roots;cwd;#E;#p;#C;nocase;#I;constructor(i=process.cwd(),g,f,{nocase:E,childrenCacheSize:p=16*1024,fs:y=wt}={}){this.#I=Ue(y),(i instanceof URL||i.startsWith("file://"))&&(i=(0,external_node_url_namespaceObject.fileURLToPath)(i));let b=g.resolve(i);this.roots=Object.create(null),this.rootPath=this.parseRootPath(b),this.#E=new Wt,this.#p=new Wt,this.#C=new ne(p);let S=b.substring(this.rootPath.length).split(f);if(S.length===1&&!S[0]&&S.pop(),E===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=E,this.root=this.newRoot(this.#I),this.roots[this.rootPath]=this.root;let J=this.root,Z=S.length-1,$=g.sep,z=this.rootPath,ee=!1;for(let i of S){let g=Z--;J=J.child(i,{relative:new Array(g).fill("..").join($),relativePosix:new Array(g).fill("..").join("/"),fullpath:z+=(ee?"":$)+i}),ee=!0}this.cwd=J}depth(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),i.depth()}childrenCache(){return this.#C}resolve(...i){let g="";for(let f=i.length-1;f>=0;f--){let E=i[f];if(!(!E||E===".")&&(g=g?`${E}/${g}`:E,this.isAbsolute(E)))break}let f=this.#E.get(g);if(f!==void 0)return f;let E=this.cwd.resolve(g).fullpath();return this.#E.set(g,E),E}resolvePosix(...i){let g="";for(let f=i.length-1;f>=0;f--){let E=i[f];if(!(!E||E===".")&&(g=g?`${E}/${g}`:E,this.isAbsolute(E)))break}let f=this.#p.get(g);if(f!==void 0)return f;let E=this.cwd.resolve(g).fullpathPosix();return this.#p.set(g,E),E}relative(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),i.relative()}relativePosix(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),i.relativePosix()}basename(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),i.name}dirname(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),(i.parent||i).fullpath()}async readdir(i=this.cwd,g={withFileTypes:!0}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f}=g;if(i.canReaddir()){let g=await i.readdir();return f?g:g.map((i=>i.name))}else return[]}readdirSync(i=this.cwd,g={withFileTypes:!0}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f=!0}=g;return i.canReaddir()?f?i.readdirSync():i.readdirSync().map((i=>i.name)):[]}async lstat(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),i.lstat()}lstatSync(i=this.cwd){return typeof i=="string"&&(i=this.cwd.resolve(i)),i.lstatSync()}async readlink(i=this.cwd,{withFileTypes:g}={withFileTypes:!1}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i.withFileTypes,i=this.cwd);let f=await i.readlink();return g?f:f?.fullpath()}readlinkSync(i=this.cwd,{withFileTypes:g}={withFileTypes:!1}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i.withFileTypes,i=this.cwd);let f=i.readlinkSync();return g?f:f?.fullpath()}async realpath(i=this.cwd,{withFileTypes:g}={withFileTypes:!1}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i.withFileTypes,i=this.cwd);let f=await i.realpath();return g?f:f?.fullpath()}realpathSync(i=this.cwd,{withFileTypes:g}={withFileTypes:!1}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i.withFileTypes,i=this.cwd);let f=i.realpathSync();return g?f:f?.fullpath()}async walk(i=this.cwd,g={}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f=!0,follow:E=!1,filter:p,walkFilter:y}=g,b=[];(!p||p(i))&&b.push(f?i:i.fullpath());let S=new Set,l=(i,g)=>{S.add(i),i.readdirCB(((i,J)=>{if(i)return g(i);let Z=J.length;if(!Z)return g();let w=()=>{--Z===0&&g()};for(let i of J)(!p||p(i))&&b.push(f?i:i.fullpath()),E&&i.isSymbolicLink()?i.realpath().then((i=>i?.isUnknown()?i.lstat():i)).then((i=>i?.shouldWalk(S,y)?l(i,w):w())):i.shouldWalk(S,y)?l(i,w):w()}),!0)},J=i;return new Promise(((i,g)=>{l(J,(f=>{if(f)return g(f);i(b)}))}))}walkSync(i=this.cwd,g={}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f=!0,follow:E=!1,filter:p,walkFilter:y}=g,b=[];(!p||p(i))&&b.push(f?i:i.fullpath());let S=new Set([i]);for(let i of S){let g=i.readdirSync();for(let i of g){(!p||p(i))&&b.push(f?i:i.fullpath());let g=i;if(i.isSymbolicLink()){if(!(E&&(g=i.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(S,y)&&S.add(g)}}return b}[Symbol.asyncIterator](){return this.iterate()}iterate(i=this.cwd,g={}){return typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd),this.stream(i,g)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(i=this.cwd,g={}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f=!0,follow:E=!1,filter:p,walkFilter:y}=g;(!p||p(i))&&(yield f?i:i.fullpath());let b=new Set([i]);for(let i of b){let g=i.readdirSync();for(let i of g){(!p||p(i))&&(yield f?i:i.fullpath());let g=i;if(i.isSymbolicLink()){if(!(E&&(g=i.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(b,y)&&b.add(g)}}}stream(i=this.cwd,g={}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f=!0,follow:E=!1,filter:p,walkFilter:y}=g,b=new V({objectMode:!0});(!p||p(i))&&b.write(f?i:i.fullpath());let S=new Set,J=[i],Z=0,c=()=>{let i=!1;for(;!i;){let g=J.shift();if(!g){Z===0&&b.end();return}Z++,S.add(g);let m=(g,z,ee=!1)=>{if(g)return b.emit("error",g);if(E&&!ee){let i=[];for(let g of z)g.isSymbolicLink()&&i.push(g.realpath().then((i=>i?.isUnknown()?i.lstat():i)));if(i.length){Promise.all(i).then((()=>m(null,z,!0)));return}}for(let g of z)g&&(!p||p(g))&&(b.write(f?g:g.fullpath())||(i=!0));Z--;for(let i of z){let g=i.realpathCached()||i;g.shouldWalk(S,y)&&J.push(g)}i&&!b.flowing?b.once("drain",c):$||c()},$=!0;g.readdirCB(m,!0),$=!1}};return c(),b}streamSync(i=this.cwd,g={}){typeof i=="string"?i=this.cwd.resolve(i):i instanceof R||(g=i,i=this.cwd);let{withFileTypes:f=!0,follow:E=!1,filter:p,walkFilter:y}=g,b=new V({objectMode:!0}),S=new Set;(!p||p(i))&&b.write(f?i:i.fullpath());let J=[i],Z=0,c=()=>{let i=!1;for(;!i;){let g=J.shift();if(!g){Z===0&&b.end();return}Z++,S.add(g);let $=g.readdirSync();for(let g of $)(!p||p(g))&&(b.write(f?g:g.fullpath())||(i=!0));Z--;for(let i of $){let g=i;if(i.isSymbolicLink()){if(!(E&&(g=i.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(S,y)&&J.push(g)}}i&&!b.flowing&&b.once("drain",c)};return c(),b}chdir(i=this.cwd){let g=this.cwd;this.cwd=typeof i=="string"?this.cwd.resolve(i):i,this.cwd[Ye](g)}},it=class extends It{sep="\\";constructor(i=process.cwd(),g={}){let{nocase:f=!0}=g;super(i,external_node_path_namespaceObject.win32,"\\",{...g,nocase:f}),this.nocase=f;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(i){return external_node_path_namespaceObject.win32.parse(i).root.toUpperCase()}newRoot(i){return new Pt(this.rootPath,U,void 0,this.roots,this.nocase,this.childrenCache(),{fs:i})}isAbsolute(i){return i.startsWith("/")||i.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(i)}},rt=class extends It{sep="/";constructor(i=process.cwd(),g={}){let{nocase:f=!1}=g;super(i,external_node_path_namespaceObject.posix,"/",{...g,nocase:f}),this.nocase=f}parseRootPath(i){return"/"}newRoot(i){return new jt(this.rootPath,U,void 0,this.roots,this.nocase,this.childrenCache(),{fs:i})}isAbsolute(i){return i.startsWith("/")}},St=class extends rt{constructor(i=process.cwd(),g={}){let{nocase:f=!0}=g;super(i,{...g,nocase:f})}},Cr=process.platform==="win32"?Pt:jt,Xe=process.platform==="win32"?it:process.platform==="darwin"?St:rt;var Di=i=>i.length>=1,Mi=i=>i.length>=1,Ni=Symbol.for("nodejs.util.inspect.custom"),nt=class n{#E;#p;#C;length;#I;#Q;#B;#m;#y;#w;#b=!0;constructor(i,g,f,E){if(!Di(i))throw new TypeError("empty pattern list");if(!Mi(g))throw new TypeError("empty glob list");if(g.length!==i.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=i.length,f<0||f>=this.length)throw new TypeError("index out of range");if(this.#E=i,this.#p=g,this.#C=f,this.#I=E,this.#C===0){if(this.isUNC()){let[i,g,f,E,...p]=this.#E,[y,b,S,J,...Z]=this.#p;p[0]===""&&(p.shift(),Z.shift());let $=[i,g,f,E,""].join("/"),z=[y,b,S,J,""].join("/");this.#E=[$,...p],this.#p=[z,...Z],this.length=this.#E.length}else if(this.isDrive()||this.isAbsolute()){let[i,...g]=this.#E,[f,...E]=this.#p;g[0]===""&&(g.shift(),E.shift());let p=i+"/",y=f+"/";this.#E=[p,...g],this.#p=[y,...E],this.length=this.#E.length}}}[Ni](){return"Pattern <"+this.#p.slice(this.#C).join("/")+">"}pattern(){return this.#E[this.#C]}isString(){return typeof this.#E[this.#C]=="string"}isGlobstar(){return this.#E[this.#C]===A}isRegExp(){return this.#E[this.#C]instanceof RegExp}globString(){return this.#B=this.#B||(this.#C===0?this.isAbsolute()?this.#p[0]+this.#p.slice(1).join("/"):this.#p.join("/"):this.#p.slice(this.#C).join("/"))}hasMore(){return this.length>this.#C+1}rest(){return this.#Q!==void 0?this.#Q:this.hasMore()?(this.#Q=new n(this.#E,this.#p,this.#C+1,this.#I),this.#Q.#w=this.#w,this.#Q.#y=this.#y,this.#Q.#m=this.#m,this.#Q):this.#Q=null}isUNC(){let i=this.#E;return this.#y!==void 0?this.#y:this.#y=this.#I==="win32"&&this.#C===0&&i[0]===""&&i[1]===""&&typeof i[2]=="string"&&!!i[2]&&typeof i[3]=="string"&&!!i[3]}isDrive(){let i=this.#E;return this.#m!==void 0?this.#m:this.#m=this.#I==="win32"&&this.#C===0&&this.length>1&&typeof i[0]=="string"&&/^[a-z]:$/i.test(i[0])}isAbsolute(){let i=this.#E;return this.#w!==void 0?this.#w:this.#w=i[0]===""&&i.length>1||this.isDrive()||this.isUNC()}root(){let i=this.#E[0];return typeof i=="string"&&this.isAbsolute()&&this.#C===0?i:""}checkFollowGlobstar(){return!(this.#C===0||!this.isGlobstar()||!this.#b)}markFollowGlobstar(){return this.#C===0||!this.isGlobstar()||!this.#b?!1:(this.#b=!1,!0)}};var _i=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ot=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(i,{nobrace:g,nocase:f,noext:E,noglobstar:p,platform:y=_i}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=y,this.mmopts={dot:!0,nobrace:g,nocase:f,noext:E,noglobstar:p,optimizationLevel:2,platform:y,nocomment:!0,nonegate:!0};for(let g of i)this.add(g)}add(i){let g=new D(i,this.mmopts);for(let i=0;i<g.set.length;i++){let f=g.set[i],E=g.globParts[i];if(!f||!E)throw new Error("invalid pattern object");for(;f[0]==="."&&E[0]===".";)f.shift(),E.shift();let p=new nt(f,E,0,this.platform),y=new D(p.globString(),this.mmopts),b=E[E.length-1]==="**",S=p.isAbsolute();S?this.absolute.push(y):this.relative.push(y),b&&(S?this.absoluteChildren.push(y):this.relativeChildren.push(y))}}ignored(i){let g=i.fullpath(),f=`${g}/`,E=i.relative()||".",p=`${E}/`;for(let i of this.relative)if(i.match(E)||i.match(p))return!0;for(let i of this.absolute)if(i.match(g)||i.match(f))return!0;return!1}childrenIgnored(i){let g=i.fullpath()+"/",f=(i.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(f))return!0;for(let i of this.absoluteChildren)if(i.match(g))return!0;return!1}};var oe=class n{store;constructor(i=new Map){this.store=i}copy(){return new n(new Map(this.store))}hasWalked(i,g){return this.store.get(i.fullpath())?.has(g.globString())}storeWalked(i,g){let f=i.fullpath(),E=this.store.get(f);E?E.add(g.globString()):this.store.set(f,new Set([g.globString()]))}},he=class{store=new Map;add(i,g,f){let E=(g?2:0)|(f?1:0),p=this.store.get(i);this.store.set(i,p===void 0?E:E&p)}entries(){return[...this.store.entries()].map((([i,g])=>[i,!!(g&2),!!(g&1)]))}},ae=class{store=new Map;add(i,g){if(!i.canReaddir())return;let f=this.store.get(i);f?f.find((i=>i.globString()===g.globString()))||f.push(g):this.store.set(i,[g])}get(i){let g=this.store.get(i);if(!g)throw new Error("attempting to walk unknown path");return g}entries(){return this.keys().map((i=>[i,this.store.get(i)]))}keys(){return[...this.store.keys()].filter((i=>i.canReaddir()))}},Et=class n{hasWalkedCache;matches=new he;subwalks=new ae;patterns;follow;dot;opts;constructor(i,g){this.opts=i,this.follow=!!i.follow,this.dot=!!i.dot,this.hasWalkedCache=g?g.copy():new oe}processPatterns(i,g){this.patterns=g;let f=g.map((g=>[i,g]));for(let[i,g]of f){this.hasWalkedCache.storeWalked(i,g);let f=g.root(),E=g.isAbsolute()&&this.opts.absolute!==!1;if(f){i=i.resolve(f==="/"&&this.opts.root!==void 0?this.opts.root:f);let E=g.rest();if(E)g=E;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let p,y,b=!1;for(;typeof(p=g.pattern())=="string"&&(y=g.rest());)i=i.resolve(p),g=y,b=!0;if(p=g.pattern(),y=g.rest(),b){if(this.hasWalkedCache.hasWalked(i,g))continue;this.hasWalkedCache.storeWalked(i,g)}if(typeof p=="string"){let g=p===".."||p===""||p===".";this.matches.add(i.resolve(p),E,g);continue}else if(p===A){(!i.isSymbolicLink()||this.follow||g.checkFollowGlobstar())&&this.subwalks.add(i,g);let f=y?.pattern(),p=y?.rest();if(!y||(f===""||f===".")&&!p)this.matches.add(i,E,f===""||f===".");else if(f===".."){let g=i.parent||i;p?this.hasWalkedCache.hasWalked(g,p)||this.subwalks.add(g,p):this.matches.add(g,E,!0)}}else p instanceof RegExp&&this.subwalks.add(i,g)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new n(this.opts,this.hasWalkedCache)}filterEntries(i,g){let f=this.subwalks.get(i),E=this.child();for(let i of g)for(let g of f){let f=g.isAbsolute(),p=g.pattern(),y=g.rest();p===A?E.testGlobstar(i,g,y,f):p instanceof RegExp?E.testRegExp(i,p,y,f):E.testString(i,p,y,f)}return E}testGlobstar(i,g,f,E){if((this.dot||!i.name.startsWith("."))&&(g.hasMore()||this.matches.add(i,E,!1),i.canReaddir()&&(this.follow||!i.isSymbolicLink()?this.subwalks.add(i,g):i.isSymbolicLink()&&(f&&g.checkFollowGlobstar()?this.subwalks.add(i,f):g.markFollowGlobstar()&&this.subwalks.add(i,g)))),f){let g=f.pattern();if(typeof g=="string"&&g!==".."&&g!==""&&g!==".")this.testString(i,g,f.rest(),E);else if(g===".."){let g=i.parent||i;this.subwalks.add(g,f)}else g instanceof RegExp&&this.testRegExp(i,g,f.rest(),E)}}testRegExp(i,g,f,E){g.test(i.name)&&(f?this.subwalks.add(i,f):this.matches.add(i,E,!1))}testString(i,g,f,E){i.isNamed(g)&&(f?this.subwalks.add(i,f):this.matches.add(i,E,!1))}};var Li=(i,g)=>typeof i=="string"?new ot([i],g):Array.isArray(i)?new ot(i,g):i,zt=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#E=[];#p;#C;signal;maxDepth;includeChildMatches;constructor(i,g,f){if(this.patterns=i,this.path=g,this.opts=f,this.#C=!f.posix&&f.platform==="win32"?"\\":"/",this.includeChildMatches=f.includeChildMatches!==!1,(f.ignore||!this.includeChildMatches)&&(this.#p=Li(f.ignore??[],f),!this.includeChildMatches&&typeof this.#p.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=f.maxDepth||1/0,f.signal&&(this.signal=f.signal,this.signal.addEventListener("abort",(()=>{this.#E.length=0})))}#I(i){return this.seen.has(i)||!!this.#p?.ignored?.(i)}#Q(i){return!!this.#p?.childrenIgnored?.(i)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let i;for(;!this.paused&&(i=this.#E.shift());)i()}onResume(i){this.signal?.aborted||(this.paused?this.#E.push(i):i())}async matchCheck(i,g){if(g&&this.opts.nodir)return;let f;if(this.opts.realpath){if(f=i.realpathCached()||await i.realpath(),!f)return;i=f}let E=i.isUnknown()||this.opts.stat?await i.lstat():i;if(this.opts.follow&&this.opts.nodir&&E?.isSymbolicLink()){let i=await E.realpath();i&&(i.isUnknown()||this.opts.stat)&&await i.lstat()}return this.matchCheckTest(E,g)}matchCheckTest(i,g){return i&&(this.maxDepth===1/0||i.depth()<=this.maxDepth)&&(!g||i.canReaddir())&&(!this.opts.nodir||!i.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!i.isSymbolicLink()||!i.realpathCached()?.isDirectory())&&!this.#I(i)?i:void 0}matchCheckSync(i,g){if(g&&this.opts.nodir)return;let f;if(this.opts.realpath){if(f=i.realpathCached()||i.realpathSync(),!f)return;i=f}let E=i.isUnknown()||this.opts.stat?i.lstatSync():i;if(this.opts.follow&&this.opts.nodir&&E?.isSymbolicLink()){let i=E.realpathSync();i&&(i?.isUnknown()||this.opts.stat)&&i.lstatSync()}return this.matchCheckTest(E,g)}matchFinish(i,g){if(this.#I(i))return;if(!this.includeChildMatches&&this.#p?.add){let g=`${i.relativePosix()}/**`;this.#p.add(g)}let f=this.opts.absolute===void 0?g:this.opts.absolute;this.seen.add(i);let E=this.opts.mark&&i.isDirectory()?this.#C:"";if(this.opts.withFileTypes)this.matchEmit(i);else if(f){let g=this.opts.posix?i.fullpathPosix():i.fullpath();this.matchEmit(g+E)}else{let g=this.opts.posix?i.relativePosix():i.relative(),f=this.opts.dotRelative&&!g.startsWith(".."+this.#C)?"."+this.#C:"";this.matchEmit(g?f+g+E:"."+E)}}async match(i,g,f){let E=await this.matchCheck(i,f);E&&this.matchFinish(E,g)}matchSync(i,g,f){let E=this.matchCheckSync(i,f);E&&this.matchFinish(E,g)}walkCB(i,g,f){this.signal?.aborted&&f(),this.walkCB2(i,g,new Et(this.opts),f)}walkCB2(i,g,f,E){if(this.#Q(i))return E();if(this.signal?.aborted&&E(),this.paused){this.onResume((()=>this.walkCB2(i,g,f,E)));return}f.processPatterns(i,g);let p=1,o=()=>{--p===0&&E()};for(let[i,g,E]of f.matches.entries())this.#I(i)||(p++,this.match(i,g,E).then((()=>o())));for(let i of f.subwalkTargets()){if(this.maxDepth!==1/0&&i.depth()>=this.maxDepth)continue;p++;let g=i.readdirCached();i.calledReaddir()?this.walkCB3(i,g,f,o):i.readdirCB(((g,E)=>this.walkCB3(i,E,f,o)),!0)}o()}walkCB3(i,g,f,E){f=f.filterEntries(i,g);let p=1,o=()=>{--p===0&&E()};for(let[i,g,E]of f.matches.entries())this.#I(i)||(p++,this.match(i,g,E).then((()=>o())));for(let[i,g]of f.subwalks.entries())p++,this.walkCB2(i,g,f.child(),o);o()}walkCBSync(i,g,f){this.signal?.aborted&&f(),this.walkCB2Sync(i,g,new Et(this.opts),f)}walkCB2Sync(i,g,f,E){if(this.#Q(i))return E();if(this.signal?.aborted&&E(),this.paused){this.onResume((()=>this.walkCB2Sync(i,g,f,E)));return}f.processPatterns(i,g);let p=1,o=()=>{--p===0&&E()};for(let[i,g,E]of f.matches.entries())this.#I(i)||this.matchSync(i,g,E);for(let i of f.subwalkTargets()){if(this.maxDepth!==1/0&&i.depth()>=this.maxDepth)continue;p++;let g=i.readdirSync();this.walkCB3Sync(i,g,f,o)}o()}walkCB3Sync(i,g,f,E){f=f.filterEntries(i,g);let p=1,o=()=>{--p===0&&E()};for(let[i,g,E]of f.matches.entries())this.#I(i)||this.matchSync(i,g,E);for(let[i,g]of f.subwalks.entries())p++,this.walkCB2Sync(i,g,f.child(),o);o()}},xt=class extends zt{matches=new Set;constructor(i,g,f){super(i,g,f)}matchEmit(i){this.matches.add(i)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((i,g)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?g(this.signal.reason):i(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}},vt=class extends zt{results;constructor(i,g,f){super(i,g,f),this.results=new V({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(i){this.results.write(i),this.results.flowing||this.pause()}stream(){let i=this.path;return i.isUnknown()?i.lstat().then((()=>{this.walkCB(i,this.patterns,(()=>this.results.end()))})):this.walkCB(i,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}};var Pi=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",I=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(i,g){if(!g)throw new TypeError("glob options required");if(this.withFileTypes=!!g.withFileTypes,this.signal=g.signal,this.follow=!!g.follow,this.dot=!!g.dot,this.dotRelative=!!g.dotRelative,this.nodir=!!g.nodir,this.mark=!!g.mark,g.cwd?(g.cwd instanceof URL||g.cwd.startsWith("file://"))&&(g.cwd=(0,external_node_url_namespaceObject.fileURLToPath)(g.cwd)):this.cwd="",this.cwd=g.cwd||"",this.root=g.root,this.magicalBraces=!!g.magicalBraces,this.nobrace=!!g.nobrace,this.noext=!!g.noext,this.realpath=!!g.realpath,this.absolute=g.absolute,this.includeChildMatches=g.includeChildMatches!==!1,this.noglobstar=!!g.noglobstar,this.matchBase=!!g.matchBase,this.maxDepth=typeof g.maxDepth=="number"?g.maxDepth:1/0,this.stat=!!g.stat,this.ignore=g.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof i=="string"&&(i=[i]),this.windowsPathsNoEscape=!!g.windowsPathsNoEscape||g.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(i=i.map((i=>i.replace(/\\/g,"/")))),this.matchBase){if(g.noglobstar)throw new TypeError("base matching requires globstar");i=i.map((i=>i.includes("/")?i:`./**/${i}`))}if(this.pattern=i,this.platform=g.platform||Pi,this.opts={...g,platform:this.platform},g.scurry){if(this.scurry=g.scurry,g.nocase!==void 0&&g.nocase!==g.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let i=g.platform==="win32"?it:g.platform==="darwin"?St:g.platform?rt:Xe;this.scurry=new i(this.cwd,{nocase:g.nocase,fs:g.fs})}this.nocase=this.scurry.nocase;let f=this.platform==="darwin"||this.platform==="win32",E={braceExpandMax:1e4,...g,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:f,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},p=this.pattern.map((i=>new D(i,E))),[y,b]=p.reduce(((i,g)=>(i[0].push(...g.set),i[1].push(...g.globParts),i)),[[],[]]);this.patterns=y.map(((i,g)=>{let f=b[g];if(!f)throw new Error("invalid pattern object");return new nt(i,f,0,this.platform)}))}async walk(){return[...await new xt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new xt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new vt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new vt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var le=(i,g={})=>{Array.isArray(i)||(i=[i]);for(let f of i)if(new D(f,g).hasMagic())return!0;return!1};function Bt(i,g={}){return new I(i,g).streamSync()}function Qe(i,g={}){return new I(i,g).stream()}function ts(i,g={}){return new I(i,g).walkSync()}async function Je(i,g={}){return new I(i,g).walk()}function Ut(i,g={}){return new I(i,g).iterateSync()}function es(i,g={}){return new I(i,g).iterate()}var ji=Bt,Ii=Object.assign(Qe,{sync:Bt}),zi=Ut,Bi=Object.assign(es,{sync:Ut}),Ui=Object.assign(ts,{stream:Bt,iterate:Ut}),Ze=Object.assign(Je,{glob:Je,globSync:ts,sync:Ui,globStream:Qe,stream:Ii,globStreamSync:Bt,streamSync:ji,globIterate:es,iterate:Bi,globIterateSync:Ut,iterateSync:zi,Glob:I,hasMagic:le,escape:tt,unescape:W});Ze.glob=Ze;async function glob(i,g={}){const{cwd:f=process.cwd(),absolute:E=false,ignore:p=["node_modules/**","dist/**",".git/**"],dot:y=false}=g;const b=await Ze(i,{cwd:f,absolute:E,ignore:p,dot:y,nodir:true});return b}const ARCHIVE_DIR="archive";const DOC_SCAN_IGNORE=["node_modules/**","dist/**",".git/**",`${ARCHIVE_DIR}/**`];async function findMarkdownFiles(i,g={}){const{ignore:f=[],...E}=g;return glob("**/*.md",{...E,ignore:[...DOC_SCAN_IGNORE,...f],cwd:i,absolute:true})}async function glob_pathExists(i){try{await(0,promises_namespaceObject.stat)(i);return true}catch{return false}}function pathExistsSync(i){return existsSync(i)}async function isDirectory(i){try{const g=await stat(i);return g.isDirectory()}catch{return false}}async function isFile(i){try{const g=await stat(i);return g.isFile()}catch{return false}}async function getSubdirectories(i){try{const g=await readdir(i,{withFileTypes:true});return g.filter((i=>i.isDirectory())).map((g=>join(i,g.name)))}catch{return[]}}function resolvePath(i,g){return resolve(i,g)}function getRelativePath(i,g){return relative(i,g)}function getDirname(i){return dirname(i)}function getBasename(i){return basename(i)}function getExtension(i){return extname(i)}function removeExtension(i){const g=extname(i);return i.slice(0,-g.length)}function normalizePath(i){return i.replace(/\\/g,"/")}async function createScaffold(i){const{rootPath:g,overwrite:f=false,domains:E=registry_getAllDomains(),silent:p=false}=i;const y={success:true,created:[],skipped:[],errors:[]};if(!p){logger.header("Creating Documentation Scaffold");logger.info(`Root path: ${g}`);logger.info(`Domains: ${E.length}`)}try{await createDirectory(g,y,f);await createRootFiles(g,y,f);for(const i of E){await createDomainStructure(g,i,y,f)}await createSpecialDirectories(g,y,f);if(!p){logger.newline();logger.success(`Scaffold created successfully!`);logger.info(`Created: ${y.created.length} files/directories`);if(y.skipped.length>0){logger.warn(`Skipped: ${y.skipped.length} (already exist)`)}}}catch(i){y.success=false;const g=i instanceof Error?i.message:String(i);y.errors.push(g);if(!p){logger.error(`Failed to create scaffold: ${g}`)}}return y}async function createDirectory(i,g,f){const E=await glob_pathExists(i);if(E&&!f){g.skipped.push(i);return}await(0,promises_namespaceObject.mkdir)(i,{recursive:true});g.created.push(i)}async function createFile(i,g,f,E){const p=await glob_pathExists(i);if(p&&!E){f.skipped.push(i);return}await(0,promises_namespaceObject.writeFile)(i,g,"utf-8");f.created.push(i)}async function createRootFiles(i,g,f){const E=generateRootIndex();await createFile((0,external_path_.join)(i,"INDEX.md"),E,g,f);const p=generateRootRegistry();await createFile((0,external_path_.join)(i,"REGISTRY.md"),p,g,f);const y=generateRootReadme();await createFile((0,external_path_.join)(i,"README.md"),y,g,f)}async function createDomainStructure(i,g,f,E){const p=(0,external_path_.join)(i,g);const y=registry_getDomainDefinition(g);await createDirectory(p,f,E);const b=generateDomainIndex(g,y);await createFile((0,external_path_.join)(p,"INDEX.md"),b,f,E);const S=generateDomainRegistry(g,y);await createFile((0,external_path_.join)(p,"REGISTRY.md"),S,f,E)}async function createSpecialDirectories(i,g,f){await createDirectory((0,external_path_.join)(i,"drafts"),g,f);await createDirectory((0,external_path_.join)(i,"reports"),g,f);await createDirectory((0,external_path_.join)(i,ARCHIVE_DIR),g,f);await createFile((0,external_path_.join)(i,"drafts",".gitkeep"),"# This file ensures the drafts directory is tracked by git\n",g,f);await createFile((0,external_path_.join)(i,"reports",".gitkeep"),"# This file ensures the reports directory is tracked by git\n",g,f);await createFile((0,external_path_.join)(i,ARCHIVE_DIR,"README.md"),generateArchiveReadme(),g,f)}function generateArchiveReadme(){return`# Archive\n\nThis folder holds **deprecated documentation** — docs that are retired but\nworth keeping (historical reference, superseded guides, old runbooks).\n\n## Don't move files here by hand — use the command\n\n\`\`\`bash\nhewtd archive <file> --reason "why" # e.g. hewtd archive api/old-webhooks.md\n\`\`\`\n\n\`hewtd archive\` does it properly: it moves the doc into\n\`archive/<same-domain-path>/\`, preserves git history (\`git mv\`), stamps\nlifecycle metadata (\`status: archived\`, \`archived_on\`, \`archived_from\`), and\nregenerates the indexes so the doc cleanly leaves the active set. It also\n**refuses if other active docs still link to the doc** (so you don't create\ndead links) — pass \`--force\` to override after you've reviewed them.\n\n## Reversible\n\n\`\`\`bash\nhewtd unarchive <file> # restores to its original path, status: active\n\`\`\`\n\nThe \`archived_from\` field records the exact restore path, so un-archiving is\nlossless.\n\n## Finding what to archive\n\n\`\`\`bash\nhewtd archive-candidates # advisory list — never moves anything\n\`\`\`\n\nSuggests docs worth retiring, ranked by signal: \`status: deprecated\` (strongest),\n\`superseded_by:\`, orphaned (no inbound links), and age (only when also orphaned).\nAge alone never qualifies a doc — an unchanged doc is often your most important one.\n\n## hewtd ignores this folder\n\nEverything under \`archive/\` is **excluded from every hewtd scan** — \`audit\`,\n\`link-check\`, \`metadata-sync\`, \`integrate\` duplicate-detection, the link\ngraph, and \`search\`. Archived docs are not validated, never appear in any\nINDEX.md / REGISTRY.md, and can't break audit/link-check with stale frontmatter.\n\n> Note: \`archive/\` is a reserved name. You cannot create a custom domain\n> called \`archive\`.\n`}function generateRootReadme(){return`# Documentation\n\nThis documentation system uses a hierarchical, domain-based structure for optimal organization and discoverability.\n\n## Quick Navigation\n\n- **[INDEX.md](INDEX.md)** - Complete document listing with metadata\n- **[REGISTRY.md](REGISTRY.md)** - Quick reference tables\n\n## Domains\n\n| Domain | Description |\n|--------|-------------|\n${registry_getAllDomains().map((i=>`| [${i}](${i}/) | ${registry_getDomainDefinition(i).description} |`)).join("\n")}\n\n## Adding New Documentation\n\n1. Identify the correct domain for your document\n2. Create the file in the domain directory\n3. Add YAML frontmatter with required metadata\n4. Run \`npx hit-em-with-the-docs integrate <file>\` to register\n\n## Metadata Schema\n\nEvery document should include:\n\n\`\`\`yaml\n---\ntitle: "Document Title"\ntier: guide|standard|example|reference|admin\ndomains: [primary-domain]\nstatus: draft|active|deprecated|archived\nlast_updated: 'YYYY-MM-DD'\nversion: '1.0.0'\n---\n\`\`\`\n\n## Maintenance\n\nRun weekly maintenance with:\n\n\`\`\`bash\nnpx hit-em-with-the-docs maintain\n\`\`\`\n\nThis will:\n- Sync metadata across all documents\n- Check for broken links\n- Audit compliance\n- Generate health reports\n`}async function scaffoldExists(i){const g=join(i,"INDEX.md");return pathExists(g)}async function getScaffoldStatus(i){const g=await scaffoldExists(i);if(!g){return{exists:false,domains:[],missingDomains:getAllDomains()}}const f=[];const E=[];for(const g of getAllDomains()){const p=join(i,g);if(await pathExists(p)){f.push(g)}else{E.push(g)}}return{exists:true,domains:f,missingDomains:E}}var gray_matter=__nccwpck_require__(9599);var gray_matter_default=__nccwpck_require__.n(gray_matter);var dist=__nccwpck_require__(8815);function parseFrontmatter(i){const g=gray_matter_default()(i);const f={data:g.data,content:g.content,isEmpty:Object.keys(g.data).length===0};if(g.excerpt){f.excerpt=g.excerpt}return f}function hasFrontmatter(i){return i.trimStart().startsWith("---")}function extractFrontmatterString(i){const g=i.match(/^---\r?\n([\s\S]*?)\r?\n---/);return g?g[1]??null:null}function stringifyFrontmatter(i){return dist.stringify(i,{indent:2,lineWidth:80,singleQuote:true})}function setFrontmatter(i,g){const{content:f}=parseFrontmatter(i);const E=stringifyFrontmatter(g);return`---\n${E}---\n\n${f.trimStart()}`}function mergeFrontmatter(i,g){const{data:f,content:E}=parseFrontmatter(i);const p={...f,...g};const y=stringifyFrontmatter(p);return`---\n${y}---\n\n${E.trimStart()}`}function removeFrontmatter(i){const{content:g}=parseFrontmatter(i);return g.trimStart()}function getFrontmatterField(i,g){const{data:f}=parseFrontmatter(i);return f[g]}function setFrontmatterField(i,g,f){const{data:E,content:p}=parseFrontmatter(i);E[g]=f;const y=stringifyFrontmatter(E);return`---\n${y}---\n\n${p.trimStart()}`}function validateFrontmatter(i,g){const{data:f}=parseFrontmatter(i);const E=g.filter((i=>!(i in f)||f[i]===undefined||f[i]===null));return{valid:E.length===0,missingFields:E}}const KB_ERROR_CODES={FACT_MISSING_ID:"FACT_MISSING_ID",FACT_ID_FILENAME_MISMATCH:"FACT_ID_FILENAME_MISMATCH",FACT_MISSING_PROVENANCE:"FACT_MISSING_PROVENANCE",FACT_INVALID_CONFIDENCE:"FACT_INVALID_CONFIDENCE",FACT_MISSING_LAST_VERIFIED:"FACT_MISSING_LAST_VERIFIED",FACT_VERIFY_COMMAND_MULTILINE_SHEBANG:"FACT_VERIFY_COMMAND_MULTILINE_SHEBANG",INCIDENT_FOLDER_MISSING_NARRATIVE:"INCIDENT_FOLDER_MISSING_NARRATIVE",INCIDENT_FOLDER_MISSING_FACTS:"INCIDENT_FOLDER_MISSING_FACTS",INCIDENT_NARRATIVE_MISSING_DATE:"INCIDENT_NARRATIVE_MISSING_DATE",INCIDENT_NARRATIVE_MISSING_SEVERITY:"INCIDENT_NARRATIVE_MISSING_SEVERITY",INCIDENT_NARRATIVE_INVALID_SEVERITY:"INCIDENT_NARRATIVE_INVALID_SEVERITY",INCIDENT_NARRATIVE_MISSING_RESOLUTION_STATUS:"INCIDENT_NARRATIVE_MISSING_RESOLUTION_STATUS",INCIDENT_NARRATIVE_INVALID_RESOLUTION_STATUS:"INCIDENT_NARRATIVE_INVALID_RESOLUTION_STATUS",INCIDENT_NARRATIVE_MISSING_COMPONENTS:"INCIDENT_NARRATIVE_MISSING_COMPONENTS",INCIDENT_FACTS_MISSING_INCIDENT_ID:"INCIDENT_FACTS_MISSING_INCIDENT_ID",INCIDENT_FACTS_MISSING_PRODUCED:"INCIDENT_FACTS_MISSING_PRODUCED",INCIDENT_FACTS_DANGLING_REF:"INCIDENT_FACTS_DANGLING_REF",PLAYBOOK_SYMPTOM_MISSING_KEY:"PLAYBOOK_SYMPTOM_MISSING_KEY",PLAYBOOK_SYMPTOM_MISSING_TARGET:"PLAYBOOK_SYMPTOM_MISSING_TARGET",PLAYBOOK_SYMPTOM_MISSING_CITES:"PLAYBOOK_SYMPTOM_MISSING_CITES",PLAYBOOK_SYMPTOM_DANGLING_CITE:"PLAYBOOK_SYMPTOM_DANGLING_CITE"};const KB_ERROR_SEVERITY={FACT_MISSING_ID:"error",FACT_ID_FILENAME_MISMATCH:"error",FACT_MISSING_PROVENANCE:"error",FACT_INVALID_CONFIDENCE:"error",FACT_MISSING_LAST_VERIFIED:"error",FACT_VERIFY_COMMAND_MULTILINE_SHEBANG:"warning",INCIDENT_FOLDER_MISSING_NARRATIVE:"error",INCIDENT_FOLDER_MISSING_FACTS:"error",INCIDENT_NARRATIVE_MISSING_DATE:"error",INCIDENT_NARRATIVE_MISSING_SEVERITY:"error",INCIDENT_NARRATIVE_INVALID_SEVERITY:"error",INCIDENT_NARRATIVE_MISSING_RESOLUTION_STATUS:"error",INCIDENT_NARRATIVE_INVALID_RESOLUTION_STATUS:"error",INCIDENT_NARRATIVE_MISSING_COMPONENTS:"error",INCIDENT_FACTS_MISSING_INCIDENT_ID:"error",INCIDENT_FACTS_MISSING_PRODUCED:"error",INCIDENT_FACTS_DANGLING_REF:"error",PLAYBOOK_SYMPTOM_MISSING_KEY:"error",PLAYBOOK_SYMPTOM_MISSING_TARGET:"error",PLAYBOOK_SYMPTOM_MISSING_CITES:"error",PLAYBOOK_SYMPTOM_DANGLING_CITE:"error"};function formatKbError(i,g){return`[${i}] ${g}`}const KB_ERROR_PREFIX_RE=/^\[([A-Z_]+)\]\s+(.*)$/;function parseKbErrorCode(i){const g=i.match(KB_ERROR_PREFIX_RE);if(!g)return null;const f=g[1];const E=g[2]??"";if(!(f in KB_ERROR_SEVERITY))return null;return{code:f,message:E}}const coreIdentitySchema=objectType({title:stringType().min(1,"Title is required"),tier:enumType(TIERS),domains:arrayType(stringType()).min(1,"At least one domain is required"),audience:arrayType(enumType(["all","developers","devops","admin"])).default(["all"]),tags:arrayType(stringType()).default([])});const DOC_STATUS_VALUES=["draft","active","deprecated","archived"];const dateStringSchema=preprocessType((i=>{if(i instanceof Date&&!Number.isNaN(i.getTime())){return i.toISOString().slice(0,10)}return i}),stringType().regex(/^\d{4}-\d{2}-\d{2}$/,"Must be YYYY-MM-DD format"));const statusSchema=objectType({status:stringType().min(1,"status is required"),last_updated:dateStringSchema,version:stringType().regex(/^\d+\.\d+\.\d+$/,"Must be semver format (X.Y.Z)").optional()});const discoverySchema=objectType({purpose:stringType().optional(),related_docs:arrayType(stringType()).optional(),load_priority:numberType().min(1).max(10).optional()});const ownershipSchema=objectType({author:stringType().optional(),maintainer:stringType().optional(),review_frequency:enumType(["weekly","monthly","quarterly","annually"]).optional()});const implementationSchema=objectType({implementation_status:enumType(["planned","in_progress","complete","deprecated"]).optional(),tested:booleanType().optional(),production_ready:booleanType().optional()});const autoGeneratedSchema=objectType({estimated_read_time:stringType().optional(),word_count:numberType().optional(),last_validated:dateStringSchema.optional(),backlinks:arrayType(stringType()).optional()});const FACT_CONFIDENCE_VALUES=["high","medium","low","hypothesis"];const INCIDENT_SEVERITY_VALUES=["low","medium","high","critical"];const INCIDENT_RESOLUTION_VALUES=["resolved","partial","open","planned"];const schema_KEBAB_SLUG_RE=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;const INCIDENT_ID_RE=/^\d{4}-\d{2}-\d{2}-[a-z0-9]+(?:-[a-z0-9]+)*$/;const knowledgeBaseSchema=objectType({id:stringType().min(1).optional(),confidence:stringType().optional(),last_verified:dateStringSchema.optional(),verify_command:stringType().optional(),provenance:arrayType(stringType()).optional(),sources:arrayType(stringType()).optional(),invalidated_by:arrayType(stringType()).optional(),working_dir:stringType().optional(),date:dateStringSchema.optional(),severity:stringType().optional(),resolution_status:stringType().optional(),components:arrayType(stringType()).optional(),incident_id:stringType().optional(),produced:arrayType(stringType()).optional(),strengthened:arrayType(stringType()).optional(),weakened:arrayType(stringType()).optional(),symptoms:arrayType(objectType({alert_name:stringType().optional(),user_phrase:unionType([stringType(),arrayType(stringType())]).optional(),error_pattern:stringType().optional(),severity:enumType(INCIDENT_SEVERITY_VALUES).optional(),target:stringType().min(1).optional(),cites:arrayType(stringType()).optional()})).optional()});const lifecycleSchema=objectType({superseded_by:stringType().optional(),archived_on:dateStringSchema.optional(),archived_from:stringType().optional(),archived_reason:stringType().optional()});const _baseMergedSchema=coreIdentitySchema.merge(statusSchema).merge(discoverySchema).merge(ownershipSchema).merge(implementationSchema).merge(autoGeneratedSchema).merge(knowledgeBaseSchema).merge(lifecycleSchema);const refineVersionRequired=i=>isLifecycleTrackedTier(i.tier)||i.version!==undefined;const refineStatusEnum=i=>isLifecycleTrackedTier(i.tier)||DOC_STATUS_VALUES.includes(i.status);const refineFactRequirements=i=>{if(i.tier!=="fact")return true;const g=[typeof i.id==="string"&&i.id.length>0,typeof i.confidence==="string"&&FACT_CONFIDENCE_VALUES.includes(i.confidence),typeof i.last_verified==="string",Array.isArray(i.provenance)&&i.provenance.length>0];return g.every(Boolean)};const refineIncidentNarrativeRequirements=i=>{if(i.tier!=="incident-narrative")return true;const g=[typeof i.id==="string"&&i.id.length>0,typeof i.date==="string",typeof i.severity==="string"&&INCIDENT_SEVERITY_VALUES.includes(i.severity),typeof i.resolution_status==="string"&&INCIDENT_RESOLUTION_VALUES.includes(i.resolution_status),Array.isArray(i.components)];return g.every(Boolean)};const refineIncidentFactsRequirements=i=>{if(i.tier!=="incident-facts")return true;const g=[typeof i.incident_id==="string"&&i.incident_id.length>0,Array.isArray(i.produced)];return g.every(Boolean)};const refineSymptomsEntries=i=>{if(!Array.isArray(i.symptoms))return true;for(const g of i.symptoms){const i=g.alert_name!==undefined||g.user_phrase!==undefined||g.error_pattern!==undefined;if(!i)return false;if(typeof g.target!=="string"||g.target.length===0)return false;if(!Array.isArray(g.cites)||g.cites.length===0)return false}return true};const MetadataSchema=_baseMergedSchema.refine(refineVersionRequired,{message:"version is required unless tier is plan, fact, incident-narrative, or incident-facts",path:["version"]}).refine(refineStatusEnum,{message:`status must be one of ${DOC_STATUS_VALUES.join("|")} for non-lifecycle-tracked tiers`,path:["status"]}).refine(refineFactRequirements,{message:formatKbError(KB_ERROR_CODES.FACT_MISSING_ID,"fact tier requires id (kebab-case), confidence (high|medium|low|hypothesis), last_verified (YYYY-MM-DD), and provenance (≥1 entry)"),path:["fact"]}).refine(refineIncidentNarrativeRequirements,{message:formatKbError(KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_DATE,"incident-narrative tier requires id, date (YYYY-MM-DD), severity (low|medium|high|critical), resolution_status (resolved|partial|open|planned), and components (array)"),path:["incident-narrative"]}).refine(refineIncidentFactsRequirements,{message:formatKbError(KB_ERROR_CODES.INCIDENT_FACTS_MISSING_INCIDENT_ID,"incident-facts tier requires incident_id and produced (array, may be empty)"),path:["incident-facts"]}).refine(refineSymptomsEntries,{message:formatKbError(KB_ERROR_CODES.PLAYBOOK_SYMPTOM_MISSING_KEY,"each symptoms[] entry requires one of alert_name|user_phrase|error_pattern AND a target AND a non-empty cites[] array"),path:["symptoms"]});const PartialMetadataSchema=_baseMergedSchema.partial();const REQUIRED_FIELDS=["title","tier","domains","status","last_updated","version"];const TIER_REQUIRED_EXTENSIONS={fact:["id","confidence","last_verified","provenance"],"incident-narrative":["id","date","severity","resolution_status","components"],"incident-facts":["incident_id","produced"]};const OPTIONAL_FIELDS_DEFAULTS={audience:["all"],tags:[],backlinks:[]};const AUTO_GENERATED_FIELDS=null&&["estimated_read_time","word_count","last_validated","backlinks"];const ALL_METADATA_FIELDS=["title","tier","domains","audience","tags","status","last_updated","version","purpose","related_docs","load_priority","author","maintainer","review_frequency","implementation_status","tested","production_ready","estimated_read_time","word_count","last_validated","backlinks"];function validateMetadata(i){const g=MetadataSchema.safeParse(i);if(g.success){return{valid:true,errors:[],data:g.data}}const f=g.error.errors.map((i=>`${i.path.join(".")}: ${i.message}`));return{valid:false,errors:f}}function isDateLike(i){if(typeof i==="string")return/^\d{4}-\d{2}-\d{2}$/.test(i);if(i instanceof Date&&!Number.isNaN(i.getTime()))return true;return false}function validateKnowledgeBaseFields(i){const g=[];const f=typeof i.tier==="string"?i.tier:undefined;if(f==="fact"){if(typeof i.id!=="string"||i.id.length===0){g.push({code:KB_ERROR_CODES.FACT_MISSING_ID,message:"fact tier requires an id (kebab-case slug)",path:"id"})}else if(!schema_KEBAB_SLUG_RE.test(i.id)){g.push({code:KB_ERROR_CODES.FACT_MISSING_ID,message:`fact id must be kebab-case (got: ${i.id})`,path:"id"})}if(typeof i.confidence!=="string"){g.push({code:KB_ERROR_CODES.FACT_INVALID_CONFIDENCE,message:`fact tier requires confidence (one of ${FACT_CONFIDENCE_VALUES.join("|")})`,path:"confidence"})}else if(!FACT_CONFIDENCE_VALUES.includes(i.confidence)){g.push({code:KB_ERROR_CODES.FACT_INVALID_CONFIDENCE,message:`confidence must be one of ${FACT_CONFIDENCE_VALUES.join("|")} (got: ${i.confidence})`,path:"confidence"})}if(i.last_verified===undefined||i.last_verified===null){g.push({code:KB_ERROR_CODES.FACT_MISSING_LAST_VERIFIED,message:"fact tier requires last_verified (YYYY-MM-DD)",path:"last_verified"})}else if(!isDateLike(i.last_verified)){g.push({code:KB_ERROR_CODES.FACT_MISSING_LAST_VERIFIED,message:`last_verified must be YYYY-MM-DD (got: ${String(i.last_verified)})`,path:"last_verified"})}if(!Array.isArray(i.provenance)||i.provenance.length===0){g.push({code:KB_ERROR_CODES.FACT_MISSING_PROVENANCE,message:"fact tier requires at least one provenance entry",path:"provenance"})}if(typeof i.verify_command==="string"){const f=i.verify_command.trim();if(f.includes("\n")&&!f.startsWith("#!")){g.push({code:KB_ERROR_CODES.FACT_VERIFY_COMMAND_MULTILINE_SHEBANG,message:"multi-line verify_command without a shebang line — fine, but consider adding `#!/usr/bin/env bash` for clarity",path:"verify_command"})}}}if(f==="incident-narrative"){if(typeof i.id!=="string"||i.id.length===0){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_DATE,message:"incident-narrative tier requires an id (YYYY-MM-DD-slug)",path:"id"})}else if(!INCIDENT_ID_RE.test(i.id)){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_DATE,message:`incident id must match YYYY-MM-DD-<slug> (got: ${i.id})`,path:"id"})}if(i.date===undefined||i.date===null){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_DATE,message:"incident-narrative tier requires date (YYYY-MM-DD)",path:"date"})}else if(!isDateLike(i.date)){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_DATE,message:`date must be YYYY-MM-DD (got: ${String(i.date)})`,path:"date"})}if(typeof i.severity!=="string"){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_SEVERITY,message:`incident-narrative tier requires severity (${INCIDENT_SEVERITY_VALUES.join("|")})`,path:"severity"})}else if(!INCIDENT_SEVERITY_VALUES.includes(i.severity)){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_INVALID_SEVERITY,message:`severity must be one of ${INCIDENT_SEVERITY_VALUES.join("|")} (got: ${i.severity})`,path:"severity"})}if(typeof i.resolution_status!=="string"){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_RESOLUTION_STATUS,message:`incident-narrative tier requires resolution_status (${INCIDENT_RESOLUTION_VALUES.join("|")})`,path:"resolution_status"})}else if(!INCIDENT_RESOLUTION_VALUES.includes(i.resolution_status)){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_INVALID_RESOLUTION_STATUS,message:`resolution_status must be one of ${INCIDENT_RESOLUTION_VALUES.join("|")} (got: ${i.resolution_status})`,path:"resolution_status"})}if(!Array.isArray(i.components)||i.components.length===0){g.push({code:KB_ERROR_CODES.INCIDENT_NARRATIVE_MISSING_COMPONENTS,message:"incident-narrative tier requires at least one component",path:"components"})}}if(f==="incident-facts"){if(typeof i.incident_id!=="string"||i.incident_id.length===0){g.push({code:KB_ERROR_CODES.INCIDENT_FACTS_MISSING_INCIDENT_ID,message:"incident-facts tier requires incident_id",path:"incident_id"})}if(!Array.isArray(i.produced)){g.push({code:KB_ERROR_CODES.INCIDENT_FACTS_MISSING_PRODUCED,message:"incident-facts tier requires produced (array, may be empty)",path:"produced"})}}if(Array.isArray(i.symptoms)){for(let f=0;f<i.symptoms.length;f++){const E=i.symptoms[f];const p=typeof E.alert_name==="string"||typeof E.user_phrase==="string"||Array.isArray(E.user_phrase)||typeof E.error_pattern==="string";if(!p){g.push({code:KB_ERROR_CODES.PLAYBOOK_SYMPTOM_MISSING_KEY,message:`symptoms[${f}] must have one of alert_name, user_phrase, or error_pattern`,path:`symptoms[${f}]`})}if(typeof E.target!=="string"||E.target.length===0){g.push({code:KB_ERROR_CODES.PLAYBOOK_SYMPTOM_MISSING_TARGET,message:`symptoms[${f}] requires a target (anchor or path)`,path:`symptoms[${f}].target`})}if(!Array.isArray(E.cites)||E.cites.length===0){g.push({code:KB_ERROR_CODES.PLAYBOOK_SYMPTOM_MISSING_CITES,message:`symptoms[${f}] requires at least one cite (fact id)`,path:`symptoms[${f}].cites`})}}}return g}function validatePartialMetadata(i){const g=PartialMetadataSchema.safeParse(i);if(g.success){return{valid:true,errors:[],data:g.data}}const f=g.error.errors.map((i=>`${i.path.join(".")}: ${i.message}`));return{valid:false,errors:f}}function getMissingRequiredFields(i){const g=typeof i.tier==="string"?i.tier:undefined;const f=isLifecycleTrackedTier(g);const E=g?TIER_REQUIRED_EXTENSIONS[g]??[]:[];const p=REQUIRED_FIELDS.filter((i=>{if(i==="version"&&f)return false;return true}));const y=[...p,...E];return y.filter((g=>{const f=i[g];if(f===undefined||f===null)return true;if(Array.isArray(f)&&f.length===0){return g==="provenance"||g==="components"}return false}))}function getMissingFields(i){const g=getMissingRequiredFields(i);const f=ALL_METADATA_FIELDS.filter((g=>!REQUIRED_FIELDS.includes(g)&&!(g in i)));return{required:g,optional:f}}function calculateMetadataCompleteness(i){const g=ALL_METADATA_FIELDS.filter((g=>g in i&&i[g]!==undefined&&i[g]!==null));return g.length/ALL_METADATA_FIELDS.length*100}function getFieldCategory(i){if(["title","tier","domains","audience","tags"].includes(i)){return"core"}if(["status","last_updated","version"].includes(i)){return"status"}if(["purpose","related_docs","load_priority"].includes(i)){return"discovery"}if(["author","maintainer","review_frequency"].includes(i)){return"ownership"}if(["implementation_status","tested","production_ready"].includes(i)){return"implementation"}return"auto"}async function syncMetadata(i){const{docsPath:g,dryRun:f=false,fix:E=false,domain:p,silent:y=false}=i;const b={totalFiles:0,validFiles:0,fixedFiles:0,skippedFiles:0,errors:[],stats:{totalWordCount:0,avgCompleteness:0,byDomain:{},byStatus:{},byTier:{}}};if(!y){logger.header("Metadata Sync");if(f)logger.info("Running in dry-run mode (no changes will be made)");if(E)logger.info("Auto-fix mode enabled")}let S=await findMarkdownFiles(g);if(p){S=S.filter((i=>{const f=(0,external_path_.relative)(g,i);return f.startsWith(p+"/")||f.startsWith(p+"\\")}))}S=S.filter((i=>{const g=i.split(/[/\\]/).pop()??"";return!["INDEX.md","REGISTRY.md"].includes(g)}));b.totalFiles=S.length;if(!y){logger.info(`Found ${S.length} documentation files`)}let J=0;for(const i of S){try{const p=await syncFile(i,g,f,E);if(p.valid){b.validFiles++}if(p.fixed){b.fixedFiles++}if(p.skipped){b.skippedFiles++}if(p.error){b.errors.push(p.error)}if(p.metadata){const i=p.metadata;J+=p.completeness;b.stats.totalWordCount+=i.word_count??0;const g=i.domains?.[0]??"unknown";b.stats.byDomain[g]=(b.stats.byDomain[g]??0)+1;const f=i.status??"unknown";b.stats.byStatus[f]=(b.stats.byStatus[f]??0)+1;const E=i.tier??"unknown";b.stats.byTier[E]=(b.stats.byTier[E]??0)+1}}catch(f){const E=f instanceof Error?f.message:String(f);b.errors.push({file:(0,external_path_.relative)(g,i),error:E,fixable:false})}}b.stats.avgCompleteness=S.length>0?J/S.length:0;if(!y){logger.newline();logger.success(`Sync complete!`);logger.info(`Valid: ${b.validFiles}/${b.totalFiles}`);if(b.fixedFiles>0){logger.info(`Fixed: ${b.fixedFiles}`)}if(b.errors.length>0){logger.warn(`Errors: ${b.errors.length}`)}logger.info(`Avg completeness: ${b.stats.avgCompleteness.toFixed(1)}%`)}return b}async function syncFile(i,g,f,E){const p={valid:false,fixed:false,skipped:false,completeness:0};const y=await(0,promises_namespaceObject.readFile)(i,"utf-8");const{data:b,content:S}=parseFrontmatter(y);const J=validatePartialMetadata(b);const Z=getMissingRequiredFields(b);p.completeness=calculateMetadataCompleteness(b);if(J.valid&&Z.length===0){p.valid=true;p.metadata=b;if(E){const g=updateAutoFields(b,S);if(JSON.stringify(g)!==JSON.stringify(b)){if(!f){const f=setFrontmatter(y,g);await(0,promises_namespaceObject.writeFile)(i,f,"utf-8")}p.fixed=true;p.metadata=g}}return p}if(!E){p.error={file:(0,external_path_.relative)(g,i),error:`Missing required fields: ${Z.join(", ")}`,fixable:true};return p}const $=generateMetadata({filePath:i,content:y,docsRoot:g,existingMetadata:b});const z=mergeMetadata(b,$);p.metadata=z;if(!f){const g=setFrontmatter(y,z);await(0,promises_namespaceObject.writeFile)(i,g,"utf-8")}p.fixed=true;p.valid=true;p.completeness=calculateMetadataCompleteness(z);return p}function updateAutoFields(i,g){return{...i,word_count:countWords(g),estimated_read_time:formatReadTime(g),last_validated:formatDate(new Date)}}async function getSyncStats(i){const g=await syncMetadata({docsPath:i,dryRun:true,fix:false,silent:true});return g.stats}async function checkLinks(i){const{docsPath:g,domain:f,checkExternal:E=false,silent:p=false}=i;const y={totalFiles:0,totalLinks:0,validLinks:0,brokenLinks:[],crossDomainLinks:[],externalLinks:[],stats:{internalLinks:0,externalLinks:0,crossDomainLinks:0,brokenPercentage:0,topConnectedDomains:[]}};if(!p){logger.header("Link Checker")}let b=await findMarkdownFiles(g);if(f){b=b.filter((i=>{const E=(0,external_path_.relative)(g,i);return E.startsWith(f+"/")||E.startsWith(f+"\\")}))}y.totalFiles=b.length;if(!p){logger.info(`Checking ${b.length} files...`)}const S=new Map;for(const i of b){try{const f=await(0,promises_namespaceObject.readFile)(i,"utf-8");const p=markdown_extractLinks(f);const b=(0,external_path_.relative)(g,i);const J=(0,external_path_.dirname)(i);for(const f of p){y.totalLinks++;if(f.isInternal){y.stats.internalLinks++;const E=resolveLink(f.url,J,g);const p=await glob_pathExists(E);if(!p){y.brokenLinks.push({sourceFile:b,targetPath:f.url,lineNumber:f.lineNumber,linkText:f.text,reason:"Target file does not exist"})}else{y.validLinks++;const p=detectDomainFromPath(i,g).domain;const J=detectDomainFromPath(E,g).domain;if(p&&J&&p!==J){y.stats.crossDomainLinks++;y.crossDomainLinks.push({sourceFile:b,sourceDomain:p,targetPath:f.url,targetDomain:J,linkText:f.text});const i=`${p} -> ${J}`;S.set(i,(S.get(i)??0)+1)}}}else{y.stats.externalLinks++;y.externalLinks.push({sourceFile:b,url:f.url,linkText:f.text});if(E){}}}}catch(f){const E=f instanceof Error?f.message:String(f);if(!p){logger.warn(`Error processing ${(0,external_path_.relative)(g,i)}: ${E}`)}}}y.stats.brokenPercentage=y.stats.internalLinks>0?y.brokenLinks.length/y.stats.internalLinks*100:0;y.stats.topConnectedDomains=[...S.entries()].map((([i,g])=>{const[f,E]=i.split(" -> ");return{from:f??"",to:E??"",count:g}})).sort(((i,g)=>g.count-i.count)).slice(0,10);if(!p){logger.newline();logger.success(`Link check complete!`);logger.info(`Total links: ${y.totalLinks}`);logger.info(`Valid: ${y.validLinks}`);if(y.brokenLinks.length>0){logger.warn(`Broken: ${y.brokenLinks.length}`)}logger.info(`Cross-domain: ${y.stats.crossDomainLinks}`)}return y}function resolveLink(i,g,f){const E=i.split("#")[0]??"";if(!E){return g}if(E.startsWith("/")){return(0,external_path_.join)(f,E)}return(0,external_path_.resolve)(g,E)}async function checkSingleLink(i,g,f){const E=dirname(g);const p=resolveLink(i,E,f);const y=await pathExists(p);if(!y){return{valid:false,reason:"Target file does not exist"}}return{valid:true}}async function getFileBrokenLinks(i,g){const f=await readFile(i,"utf-8");const E=extractLinks(f);const p=[];const y=dirname(i);const b=relative(g,i);for(const i of E){if(i.isInternal){const f=resolveLink(i.url,y,g);const E=await pathExists(f);if(!E){p.push({sourceFile:b,targetPath:i.url,lineNumber:i.lineNumber,linkText:i.text,reason:"Target file does not exist"})}}}return p}const SYSTEM_FILES=new Set(["INDEX.md","REGISTRY.md"]);const EXCLUDED_DIRS=new Set(["archive","drafts","reports","_templates","node_modules",".documentation"]);const VAULT_GENERATED_SUBDIRS=["facts","incidents","symptoms"];function vaultOwnedPrefixes(i){const g=(0,external_path_.resolve)(i);const f=(0,external_path_.dirname)(g);const E=resolveVaultRoot(f,loadPluginConfigSync(f));const p=(0,external_path_.relative)(g,E);if(!p||p.startsWith(".."))return[];const y=p.split(external_path_.sep).join("/");return VAULT_GENERATED_SUBDIRS.map((i=>`${y}/${i}`))}async function listDomainDocFiles(i,g){const f=vaultOwnedPrefixes(i);const inVault=i=>{const E=`${g}/${i}`;return f.some((i=>E.startsWith(`${i}/`)))};try{const f=await(0,promises_namespaceObject.readdir)((0,external_path_.join)(i,g),{recursive:true});return f.map((i=>i.split(external_path_.sep).join("/"))).filter((i=>i.endsWith(".md"))).filter((i=>!SYSTEM_FILES.has((0,external_path_.basename)(i)))).filter((i=>!i.split("/").some((i=>EXCLUDED_DIRS.has(i))))).filter((i=>!inVault(i))).sort()}catch{return[]}}function normalizeDate(i){if(i instanceof Date)return formatDate(i);if(typeof i==="string"){const g=i.match(/\d{4}-\d{2}-\d{2}/);return g?g[0]:i}return formatDate(new Date)}function regenerate_countWords(i){return i.split(/\s+/).filter(Boolean).length}function titleFromFileName(i){return(0,external_path_.basename)(i).replace(/\.md$/,"").replace(/[-_]/g," ").replace(/\b\w/g,(i=>i.toUpperCase()))}async function buildDomainEntries(i,g,f){const E=await listDomainDocFiles(i,g);const p=[];for(const y of E){let E;try{E=await(0,promises_namespaceObject.readFile)((0,external_path_.join)(i,g,y),"utf-8")}catch{continue}let b={};let S="";try{({data:b,content:S}=parseFrontmatter(E))}catch(i){logger.warn(`Unparseable frontmatter in ${g}/${y} — indexing it with `+`defaults. Fix the YAML to control how it appears: `+`${i instanceof Error?i.message.split("\n")[0]:String(i)}`)}p.push({path:f+y,title:typeof b.title==="string"&&b.title.trim()?b.title:titleFromFileName(y),tier:typeof b.tier==="string"?b.tier:"guide",status:typeof b.status==="string"?b.status:"active",lastUpdated:normalizeDate(b.last_updated),wordCount:typeof b.word_count==="number"?b.word_count:regenerate_countWords(S)})}return p}async function regenerateIndexes(i){const{docsPath:g,silent:f=false,dryRun:E=false}=i;const p=registry_getAllDomains();const y=i.domains??p;const b={documentCounts:{},filesWritten:[],totalDocuments:0};const S={};for(const i of p){const f=await buildDomainEntries(g,i,"");b.documentCounts[i]=f.length;b.totalDocuments+=f.length;S[i]=f.map((g=>({...g,path:`${i}/${g.path}`})));if(!y.includes(i))continue;const p=(0,external_path_.join)(g,i);if(!await glob_pathExists(p))continue;const J=(0,external_path_.join)(p,"INDEX.md");const Z=(0,external_path_.join)(p,"REGISTRY.md");if(!E){await(0,promises_namespaceObject.writeFile)(J,generateDomainIndexContent(i,f),"utf-8");await(0,promises_namespaceObject.writeFile)(Z,generateDomainRegistryContent(i,f),"utf-8")}b.filesWritten.push(J,Z)}if(await glob_pathExists(g)){const i=(0,external_path_.join)(g,"INDEX.md");const f=(0,external_path_.join)(g,"REGISTRY.md");if(!E){await(0,promises_namespaceObject.writeFile)(i,generateRootIndex(S),"utf-8");await(0,promises_namespaceObject.writeFile)(f,generateRootRegistry(),"utf-8")}b.filesWritten.push(i,f)}if(!f){logger.success(`${E?"Would regenerate":"Regenerated"} ${b.filesWritten.length} `+`index file(s) — ${b.totalDocuments} document(s) across `+`${p.length} domains`)}return b}function checkNamingConvention(i){const g=(0,external_path_.basename)(i,".md");if(["INDEX","REGISTRY","README","CHANGELOG","CONTRIBUTING"].includes(g)){return{valid:true}}const f=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;if(!f.test(g)){const i=[];if(/[A-Z]/.test(g)){i.push("contains uppercase letters")}if(/_/.test(g)){i.push("contains underscores")}if(/\s/.test(g)){i.push("contains spaces")}if(/^[0-9]/.test(g)){i.push("starts with a number")}if(/--/.test(g)){i.push("contains consecutive hyphens")}const f=g.toLowerCase().replace(/[_\s]+/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().replace(/--+/g,"-").replace(/^-|-$/g,"");return{valid:false,message:`File name ${i.join(", ")}`,suggestion:`Rename to: ${f}.md`}}return{valid:true}}function checkFilePlacement(i,g,f){const E=detectDomainFromPath(i,g);const p=E.domain;if(!p&&!f){return{valid:false,message:"File is not in a domain folder",suggestion:"Move file to appropriate domain folder (e.g., security/, api/, etc.)"}}if(f&&p&&f!==p){return{valid:false,message:`File declares domain '${f}' but is in '${p}/' folder`,suggestion:`Move to ${f}/ or update domains in frontmatter`}}if(!p){const E=(0,external_path_.relative)(g,i);const p=E.split(/[/\\]/);if(p.length===1){return{valid:false,message:"File is in documentation root, not in a domain folder",suggestion:f?`Move to ${f}/`:"Move file to appropriate domain folder"}}const y=p[0];if(y&&!isValidDomain(y)&&!["drafts","reports",ARCHIVE_DIR].includes(y)){return{valid:false,message:`File is in unknown folder '${y}'`,suggestion:"Move to a standard domain folder or add as custom domain"}}}return{valid:true}}function checkFileSize(i,g,f){const E=g/1024;const p={guide:{min:1,max:50},standard:{min:1,max:30},example:{min:.5,max:20},reference:{min:5,max:100},admin:{min:1,max:40}};const y=f&&p[f]?p[f]:{min:.5,max:100};if(E<y.min){return{valid:false,message:`File is very small (${E.toFixed(1)} KB)`,suggestion:"Consider adding more content or merging with related document"}}if(E>y.max){return{valid:false,message:`File is very large (${E.toFixed(1)} KB)`,suggestion:"Consider splitting into multiple documents"}}return{valid:true}}function checkRequiredSections(i,g){const f={guide:["overview","prerequisites","steps"],standard:["rules","examples"],example:["code","explanation"],reference:["api","parameters"],admin:["configuration","procedures"]};if(!g||!f[g]){return{valid:true}}const E=i.toLowerCase();const p=f[g];const y=[];for(const i of p){const g=[new RegExp(`^#+\\s*${i}`,"mi"),new RegExp(`^#+\\s*.*${i}`,"mi")];const f=g.some((i=>i.test(E)));if(!f){y.push(i)}}if(y.length>0){return{valid:false,message:`Missing recommended sections for ${g}: ${y.join(", ")}`,suggestion:`Consider adding sections: ${y.map((i=>`## ${rules_capitalize(i)}`)).join(", ")}`}}return{valid:true}}function checkRelativeLinks(i,g){const f=/\[([^\]]*)\]\(([^)]+)\)/g;const E=[];let p;while((p=f.exec(i))!==null){const i=p[2]??"";if(i.startsWith("/")&&!i.startsWith("/http")){if(i.includes("..")){E.push(i)}}if(i.includes("\\")){E.push(i)}if(i.includes(" ")&&!i.includes("%20")){E.push(i)}}if(E.length>0){return{valid:false,message:`Found ${E.length} suspicious links`,suggestion:"Review and fix link paths"}}return{valid:true}}function rules_capitalize(i){return i.charAt(0).toUpperCase()+i.slice(1)}const AUDIT_RULES=[{id:"naming-convention",name:"Naming Convention",description:"Check if file names follow kebab-case convention",severity:"warning",check:i=>checkNamingConvention(i)},{id:"placement",name:"File Placement",description:"Check if files are in the correct domain folders",severity:"warning",check:(i,g)=>checkFilePlacement(i,g)}];async function auditDocumentation(i){const{docsPath:g,domain:f,issuesOnly:E=false,silent:p=false}=i;const y={totalFiles:0,passedFiles:0,failedFiles:0,issues:[],stats:{metadataCompliance:0,namingCompliance:0,placementCompliance:0,tagConsistency:0,byDomain:{}},healthScore:0};if(!p){logger.header("Documentation Audit")}let b=await findMarkdownFiles(g);if(f){b=b.filter((i=>{const E=(0,external_path_.relative)(g,i);return E.startsWith(f+"/")||E.startsWith(f+"\\")}))}b=b.filter((i=>{const g=(0,external_path_.basename)(i);return!["INDEX.md","REGISTRY.md"].includes(g)}));y.totalFiles=b.length;if(!p){logger.info(`Auditing ${b.length} files...`)}let S=0;let J=0;let Z=0;const $=new Map;for(const i of b){const f=await auditFile(i,g);const p=f.some((i=>i.severity==="error"));if(p){y.failedFiles++}else{y.passedFiles++}if(!E||f.length>0){y.issues.push(...f)}const b=f.some((i=>i.rule.startsWith("metadata")));const z=f.some((i=>i.rule==="naming-convention"));const ee=f.some((i=>i.rule==="placement"));if(!b)S++;if(!z)J++;if(!ee)Z++;try{const E=await(0,promises_namespaceObject.readFile)(i,"utf-8");const{data:p}=parseFrontmatter(E);if(p.tags){for(const i of p.tags){$.set(i,($.get(i)??0)+1)}}const b=p.domains?.[0]??detectDomainFromPath(i,g).domain??"unknown";if(!y.stats.byDomain[b]){y.stats.byDomain[b]={files:0,issues:0,healthScore:0}}y.stats.byDomain[b].files++;y.stats.byDomain[b].issues+=f.length}catch{}}const z=await checkIndexDrift(g,f);y.issues.push(...z);y.stats.metadataCompliance=S/b.length*100||0;y.stats.namingCompliance=J/b.length*100||0;y.stats.placementCompliance=Z/b.length*100||0;const ee=[...$.values()].filter((i=>i>1)).length;y.stats.tagConsistency=$.size>0?ee/$.size*100:100;for(const i of Object.values(y.stats.byDomain)){const g=i.issues/i.files;i.healthScore=Math.max(0,100-g*10)}y.healthScore=y.stats.metadataCompliance*.4+y.stats.namingCompliance*.2+y.stats.placementCompliance*.2+y.stats.tagConsistency*.2;if(!p){logger.newline();logger.success(`Audit complete!`);logger.info(`Passed: ${y.passedFiles}/${y.totalFiles}`);logger.info(`Health Score: ${y.healthScore.toFixed(1)}/100`);if(y.issues.length>0){const i=y.issues.filter((i=>i.severity==="error")).length;const g=y.issues.filter((i=>i.severity==="warning")).length;logger.warn(`Issues: ${i} errors, ${g} warnings`)}}return y}async function auditFile(i,g){const f=[];const E=(0,external_path_.relative)(g,i);try{const p=await(0,promises_namespaceObject.readFile)(i,"utf-8");const{data:y}=parseFrontmatter(p);const b=getMissingRequiredFields(y);if(b.length>0){f.push({file:E,rule:"metadata-required",severity:"error",message:`Missing required fields: ${b.join(", ")}`,fixable:true,suggestion:"Run with --fix to auto-generate missing metadata"})}const S=validatePartialMetadata(y);if(!S.valid){for(const i of S.errors){f.push({file:E,rule:"metadata-invalid",severity:"error",message:i,fixable:false})}}if(y.tier&&!isValidTier(y.tier)){f.push({file:E,rule:"metadata-tier",severity:"error",message:`Invalid tier: ${y.tier}`,fixable:true,suggestion:`Valid tiers: ${TIERS.join(", ")}`})}const J=validateKnowledgeBaseFields(y);for(const i of J){const g=KB_ERROR_SEVERITY[i.code];f.push({file:E,rule:`metadata-${i.code.toLowerCase().replace(/_/g,"-")}`,severity:g,message:i.message,fixable:false,code:i.code})}if(y.domains){for(const i of y.domains){if(!isValidDomain(i)){f.push({file:E,rule:"metadata-domain",severity:"warning",message:`Unknown domain: ${i}`,fixable:false,suggestion:"Consider using a standard domain or adding this as a custom domain"})}}}const Z=checkNamingConvention(i);if(!Z.valid){const i={file:E,rule:"naming-convention",severity:"warning",message:Z.message??"Naming convention violation",fixable:false};if(Z.suggestion){i.suggestion=Z.suggestion}f.push(i)}const $=checkFilePlacement(i,g,y.domains?.[0]);if(!$.valid){const i={file:E,rule:"placement",severity:"warning",message:$.message??"File may be in wrong domain",fixable:false};if($.suggestion){i.suggestion=$.suggestion}f.push(i)}if(y.last_updated){const i=new Date(y.last_updated);const g=(Date.now()-i.getTime())/(1e3*60*60*24);if(g>365){f.push({file:E,rule:"stale-content",severity:"info",message:`Document not updated in ${Math.floor(g)} days`,fixable:false,suggestion:"Consider reviewing and updating this document"})}}if(y.status==="deprecated"){f.push({file:E,rule:"deprecated-not-archived",severity:"info",message:"Document is marked deprecated but still in an active domain folder",fixable:false,suggestion:`Retire it with \`hewtd archive ${E}\` (or restore it to active)`})}if(y.tags&&y.tags.length===0&&y.status==="active"){f.push({file:E,rule:"missing-tags",severity:"info",message:"Active document has no tags",fixable:true,suggestion:"Add relevant tags for better discoverability"})}}catch(i){const g=i instanceof Error?i.message:String(i);f.push({file:E,rule:"read-error",severity:"error",message:`Could not read file: ${g}`,fixable:false})}return f}async function checkIndexDrift(i,g){const f=[];const E=g?[g]:registry_getAllDomains();const p="Run `hewtd index` (or `hewtd maintain`) to regenerate it";for(const g of E){const E=await listDomainDocFiles(i,g);if(E.length===0)continue;let y=null;try{y=await(0,promises_namespaceObject.readFile)((0,external_path_.join)(i,g,"INDEX.md"),"utf-8")}catch{y=null}if(y===null){f.push({file:`${g}/INDEX.md`,rule:"index-drift",severity:"error",message:`INDEX.md is missing but ${E.length} document(s) exist in ${g}/`,fixable:true,suggestion:p});continue}const b=y;const S=E.filter((i=>!b.includes(i)));if(S.length>0){f.push({file:`${g}/INDEX.md`,rule:"index-drift",severity:"error",message:`INDEX.md lists ${E.length-S.length} of `+`${E.length} document(s) in ${g}/ — unlisted: ${S.join(", ")}`,fixable:true,suggestion:p})}}return f}async function getAuditSummaryForDomain(i,g){const f=await auditDocumentation({docsPath:i,domain:g,silent:true});return f.stats.byDomain[g]??{files:0,issues:0,healthScore:100}}const isString=i=>typeof i==="string";const isStringArray=i=>Array.isArray(i)&&i.every(isString);async function buildCiterIndex(i){const{projectRoot:g,vaultRoot:f,playbookGlobs:E}=i;const p=new Map;const y=new Map;const b=new Map;const S=await Ze((0,external_path_.join)(f,"facts/*.md"),{nodir:true,absolute:true});for(const i of S){const f=await readFactRef(i,g);if(f)p.set(f.id,f)}const J=await Ze((0,external_path_.join)(f,"incidents/*/narrative.md"),{nodir:true,absolute:true});for(const i of J){const f=await readIncidentRef(i,g);if(f)y.set(f.id,f)}if(p.size===0&&y.size===0){return{facts:p,incidents:y,citers:b}}const Z=new Set;for(const i of E){const g=await Ze(i,{nodir:true,absolute:true});for(const i of g)Z.add(i)}for(const i of Z){const f=await extractPlaybookCitations(i,g);for(const i of f){const g=i.factIds;for(const f of g){const g=b.get(f)??[];g.push(i.citation);b.set(f,g)}}}return{facts:p,incidents:y,citers:b}}async function readFactRef(i,g){try{const f=await(0,promises_namespaceObject.readFile)(i,"utf-8");const{data:E}=gray_matter_default()(f);if(E.tier!=="fact"||!isString(E.id))return null;const p=isStringArray(E.tags)?E.tags:[];const y=citers_normalizeDate(E.last_verified);return{id:E.id,path:i,relPath:(0,external_path_.relative)(g,i),title:isString(E.title)?E.title:E.id,confidence:isString(E.confidence)?E.confidence:undefined,lastVerified:y,tags:p}}catch{return null}}async function readIncidentRef(i,g){try{const f=await(0,promises_namespaceObject.readFile)(i,"utf-8");const{data:E}=gray_matter_default()(f);if(E.tier!=="incident-narrative"||!isString(E.id)){return null}const p=(0,external_path_.resolve)(i,"..");const y=(0,external_path_.join)(p,"facts.md");let b=[];let S=[];let J=[];try{const i=await(0,promises_namespaceObject.readFile)(y,"utf-8");const{data:g}=gray_matter_default()(i);if(g.tier==="incident-facts"){if(isStringArray(g.produced))b=g.produced;if(isStringArray(g.strengthened))S=g.strengthened;if(isStringArray(g.weakened))J=g.weakened}}catch{}return{id:E.id,folderPath:p,relFolderPath:(0,external_path_.relative)(g,p),title:isString(E.title)?E.title:E.id,date:citers_normalizeDate(E.date),severity:isString(E.severity)?E.severity:undefined,resolution_status:isString(E.resolution_status)?E.resolution_status:undefined,components:isStringArray(E.components)?E.components:[],produced:b,strengthened:S,weakened:J}}catch{return null}}async function extractPlaybookCitations(i,g){try{const f=await(0,promises_namespaceObject.readFile)(i,"utf-8");const{data:E}=gray_matter_default()(f);if(!Array.isArray(E.symptoms)||E.symptoms.length===0){return[]}const p=isString(E.title)?E.title:i;const y=[];for(const f of E.symptoms){const E=f;if(!isString(E.target)||!isStringArray(E.cites))continue;let b;let S;if(isString(E.alert_name)){b="alert_name";S=E.alert_name}else if(isStringArray(E.user_phrase)||isString(E.user_phrase)){b="user_phrase";S=E.user_phrase}else if(isString(E.error_pattern)){b="error_pattern";S=E.error_pattern}else{continue}y.push({citation:{relPath:(0,external_path_.relative)(g,i),path:i,title:p,target:E.target,kind:b,key:S,severity:isString(E.severity)?E.severity:undefined},factIds:E.cites})}return y}catch{return[]}}function citers_normalizeDate(i){if(typeof i==="string"&&/^\d{4}-\d{2}-\d{2}$/.test(i)){return i}if(i instanceof Date&&!Number.isNaN(i.getTime())){return i.toISOString().slice(0,10)}return undefined}function findCitersInIndex(i,g){const f=new Set;for(const E of i.citers.get(g)??[]){f.add(E.relPath)}const E=[];const p=[];const y=[];for(const f of i.incidents.values()){if(f.produced.includes(g))E.push(f.id);if(f.strengthened.includes(g))p.push(f.id);if(f.weakened.includes(g))y.push(f.id)}return{fact_id:g,fact_exists:i.facts.has(g),citers:[...f].sort(),incidents_produced_in:E.sort(),incidents_strengthened_by:p.sort(),incidents_weakened_by:y.sort()}}function citerCount(i,g){const f=i.citers.get(g);if(!f)return 0;const E=new Set;for(const i of f)E.add(i.relPath);return E.size}function formatMarkdownTable(i,g){const f=i.map(((i,f)=>{let E=i.length;for(const i of g){const g=i[f]??"";if(g.length>E)E=g.length}return E}));const pad=(i,g)=>i.padEnd(g," ");const E=`| ${i.map(((i,g)=>pad(i,f[g]))).join(" | ")} |`;const p=`|${f.map((i=>"-".repeat(i+2))).join("|")}|`;const y=g.map((i=>`| ${i.map(((i,g)=>pad(i??"",f[g]))).join(" | ")} |`));return[E,p,...y].join("\n")}const CONFIDENCE_ORDER=["high","medium","low","hypothesis"];const UNTAGGED_BUCKET="(untagged)";async function generateFactsIndex(i){const{vaultRoot:g,index:f}=i;const E=(0,external_path_.join)(g,"facts");await(0,promises_namespaceObject.mkdir)(E,{recursive:true});const p=(0,external_path_.join)(E,"INDEX.md");const y=renderFactsIndex(f);await(0,promises_namespaceObject.writeFile)(p,y,"utf-8");return p}function renderFactsIndex(i){const g=bucketFacts(i);const f=[];f.push("---");f.push("title: Facts Index");f.push("tier: reference");f.push("domains:");f.push(" - knowledge-base");f.push("status: active");f.push("last_updated: '0000-00-00'");f.push("version: '1.0.0'");f.push("purpose: Auto-generated index of all facts in the knowledge base, grouped by tag then confidence.");f.push("---");f.push("");f.push("# Facts Index");f.push("");f.push("\x3c!-- Auto-generated by `hewtd maintain`. Do not edit by hand — changes will be overwritten. --\x3e");f.push("");if(i.facts.size===0){f.push("_No facts yet. Create one with the `templates/knowledge-base/fact.template.md` template._");f.push("");return ensureTrailingNewline(f.join("\n"))}f.push(`**Total facts:** ${i.facts.size}`);f.push("");const E=Object.keys(g).sort(((i,g)=>{if(i===UNTAGGED_BUCKET)return 1;if(g===UNTAGGED_BUCKET)return-1;return i.localeCompare(g)}));for(const p of E){f.push(`## ${p}`);f.push("");const E=g[p]??{};const y=CONFIDENCE_ORDER.filter((i=>E[i]!==undefined&&E[i].length>0));for(const g of y){f.push(`### confidence: ${g}`);f.push("");const p=E[g].slice().sort(((i,g)=>i.id.localeCompare(g.id))).map((g=>[`\`${g.id}\``,escapeMd(g.title),g.lastVerified??"—",String(citerCount(i,g.id))]));f.push(formatMarkdownTable(["ID","Title","Last verified","Citers"],p));f.push("")}}return ensureTrailingNewline(f.join("\n"))}function bucketFacts(i){const g={};for(const f of i.facts.values()){const i=f.tags.length>0?f.tags:[UNTAGGED_BUCKET];const E=f.confidence??"unknown";for(const p of i){if(!g[p])g[p]={};if(!g[p][E])g[p][E]=[];g[p][E].push(f)}}return g}function escapeMd(i){return i.replace(/\|/g,"\\|")}function ensureTrailingNewline(i){return i.endsWith("\n")?i:i+"\n"}async function generateIncidentsIndex(i){const{vaultRoot:g,index:f}=i;const E=(0,external_path_.join)(g,"incidents");await(0,promises_namespaceObject.mkdir)(E,{recursive:true});const p=(0,external_path_.join)(E,"INDEX.md");const y=renderIncidentsIndex(f);await(0,promises_namespaceObject.writeFile)(p,y,"utf-8");return p}function renderIncidentsIndex(i){const g=[];g.push("---");g.push("title: Incidents Index");g.push("tier: reference");g.push("domains:");g.push(" - knowledge-base");g.push(" - incidents");g.push("status: active");g.push("last_updated: '0000-00-00'");g.push("version: '1.0.0'");g.push("purpose: Auto-generated chronological index of all incidents in the knowledge base.");g.push("---");g.push("");g.push("# Incidents Index");g.push("");g.push("\x3c!-- Auto-generated by `hewtd maintain`. Do not edit by hand — changes will be overwritten. --\x3e");g.push("");if(i.incidents.size===0){g.push("_No incidents yet. Create one with the `templates/knowledge-base/incident-narrative.template.md` template._");g.push("");return incidents_index_ensureTrailingNewline(g.join("\n"))}g.push(`**Total incidents:** ${i.incidents.size}`);g.push("");const f=[...i.incidents.values()].sort(compareIncidents);const E=f.map((i=>[i.date??"—",`\`${i.id}\``,incidents_index_escapeMd(i.title),i.severity??"—",i.resolution_status??"—",i.components.length>0?i.components.join(", "):"—",String(i.produced.length)]));g.push(formatMarkdownTable(["Date","ID","Title","Severity","Resolution","Components","Facts produced"],E));g.push("");return incidents_index_ensureTrailingNewline(g.join("\n"))}function compareIncidents(i,g){const f=i.date??"0000-00-00";const E=g.date??"0000-00-00";if(f!==E)return E.localeCompare(f);return i.id.localeCompare(g.id)}function incidents_index_escapeMd(i){return i.replace(/\|/g,"\\|")}function incidents_index_ensureTrailingNewline(i){return i.endsWith("\n")?i:i+"\n"}async function generateSymptomsIndex(i){const{vaultRoot:g,index:f}=i;const E=(0,external_path_.join)(g,"symptoms");await(0,promises_namespaceObject.mkdir)(E,{recursive:true});const p=(0,external_path_.join)(E,"INDEX.md");const y=renderSymptomsIndex(f);await(0,promises_namespaceObject.writeFile)(p,y,"utf-8");return p}function renderSymptomsIndex(i){const g=flattenSymptoms(i);const f=[];f.push("---");f.push("title: Symptoms Index");f.push("tier: reference");f.push("domains:");f.push(" - knowledge-base");f.push(" - operations");f.push("status: active");f.push("last_updated: '0000-00-00'");f.push("version: '1.0.0'");f.push("purpose: Auto-generated mapping of symptom keys (alert names, user phrases, error patterns) to playbook anchors and their fact citations.");f.push("---");f.push("");f.push("# Symptoms Index");f.push("");f.push("\x3c!-- Auto-generated by `hewtd maintain`. Do not edit by hand — changes will be overwritten. --\x3e");f.push("");if(g.length===0){f.push("_No symptoms blocks found in scanned playbooks. Add a `symptoms:` block to any playbook frontmatter to populate this index._");f.push("");return symptoms_index_ensureTrailingNewline(f.join("\n"))}for(const i of["alert_name","user_phrase","error_pattern"]){const E=g.filter((g=>g.kind===i)).sort(((i,g)=>{const f=i.key.localeCompare(g.key);if(f!==0)return f;return i.playbookRelPath.localeCompare(g.playbookRelPath)}));if(E.length===0)continue;f.push(`## ${humanizeKind(i)}`);f.push("");const p=E.map((i=>[`\`${symptoms_index_escapeMd(i.key)}\``,`[${i.playbookRelPath}](${i.playbookRelPath}${i.target})`,i.severity??"—",i.cites.map((i=>`\`${i}\``)).join(", ")]));f.push(formatMarkdownTable(["Key","Playbook","Severity","Cites"],p));f.push("")}return symptoms_index_ensureTrailingNewline(f.join("\n"))}function flattenSymptoms(i){const g=new Map;for(const[f,E]of i.citers.entries()){for(const i of E){const E=Array.isArray(i.key)?i.key:[i.key];for(const p of E){const E=`${i.kind}|${p}|${i.relPath}|${i.target}`;const y=g.get(E);if(y){if(!y.cites.includes(f))y.cites.push(f)}else{g.set(E,{kind:i.kind,key:p,playbookRelPath:i.relPath,target:i.target,severity:i.severity,cites:[f]})}}}}for(const i of g.values())i.cites.sort();return[...g.values()]}function humanizeKind(i){switch(i){case"alert_name":return"Alert names (exact match)";case"user_phrase":return"User phrases (fuzzy substring match)";case"error_pattern":return"Error patterns (regex match)"}}function symptoms_index_escapeMd(i){return i.replace(/\|/g,"\\|")}function symptoms_index_ensureTrailingNewline(i){return i.endsWith("\n")?i:i+"\n"}async function runMaintenance(i){const{docsPath:g,quick:f=false,fix:E=false,silent:p=false}=i;const y={success:true,domainHealth:{healthy:true,presentDomains:[],missingDomains:[],missingIndexes:[],missingRegistries:[]},healthScore:0,errors:[]};const b=Date.now();if(!p){logger.header("Documentation Maintenance");logger.info(`Mode: ${f?"Quick":"Full"}${E?" (Auto-fix)":""}`);logger.info(`Path: ${g}`)}if(!p){logger.subheader("Step 0: Domain Health Check")}y.domainHealth=await checkDomainHealth(g);if(!p){if(y.domainHealth.healthy){logger.success(`All ${y.domainHealth.presentDomains.length} domains healthy`)}else{logger.warn(`Domain issues found:`);if(y.domainHealth.missingDomains.length>0){logger.warn(` Missing domains: ${y.domainHealth.missingDomains.join(", ")}`)}if(y.domainHealth.missingIndexes.length>0){logger.warn(` Missing INDEX.md: ${y.domainHealth.missingIndexes.join(", ")}`)}if(y.domainHealth.missingRegistries.length>0){logger.warn(` Missing REGISTRY.md: ${y.domainHealth.missingRegistries.join(", ")}`)}}}if(!p){logger.subheader("Step 1: Metadata Sync")}try{y.metadataSync=await syncMetadata({docsPath:g,dryRun:!E,fix:E,silent:p})}catch(i){const g=i instanceof Error?i.message:String(i);y.errors.push(`Metadata sync failed: ${g}`);y.success=false}if(!p){logger.subheader("Step 1.5: Index Regeneration")}try{y.indexRegeneration=await regenerateIndexes({docsPath:g,silent:p})}catch(i){const g=i instanceof Error?i.message:String(i);y.errors.push(`Index regeneration failed: ${g}`)}if(!f){if(!p){logger.subheader("Step 2: Link Check")}try{y.linkCheck=await checkLinks({docsPath:g,silent:p})}catch(i){const g=i instanceof Error?i.message:String(i);y.errors.push(`Link check failed: ${g}`)}}else if(!p){logger.info("Step 2: Link Check (SKIPPED - quick mode)")}if(!p){logger.subheader("Step 3: Documentation Audit")}try{y.audit=await auditDocumentation({docsPath:g,silent:p})}catch(i){const g=i instanceof Error?i.message:String(i);y.errors.push(`Audit failed: ${g}`)}try{await maybeGenerateKbIndexes(g,p,y)}catch(i){const g=i instanceof Error?i.message:String(i);y.errors.push(`Knowledge-base index generation failed: ${g}`)}y.healthScore=calculateHealthScore(y);if(!p){logger.subheader("Step 4: Generate Report")}try{y.reportPath=await generateMaintenanceReport(g,y,b);if(!p){logger.success(`Report saved: ${y.reportPath}`)}}catch(i){const g=i instanceof Error?i.message:String(i);y.errors.push(`Report generation failed: ${g}`)}if(!p){const i=((Date.now()-b)/1e3).toFixed(1);logger.newline();logger.header("Maintenance Summary");logger.info(`Duration: ${i}s`);logger.info(`Health Score: ${y.healthScore.toFixed(1)}/100`);if(y.metadataSync){logger.info(`Files: ${y.metadataSync.totalFiles}`);if(E){logger.info(`Fixed: ${y.metadataSync.fixedFiles}`)}}if(y.linkCheck){logger.info(`Links: ${y.linkCheck.totalLinks} (${y.linkCheck.brokenLinks.length} broken)`)}if(y.audit){const i=y.audit.issues.filter((i=>i.severity==="error")).length;const g=y.audit.issues.filter((i=>i.severity==="warning")).length;logger.info(`Issues: ${i} errors, ${g} warnings`)}if(y.errors.length>0){logger.warn(`Errors: ${y.errors.length}`)}}return y}async function checkDomainHealth(i){const g={healthy:true,presentDomains:[],missingDomains:[],missingIndexes:[],missingRegistries:[]};for(const f of registry_getAllDomains()){const E=(0,external_path_.join)(i,f);const p=(0,external_path_.join)(E,"INDEX.md");const y=(0,external_path_.join)(E,"REGISTRY.md");const b=await glob_pathExists(E);const S=await glob_pathExists(p);const J=await glob_pathExists(y);if(!b){g.missingDomains.push(f);g.healthy=false}else{g.presentDomains.push(f);if(!S){g.missingIndexes.push(f);g.healthy=false}if(!J){g.missingRegistries.push(f);g.healthy=false}}}return g}function calculateHealthScore(i){let g=100;if(!i.domainHealth.healthy){const f=i.domainHealth.missingDomains.length+i.domainHealth.missingIndexes.length+i.domainHealth.missingRegistries.length;g-=f*2}if(i.metadataSync){const f=i.metadataSync.validFiles/i.metadataSync.totalFiles;g=g*.7+f*30}if(i.linkCheck){const f=i.linkCheck.brokenLinks.length/Math.max(i.linkCheck.totalLinks,1);g-=f*20}if(i.audit){g=g*.7+i.audit.healthScore*.3}return Math.max(0,Math.min(100,g))}async function generateMaintenanceReport(i,g,f){const E=formatDate(new Date);const p=(new Date).toISOString().replace(/[:.]/g,"-").slice(0,19);const y=((Date.now()-f)/1e3).toFixed(1);let b=`---\ntitle: Maintenance Report - ${E}\ntier: admin\ndomains: [root]\nstatus: active\nlast_updated: '${E}'\nversion: '1.0.0'\n---\n\n# Maintenance Report\n\n**Generated:** ${(new Date).toISOString()}\n**Duration:** ${y}s\n**Health Score:** ${g.healthScore.toFixed(1)}/100\n\n## Summary\n\n| Metric | Value |\n|--------|-------|\n| Overall Health | ${g.healthScore.toFixed(1)}% |\n| Domain Health | ${g.domainHealth.healthy?"Healthy":"Issues Found"} |\n| Indexes Regenerated | ${g.indexRegeneration?.filesWritten.length??0} files |\n| Files Scanned | ${g.metadataSync?.totalFiles??0} |\n| Valid Files | ${g.metadataSync?.validFiles??0} |\n| Broken Links | ${g.linkCheck?.brokenLinks.length??"Not checked"} |\n| Audit Issues | ${g.audit?.issues.length??0} |\n\n## Domain Health\n\n`;if(g.domainHealth.healthy){b+=`All ${g.domainHealth.presentDomains.length} domains are healthy.\n\n`}else{if(g.domainHealth.missingDomains.length>0){b+=`### Missing Domains\n\n`;b+=g.domainHealth.missingDomains.map((i=>`- ${i}`)).join("\n");b+="\n\n"}if(g.domainHealth.missingIndexes.length>0){b+=`### Missing INDEX.md Files\n\n`;b+=g.domainHealth.missingIndexes.map((i=>`- ${i}/INDEX.md`)).join("\n");b+="\n\n"}if(g.domainHealth.missingRegistries.length>0){b+=`### Missing REGISTRY.md Files\n\n`;b+=g.domainHealth.missingRegistries.map((i=>`- ${i}/REGISTRY.md`)).join("\n");b+="\n\n"}}if(g.metadataSync){b+=`## Metadata Sync\n\n| Metric | Value |\n|--------|-------|\n| Total Files | ${g.metadataSync.totalFiles} |\n| Valid | ${g.metadataSync.validFiles} |\n| Fixed | ${g.metadataSync.fixedFiles} |\n| Errors | ${g.metadataSync.errors.length} |\n| Avg Completeness | ${g.metadataSync.stats.avgCompleteness.toFixed(1)}% |\n\n`}if(g.linkCheck){b+=`## Link Check\n\n| Metric | Value |\n|--------|-------|\n| Total Links | ${g.linkCheck.totalLinks} |\n| Valid Links | ${g.linkCheck.validLinks} |\n| Broken Links | ${g.linkCheck.brokenLinks.length} |\n| Cross-Domain | ${g.linkCheck.stats.crossDomainLinks} |\n\n`;if(g.linkCheck.brokenLinks.length>0){b+=`### Broken Links\n\n`;b+=`| File | Target | Line |\n`;b+=`|------|--------|------|\n`;for(const i of g.linkCheck.brokenLinks.slice(0,20)){b+=`| ${i.sourceFile} | ${i.targetPath} | ${i.lineNumber} |\n`}if(g.linkCheck.brokenLinks.length>20){b+=`\n*...and ${g.linkCheck.brokenLinks.length-20} more*\n`}b+="\n"}}if(g.audit){b+=`## Audit Results\n\n| Metric | Value |\n|--------|-------|\n| Passed Files | ${g.audit.passedFiles} |\n| Failed Files | ${g.audit.failedFiles} |\n| Health Score | ${g.audit.healthScore.toFixed(1)}% |\n| Metadata Compliance | ${g.audit.stats.metadataCompliance.toFixed(1)}% |\n| Naming Compliance | ${g.audit.stats.namingCompliance.toFixed(1)}% |\n\n`;const i=g.audit.issues.filter((i=>i.severity==="error"));if(i.length>0){b+=`### Critical Issues\n\n`;for(const g of i.slice(0,10)){b+=`- **${g.file}**: ${g.message}\n`}if(i.length>10){b+=`\n*...and ${i.length-10} more errors*\n`}b+="\n"}}if(g.errors.length>0){b+=`## Errors\n\n`;for(const i of g.errors){b+=`- ${i}\n`}}b+=`\n---\n\n*Generated by hit-em-with-the-docs*\n`;const S=(0,external_path_.join)(i,"reports");if(!await glob_pathExists(S)){await(0,promises_namespaceObject.mkdir)(S,{recursive:true})}const J=(0,external_path_.join)(S,`maintenance-${p}.md`);await(0,promises_namespaceObject.writeFile)(J,b,"utf-8");return J}async function maybeGenerateKbIndexes(i,g,f){const E=(0,external_path_.dirname)(i);const p=await loadPluginConfig(E);const y=resolveVaultRoot(E,p);if(!await glob_pathExists(y)){return}if(!g){logger.subheader("Step 3.5: Knowledge-base Indexes")}const b=resolvePlaybookGlobs(E,p);const S=await buildCiterIndex({projectRoot:E,vaultRoot:y,playbookGlobs:b});const J=await generateFactsIndex({vaultRoot:y,index:S});const Z=await generateIncidentsIndex({vaultRoot:y,index:S});const $=await generateSymptomsIndex({vaultRoot:y,index:S});if(!g){logger.success(`Generated ${S.facts.size} facts → ${J}`);logger.success(`Generated ${S.incidents.size} incidents → ${Z}`);logger.success(`Generated symptoms index → ${$}`)}void f}async function quickHealthCheck(i){const g=await checkDomainHealth(i);const f=[];if(!g.healthy){if(g.missingDomains.length>0){f.push(`Missing domains: ${g.missingDomains.join(", ")}`)}if(g.missingIndexes.length>0){f.push(`Missing INDEX.md in: ${g.missingIndexes.join(", ")}`)}}const E=g.healthy?100:100-f.length*10;return{healthy:f.length===0,score:Math.max(0,E),issues:f}}const PATTERN_DEFINITIONS=[{name:"Service Layer with Dependency Injection",category:"architecture",description:"Classes that accept dependencies via constructor",patterns:[/class\s+\w+Service\s*{[\s\S]*?constructor\s*\([^)]*\)/g,/class\s+\w+\s*{[\s\S]*?constructor\s*\(\s*(?:private|readonly)\s+\w+:/g],languages:["typescript","javascript"]},{name:"Repository Pattern",category:"architecture",description:"Data access abstraction layer",patterns:[/class\s+\w+Repository/g,/interface\s+I?\w+Repository/g],languages:["typescript","javascript"]},{name:"Factory Pattern",category:"architecture",description:"Object creation abstraction",patterns:[/class\s+\w+Factory/g,/function\s+create\w+\s*\(/g,/const\s+create\w+\s*=/g],languages:["typescript","javascript"]},{name:"Singleton Pattern",category:"architecture",description:"Single instance management",patterns:[/private\s+static\s+instance/g,/getInstance\s*\(\s*\)/g],languages:["typescript","javascript"]},{name:"Async/Await Database Operations",category:"data-access",description:"Asynchronous database queries",patterns:[/async\s+\w+\s*\([^)]*\)\s*{[\s\S]*?await\s+(?:this\.)?(?:db|database|connection|pool|client)\./g,/await\s+(?:prisma|sequelize|typeorm|knex)\./g],languages:["typescript","javascript"]},{name:"Transaction Management",category:"data-access",description:"Database transaction handling",patterns:[/\.transaction\s*\(/g,/BEGIN\s+TRANSACTION/gi,/COMMIT/gi,/ROLLBACK/gi],languages:["typescript","javascript","sql"]},{name:"Try-Catch Error Handling",category:"error-handling",description:"Structured exception handling",patterns:[/try\s*{[\s\S]*?}\s*catch\s*\(/g],languages:["typescript","javascript"]},{name:"Custom Error Classes",category:"error-handling",description:"Domain-specific error types",patterns:[/class\s+\w+Error\s+extends\s+Error/g,/class\s+\w+Exception\s+extends/g],languages:["typescript","javascript"]},{name:"HTTP Exception Pattern",category:"error-handling",description:"HTTP error response handling",patterns:[/throw\s+new\s+Http\w*Exception/g,/throw\s+new\s+\w*HttpError/g,/throw\s+new\s+BadRequest/g,/throw\s+new\s+NotFound/g,/throw\s+new\s+Unauthorized/g],languages:["typescript","javascript"]},{name:"Authentication Middleware",category:"security",description:"Request authentication handling",patterns:[/(?:auth|authenticate|authorization)\s*(?:middleware|guard|handler)/gi,/@(?:Auth|Authorized|UseGuards)/g,/isAuthenticated/g],languages:["typescript","javascript"]},{name:"JWT Token Handling",category:"security",description:"JSON Web Token operations",patterns:[/jwt\.(?:sign|verify|decode)/g,/jsonwebtoken/g,/Bearer\s+/g],languages:["typescript","javascript"]},{name:"Input Validation",category:"security",description:"Request input sanitization",patterns:[/\.validate\s*\(/g,/zod\./g,/yup\./g,/joi\./g,/@IsString|@IsNumber|@IsEmail/g],languages:["typescript","javascript"]},{name:"Unit Test Structure",category:"testing",description:"Test organization with describe/it blocks",patterns:[/describe\s*\(\s*['"`][^'"`]+['"`]\s*,/g,/it\s*\(\s*['"`][^'"`]+['"`]\s*,/g,/test\s*\(\s*['"`][^'"`]+['"`]\s*,/g],languages:["typescript","javascript"]},{name:"Mock/Stub Pattern",category:"testing",description:"Test double implementations",patterns:[/jest\.mock\s*\(/g,/vi\.mock\s*\(/g,/sinon\.stub\s*\(/g,/\.mockImplementation\s*\(/g],languages:["typescript","javascript"]},{name:"REST Controller Pattern",category:"api",description:"HTTP endpoint handlers",patterns:[/@(?:Get|Post|Put|Delete|Patch)\s*\(/g,/router\.(?:get|post|put|delete|patch)\s*\(/g,/app\.(?:get|post|put|delete|patch)\s*\(/g],languages:["typescript","javascript"]},{name:"API Response Formatting",category:"api",description:"Consistent response structure",patterns:[/return\s*{\s*(?:data|success|message|error|status)/g,/res\.(?:json|send)\s*\(\s*{/g],languages:["typescript","javascript"]},{name:"React Hooks Pattern",category:"state-management",description:"React state and effect hooks",patterns:[/use(?:State|Effect|Context|Reducer|Callback|Memo|Ref)\s*\(/g],languages:["typescript","javascript"],filePatterns:["*.tsx","*.jsx"]},{name:"Redux/Zustand Store",category:"state-management",description:"Global state management",patterns:[/createSlice\s*\(/g,/createStore\s*\(/g,/create\s*\(\s*\([^)]*\)\s*=>\s*\(/g],languages:["typescript","javascript"]}];async function discoverPatterns(i){const{rootPath:g,language:f,category:E,silent:p=false}=i;const y=[];if(!p){logger.header("Pattern Discovery");logger.info(`Scanning: ${g}`)}const b=getExtensionsForLanguage(f);const S=b.map((i=>`**/*${i}`));let J=[];for(const i of S){const f=await glob(i,{cwd:g,absolute:true,ignore:["**/node_modules/**","**/dist/**","**/build/**","**/.git/**"]});J.push(...f)}J=[...new Set(J)];if(!p){logger.info(`Found ${J.length} source files`)}let Z=PATTERN_DEFINITIONS;if(f){Z=Z.filter((i=>!i.languages||i.languages.includes(f)))}if(E){Z=Z.filter((i=>i.category===E))}for(const i of Z){const f=await scanForPattern(J,g,i);if(f.occurrences>0){y.push(f)}}y.sort(((i,g)=>g.occurrences-i.occurrences));if(!p){logger.newline();logger.success(`Discovered ${y.length} patterns`);for(const i of y.slice(0,10)){logger.info(` ${i.name}: ${i.occurrences} occurrences`)}}return y}async function scanForPattern(i,g,f){const E=[];let p=0;for(const y of i){if(f.filePatterns){const i=(0,external_path_.extname)(y);const g=f.filePatterns.some((g=>g.endsWith(i)||g===`*${i}`));if(!g)continue}try{const i=await(0,promises_namespaceObject.readFile)(y,"utf-8");const b=i.split("\n");for(const S of f.patterns){S.lastIndex=0;let f;while((f=S.exec(i))!==null){p++;if(E.length<5){const p=i.slice(0,f.index);const S=(p.match(/\n/g)??[]).length+1;const J=b[S-1]??"";E.push({file:(0,external_path_.relative)(g,y),line:S,code:J.trim().slice(0,100)})}}}}catch{}}return{name:f.name,category:f.category,description:f.description,occurrences:p,examples:E}}function getExtensionsForLanguage(i){const g={typescript:[".ts",".tsx"],javascript:[".js",".jsx",".mjs"],python:[".py"],go:[".go"],rust:[".rs"],java:[".java"],csharp:[".cs"],ruby:[".rb"],php:[".php"]};if(i&&g[i]){return g[i]}return[".ts",".tsx",".js",".jsx",".mjs"]}function generatePatternDocumentation(i){let g=`# ${i.name}\n\n## Overview\n\n${i.description}\n\n**Category:** ${i.category}\n**Occurrences:** ${i.occurrences}\n\n## Examples\n\n`;for(const f of i.examples){g+=`### ${f.file}:${f.line}\n\n\`\`\`typescript\n${f.code}\n\`\`\`\n\n`}g+=`## Usage Guidelines\n\n[Add guidelines for when and how to use this pattern]\n\n## Related Patterns\n\n[Add links to related patterns]\n`;return g}const ANTI_PATTERN_DEFINITIONS=[{name:"Hardcoded Credentials",type:"hardcoded-credentials",severity:"high",description:"Sensitive credentials hardcoded in source code",patterns:[/(?:password|passwd|pwd)\s*[:=]\s*['"][^'"]+['"]/gi,/(?:api[_-]?key|apikey)\s*[:=]\s*['"][^'"]+['"]/gi,/(?:secret|token)\s*[:=]\s*['"][a-zA-Z0-9]{20,}['"]/gi,/(?:auth|bearer)\s*[:=]\s*['"][^'"]+['"]/gi],recommendation:"Move credentials to environment variables or a secrets manager",exclude:[/\.test\.|\.spec\.|mock|fixture|example/i]},{name:"Potential SQL Injection",type:"sql-injection",severity:"high",description:"String interpolation in SQL queries",patterns:[/`SELECT\s+.+\$\{/gi,/`INSERT\s+.+\$\{/gi,/`UPDATE\s+.+\$\{/gi,/`DELETE\s+.+\$\{/gi,/['"]SELECT\s+.+['"]\s*\+/gi],recommendation:"Use parameterized queries or prepared statements"},{name:"Missing Error Handling",type:"missing-error-handling",severity:"high",description:"Async operations without try-catch or .catch()",patterns:[/await\s+[^;]+;(?!\s*}\s*catch)/g],recommendation:"Wrap async operations in try-catch blocks"},{name:"Console.log in Production Code",type:"console-log",severity:"medium",description:"Debug console statements left in code",patterns:[/console\.log\s*\(/g,/console\.debug\s*\(/g,/console\.info\s*\(/g],recommendation:"Remove console statements or use a proper logging library",exclude:[/\.test\.|\.spec\./i]},{name:'TypeScript "any" Type',type:"any-type",severity:"medium",description:'Using "any" type defeats TypeScript benefits',patterns:[/:\s*any\s*[;,)=]/g,/as\s+any/g,/<any>/g],recommendation:'Use proper types or "unknown" with type guards'},{name:"Magic Numbers",type:"magic-numbers",severity:"medium",description:"Unexplained numeric literals in code",patterns:[/(?:if|while|for).*[<>=]+\s*\d{2,}/g,/setTimeout\s*\([^,]+,\s*\d{4,}\)/g,/setInterval\s*\([^,]+,\s*\d{4,}\)/g],recommendation:"Extract to named constants with descriptive names",exclude:[/\b(?:0|1|2|100|1000)\b/]},{name:"Long Function",type:"long-function",severity:"medium",description:"Functions exceeding recommended length",patterns:[],recommendation:"Break down into smaller, focused functions"},{name:"Unused Imports",type:"unused-import",severity:"low",description:"Imported modules that are not used",patterns:[],recommendation:"Remove unused imports to reduce bundle size"},{name:"Deprecated API Usage",type:"deprecated-api",severity:"low",description:"Using deprecated methods or APIs",patterns:[/@deprecated/gi,/\.substr\s*\(/g,/new\s+Buffer\s*\(/g],recommendation:"Update to use current API versions"}];async function discoverAntiPatterns(i){const{rootPath:g,silent:f=false}=i;const E=[];if(!f){logger.header("Anti-Pattern Discovery");logger.info(`Scanning: ${g}`)}const p=["**/*.ts","**/*.tsx","**/*.js","**/*.jsx"];let y=[];for(const i of p){const f=await glob(i,{cwd:g,absolute:true,ignore:["**/node_modules/**","**/dist/**","**/build/**","**/.git/**"]});y.push(...f)}y=[...new Set(y)];if(!f){logger.info(`Scanning ${y.length} files...`)}for(const i of ANTI_PATTERN_DEFINITIONS){if(i.patterns.length===0)continue;const f=await scanForAntiPattern(y,g,i);if(f.locations.length>0){E.push(f)}}const b=await findLongFunctions(y,g);if(b.locations.length>0){E.push(b)}const S=await findGodObjects(y,g);if(S.locations.length>0){E.push(S)}const J={high:0,medium:1,low:2};E.sort(((i,g)=>J[i.severity]-J[g.severity]));if(!f){logger.newline();logger.success(`Found ${E.length} anti-pattern types`);const i=E.filter((i=>i.severity==="high"));const g=E.filter((i=>i.severity==="medium"));const f=E.filter((i=>i.severity==="low"));if(i.length>0){logger.error(`High severity: ${i.length} types, ${i.reduce(((i,g)=>i+g.locations.length),0)} occurrences`)}if(g.length>0){logger.warn(`Medium severity: ${g.length} types, ${g.reduce(((i,g)=>i+g.locations.length),0)} occurrences`)}if(f.length>0){logger.info(`Low severity: ${f.length} types, ${f.reduce(((i,g)=>i+g.locations.length),0)} occurrences`)}}return E}async function scanForAntiPattern(i,g,f){const E=[];for(const p of i){if(f.exclude?.some((i=>i.test(p)))){continue}try{const i=await(0,promises_namespaceObject.readFile)(p,"utf-8");const y=i.split("\n");for(const b of f.patterns){b.lastIndex=0;let S;while((S=b.exec(i))!==null){if(f.exclude?.some((i=>i.test(S[0])))){continue}const b=i.slice(0,S.index);const J=(b.match(/\n/g)??[]).length+1;const Z=y[J-1]??"";if(Z.trim().startsWith("//")||Z.trim().startsWith("*")){continue}E.push({file:(0,external_path_.relative)(g,p),line:J,code:Z.trim().slice(0,100)});if(E.length>=20)break}if(E.length>=20)break}}catch{}}return{name:f.name,severity:f.severity,type:f.type,description:f.description,locations:E,recommendation:f.recommendation}}async function findLongFunctions(i,g){const f=[];const E=50;for(const p of i){try{const i=await(0,promises_namespaceObject.readFile)(p,"utf-8");const y=i.split("\n");const b=/(?:function\s+\w+|(?:async\s+)?(?:const|let|var)\s+\w+\s*=\s*(?:async\s*)?\([^)]*\)\s*=>|(?:async\s+)?\w+\s*\([^)]*\)\s*{)/g;let S;while((S=b.exec(i))!==null){const b=(i.slice(0,S.index).match(/\n/g)??[]).length+1;let J=0;let Z=false;let $=b;for(let i=b-1;i<y.length;i++){const g=y[i]??"";if(g.includes("{")){J+=(g.match(/{/g)??[]).length;Z=true}if(g.includes("}")){J-=(g.match(/}/g)??[]).length}if(Z&&J===0){$=i+1;break}}const z=$-b;if(z>E){f.push({file:(0,external_path_.relative)(g,p),line:b,code:`Function spans ${z} lines`});if(f.length>=10)break}}}catch{}}return{name:"Long Function",severity:"medium",type:"long-function",description:`Functions exceeding ${E} lines`,locations:f,recommendation:"Break down into smaller, focused functions"}}async function findGodObjects(i,g){const f=[];const E=500;for(const p of i){try{const i=await(0,promises_namespaceObject.readFile)(p,"utf-8");const y=i.split("\n");const b=/class\s+(\w+)/g;let S;while((S=b.exec(i))!==null){const b=S[1];const J=(i.slice(0,S.index).match(/\n/g)??[]).length+1;let Z=0;let $=false;let z=J;for(let i=J-1;i<y.length;i++){const g=y[i]??"";if(g.includes("{")){Z+=(g.match(/{/g)??[]).length;$=true}if(g.includes("}")){Z-=(g.match(/}/g)??[]).length}if($&&Z===0){z=i+1;break}}const ee=z-J;if(ee>E){f.push({file:(0,external_path_.relative)(g,p),line:J,code:`Class ${b} spans ${ee} lines`});if(f.length>=10)break}}}catch{}}return{name:"God Object",severity:"medium",type:"god-object",description:`Classes exceeding ${E} lines with too many responsibilities`,locations:f,recommendation:"Split into smaller classes with single responsibilities"}}async function discoverStandards(i){const{rootPath:g,silent:f=false}=i;if(!f){logger.header("Standards Discovery");logger.info(`Analyzing: ${g}`)}const E=await glob("**/*.{ts,tsx}",{cwd:g,absolute:true,ignore:["**/node_modules/**","**/dist/**"]});const p=await glob("**/*.{js,jsx,mjs}",{cwd:g,absolute:true,ignore:["**/node_modules/**","**/dist/**"]});const y=[...new Set([...E,...p])];if(!f){logger.info(`Analyzing ${y.length} source files...`)}const b=await discoverNamingStandards(y,g);const S=await discoverFileOrganization(g);const J=await discoverCodeStyle(y);const Z=await discoverDocumentationStandards(y);const $=await discoverTestingStandards(g);const z={naming:b,fileOrganization:S,codeStyle:J,documentation:Z,testing:$};if(!f){logger.newline();logger.success("Standards discovered:");logger.info(` Functions: ${b.functions.convention} (${b.functions.compliance.toFixed(0)}% compliance)`);logger.info(` Classes: ${b.classes.convention} (${b.classes.compliance.toFixed(0)}% compliance)`);logger.info(` Indentation: ${J.indentation}${J.indentSize?` (${J.indentSize} spaces)`:""}`);logger.info(` Type hints: ${Z.typeHintCoverage.toFixed(0)}% coverage`)}return z}async function discoverNamingStandards(i,g){const f=[];const E=[];const p=[];const y=[];for(const b of i.slice(0,100)){try{const i=await(0,promises_namespaceObject.readFile)(b,"utf-8");const S=(0,external_path_.relative)(g,b);const J=i.matchAll(/(?:function\s+(\w+)|(?:const|let|var)\s+(\w+)\s*=\s*(?:async\s*)?\([^)]*\)\s*=>)/g);for(const i of J){const g=i[1]??i[2];if(g)f.push({name:g,file:S})}const Z=i.matchAll(/class\s+(\w+)/g);for(const i of Z){if(i[1])E.push({name:i[1],file:S})}const $=i.matchAll(/const\s+([A-Z][A-Z0-9_]+)\s*=/g);for(const i of $){if(i[1])p.push({name:i[1],file:S})}const z=i.matchAll(/(?:const|let|var)\s+([a-z][a-zA-Z0-9]*)\s*=/g);for(const i of z){if(i[1])y.push({name:i[1],file:S})}}catch{}}const b=i.slice(0,20).map((i=>({name:(0,external_path_.basename)(i),file:(0,external_path_.relative)(g,i)})));return{functions:analyzeNamingConvention(f,"camelCase"),classes:analyzeNamingConvention(E,"PascalCase"),constants:analyzeNamingConvention(p,"UPPER_SNAKE_CASE"),variables:analyzeNamingConvention(y,"camelCase"),files:analyzeFileNaming(b)}}function analyzeNamingConvention(i,g){const f={camelCase:i=>/^[a-z][a-zA-Z0-9]*$/.test(i),PascalCase:i=>/^[A-Z][a-zA-Z0-9]*$/.test(i),UPPER_SNAKE_CASE:i=>/^[A-Z][A-Z0-9_]*$/.test(i),"kebab-case":i=>/^[a-z][a-z0-9-]*$/.test(i),snake_case:i=>/^[a-z][a-z0-9_]*$/.test(i)};const E=f[g]??f.camelCase;const p=i.filter((i=>E(i.name)));const y=i.length>0?p.length/i.length*100:100;let b=g;let S=y;for(const[g,E]of Object.entries(f)){const f=i.filter((i=>E(i.name))).length/Math.max(i.length,1)*100;if(f>S){S=f;b=g}}return{convention:b,compliance:S,examples:i.slice(0,5).map((i=>({...i,compliant:E(i.name)})))}}function analyzeFileNaming(i){const g=i.filter((i=>/^[a-z][a-z0-9-]*\./.test(i.name))).length;const f=i.filter((i=>/^[a-z][a-zA-Z0-9]*\./.test(i.name))).length;const E=i.filter((i=>/^[A-Z][a-zA-Z0-9]*\./.test(i.name))).length;const p=i.filter((i=>/^[a-z][a-z0-9_]*\./.test(i.name))).length;const y=i.length||1;const b=[{name:"kebab-case",count:g},{name:"camelCase",count:f},{name:"PascalCase",count:E},{name:"snake_case",count:p}];const S=b.sort(((i,g)=>g.count-i.count))[0];return{convention:S.name,compliance:S.count/y*100,examples:i.slice(0,5).map((i=>({...i,compliant:S.name==="kebab-case"?/^[a-z][a-z0-9-]*\./.test(i.name):true})))}}async function discoverFileOrganization(i){const g=[];const f=[{pattern:"src/",glob:"src/**/*"},{pattern:"lib/",glob:"lib/**/*"},{pattern:"components/",glob:"**/components/**/*"},{pattern:"services/",glob:"**/services/**/*"},{pattern:"models/",glob:"**/models/**/*"},{pattern:"utils/",glob:"**/utils/**/*"},{pattern:"hooks/",glob:"**/hooks/**/*"},{pattern:"api/",glob:"**/api/**/*"},{pattern:"routes/",glob:"**/routes/**/*"},{pattern:"routers/",glob:"**/routers/**/*"},{pattern:"tests/",glob:"**/tests/**/*"},{pattern:"__tests__/",glob:"**/__tests__/**/*"}];for(const{pattern:E,glob:p}of f){const f=await glob(p,{cwd:i,ignore:["**/node_modules/**","**/dist/**"]});if(f.length>0){g.push({pattern:E,files:f.length,examples:f.slice(0,3)})}}const E=await glob("*",{cwd:i});const p=E.filter((i=>!i.includes(".")));return{patterns:g.sort(((i,g)=>g.files-i.files)),rootFolders:p}}async function discoverCodeStyle(i){let g=0;let f=0;let E=0;let p=0;let y=0;let b=0;let S=0;let J=0;let Z=0;let $=0;let z=0;for(const ee of i.slice(0,50)){try{const i=await(0,promises_namespaceObject.readFile)(ee,"utf-8");const re=i.split("\n");for(const i of re){if(i.startsWith("\t"))g++;if(i.startsWith(" ")){f++;if(i.startsWith(" ")&&!i.startsWith(" "))p++;else if(i.startsWith(" ")&&!i.startsWith(" "))E++}if(i.length>z)z=i.length;if(/[a-zA-Z0-9)}\]'"`]\s*;$/.test(i.trim()))y++;if(/[a-zA-Z0-9)}\]'"`]$/.test(i.trim())&&!i.trim().endsWith("{"))b++;if(i.includes("'")&&!i.includes('"'))S++;if(i.includes('"')&&!i.includes("'"))J++;if(/,\s*[}\]]/.test(i))Z++;if(/[^,\s]\s*[}\]]/.test(i))$++}}catch{}}const ee=g>f*.8?"tabs":f>g*.8?"spaces":"mixed";const re=p>E?4:2;const Pe=y>b*2?"always":b>y*2?"never":"mixed";const $t=S>J*2?"single":J>S*2?"double":"mixed";const tn=Z>$*2?"always":$>Z*2?"never":"mixed";const sn={maxLineLength:z,indentation:ee,semicolons:Pe,quotes:$t,trailingCommas:tn};if(ee==="spaces"){sn.indentSize=re}return sn}async function discoverDocumentationStandards(i){let g=0;let f=0;let E=0;let p=0;let y=0;for(const b of i.slice(0,50)){try{const i=await(0,promises_namespaceObject.readFile)(b,"utf-8");const S=i.match(/(?:function\s+\w+|(?:const|let|var)\s+\w+\s*=\s*(?:async\s*)?\([^)]*\)\s*=>)/g);g+=S?.length??0;const J=i.match(/\/\*\*[\s\S]*?\*\/\s*(?:export\s+)?(?:async\s+)?(?:function|const|let|var)/g);f+=J?.length??0;if(i.includes("@param"))p++;if(i.includes("@returns"))y++;const Z=i.match(/\([^)]*:[^)]+\)\s*(?::\s*\w+)?\s*(?:=>|{)/g);E+=Z?.length??0}catch{}}const b=y>p?"TSDoc":"JSDoc";const S=g>0?f/g*100:0;const J=g>0?E/g*100:0;return{docstringStyle:b,coverage:S,typeHintCoverage:J}}async function discoverTestingStandards(i){const g=["**/*.test.ts","**/*.spec.ts","**/__tests__/*.ts","**/test/*.ts","**/tests/*.ts"];let f="*.test.ts";let E=0;for(const p of g){const g=await glob(p,{cwd:i,ignore:["**/node_modules/**"]});if(g.length>E){E=g.length;f=p.replace("**/","").replace("/*.ts","")}}const p=await glob("**/fixtures/**/*",{cwd:i,ignore:["**/node_modules/**"]});const y={pattern:f};if(p.length>0){y.fixturePattern="fixtures/"}return y}async function analyzeDependencies(i){const{rootPath:g,silent:f=false}=i;if(!f){logger.header("Dependency Analysis");logger.info(`Analyzing: ${g}`)}const E=await analyzePackages(g);if(!f){logger.info(`Found ${E.total} packages (${E.production} prod, ${E.development} dev)`)}const p=await analyzeModules(g);if(!f){logger.info(`Analyzed ${p.totalFiles} files, ${p.imports} imports`);if(p.circularDependencies.length>0){logger.warn(`Found ${p.circularDependencies.length} circular dependencies`)}}const y=await analyzeSecurityBasic(E);const b=await findUnusedDependencies(g,E);if(!f&&b.length>0){logger.warn(`Found ${b.length} potentially unused dependencies`)}return{packages:E,modules:p,security:y,unused:b}}async function analyzePackages(i){const g={total:0,production:0,development:0,dependencies:[],devDependencies:[]};const f=(0,external_path_.join)(i,"package.json");if(!await glob_pathExists(f)){return g}try{const i=await(0,promises_namespaceObject.readFile)(f,"utf-8");const E=JSON.parse(i);if(E.dependencies){for(const[i,f]of Object.entries(E.dependencies)){g.dependencies.push({name:i,version:String(f),type:"production"})}g.production=g.dependencies.length}if(E.devDependencies){for(const[i,f]of Object.entries(E.devDependencies)){g.devDependencies.push({name:i,version:String(f),type:"development"})}g.development=g.devDependencies.length}g.total=g.production+g.development}catch{}return g}async function analyzeModules(i){const g={totalFiles:0,imports:0,circularDependencies:[],highCoupling:[]};const f=await glob("**/*.{ts,tsx,js,jsx}",{cwd:i,absolute:true,ignore:["**/node_modules/**","**/dist/**","**/build/**"]});g.totalFiles=f.length;const E=new Map;const p=new Map;for(const y of f){try{const f=await(0,promises_namespaceObject.readFile)(y,"utf-8");const b=(0,external_path_.relative)(i,y);const S=f.matchAll(/import\s+.*?from\s+['"]([^'"]+)['"]/g);const J=new Set;for(const i of S){const f=i[1];if(f?.startsWith(".")){const i=resolveImport(b,f);J.add(i);g.imports++;if(!p.has(i)){p.set(i,new Set)}p.get(i).add(b)}}E.set(b,J)}catch{}}g.circularDependencies=detectCircularDependencies(E);for(const[i,f]of E){const E=f.size;const y=p.get(i)?.size??0;if(E>10||y>10){g.highCoupling.push({file:i,imports:E,importedBy:y})}}g.highCoupling.sort(((i,g)=>g.imports+g.importedBy-(i.imports+i.importedBy)));return g}function resolveImport(i,g){const f=i.split("/").slice(0,-1).join("/");const E=g.split("/");const p=f?f.split("/"):[];for(const i of E){if(i===".")continue;if(i===".."){p.pop()}else{p.push(i)}}let y=p.join("/");if(!y.match(/\.[jt]sx?$/)){y+=".ts"}return y}function detectCircularDependencies(i){const g=[];const f=new Set;const E=new Set;function dfs(p,y){if(E.has(p)){const i=y.indexOf(p);if(i!==-1){g.push({files:y.slice(i)})}return true}if(f.has(p)){return false}f.add(p);E.add(p);y.push(p);const b=i.get(p)??new Set;for(const i of b){dfs(i,[...y])}E.delete(p);return false}for(const g of i.keys()){if(!f.has(g)){dfs(g,[])}}const p=[];const y=new Set;for(const i of g){const g=[...i.files].sort().join("->");if(!y.has(g)){y.add(g);p.push(i)}}return p.slice(0,10)}async function analyzeSecurityBasic(i){const g=[];const f={lodash:{severity:"high",title:"Prototype Pollution in lodash < 4.17.21",fix:"Upgrade to lodash@4.17.21 or higher"},minimist:{severity:"moderate",title:"Prototype Pollution in minimist < 1.2.6",fix:"Upgrade to minimist@1.2.6 or higher"},"node-fetch":{severity:"moderate",title:"Exposure of Sensitive Information in node-fetch < 2.6.7",fix:"Upgrade to node-fetch@2.6.7 or higher"}};const E=[...i.dependencies,...i.devDependencies];for(const i of E){const E=f[i.name];if(E){g.push({package:i.name,severity:E.severity,title:E.title,recommendation:E.fix})}}return{vulnerabilities:g}}async function findUnusedDependencies(i,g){const f=[];const E=await glob("**/*.{ts,tsx,js,jsx,json}",{cwd:i,absolute:true,ignore:["**/node_modules/**","**/dist/**"]});let p="";for(const i of E){try{const g=await(0,promises_namespaceObject.readFile)(i,"utf-8");p+=g+"\n"}catch{}}const y=[...g.dependencies,...g.devDependencies];for(const i of y){const g=i.name;if(["typescript","@types/","eslint","prettier","vitest","jest"].some((i=>g.includes(i)))){continue}const E=[`from '${g}'`,`from "${g}"`,`require('${g}')`,`require("${g}")`,`from '${g}/`,`from "${g}/`];const y=E.some((i=>p.includes(i)));if(!y){f.push({name:g,type:i.type,reason:"No import found in source files"})}}return f}async function run(){try{const i=core.getInput("command",{required:true});const g=core.getInput("mode")||"quick";const f=(0,external_path_.resolve)(process.cwd(),core.getInput("docs-path")||".documentation");const E=core.getInput("domain")||undefined;const p=core.getInput("discover-type")||"patterns";const y=core.getInput("fail-on-error")==="true";const b=parseInt(core.getInput("fail-threshold")||"50",10);core.info(`Running command: ${i}`);core.info(`Documentation path: ${f}`);core.info(`Mode: ${g}`);let S=100;let J=0;let Z=0;let $=0;let z=0;let ee=100;let re="";switch(i){case"init":{core.info("Initializing documentation structure...");const i=await createScaffold({rootPath:f,overwrite:false,silent:false});if(!i.success){throw new Error(`Init failed: ${i.errors.join(", ")}`)}core.info(`Created ${i.created.length} files/directories`);break}case"maintain":{core.info("Running maintenance...");const i=await runMaintenance({docsPath:f,quick:g==="quick",fix:g==="fix",silent:false});S=i.healthScore;J=i.metadataSync?.totalFiles??0;Z=i.audit?.issues.length??0;$=i.metadataSync?.fixedFiles??0;z=i.linkCheck?.brokenLinks.length??0;ee=i.audit?.stats.metadataCompliance??100;re=i.reportPath??"";if(i.errors.length>0){core.warning(`Maintenance completed with errors: ${i.errors.join(", ")}`)}break}case"metadata-sync":{core.info("Syncing metadata...");const i=await syncMetadata({docsPath:f,...E?{domain:E}:{},fix:g==="fix",dryRun:g!=="fix",silent:false});J=i.totalFiles;Z=i.errors.length;$=i.fixedFiles;ee=i.stats.avgCompleteness;break}case"link-check":{core.info("Checking links...");const i=await checkLinks({docsPath:f,...E?{domain:E}:{},silent:false});J=i.totalFiles;z=i.brokenLinks.length;Z=z;if(z>0){core.warning(`Found ${z} broken links`);for(const g of i.brokenLinks.slice(0,10)){core.warning(` ${g.sourceFile}:${g.lineNumber} -> ${g.targetPath}`)}}break}case"audit":{core.info("Auditing documentation...");const i=await auditDocumentation({docsPath:f,...E?{domain:E}:{},silent:false});S=i.healthScore;J=i.totalFiles;Z=i.issues.length;ee=i.stats.metadataCompliance;const g=i.issues.filter((i=>i.severity==="error"));if(g.length>0){core.warning(`Found ${g.length} critical issues`)}break}case"discover":{core.info(`Discovering ${p}...`);switch(p){case"patterns":await discoverPatterns({rootPath:process.cwd(),silent:false});break;case"anti-patterns":await discoverAntiPatterns({rootPath:process.cwd(),silent:false});break;case"standards":await discoverStandards({rootPath:process.cwd(),silent:false});break;case"dependencies":await analyzeDependencies({rootPath:process.cwd(),silent:false});break;default:throw new Error(`Unknown discover type: ${p}`)}break}default:throw new Error(`Unknown command: ${i}`)}core.setOutput("health-score",S.toString());core.setOutput("total-documents",J.toString());core.setOutput("issues-found",Z.toString());core.setOutput("issues-fixed",$.toString());core.setOutput("broken-links",z.toString());core.setOutput("metadata-compliance",ee.toFixed(1));core.setOutput("report-path",re);if(y){if(S<b){core.setFailed(`Health score ${S.toFixed(1)} is below threshold ${b}`);return}if(z>0){core.setFailed(`Found ${z} broken links`);return}const i=Z;if(i>0&&g!=="fix"){core.setFailed(`Found ${i} issues that need attention`);return}}core.info("Command completed successfully!")}catch(i){const g=i instanceof Error?i.message:String(i);core.setFailed(g)}}run();