@tsed/core 8.9.4 → 8.10.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/lib/browser/core.umd.cjs +15 -0
  2. package/lib/esm/decorators/storeFn.js +1 -1
  3. package/lib/esm/decorators/storeFn.js.map +1 -1
  4. package/lib/esm/errors/UnsupportedDecoratorType.js +3 -3
  5. package/lib/esm/errors/UnsupportedDecoratorType.js.map +1 -1
  6. package/lib/esm/index.js +65 -65
  7. package/lib/esm/index.js.map +1 -1
  8. package/lib/esm/types/AnyDecorator.js.map +1 -0
  9. package/lib/esm/types/DecoratorParameters.js.map +1 -0
  10. package/lib/esm/types/DecoratorTypes.js.map +1 -0
  11. package/lib/esm/types/Env.js.map +1 -0
  12. package/lib/esm/{domain → types}/Metadata.js +1 -1
  13. package/lib/esm/types/Metadata.js.map +1 -0
  14. package/lib/esm/types/MetadataTypes.js.map +1 -0
  15. package/lib/esm/{interfaces → types}/Relation.js.map +1 -1
  16. package/lib/esm/{domain → types}/Store.js +7 -7
  17. package/lib/esm/types/Store.js.map +1 -0
  18. package/lib/esm/types/Type.js.map +1 -0
  19. package/lib/esm/{interfaces → types}/ValueOf.js.map +1 -1
  20. package/lib/esm/{domain → utils}/AnyToPromise.js +4 -4
  21. package/lib/esm/utils/AnyToPromise.js.map +1 -0
  22. package/lib/esm/utils/ancestorOf.js.map +1 -0
  23. package/lib/esm/utils/ancestorsOf.js.map +1 -0
  24. package/lib/esm/utils/classOf.js.map +1 -0
  25. package/lib/esm/utils/cleanObject.js.map +1 -0
  26. package/lib/esm/utils/constructorOf.js.map +1 -0
  27. package/lib/esm/utils/createInstance.js.map +1 -0
  28. package/lib/esm/utils/{decorators/decorateMethodsOf.js → decorateMethodsOf.js} +5 -5
  29. package/lib/esm/utils/decorateMethodsOf.js.map +1 -0
  30. package/lib/esm/utils/{decorators/decoratorArgs.js → decoratorArgs.js} +1 -1
  31. package/lib/esm/utils/decoratorArgs.js.map +1 -0
  32. package/lib/esm/utils/{decorators/decoratorTypeOf.js → decoratorTypeOf.js} +2 -2
  33. package/lib/esm/utils/decoratorTypeOf.js.map +1 -0
  34. package/lib/esm/utils/deepClone.js.map +1 -0
  35. package/lib/esm/utils/deepMerge.js.map +1 -0
  36. package/lib/esm/utils/descriptorOf.js.map +1 -0
  37. package/lib/esm/utils/getClassOrSymbol.js.map +1 -0
  38. package/lib/esm/utils/getConstructorArgNames.js.map +1 -0
  39. package/lib/esm/utils/getValue.js.map +1 -0
  40. package/lib/esm/utils/hasJsonMethod.js.map +1 -0
  41. package/lib/esm/utils/{decorators/inheritedDescriptorOf.js → inheritedDescriptorOf.js} +1 -1
  42. package/lib/esm/utils/inheritedDescriptorOf.js.map +1 -0
  43. package/lib/esm/utils/isArray.js.map +1 -0
  44. package/lib/esm/utils/isArrowFn.js.map +1 -0
  45. package/lib/esm/utils/isBoolean.js.map +1 -0
  46. package/lib/esm/utils/isBuffer.js.map +1 -0
  47. package/lib/esm/utils/isClass.js.map +1 -0
  48. package/lib/esm/utils/isCollection.js.map +1 -0
  49. package/lib/esm/utils/isDate.js.map +1 -0
  50. package/lib/esm/utils/isEmpty.js.map +1 -0
  51. package/lib/esm/utils/{objects/isEnumerable.js → isEnumerable.js} +1 -1
  52. package/lib/esm/utils/isEnumerable.js.map +1 -0
  53. package/lib/esm/utils/isFunction.js.map +1 -0
  54. package/lib/esm/utils/isInheritedFrom.js.map +1 -0
  55. package/lib/esm/utils/isMomentObject.js.map +1 -0
  56. package/lib/esm/utils/isMongooseObject.js.map +1 -0
  57. package/lib/esm/utils/isNil.js.map +1 -0
  58. package/lib/esm/utils/isNumber.js.map +1 -0
  59. package/lib/esm/utils/isObject.js.map +1 -0
  60. package/lib/esm/utils/isObservable.js.map +1 -0
  61. package/lib/esm/utils/isPlainObject.js.map +1 -0
  62. package/lib/esm/utils/isPrimitive.js.map +1 -0
  63. package/lib/esm/utils/isPromise.js.map +1 -0
  64. package/lib/esm/utils/isProtectedKey.js.map +1 -0
  65. package/lib/esm/utils/isRegExp.js.map +1 -0
  66. package/lib/esm/utils/isSerializable.js.map +1 -0
  67. package/lib/esm/utils/isStream.js.map +1 -0
  68. package/lib/esm/utils/isString.js.map +1 -0
  69. package/lib/esm/utils/isSymbol.js.map +1 -0
  70. package/lib/esm/utils/methodsOf.js.map +1 -0
  71. package/lib/esm/utils/nameOf.js.map +1 -0
  72. package/lib/esm/utils/objectKeys.js.map +1 -0
  73. package/lib/esm/utils/primitiveOf.js.map +1 -0
  74. package/lib/esm/utils/prototypeOf.js.map +1 -0
  75. package/lib/esm/utils/setValue.js.map +1 -0
  76. package/lib/esm/utils/toMap.js.map +1 -0
  77. package/lib/esm/utils/toStringConstructor.js.map +1 -0
  78. package/lib/esm/utils/uniq.js.map +1 -0
  79. package/lib/esm/utils/useDecorators.js.map +1 -0
  80. package/lib/esm/utils/{decorators/useMethodDecorators.js → useMethodDecorators.js} +1 -1
  81. package/lib/esm/utils/useMethodDecorators.js.map +1 -0
  82. package/lib/types/decorators/storeFn.d.ts +2 -2
  83. package/lib/types/index.d.ts +65 -65
  84. package/lib/types/{interfaces → types}/MetadataTypes.d.ts +1 -1
  85. package/lib/types/utils/{objects/constructorOf.d.ts → constructorOf.d.ts} +1 -1
  86. package/lib/types/utils/{decorators/decoratorArgs.d.ts → decoratorArgs.d.ts} +1 -1
  87. package/lib/types/utils/{decorators/decoratorTypeOf.d.ts → decoratorTypeOf.d.ts} +1 -1
  88. package/lib/types/utils/{objects/methodsOf.d.ts → methodsOf.d.ts} +1 -1
  89. package/lib/types/utils/{decorators/useDecorators.d.ts → useDecorators.d.ts} +1 -1
  90. package/lib/types/utils/{decorators/useMethodDecorators.d.ts → useMethodDecorators.d.ts} +1 -1
  91. package/package.json +20 -18
  92. package/src/decorators/storeFn.ts +2 -2
  93. package/src/decorators/storeMerge.ts +1 -1
  94. package/src/decorators/storeSet.ts +1 -1
  95. package/src/errors/UnsupportedDecoratorType.ts +3 -3
  96. package/src/index.ts +65 -65
  97. package/src/{domain → types}/Metadata.ts +1 -1
  98. package/src/{interfaces → types}/MetadataTypes.ts +1 -1
  99. package/src/{domain → types}/Store.ts +7 -7
  100. package/src/{domain → utils}/AnyToPromise.spec.ts +2 -2
  101. package/src/{domain → utils}/AnyToPromise.ts +4 -4
  102. package/src/utils/{objects/ObjectUtils.spec.ts → ObjectUtils.spec.ts} +1 -1
  103. package/src/utils/{objects/constructorOf.ts → constructorOf.ts} +1 -1
  104. package/src/utils/{decorators/decorateMethodsOf.spec.ts → decorateMethodsOf.spec.ts} +4 -4
  105. package/src/utils/{decorators/decorateMethodsOf.ts → decorateMethodsOf.ts} +5 -5
  106. package/src/utils/{decorators/decoratorArgs.spec.ts → decoratorArgs.spec.ts} +2 -2
  107. package/src/utils/{decorators/decoratorArgs.ts → decoratorArgs.ts} +2 -2
  108. package/src/utils/{decorators/decoratorTypeOf.ts → decoratorTypeOf.ts} +2 -2
  109. package/src/utils/{decorators/inheritedDescriptorOf.ts → inheritedDescriptorOf.ts} +1 -1
  110. package/src/utils/{objects/isEnumerable.ts → isEnumerable.ts} +1 -1
  111. package/src/utils/{objects/methodsOf.ts → methodsOf.ts} +1 -1
  112. package/src/utils/{decorators/useDecorators.spec.ts → useDecorators.spec.ts} +3 -3
  113. package/src/utils/{decorators/useDecorators.ts → useDecorators.ts} +2 -2
  114. package/src/utils/{decorators/useMethodDecorator.spec.ts → useMethodDecorator.spec.ts} +2 -2
  115. package/src/utils/{decorators/useMethodDecorators.ts → useMethodDecorators.ts} +2 -2
  116. package/vite.config.mts +22 -0
  117. package/lib/browser/core.umd.min.js +0 -3
  118. package/lib/browser/core.umd.min.js.LICENSE.txt +0 -14
  119. package/lib/browser/core.umd.min.js.map +0 -1
  120. package/lib/esm/domain/AnyToPromise.js.map +0 -1
  121. package/lib/esm/domain/DecoratorTypes.js.map +0 -1
  122. package/lib/esm/domain/Env.js.map +0 -1
  123. package/lib/esm/domain/Metadata.js.map +0 -1
  124. package/lib/esm/domain/Store.js.map +0 -1
  125. package/lib/esm/domain/Type.js.map +0 -1
  126. package/lib/esm/interfaces/AnyDecorator.js.map +0 -1
  127. package/lib/esm/interfaces/DecoratorParameters.js.map +0 -1
  128. package/lib/esm/interfaces/MetadataTypes.js.map +0 -1
  129. package/lib/esm/utils/decorators/decorateMethodsOf.js.map +0 -1
  130. package/lib/esm/utils/decorators/decoratorArgs.js.map +0 -1
  131. package/lib/esm/utils/decorators/decoratorTypeOf.js.map +0 -1
  132. package/lib/esm/utils/decorators/inheritedDescriptorOf.js.map +0 -1
  133. package/lib/esm/utils/decorators/useDecorators.js.map +0 -1
  134. package/lib/esm/utils/decorators/useMethodDecorators.js.map +0 -1
  135. package/lib/esm/utils/objects/ancestorOf.js.map +0 -1
  136. package/lib/esm/utils/objects/ancestorsOf.js.map +0 -1
  137. package/lib/esm/utils/objects/classOf.js.map +0 -1
  138. package/lib/esm/utils/objects/cleanObject.js.map +0 -1
  139. package/lib/esm/utils/objects/constructorOf.js.map +0 -1
  140. package/lib/esm/utils/objects/createInstance.js.map +0 -1
  141. package/lib/esm/utils/objects/deepClone.js.map +0 -1
  142. package/lib/esm/utils/objects/deepMerge.js.map +0 -1
  143. package/lib/esm/utils/objects/descriptorOf.js.map +0 -1
  144. package/lib/esm/utils/objects/getClassOrSymbol.js.map +0 -1
  145. package/lib/esm/utils/objects/getConstructorArgNames.js.map +0 -1
  146. package/lib/esm/utils/objects/getValue.js.map +0 -1
  147. package/lib/esm/utils/objects/hasJsonMethod.js.map +0 -1
  148. package/lib/esm/utils/objects/isArray.js.map +0 -1
  149. package/lib/esm/utils/objects/isArrowFn.js.map +0 -1
  150. package/lib/esm/utils/objects/isBoolean.js.map +0 -1
  151. package/lib/esm/utils/objects/isBuffer.js.map +0 -1
  152. package/lib/esm/utils/objects/isClass.js.map +0 -1
  153. package/lib/esm/utils/objects/isCollection.js.map +0 -1
  154. package/lib/esm/utils/objects/isDate.js.map +0 -1
  155. package/lib/esm/utils/objects/isEmpty.js.map +0 -1
  156. package/lib/esm/utils/objects/isEnumerable.js.map +0 -1
  157. package/lib/esm/utils/objects/isFunction.js.map +0 -1
  158. package/lib/esm/utils/objects/isInheritedFrom.js.map +0 -1
  159. package/lib/esm/utils/objects/isMomentObject.js.map +0 -1
  160. package/lib/esm/utils/objects/isMongooseObject.js.map +0 -1
  161. package/lib/esm/utils/objects/isNil.js.map +0 -1
  162. package/lib/esm/utils/objects/isNumber.js.map +0 -1
  163. package/lib/esm/utils/objects/isObject.js.map +0 -1
  164. package/lib/esm/utils/objects/isObservable.js.map +0 -1
  165. package/lib/esm/utils/objects/isPlainObject.js.map +0 -1
  166. package/lib/esm/utils/objects/isPrimitive.js.map +0 -1
  167. package/lib/esm/utils/objects/isPromise.js.map +0 -1
  168. package/lib/esm/utils/objects/isProtectedKey.js.map +0 -1
  169. package/lib/esm/utils/objects/isRegExp.js.map +0 -1
  170. package/lib/esm/utils/objects/isSerializable.js.map +0 -1
  171. package/lib/esm/utils/objects/isStream.js.map +0 -1
  172. package/lib/esm/utils/objects/isString.js.map +0 -1
  173. package/lib/esm/utils/objects/isSymbol.js.map +0 -1
  174. package/lib/esm/utils/objects/methodsOf.js.map +0 -1
  175. package/lib/esm/utils/objects/nameOf.js.map +0 -1
  176. package/lib/esm/utils/objects/objectKeys.js.map +0 -1
  177. package/lib/esm/utils/objects/primitiveOf.js.map +0 -1
  178. package/lib/esm/utils/objects/prototypeOf.js.map +0 -1
  179. package/lib/esm/utils/objects/setValue.js.map +0 -1
  180. package/lib/esm/utils/objects/toMap.js.map +0 -1
  181. package/lib/esm/utils/objects/toStringConstructor.js.map +0 -1
  182. package/lib/esm/utils/objects/uniq.js.map +0 -1
  183. package/webpack.config.cjs +0 -4
  184. /package/lib/esm/{interfaces → types}/AnyDecorator.js +0 -0
  185. /package/lib/esm/{interfaces → types}/DecoratorParameters.js +0 -0
  186. /package/lib/esm/{domain → types}/DecoratorTypes.js +0 -0
  187. /package/lib/esm/{domain → types}/Env.js +0 -0
  188. /package/lib/esm/{interfaces → types}/MetadataTypes.js +0 -0
  189. /package/lib/esm/{interfaces → types}/Relation.js +0 -0
  190. /package/lib/esm/{domain → types}/Type.js +0 -0
  191. /package/lib/esm/{interfaces → types}/ValueOf.js +0 -0
  192. /package/lib/esm/utils/{objects/ancestorOf.js → ancestorOf.js} +0 -0
  193. /package/lib/esm/utils/{objects/ancestorsOf.js → ancestorsOf.js} +0 -0
  194. /package/lib/esm/utils/{objects/classOf.js → classOf.js} +0 -0
  195. /package/lib/esm/utils/{objects/cleanObject.js → cleanObject.js} +0 -0
  196. /package/lib/esm/utils/{objects/constructorOf.js → constructorOf.js} +0 -0
  197. /package/lib/esm/utils/{objects/createInstance.js → createInstance.js} +0 -0
  198. /package/lib/esm/utils/{objects/deepClone.js → deepClone.js} +0 -0
  199. /package/lib/esm/utils/{objects/deepMerge.js → deepMerge.js} +0 -0
  200. /package/lib/esm/utils/{objects/descriptorOf.js → descriptorOf.js} +0 -0
  201. /package/lib/esm/utils/{objects/getClassOrSymbol.js → getClassOrSymbol.js} +0 -0
  202. /package/lib/esm/utils/{objects/getConstructorArgNames.js → getConstructorArgNames.js} +0 -0
  203. /package/lib/esm/utils/{objects/getValue.js → getValue.js} +0 -0
  204. /package/lib/esm/utils/{objects/hasJsonMethod.js → hasJsonMethod.js} +0 -0
  205. /package/lib/esm/utils/{objects/isArray.js → isArray.js} +0 -0
  206. /package/lib/esm/utils/{objects/isArrowFn.js → isArrowFn.js} +0 -0
  207. /package/lib/esm/utils/{objects/isBoolean.js → isBoolean.js} +0 -0
  208. /package/lib/esm/utils/{objects/isBuffer.js → isBuffer.js} +0 -0
  209. /package/lib/esm/utils/{objects/isClass.js → isClass.js} +0 -0
  210. /package/lib/esm/utils/{objects/isCollection.js → isCollection.js} +0 -0
  211. /package/lib/esm/utils/{objects/isDate.js → isDate.js} +0 -0
  212. /package/lib/esm/utils/{objects/isEmpty.js → isEmpty.js} +0 -0
  213. /package/lib/esm/utils/{objects/isFunction.js → isFunction.js} +0 -0
  214. /package/lib/esm/utils/{objects/isInheritedFrom.js → isInheritedFrom.js} +0 -0
  215. /package/lib/esm/utils/{objects/isMomentObject.js → isMomentObject.js} +0 -0
  216. /package/lib/esm/utils/{objects/isMongooseObject.js → isMongooseObject.js} +0 -0
  217. /package/lib/esm/utils/{objects/isNil.js → isNil.js} +0 -0
  218. /package/lib/esm/utils/{objects/isNumber.js → isNumber.js} +0 -0
  219. /package/lib/esm/utils/{objects/isObject.js → isObject.js} +0 -0
  220. /package/lib/esm/utils/{objects/isObservable.js → isObservable.js} +0 -0
  221. /package/lib/esm/utils/{objects/isPlainObject.js → isPlainObject.js} +0 -0
  222. /package/lib/esm/utils/{objects/isPrimitive.js → isPrimitive.js} +0 -0
  223. /package/lib/esm/utils/{objects/isPromise.js → isPromise.js} +0 -0
  224. /package/lib/esm/utils/{objects/isProtectedKey.js → isProtectedKey.js} +0 -0
  225. /package/lib/esm/utils/{objects/isRegExp.js → isRegExp.js} +0 -0
  226. /package/lib/esm/utils/{objects/isSerializable.js → isSerializable.js} +0 -0
  227. /package/lib/esm/utils/{objects/isStream.js → isStream.js} +0 -0
  228. /package/lib/esm/utils/{objects/isString.js → isString.js} +0 -0
  229. /package/lib/esm/utils/{objects/isSymbol.js → isSymbol.js} +0 -0
  230. /package/lib/esm/utils/{objects/methodsOf.js → methodsOf.js} +0 -0
  231. /package/lib/esm/utils/{objects/nameOf.js → nameOf.js} +0 -0
  232. /package/lib/esm/utils/{objects/objectKeys.js → objectKeys.js} +0 -0
  233. /package/lib/esm/utils/{objects/primitiveOf.js → primitiveOf.js} +0 -0
  234. /package/lib/esm/utils/{objects/prototypeOf.js → prototypeOf.js} +0 -0
  235. /package/lib/esm/utils/{objects/setValue.js → setValue.js} +0 -0
  236. /package/lib/esm/utils/{objects/toMap.js → toMap.js} +0 -0
  237. /package/lib/esm/utils/{objects/toStringConstructor.js → toStringConstructor.js} +0 -0
  238. /package/lib/esm/utils/{objects/uniq.js → uniq.js} +0 -0
  239. /package/lib/esm/utils/{decorators/useDecorators.js → useDecorators.js} +0 -0
  240. /package/lib/types/{interfaces → types}/AnyDecorator.d.ts +0 -0
  241. /package/lib/types/{interfaces → types}/DecoratorParameters.d.ts +0 -0
  242. /package/lib/types/{domain → types}/DecoratorTypes.d.ts +0 -0
  243. /package/lib/types/{domain → types}/Env.d.ts +0 -0
  244. /package/lib/types/{domain → types}/Metadata.d.ts +0 -0
  245. /package/lib/types/{interfaces → types}/Relation.d.ts +0 -0
  246. /package/lib/types/{domain → types}/Store.d.ts +0 -0
  247. /package/lib/types/{domain → types}/Type.d.ts +0 -0
  248. /package/lib/types/{interfaces → types}/ValueOf.d.ts +0 -0
  249. /package/lib/types/{domain → utils}/AnyToPromise.d.ts +0 -0
  250. /package/lib/types/utils/{objects/ancestorOf.d.ts → ancestorOf.d.ts} +0 -0
  251. /package/lib/types/utils/{objects/ancestorsOf.d.ts → ancestorsOf.d.ts} +0 -0
  252. /package/lib/types/utils/{objects/classOf.d.ts → classOf.d.ts} +0 -0
  253. /package/lib/types/utils/{objects/cleanObject.d.ts → cleanObject.d.ts} +0 -0
  254. /package/lib/types/utils/{objects/createInstance.d.ts → createInstance.d.ts} +0 -0
  255. /package/lib/types/utils/{decorators/decorateMethodsOf.d.ts → decorateMethodsOf.d.ts} +0 -0
  256. /package/lib/types/utils/{objects/deepClone.d.ts → deepClone.d.ts} +0 -0
  257. /package/lib/types/utils/{objects/deepMerge.d.ts → deepMerge.d.ts} +0 -0
  258. /package/lib/types/utils/{objects/descriptorOf.d.ts → descriptorOf.d.ts} +0 -0
  259. /package/lib/types/utils/{objects/getClassOrSymbol.d.ts → getClassOrSymbol.d.ts} +0 -0
  260. /package/lib/types/utils/{objects/getConstructorArgNames.d.ts → getConstructorArgNames.d.ts} +0 -0
  261. /package/lib/types/utils/{objects/getValue.d.ts → getValue.d.ts} +0 -0
  262. /package/lib/types/utils/{objects/hasJsonMethod.d.ts → hasJsonMethod.d.ts} +0 -0
  263. /package/lib/types/utils/{decorators/inheritedDescriptorOf.d.ts → inheritedDescriptorOf.d.ts} +0 -0
  264. /package/lib/types/utils/{objects/isArray.d.ts → isArray.d.ts} +0 -0
  265. /package/lib/types/utils/{objects/isArrowFn.d.ts → isArrowFn.d.ts} +0 -0
  266. /package/lib/types/utils/{objects/isBoolean.d.ts → isBoolean.d.ts} +0 -0
  267. /package/lib/types/utils/{objects/isBuffer.d.ts → isBuffer.d.ts} +0 -0
  268. /package/lib/types/utils/{objects/isClass.d.ts → isClass.d.ts} +0 -0
  269. /package/lib/types/utils/{objects/isCollection.d.ts → isCollection.d.ts} +0 -0
  270. /package/lib/types/utils/{objects/isDate.d.ts → isDate.d.ts} +0 -0
  271. /package/lib/types/utils/{objects/isEmpty.d.ts → isEmpty.d.ts} +0 -0
  272. /package/lib/types/utils/{objects/isEnumerable.d.ts → isEnumerable.d.ts} +0 -0
  273. /package/lib/types/utils/{objects/isFunction.d.ts → isFunction.d.ts} +0 -0
  274. /package/lib/types/utils/{objects/isInheritedFrom.d.ts → isInheritedFrom.d.ts} +0 -0
  275. /package/lib/types/utils/{objects/isMomentObject.d.ts → isMomentObject.d.ts} +0 -0
  276. /package/lib/types/utils/{objects/isMongooseObject.d.ts → isMongooseObject.d.ts} +0 -0
  277. /package/lib/types/utils/{objects/isNil.d.ts → isNil.d.ts} +0 -0
  278. /package/lib/types/utils/{objects/isNumber.d.ts → isNumber.d.ts} +0 -0
  279. /package/lib/types/utils/{objects/isObject.d.ts → isObject.d.ts} +0 -0
  280. /package/lib/types/utils/{objects/isObservable.d.ts → isObservable.d.ts} +0 -0
  281. /package/lib/types/utils/{objects/isPlainObject.d.ts → isPlainObject.d.ts} +0 -0
  282. /package/lib/types/utils/{objects/isPrimitive.d.ts → isPrimitive.d.ts} +0 -0
  283. /package/lib/types/utils/{objects/isPromise.d.ts → isPromise.d.ts} +0 -0
  284. /package/lib/types/utils/{objects/isProtectedKey.d.ts → isProtectedKey.d.ts} +0 -0
  285. /package/lib/types/utils/{objects/isRegExp.d.ts → isRegExp.d.ts} +0 -0
  286. /package/lib/types/utils/{objects/isSerializable.d.ts → isSerializable.d.ts} +0 -0
  287. /package/lib/types/utils/{objects/isStream.d.ts → isStream.d.ts} +0 -0
  288. /package/lib/types/utils/{objects/isString.d.ts → isString.d.ts} +0 -0
  289. /package/lib/types/utils/{objects/isSymbol.d.ts → isSymbol.d.ts} +0 -0
  290. /package/lib/types/utils/{objects/nameOf.d.ts → nameOf.d.ts} +0 -0
  291. /package/lib/types/utils/{objects/objectKeys.d.ts → objectKeys.d.ts} +0 -0
  292. /package/lib/types/utils/{objects/primitiveOf.d.ts → primitiveOf.d.ts} +0 -0
  293. /package/lib/types/utils/{objects/prototypeOf.d.ts → prototypeOf.d.ts} +0 -0
  294. /package/lib/types/utils/{objects/setValue.d.ts → setValue.d.ts} +0 -0
  295. /package/lib/types/utils/{objects/toMap.d.ts → toMap.d.ts} +0 -0
  296. /package/lib/types/utils/{objects/toStringConstructor.d.ts → toStringConstructor.d.ts} +0 -0
  297. /package/lib/types/utils/{objects/uniq.d.ts → uniq.d.ts} +0 -0
  298. /package/src/{interfaces → types}/AnyDecorator.ts +0 -0
  299. /package/src/{interfaces → types}/DecoratorParameters.ts +0 -0
  300. /package/src/{domain → types}/DecoratorTypes.ts +0 -0
  301. /package/src/{domain → types}/Env.ts +0 -0
  302. /package/src/{domain → types}/Metadata.spec.ts +0 -0
  303. /package/src/{interfaces → types}/Relation.ts +0 -0
  304. /package/src/{domain → types}/Store.spec.ts +0 -0
  305. /package/src/{domain → types}/Type.ts +0 -0
  306. /package/src/{interfaces → types}/ValueOf.ts +0 -0
  307. /package/src/utils/{objects/ancestorOf.ts → ancestorOf.ts} +0 -0
  308. /package/src/utils/{objects/ancestorsOf.ts → ancestorsOf.ts} +0 -0
  309. /package/src/utils/{objects/classOf.ts → classOf.ts} +0 -0
  310. /package/src/utils/{objects/cleanObject.spec.ts → cleanObject.spec.ts} +0 -0
  311. /package/src/utils/{objects/cleanObject.ts → cleanObject.ts} +0 -0
  312. /package/src/utils/{objects/createInstance.ts → createInstance.ts} +0 -0
  313. /package/src/utils/{decorators/decoratorTypeOf.spec.ts → decoratorTypeOf.spec.ts} +0 -0
  314. /package/src/utils/{objects/deepClone.spec.ts → deepClone.spec.ts} +0 -0
  315. /package/src/utils/{objects/deepClone.ts → deepClone.ts} +0 -0
  316. /package/src/utils/{objects/deepMerge.spec.ts → deepMerge.spec.ts} +0 -0
  317. /package/src/utils/{objects/deepMerge.ts → deepMerge.ts} +0 -0
  318. /package/src/utils/{objects/descriptorOf.spec.ts → descriptorOf.spec.ts} +0 -0
  319. /package/src/utils/{objects/descriptorOf.ts → descriptorOf.ts} +0 -0
  320. /package/src/utils/{objects/getClassOrSymbol.ts → getClassOrSymbol.ts} +0 -0
  321. /package/src/utils/{objects/getConstructorArgNames.spec.ts → getConstructorArgNames.spec.ts} +0 -0
  322. /package/src/utils/{objects/getConstructorArgNames.ts → getConstructorArgNames.ts} +0 -0
  323. /package/src/utils/{objects/getValue.spec.ts → getValue.spec.ts} +0 -0
  324. /package/src/utils/{objects/getValue.ts → getValue.ts} +0 -0
  325. /package/src/utils/{objects/hasJsonMethod.spec.ts → hasJsonMethod.spec.ts} +0 -0
  326. /package/src/utils/{objects/hasJsonMethod.ts → hasJsonMethod.ts} +0 -0
  327. /package/src/utils/{objects/isArray.ts → isArray.ts} +0 -0
  328. /package/src/utils/{objects/isArrowFn.ts → isArrowFn.ts} +0 -0
  329. /package/src/utils/{objects/isBoolean.ts → isBoolean.ts} +0 -0
  330. /package/src/utils/{objects/isBuffer.spec.ts → isBuffer.spec.ts} +0 -0
  331. /package/src/utils/{objects/isBuffer.ts → isBuffer.ts} +0 -0
  332. /package/src/utils/{objects/isClass.spec.ts → isClass.spec.ts} +0 -0
  333. /package/src/utils/{objects/isClass.ts → isClass.ts} +0 -0
  334. /package/src/utils/{objects/isCollection.ts → isCollection.ts} +0 -0
  335. /package/src/utils/{objects/isDate.ts → isDate.ts} +0 -0
  336. /package/src/utils/{objects/isEmpty.spec.ts → isEmpty.spec.ts} +0 -0
  337. /package/src/utils/{objects/isEmpty.ts → isEmpty.ts} +0 -0
  338. /package/src/utils/{objects/isFunction.ts → isFunction.ts} +0 -0
  339. /package/src/utils/{objects/isInheritedFrom.ts → isInheritedFrom.ts} +0 -0
  340. /package/src/utils/{objects/isMomentObject.spec.ts → isMomentObject.spec.ts} +0 -0
  341. /package/src/utils/{objects/isMomentObject.ts → isMomentObject.ts} +0 -0
  342. /package/src/utils/{objects/isMongooseObject.spec.ts → isMongooseObject.spec.ts} +0 -0
  343. /package/src/utils/{objects/isMongooseObject.ts → isMongooseObject.ts} +0 -0
  344. /package/src/utils/{objects/isNil.spec.ts → isNil.spec.ts} +0 -0
  345. /package/src/utils/{objects/isNil.ts → isNil.ts} +0 -0
  346. /package/src/utils/{objects/isNumber.ts → isNumber.ts} +0 -0
  347. /package/src/utils/{objects/isObject.ts → isObject.ts} +0 -0
  348. /package/src/utils/{objects/isObservable.ts → isObservable.ts} +0 -0
  349. /package/src/utils/{objects/isPlainObject.spec.ts → isPlainObject.spec.ts} +0 -0
  350. /package/src/utils/{objects/isPlainObject.ts → isPlainObject.ts} +0 -0
  351. /package/src/utils/{objects/isPrimitive.spec.ts → isPrimitive.spec.ts} +0 -0
  352. /package/src/utils/{objects/isPrimitive.ts → isPrimitive.ts} +0 -0
  353. /package/src/utils/{objects/isPromise.ts → isPromise.ts} +0 -0
  354. /package/src/utils/{objects/isProtectedKey.spec.ts → isProtectedKey.spec.ts} +0 -0
  355. /package/src/utils/{objects/isProtectedKey.ts → isProtectedKey.ts} +0 -0
  356. /package/src/utils/{objects/isRegExp.ts → isRegExp.ts} +0 -0
  357. /package/src/utils/{objects/isSerializable.spec.ts → isSerializable.spec.ts} +0 -0
  358. /package/src/utils/{objects/isSerializable.ts → isSerializable.ts} +0 -0
  359. /package/src/utils/{objects/isStream.ts → isStream.ts} +0 -0
  360. /package/src/utils/{objects/isString.ts → isString.ts} +0 -0
  361. /package/src/utils/{objects/isSymbol.spec.ts → isSymbol.spec.ts} +0 -0
  362. /package/src/utils/{objects/isSymbol.ts → isSymbol.ts} +0 -0
  363. /package/src/utils/{objects/methodsOf.spec.ts → methodsOf.spec.ts} +0 -0
  364. /package/src/utils/{objects/nameOf.ts → nameOf.ts} +0 -0
  365. /package/src/utils/{objects/objectKeys.spec.ts → objectKeys.spec.ts} +0 -0
  366. /package/src/utils/{objects/objectKeys.ts → objectKeys.ts} +0 -0
  367. /package/src/utils/{objects/primitiveOf.ts → primitiveOf.ts} +0 -0
  368. /package/src/utils/{objects/prototypeOf.ts → prototypeOf.ts} +0 -0
  369. /package/src/utils/{objects/setValue.spec.ts → setValue.spec.ts} +0 -0
  370. /package/src/utils/{objects/setValue.ts → setValue.ts} +0 -0
  371. /package/src/utils/{objects/toMap.spec.ts → toMap.spec.ts} +0 -0
  372. /package/src/utils/{objects/toMap.ts → toMap.ts} +0 -0
  373. /package/src/utils/{objects/toStringConstructor.ts → toStringConstructor.ts} +0 -0
  374. /package/src/utils/{objects/toStringConstrutor.spec.ts → toStringConstrutor.spec.ts} +0 -0
  375. /package/src/utils/{objects/uniq.spec.ts → uniq.spec.ts} +0 -0
  376. /package/src/utils/{objects/uniq.ts → uniq.ts} +0 -0
@@ -16,7 +16,7 @@ import {
16
16
  nameOf,
17
17
  nameOfClass,
18
18
  primitiveOf
19
- } from "../../index.js";
19
+ } from "../index.js";
20
20
 
21
21
  class Base {
22
22
  test1() {}
@@ -1,4 +1,4 @@
1
- import type {Type} from "../../domain/Type.js";
1
+ import type {Type} from "../types/Type.js";
2
2
 
3
3
  /**
4
4
  * Get the class constructor
@@ -1,8 +1,8 @@
1
- import {StoreMerge} from "../../decorators/storeMerge.js";
2
- import {StoreSet} from "../../decorators/storeSet.js";
3
- import {Store} from "../../domain/Store.js";
4
- import {descriptorOf} from "../objects/descriptorOf.js";
1
+ import {StoreMerge} from "../decorators/storeMerge.js";
2
+ import {StoreSet} from "../decorators/storeSet.js";
3
+ import {Store} from "../types/Store.js";
5
4
  import {decorateMethodsOf} from "./decorateMethodsOf.js";
5
+ import {descriptorOf} from "./descriptorOf.js";
6
6
 
7
7
  describe("decorateMethodsOf", () => {
8
8
  it("should decorate all methods", () => {
@@ -1,8 +1,8 @@
1
- import {Store} from "../../domain/Store.js";
2
- import {classOf} from "../objects/classOf.js";
3
- import {descriptorOf} from "../objects/descriptorOf.js";
4
- import {methodsOf} from "../objects/methodsOf.js";
5
- import {prototypeOf} from "../objects/prototypeOf.js";
1
+ import {Store} from "../types/Store.js";
2
+ import {classOf} from "./classOf.js";
3
+ import {descriptorOf} from "./descriptorOf.js";
4
+ import {methodsOf} from "./methodsOf.js";
5
+ import {prototypeOf} from "./prototypeOf.js";
6
6
 
7
7
  export function decorateMethodsOf(klass: any, decorator: any) {
8
8
  methodsOf(klass).forEach(({target, propertyKey}) => {
@@ -1,6 +1,6 @@
1
- import {descriptorOf} from "../objects/descriptorOf.js";
2
- import {prototypeOf} from "../objects/prototypeOf.js";
3
1
  import {decoratorArgs} from "./decoratorArgs.js";
2
+ import {descriptorOf} from "./descriptorOf.js";
3
+ import {prototypeOf} from "./prototypeOf.js";
4
4
 
5
5
  describe("decoratorArgs", () => {
6
6
  it("should return decorator arguments", () => {
@@ -1,5 +1,5 @@
1
- import {DecoratorParameters} from "../../interfaces/DecoratorParameters.js";
2
- import {descriptorOf} from "../objects/descriptorOf.js";
1
+ import {DecoratorParameters} from "../types/DecoratorParameters.js";
2
+ import {descriptorOf} from "./descriptorOf.js";
3
3
 
4
4
  export function decoratorArgs(target: any, propertyKey: string): DecoratorParameters {
5
5
  return [target, propertyKey, descriptorOf(target, propertyKey)!];
@@ -1,5 +1,5 @@
1
- import {DecoratorTypes} from "../../domain/DecoratorTypes.js";
2
- import {classOf} from "../objects/classOf.js";
1
+ import {DecoratorTypes} from "../types/DecoratorTypes.js";
2
+ import {classOf} from "./classOf.js";
3
3
 
4
4
  export function decoratorTypeOf(args: any[]): DecoratorTypes {
5
5
  const [target, propertyKey, descriptor] = args;
@@ -1,4 +1,4 @@
1
- import {ancestorsOf} from "../objects/ancestorsOf.js";
1
+ import {ancestorsOf} from "./ancestorsOf.js";
2
2
 
3
3
  export function inheritedDescriptorOf(target: any, propertyKey: string): PropertyDescriptor | undefined {
4
4
  for (const klass of ancestorsOf(target)) {
@@ -1,5 +1,5 @@
1
- import {inheritedDescriptorOf} from "../decorators/inheritedDescriptorOf.js";
2
1
  import {classOf} from "./classOf.js";
2
+ import {inheritedDescriptorOf} from "./inheritedDescriptorOf.js";
3
3
 
4
4
  /**
5
5
  *
@@ -1,4 +1,4 @@
1
- import {Type} from "../../domain/Type.js";
1
+ import {Type} from "../types/Type.js";
2
2
  import {ancestorsOf} from "./ancestorsOf.js";
3
3
  import {classOf} from "./classOf.js";
4
4
  import {isSymbol} from "./isSymbol.js";
@@ -1,6 +1,6 @@
1
- import {StoreFn} from "../../decorators/storeFn.js";
2
- import {Store} from "../../domain/Store.js";
3
- import {AnyDecorator} from "../../interfaces/AnyDecorator.js";
1
+ import {StoreFn} from "../decorators/storeFn.js";
2
+ import type {AnyDecorator} from "../types/AnyDecorator.js";
3
+ import {Store} from "../types/Store.js";
4
4
  import {useDecorators} from "./useDecorators.js";
5
5
 
6
6
  describe("useDecorators", () => {
@@ -1,5 +1,5 @@
1
- import {AnyDecorator} from "../../interfaces/AnyDecorator.js";
2
- import {DecoratorParameters} from "../../interfaces/DecoratorParameters.js";
1
+ import {AnyDecorator} from "../types/AnyDecorator.js";
2
+ import {DecoratorParameters} from "../types/DecoratorParameters.js";
3
3
 
4
4
  export function useDecorators(...decorators: AnyDecorator[]): any {
5
5
  return (...args: DecoratorParameters) => {
@@ -1,5 +1,5 @@
1
- import {StoreFn} from "../../decorators/storeFn.js";
2
- import {Store} from "../../domain/Store.js";
1
+ import {StoreFn} from "../decorators/storeFn.js";
2
+ import {Store} from "../types/Store.js";
3
3
  import {useDecorators} from "./useDecorators.js";
4
4
  import {useMethodDecorator, useMethodDecorators} from "./useMethodDecorators.js";
5
5
 
@@ -1,5 +1,5 @@
1
- import {AnyDecorator} from "../../interfaces/AnyDecorator.js";
2
- import {descriptorOf} from "../objects/descriptorOf.js";
1
+ import {AnyDecorator} from "../types/AnyDecorator.js";
2
+ import {descriptorOf} from "./descriptorOf.js";
3
3
 
4
4
  export function useMethodDecorator(decorator: AnyDecorator) {
5
5
  return (target: any, propertyKey: string | symbol) => decorator(target, propertyKey, descriptorOf(target, propertyKey));
@@ -0,0 +1,22 @@
1
+ import {defineConfig} from "vite";
2
+ import {resolve} from "path";
3
+
4
+ // https://vitejs.dev/config/
5
+ export default defineConfig({
6
+ plugins: [
7
+ // dts({
8
+ // outDir: "lib/browser/types",
9
+ // include: ["src"],
10
+ // exclude: ["**/*.spec.{ts,tsx}", "**/*.stories.{ts,tsx}"],
11
+ // })
12
+ ],
13
+ build: {
14
+ outDir: "lib/browser",
15
+ lib: {
16
+ entry: resolve(import.meta.dirname, "src/index.ts"),
17
+ formats: ["umd"],
18
+ name: "@tsed/core",
19
+ fileName: "core",
20
+ },
21
+ }
22
+ });
@@ -1,3 +0,0 @@
1
- /*! For license information please see core.umd.min.js.LICENSE.txt */
2
- !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={909:(t,e,r)=>{var n;!function(t){!function(){var e="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){}}(),n=o(t);function o(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(n=o(e.Reflect,n)),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 U(Object.create(null))}:u?function(){return U({__proto__:null})}:function(){return U({})},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),p="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]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new p}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=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,t),e}return i(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),h=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(h)&&T(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[h]),S(t)&&(t=function(){var t,r,n,o;S(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!(S(r)||!r.has(e))||!!o(t,e).length&&(S(r)&&(r=new l,s.set(t,r)),r.add(e),!0)},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 S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===o&&(o=new l),o.add(e)}}function a(e,i){if(!S(r)){if(r.isProviderFor(e,i))return r;if(!S(n)){if(n.isProviderFor(e,i))return r;if(!S(o))for(var s=N(o);;){var u=I(s);if(!u)return;var a=B(u);if(a.isProviderFor(e,i))return K(s),a}}}if(!S(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,n=i.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=a(t,e))||(S(n)&&(n=new p,i.set(t,n)),n.set(e,r)),r):r}function f(t){if(S(t))throw new TypeError;return r===t||n===t||!S(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(!S(n))return!1;var o=i.get(t);S(o)&&(o=new p,i.set(t,o)),o.set(e,r)}return!0}}()),!S(h)&&T(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!S(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!S(o)&&j(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!S(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(S(o))return r;for(var i=N(o.keys()),s=0;;){var u=I(i);if(!u)return r.length=s,r;var a=B(u);try{r[s]=a}catch(t){try{K(i)}finally{throw t}}s++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(S(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var s=e.get(r);S(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(S(s)){if(!i)return;s=new p,e.set(n,s),u=!0}var a=s.get(o);if(S(a)){if(!i)return;if(a=new p,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(O(t,e,r))return!0;var n=L(e);return!P(n)&&g(t,n,r)}function O(t,e,r){var n=V(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function w(t,e,r){if(O(t,e,r))return b(t,e,r);var n=L(e);return P(n)?void 0:w(t,n,r)}function b(t,e,r){var n=V(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function m(t,e,r,n){V(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 l,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,p=o;f<p.length;f++)c=p[f],i.has(c)||(i.add(c),s.push(c));return s}function E(t,e){var r=V(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 S(t){return void 0===t}function P(t){return null===t}function T(t){return"object"==typeof t?null!==t:"function"==typeof t}function R(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=F(t,o);if(void 0!==n){var i=n.call(t,r);if(T(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(k(r)&&!T(o=r.call(t)))return o;if(k(n=t.valueOf)&&!T(o=n.call(t)))return o}else{var n;if(k(n=t.valueOf)&&!T(o=n.call(t)))return o;var o,i=t.toString;if(k(i)&&!T(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function j(t){return!!t}function A(t){var e=R(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 F(t,e){var r=t[e];if(null!=r){if(!k(r))throw new TypeError;return r}}function N(t){var e=F(t,i);if(!k(e))throw new TypeError;var r=e.call(t);if(!T(r))throw new TypeError;return r}function B(t){return t.value}function I(t){var e=t.next();return!e.done&&e}function K(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 V(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function U(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,n){if(S(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(!S(n)&&!P(n)){if(!C(n))throw new TypeError;e=n}}return e}(t,e)}if(!D(t))throw new TypeError;if(!T(e))throw new TypeError;if(!T(n)&&!S(n)&&!P(n))throw new TypeError;return P(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(!S(i)&&!P(i)){if(!T(i))throw new TypeError;n=i}}return n}(t,e,r=A(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!T(r))throw new TypeError;if(!S(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(!T(r))throw new TypeError;return S(n)||(n=A(n)),m(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=A(r)),g(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=A(r)),O(t,e,r)})),t("getMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=A(r)),w(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!T(e))throw new TypeError;return S(r)||(r=A(r)),b(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!T(t))throw new TypeError;return S(e)||(e=A(e)),_(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!T(t))throw new TypeError;return S(e)||(e=A(e)),E(t,e)})),t("deleteMetadata",(function(t,e,r){if(!T(e))throw new TypeError;if(S(r)||(r=A(r)),!T(e))throw new TypeError;S(r)||(r=A(r));var n=V(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)}))}(n,e),void 0===e.Reflect&&(e.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";var t;function e(t){return t.prototype?t:t.constructor}function o(t){return e(t)}function i(e){const[r,n,i]=e,s=t=>r!==o(r)?t:`${t}.static`;return"number"==typeof i?n?s("parameter"):"parameter.constructor":i&&i.value?s("method"):n&&void 0===i||i?s("property"):t.CLASS}function s(t){return t===Date||t instanceof Date&&!isNaN(+t)}function u(t){return"function"==typeof t}function a(t){return null==t}function c(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function f(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function p(t){return"number"==typeof t}function l(t){return"number"==typeof t||t instanceof Number||t===Number}function y(t){return"string"==typeof t}function h(t){return"string"==typeof t||t instanceof String||t===String}function d(t){return h(t)||l(t)||f(t)}function v(t){return y(t)||p(t)||c(t)}function g(t){return[String,Number,Boolean].includes(t)}function O(t){return t instanceof RegExp}function w(t){return"symbol"==typeof t}function b(t){return"symbol"==typeof t||t instanceof Symbol||t===Symbol}r.r(n),r.d(n,{AnyToPromise:()=>rt,AnyToPromiseResponseTypes:()=>tt,AnyToPromiseStatus:()=>Z,CLASS_STORE:()=>I,DecoratorTypes:()=>t,Env:()=>et,EnvTypes:()=>nt,METHOD_STORE:()=>K,Metadata:()=>B,PARAM_STORE:()=>V,PROPERTY_STORE:()=>L,Store:()=>W,StoreFn:()=>$,StoreMerge:()=>z,StoreSet:()=>G,Type:()=>ot,UnsupportedDecoratorType:()=>it,ancestorOf:()=>at,ancestorsOf:()=>ft,catchAsyncError:()=>ut,catchError:()=>st,classOf:()=>o,cleanObject:()=>mt,constructorOf:()=>Et,createInstance:()=>_,decorateMethodsOf:()=>yt,decoratorArgs:()=>ht,decoratorTypeOf:()=>i,deepClone:()=>m,deepMerge:()=>T,descriptorOf:()=>R,getClass:()=>e,getClassOrSymbol:()=>kt,getConstructor:()=>_t,getConstructorArgNames:()=>xt,getHostInfoFromPort:()=>bt,getInheritedClass:()=>ct,getRandomId:()=>wt,getValue:()=>Nt,hasJsonMethod:()=>Bt,inheritedDescriptorOf:()=>dt,isArray:()=>Mt,isArrayOrArrayClass:()=>St,isArrowFn:()=>Pt,isBoolean:()=>c,isBooleanOrBooleanClass:()=>f,isBuffer:()=>Tt,isClass:()=>Dt,isClassObject:()=>jt,isCollection:()=>It,isDate:()=>s,isEmpty:()=>Kt,isEnumerable:()=>Lt,isFunction:()=>u,isInheritedFrom:()=>Vt,isMethodDescriptor:()=>j,isMomentObject:()=>Ut,isMongooseObject:()=>Wt,isNil:()=>a,isNumber:()=>p,isNumberOrNumberClass:()=>l,isObject:()=>J,isObjectID:()=>Ht,isObservable:()=>q,isPlainObject:()=>At,isPrimitive:()=>v,isPrimitiveClass:()=>g,isPrimitiveOrPrimitiveClass:()=>d,isPromise:()=>Y,isProtectedKey:()=>E,isRegExp:()=>O,isSerializable:()=>$t,isStream:()=>Q,isString:()=>y,isStringOrStringClass:()=>h,isSymbol:()=>w,isSymbolOrSymbolClass:()=>b,isUint8Array:()=>Rt,mergeReducerBuilder:()=>S,methodsOf:()=>lt,nameOf:()=>k,nameOfClass:()=>A,nameOfSymbol:()=>D,objectKeys:()=>M,primitiveOf:()=>zt,prototypeOf:()=>pt,setValue:()=>Gt,toMap:()=>qt,toStringConstructor:()=>Ct,uniq:()=>Yt,uniqBy:()=>Qt,useDecorators:()=>vt,useMethodDecorator:()=>gt,useMethodDecorators:()=>Ot}),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"}(t||(t={}));const m=(t,e=new WeakMap)=>{if((t=>a(t)||v(t)||w(t)||u(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(o(t))(t.buffer.slice(0),t.byteOffset,t.byteLength);if(s(t))return new Date(t);if(O(t))return new RegExp(t);if(Array.isArray(t)){const r=[];return e.set(t,r),t.forEach(((t,n)=>r[n]=m(t,e))),r}if(t instanceof Map){const r=new Map;return e.set(t,r),t.forEach(((t,n)=>r.set(m(n,e),m(t,e)))),r}if(t instanceof Set){const r=new Set;return e.set(t,r),t.forEach((t=>r.add(m(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&&(u(o.value)?Object.defineProperty(n,r,o):Object.defineProperty(n,r,{...o,value:m(o.value,e)}))})),n};function _(t){return t&&o(t)!==Object?Object.create(t):{}}function E(t){return["__proto__","constructor","prototype"].includes(t)}function M(t){return Object.keys(t).filter((t=>!E(t)))}function S(t){return(e,r,n)=>{const o=e.findIndex((e=>t(e,r)));return-1===o?[...e,r]:(e[o]=T(e[o],r,n),e)}}const P=S(((t,e)=>t===e));function T(t,e,r={}){if(function(t,e){return null==t||""===t&&""!==e}(e,t))return t;if(function(t,e){return v(t)||w(t)||u(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||P:P}(r);return[].concat(e).reduce(((t,e)=>n(t,e,r)),[...t])}const n=_(t);return[...M(t),...M(e)].reduce(((n,o)=>{const i=T(t&&t[o],e&&e[o],{...r,parentKey:o});return r.cleanUndefinedProps&&void 0===i||(n[o]=r.alter?.(o,i)??i),n}),n)}function R(t,e){return Reflect.getOwnPropertyDescriptor(t&&t.prototype||t,e)}function j(t,e){return R(t,e)?.value}function A(t){return"function"==typeof t?t.name:t.constructor.name}const D=t=>t.toString().replace("Symbol(","").replace(")","");function k(t){switch(typeof t){default:return""+t;case"symbol":return D(t);case"function":return A(t)}}r(909);const C="design:paramtypes",x="design:type",F="design:returntype",N=new Map;class B{static get(t,e,r){return Reflect.getMetadata(t,o(e),r)}static getOwn(t,e,r){return Reflect.getOwnMetadata(t,o(e),r)}static getType(t,e){return Reflect.getMetadata(x,t,e)}static getOwnType(t,e){return Reflect.getMetadata(x,t,e)}static getReturnType(t,e){return Reflect.getMetadata(F,t,e)}static getOwnReturnType(t,e){return Reflect.getOwnMetadata(F,t,e)}static has(t,e,r){try{return Reflect.hasMetadata(t,o(e),r)}catch(t){}return!1}static hasOwn(t,e,r){return Reflect.hasOwnMetadata(t,o(e),r)}static delete(t,e,r){return Reflect.deleteMetadata(t,o(e),r)}static setParamTypes(t,e,r){return this.set(C,r,t.prototype,e)}static{this.getTargetsFromPropertyKey=t=>N.has(t)&&N.get(t)||[]}static set(t,e,r,n){const i=N.has(t)&&N.get(t)||[],s=o(r);-1===i.indexOf(s)&&(i.push(s),N.set(t,i)),Reflect.defineMetadata(t,e,o(r),n)}static getParamTypes(t,e){return Reflect.getMetadata(C,t,e)||[]}static getOwnParamTypes(t,e){return Reflect.getOwnMetadata(C,t,e)||[]}}const I="tsed:class:store",K="tsed:method:store",L="tsed:property:store",V="tsed:param:store",U=new Map;function H(t,...e){if(w(e[0]))return U.has(e[0])||U.set(e[0],new W),U.get(e[0]);{const r=B;return r.hasOwn(t,...e)||r.set(t,new W,...e),r.getOwn(t,...e)}}class W{constructor(){this._entries=new Map}static from(...e){return function(e){const[r,n,o]=e;switch(i(e)){case t.PARAM_CTOR:case t.PARAM_STC:case t.PARAM:const e=H(V,r,n);return e.has(""+o)||e.set(""+o,new W),e.get(""+o);case t.PROP:case t.PROP_STC:return H(L,r,n);case t.METHOD:case t.METHOD_STC:return H(K,r,n);case t.CLASS:return H(I,r)}}(e)}static fromMethod(t,e){return W.from(t,e,R(t,e))}static mergeStoreFrom(t,e,...r){const n=W.from(t,...r);return W.from(e,...r)._entries.forEach(((t,e)=>{n.merge(e,t)})),n}static mergeStoreMethodFrom(t,e,r){return this.mergeStoreFrom(t,e,r,R(t,r))}get(t,e){return this._entries.get(k(t))||e}has(t){return this._entries.has(k(t))}set(t,e){return this._entries.set(k(t),e),this}delete(t){return this._entries.delete(k(t))}merge(t,e,r=!1){let n=this.get(t);return n&&(e=m(e),n=m(n),e=r?T(e,n):T(n,e)),this.set(t,e),this}toJson(){return[...this._entries.entries()].reduce(((t,[e,r])=>({...t,[e]:r})),{})}}function $(t){return(...e)=>{const r=W.from(...e),n=t(r,e);return"function"==typeof n&&n(...e),e[2]}}function z(t,e){return $((r=>{r.merge(t,e)}))}function G(t,e){return $((r=>{r.set(t,e)}))}function J(t){return"object"==typeof t}function q(t){return!!t&&"function"==typeof t.lift&&"function"==typeof t.subscribe}function Y(t){return t===Promise||t instanceof Promise||!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function Q(t){return null!==t&&"object"==typeof t&&"function"==typeof t.pipe}function X(t){return J(t)&&"data"in t&&"headers"in t&&"status"in t&&"statusText"in t}var Z,tt,et;!function(t){t.PENDING="PENDING",t.CANCELED="CANCELED",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(Z||(Z={})),function(t){t.STREAM="STREAM",t.BUFFER="BUFFER",t.DATA="DATA"}(tt||(tt={}));class rt{#t;#e;#r;#n;constructor({hasNextFunction:t=!1}={}){this.status=Z.PENDING,this.#r=!1,this.#r=t,this.#n=new Promise(((t,e)=>{this.#t=t,this.#e=e}))}isDone(){return this.status!==Z.PENDING}get next(){return this.#r=!0,t=>{if(!this.isDone())return t?this.reject(t):this.resolve({type:tt.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(Z.REJECTED),this.#e(t))}resolve(t={}){this.isDone()||(this.done(Z.RESOLVED),this.#t({...t,state:Z.RESOLVED}))}destroy(){}cancel(){if(!this.isDone())return this.done(Z.CANCELED),this.#t({state:Z.CANCELED})}done(t){this.destroy(),this.status=t}handle(t,e={}){if(!this.isDone()){if(t){if(this.isCanceledResponse(t))return this.cancel();if(q(t)&&(t=t.toPromise()),X(t))return this.handle(t.data,{...e,status:t.status,headers:t.headers});if(Q(t))return this.resolve({...e,type:tt.STREAM,data:t});if(Q(t)||Buffer.isBuffer(t))return this.resolve({...e,type:tt.BUFFER,data:t});if(Y(t))return t.then((t=>this.handle(t,e))).catch((t=>t.response&&X(t.response)?this.handle(t.response):this.reject(t)))}return this.#r?void 0:this.resolve({...e,data:t,type:tt.DATA})}}isCanceledResponse(t){return t===Z.CANCELED}}!function(t){t.PROD="production",t.DEV="development",t.TEST="test"}(et||(et={}));const nt=et,ot=Function;r.g.Type=ot;class it extends Error{constructor(t,e){super(it.buildMessage(t,e))}static buildMessage(t,e){const[r,n,s]=e,u=i(e),a=u.split("/")[0],c="parameter"===a?".["+s+"]":"",f=n?"."+n:"parameter"===a?".constructor":"",p=k(o(r))+f+c;return`${t.name} cannot be used as ${u} decorator on ${p}`}}function st(t){try{t()}catch(t){return t}}async function ut(t){try{await t()}catch(t){return t}}function at(t){return t&&Object.getPrototypeOf(t)}function ct(t){return at(t)}function ft(t){const e=[];let r=o(t);for(;r&&""!==k(r);)e.unshift(r),r=ct(r);return e}function pt(t){return o(t)===t?t.prototype:t}function lt(t){const e=new Map;return ft(t=o(t)).forEach((t=>{Reflect.ownKeys(pt(t)).forEach((r=>{w(r)||"constructor"===r||Object.getOwnPropertyDescriptor(pt(t),r)?.get||e.set(r,{target:t,propertyKey:r})}))})),Array.from(e.values())}function yt(t,e){lt(t).forEach((({target:r,propertyKey:n})=>{const i=pt(t);r!==o(t)&&(Object.defineProperty(i,n,{writable:!0,configurable:!0,value(...t){return pt(r)[n].apply(this,t)}}),W.mergeStoreMethodFrom(t,r,n));let s=R(t,n);const u=e(i,n,s)||s;u&&Object.defineProperty(i,n,u)}))}function ht(t,e){return[t,e,R(t,e)]}function dt(t,e){for(const r of ft(t)){const t=Object.getOwnPropertyDescriptor(r&&r.prototype||r,e);if(t)return t}}function vt(...t){return(...e)=>{const r="object"==typeof e[2];if(t.filter((t=>!!t)).forEach((t=>{const n=t(...e);r&&"object"==typeof n&&(e[2]=n)})),r)return e[2]}}function gt(t){return(e,r)=>t(e,r,R(e,r))}function Ot(...t){return(e,r)=>{t.filter(Boolean).forEach((t=>t(e,r,R(e,r))))}}function wt(){return`e${Math.random().toString(36).substring(7)}`}function bt(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(":")}}}function mt(t,e=[]){return Object.entries(t).reduce(((t,[r,n])=>(E(r)||e.includes(r)||void 0===n||(t[r]=n),t)),{})}function _t(t){return"function"==typeof t?t:t.constructor}function Et(t){return _t(t)}function Mt(t){return Array.isArray(t)}function St(t){return t===Array||Mt(t)}function Pt(t){return t&&u(t)&&!t.prototype}function Tt(t){return!(!t||!("isBuffer"in t)||"function"!=typeof t.isBuffer)||Rt(t)}function Rt(t){return!(!t||!(t===Uint8Array||t instanceof Uint8Array))}function jt(t){return t===Object}function At(t){return jt(o(t))&&t!==Object}function Dt(t){return!!t&&!Pt(t)&&!(w(t)||d(t)||jt(t)||s(t)||Y(t)||St(t)||Tt(t))}function kt(t){return Dt(t)?o(t):t}function Ct(t){return`${(Et(t).toString().split("\n").find((t=>t.indexOf("constructor(")>-1))||"constructor()").replace("{","").trim()}`}function xt(t){return Ct(t).split("constructor(")[1].split(")")[0].split(", ").filter(Boolean).map((t=>t.trim()))}const Ft=t=>{const[e,r,n,o="."]=t;return J(r)||y(e)?{expression:e,scope:r,defaultValue:n,separator:o}:{expression:r,scope:e,defaultValue:n,separator:o}};function Nt(...t){const e=Ft(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),a=t=>{if(r){if(void 0!==r[t]||J(r)&&t in r)return r[t];if(u(r.get))return r.get(t)}};for(;(r=a(s.shift()))&&s.length;);return void 0===r?o:r}function Bt(t){return t&&"function"==typeof t.toJSON}function It(t){return St(t)||t===Map||t instanceof Map||t===Set||t instanceof Set||t===WeakMap||t instanceof WeakMap||t===WeakSet||t instanceof WeakSet}function Kt(t){return""===t||a(t)}function Lt(t,e){const r=o(t);if(r){const t=dt(r,e);if(t)return t.enumerable}return Object.prototype.propertyIsEnumerable.call(t,e)}function Vt(t,e,r=5){if(!t||!e)return!1;for(t=o(t),e=o(e);""!==k(t);){if(!r)return!1;if(t===e)return!0;t=at(t),r--}return!1}function Ut(t){return!(!t||!t?._isAMomentObject)}function Ht(t){return t&&t._bsontype}function Wt(t){return!!(Bt(t)&&t.$isMongooseModelPrototype||Ht(t))}function $t(t){return!(Buffer.isBuffer(t)||Q(t)||c(t)||p(t)||y(t)||a(t))}function zt(t){return h(t)?"string":l(t)?"number":f(t)?"boolean":"any"}function Gt(t,e,r,n="."){const o=e.split(n);for(;i=o.shift(),s=!o.length,!E(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 Jt(t){return t?y(t)?e=>e[t]:t:(t,e)=>String(e)}function qt(t,e){if(Mt(t)){const r=Jt(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=Jt(e);return Object.entries(t).reduce(((t,[e,n])=>t.set(r(n,e),n)),new Map)}function Yt(t){return Array.from(new Set(t).values())}function Qt(t,e="id"){const r=new Map;return t.forEach((t=>{r.set(t[e],t)})),Array.from(r.values())}})(),n})()));
3
- //# sourceMappingURL=core.umd.min.js.map
@@ -1,14 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (C) Microsoft. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */