ts-ref-kit 1.0.0 → 1.0.2

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.
Files changed (79) hide show
  1. package/dist/index.js +20 -3
  2. package/dist/parser/reflect-parser.js +1 -611
  3. package/package.json +5 -3
  4. package/dist/index.d.ts +0 -2
  5. package/dist/index.js.map +0 -1
  6. package/dist/parser/index.d.ts +0 -3
  7. package/dist/parser/index.js +0 -4
  8. package/dist/parser/index.js.map +0 -1
  9. package/dist/parser/path-match.d.ts +0 -7
  10. package/dist/parser/path-match.js +0 -37
  11. package/dist/parser/path-match.js.map +0 -1
  12. package/dist/parser/reflect-loader.d.ts +0 -9
  13. package/dist/parser/reflect-loader.js +0 -93
  14. package/dist/parser/reflect-loader.js.map +0 -1
  15. package/dist/parser/reflect-parser-plugin.d.ts +0 -7
  16. package/dist/parser/reflect-parser-plugin.js +0 -27
  17. package/dist/parser/reflect-parser-plugin.js.map +0 -1
  18. package/dist/parser/reflect-parser.d.ts +0 -74
  19. package/dist/parser/reflect-parser.js.map +0 -1
  20. package/dist/reflect-json/Mappable.d.ts +0 -13
  21. package/dist/reflect-json/Mappable.js +0 -48
  22. package/dist/reflect-json/Mappable.js.map +0 -1
  23. package/dist/reflect-json/decorate.d.ts +0 -18
  24. package/dist/reflect-json/decorate.js +0 -62
  25. package/dist/reflect-json/decorate.js.map +0 -1
  26. package/dist/reflect-json/index.d.ts +0 -6
  27. package/dist/reflect-json/index.js +0 -7
  28. package/dist/reflect-json/index.js.map +0 -1
  29. package/dist/reflect-json/json-translation.d.ts +0 -38
  30. package/dist/reflect-json/json-translation.js +0 -243
  31. package/dist/reflect-json/json-translation.js.map +0 -1
  32. package/dist/reflect-json/reflect-extension.d.ts +0 -13
  33. package/dist/reflect-json/reflect-extension.js +0 -30
  34. package/dist/reflect-json/reflect-extension.js.map +0 -1
  35. package/dist/reflect-json/types.d.ts +0 -15
  36. package/dist/reflect-json/types.js +0 -2
  37. package/dist/reflect-json/types.js.map +0 -1
  38. package/dist/reflect-json/utils.d.ts +0 -9
  39. package/dist/reflect-json/utils.js +0 -48
  40. package/dist/reflect-json/utils.js.map +0 -1
  41. package/dist/reflect-types/ClassDefinition.d.ts +0 -26
  42. package/dist/reflect-types/ClassDefinition.js +0 -90
  43. package/dist/reflect-types/ClassDefinition.js.map +0 -1
  44. package/dist/reflect-types/EnumDefinition.d.ts +0 -8
  45. package/dist/reflect-types/EnumDefinition.js +0 -20
  46. package/dist/reflect-types/EnumDefinition.js.map +0 -1
  47. package/dist/reflect-types/InterfaceDefinition.d.ts +0 -16
  48. package/dist/reflect-types/InterfaceDefinition.js +0 -49
  49. package/dist/reflect-types/InterfaceDefinition.js.map +0 -1
  50. package/dist/reflect-types/MethodDefinition.d.ts +0 -15
  51. package/dist/reflect-types/MethodDefinition.js +0 -21
  52. package/dist/reflect-types/MethodDefinition.js.map +0 -1
  53. package/dist/reflect-types/PropertyDefinition.d.ts +0 -18
  54. package/dist/reflect-types/PropertyDefinition.js +0 -15
  55. package/dist/reflect-types/PropertyDefinition.js.map +0 -1
  56. package/dist/reflect-types/assert-type.d.ts +0 -12
  57. package/dist/reflect-types/assert-type.js +0 -35
  58. package/dist/reflect-types/assert-type.js.map +0 -1
  59. package/dist/reflect-types/function-validate.d.ts +0 -10
  60. package/dist/reflect-types/function-validate.js +0 -77
  61. package/dist/reflect-types/function-validate.js.map +0 -1
  62. package/dist/reflect-types/index.d.ts +0 -11
  63. package/dist/reflect-types/index.js +0 -12
  64. package/dist/reflect-types/index.js.map +0 -1
  65. package/dist/reflect-types/package.d.ts +0 -13
  66. package/dist/reflect-types/package.js +0 -25
  67. package/dist/reflect-types/package.js.map +0 -1
  68. package/dist/reflect-types/reflect-context.d.ts +0 -16
  69. package/dist/reflect-types/reflect-context.js +0 -109
  70. package/dist/reflect-types/reflect-context.js.map +0 -1
  71. package/dist/reflect-types/reflect-definitions.d.ts +0 -100
  72. package/dist/reflect-types/reflect-definitions.js +0 -29
  73. package/dist/reflect-types/reflect-definitions.js.map +0 -1
  74. package/dist/reflect-types/reflect-types.d.ts +0 -20
  75. package/dist/reflect-types/reflect-types.js +0 -83
  76. package/dist/reflect-types/reflect-types.js.map +0 -1
  77. package/dist/reflect-types/reflect-validate.d.ts +0 -24
  78. package/dist/reflect-types/reflect-validate.js +0 -313
  79. package/dist/reflect-types/reflect-validate.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,3 +1,20 @@
1
- export * from './reflect-types';
2
- export * from './reflect-json';
3
- //# sourceMappingURL=index.js.map
1
+ var sn=Object.create;var Re=Object.defineProperty,un=Object.defineProperties,fn=Object.getOwnPropertyDescriptor,cn=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertyNames,ft=Object.getOwnPropertySymbols,pn=Object.getPrototypeOf,lt=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable;var ct=(e,t,n)=>t in e?Re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))lt.call(t,n)&&ct(e,n,t[n]);if(ft)for(var n of ft(t))yn.call(t,n)&&ct(e,n,t[n]);return e},je=(e,t)=>un(e,cn(t));var dn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var mn=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ln(t))!lt.call(e,a)&&a!==n&&Re(e,a,{get:()=>t[a],enumerable:!(r=fn(t,a))||r.enumerable});return e};var pt=(e,t,n)=>(n=e!=null?sn(pn(e)):{},mn(t||!e||!e.__esModule?Re(n,"default",{value:e,enumerable:!0}):n,e));var Ve=dn(()=>{var Mt;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:g(),r=a(e);typeof n.Reflect!="undefined"&&(r=a(n.Reflect,r)),t(r,n),typeof n.Reflect=="undefined"&&(n.Reflect=e);function a(h,v){return function(C,V){Object.defineProperty(h,C,{configurable:!0,writable:!0,value:V}),v&&v(C,V)}}function y(){try{return Function("return this;")()}catch(h){}}function d(){try{return(0,eval)("(function() { return this; })()")}catch(h){}}function g(){return y()||d()}})(function(t,n){var r=Object.prototype.hasOwnProperty,a=typeof Symbol=="function",y=a&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",d=a&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",g=typeof Object.create=="function",h={__proto__:[]}instanceof Array,v=!g&&!h,C={create:g?function(){return _e(Object.create(null))}:h?function(){return _e({__proto__:null})}:function(){return _e({})},has:v?function(i,o){return r.call(i,o)}:function(i,o){return o in i},get:v?function(i,o){return r.call(i,o)?i[o]:void 0}:function(i,o){return i[o]}},V=Object.getPrototypeOf(Function),B=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:tn(),we=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:nn(),ve=typeof WeakMap=="function"?WeakMap:rn(),G=a?Symbol.for("@reflect-metadata:registry"):void 0,fe=Xt(),We=Kt(fe);function It(i,o,s,u){if(b(s)){if(!tt(i))throw new TypeError;if(!nt(o))throw new TypeError;return Ut(i,o)}else{if(!tt(i))throw new TypeError;if(!_(o))throw new TypeError;if(!_(u)&&!b(u)&&!W(u))throw new TypeError;return W(u)&&(u=void 0),s=J(s),Gt(i,o,s,u)}}t("decorate",It);function kt(i,o){function s(u,m){if(!_(u))throw new TypeError;if(!b(m)&&!qt(m))throw new TypeError;qe(i,o,u,m)}return s}t("metadata",kt);function Nt(i,o,s,u){if(!_(s))throw new TypeError;return b(u)||(u=J(u)),qe(i,o,s,u)}t("defineMetadata",Nt);function Vt(i,o,s){if(!_(o))throw new TypeError;return b(s)||(s=J(s)),He(i,o,s)}t("hasMetadata",Vt);function Jt(i,o,s){if(!_(o))throw new TypeError;return b(s)||(s=J(s)),Me(i,o,s)}t("hasOwnMetadata",Jt);function Ft(i,o,s){if(!_(o))throw new TypeError;return b(s)||(s=J(s)),Ze(i,o,s)}t("getMetadata",Ft);function $t(i,o,s){if(!_(o))throw new TypeError;return b(s)||(s=J(s)),Ye(i,o,s)}t("getOwnMetadata",$t);function zt(i,o){if(!_(i))throw new TypeError;return b(o)||(o=J(o)),Qe(i,o)}t("getMetadataKeys",zt);function Lt(i,o){if(!_(i))throw new TypeError;return b(o)||(o=J(o)),Xe(i,o)}t("getOwnMetadataKeys",Lt);function Bt(i,o,s){if(!_(o))throw new TypeError;if(b(s)||(s=J(s)),!_(o))throw new TypeError;b(s)||(s=J(s));var u=X(o,s,!1);return b(u)?!1:u.OrdinaryDeleteMetadata(i,o,s)}t("deleteMetadata",Bt);function Ut(i,o){for(var s=i.length-1;s>=0;--s){var u=i[s],m=u(o);if(!b(m)&&!W(m)){if(!nt(m))throw new TypeError;o=m}}return o}function Gt(i,o,s,u){for(var m=i.length-1;m>=0;--m){var R=i[m],x=R(o,s,u);if(!b(x)&&!W(x)){if(!_(x))throw new TypeError;u=x}}return u}function He(i,o,s){var u=Me(i,o,s);if(u)return!0;var m=Ae(o);return W(m)?!1:He(i,m,s)}function Me(i,o,s){var u=X(o,s,!1);return b(u)?!1:et(u.OrdinaryHasOwnMetadata(i,o,s))}function Ze(i,o,s){var u=Me(i,o,s);if(u)return Ye(i,o,s);var m=Ae(o);if(!W(m))return Ze(i,m,s)}function Ye(i,o,s){var u=X(o,s,!1);if(!b(u))return u.OrdinaryGetOwnMetadata(i,o,s)}function qe(i,o,s,u){var m=X(s,u,!0);m.OrdinaryDefineOwnMetadata(i,o,s,u)}function Qe(i,o){var s=Xe(i,o),u=Ae(i);if(u===null)return s;var m=Qe(u,o);if(m.length<=0)return s;if(s.length<=0)return m;for(var R=new we,x=[],T=0,f=s;T<f.length;T++){var c=f[T],l=R.has(c);l||(R.add(c),x.push(c))}for(var p=0,D=m;p<D.length;p++){var c=D[p],l=R.has(c);l||(R.add(c),x.push(c))}return x}function Xe(i,o){var s=X(i,o,!1);return s?s.OrdinaryOwnMetadataKeys(i,o):[]}function Ke(i){if(i===null)return 1;switch(typeof i){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return i===null?1:6;default:return 6}}function b(i){return i===void 0}function W(i){return i===null}function Wt(i){return typeof i=="symbol"}function _(i){return typeof i=="object"?i!==null:typeof i=="function"}function Ht(i,o){switch(Ke(i)){case 0:return i;case 1:return i;case 2:return i;case 3:return i;case 4:return i;case 5:return i}var s=o===3?"string":o===5?"number":"default",u=rt(i,y);if(u!==void 0){var m=u.call(i,s);if(_(m))throw new TypeError;return m}return Zt(i,s==="default"?"number":s)}function Zt(i,o){if(o==="string"){var s=i.toString;if(H(s)){var u=s.call(i);if(!_(u))return u}var m=i.valueOf;if(H(m)){var u=m.call(i);if(!_(u))return u}}else{var m=i.valueOf;if(H(m)){var u=m.call(i);if(!_(u))return u}var R=i.toString;if(H(R)){var u=R.call(i);if(!_(u))return u}}throw new TypeError}function et(i){return!!i}function Yt(i){return""+i}function J(i){var o=Ht(i,3);return Wt(o)?o:Yt(o)}function tt(i){return Array.isArray?Array.isArray(i):i instanceof Object?i instanceof Array:Object.prototype.toString.call(i)==="[object Array]"}function H(i){return typeof i=="function"}function nt(i){return typeof i=="function"}function qt(i){switch(Ke(i)){case 3:return!0;case 4:return!0;default:return!1}}function Oe(i,o){return i===o||i!==i&&o!==o}function rt(i,o){var s=i[o];if(s!=null){if(!H(s))throw new TypeError;return s}}function it(i){var o=rt(i,d);if(!H(o))throw new TypeError;var s=o.call(i);if(!_(s))throw new TypeError;return s}function ot(i){return i.value}function at(i){var o=i.next();return o.done?!1:o}function st(i){var o=i.return;o&&o.call(i)}function Ae(i){var o=Object.getPrototypeOf(i);if(typeof i!="function"||i===V||o!==V)return o;var s=i.prototype,u=s&&Object.getPrototypeOf(s);if(u==null||u===Object.prototype)return o;var m=u.constructor;return typeof m!="function"||m===i?o:m}function Qt(){var i;!b(G)&&typeof n.Reflect!="undefined"&&!(G in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(i=en(n.Reflect));var o,s,u,m=new ve,R={registerProvider:x,getProvider:f,setProvider:l};return R;function x(p){if(!Object.isExtensible(R))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case i===p:break;case b(o):o=p;break;case o===p:break;case b(s):s=p;break;case s===p:break;default:u===void 0&&(u=new we),u.add(p);break}}function T(p,D){if(!b(o)){if(o.isProviderFor(p,D))return o;if(!b(s)){if(s.isProviderFor(p,D))return o;if(!b(u))for(var M=it(u);;){var j=at(M);if(!j)return;var N=ot(j);if(N.isProviderFor(p,D))return st(M),N}}}if(!b(i)&&i.isProviderFor(p,D))return i}function f(p,D){var M=m.get(p),j;return b(M)||(j=M.get(D)),b(j)&&(j=T(p,D),b(j)||(b(M)&&(M=new B,m.set(p,M)),M.set(D,j))),j}function c(p){if(b(p))throw new TypeError;return o===p||s===p||!b(u)&&u.has(p)}function l(p,D,M){if(!c(M))throw new Error("Metadata provider not registered.");var j=f(p,D);if(j!==M){if(!b(j))return!1;var N=m.get(p);b(N)&&(N=new B,m.set(p,N)),N.set(D,M)}return!0}}function Xt(){var i;return!b(G)&&_(n.Reflect)&&Object.isExtensible(n.Reflect)&&(i=n.Reflect[G]),b(i)&&(i=Qt()),!b(G)&&_(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,G,{enumerable:!1,configurable:!1,writable:!1,value:i}),i}function Kt(i){var o=new ve,s={isProviderFor:function(c,l){var p=o.get(c);return b(p)?!1:p.has(l)},OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:m,OrdinaryGetOwnMetadata:R,OrdinaryOwnMetadataKeys:T,OrdinaryDeleteMetadata:f};return fe.registerProvider(s),s;function u(c,l,p){var D=o.get(c),M=!1;if(b(D)){if(!p)return;D=new B,o.set(c,D),M=!0}var j=D.get(l);if(b(j)){if(!p)return;if(j=new B,D.set(l,j),!i.setProvider(c,l,s))throw D.delete(l),M&&o.delete(c),new Error("Wrong provider for target.")}return j}function m(c,l,p){var D=u(l,p,!1);return b(D)?!1:et(D.has(c))}function R(c,l,p){var D=u(l,p,!1);if(!b(D))return D.get(c)}function x(c,l,p,D){var M=u(p,D,!0);M.set(c,l)}function T(c,l){var p=[],D=u(c,l,!1);if(b(D))return p;for(var M=D.keys(),j=it(M),N=0;;){var ut=at(j);if(!ut)return p.length=N,p;var on=ot(ut);try{p[N]=on}catch(an){try{st(j)}finally{throw an}}N++}}function f(c,l,p){var D=u(l,p,!1);if(b(D)||!D.delete(c))return!1;if(D.size===0){var M=o.get(l);b(M)||(M.delete(p),M.size===0&&o.delete(M))}return!0}}function en(i){var o=i.defineMetadata,s=i.hasOwnMetadata,u=i.getOwnMetadata,m=i.getOwnMetadataKeys,R=i.deleteMetadata,x=new ve,T={isProviderFor:function(f,c){var l=x.get(f);return!b(l)&&l.has(c)?!0:m(f,c).length?(b(l)&&(l=new we,x.set(f,l)),l.add(c),!0):!1},OrdinaryDefineOwnMetadata:o,OrdinaryHasOwnMetadata:s,OrdinaryGetOwnMetadata:u,OrdinaryOwnMetadataKeys:m,OrdinaryDeleteMetadata:R};return T}function X(i,o,s){var u=fe.getProvider(i,o);if(!b(u))return u;if(s){if(fe.setProvider(i,o,We))return We;throw new Error("Illegal state.")}}function tn(){var i={},o=[],s=(function(){function T(f,c,l){this._index=0,this._keys=f,this._values=c,this._selector=l}return T.prototype["@@iterator"]=function(){return this},T.prototype[d]=function(){return this},T.prototype.next=function(){var f=this._index;if(f>=0&&f<this._keys.length){var c=this._selector(this._keys[f],this._values[f]);return f+1>=this._keys.length?(this._index=-1,this._keys=o,this._values=o):this._index++,{value:c,done:!1}}return{value:void 0,done:!0}},T.prototype.throw=function(f){throw this._index>=0&&(this._index=-1,this._keys=o,this._values=o),f},T.prototype.return=function(f){return this._index>=0&&(this._index=-1,this._keys=o,this._values=o),{value:f,done:!0}},T})(),u=(function(){function T(){this._keys=[],this._values=[],this._cacheKey=i,this._cacheIndex=-2}return Object.defineProperty(T.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),T.prototype.has=function(f){return this._find(f,!1)>=0},T.prototype.get=function(f){var c=this._find(f,!1);return c>=0?this._values[c]:void 0},T.prototype.set=function(f,c){var l=this._find(f,!0);return this._values[l]=c,this},T.prototype.delete=function(f){var c=this._find(f,!1);if(c>=0){for(var l=this._keys.length,p=c+1;p<l;p++)this._keys[p-1]=this._keys[p],this._values[p-1]=this._values[p];return this._keys.length--,this._values.length--,Oe(f,this._cacheKey)&&(this._cacheKey=i,this._cacheIndex=-2),!0}return!1},T.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=i,this._cacheIndex=-2},T.prototype.keys=function(){return new s(this._keys,this._values,m)},T.prototype.values=function(){return new s(this._keys,this._values,R)},T.prototype.entries=function(){return new s(this._keys,this._values,x)},T.prototype["@@iterator"]=function(){return this.entries()},T.prototype[d]=function(){return this.entries()},T.prototype._find=function(f,c){if(!Oe(this._cacheKey,f)){this._cacheIndex=-1;for(var l=0;l<this._keys.length;l++)if(Oe(this._keys[l],f)){this._cacheIndex=l;break}}return this._cacheIndex<0&&c&&(this._cacheIndex=this._keys.length,this._keys.push(f),this._values.push(void 0)),this._cacheIndex},T})();return u;function m(T,f){return T}function R(T,f){return f}function x(T,f){return[T,f]}}function nn(){var i=(function(){function o(){this._map=new B}return Object.defineProperty(o.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),o.prototype.has=function(s){return this._map.has(s)},o.prototype.add=function(s){return this._map.set(s,s),this},o.prototype.delete=function(s){return this._map.delete(s)},o.prototype.clear=function(){this._map.clear()},o.prototype.keys=function(){return this._map.keys()},o.prototype.values=function(){return this._map.keys()},o.prototype.entries=function(){return this._map.entries()},o.prototype["@@iterator"]=function(){return this.keys()},o.prototype[d]=function(){return this.keys()},o})();return i}function rn(){var i=16,o=C.create(),s=u();return(function(){function f(){this._key=u()}return f.prototype.has=function(c){var l=m(c,!1);return l!==void 0?C.has(l,this._key):!1},f.prototype.get=function(c){var l=m(c,!1);return l!==void 0?C.get(l,this._key):void 0},f.prototype.set=function(c,l){var p=m(c,!0);return p[this._key]=l,this},f.prototype.delete=function(c){var l=m(c,!1);return l!==void 0?delete l[this._key]:!1},f.prototype.clear=function(){this._key=u()},f})();function u(){var f;do f="@@WeakMap@@"+T();while(C.has(o,f));return o[f]=!0,f}function m(f,c){if(!r.call(f,s)){if(!c)return;Object.defineProperty(f,s,{value:C.create()})}return f[s]}function R(f,c){for(var l=0;l<c;++l)f[l]=Math.random()*255|0;return f}function x(f){if(typeof Uint8Array=="function"){var c=new Uint8Array(f);return typeof crypto!="undefined"?crypto.getRandomValues(c):typeof msCrypto!="undefined"?msCrypto.getRandomValues(c):R(c,f),c}return R(new Array(f),f)}function T(){var f=x(i);f[6]=f[6]&79|64,f[8]=f[8]&191|128;for(var c="",l=0;l<i;++l){var p=f[l];(l===4||l===6||l===8)&&(c+="-"),p<16&&(c+="0"),c+=p.toString(16).toLowerCase()}return c}}function _e(i){return i.__=void 0,delete i.__,i}})})(Mt||(Mt={}))});var bn=["string","number","boolean","bigint","symbol"];function yt(e){return!!(e.name&&["any","void","unknown"].includes(e.name))}function dt(e){return!!(e.name&&bn.includes(e.name))}function K(e){return!!e.arrayElementType}function xe(e){return!!e.literalValue}function Se(e){return!!e.typeLiteralMembers}function Pe(e){return!!e.unionMembers}function Ce(e){return!!e.intersectionMembers}function Ee(e){return!!e.tupleMembers}function Zn(e){return!!e.generics}var ce=new Map,le=new Map,pe=new Map,ye=new Map,gn=new Map,Xn=(e=>{gn.set(e.name,e)}),hn={string:String,number:Number,boolean:Boolean,object:Object},ee={getClassDefinition:Tn,getInterfaceDefinition:Dn,getEnumDefinition:wn,getTypeAliasDefinition:vn},P=Reflect;function te(e){return P.__classDef[e]||globalThis[e]||hn[e]}function Tn(e){var n,r;let t;switch(typeof e){case"function":t=e.name;break;case"string":t=e;break;case"object":t=e.constructor.name;break;default:return}if(!ce.has(t)){let a=(n=P.__classes)==null?void 0:n[t];if(!a)return;let y=(r=P.__classDef)==null?void 0:r[t];ce.set(t,new ne(je(F({},a),{jsClass:y})))}return ce.get(t)}function Dn(e){var t;if(!le.has(e)){let n=(t=P.__interfaces)==null?void 0:t[e];if(!n)return;le.set(e,new re(n))}return le.get(e)}function wn(e){var t;if(!pe.has(e)){let n=(t=P.__enums)==null?void 0:t[e];if(!n)return;pe.set(e,new ie(n))}return pe.get(e)}function vn(e){var t;if(!ye.has(e)){let n=E((t=P.__typeAliases)==null?void 0:t[e]);if(!n)return;ye.set(e,n)}return ye.get(e)}P.initReflectContext=()=>{P.__classes&&Object.entries(P.__classes).map(([e,t])=>{let n=P.__classDef[e];n&&ce.set(e,new ne(je(F({},t),{jsClass:n})))}),P.__interfaces&&Object.entries(P.__interfaces).map(([e,t])=>le.set(e,new re(t))),P.__enums&&Object.entries(P.__enums).map(([e,t])=>pe.set(e,new ie(t))),P.__typeAliases&&Object.entries(P.__typeAliases).map(([e,t])=>{ye.set(e,E(t))}),["__classDef","__classes","__interfaces","__enums","__typeAliases","initReflectContext"].forEach(e=>delete P[e])};var ne=class{constructor(t){var n,r;this.name=t.name,this.superClassName=t.superClassName||"Object",this.superClass=S(this.superClassName),this._implementationNames=t.implementations||[],this.methods=((n=t.methods)==null?void 0:n.map(de))||[],this.properties=((r=t.properties)==null?void 0:r.map(me))||[],this.jsClass=t.jsClass}get allMethods(){let t={};if(this.superClassName!=="Object"){let n=S(this.superClassName);n&&Object.assign(t,F({},n.allMethods))}return Object.assign(t,F({},mt(this.methods,n=>[n.name,n]))),t}get allProperties(){var t;return Object.assign(((t=this.superClass)==null?void 0:t.allProperties)||{},mt(this.properties,n=>[n.name,n]))}get implementations(){return this._implementations?this._implementations:Mn(this._implementationNames,$)}get allImplementations(){var t,n;if(this._allImplementations===void 0){let r=new Set(this.implementations);this.implementations.forEach(a=>{a.allImplementations.forEach(y=>r.add(y))}),(n=(t=this.superClass)==null?void 0:t.allImplementations)==null||n.forEach(a=>r.add(a)),this._allImplementations=Array.from(r)}return this._allImplementations}getProperty(t){return this.properties.find(n=>n.name===t)}get type(){var n,r;let t={};return(r=(n=this.superClass)==null?void 0:n.type.typeLiteralMembers)==null||r.forEach(a=>t[a.name]=a),this.properties.forEach(a=>t[a.name]=a),{name:this.name,typeLiteralMembers:Object.values(t)}}isSubClassOf(t){var n;return this.name===t||(n=this.superClass)!=null&&n.isSubClassOf(t)?!0:this.implementations.map(r=>r.name).includes(t)}isSuperClassOf(t){if(this.name===t)return!0;let n=S(t);return n?n.isSubClassOf(this.name):!1}toString(){return`class ${this.name}`}};function mt(e,t){let n={};return e.forEach(r=>{let[a,y]=t(r);n[a]=y}),n}function Mn(e,t){return(e==null?void 0:e.map(t).filter(n=>n!==void 0))||[]}function Z(e,t,n){e!==void 0&&(e[t]=n)}function Y(e,t){if(e!==void 0)return e[t]}function bt(e,t){return(e==null?void 0:e.map(t).filter(n=>n!==void 0))||[]}function be(e){try{Object.entries(e).forEach(t=>Object.defineProperty(globalThis,t[0],{value:t[1]}))}catch(t){console.log(t)}}var re=class{constructor(t){var n,r;this.name=t.name,this._implementationNames=t.implementations||[],this.methods=((n=t.methods)==null?void 0:n.map(de))||[],this.properties=((r=t.properties)==null?void 0:r.map(me))||[]}get implementations(){return this._implementations||(this._implementations=bt(this._implementationNames,$)),this._implementations}get allImplementations(){if(this._allImplementations===void 0){let t=new Set(this.implementations);this.implementations.forEach(n=>{n.allImplementations.forEach(r=>t.add(r))}),this._allImplementations=Array.from(t)}return this._allImplementations}get type(){let t={};return this.allImplementations.forEach(n=>{let r=n.type.typeLiteralMembers;r==null||r.forEach(a=>t[a.name]=a)}),this.properties.forEach(n=>t[n.name]=n),{name:this.name,typeLiteralMembers:Object.values(t)}}toString(){return`interface ${this.name}`}buildBaseObject(){let t={};return this.properties.forEach(n=>Z(t,n.name,void 0)),this.methods.forEach(n=>Z(t,n.name,()=>{})),t}};var ie=class{constructor(t){this.name=t.name,this.members=new Map,t.members.forEach(n=>{let r=n.initializer===void 0?{name:"number"}:{literalValue:n.initializer};this.members.set(n.name,r)})}get type(){return{name:this.name,unionMembers:Array.from(this.members.values())}}get names(){return Array.from(this.members.keys())}};var Ie=class{constructor(t){var n;this.name=t.name,this.returnType=E(t.returnType),this.args=((n=t.args)==null?void 0:n.map(r=>({name:r.name,type:E(r.type),isOptional:r.isOptional})))||[],this.isPrivate=t.isPrivate||!1,this.isStatic=t.isStatic||!1,this.isAsync=t.isAsync||!1}};function de(e){return new Ie(e)}var ke=class{constructor(t){this.name=t.name,this.isOptional=t.isOptional||!1,this.isPrivate=t.isPrivate||!1,this.isStatic=t.isStatic||!1,this.type=E(t.type),this.accessor=t.accessor&&F({},t.accessor)}};function me(e){return new ke(e)}var k={name:"any"},On={name:"null"};function S(e){return ee.getClassDefinition(e)}function $(e){return ee.getInterfaceDefinition(e)}function q(e){return ee.getEnumDefinition(e)}function ge(e){return ee.getTypeAliasDefinition(e)}function z(e){if(e==="any"||e==="Any"||e==="unknown"||e==="")return k;if(e==="null")return On;let t=S(e)||$(e)||q(e);if(t)return t.type;let n=ge(e);return n||k}function gt(e){var t;return((t=q(e))==null?void 0:t.names)||[]}function ht(e){let t=Object.entries(e)[0];if(!t)return[];let[n,r]=t,a=q(n);return a?a.names.map(y=>r[y]):Array.from(Object.keys(r))}function E(e){switch(typeof e){case"undefined":return k;case"string":return Object.assign({},z(e)||{},{name:e});default:if(e.arrayElementType)Object.assign(e,{arrayElementType:E(e.arrayElementType)});else if(e.unionMembers)Object.assign(e,{unionMembers:e.unionMembers.map(E)});else if(e.intersectionMembers)Object.assign(e,{intersectionMembers:e.intersectionMembers.map(E)});else if(e.tupleMembers)Object.assign(e,{tupleMembers:e.tupleMembers.map(E)});else if(e.generics){let t=E(e.generics[0]);return t.generics=e.generics.slice(1).map(E),t}return e}}be({getClassByName:te,getInterfaceDefinition:$,getEnumDefinition:q,getTypeAliasDefinition:ge,getTypeDefinition:z});var w={success:!0},O=(e,t)=>({success:!1,errorMessage:e,cause:t}),An=[Promise,Date,Map,Set,Error,Function];function I(e,t,n=1){switch(!0){case t.name==="undefined":return e===void 0?w:O(`declared as ${A(t)} but actually not`);case yt(t):return w;case K(t):return _n(e,t,n);case Ee(t):return Rn(e,t,n);case Pe(t):for(let r of t.unionMembers||[])if(I(e,r,n).success)return w;return O(`declared as ${A(t)} but all value not match`);case Ce(t):for(let r of t.intersectionMembers||[]){let a=I(e,r,n);if(!a.success)return O(`declared as ${A(t)} but all value not match`,a)}return w;case xe(t):switch(typeof e){case"string":return e===Cn(t.literalValue)?w:O(`declared as string ${A(t)} but value not match`);case"number":return e===Number(t.literalValue)?w:O(`declared as number ${A(t)} but value not match`);case"bigint":return e===BigInt(t.literalValue)?w:O(`declared as bigint ${A(t)} but value not match`);case"boolean":return e===!!t.literalValue?w:O(`declared as boolean ${A(t)} but value not match`);default:return t.literalValue==="null"&&e===null||e===t.literalValue?w:O(`declared as ${A(t)} but value not match`)}case Se(t):return jn(e,t,n);case t.isFunction:case t.isConstructor:return typeof e=="function"?w:O(`declared as ${A(t)} but actually not`);case dt(t):return typeof e===t.name?w:O(`declared as ${A(t)} but actually ${typeof e}`);default:return xn(e,t,n)}}function _n(e,t,n=1){if(!Array.isArray(e))return O(`declared as ${A(t)} but actually not`);if(n===0)return w;for(let r of e){let a=I(r,t.arrayElementType||k,n-1);if(!a.success)return O(`declared as ${A(t)} but not all values in array match`,a)}return w}function Rn(e,t,n=1){if(!Array.isArray(e))return O(`declared as ${A(t)} but actually not a tuple`);if(n===0)return w;let r=0;for(let a of t.tupleMembers){let y=e[r++];if(a.isOptionalInTuple&&y===void 0)continue;let d=I(e[r],a,n);if(!d.success)return O(`declared as ${A(t)} but not all values in tuple match`,d)}return w}function jn(e,t,n=1){if(e instanceof Object){for(let r of t.typeLiteralMembers||[]){if(r.isStatic||r.name.startsWith("[")&&r.name.endsWith("]")||n===0)return w;let a=r.type||k;r.isOptional&&(a={unionMembers:[a,{name:"undefined"}]});let y=Y(e,r.name),d=I(y,a,n-1);if(!d.success)return O(`declared ${r.name} as ${A(a)}, but not match`,d)}return w}else return O(`declared as ${A(t)} but not an object`)}function xn(e,t,n=1){let r=typeof t=="string"?t:t.name;if(!r)return w;if(e===void 0)return O(`declared as ${A(t)} but actually undefined`);if(e===null)return r==="null"?w:O(`declared as ${A(t)} but actually null`);for(let y of An)if(r===y.name)return e instanceof y?w:O(`declared as ${A(t)} but actually ${e.constructor.name}`);if(e instanceof Object&&!Tt(e,r))return O(`declared as ${A(t)} but actually not instance of it`);if(n==0)return w;let a=I(e,z(r),n);return a.success?w:O(`declared as ${A(t)} but actually not match`,a)}function Q(e,t,n=1){if(t){if(t!=="object"&&!Tt(e,t))return O(`declared as instance of ${t} but actually not`)}else t=e.constructor.name;let r=z(t);return t!=="any"&&r===k?O(`${t} not defined`):I(e,r,n)}function Sn(e,t,n=1){for(let r=0;r<e.length;r++){let a=Q(e[r],t,n);if(!a.success)return O(`declared as instance of ${t}[] but [${r}] actually not`,a)}return w}function Pn(e,t,n=1){let r=Object.entries(e);for(let a=0;a<r.length;a++){let[y,d]=r[a],g=Q(d,t,n);if(!g.success)return O(`declared as instance of Dictionary<${t}> but [${y}] actually not`,g)}return w}function Tt(e,t){if(e===void 0||e.constructor.name===t)return!0;let n=S(t);if(!n)return!0;if(n.jsClass)return e instanceof n.jsClass;let r=S(e);return r?r.isSubClassOf(n.name):!1}function Cn(e){return e.length>=2&&(e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'")?e.substring(1,e.length-1):e}function A(e){var t,n,r;return typeof e=="string"?e:K(e)?(((t=e.arrayElementType)==null?void 0:t.name)||"unknown")+"[]":e.isConstructor?"Class":e.isFunction?"Function":Se(e)?"Object":Ee(e)?`(${e.tupleMembers.map(A).join(",")})`:Pe(e)?((n=e.unionMembers)==null?void 0:n.map(A).join(" | "))||"unknown":Ce(e)?((r=e.intersectionMembers)==null?void 0:r.map(A).join(" & "))||"unknown":xe(e)?e.literalValue:e.name||"unknown"}function Dt(e){let t=n=>n.errorMessage?[n.errorMessage,...n.cause?t(n.cause):[]]:[];return t(e).join(`
2
+ -> `)}function xr(e){let{funcName:t,optionsObj:n,value:r,argName:a,type:y,optional:d}=e,g=r||n&&Y(n,a);if(g===void 0){if(d)return;throw Error(`Illegal arguments for ${t}: ${a} is undefined`)}if(["string","number","boolean","bigint"].includes(y)){if(typeof g!==y)throw Error(`Illegal arguments for ${t}: ${a} is not a ${y}`);return}if(typeof g!="object")throw Error(`Illegal arguments for ${t}: ${a} is not an object`);if(g===null)throw Error(`Illegal arguments for ${t}: ${a} is null`);let h=Q(g,y);if(!h.success)throw Error(`Illegal arguments for ${t}: ${h.errorMessage}`)}function Sr(e,t,n){let r=S(e);if(!r){Z(e,t,n);return}let a=r.allProperties[t];if(!a)throw new Error(`Property ${t} is not defined in ${r.name}`);let y=a.type,d=I(n,y);if(!d.success)throw new Error(d.errorMessage);Z(e,t,n)}be({validateInstance:Q,validateArray:Sn,validateDictionary:Pn,getClassDefinition:S,getInterfaceDefinition:$,getEnumDefinition:q,getTypeAliasDefinition:ge,getTypeDefinition:z,getEnumNames:gt,getEnumValues:ht});function oe(e){if(typeof e=="string")return z(e);let t=e;if(t.array)return{arrayElementType:oe(t.array)};let n=e;if(n.union)return{unionMembers:n.union.map(oe)};let r=e;if(r.intersection)return{intersectionMembers:r.intersection.map(oe)};let a=e;if(a.tuple)return{tupleMembers:a.tuple.map(oe)};throw new Error(`unknown type: ${e}`)}function Er(e,t,n=5){let r=I(e,oe(t),n);if(!r.success){console.error(`assert failed with type: ${t}`),console.dir(r);debugger}return e}var wt=Symbol("VALIDATE_WRAPPER"),Vr=(e,t,n)=>En(e,t,n);function En(e,t,n){let r=n.value;if(typeof r!="function"||Y(r,wt))return;let a=()=>{var h,v;return(v=(h=S(e))==null?void 0:h.methods)==null?void 0:v.find(C=>C.name===t)},y=h=>vt(e,a(),h),d=h=>In(e,a(),h),g=function(...h){y(h);let v=r.call(this,...h);return d(v)};g[wt]=r,n.value=g}function vt(e,t,n){var r;(r=t==null?void 0:t.args)==null||r.forEach((a,y)=>{let d=n==null?void 0:n[y];if(d===void 0){if(a.isOptional)return;throw new Error(`Illegal arguments for ${Ne(e.constructor.name,t)}: ${a.name} is not optional`)}let g=I(d,a.type||k,1);if(!g.success)throw console.error("validateResult",g),new Error(`Illegal arguments for ${Ne(e.constructor.name,t)}: ${a.name}: ${a.name} ${g.errorMessage}`)})}function In(e,t,n){var y;if(!t)return n;let r=(d,g)=>{let h=I(d,g,5);if(!h.success){console.error(h);debugger;throw new Error(`result for ${Ne(e.constructor.name,t)} doesn't match type ${g.name}: ${h.errorMessage}`)}return d},a=t.returnType;return a.name==="Promise"&&(a=((y=a.generics)==null?void 0:y[0])||k),n instanceof Promise?n.then(d=>r(d,a||k)):r(n,a||k)}function Ne(e,t){var n;return`${e}.${t.name}(${(n=t.args)==null?void 0:n.map(r=>r.name).join(", ")})`}function Jr(e,t,...n){let r=S(e);if(!r)return;let a=r.allMethods[t];if(a)return vt(e,a,n),Y(e,t).apply(e,n)}var ai=pt(Ve(),1);function Ot(e){return String(e).toLocaleLowerCase()==="false"?!1:!!e}function ae(e){return e==null||Number.isNaN(e)||e instanceof Date&&String(e)==="Invalid Date"?"":typeof e=="symbol"?e.description||"":String(e)}function Je(e){return e?e instanceof Date?e.getDate():Number(e):0}function L(e,t,n){e[t]=n}function he(e,t){return e[t]}function ei(e,t,n){let r=e[t];if(r!==void 0)return r;let a=n();return L(e,t,a),a}function At(e){return typeof e=="object"&&e!==null&&e.constructor===Object}function _t(e){let t=Object.create(e.prototype);return t.constructor=this,t}function Rt(e){return((t,n)=>Reflect.defineMetadata(e,n,t.constructor))}function jt(e,t,...n){let r=xt(e,t);if(r!==void 0&&r instanceof Function)return r.apply(e,n)}function ri(e,t){let n=xt(e,t);return n!==void 0&&n instanceof Function}function kn(e,t){return Reflect.getMetadata(t,e.constructor)}function xt(e,t){let n=kn(e,t);if(n!==void 0)return he(e,n)}var U=function({getter:e,setter:t,fieldSymbol:n}){return(r,a)=>{Object.defineProperty(r,a,{get:function(){return e?e(this,a):U.getField(r,a,n)},set:function(y){t?t(this,y,a):U.setField(r,a,y,n)}})}};L(U,"getField",(e,t,n)=>{var r;return(r=he(e,n))==null?void 0:r[t]});L(U,"setField",(e,t,n,r)=>{let a=he(e,r)||{};a[t]=n,L(e,r,a)});function ii(e){let t=Symbol("lazy");return U({getter:(n,r)=>{let a=U.getField(n,r,t);if(a)return a.value;let y=e(n,r);return U.setField(n,r,{value:y},t),y},setter:()=>{},fieldSymbol:t})}var se=Symbol("JSON_SERIALIZED"),St=Symbol("AFTER_SERIALIZED"),Fe=class{constructor(){this.settingsByName={};this.settingsBySerializedName={};this.ignoredProperties=[];this.defaultIgnored=!1}add(t){this.settingsByName[t.propName]=t,this.settingsBySerializedName[t.serializedName]=t}isPropertyIgnored(t){return this.defaultIgnored&&!this.settingsByName[t]?!0:this.ignoredProperties.indexOf(t)!==-1}},$e=class{constructor(t,n,r){this.target=t;this.propName=n;this.options=r;this.isArray=Reflect.getDesignType(t,n)===Array,this.serializedName=r.name||ae(n),this.class=r.class,this.fromJSON=this.createBuilder(),this.toJSON=r.toJSON||(a=>Ct(a))}createBuilder(){if(this.options.fromJSON)return this.options.fromJSON;if(this.class&&this.class instanceof Function){let t=this.class;return n=>{let r=ue.get(t);return r?r.fromJson(n):Be(n,t)}}else return t=>Fn(this.target,this.propName,t)}};function Pt(e,t){ze(e,n=>{n.defaultIgnored=t})}function Te(e,t,n){let r=e.constructor;ze(r,a=>{a.add(new $e(e,t,n))})}function ze(e,t){let n=Reflect.getMetadata(se,e);n===void 0&&(n=new Fe),t(n),Reflect.defineMetadata(se,n,e)}var pi=Nn();function Nn(e){return e=e||{},(t,n)=>Te(t,ae(n),e)}function yi(e){return(t,n)=>Te(t,ae(n),{name:e})}var di=(e,t)=>ze(e.constructor,n=>n.ignoredProperties.push(t));function mi(e){return JSON.stringify(typeof e=="object"?Le(e):e)}function Ct(e){if(e===void 0)throw new Error("attempt to serialize undefined value");if(e===null)return null;let t=ue.get(e.constructor);return t?t.toJson(e):Le(e)}function Le(e){var y;if(e instanceof Array)return e.map(d=>Le(d));if(At(e)){let d={};return Object.entries(e).forEach(g=>{let[h,v]=g;d[h]=Ct(v)}),d}let t=e.constructor;((y=S(t))==null?void 0:y.isSubClassOf("Mappable"))&&Ge(t);let r=Reflect.getMetadata(se,t);if(r===void 0)return e;let a={};return Object.entries(e).forEach(d=>{let g=d[0];if(r.isPropertyIgnored(g))return;let h=d[1];if(h===void 0||h instanceof Function||typeof h=="symbol")return;let v=r.settingsByName[g],C=(v==null?void 0:v.serializedName)||g;v&&(v.isArray?h=h.map(V=>v.toJSON(V)):h=v.toJSON(h)),a[C]=h}),a}function Be(e,t){var n;if(typeof e=="string"&&(e=JSON.parse(e)),t===null||t===void 0)return e;try{let r=e,a=t instanceof Function?t:t.constructor,y=(n=S(a))==null?void 0:n.isSubClassOf("Mappable");y&&Ge(a);let d=ue.get(a);if(d)return d.fromJson(r);let g=t instanceof Function?_t(t):t;if(Jn(r,g),y){let h=Q(g,a.name);if(!h.success)throw new Error(`JSON deserialize validate failed: ${Dt(h)} `)}return g}catch(r){throw console.error("failed to deserialize"),console.dir(r),r}}function Vn(e,t){let n=typeof e=="string"?JSON.parse(e):e;return n instanceof Array?n.map(r=>Be(r,t)):[]}function Jn(e,t){let n=t.constructor,r=Reflect.getMetadata(se,n);if(r===void 0){Object.assign(t,e);return}Object.keys(e).forEach(a=>{let y=r.settingsBySerializedName[a],d=e[a];if(y===void 0){r.defaultIgnored||L(t,a,d);return}let g=y.propName;if(r.isPropertyIgnored(g))return;let h;d instanceof Array?h=d.map(v=>y.fromJSON(v)):h=y.fromJSON(d),L(t,g,h)}),jt(t,St)}function bi(e){return Reflect.getMetadata(se,e)}function Fn(e,t,n){let r=Reflect.getDesignType(e,t);if(r===void 0)return n;if(r===Array)return Vn(n);let a=ue.get(r);return a?a.fromJson(n):Be(n,r)}var ue=new Map;function De(e,t){ue.set(e,t)}var Ue=e=>e,gi=()=>{};De(String,{fromJson:ae,toJson:Ue});De(Number,{fromJson:Je,toJson:Ue});De(Boolean,{fromJson:Ot,toJson:Ue});De(Date,{fromJson:e=>new Date(Je(e)),toJson:e=>e.getTime()});var hi=Rt(St);var Et=new Map;function Ge(e){if(Et.get(e))return;let t=S(e),n=new Proxy({},{get(a,y){return r(y)},set(a,y,d){return r(y)(d),!0}});function r(a){return(y,d)=>{var v,C,V;let g=(C=(v=Object.values((t==null?void 0:t.allProperties)||{}))==null?void 0:v.find(B=>B.name===a))==null?void 0:C.type,h=(g==null?void 0:g.name)!==void 0?te(g.name):void 0;g&&K(g)&&(h=((V=g.arrayElementType)==null?void 0:V.name)!==void 0?te(g.arrayElementType.name):void 0),typeof a=="string"&&(Te(e.prototype,a,{name:y,class:h,fromJSON:d==null?void 0:d.fromJSON,toJSON:d==null?void 0:d.toJSON}),Pt(e,!0))}}e.prototype.mapping(n),Et.set(e,!0)}function vi(e,t){let n=S(e);n&&n.properties.forEach(r=>t[r.name]())}var Oi=pt(Ve(),1),$n="design:type",zn="design:returntype",Ln="design:paramtypes";function Bn(e,t){return Reflect.getMetadata($n,e,t)}function Un(e,t){return Reflect.getMetadata(zn,e,t)}function Gn(e,t){return Reflect.getMetadata(Ln,e,t)}function Wn(e,t,n,r){let a=(r===void 0?Reflect.getMetadata(e,n):Reflect.getMetadata(e,n,r))||[];a.includes(t)||a.push(t),r===void 0?Reflect.defineMetadata(e,a,n):Reflect.defineMetadata(e,a,n,r)}Object.assign(Reflect,{getDesignType:Bn,getReturnType:Un,getParamTypes:Gn,addMetadataList:Wn});export{hi as AfterSerialized,ne as ClassDefinition,ie as EnumDefinition,di as IgnoreSerialization,re as InterfaceDefinition,ii as Lazy,Ie as MethodDefinition,ke as PropertyDefinition,U as PropertyWrapper,Xn as ReflectClass,ee as ReflectContext,Vr as ReflectValidate,Nn as Serialized,pi as SerializedClass,yi as SerializedName,k as anyType,Ot as asBoolean,Je as asNumber,ae as asString,Er as assertType,jt as callDecoratedMethod,_t as createNewInstance,Rt as defineDecoratedProperty,Be as deserialize,Vn as deserializeArray,Jn as deserializeFrom,gi as done,de as fillMethod,me as fillProperty,E as fillType,he as getAnyValue,te as getClassByName,S as getClassDefinition,kn as getDecoratedProperty,xt as getDecoratedPropertyValue,q as getEnumDefinition,gt as getEnumNames,ht as getEnumValues,Dt as getErrorTraceMessages,$ as getInterfaceDefinition,ei as getOrSetValue,bi as getSerializeSettings,ge as getTypeAliasDefinition,oe as getTypeDef,z as getTypeDefinition,ri as hasDecoratedMethod,Zn as hasGenerics,K as isArrayType,At as isDictionary,yt as isIgnoredType,Ce as isIntersectionType,xe as isLiteralType,dt as isPrimitiveType,Ee as isTupleType,Se as isTypeLiteralType,Pe as isUnionType,Ue as itSelf,vi as mapAllProperties,On as nullType,Ge as registerMappable,Te as registerSerializedProperty,De as registerTransform,Jr as safeCall,Sr as safeSetValue,mi as serialize,Ct as serializeTo,Le as serializeToData,L as setAnyValue,Pt as setDefaultIgnored,Sn as validateArray,Pn as validateDictionary,xr as validateFunctionArgument,Q as validateInstance,I as validateValue};
3
+ /*! Bundled license information:
4
+
5
+ reflect-metadata/Reflect.js:
6
+ (*! *****************************************************************************
7
+ Copyright (C) Microsoft. All rights reserved.
8
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
9
+ this file except in compliance with the License. You may obtain a copy of the
10
+ License at http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
14
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
15
+ MERCHANTABLITY OR NON-INFRINGEMENT.
16
+
17
+ See the Apache Version 2.0 License for specific language governing permissions
18
+ and limitations under the License.
19
+ ***************************************************************************** *)
20
+ */