UNPKG

@debugmcp/mcp-debugger

Version:

Step-through debugging MCP server for LLMs

7 lines 815 kB
"use strict";(()=>{var OF=Object.create;var dp=Object.defineProperty;var AS=Object.getOwnPropertyDescriptor;var MF=Object.getOwnPropertyNames;var LF=Object.getPrototypeOf,NF=Object.prototype.hasOwnProperty;var g=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var lu=(r,e)=>()=>(r&&(e=r(r=0)),e);var _=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),FF=(r,e)=>{for(var t in e)dp(r,t,{get:e[t],enumerable:!0})},BF=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of MF(e))!NF.call(r,i)&&i!==t&&dp(r,i,{get:()=>e[i],enumerable:!(n=AS(e,i))||n.enumerable});return r};var S=(r,e,t)=>(t=r!=null?OF(LF(r)):{},BF(e||!r||!r.__esModule?dp(t,"default",{value:r,enumerable:!0}):t,r));var P=(r,e,t,n)=>{for(var i=n>1?void 0:n?AS(e,t):e,o=r.length-1,s;o>=0;o--)(s=r[o])&&(i=(n?s(e,t,i):s(i))||i);return n&&i&&dp(e,t,i),i},y=(r,e)=>(t,n)=>e(t,n,r);var He=_((_J,MS)=>{"use strict";var Lg=Object.defineProperty,UF=Object.getOwnPropertyDescriptor,jF=Object.getOwnPropertyNames,qF=Object.prototype.hasOwnProperty,WF=(r,e)=>{for(var t in e)Lg(r,t,{get:e[t],enumerable:!0})},VF=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of jF(e))!qF.call(r,i)&&i!==t&&Lg(r,i,{get:()=>e[i],enumerable:!(n=UF(e,i))||n.enumerable});return r},$F=r=>VF(Lg({},"__esModule",{value:!0}),r),DS={};WF(DS,{config:()=>JF,t:()=>OS});MS.exports=$F(DS);var HF=g("fs"),GF=g("fs/promises");async function zF(r){if(r.protocol==="file:")return await(0,GF.readFile)(r,"utf8");if(r.protocol==="http:"||r.protocol==="https:"){let e=await fetch(r.toString(),{headers:{"Accept-Encoding":"gzip, deflate",Accept:"application/json"},redirect:"follow"});if(!e.ok){let n=`Unexpected ${e.status} response while trying to read ${r}`;try{n+=`: ${await e.text()}`}catch{}throw new Error(n)}return await e.text()}throw new Error("Unsupported protocol")}function KF(r){return(0,HF.readFileSync)(r,"utf8")}var pu;function JF(r){if("contents"in r){typeof r.contents=="string"?pu=JSON.parse(r.contents):pu=r.contents;return}if("fsPath"in r){let e=KF(r.fsPath),t=JSON.parse(e);pu=kS(t)?t.contents.bundle:t;return}if(r.uri){let e=r.uri;return typeof r.uri=="string"&&(e=new URL(r.uri)),new Promise((t,n)=>{zF(e).then(i=>{try{let o=JSON.parse(i);pu=kS(o)?o.contents.bundle:o,t()}catch(o){n(o)}}).catch(i=>{n(i)})})}}function OS(...r){let e=r[0],t,n,i;if(typeof e=="string")t=e,n=e,r.splice(0,1),i=!r||typeof r[0]!="object"?r:r[0];else if(e instanceof Array){let s=r.slice(1);if(e.length!==s.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=e[0];for(let c=1;c<e.length;c++)a+=`{${c-1}}`+e[c];return OS(a,...s)}else n=e.message,t=n,e.comment&&e.comment.length>0&&(t+=`/${Array.isArray(e.comment)?e.comment.join(""):e.comment}`),i=e.args??{};let o=pu?.[t];return o?typeof o=="string"?fp(o,i):o.comment?fp(o.message,i):fp(n,i):fp(n,i)}var YF=/{([^}]+)}/g;function fp(r,e){return Object.keys(e).length===0?r:r.replace(YF,(t,n)=>e[n]??t)}function kS(r){return typeof r?.contents?.bundle=="object"&&typeof r?.version=="string"}});var Ng=_(()=>{var LS;(function(r){(function(e){var t=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:a(),n=i(r);typeof t.Reflect<"u"&&(n=i(t.Reflect,n)),e(n,t),typeof t.Reflect>"u"&&(t.Reflect=r);function i(c,u){return function(l,p){Object.defineProperty(c,l,{configurable:!0,writable:!0,value:p}),u&&u(l,p)}}function o(){try{return Function("return this;")()}catch{}}function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}function a(){return o()||s()}})(function(e,t){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",o=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!a&&!c,l={create:a?function(){return Mg(Object.create(null))}:c?function(){return Mg({__proto__:null})}:function(){return Mg({})},has:u?function(w,I){return n.call(w,I)}:function(w,I){return I in w},get:u?function(w,I){return n.call(w,I)?w[I]:void 0}:function(w,I){return w[I]}},p=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:EF(),f=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:RF(),h=typeof WeakMap=="function"?WeakMap:AF(),m=i?Symbol.for("@reflect-metadata:registry"):void 0,v=CF(),x=PF(v);function D(w,I,R,L){if(ee(R)){if(!F(w))throw new TypeError;if(!Ee(I))throw new TypeError;return xe(w,I)}else{if(!F(w))throw new TypeError;if(!Ie(I))throw new TypeError;if(!Ie(L)&&!ee(L)&&!Li(L))throw new TypeError;return Li(L)&&(L=void 0),R=ce(R),ve(w,I,R,L)}}e("decorate",D);function M(w,I){function R(L,X){if(!Ie(L))throw new TypeError;if(!ee(X)&&!_t(X))throw new TypeError;pe(w,I,L,X)}return R}e("metadata",M);function Q(w,I,R,L){if(!Ie(R))throw new TypeError;return ee(L)||(L=ce(L)),pe(w,I,R,L)}e("defineMetadata",Q);function B(w,I,R){if(!Ie(I))throw new TypeError;return ee(R)||(R=ce(R)),Kr(w,I,R)}e("hasMetadata",B);function te(w,I,R){if(!Ie(I))throw new TypeError;return ee(R)||(R=ce(R)),T(w,I,R)}e("hasOwnMetadata",te);function G(w,I,R){if(!Ie(I))throw new TypeError;return ee(R)||(R=ce(R)),E(w,I,R)}e("getMetadata",G);function U(w,I,R){if(!Ie(I))throw new TypeError;return ee(R)||(R=ce(R)),pt(w,I,R)}e("getOwnMetadata",U);function Z(w,I){if(!Ie(w))throw new TypeError;return ee(I)||(I=ce(I)),sr(w,I)}e("getMetadataKeys",Z);function be(w,I){if(!Ie(w))throw new TypeError;return ee(I)||(I=ce(I)),ar(w,I)}e("getOwnMetadataKeys",be);function A(w,I,R){if(!Ie(I))throw new TypeError;if(ee(R)||(R=ce(R)),!Ie(I))throw new TypeError;ee(R)||(R=ce(R));var L=uu(I,R,!1);return ee(L)?!1:L.OrdinaryDeleteMetadata(w,I,R)}e("deleteMetadata",A);function xe(w,I){for(var R=w.length-1;R>=0;--R){var L=w[R],X=L(I);if(!ee(X)&&!Li(X)){if(!Ee(X))throw new TypeError;I=X}}return I}function ve(w,I,R,L){for(var X=w.length-1;X>=0;--X){var Ke=w[X],at=Ke(I,R,L);if(!ee(at)&&!Li(at)){if(!Ie(at))throw new TypeError;L=at}}return L}function Kr(w,I,R){var L=T(w,I,R);if(L)return!0;var X=Og(I);return Li(X)?!1:Kr(w,X,R)}function T(w,I,R){var L=uu(I,R,!1);return ee(L)?!1:pp(L.OrdinaryHasOwnMetadata(w,I,R))}function E(w,I,R){var L=T(w,I,R);if(L)return pt(w,I,R);var X=Og(I);if(!Li(X))return E(w,X,R)}function pt(w,I,R){var L=uu(I,R,!1);if(!ee(L))return L.OrdinaryGetOwnMetadata(w,I,R)}function pe(w,I,R,L){var X=uu(R,L,!0);X.OrdinaryDefineOwnMetadata(w,I,R,L)}function sr(w,I){var R=ar(w,I),L=Og(w);if(L===null)return R;var X=sr(L,I);if(X.length<=0)return R;if(R.length<=0)return X;for(var Ke=new f,at=[],se=0,j=R;se<j.length;se++){var K=j[se],z=Ke.has(K);z||(Ke.add(K),at.push(K))}for(var Y=0,ue=X;Y<ue.length;Y++){var K=ue[Y],z=Ke.has(K);z||(Ke.add(K),at.push(K))}return at}function ar(w,I){var R=uu(w,I,!1);return R?R.OrdinaryOwnMetadataKeys(w,I):[]}function Ct(w){if(w===null)return 1;switch(typeof w){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return w===null?1:6;default:return 6}}function ee(w){return w===void 0}function Li(w){return w===null}function Ks(w){return typeof w=="symbol"}function Ie(w){return typeof w=="object"?w!==null:typeof w=="function"}function oe(w,I){switch(Ct(w)){case 0:return w;case 1:return w;case 2:return w;case 3:return w;case 4:return w;case 5:return w}var R=I===3?"string":I===5?"number":"default",L=Ys(w,o);if(L!==void 0){var X=L.call(w,R);if(Ie(X))throw new TypeError;return X}return Js(w,R==="default"?"number":R)}function Js(w,I){if(I==="string"){var R=w.toString;if(re(R)){var L=R.call(w);if(!Ie(L))return L}var X=w.valueOf;if(re(X)){var L=X.call(w);if(!Ie(L))return L}}else{var X=w.valueOf;if(re(X)){var L=X.call(w);if(!Ie(L))return L}var Ke=w.toString;if(re(Ke)){var L=Ke.call(w);if(!Ie(L))return L}}throw new TypeError}function pp(w){return!!w}function q(w){return""+w}function ce(w){var I=oe(w,3);return Ks(I)?I:q(I)}function F(w){return Array.isArray?Array.isArray(w):w instanceof Object?w instanceof Array:Object.prototype.toString.call(w)==="[object Array]"}function re(w){return typeof w=="function"}function Ee(w){return typeof w=="function"}function _t(w){switch(Ct(w)){case 3:return!0;case 4:return!0;default:return!1}}function qe(w,I){return w===I||w!==w&&I!==I}function Ys(w,I){var R=w[I];if(R!=null){if(!re(R))throw new TypeError;return R}}function No(w){var I=Ys(w,s);if(!re(I))throw new TypeError;var R=I.call(w);if(!Ie(R))throw new TypeError;return R}function PS(w){return w.value}function TS(w){var I=w.next();return I.done?!1:I}function ES(w){var I=w.return;I&&I.call(w)}function Og(w){var I=Object.getPrototypeOf(w);if(typeof w!="function"||w===p||I!==p)return I;var R=w.prototype,L=R&&Object.getPrototypeOf(R);if(L==null||L===Object.prototype)return I;var X=L.constructor;return typeof X!="function"||X===w?I:X}function IF(){var w;!ee(m)&&typeof t.Reflect<"u"&&!(m in t.Reflect)&&typeof t.Reflect.defineMetadata=="function"&&(w=TF(t.Reflect));var I,R,L,X=new h,Ke={registerProvider:at,getProvider:j,setProvider:z};return Ke;function at(Y){if(!Object.isExtensible(Ke))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case w===Y:break;case ee(I):I=Y;break;case I===Y:break;case ee(R):R=Y;break;case R===Y:break;default:L===void 0&&(L=new f),L.add(Y);break}}function se(Y,ue){if(!ee(I)){if(I.isProviderFor(Y,ue))return I;if(!ee(R)){if(R.isProviderFor(Y,ue))return I;if(!ee(L))for(var ke=No(L);;){var Je=TS(ke);if(!Je)return;var Jr=PS(Je);if(Jr.isProviderFor(Y,ue))return ES(ke),Jr}}}if(!ee(w)&&w.isProviderFor(Y,ue))return w}function j(Y,ue){var ke=X.get(Y),Je;return ee(ke)||(Je=ke.get(ue)),ee(Je)&&(Je=se(Y,ue),ee(Je)||(ee(ke)&&(ke=new d,X.set(Y,ke)),ke.set(ue,Je))),Je}function K(Y){if(ee(Y))throw new TypeError;return I===Y||R===Y||!ee(L)&&L.has(Y)}function z(Y,ue,ke){if(!K(ke))throw new Error("Metadata provider not registered.");var Je=j(Y,ue);if(Je!==ke){if(!ee(Je))return!1;var Jr=X.get(Y);ee(Jr)&&(Jr=new d,X.set(Y,Jr)),Jr.set(ue,ke)}return!0}}function CF(){var w;return!ee(m)&&Ie(t.Reflect)&&Object.isExtensible(t.Reflect)&&(w=t.Reflect[m]),ee(w)&&(w=IF()),!ee(m)&&Ie(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,m,{enumerable:!1,configurable:!1,writable:!1,value:w}),w}function PF(w){var I=new h,R={isProviderFor:function(K,z){var Y=I.get(K);return ee(Y)?!1:Y.has(z)},OrdinaryDefineOwnMetadata:at,OrdinaryHasOwnMetadata:X,OrdinaryGetOwnMetadata:Ke,OrdinaryOwnMetadataKeys:se,OrdinaryDeleteMetadata:j};return v.registerProvider(R),R;function L(K,z,Y){var ue=I.get(K),ke=!1;if(ee(ue)){if(!Y)return;ue=new d,I.set(K,ue),ke=!0}var Je=ue.get(z);if(ee(Je)){if(!Y)return;if(Je=new d,ue.set(z,Je),!w.setProvider(K,z,R))throw ue.delete(z),ke&&I.delete(K),new Error("Wrong provider for target.")}return Je}function X(K,z,Y){var ue=L(z,Y,!1);return ee(ue)?!1:pp(ue.has(K))}function Ke(K,z,Y){var ue=L(z,Y,!1);if(!ee(ue))return ue.get(K)}function at(K,z,Y,ue){var ke=L(Y,ue,!0);ke.set(K,z)}function se(K,z){var Y=[],ue=L(K,z,!1);if(ee(ue))return Y;for(var ke=ue.keys(),Je=No(ke),Jr=0;;){var RS=TS(Je);if(!RS)return Y.length=Jr,Y;var kF=PS(RS);try{Y[Jr]=kF}catch(DF){try{ES(Je)}finally{throw DF}}Jr++}}function j(K,z,Y){var ue=L(z,Y,!1);if(ee(ue)||!ue.delete(K))return!1;if(ue.size===0){var ke=I.get(z);ee(ke)||(ke.delete(Y),ke.size===0&&I.delete(ke))}return!0}}function TF(w){var I=w.defineMetadata,R=w.hasOwnMetadata,L=w.getOwnMetadata,X=w.getOwnMetadataKeys,Ke=w.deleteMetadata,at=new h,se={isProviderFor:function(j,K){var z=at.get(j);return ee(z)?X(j,K).length?(ee(z)&&(z=new f,at.set(j,z)),z.add(K),!0):!1:z.has(K)},OrdinaryDefineOwnMetadata:I,OrdinaryHasOwnMetadata:R,OrdinaryGetOwnMetadata:L,OrdinaryOwnMetadataKeys:X,OrdinaryDeleteMetadata:Ke};return se}function uu(w,I,R){var L=v.getProvider(w,I);if(!ee(L))return L;if(R){if(v.setProvider(w,I,x))return x;throw new Error("Illegal state.")}}function EF(){var w={},I=[],R=function(){function se(j,K,z){this._index=0,this._keys=j,this._values=K,this._selector=z}return se.prototype["@@iterator"]=function(){return this},se.prototype[s]=function(){return this},se.prototype.next=function(){var j=this._index;if(j>=0&&j<this._keys.length){var K=this._selector(this._keys[j],this._values[j]);return j+1>=this._keys.length?(this._index=-1,this._keys=I,this._values=I):this._index++,{value:K,done:!1}}return{value:void 0,done:!0}},se.prototype.throw=function(j){throw this._index>=0&&(this._index=-1,this._keys=I,this._values=I),j},se.prototype.return=function(j){return this._index>=0&&(this._index=-1,this._keys=I,this._values=I),{value:j,done:!0}},se}(),L=function(){function se(){this._keys=[],this._values=[],this._cacheKey=w,this._cacheIndex=-2}return Object.defineProperty(se.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),se.prototype.has=function(j){return this._find(j,!1)>=0},se.prototype.get=function(j){var K=this._find(j,!1);return K>=0?this._values[K]:void 0},se.prototype.set=function(j,K){var z=this._find(j,!0);return this._values[z]=K,this},se.prototype.delete=function(j){var K=this._find(j,!1);if(K>=0){for(var z=this._keys.length,Y=K+1;Y<z;Y++)this._keys[Y-1]=this._keys[Y],this._values[Y-1]=this._values[Y];return this._keys.length--,this._values.length--,qe(j,this._cacheKey)&&(this._cacheKey=w,this._cacheIndex=-2),!0}return!1},se.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=w,this._cacheIndex=-2},se.prototype.keys=function(){return new R(this._keys,this._values,X)},se.prototype.values=function(){return new R(this._keys,this._values,Ke)},se.prototype.entries=function(){return new R(this._keys,this._values,at)},se.prototype["@@iterator"]=function(){return this.entries()},se.prototype[s]=function(){return this.entries()},se.prototype._find=function(j,K){if(!qe(this._cacheKey,j)){this._cacheIndex=-1;for(var z=0;z<this._keys.length;z++)if(qe(this._keys[z],j)){this._cacheIndex=z;break}}return this._cacheIndex<0&&K&&(this._cacheIndex=this._keys.length,this._keys.push(j),this._values.push(void 0)),this._cacheIndex},se}();return L;function X(se,j){return se}function Ke(se,j){return j}function at(se,j){return[se,j]}}function RF(){var w=function(){function I(){this._map=new d}return Object.defineProperty(I.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),I.prototype.has=function(R){return this._map.has(R)},I.prototype.add=function(R){return this._map.set(R,R),this},I.prototype.delete=function(R){return this._map.delete(R)},I.prototype.clear=function(){this._map.clear()},I.prototype.keys=function(){return this._map.keys()},I.prototype.values=function(){return this._map.keys()},I.prototype.entries=function(){return this._map.entries()},I.prototype["@@iterator"]=function(){return this.keys()},I.prototype[s]=function(){return this.keys()},I}();return w}function AF(){var w=16,I=l.create(),R=L();return function(){function j(){this._key=L()}return j.prototype.has=function(K){var z=X(K,!1);return z!==void 0?l.has(z,this._key):!1},j.prototype.get=function(K){var z=X(K,!1);return z!==void 0?l.get(z,this._key):void 0},j.prototype.set=function(K,z){var Y=X(K,!0);return Y[this._key]=z,this},j.prototype.delete=function(K){var z=X(K,!1);return z!==void 0?delete z[this._key]:!1},j.prototype.clear=function(){this._key=L()},j}();function L(){var j;do j="@@WeakMap@@"+se();while(l.has(I,j));return I[j]=!0,j}function X(j,K){if(!n.call(j,R)){if(!K)return;Object.defineProperty(j,R,{value:l.create()})}return j[R]}function Ke(j,K){for(var z=0;z<K;++z)j[z]=Math.random()*255|0;return j}function at(j){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(j)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(j)):Ke(new Uint8Array(j),j):Ke(new Array(j),j)}function se(){var j=at(w);j[6]=j[6]&79|64,j[8]=j[8]&191|128;for(var K="",z=0;z<w;++z){var Y=j[z];(z===4||z===6||z===8)&&(K+="-"),Y<16&&(K+="0"),K+=Y.toString(16).toLowerCase()}return K}}function Mg(w){return w.__=void 0,delete w.__,w}})})(LS||(LS={}))});var tt=_(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.NON_CUSTOM_TAG_KEYS=de.PRE_DESTROY=de.POST_CONSTRUCT=de.DESIGN_PARAM_TYPES=de.PARAM_TYPES=de.TAGGED_PROP=de.TAGGED=de.MULTI_INJECT_TAG=de.INJECT_TAG=de.OPTIONAL_TAG=de.UNMANAGED_TAG=de.NAME_TAG=de.NAMED_TAG=void 0;de.NAMED_TAG="named";de.NAME_TAG="name";de.UNMANAGED_TAG="unmanaged";de.OPTIONAL_TAG="optional";de.INJECT_TAG="inject";de.MULTI_INJECT_TAG="multi_inject";de.TAGGED="inversify:tagged";de.TAGGED_PROP="inversify:tagged_props";de.PARAM_TYPES="inversify:paramtypes";de.DESIGN_PARAM_TYPES="design:paramtypes";de.POST_CONSTRUCT="post_construct";de.PRE_DESTROY="pre_destroy";function tB(){return[de.INJECT_TAG,de.MULTI_INJECT_TAG,de.NAME_TAG,de.UNMANAGED_TAG,de.NAMED_TAG,de.OPTIONAL_TAG]}de.NON_CUSTOM_TAG_KEYS=tB()});var Ir=_(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.TargetTypeEnum=Ni.BindingTypeEnum=Ni.BindingScopeEnum=void 0;var rB={Request:"Request",Singleton:"Singleton",Transient:"Transient"};Ni.BindingScopeEnum=rB;var nB={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};Ni.BindingTypeEnum=nB;var iB={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};Ni.TargetTypeEnum=iB});var Fi=_(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.id=void 0;var oB=0;function sB(){return oB++}vp.id=sB});var QS=_(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.Binding=void 0;var XS=Ir(),aB=Fi(),cB=function(){function r(e,t){this.id=(0,aB.id)(),this.activated=!1,this.serviceIdentifier=e,this.scope=t,this.type=XS.BindingTypeEnum.Invalid,this.constraint=function(n){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.onDeactivation=null,this.dynamicValue=null}return r.prototype.clone=function(){var e=new r(this.serviceIdentifier,this.scope);return e.activated=e.scope===XS.BindingScopeEnum.Singleton?this.activated:!1,e.implementationType=this.implementationType,e.dynamicValue=this.dynamicValue,e.scope=this.scope,e.type=this.type,e.factory=this.factory,e.provider=this.provider,e.constraint=this.constraint,e.onActivation=this.onActivation,e.onDeactivation=this.onDeactivation,e.cache=this.cache,e},r}();_p.Binding=cB});var Tt=_($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.STACK_OVERFLOW=$.CIRCULAR_DEPENDENCY_IN_FACTORY=$.ON_DEACTIVATION_ERROR=$.PRE_DESTROY_ERROR=$.POST_CONSTRUCT_ERROR=$.ASYNC_UNBIND_REQUIRED=$.MULTIPLE_POST_CONSTRUCT_METHODS=$.MULTIPLE_PRE_DESTROY_METHODS=$.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK=$.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE=$.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE=$.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT=$.ARGUMENTS_LENGTH_MISMATCH=$.INVALID_DECORATOR_OPERATION=$.INVALID_TO_SELF_VALUE=$.LAZY_IN_SYNC=$.INVALID_FUNCTION_BINDING=$.INVALID_MIDDLEWARE_RETURN=$.NO_MORE_SNAPSHOTS_AVAILABLE=$.INVALID_BINDING_TYPE=$.NOT_IMPLEMENTED=$.CIRCULAR_DEPENDENCY=$.UNDEFINED_INJECT_ANNOTATION=$.MISSING_INJECT_ANNOTATION=$.MISSING_INJECTABLE_ANNOTATION=$.NOT_REGISTERED=$.CANNOT_UNBIND=$.AMBIGUOUS_MATCH=$.KEY_NOT_FOUND=$.NULL_ARGUMENT=$.DUPLICATED_METADATA=$.DUPLICATED_INJECTABLE_DECORATOR=void 0;$.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.";$.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:";$.NULL_ARGUMENT="NULL argument";$.KEY_NOT_FOUND="Key Not Found";$.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:";$.CANNOT_UNBIND="Could not unbind serviceIdentifier:";$.NOT_REGISTERED="No matching bindings found for serviceIdentifier:";$.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:";$.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:";var uB=function(r){return"@inject called with undefined this could mean that the class "+r+" has a circular dependency problem. You can use a LazyServiceIdentifier to overcome this limitation."};$.UNDEFINED_INJECT_ANNOTATION=uB;$.CIRCULAR_DEPENDENCY="Circular dependency found:";$.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.";$.INVALID_BINDING_TYPE="Invalid binding type:";$.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.";$.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!";$.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!";var lB=function(r){return"You are attempting to construct '"+r+`' in a synchronous way but it has asynchronous dependencies.`};$.LAZY_IN_SYNC=lB;$.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier";$.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.";var pB=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return"The number of constructor arguments in the derived class "+(r[0]+" must be >= than the number of constructor arguments of its base class.")};$.ARGUMENTS_LENGTH_MISMATCH=pB;$.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.";$.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE='Invalid Container option. Default scope must be a string ("singleton" or "transient").';$.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean";$.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean";$.MULTIPLE_PRE_DESTROY_METHODS="Cannot apply @preDestroy decorator multiple times in the same class";$.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";$.ASYNC_UNBIND_REQUIRED="Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)";var dB=function(r,e){return"@postConstruct error in class "+r+": "+e};$.POST_CONSTRUCT_ERROR=dB;var fB=function(r,e){return"@preDestroy error in class "+r+": "+e};$.PRE_DESTROY_ERROR=fB;var hB=function(r,e){return"onDeactivation() error in class "+r+": "+e};$.ON_DEACTIVATION_ERROR=hB;var mB=function(r,e){return"It looks like there is a circular dependency in one of the '"+r+"' bindings. Please investigate bindings with "+("service identifier '"+e+"'.")};$.CIRCULAR_DEPENDENCY_IN_FACTORY=mB;$.STACK_OVERFLOW="Maximum call stack size exceeded"});var Ug=_(pn=>{"use strict";var gB=pn&&pn.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),yB=pn&&pn.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),bB=pn&&pn.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&gB(e,r,t);return yB(e,r),e};Object.defineProperty(pn,"__esModule",{value:!0});pn.MetadataReader=void 0;var Bg=bB(tt()),vB=function(){function r(){}return r.prototype.getConstructorMetadata=function(e){var t=Reflect.getMetadata(Bg.PARAM_TYPES,e),n=Reflect.getMetadata(Bg.TAGGED,e);return{compilerGeneratedMetadata:t,userGeneratedMetadata:n||{}}},r.prototype.getPropertiesMetadata=function(e){var t=Reflect.getMetadata(Bg.TAGGED_PROP,e)||[];return t},r}();pn.MetadataReader=vB});var ZS=_(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.BindingCount=void 0;wp.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}});var jg=_(Cr=>{"use strict";var _B=Cr&&Cr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),wB=Cr&&Cr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),SB=Cr&&Cr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&_B(e,r,t);return wB(e,r),e};Object.defineProperty(Cr,"__esModule",{value:!0});Cr.tryAndThrowErrorIfStackOverflow=Cr.isStackOverflowExeption=void 0;var xB=SB(Tt());function ex(r){return r instanceof RangeError||r.message===xB.STACK_OVERFLOW}Cr.isStackOverflowExeption=ex;var IB=function(r,e){try{return r()}catch(t){throw ex(t)&&(t=e()),t}};Cr.tryAndThrowErrorIfStackOverflow=IB});var jo=_(rt=>{"use strict";var CB=rt&&rt.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),PB=rt&&rt.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),TB=rt&&rt.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&CB(e,r,t);return PB(e,r),e};Object.defineProperty(rt,"__esModule",{value:!0});rt.getSymbolDescription=rt.circularDependencyToException=rt.listMetadataForTarget=rt.listRegisteredBindingsForServiceIdentifier=rt.getServiceIdentifierAsString=rt.getFunctionName=void 0;var EB=TB(Tt());function tx(r){if(typeof r=="function"){var e=r;return e.name}else{if(typeof r=="symbol")return r.toString();var e=r;return e}}rt.getServiceIdentifierAsString=tx;function RB(r,e,t){var n="",i=t(r,e);return i.length!==0&&(n=` Registered bindings:`,i.forEach(function(o){var s="Object";o.implementationType!==null&&(s=ix(o.implementationType)),n=n+` `+s,o.constraint.metaData&&(n=n+" - "+o.constraint.metaData)})),n}rt.listRegisteredBindingsForServiceIdentifier=RB;function rx(r,e){return r.parentRequest===null?!1:r.parentRequest.serviceIdentifier===e?!0:rx(r.parentRequest,e)}function AB(r){function e(n,i){i===void 0&&(i=[]);var o=tx(n.serviceIdentifier);return i.push(o),n.parentRequest!==null?e(n.parentRequest,i):i}var t=e(r);return t.reverse().join(" --> ")}function nx(r){r.childRequests.forEach(function(e){if(rx(e,e.serviceIdentifier)){var t=AB(e);throw new Error(EB.CIRCULAR_DEPENDENCY+" "+t)}else nx(e)})}rt.circularDependencyToException=nx;function kB(r,e){if(e.isTagged()||e.isNamed()){var t="",n=e.getNamedTag(),i=e.getCustomTags();return n!==null&&(t+=n.toString()+` `),i!==null&&i.forEach(function(o){t+=o.toString()+` `})," "+r+` `+r+" - "+t}else return" "+r}rt.listMetadataForTarget=kB;function ix(r){if(r.name)return r.name;var e=r.toString(),t=e.match(/^function\s*([^\s(]+)/);return t?t[1]:"Anonymous function: "+e}rt.getFunctionName=ix;function DB(r){return r.toString().slice(7,-1)}rt.getSymbolDescription=DB});var ox=_(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.Context=void 0;var OB=Fi(),MB=function(){function r(e){this.id=(0,OB.id)(),this.container=e}return r.prototype.addPlan=function(e){this.plan=e},r.prototype.setCurrentRequest=function(e){this.currentRequest=e},r}();Sp.Context=MB});var Yr=_(dn=>{"use strict";var LB=dn&&dn.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),NB=dn&&dn.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),FB=dn&&dn.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&LB(e,r,t);return NB(e,r),e};Object.defineProperty(dn,"__esModule",{value:!0});dn.Metadata=void 0;var BB=FB(tt()),UB=function(){function r(e,t){this.key=e,this.value=t}return r.prototype.toString=function(){return this.key===BB.NAMED_TAG?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},r}();dn.Metadata=UB});var sx=_(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.Plan=void 0;var jB=function(){function r(e,t){this.parentContext=e,this.rootRequest=t}return r}();xp.Plan=jB});var Cp=_(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.LazyServiceIdentifier=void 0;var qB=function(){function r(e){this._cb=e}return r.prototype.unwrap=function(){return this._cb()},r}();Ip.LazyServiceIdentifier=qB});var ax=_(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.QueryableString=void 0;var WB=function(){function r(e){this.str=e}return r.prototype.startsWith=function(e){return this.str.indexOf(e)===0},r.prototype.endsWith=function(e){var t="",n=e.split("").reverse().join("");return t=this.str.split("").reverse().join(""),this.startsWith.call({str:t},n)},r.prototype.contains=function(e){return this.str.indexOf(e)!==-1},r.prototype.equals=function(e){return this.str===e},r.prototype.value=function(){return this.str},r}();Pp.QueryableString=WB});var qg=_(fn=>{"use strict";var VB=fn&&fn.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),$B=fn&&fn.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),HB=fn&&fn.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&VB(e,r,t);return $B(e,r),e};Object.defineProperty(fn,"__esModule",{value:!0});fn.Target=void 0;var si=HB(tt()),GB=Fi(),zB=jo(),cx=Yr(),KB=ax(),JB=function(){function r(e,t,n,i){this.id=(0,GB.id)(),this.type=e,this.serviceIdentifier=n;var o=typeof t=="symbol"?(0,zB.getSymbolDescription)(t):t;this.name=new KB.QueryableString(o||""),this.identifier=t,this.metadata=new Array;var s=null;typeof i=="string"?s=new cx.Metadata(si.NAMED_TAG,i):i instanceof cx.Metadata&&(s=i),s!==null&&this.metadata.push(s)}return r.prototype.hasTag=function(e){for(var t=0,n=this.metadata;t<n.length;t++){var i=n[t];if(i.key===e)return!0}return!1},r.prototype.isArray=function(){return this.hasTag(si.MULTI_INJECT_TAG)},r.prototype.matchesArray=function(e){return this.matchesTag(si.MULTI_INJECT_TAG)(e)},r.prototype.isNamed=function(){return this.hasTag(si.NAMED_TAG)},r.prototype.isTagged=function(){return this.metadata.some(function(e){return si.NON_CUSTOM_TAG_KEYS.every(function(t){return e.key!==t})})},r.prototype.isOptional=function(){return this.matchesTag(si.OPTIONAL_TAG)(!0)},r.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(e){return e.key===si.NAMED_TAG})[0]:null},r.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(e){return si.NON_CUSTOM_TAG_KEYS.every(function(t){return e.key!==t})}):null},r.prototype.matchesNamedTag=function(e){return this.matchesTag(si.NAMED_TAG)(e)},r.prototype.matchesTag=function(e){var t=this;return function(n){for(var i=0,o=t.metadata;i<o.length;i++){var s=o[i];if(s.key===e&&s.value===n)return!0}return!1}},r}();fn.Target=JB});var gx=_(Et=>{"use strict";var YB=Et&&Et.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),XB=Et&&Et.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),ux=Et&&Et.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&YB(e,r,t);return XB(e,r),e},Tp=Et&&Et.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return r.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(Et,"__esModule",{value:!0});Et.getFunctionName=Et.getBaseClassDependencyCount=Et.getDependencies=void 0;var QB=Cp(),Wg=ux(Tt()),lx=Ir(),du=ux(tt()),Vg=jo();Object.defineProperty(Et,"getFunctionName",{enumerable:!0,get:function(){return Vg.getFunctionName}});var px=qg();function ZB(r,e){var t=(0,Vg.getFunctionName)(e);return dx(r,t,e,!1)}Et.getDependencies=ZB;function dx(r,e,t,n){var i=r.getConstructorMetadata(t),o=i.compilerGeneratedMetadata;if(o===void 0){var s=Wg.MISSING_INJECTABLE_ANNOTATION+" "+e+".";throw new Error(s)}var a=i.userGeneratedMetadata,c=Object.keys(a),u=t.length===0&&c.length>0,l=c.length>t.length,p=u||l?c.length:t.length,d=tU(n,e,o,a,p),f=fx(r,t,e),h=Tp(Tp([],d,!0),f,!0);return h}function eU(r,e,t,n,i){var o=i[r.toString()]||[],s=mx(o),a=s.unmanaged!==!0,c=n[r],u=s.inject||s.multiInject;if(c=u||c,c instanceof QB.LazyServiceIdentifier&&(c=c.unwrap()),a){var l=c===Object,p=c===Function,d=c===void 0,f=l||p||d;if(!e&&f){var h=Wg.MISSING_INJECT_ANNOTATION+" argument "+r+" in class "+t+".";throw new Error(h)}var m=new px.Target(lx.TargetTypeEnum.ConstructorArgument,s.targetName,c);return m.metadata=o,m}return null}function tU(r,e,t,n,i){for(var o=[],s=0;s<i;s++){var a=s,c=eU(a,r,e,t,n);c!==null&&o.push(c)}return o}function rU(r,e,t,n){var i=r||e;if(i===void 0){var o=Wg.MISSING_INJECTABLE_ANNOTATION+" for property "+String(t)+" in class "+n+".";throw new Error(o)}return i}function fx(r,e,t){for(var n=r.getPropertiesMetadata(e),i=[],o=Object.getOwnPropertySymbols(n),s=Object.keys(n),a=s.concat(o),c=0,u=a;c<u.length;c++){var l=u[c],p=n[l],d=mx(p),f=d.targetName||l,h=rU(d.inject,d.multiInject,l,t),m=new px.Target(lx.TargetTypeEnum.ClassProperty,f,h);m.metadata=p,i.push(m)}var v=Object.getPrototypeOf(e.prototype).constructor;if(v!==Object){var x=fx(r,v,t);i=Tp(Tp([],i,!0),x,!0)}return i}function hx(r,e){var t=Object.getPrototypeOf(e.prototype).constructor;if(t!==Object){var n=(0,Vg.getFunctionName)(t),i=dx(r,n,t,!0),o=i.map(function(c){return c.metadata.filter(function(u){return u.key===du.UNMANAGED_TAG})}),s=[].concat.apply([],o).length,a=i.length-s;return a>0?a:hx(r,t)}else return 0}Et.getBaseClassDependencyCount=hx;function mx(r){var e={};return r.forEach(function(t){e[t.key.toString()]=t.value}),{inject:e[du.INJECT_TAG],multiInject:e[du.MULTI_INJECT_TAG],targetName:e[du.NAME_TAG],unmanaged:e[du.UNMANAGED_TAG]}}});var yx=_(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.Request=void 0;var nU=Fi(),iU=function(){function r(e,t,n,i,o){this.id=(0,nU.id)(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=o,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=n===null?new Map:null}return r.prototype.addChildRequest=function(e,t,n){var i=new r(e,this.parentContext,this,t,n);return this.childRequests.push(i),i},r}();Ep.Request=iU});var Kg=_(Yt=>{"use strict";var oU=Yt&&Yt.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),sU=Yt&&Yt.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),_x=Yt&&Yt.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&oU(e,r,t);return sU(e,r),e};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.getBindingDictionary=Yt.createMockRequest=Yt.plan=void 0;var Rp=ZS(),Hg=_x(Tt()),wx=Ir(),bx=_x(tt()),aU=jg(),ea=jo(),Sx=ox(),Gg=Yr(),cU=sx(),$g=gx(),zg=yx(),xx=qg();function Ix(r){return r._bindingDictionary}Yt.getBindingDictionary=Ix;function uU(r,e,t,n,i,o){var s=r?bx.MULTI_INJECT_TAG:bx.INJECT_TAG,a=new Gg.Metadata(s,t),c=new xx.Target(e,n,t,a);if(i!==void 0){var u=new Gg.Metadata(i,o);c.metadata.push(u)}return c}function vx(r,e,t,n,i){var o=fu(t.container,i.serviceIdentifier),s=[];return o.length===Rp.BindingCount.NoBindingsAvailable&&t.container.options.autoBindInjectable&&typeof i.serviceIdentifier=="function"&&r.getConstructorMetadata(i.serviceIdentifier).compilerGeneratedMetadata&&(t.container.bind(i.serviceIdentifier).toSelf(),o=fu(t.container,i.serviceIdentifier)),e?s=o:s=o.filter(function(a){var c=new zg.Request(a.serviceIdentifier,t,n,a,i);return a.constraint(c)}),lU(i.serviceIdentifier,s,i,t.container),s}function lU(r,e,t,n){switch(e.length){case Rp.BindingCount.NoBindingsAvailable:if(t.isOptional())return e;var i=(0,ea.getServiceIdentifierAsString)(r),o=Hg.NOT_REGISTERED;throw o+=(0,ea.listMetadataForTarget)(i,t),o+=(0,ea.listRegisteredBindingsForServiceIdentifier)(n,i,fu),new Error(o);case Rp.BindingCount.OnlyOneBindingAvailable:return e;case Rp.BindingCount.MultipleBindingsAvailable:default:if(t.isArray())return e;var i=(0,ea.getServiceIdentifierAsString)(r),o=Hg.AMBIGUOUS_MATCH+" "+i;throw o+=(0,ea.listRegisteredBindingsForServiceIdentifier)(n,i,fu),new Error(o)}}function Cx(r,e,t,n,i,o){var s,a;if(i===null){s=vx(r,e,n,null,o),a=new zg.Request(t,n,null,s,o);var c=new cU.Plan(n,a);n.addPlan(c)}else s=vx(r,e,n,i,o),a=i.addChildRequest(o.serviceIdentifier,s,o);s.forEach(function(u){var l=null;if(o.isArray())l=a.addChildRequest(u.serviceIdentifier,u,o);else{if(u.cache)return;l=a}if(u.type===wx.BindingTypeEnum.Instance&&u.implementationType!==null){var p=(0,$g.getDependencies)(r,u.implementationType);if(!n.container.options.skipBaseClassChecks){var d=(0,$g.getBaseClassDependencyCount)(r,u.implementationType);if(p.length<d){var f=Hg.ARGUMENTS_LENGTH_MISMATCH((0,$g.getFunctionName)(u.implementationType));throw new Error(f)}}p.forEach(function(h){Cx(r,!1,h.serviceIdentifier,n,l,h)})}})}function fu(r,e){var t=[],n=Ix(r);return n.hasKey(e)?t=n.get(e):r.parent!==null&&(t=fu(r.parent,e)),t}function pU(r,e,t,n,i,o,s,a){a===void 0&&(a=!1);var c=new Sx.Context(e),u=uU(t,n,i,"",o,s);try{return Cx(r,a,i,c,null,u),c}catch(l){throw(0,aU.isStackOverflowExeption)(l)&&(0,ea.circularDependencyToException)(c.plan.rootRequest),l}}Yt.plan=pU;function dU(r,e,t,n){var i=new xx.Target(wx.TargetTypeEnum.Variable,"",e,new Gg.Metadata(t,n)),o=new Sx.Context(r),s=new zg.Request(e,o,null,[],i);return s}Yt.createMockRequest=dU});var hu=_(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.isPromiseOrContainsPromise=ta.isPromise=void 0;function Jg(r){var e=typeof r=="object"&&r!==null||typeof r=="function";return e&&typeof r.then=="function"}ta.isPromise=Jg;function fU(r){return Jg(r)?!0:Array.isArray(r)&&r.some(Jg)}ta.isPromiseOrContainsPromise=fU});var Px=_(hn=>{"use strict";var hU=hn&&hn.__awaiter||function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((n=n.apply(r,e||[])).next())})},mU=hn&&hn.__generator||function(r,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1],o=u;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(u);break}o[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(l){u=[6,l],i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(hn,"__esModule",{value:!0});hn.saveToScope=hn.tryGetFromScope=void 0;var Ap=Ir(),gU=hu(),yU=function(r,e){return e.scope===Ap.BindingScopeEnum.Singleton&&e.activated?e.cache:e.scope===Ap.BindingScopeEnum.Request&&r.has(e.id)?r.get(e.id):null};hn.tryGetFromScope=yU;var bU=function(r,e,t){e.scope===Ap.BindingScopeEnum.Singleton&&_U(e,t),e.scope===Ap.BindingScopeEnum.Request&&vU(r,e,t)};hn.saveToScope=bU;var vU=function(r,e,t){r.has(e.id)||r.set(e.id,t)},_U=function(r,e){r.cache=e,r.activated=!0,(0,gU.isPromise)(e)&&wU(r,e)},wU=function(r,e){return hU(void 0,void 0,void 0,function(){var t,n;return mU(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e];case 1:return t=i.sent(),r.cache=t,[3,3];case 2:throw n=i.sent(),r.cache=null,r.activated=!1,n;case 3:return[2]}})})}});var Tx=_(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.FactoryType=void 0;var SU;(function(r){r.DynamicValue="toDynamicValue",r.Factory="toFactory",r.Provider="toProvider"})(SU=mu.FactoryType||(mu.FactoryType={}))});var Xg=_(Xt=>{"use strict";var xU=Xt&&Xt.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),IU=Xt&&Xt.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),CU=Xt&&Xt.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&xU(e,r,t);return IU(e,r),e};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.getFactoryDetails=Xt.ensureFullyBound=Xt.multiBindToService=void 0;var PU=jo(),TU=CU(Tt()),mn=Ir(),Yg=Tx(),EU=function(r){return function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.forEach(function(i){return r.bind(i).toService(e)})}}};Xt.multiBindToService=EU;var RU=function(r){var e=null;switch(r.type){case mn.BindingTypeEnum.ConstantValue:case mn.BindingTypeEnum.Function:e=r.cache;break;case mn.BindingTypeEnum.Constructor:case mn.BindingTypeEnum.Instance:e=r.implementationType;break;case mn.BindingTypeEnum.DynamicValue:e=r.dynamicValue;break;case mn.BindingTypeEnum.Provider:e=r.provider;break;case mn.BindingTypeEnum.Factory:e=r.factory;break}if(e===null){var t=(0,PU.getServiceIdentifierAsString)(r.serviceIdentifier);throw new Error(TU.INVALID_BINDING_TYPE+" "+t)}};Xt.ensureFullyBound=RU;var AU=function(r){switch(r.type){case mn.BindingTypeEnum.Factory:return{factory:r.factory,factoryType:Yg.FactoryType.Factory};case mn.BindingTypeEnum.Provider:return{factory:r.provider,factoryType:Yg.FactoryType.Provider};case mn.BindingTypeEnum.DynamicValue:return{factory:r.dynamicValue,factoryType:Yg.FactoryType.DynamicValue};default:throw new Error("Unexpected factory type "+r.type)}};Xt.getFactoryDetails=AU});var Ox=_(dt=>{"use strict";var ra=dt&&dt.__assign||function(){return ra=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},ra.apply(this,arguments)},kU=dt&&dt.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),DU=dt&&dt.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),OU=dt&&dt.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&kU(e,r,t);return DU(e,r),e},Ax=dt&&dt.__awaiter||function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((n=n.apply(r,e||[])).next())})},kx=dt&&dt.__generator||function(r,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1],o=u;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(u);break}o[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(l){u=[6,l],i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},MU=dt&&dt.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return r.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(dt,"__esModule",{value:!0});dt.resolveInstance=void 0;var Qg=Tt(),ey=Ir(),Zg=OU(tt()),ty=hu();function LU(r,e){return r.reduce(function(t,n){var i=e(n),o=n.target.type;return o===ey.TargetTypeEnum.ConstructorArgument?t.constructorInjections.push(i):(t.propertyRequests.push(n),t.propertyInjections.push(i)),t.isAsync||(t.isAsync=(0,ty.isPromiseOrContainsPromise)(i)),t},{constructorInjections:[],propertyInjections:[],propertyRequests:[],isAsync:!1})}function NU(r,e,t){var n;if(e.length>0){var i=LU(e,t),o=ra(ra({},i),{constr:r});i.isAsync?n=FU(o):n=Dx(o)}else n=new r;return n}function Dx(r){var e,t=new((e=r.constr).bind.apply(e,MU([void 0],r.constructorInjections,!1)));return r.propertyRequests.forEach(function(n,i){var o=n.target.identifier,s=r.propertyInjections[i];(!n.target.isOptional()||s!==void 0)&&(t[o]=s)}),t}function FU(r){return Ax(this,void 0,void 0,function(){var e,t;return kx(this,function(n){switch(n.label){case 0:return[4,Ex(r.constructorInjections)];case 1:return e=n.sent(),[4,Ex(r.propertyInjections)];case 2:return t=n.sent(),[2,Dx(ra(ra({},r),{constructorInjections:e,propertyInjections:t}))]}})})}function Ex(r){return Ax(this,void 0,void 0,function(){var e,t,n,i;return kx(this,function(o){for(e=[],t=0,n=r;t<n.length;t++)i=n[t],Array.isArray(i)?e.push(Promise.all(i)):e.push(i);return[2,Promise.all(e)]})})}function Rx(r,e){var t=BU(r,e);return(0,ty.isPromise)(t)?t.then(function(){return e}):e}function BU(r,e){var t,n;if(Reflect.hasMetadata(Zg.POST_CONSTRUCT,r)){var i=Reflect.getMetadata(Zg.POST_CONSTRUCT,r);try{return(n=(t=e)[i.value])===null||n===void 0?void 0:n.call(t)}catch(o){if(o instanceof Error)throw new Error((0,Qg.POST_CONSTRUCT_ERROR)(r.name,o.message))}}}function UU(r,e){r.scope!==ey.BindingScopeEnum.Singleton&&jU(r,e)}function jU(r,e){var t="Class cannot be instantiated in "+(r.scope===ey.BindingScopeEnum.Request?"request":"transient")+" scope.";if(typeof r.onDeactivation=="function")throw new Error((0,Qg.ON_DEACTIVATION_ERROR)(e.name,t));if(Reflect.hasMetadata(Zg.PRE_DESTROY,e))throw new Error((0,Qg.PRE_DESTROY_ERROR)(e.name,t))}function qU(r,e,t,n){UU(r,e);var i=NU(e,t,n);return(0,ty.isPromise)(i)?i.then(function(o){return Rx(e,o)}):Rx(e,i)}dt.resolveInstance=qU});var Bx=_(Qt=>{"use strict";var WU=Qt&&Qt.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),VU=Qt&&Qt.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),$U=Qt&&Qt.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&WU(e,r,t);return VU(e,r),e},HU=Qt&&Qt.__awaiter||function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((n=n.apply(r,e||[])).next())})},GU=Qt&&Qt.__generator||function(r,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1],o=u;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(u);break}o[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(l){u=[6,l],i=0}finally{n=o=0}if(u[0]&5)throw u[1];r