Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tsed/core

Package Overview
Dependencies
Maintainers
0
Versions
1149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/core - npm Package Compare versions

Comparing version 7.84.0 to 7.84.1

2

lib/browser/core.umd.min.js
/*! For license information please see core.umd.min.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@tsed/core"]=e():t["@tsed/core"]=e()}(self,(()=>(()=>{var t={340:t=>{function e(t){return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}e.keys=()=>[],e.resolve=e,e.id=340,t.exports=e},605:(t,e,r)=>{var n;!function(t){!function(e){var n="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),o=i(t);function i(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==n.Reflect&&(o=i(n.Reflect,o)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,u={__proto__:[]}instanceof Array,a=!s&&!u,c={create:s?function(){return V(Object.create(null))}:u?function(){return V({__proto__:null})}:function(){return V({})},has:a?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:a?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,x(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,o)},e.prototype.entries=function(){return new r(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!x(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(x(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function o(t,e){return e}function s(t,e){return[t,e]}}(),p="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new l}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+s()}while(c.has(t,e));return t[e]=!0,e}function o(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function s(){var t,e=(t=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):i(new Uint8Array(t),t):i(new Array(t),t));e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var r="",n=0;n<16;++n){var o=e[n];4!==n&&6!==n&&8!==n||(r+="-"),o<16&&(r+="0"),r+=o.toString(16).toLowerCase()}return r}}(),h=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!P(h)&&R(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[h]),P(t)&&(t=function(){var t,r,n,o;P(h)||void 0===e.Reflect||h in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,o=t.getOwnMetadataKeys,i=t.deleteMetadata,s=new y;return{isProviderFor:function(t,e){var r=s.get(t);return P(r)?!!o(t,e).length&&(P(r)&&(r=new p,s.set(t,r)),r.add(e),!0):r.has(e)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new y,s={registerProvider:u,getProvider:c,setProvider:d};return s;function u(e){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case P(r):r=e;break;case r===e:break;case P(n):n=e;break;case n===e:break;default:void 0===o&&(o=new p),o.add(e)}}function a(e,i){if(!P(r)){if(r.isProviderFor(e,i))return r;if(!P(n)){if(n.isProviderFor(e,i))return r;if(!P(o))for(var s=F(o);;){var u=K(s);if(!u)return;var a=B(u);if(a.isProviderFor(e,i))return I(s),a}}}if(!P(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,n=i.get(t);return P(n)||(r=n.get(e)),P(r)?(P(r=a(t,e))||(P(n)&&(n=new l,i.set(t,n)),n.set(e,r)),r):r}function f(t){if(P(t))throw new TypeError;return r===t||n===t||!P(o)&&o.has(t)}function d(t,e,r){if(!f(r))throw new Error("Metadata provider not registered.");var n=c(t,e);if(n!==r){if(!P(n))return!1;var o=i.get(t);P(o)&&(o=new l,i.set(t,o)),o.set(e,r)}return!0}}()),!P(h)&&R(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!P(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,o){n(r,o,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var o=n(e,r,!1);return!P(o)&&j(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!P(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(P(o))return r;for(var i=F(o.keys()),s=0;;){var u=K(i);if(!u)return r.length=s,r;var a=B(u);try{r[s]=a}catch(t){try{I(i)}finally{throw t}}s++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(P(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var s=e.get(r);P(s)||(s.delete(o),0===s.size&&e.delete(s))}return!0}};return d.registerProvider(r),r;function n(n,o,i){var s=e.get(n),u=!1;if(P(s)){if(!i)return;s=new l,e.set(n,s),u=!0}var a=s.get(o);if(P(a)){if(!i)return;if(a=new l,s.set(o,a),!t.setProvider(n,o,r))throw s.delete(o),u&&e.delete(n),new Error("Wrong provider for target.")}return a}}(d);function g(t,e,r){if(w(t,e,r))return!0;var n=L(e);return!S(n)&&g(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!P(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return O(t,e,r);var n=L(e);return S(n)?void 0:b(t,n,r)}function O(t,e,r){var n=U(e,r,!1);if(!P(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function m(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=E(t,e),n=L(t);if(null===n)return r;var o=_(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new p,s=[],u=0,a=r;u<a.length;u++){var c=a[u];i.has(c)||(i.add(c),s.push(c))}for(var f=0,l=o;f<l.length;f++)c=l[f],i.has(c)||(i.add(c),s.push(c));return s}function E(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function M(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function P(t){return void 0===t}function S(t){return null===t}function R(t){return"object"==typeof t?null!==t:"function"==typeof t}function T(t,e){switch(M(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",n=N(t,o);if(void 0!==n){var i=n.call(t,r);if(R(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(k(r)&&!R(o=r.call(t)))return o;if(k(n=t.valueOf)&&!R(o=n.call(t)))return o}else{var n;if(k(n=t.valueOf)&&!R(o=n.call(t)))return o;var o,i=t.toString;if(k(i)&&!R(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function j(t){return!!t}function A(t){var e=T(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function D(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function k(t){return"function"==typeof t}function C(t){return"function"==typeof t}function x(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!k(r))throw new TypeError;return r}}function F(t){var e=N(t,i);if(!k(e))throw new TypeError;var r=e.call(t);if(!R(r))throw new TypeError;return r}function B(t){return t.value}function K(t){var e=t.next();return!e.done&&e}function I(t){var e=t.return;e&&e.call(t)}function L(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function U(t,e,r){var n=d.getProvider(t,e);if(!P(n))return n;if(r){if(d.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function V(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,n){if(P(r)){if(!D(t))throw new TypeError;if(!C(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!P(n)&&!S(n)){if(!C(n))throw new TypeError;e=n}}return e}(t,e)}if(!D(t))throw new TypeError;if(!R(e))throw new TypeError;if(!R(n)&&!P(n)&&!S(n))throw new TypeError;return S(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!P(i)&&!S(i)){if(!R(i))throw new TypeError;n=i}}return n}(t,e,r=A(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!R(r))throw new TypeError;if(!P(n)&&!function(t){switch(M(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;m(t,e,r,n)}})),t("defineMetadata",(function(t,e,r,n){if(!R(r))throw new TypeError;return P(n)||(n=A(n)),m(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!R(e))throw new TypeError;return P(r)||(r=A(r)),g(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!R(e))throw new TypeError;return P(r)||(r=A(r)),w(t,e,r)})),t("getMetadata",(function(t,e,r){if(!R(e))throw new TypeError;return P(r)||(r=A(r)),b(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!R(e))throw new TypeError;return P(r)||(r=A(r)),O(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!R(t))throw new TypeError;return P(e)||(e=A(e)),_(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!R(t))throw new TypeError;return P(e)||(e=A(e)),E(t,e)})),t("deleteMetadata",(function(t,e,r){if(!R(e))throw new TypeError;if(P(r)||(r=A(r)),!R(e))throw new TypeError;P(r)||(r=A(r));var n=U(e,r,!1);return!P(n)&&n.OrdinaryDeleteMetadata(t,e,r)}))}(o,n),void 0===n.Reflect&&(n.Reflect=t)}()}(n||(n={}))}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";function t(t,e){return Object.getOwnPropertyDescriptor(t&&t.prototype||t,e)}function e(e,r){return t(e,r)?.value}function o(e=!0){return(r,n)=>{const o=t(r,n)||{writable:!0,enumerable:!0};return o.configurable=e,Object.defineProperty(r&&r.prototype||r,n,o),o}}function i(t,e){if("undefined"!=typeof process&&!0===process.noDeprecation)return t;if("undefined"==typeof process)return function(...r){return i(t,e).apply(this,r)};let r=!1;return function(...n){if(!r){if(process.throwDeprecation)throw new Error(e);process.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,n)}}function s(t){return(e,r,n)=>{const o=n.value;return n.value=i(o,t),n}}function u(e=!0){return(r,n)=>{const o=t(r,n)||{writable:!0,configurable:!0};return o.enumerable=e,Object.defineProperty(r&&r.prototype||r,n,o),o}}function a(){return o(!1)}function c(){return u(!1)}function f(e=!0){return(r,n)=>{const o=t(r,n)||{configurable:!0,enumerable:!0};return o.writable=e,Object.defineProperty(r&&r.prototype||r,n,o),o}}function l(){return f(!1)}var p;function y(t){return t.prototype?t:t.constructor}function h(t){return y(t)}function d(t){const[e,r,n]=t,o=t=>e!==h(e)?t:`${t}.static`;return"number"==typeof n?r?o("parameter"):"parameter.constructor":n&&n.value?o("method"):r&&void 0===n||n?o("property"):p.CLASS}function v(t){return t===Date||t instanceof Date&&!isNaN(+t)}function g(t){return"function"==typeof t}function w(t){return null==t}function b(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function O(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function m(t){return"number"==typeof t}function _(t){return"number"==typeof t||t instanceof Number||t===Number}function E(t){return"string"==typeof t}function M(t){return"string"==typeof t||t instanceof String||t===String}function P(t){return M(t)||_(t)||O(t)}function S(t){return E(t)||m(t)||b(t)}function R(t){return[String,Number,Boolean].includes(t)}function T(t){return"symbol"==typeof t}function j(t){return"symbol"==typeof t||t instanceof Symbol||t===Symbol}function A(t){return t instanceof RegExp}r.r(n),r.d(n,{AnyToPromise:()=>ft,AnyToPromiseResponseTypes:()=>at,AnyToPromiseStatus:()=>ut,CLASS_STORE:()=>z,Configurable:()=>o,DecoratorTypes:()=>p,Deprecated:()=>s,Enumerable:()=>u,Env:()=>ct,EnvTypes:()=>lt,Hooks:()=>pt,METHOD_STORE:()=>G,Metadata:()=>$,NotConfigurable:()=>a,NotEnumerable:()=>c,PARAM_STORE:()=>q,PROPERTY_STORE:()=>J,Readonly:()=>l,Store:()=>X,StoreFn:()=>Z,StoreMerge:()=>tt,StoreSet:()=>et,Type:()=>yt,UnsupportedDecoratorType:()=>ht,Writable:()=>f,ancestorOf:()=>gt,ancestorsOf:()=>bt,catchAsyncError:()=>vt,catchError:()=>dt,classOf:()=>h,cleanObject:()=>Dt,constructorOf:()=>Ct,createInstance:()=>k,decorateMethodsOf:()=>_t,decoratorArgs:()=>Et,decoratorTypeOf:()=>d,deepClone:()=>D,deepMerge:()=>B,descriptorOf:()=>t,getClass:()=>y,getClassOrSymbol:()=>Vt,getConstructor:()=>kt,getConstructorArgNames:()=>Wt,getEnumerableKeys:()=>zt,getHostInfoFromPort:()=>jt,getInheritedClass:()=>wt,getRandomId:()=>Tt,getValue:()=>Gt,hasJsonMethod:()=>Jt,importPackage:()=>At,inheritedDescriptorOf:()=>Mt,isArray:()=>xt,isArrayOrArrayClass:()=>Nt,isArrowFn:()=>Ft,isBoolean:()=>b,isBooleanOrBooleanClass:()=>O,isBuffer:()=>Bt,isClass:()=>Ut,isClassObject:()=>It,isCollection:()=>qt,isDate:()=>v,isEmpty:()=>Yt,isEnumerable:()=>$t,isFunction:()=>g,isInheritedFrom:()=>Qt,isMethodDescriptor:()=>e,isMomentObject:()=>Xt,isMongooseObject:()=>te,isNil:()=>w,isNumber:()=>m,isNumberOrNumberClass:()=>_,isObject:()=>rt,isObjectID:()=>Zt,isObservable:()=>nt,isPlainObject:()=>Lt,isPrimitive:()=>S,isPrimitiveClass:()=>R,isPrimitiveOrPrimitiveClass:()=>P,isPromise:()=>ot,isProtectedKey:()=>C,isRegExp:()=>A,isSerializable:()=>ee,isStream:()=>it,isString:()=>E,isStringOrStringClass:()=>M,isSymbol:()=>T,isSymbolOrSymbolClass:()=>j,isUint8Array:()=>Kt,mergeReducerBuilder:()=>N,methodsOf:()=>mt,nameOf:()=>L,nameOfClass:()=>K,nameOfSymbol:()=>I,objectKeys:()=>x,primitiveOf:()=>re,prototypeOf:()=>Ot,proxyDelegation:()=>ae,setValue:()=>ne,toMap:()=>ie,toStringConstructor:()=>Ht,uniq:()=>se,uniqBy:()=>ue,useDecorators:()=>Pt,useMethodDecorator:()=>St,useMethodDecorators:()=>Rt}),function(t){t.PARAM="parameter",t.PARAM_CTOR="parameter.constructor",t.PARAM_STC="parameter.static",t.PROP="property",t.PROP_STC="property.static",t.METHOD="method",t.METHOD_STC="method.static",t.CLASS="class"}(p||(p={}));const D=(t,e=new WeakMap)=>{if((t=>w(t)||S(t)||T(t)||g(t))(t))return t;const r=e.get(t);if(r)return r;if(ArrayBuffer.isView(t))return Buffer.isBuffer(t)?Buffer.from(t):new(h(t))(t.buffer.slice(0),t.byteOffset,t.byteLength);if(v(t))return new Date(t);if(A(t))return new RegExp(t);if(Array.isArray(t)){const r=[];return e.set(t,r),t.forEach(((t,n)=>r[n]=D(t,e))),r}if(t instanceof Map){const r=new Map;return e.set(t,r),t.forEach(((t,n)=>r.set(D(n,e),D(t,e)))),r}if(t instanceof Set){const r=new Set;return e.set(t,r),t.forEach((t=>r.add(D(t,e)))),r}const n=Object.create(Reflect.getPrototypeOf(t));return e.set(t,n),Reflect.ownKeys(t).forEach((r=>{const o=Object.getOwnPropertyDescriptor(t,r);o&&(g(o.value)?Object.defineProperty(n,r,o):Object.defineProperty(n,r,{...o,value:D(o.value,e)}))})),n};function k(t){return t&&h(t)!==Object?Object.create(t):{}}function C(t){return["__proto__","constructor","prototype"].includes(t)}function x(t){return Object.keys(t).filter((t=>!C(t)))}function N(t){return(e,r,n)=>{const o=e.findIndex((e=>t(e,r)));return-1===o?[...e,r]:(e[o]=B(e[o],r,n),e)}}const F=N(((t,e)=>t===e));function B(t,e,r={}){if(function(t,e){return null==t||""===t&&""!==e}(e,t))return t;if(function(t,e){return S(t)||T(t)||g(t)||void 0===e}(e,t))return e;if(Array.isArray(t)){const n=function({reducers:t,parentKey:e}){return t?e&&t[e]?t[e]:t.default||F:F}(r);return[].concat(e).reduce(((t,e)=>n(t,e,r)),[...t])}return[...x(t),...x(e)].reduce(((n,o)=>{const i=B(t&&t[o],e&&e[o],{...r,parentKey:o});return r.cleanUndefinedProps&&void 0===i?n:{...n,[o]:i}}),k(t))}function K(t){return"function"==typeof t?t.name:t.constructor.name}const I=t=>t.toString().replace("Symbol(","").replace(")","");function L(t){switch(typeof t){default:return""+t;case"symbol":return I(t);case"function":return K(t)}}r(605);const U="design:paramtypes",V="design:type",H="design:returntype",W=new Map;class ${static get(t,e,r){return Reflect.getMetadata(t,h(e),r)}static getOwn(t,e,r){return Reflect.getOwnMetadata(t,h(e),r)}static getType(t,e){return Reflect.getMetadata(V,t,e)}static getOwnType(t,e){return Reflect.getMetadata(V,t,e)}static getReturnType(t,e){return Reflect.getMetadata(H,t,e)}static getOwnReturnType(t,e){return Reflect.getOwnMetadata(H,t,e)}static has(t,e,r){try{return Reflect.hasMetadata(t,h(e),r)}catch(t){}return!1}static hasOwn(t,e,r){return Reflect.hasOwnMetadata(t,h(e),r)}static delete(t,e,r){return Reflect.deleteMetadata(t,h(e),r)}static setParamTypes(t,e,r){return this.set(U,r,t.prototype,e)}static{this.getTargetsFromPropertyKey=t=>W.has(t)&&W.get(t)||[]}static set(t,e,r,n){const o=W.has(t)&&W.get(t)||[],i=h(r);-1===o.indexOf(i)&&(o.push(i),W.set(t,o)),Reflect.defineMetadata(t,e,h(r),n)}static getParamTypes(t,e){return Reflect.getMetadata(U,t,e)||[]}static getOwnParamTypes(t,e){return Reflect.getOwnMetadata(U,t,e)||[]}}const z="tsed:class:store",G="tsed:method:store",J="tsed:property:store",q="tsed:param:store",Y=new Map;function Q(t,...e){if(T(e[0]))return Y.has(e[0])||Y.set(e[0],new X),Y.get(e[0]);{const r=$;return r.hasOwn(t,...e)||r.set(t,new X,...e),r.getOwn(t,...e)}}class X{constructor(){this._entries=new Map}static from(...t){return function(t){const[e,r,n]=t;switch(d(t)){case p.PARAM_CTOR:case p.PARAM_STC:case p.PARAM:const t=Q(q,e,r);return t.has(""+n)||t.set(""+n,new X),t.get(""+n);case p.PROP:case p.PROP_STC:return Q(J,e,r);case p.METHOD:case p.METHOD_STC:return Q(G,e,r);case p.CLASS:return Q(z,e)}}(t)}static fromMethod(e,r){return X.from(e,r,t(e,r))}static mergeStoreFrom(t,e,...r){const n=X.from(t,...r);return X.from(e,...r)._entries.forEach(((t,e)=>{n.merge(e,t)})),n}static mergeStoreMethodFrom(e,r,n){return this.mergeStoreFrom(e,r,n,t(e,n))}get(t,e){return this._entries.get(L(t))||e}has(t){return this._entries.has(L(t))}set(t,e){return this._entries.set(L(t),e),this}delete(t){return this._entries.delete(L(t))}merge(t,e,r=!1){let n=this.get(t);return n&&(e=D(e),n=D(n),e=r?B(e,n):B(n,e)),this.set(t,e),this}toJson(){return[...this._entries.entries()].reduce(((t,[e,r])=>({...t,[e]:r})),{})}}function Z(t){return(...e)=>{const r=X.from(...e),n=t(r,e);return"function"==typeof n&&n(...e),e[2]}}function tt(t,e){return Z((r=>{r.merge(t,e)}))}function et(t,e){return Z((r=>{r.set(t,e)}))}function rt(t){return"object"==typeof t}function nt(t){return!!t&&"function"==typeof t.lift&&"function"==typeof t.subscribe}function ot(t){return t===Promise||t instanceof Promise||!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function it(t){return null!==t&&"object"==typeof t&&"function"==typeof t.pipe}function st(t){return rt(t)&&"data"in t&&"headers"in t&&"status"in t&&"statusText"in t}var ut,at,ct;!function(t){t.PENDING="PENDING",t.CANCELED="CANCELED",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(ut||(ut={})),function(t){t.STREAM="STREAM",t.BUFFER="BUFFER",t.DATA="DATA"}(at||(at={}));class ft{#t;#e;#r;#n;constructor({hasNextFunction:t=!1}={}){this.status=ut.PENDING,this.#r=!1,this.#r=t,this.#n=new Promise(((t,e)=>{this.#t=t,this.#e=e}))}isDone(){return this.status!==ut.PENDING}get next(){return this.#r=!0,t=>{if(!this.isDone())return t?this.reject(t):this.resolve({type:at.DATA})}}call(t){if(this.isDone())return Promise.resolve(this);try{this.handle(t())}catch(t){this.reject(t)}return this.#n}reject(t){this.isDone()||(this.done(ut.REJECTED),this.#e(t))}resolve(t={}){this.isDone()||(this.done(ut.RESOLVED),this.#t({...t,state:ut.RESOLVED}))}destroy(){}cancel(){if(!this.isDone())return this.done(ut.CANCELED),this.#t({state:ut.CANCELED})}done(t){this.destroy(),this.status=t}handle(t,e={}){if(!this.isDone()){if(t){if(this.isCanceledResponse(t))return this.cancel();if(nt(t)&&(t=t.toPromise()),st(t))return this.handle(t.data,{...e,status:t.status,headers:t.headers});if(it(t))return this.resolve({...e,type:at.STREAM,data:t});if(it(t)||Buffer.isBuffer(t))return this.resolve({...e,type:at.BUFFER,data:t});if(ot(t))return t.then((t=>this.handle(t,e))).catch((t=>t.response&&st(t.response)?this.handle(t.response):this.reject(t)))}return this.#r?void 0:this.resolve({...e,data:t,type:at.DATA})}}isCanceledResponse(t){return t===ut.CANCELED}}!function(t){t.PROD="production",t.DEV="development",t.TEST="test"}(ct||(ct={}));const lt=ct;class pt{constructor(){this.#o={}}#o;has(t){return!!this.#o[t]}on(t,e){return this.#o[t]||(this.#o[t]=[]),this.#o[t].push(e),this}off(t,e){return this.#o[t]&&(this.#o[t]=this.#o[t].filter((t=>t===e))),this}emit(t,e=[],r=null){const n=this.#o[t];if(n?.length)for(const t of n)t.call(r,...e)}alter(t,e,r=[],n=null){const o=this.#o[t];if(o?.length)for(const t of o)e=t.call(n,e,...r);return e}async asyncEmit(t,e=[],r=null){const n=this.#o[t];if(n?.length){const t=n.map((t=>t.call(r,...e)));await Promise.all(t)}}async asyncAlter(t,e,r=[],n=null){const o=this.#o[t];if(o?.length)for(const t of o)e=await t.call(n,e,...r);return e}destroy(){this.#o={}}}const yt=Function;r.g.Type=yt;class ht extends Error{constructor(t,e){super(ht.buildMessage(t,e))}static buildMessage(t,e){const[r,n,o]=e,i=d(e),s=i.split("/")[0],u="parameter"===s?".["+o+"]":"",a=n?"."+n:"parameter"===s?".constructor":"",c=L(h(r))+a+u;return`${t.name} cannot be used as ${i} decorator on ${c}`}}function dt(t){try{t()}catch(t){return t}}async function vt(t){try{await t()}catch(t){return t}}function gt(t){return t&&Object.getPrototypeOf(t)}function wt(t){return gt(t)}function bt(t){const e=[];let r=h(t);for(;r&&""!==L(r);)e.unshift(r),r=wt(r);return e}function Ot(t){return h(t)===t?t.prototype:t}function mt(t){const e=new Map;return bt(t=h(t)).forEach((t=>{Reflect.ownKeys(Ot(t)).forEach((r=>{"constructor"!==r&&e.set(r,{target:t,propertyKey:r})}))})),Array.from(e.values())}function _t(e,r){mt(e).forEach((({target:n,propertyKey:o})=>{const i=Ot(e);n!==h(e)&&(Object.defineProperty(i,o,{writable:!0,configurable:!0,value(...t){return Ot(n)[o].apply(this,t)}}),X.mergeStoreMethodFrom(e,n,o));const s=r(i,o,t(e,o));s&&Object.defineProperty(i,o,s)}))}function Et(e,r){return[e,r,t(e,r)]}function Mt(t,e){for(const r of bt(t)){const t=Object.getOwnPropertyDescriptor(r&&r.prototype||r,e);if(t)return t}}function Pt(...t){return(...e)=>{t.filter((t=>!!t)).forEach((t=>{t(...e)}))}}function St(e){return(r,n)=>e(r,n,t(r,n))}function Rt(...e){return(r,n)=>{e.filter(Boolean).forEach((e=>e(r,n,t(r,n))))}}function Tt(){return`e${Math.random().toString(36).substring(7)}`}function jt(t,e){let r="0.0.0.0",n=e;return"string"==typeof e&&e.indexOf(":")>-1&&([r,n]=e.split(":"),n=+n),{protocol:t,address:r,port:n,toString(){return[`${this.protocol}://${this.address}`,"number"==typeof this.port&&this.port].filter(Boolean).join(":")}}}async function At(t,e=(()=>r(340)(t)),n=!1){try{return await e()}catch(t){if(!n)throw t;return{}}}function Dt(t,e=[]){return Object.entries(t).reduce(((t,[r,n])=>C(r)||e.includes(r)||void 0===n?t:{...t,[r]:n}),{})}function kt(t){return"function"==typeof t?t:t.constructor}function Ct(t){return kt(t)}function xt(t){return Array.isArray(t)}function Nt(t){return t===Array||xt(t)}function Ft(t){return t&&g(t)&&!t.prototype}function Bt(t){return!(!t||!("isBuffer"in t)||"function"!=typeof t.isBuffer)||Kt(t)}function Kt(t){return!(!t||!(t===Uint8Array||t instanceof Uint8Array))}function It(t){return t===Object}function Lt(t){return It(h(t))&&t!==Object}function Ut(t){return!!t&&!Ft(t)&&!(T(t)||P(t)||It(t)||v(t)||ot(t)||Nt(t)||Bt(t))}function Vt(t){return Ut(t)?h(t):t}function Ht(t){return`${(Ct(t).toString().split("\n").find((t=>t.indexOf("constructor(")>-1))||"constructor()").replace("{","").trim()}`}function Wt(t){return Ht(t).split("constructor(")[1].split(")")[0].split(", ").filter(Boolean).map((t=>t.trim()))}function $t(t,e){const r=h(t);if(r){const t=Mt(r,e);if(t)return t.enumerable}return Object.prototype.propertyIsEnumerable.call(t,e)}function zt(t){const e=[];for(const r in t)!C(r)&&$t(t,r)&&e.push(r);return e}function Gt(...t){const e=(t=>{const[e,r,n,o="."]=t;return rt(r)||E(e)?{expression:e,scope:r,defaultValue:n,separator:o}:{expression:r,scope:e,defaultValue:n,separator:o}})(t);let r=e.scope;const{expression:n,defaultValue:o,separator:i}=e;if(!n)return r;if(!r)return o;const s=n.split(i),u=t=>{if(r){if(void 0!==r[t]||rt(r)&&t in r)return r[t];if(g(r.get))return r.get(t)}};for(;(r=u(s.shift()))&&s.length;);return void 0===r?o:r}function Jt(t){return t&&"function"==typeof t.toJSON}function qt(t){return Nt(t)||t===Map||t instanceof Map||t===Set||t instanceof Set||t===WeakMap||t instanceof WeakMap||t===WeakSet||t instanceof WeakSet}function Yt(t){return""===t||w(t)}function Qt(t,e,r=5){if(!t||!e)return!1;for(t=h(t),e=h(e);""!==L(t);){if(!r)return!1;if(t===e)return!0;t=gt(t),r--}return!1}function Xt(t){return!(!t||!t?._isAMomentObject)}function Zt(t){return t&&t._bsontype}function te(t){return!!(Jt(t)&&t.$isMongooseModelPrototype||Zt(t))}function ee(t){return!(Buffer.isBuffer(t)||it(t)||b(t)||m(t)||E(t)||w(t))}function re(t){return M(t)?"string":_(t)?"number":O(t)?"boolean":"any"}function ne(t,e,r,n="."){const o=e.split(n);for(;i=o.shift(),s=!o.length,!C(i)&&(s?("function"==typeof t.set?t.set(i,r):t[i]=r,0):("function"==typeof t.set?(t.has(i)||t.set(i,{}),t=t.get(i)):t=t[i]=t[i]||{},1)););var i,s}function oe(t){return t?E(t)?e=>e[t]:t:(t,e)=>String(e)}function ie(t,e){if(xt(t)){const r=oe(e||"id");return t.reduce(((t,e,n)=>([].concat(r(e,n)).forEach((r=>{const n=t.get(r);e=n?.merge?.(e)||e,t.set(r,e)})),t)),new Map)}const r=oe(e);return Object.entries(t).reduce(((t,[e,n])=>t.set(r(n,e),n)),new Map)}function se(t){return Array.from(new Set(t).values())}function ue(t,e="id"){const r=new Map;return t.forEach((t=>{r.set(t[e],t)})),Array.from(r.values())}function ae(t,e={}){const{handlers:r={},remove:n,ownKeys:o}=e,i=e.getter||((t,e)=>t.get(e)),s=e.setter||((t,e,r)=>!!t.set(e,r)),u=(t,e)=>Reflect.has(t,e)||"symbol"==typeof e;return new Proxy(t,{getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t,e),has:(t,e)=>u(t,e)?Reflect.has(t,e):void 0!==i(t,e),get:(t,e,r)=>u(t,e)?Reflect.get(t,e,r):i(t,e),set:(t,e,r,n)=>u(t,e)?Reflect.set(t,e,r,n):!!s(t,e,r,n),deleteProperty:(t,e)=>u(t,e)||!n?Reflect.deleteProperty(t,e):n(t,e),defineProperty:(t,e,r)=>Reflect.defineProperty(t,e,r),ownKeys:t=>se(Reflect.ownKeys(t).concat(o&&o(t)||[])),...r})}})(),n})()));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@tsed/core"]=e():t["@tsed/core"]=e()}(self,(()=>(()=>{var t={340:t=>{function e(t){return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}e.keys=()=>[],e.resolve=e,e.id=340,t.exports=e},605:(t,e,r)=>{var n;!function(t){!function(e){var n="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),o=i(t);function i(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==n.Reflect&&(o=i(n.Reflect,o)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,u={__proto__:[]}instanceof Array,a=!s&&!u,c={create:s?function(){return V(Object.create(null))}:u?function(){return V({__proto__:null})}:function(){return V({})},has:a?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:a?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,x(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,o)},e.prototype.entries=function(){return new r(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!x(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(x(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function o(t,e){return e}function s(t,e){return[t,e]}}(),p="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new l}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+s()}while(c.has(t,e));return t[e]=!0,e}function o(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function s(){var t,e=(t=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):i(new Uint8Array(t),t):i(new Array(t),t));e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var r="",n=0;n<16;++n){var o=e[n];4!==n&&6!==n&&8!==n||(r+="-"),o<16&&(r+="0"),r+=o.toString(16).toLowerCase()}return r}}(),h=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!P(h)&&R(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[h]),P(t)&&(t=function(){var t,r,n,o;P(h)||void 0===e.Reflect||h in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,o=t.getOwnMetadataKeys,i=t.deleteMetadata,s=new y;return{isProviderFor:function(t,e){var r=s.get(t);return P(r)?!!o(t,e).length&&(P(r)&&(r=new p,s.set(t,r)),r.add(e),!0):r.has(e)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new y,s={registerProvider:u,getProvider:c,setProvider:d};return s;function u(e){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case P(r):r=e;break;case r===e:break;case P(n):n=e;break;case n===e:break;default:void 0===o&&(o=new p),o.add(e)}}function a(e,i){if(!P(r)){if(r.isProviderFor(e,i))return r;if(!P(n)){if(n.isProviderFor(e,i))return r;if(!P(o))for(var s=F(o);;){var u=K(s);if(!u)return;var a=B(u);if(a.isProviderFor(e,i))return I(s),a}}}if(!P(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,n=i.get(t);return P(n)||(r=n.get(e)),P(r)?(P(r=a(t,e))||(P(n)&&(n=new l,i.set(t,n)),n.set(e,r)),r):r}function f(t){if(P(t))throw new TypeError;return r===t||n===t||!P(o)&&o.has(t)}function d(t,e,r){if(!f(r))throw new Error("Metadata provider not registered.");var n=c(t,e);if(n!==r){if(!P(n))return!1;var o=i.get(t);P(o)&&(o=new l,i.set(t,o)),o.set(e,r)}return!0}}()),!P(h)&&R(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!P(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,o){n(r,o,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var o=n(e,r,!1);return!P(o)&&j(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!P(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(P(o))return r;for(var i=F(o.keys()),s=0;;){var u=K(i);if(!u)return r.length=s,r;var a=B(u);try{r[s]=a}catch(t){try{I(i)}finally{throw t}}s++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(P(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var s=e.get(r);P(s)||(s.delete(o),0===s.size&&e.delete(s))}return!0}};return d.registerProvider(r),r;function n(n,o,i){var s=e.get(n),u=!1;if(P(s)){if(!i)return;s=new l,e.set(n,s),u=!0}var a=s.get(o);if(P(a)){if(!i)return;if(a=new l,s.set(o,a),!t.setProvider(n,o,r))throw s.delete(o),u&&e.delete(n),new Error("Wrong provider for target.")}return a}}(d);function g(t,e,r){if(w(t,e,r))return!0;var n=L(e);return!S(n)&&g(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!P(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return O(t,e,r);var n=L(e);return S(n)?void 0:b(t,n,r)}function O(t,e,r){var n=U(e,r,!1);if(!P(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function m(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=E(t,e),n=L(t);if(null===n)return r;var o=_(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new p,s=[],u=0,a=r;u<a.length;u++){var c=a[u];i.has(c)||(i.add(c),s.push(c))}for(var f=0,l=o;f<l.length;f++)c=l[f],i.has(c)||(i.add(c),s.push(c));return s}function E(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function M(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function P(t){return void 0===t}function S(t){return null===t}function R(t){return"object"==typeof t?null!==t:"function"==typeof t}function T(t,e){switch(M(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",n=N(t,o);if(void 0!==n){var i=n.call(t,r);if(R(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(k(r)&&!R(o=r.call(t)))return o;if(k(n=t.valueOf)&&!R(o=n.call(t)))return o}else{var n;if(k(n=t.valueOf)&&!R(o=n.call(t)))return o;var o,i=t.toString;if(k(i)&&!R(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function j(t){return!!t}function A(t){var e=T(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function D(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function k(t){return"function"==typeof t}function C(t){return"function"==typeof t}function x(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!k(r))throw new TypeError;return r}}function F(t){var e=N(t,i);if(!k(e))throw new TypeError;var r=e.call(t);if(!R(r))throw new TypeError;return r}function B(t){return t.value}function K(t){var e=t.next();return!e.done&&e}function I(t){var e=t.return;e&&e.call(t)}function L(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function U(t,e,r){var n=d.getProvider(t,e);if(!P(n))return n;if(r){if(d.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function V(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,n){if(P(r)){if(!D(t))throw new TypeError;if(!C(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!P(n)&&!S(n)){if(!C(n))throw new TypeError;e=n}}return e}(t,e)}if(!D(t))throw new TypeError;if(!R(e))throw new TypeError;if(!R(n)&&!P(n)&&!S(n))throw new TypeError;return S(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!P(i)&&!S(i)){if(!R(i))throw new TypeError;n=i}}return n}(t,e,r=A(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!R(r))throw new TypeError;if(!P(n)&&!function(t){switch(M(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;m(t,e,r,n)}})),t("defineMetadata",(function(t,e,r,n){if(!R(r))throw new TypeError;return P(n)||(n=A(n)),m(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!R(e))throw new TypeError;return P(r)||(r=A(r)),g(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!R(e))throw new TypeError;return P(r)||(r=A(r)),w(t,e,r)})),t("getMetadata",(function(t,e,r){if(!R(e))throw new TypeError;return P(r)||(r=A(r)),b(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!R(e))throw new TypeError;return P(r)||(r=A(r)),O(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!R(t))throw new TypeError;return P(e)||(e=A(e)),_(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!R(t))throw new TypeError;return P(e)||(e=A(e)),E(t,e)})),t("deleteMetadata",(function(t,e,r){if(!R(e))throw new TypeError;if(P(r)||(r=A(r)),!R(e))throw new TypeError;P(r)||(r=A(r));var n=U(e,r,!1);return!P(n)&&n.OrdinaryDeleteMetadata(t,e,r)}))}(o,n),void 0===n.Reflect&&(n.Reflect=t)}()}(n||(n={}))}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";function t(t,e){return Object.getOwnPropertyDescriptor(t&&t.prototype||t,e)}function e(e,r){return t(e,r)?.value}function o(e=!0){return(r,n)=>{const o=t(r,n)||{writable:!0,enumerable:!0};return o.configurable=e,Object.defineProperty(r&&r.prototype||r,n,o),o}}function i(t,e){if("undefined"!=typeof process&&!0===process.noDeprecation)return t;if("undefined"==typeof process)return function(...r){return i(t,e).apply(this,r)};let r=!1;return function(...n){if(!r){if(process.throwDeprecation)throw new Error(e);process.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,n)}}function s(t){return(e,r,n)=>{const o=n.value;return n.value=i(o,t),n}}function u(e=!0){return(r,n)=>{const o=t(r,n)||{writable:!0,configurable:!0};return o.enumerable=e,Object.defineProperty(r&&r.prototype||r,n,o),o}}function a(){return o(!1)}function c(){return u(!1)}function f(e=!0){return(r,n)=>{const o=t(r,n)||{configurable:!0,enumerable:!0};return o.writable=e,Object.defineProperty(r&&r.prototype||r,n,o),o}}function l(){return f(!1)}var p;function y(t){return t.prototype?t:t.constructor}function h(t){return y(t)}function d(t){const[e,r,n]=t,o=t=>e!==h(e)?t:`${t}.static`;return"number"==typeof n?r?o("parameter"):"parameter.constructor":n&&n.value?o("method"):r&&void 0===n||n?o("property"):p.CLASS}function v(t){return t===Date||t instanceof Date&&!isNaN(+t)}function g(t){return"function"==typeof t}function w(t){return null==t}function b(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function O(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function m(t){return"number"==typeof t}function _(t){return"number"==typeof t||t instanceof Number||t===Number}function E(t){return"string"==typeof t}function M(t){return"string"==typeof t||t instanceof String||t===String}function P(t){return M(t)||_(t)||O(t)}function S(t){return E(t)||m(t)||b(t)}function R(t){return[String,Number,Boolean].includes(t)}function T(t){return"symbol"==typeof t}function j(t){return"symbol"==typeof t||t instanceof Symbol||t===Symbol}function A(t){return t instanceof RegExp}r.r(n),r.d(n,{AnyToPromise:()=>ft,AnyToPromiseResponseTypes:()=>at,AnyToPromiseStatus:()=>ut,CLASS_STORE:()=>z,Configurable:()=>o,DecoratorTypes:()=>p,Deprecated:()=>s,Enumerable:()=>u,Env:()=>ct,EnvTypes:()=>lt,Hooks:()=>pt,METHOD_STORE:()=>G,Metadata:()=>$,NotConfigurable:()=>a,NotEnumerable:()=>c,PARAM_STORE:()=>q,PROPERTY_STORE:()=>J,Readonly:()=>l,Store:()=>X,StoreFn:()=>Z,StoreMerge:()=>tt,StoreSet:()=>et,Type:()=>yt,UnsupportedDecoratorType:()=>ht,Writable:()=>f,ancestorOf:()=>gt,ancestorsOf:()=>bt,catchAsyncError:()=>vt,catchError:()=>dt,classOf:()=>h,cleanObject:()=>Dt,constructorOf:()=>Ct,createInstance:()=>k,decorateMethodsOf:()=>_t,decoratorArgs:()=>Et,decoratorTypeOf:()=>d,deepClone:()=>D,deepMerge:()=>B,descriptorOf:()=>t,getClass:()=>y,getClassOrSymbol:()=>Vt,getConstructor:()=>kt,getConstructorArgNames:()=>Wt,getEnumerableKeys:()=>zt,getHostInfoFromPort:()=>jt,getInheritedClass:()=>wt,getRandomId:()=>Tt,getValue:()=>Gt,hasJsonMethod:()=>Jt,importPackage:()=>At,inheritedDescriptorOf:()=>Mt,isArray:()=>xt,isArrayOrArrayClass:()=>Nt,isArrowFn:()=>Ft,isBoolean:()=>b,isBooleanOrBooleanClass:()=>O,isBuffer:()=>Bt,isClass:()=>Ut,isClassObject:()=>It,isCollection:()=>qt,isDate:()=>v,isEmpty:()=>Yt,isEnumerable:()=>$t,isFunction:()=>g,isInheritedFrom:()=>Qt,isMethodDescriptor:()=>e,isMomentObject:()=>Xt,isMongooseObject:()=>te,isNil:()=>w,isNumber:()=>m,isNumberOrNumberClass:()=>_,isObject:()=>rt,isObjectID:()=>Zt,isObservable:()=>nt,isPlainObject:()=>Lt,isPrimitive:()=>S,isPrimitiveClass:()=>R,isPrimitiveOrPrimitiveClass:()=>P,isPromise:()=>ot,isProtectedKey:()=>C,isRegExp:()=>A,isSerializable:()=>ee,isStream:()=>it,isString:()=>E,isStringOrStringClass:()=>M,isSymbol:()=>T,isSymbolOrSymbolClass:()=>j,isUint8Array:()=>Kt,mergeReducerBuilder:()=>N,methodsOf:()=>mt,nameOf:()=>L,nameOfClass:()=>K,nameOfSymbol:()=>I,objectKeys:()=>x,primitiveOf:()=>re,prototypeOf:()=>Ot,proxyDelegation:()=>ae,setValue:()=>ne,toMap:()=>ie,toStringConstructor:()=>Ht,uniq:()=>se,uniqBy:()=>ue,useDecorators:()=>Pt,useMethodDecorator:()=>St,useMethodDecorators:()=>Rt}),function(t){t.PARAM="parameter",t.PARAM_CTOR="parameter.constructor",t.PARAM_STC="parameter.static",t.PROP="property",t.PROP_STC="property.static",t.METHOD="method",t.METHOD_STC="method.static",t.CLASS="class"}(p||(p={}));const D=(t,e=new WeakMap)=>{if((t=>w(t)||S(t)||T(t)||g(t))(t))return t;const r=e.get(t);if(r)return r;if(ArrayBuffer.isView(t))return Buffer.isBuffer(t)?Buffer.from(t):new(h(t))(t.buffer.slice(0),t.byteOffset,t.byteLength);if(v(t))return new Date(t);if(A(t))return new RegExp(t);if(Array.isArray(t)){const r=[];return e.set(t,r),t.forEach(((t,n)=>r[n]=D(t,e))),r}if(t instanceof Map){const r=new Map;return e.set(t,r),t.forEach(((t,n)=>r.set(D(n,e),D(t,e)))),r}if(t instanceof Set){const r=new Set;return e.set(t,r),t.forEach((t=>r.add(D(t,e)))),r}const n=Object.create(Reflect.getPrototypeOf(t));return e.set(t,n),Reflect.ownKeys(t).forEach((r=>{const o=Object.getOwnPropertyDescriptor(t,r);o&&(g(o.value)?Object.defineProperty(n,r,o):Object.defineProperty(n,r,{...o,value:D(o.value,e)}))})),n};function k(t){return t&&h(t)!==Object?Object.create(t):{}}function C(t){return["__proto__","constructor","prototype"].includes(t)}function x(t){return Object.keys(t).filter((t=>!C(t)))}function N(t){return(e,r,n)=>{const o=e.findIndex((e=>t(e,r)));return-1===o?[...e,r]:(e[o]=B(e[o],r,n),e)}}const F=N(((t,e)=>t===e));function B(t,e,r={}){if(function(t,e){return null==t||""===t&&""!==e}(e,t))return t;if(function(t,e){return S(t)||T(t)||g(t)||void 0===e}(e,t))return e;if(Array.isArray(t)){const n=function({reducers:t,parentKey:e}){return t?e&&t[e]?t[e]:t.default||F:F}(r);return[].concat(e).reduce(((t,e)=>n(t,e,r)),[...t])}const n=k(t);return[...x(t),...x(e)].reduce(((n,o)=>{const i=B(t&&t[o],e&&e[o],{...r,parentKey:o});return r.cleanUndefinedProps&&void 0===i||(n[o]=i),n}),n)}function K(t){return"function"==typeof t?t.name:t.constructor.name}const I=t=>t.toString().replace("Symbol(","").replace(")","");function L(t){switch(typeof t){default:return""+t;case"symbol":return I(t);case"function":return K(t)}}r(605);const U="design:paramtypes",V="design:type",H="design:returntype",W=new Map;class ${static get(t,e,r){return Reflect.getMetadata(t,h(e),r)}static getOwn(t,e,r){return Reflect.getOwnMetadata(t,h(e),r)}static getType(t,e){return Reflect.getMetadata(V,t,e)}static getOwnType(t,e){return Reflect.getMetadata(V,t,e)}static getReturnType(t,e){return Reflect.getMetadata(H,t,e)}static getOwnReturnType(t,e){return Reflect.getOwnMetadata(H,t,e)}static has(t,e,r){try{return Reflect.hasMetadata(t,h(e),r)}catch(t){}return!1}static hasOwn(t,e,r){return Reflect.hasOwnMetadata(t,h(e),r)}static delete(t,e,r){return Reflect.deleteMetadata(t,h(e),r)}static setParamTypes(t,e,r){return this.set(U,r,t.prototype,e)}static{this.getTargetsFromPropertyKey=t=>W.has(t)&&W.get(t)||[]}static set(t,e,r,n){const o=W.has(t)&&W.get(t)||[],i=h(r);-1===o.indexOf(i)&&(o.push(i),W.set(t,o)),Reflect.defineMetadata(t,e,h(r),n)}static getParamTypes(t,e){return Reflect.getMetadata(U,t,e)||[]}static getOwnParamTypes(t,e){return Reflect.getOwnMetadata(U,t,e)||[]}}const z="tsed:class:store",G="tsed:method:store",J="tsed:property:store",q="tsed:param:store",Y=new Map;function Q(t,...e){if(T(e[0]))return Y.has(e[0])||Y.set(e[0],new X),Y.get(e[0]);{const r=$;return r.hasOwn(t,...e)||r.set(t,new X,...e),r.getOwn(t,...e)}}class X{constructor(){this._entries=new Map}static from(...t){return function(t){const[e,r,n]=t;switch(d(t)){case p.PARAM_CTOR:case p.PARAM_STC:case p.PARAM:const t=Q(q,e,r);return t.has(""+n)||t.set(""+n,new X),t.get(""+n);case p.PROP:case p.PROP_STC:return Q(J,e,r);case p.METHOD:case p.METHOD_STC:return Q(G,e,r);case p.CLASS:return Q(z,e)}}(t)}static fromMethod(e,r){return X.from(e,r,t(e,r))}static mergeStoreFrom(t,e,...r){const n=X.from(t,...r);return X.from(e,...r)._entries.forEach(((t,e)=>{n.merge(e,t)})),n}static mergeStoreMethodFrom(e,r,n){return this.mergeStoreFrom(e,r,n,t(e,n))}get(t,e){return this._entries.get(L(t))||e}has(t){return this._entries.has(L(t))}set(t,e){return this._entries.set(L(t),e),this}delete(t){return this._entries.delete(L(t))}merge(t,e,r=!1){let n=this.get(t);return n&&(e=D(e),n=D(n),e=r?B(e,n):B(n,e)),this.set(t,e),this}toJson(){return[...this._entries.entries()].reduce(((t,[e,r])=>({...t,[e]:r})),{})}}function Z(t){return(...e)=>{const r=X.from(...e),n=t(r,e);return"function"==typeof n&&n(...e),e[2]}}function tt(t,e){return Z((r=>{r.merge(t,e)}))}function et(t,e){return Z((r=>{r.set(t,e)}))}function rt(t){return"object"==typeof t}function nt(t){return!!t&&"function"==typeof t.lift&&"function"==typeof t.subscribe}function ot(t){return t===Promise||t instanceof Promise||!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function it(t){return null!==t&&"object"==typeof t&&"function"==typeof t.pipe}function st(t){return rt(t)&&"data"in t&&"headers"in t&&"status"in t&&"statusText"in t}var ut,at,ct;!function(t){t.PENDING="PENDING",t.CANCELED="CANCELED",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(ut||(ut={})),function(t){t.STREAM="STREAM",t.BUFFER="BUFFER",t.DATA="DATA"}(at||(at={}));class ft{#t;#e;#r;#n;constructor({hasNextFunction:t=!1}={}){this.status=ut.PENDING,this.#r=!1,this.#r=t,this.#n=new Promise(((t,e)=>{this.#t=t,this.#e=e}))}isDone(){return this.status!==ut.PENDING}get next(){return this.#r=!0,t=>{if(!this.isDone())return t?this.reject(t):this.resolve({type:at.DATA})}}call(t){if(this.isDone())return Promise.resolve(this);try{this.handle(t())}catch(t){this.reject(t)}return this.#n}reject(t){this.isDone()||(this.done(ut.REJECTED),this.#e(t))}resolve(t={}){this.isDone()||(this.done(ut.RESOLVED),this.#t({...t,state:ut.RESOLVED}))}destroy(){}cancel(){if(!this.isDone())return this.done(ut.CANCELED),this.#t({state:ut.CANCELED})}done(t){this.destroy(),this.status=t}handle(t,e={}){if(!this.isDone()){if(t){if(this.isCanceledResponse(t))return this.cancel();if(nt(t)&&(t=t.toPromise()),st(t))return this.handle(t.data,{...e,status:t.status,headers:t.headers});if(it(t))return this.resolve({...e,type:at.STREAM,data:t});if(it(t)||Buffer.isBuffer(t))return this.resolve({...e,type:at.BUFFER,data:t});if(ot(t))return t.then((t=>this.handle(t,e))).catch((t=>t.response&&st(t.response)?this.handle(t.response):this.reject(t)))}return this.#r?void 0:this.resolve({...e,data:t,type:at.DATA})}}isCanceledResponse(t){return t===ut.CANCELED}}!function(t){t.PROD="production",t.DEV="development",t.TEST="test"}(ct||(ct={}));const lt=ct;class pt{constructor(){this.#o={}}#o;has(t){return!!this.#o[t]}on(t,e){return this.#o[t]||(this.#o[t]=[]),this.#o[t].push(e),this}off(t,e){return this.#o[t]&&(this.#o[t]=this.#o[t].filter((t=>t===e))),this}emit(t,e=[],r=null){const n=this.#o[t];if(n?.length)for(const t of n)t.call(r,...e)}alter(t,e,r=[],n=null){const o=this.#o[t];if(o?.length)for(const t of o)e=t.call(n,e,...r);return e}async asyncEmit(t,e=[],r=null){const n=this.#o[t];if(n?.length){const t=n.map((t=>t.call(r,...e)));await Promise.all(t)}}async asyncAlter(t,e,r=[],n=null){const o=this.#o[t];if(o?.length)for(const t of o)e=await t.call(n,e,...r);return e}destroy(){this.#o={}}}const yt=Function;r.g.Type=yt;class ht extends Error{constructor(t,e){super(ht.buildMessage(t,e))}static buildMessage(t,e){const[r,n,o]=e,i=d(e),s=i.split("/")[0],u="parameter"===s?".["+o+"]":"",a=n?"."+n:"parameter"===s?".constructor":"",c=L(h(r))+a+u;return`${t.name} cannot be used as ${i} decorator on ${c}`}}function dt(t){try{t()}catch(t){return t}}async function vt(t){try{await t()}catch(t){return t}}function gt(t){return t&&Object.getPrototypeOf(t)}function wt(t){return gt(t)}function bt(t){const e=[];let r=h(t);for(;r&&""!==L(r);)e.unshift(r),r=wt(r);return e}function Ot(t){return h(t)===t?t.prototype:t}function mt(t){const e=new Map;return bt(t=h(t)).forEach((t=>{Reflect.ownKeys(Ot(t)).forEach((r=>{"constructor"!==r&&e.set(r,{target:t,propertyKey:r})}))})),Array.from(e.values())}function _t(e,r){mt(e).forEach((({target:n,propertyKey:o})=>{const i=Ot(e);n!==h(e)&&(Object.defineProperty(i,o,{writable:!0,configurable:!0,value(...t){return Ot(n)[o].apply(this,t)}}),X.mergeStoreMethodFrom(e,n,o));const s=r(i,o,t(e,o));s&&Object.defineProperty(i,o,s)}))}function Et(e,r){return[e,r,t(e,r)]}function Mt(t,e){for(const r of bt(t)){const t=Object.getOwnPropertyDescriptor(r&&r.prototype||r,e);if(t)return t}}function Pt(...t){return(...e)=>{t.filter((t=>!!t)).forEach((t=>{t(...e)}))}}function St(e){return(r,n)=>e(r,n,t(r,n))}function Rt(...e){return(r,n)=>{e.filter(Boolean).forEach((e=>e(r,n,t(r,n))))}}function Tt(){return`e${Math.random().toString(36).substring(7)}`}function jt(t,e){let r="0.0.0.0",n=e;return"string"==typeof e&&e.indexOf(":")>-1&&([r,n]=e.split(":"),n=+n),{protocol:t,address:r,port:n,toString(){return[`${this.protocol}://${this.address}`,"number"==typeof this.port&&this.port].filter(Boolean).join(":")}}}async function At(t,e=(()=>r(340)(t)),n=!1){try{return await e()}catch(t){if(!n)throw t;return{}}}function Dt(t,e=[]){return Object.entries(t).reduce(((t,[r,n])=>(C(r)||e.includes(r)||void 0===n||(t[r]=n),t)),{})}function kt(t){return"function"==typeof t?t:t.constructor}function Ct(t){return kt(t)}function xt(t){return Array.isArray(t)}function Nt(t){return t===Array||xt(t)}function Ft(t){return t&&g(t)&&!t.prototype}function Bt(t){return!(!t||!("isBuffer"in t)||"function"!=typeof t.isBuffer)||Kt(t)}function Kt(t){return!(!t||!(t===Uint8Array||t instanceof Uint8Array))}function It(t){return t===Object}function Lt(t){return It(h(t))&&t!==Object}function Ut(t){return!!t&&!Ft(t)&&!(T(t)||P(t)||It(t)||v(t)||ot(t)||Nt(t)||Bt(t))}function Vt(t){return Ut(t)?h(t):t}function Ht(t){return`${(Ct(t).toString().split("\n").find((t=>t.indexOf("constructor(")>-1))||"constructor()").replace("{","").trim()}`}function Wt(t){return Ht(t).split("constructor(")[1].split(")")[0].split(", ").filter(Boolean).map((t=>t.trim()))}function $t(t,e){const r=h(t);if(r){const t=Mt(r,e);if(t)return t.enumerable}return Object.prototype.propertyIsEnumerable.call(t,e)}function zt(t){const e=[];for(const r in t)!C(r)&&$t(t,r)&&e.push(r);return e}function Gt(...t){const e=(t=>{const[e,r,n,o="."]=t;return rt(r)||E(e)?{expression:e,scope:r,defaultValue:n,separator:o}:{expression:r,scope:e,defaultValue:n,separator:o}})(t);let r=e.scope;const{expression:n,defaultValue:o,separator:i}=e;if(!n)return r;if(!r)return o;const s=n.split(i),u=t=>{if(r){if(void 0!==r[t]||rt(r)&&t in r)return r[t];if(g(r.get))return r.get(t)}};for(;(r=u(s.shift()))&&s.length;);return void 0===r?o:r}function Jt(t){return t&&"function"==typeof t.toJSON}function qt(t){return Nt(t)||t===Map||t instanceof Map||t===Set||t instanceof Set||t===WeakMap||t instanceof WeakMap||t===WeakSet||t instanceof WeakSet}function Yt(t){return""===t||w(t)}function Qt(t,e,r=5){if(!t||!e)return!1;for(t=h(t),e=h(e);""!==L(t);){if(!r)return!1;if(t===e)return!0;t=gt(t),r--}return!1}function Xt(t){return!(!t||!t?._isAMomentObject)}function Zt(t){return t&&t._bsontype}function te(t){return!!(Jt(t)&&t.$isMongooseModelPrototype||Zt(t))}function ee(t){return!(Buffer.isBuffer(t)||it(t)||b(t)||m(t)||E(t)||w(t))}function re(t){return M(t)?"string":_(t)?"number":O(t)?"boolean":"any"}function ne(t,e,r,n="."){const o=e.split(n);for(;i=o.shift(),s=!o.length,!C(i)&&(s?("function"==typeof t.set?t.set(i,r):t[i]=r,0):("function"==typeof t.set?(t.has(i)||t.set(i,{}),t=t.get(i)):t=t[i]=t[i]||{},1)););var i,s}function oe(t){return t?E(t)?e=>e[t]:t:(t,e)=>String(e)}function ie(t,e){if(xt(t)){const r=oe(e||"id");return t.reduce(((t,e,n)=>([].concat(r(e,n)).forEach((r=>{const n=t.get(r);e=n?.merge?.(e)||e,t.set(r,e)})),t)),new Map)}const r=oe(e);return Object.entries(t).reduce(((t,[e,n])=>t.set(r(n,e),n)),new Map)}function se(t){return Array.from(new Set(t).values())}function ue(t,e="id"){const r=new Map;return t.forEach((t=>{r.set(t[e],t)})),Array.from(r.values())}function ae(t,e={}){const{handlers:r={},remove:n,ownKeys:o}=e,i=e.getter||((t,e)=>t.get(e)),s=e.setter||((t,e,r)=>!!t.set(e,r)),u=(t,e)=>Reflect.has(t,e)||"symbol"==typeof e;return new Proxy(t,{getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t,e),has:(t,e)=>u(t,e)?Reflect.has(t,e):void 0!==i(t,e),get:(t,e,r)=>u(t,e)?Reflect.get(t,e,r):i(t,e),set:(t,e,r,n)=>u(t,e)?Reflect.set(t,e,r,n):!!s(t,e,r,n),deleteProperty:(t,e)=>u(t,e)||!n?Reflect.deleteProperty(t,e):n(t,e),defineProperty:(t,e,r)=>Reflect.defineProperty(t,e,r),ownKeys:t=>se(Reflect.ownKeys(t).concat(o&&o(t)||[])),...r})}})(),n})()));
//# sourceMappingURL=core.umd.min.js.map

@@ -12,11 +12,7 @@ "use strict";

return Object.entries(obj).reduce((obj, [key, value]) => {
if ((0, isProtectedKey_js_1.isProtectedKey)(key) || ignore.includes(key)) {
if ((0, isProtectedKey_js_1.isProtectedKey)(key) || ignore.includes(key) || value === undefined) {
return obj;
}
return value === undefined
? obj
: {
...obj,
[key]: value
};
obj[key] = value;
return obj;
}, {});

@@ -23,0 +19,0 @@ }

@@ -47,2 +47,3 @@ "use strict";

}
const newObj = (0, createInstance_js_1.createInstance)(source);
return [...(0, objectKeys_js_1.objectKeys)(source), ...(0, objectKeys_js_1.objectKeys)(obj)].reduce((out, key) => {

@@ -57,9 +58,7 @@ const src = source && source[key];

}
return {
...out,
[key]: value
};
}, (0, createInstance_js_1.createInstance)(source));
out[key] = value;
return out;
}, newObj);
}
exports.deepMerge = deepMerge;
//# sourceMappingURL=deepMerge.js.map

@@ -9,13 +9,9 @@ import { isProtectedKey } from "./isProtectedKey.js";

return Object.entries(obj).reduce((obj, [key, value]) => {
if (isProtectedKey(key) || ignore.includes(key)) {
if (isProtectedKey(key) || ignore.includes(key) || value === undefined) {
return obj;
}
return value === undefined
? obj
: {
...obj,
[key]: value
};
obj[key] = value;
return obj;
}, {});
}
//# sourceMappingURL=cleanObject.js.map

@@ -43,2 +43,3 @@ import { createInstance } from "./createInstance.js";

}
const newObj = createInstance(source);
return [...objectKeys(source), ...objectKeys(obj)].reduce((out, key) => {

@@ -53,8 +54,6 @@ const src = source && source[key];

}
return {
...out,
[key]: value
};
}, createInstance(source));
out[key] = value;
return out;
}, newObj);
}
//# sourceMappingURL=deepMerge.js.map

@@ -6,2 +6,2 @@ /**

*/
export declare function cleanObject(obj: any, ignore?: string[]): any;
export declare function cleanObject(obj: Record<string, unknown>, ignore?: string[]): any;

@@ -6,2 +6,2 @@ /**

*/
export declare function cleanObject(obj: any, ignore?: string[]): any;
export declare function cleanObject(obj: Record<string, unknown>, ignore?: string[]): any;

@@ -5,3 +5,3 @@ {

"type": "commonjs",
"version": "7.84.0",
"version": "7.84.1",
"source": "./src/index.ts",

@@ -34,6 +34,6 @@ "main": "./lib/cjs/index.js",

"devDependencies": {
"@tsed/barrels": "7.84.0",
"@tsed/barrels": "7.84.1",
"@tsed/monorepo-utils": "2.3.5",
"@tsed/typescript": "7.84.0",
"@tsed/vitest": "7.84.0",
"@tsed/typescript": "7.84.1",
"@tsed/vitest": "7.84.1",
"@vitest/coverage-v8": "^2.0.5",

@@ -40,0 +40,0 @@ "eslint": "^8.57.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc