@bool-ts/core 1.9.10 → 1.9.17

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.
@@ -0,0 +1,87 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../node_modules/reflect-metadata/Reflect.js", "../node_modules/es-errors/type.js", "../node_modules/object-inspect/index.js", "../node_modules/side-channel-list/index.js", "../node_modules/es-object-atoms/index.js", "../node_modules/es-errors/index.js", "../node_modules/es-errors/eval.js", "../node_modules/es-errors/range.js", "../node_modules/es-errors/ref.js", "../node_modules/es-errors/syntax.js", "../node_modules/es-errors/uri.js", "../node_modules/math-intrinsics/abs.js", "../node_modules/math-intrinsics/floor.js", "../node_modules/math-intrinsics/max.js", "../node_modules/math-intrinsics/min.js", "../node_modules/math-intrinsics/pow.js", "../node_modules/math-intrinsics/round.js", "../node_modules/math-intrinsics/isNaN.js", "../node_modules/math-intrinsics/sign.js", "../node_modules/gopd/gOPD.js", "../node_modules/gopd/index.js", "../node_modules/es-define-property/index.js", "../node_modules/has-symbols/shams.js", "../node_modules/has-symbols/index.js", "../node_modules/get-proto/Reflect.getPrototypeOf.js", "../node_modules/get-proto/Object.getPrototypeOf.js", "../node_modules/function-bind/implementation.js", "../node_modules/function-bind/index.js", "../node_modules/call-bind-apply-helpers/functionCall.js", "../node_modules/call-bind-apply-helpers/functionApply.js", "../node_modules/call-bind-apply-helpers/reflectApply.js", "../node_modules/call-bind-apply-helpers/actualApply.js", "../node_modules/call-bind-apply-helpers/index.js", "../node_modules/dunder-proto/get.js", "../node_modules/get-proto/index.js", "../node_modules/hasown/index.js", "../node_modules/get-intrinsic/index.js", "../node_modules/call-bound/index.js", "../node_modules/side-channel-map/index.js", "../node_modules/side-channel-weakmap/index.js", "../node_modules/side-channel/index.js", "../node_modules/qs/lib/formats.js", "../node_modules/qs/lib/utils.js", "../node_modules/qs/lib/stringify.js", "../node_modules/qs/lib/parse.js", "../node_modules/qs/lib/index.js", "../src/index.ts", "../src/keys/index.ts", "../src/decorators/arguments.ts", "../src/decorators/container.ts", "../src/decorators/controller.ts", "../src/decorators/guard.ts", "../src/decorators/http.ts", "../src/decorators/inject.ts", "../src/decorators/injectable.ts", "../src/decorators/interceptor.ts", "../src/decorators/middleware.ts", "../src/decorators/module.ts", "../src/decorators/webSocket.ts", "../src/decorators/webSocketArguments.ts", "../src/decorators/webSocketEvent.ts", "../src/decorators/zodSchema.ts", "../src/http/clientError.ts", "../src/http/serverError.ts", "../src/http/index.ts", "../src/producers/factory.ts", "../node_modules/@bool-ts/date-time/dist/index.js", "../src/entities/httpRoute.ts", "../src/entities/httpRouter.ts", "../src/entities/httpRouterGroup.ts", "../src/entities/webSocketRoute.ts", "../src/entities/webSocketRouter.ts", "../src/entities/webSocketRouterGroup.ts", "../src/ultils/asyncFunction.ts", "../src/ultils/colors.ts", "../src/ultils/socket.ts", "../src/producers/context.ts", "../src/producers/injector.ts"],
4
+ "sourcesContent": [
5
+ "/*! *****************************************************************************\nCopyright (C) Microsoft. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\nvar Reflect;\n(function (Reflect) {\n // Metadata Proposal\n // https://rbuckton.github.io/reflect-metadata/\n (function (factory) {\n var root = typeof globalThis === \"object\" ? globalThis :\n typeof global === \"object\" ? global :\n typeof self === \"object\" ? self :\n typeof this === \"object\" ? this :\n sloppyModeThis();\n var exporter = makeExporter(Reflect);\n if (typeof root.Reflect !== \"undefined\") {\n exporter = makeExporter(root.Reflect, exporter);\n }\n factory(exporter, root);\n if (typeof root.Reflect === \"undefined\") {\n root.Reflect = Reflect;\n }\n function makeExporter(target, previous) {\n return function (key, value) {\n Object.defineProperty(target, key, { configurable: true, writable: true, value: value });\n if (previous)\n previous(key, value);\n };\n }\n function functionThis() {\n try {\n return Function(\"return this;\")();\n }\n catch (_) { }\n }\n function indirectEvalThis() {\n try {\n return (void 0, eval)(\"(function() { return this; })()\");\n }\n catch (_) { }\n }\n function sloppyModeThis() {\n return functionThis() || indirectEvalThis();\n }\n })(function (exporter, root) {\n var hasOwn = Object.prototype.hasOwnProperty;\n // feature test for Symbol support\n var supportsSymbol = typeof Symbol === \"function\";\n var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== \"undefined\" ? Symbol.toPrimitive : \"@@toPrimitive\";\n var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== \"undefined\" ? Symbol.iterator : \"@@iterator\";\n var supportsCreate = typeof Object.create === \"function\"; // feature test for Object.create support\n var supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support\n var downLevel = !supportsCreate && !supportsProto;\n var HashMap = {\n // create an object in dictionary mode (a.k.a. \"slow\" mode in v8)\n create: supportsCreate\n ? function () { return MakeDictionary(Object.create(null)); }\n : supportsProto\n ? function () { return MakeDictionary({ __proto__: null }); }\n : function () { return MakeDictionary({}); },\n has: downLevel\n ? function (map, key) { return hasOwn.call(map, key); }\n : function (map, key) { return key in map; },\n get: downLevel\n ? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; }\n : function (map, key) { return map[key]; },\n };\n // Load global or shim versions of Map, Set, and WeakMap\n var functionPrototype = Object.getPrototypeOf(Function);\n var _Map = typeof Map === \"function\" && typeof Map.prototype.entries === \"function\" ? Map : CreateMapPolyfill();\n var _Set = typeof Set === \"function\" && typeof Set.prototype.entries === \"function\" ? Set : CreateSetPolyfill();\n var _WeakMap = typeof WeakMap === \"function\" ? WeakMap : CreateWeakMapPolyfill();\n var registrySymbol = supportsSymbol ? Symbol.for(\"@reflect-metadata:registry\") : undefined;\n var metadataRegistry = GetOrCreateMetadataRegistry();\n var metadataProvider = CreateMetadataProvider(metadataRegistry);\n /**\n * Applies a set of decorators to a property of a target object.\n * @param decorators An array of decorators.\n * @param target The target object.\n * @param propertyKey (Optional) The property key to decorate.\n * @param attributes (Optional) The property descriptor for the target key.\n * @remarks Decorators are applied in reverse order.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Example = Reflect.decorate(decoratorsArray, Example);\n *\n * // property (on constructor)\n * Reflect.decorate(decoratorsArray, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.decorate(decoratorsArray, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Object.defineProperty(Example, \"staticMethod\",\n * Reflect.decorate(decoratorsArray, Example, \"staticMethod\",\n * Object.getOwnPropertyDescriptor(Example, \"staticMethod\")));\n *\n * // method (on prototype)\n * Object.defineProperty(Example.prototype, \"method\",\n * Reflect.decorate(decoratorsArray, Example.prototype, \"method\",\n * Object.getOwnPropertyDescriptor(Example.prototype, \"method\")));\n *\n */\n function decorate(decorators, target, propertyKey, attributes) {\n if (!IsUndefined(propertyKey)) {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsObject(target))\n throw new TypeError();\n if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))\n throw new TypeError();\n if (IsNull(attributes))\n attributes = undefined;\n propertyKey = ToPropertyKey(propertyKey);\n return DecorateProperty(decorators, target, propertyKey, attributes);\n }\n else {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsConstructor(target))\n throw new TypeError();\n return DecorateConstructor(decorators, target);\n }\n }\n exporter(\"decorate\", decorate);\n // 4.1.2 Reflect.metadata(metadataKey, metadataValue)\n // https://rbuckton.github.io/reflect-metadata/#reflect.metadata\n /**\n * A default metadata decorator factory that can be used on a class, class member, or parameter.\n * @param metadataKey The key for the metadata entry.\n * @param metadataValue The value for the metadata entry.\n * @returns A decorator function.\n * @remarks\n * If `metadataKey` is already defined for the target and target key, the\n * metadataValue for that key will be overwritten.\n * @example\n *\n * // constructor\n * @Reflect.metadata(key, value)\n * class Example {\n * }\n *\n * // property (on constructor, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticProperty;\n * }\n *\n * // property (on prototype, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * property;\n * }\n *\n * // method (on constructor)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticMethod() { }\n * }\n *\n * // method (on prototype)\n * class Example {\n * @Reflect.metadata(key, value)\n * method() { }\n * }\n *\n */\n function metadata(metadataKey, metadataValue) {\n function decorator(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))\n throw new TypeError();\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n return decorator;\n }\n exporter(\"metadata\", metadata);\n /**\n * Define a unique metadata entry on the target.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param metadataValue A value that contains attached metadata.\n * @param target The target object on which to define metadata.\n * @param propertyKey (Optional) The property key for the target.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Reflect.defineMetadata(\"custom:annotation\", options, Example);\n *\n * // property (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticMethod\");\n *\n * // method (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"method\");\n *\n * // decorator factory as metadata-producing annotation.\n * function MyAnnotation(options): Decorator {\n * return (target, key?) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\n * }\n *\n */\n function defineMetadata(metadataKey, metadataValue, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n exporter(\"defineMetadata\", defineMetadata);\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasMetadata\", hasMetadata);\n /**\n * Gets a value indicating whether the target object has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasOwnMetadata\", hasOwnMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getMetadata\", getMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getOwnMetadata\", getOwnMetadata);\n /**\n * Gets the metadata keys defined on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryMetadataKeys(target, propertyKey);\n }\n exporter(\"getMetadataKeys\", getMetadataKeys);\n /**\n * Gets the unique metadata keys defined on the target object.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getOwnMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryOwnMetadataKeys(target, propertyKey);\n }\n exporter(\"getOwnMetadataKeys\", getOwnMetadataKeys);\n /**\n * Deletes the metadata entry from the target object with the provided key.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function deleteMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n var provider = GetMetadataProvider(target, propertyKey, /*Create*/ false);\n if (IsUndefined(provider))\n return false;\n return provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"deleteMetadata\", deleteMetadata);\n function DecorateConstructor(decorators, target) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsConstructor(decorated))\n throw new TypeError();\n target = decorated;\n }\n }\n return target;\n }\n function DecorateProperty(decorators, target, propertyKey, descriptor) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target, propertyKey, descriptor);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsObject(decorated))\n throw new TypeError();\n descriptor = decorated;\n }\n }\n return descriptor;\n }\n // 3.1.1.1 OrdinaryHasMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasmetadata\n function OrdinaryHasMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return true;\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryHasMetadata(MetadataKey, parent, P);\n return false;\n }\n // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata\n function OrdinaryHasOwnMetadata(MetadataKey, O, P) {\n var provider = GetMetadataProvider(O, P, /*Create*/ false);\n if (IsUndefined(provider))\n return false;\n return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));\n }\n // 3.1.3.1 OrdinaryGetMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetmetadata\n function OrdinaryGetMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryGetMetadata(MetadataKey, parent, P);\n return undefined;\n }\n // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata\n function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var provider = GetMetadataProvider(O, P, /*Create*/ false);\n if (IsUndefined(provider))\n return;\n return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P);\n }\n // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata\n function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {\n var provider = GetMetadataProvider(O, P, /*Create*/ true);\n provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);\n }\n // 3.1.6.1 OrdinaryMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarymetadatakeys\n function OrdinaryMetadataKeys(O, P) {\n var ownKeys = OrdinaryOwnMetadataKeys(O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (parent === null)\n return ownKeys;\n var parentKeys = OrdinaryMetadataKeys(parent, P);\n if (parentKeys.length <= 0)\n return ownKeys;\n if (ownKeys.length <= 0)\n return parentKeys;\n var set = new _Set();\n var keys = [];\n for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {\n var key = ownKeys_1[_i];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) {\n var key = parentKeys_1[_a];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n return keys;\n }\n // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys\n function OrdinaryOwnMetadataKeys(O, P) {\n var provider = GetMetadataProvider(O, P, /*create*/ false);\n if (!provider) {\n return [];\n }\n return provider.OrdinaryOwnMetadataKeys(O, P);\n }\n // 6 ECMAScript Data Types and Values\n // https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values\n function Type(x) {\n if (x === null)\n return 1 /* Null */;\n switch (typeof x) {\n case \"undefined\": return 0 /* Undefined */;\n case \"boolean\": return 2 /* Boolean */;\n case \"string\": return 3 /* String */;\n case \"symbol\": return 4 /* Symbol */;\n case \"number\": return 5 /* Number */;\n case \"object\": return x === null ? 1 /* Null */ : 6 /* Object */;\n default: return 6 /* Object */;\n }\n }\n // 6.1.1 The Undefined Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type\n function IsUndefined(x) {\n return x === undefined;\n }\n // 6.1.2 The Null Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type\n function IsNull(x) {\n return x === null;\n }\n // 6.1.5 The Symbol Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type\n function IsSymbol(x) {\n return typeof x === \"symbol\";\n }\n // 6.1.7 The Object Type\n // https://tc39.github.io/ecma262/#sec-object-type\n function IsObject(x) {\n return typeof x === \"object\" ? x !== null : typeof x === \"function\";\n }\n // 7.1 Type Conversion\n // https://tc39.github.io/ecma262/#sec-type-conversion\n // 7.1.1 ToPrimitive(input [, PreferredType])\n // https://tc39.github.io/ecma262/#sec-toprimitive\n function ToPrimitive(input, PreferredType) {\n switch (Type(input)) {\n case 0 /* Undefined */: return input;\n case 1 /* Null */: return input;\n case 2 /* Boolean */: return input;\n case 3 /* String */: return input;\n case 4 /* Symbol */: return input;\n case 5 /* Number */: return input;\n }\n var hint = PreferredType === 3 /* String */ ? \"string\" : PreferredType === 5 /* Number */ ? \"number\" : \"default\";\n var exoticToPrim = GetMethod(input, toPrimitiveSymbol);\n if (exoticToPrim !== undefined) {\n var result = exoticToPrim.call(input, hint);\n if (IsObject(result))\n throw new TypeError();\n return result;\n }\n return OrdinaryToPrimitive(input, hint === \"default\" ? \"number\" : hint);\n }\n // 7.1.1.1 OrdinaryToPrimitive(O, hint)\n // https://tc39.github.io/ecma262/#sec-ordinarytoprimitive\n function OrdinaryToPrimitive(O, hint) {\n if (hint === \"string\") {\n var toString_1 = O.toString;\n if (IsCallable(toString_1)) {\n var result = toString_1.call(O);\n if (!IsObject(result))\n return result;\n }\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n else {\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n var toString_2 = O.toString;\n if (IsCallable(toString_2)) {\n var result = toString_2.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n throw new TypeError();\n }\n // 7.1.2 ToBoolean(argument)\n // https://tc39.github.io/ecma262/2016/#sec-toboolean\n function ToBoolean(argument) {\n return !!argument;\n }\n // 7.1.12 ToString(argument)\n // https://tc39.github.io/ecma262/#sec-tostring\n function ToString(argument) {\n return \"\" + argument;\n }\n // 7.1.14 ToPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-topropertykey\n function ToPropertyKey(argument) {\n var key = ToPrimitive(argument, 3 /* String */);\n if (IsSymbol(key))\n return key;\n return ToString(key);\n }\n // 7.2 Testing and Comparison Operations\n // https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations\n // 7.2.2 IsArray(argument)\n // https://tc39.github.io/ecma262/#sec-isarray\n function IsArray(argument) {\n return Array.isArray\n ? Array.isArray(argument)\n : argument instanceof Object\n ? argument instanceof Array\n : Object.prototype.toString.call(argument) === \"[object Array]\";\n }\n // 7.2.3 IsCallable(argument)\n // https://tc39.github.io/ecma262/#sec-iscallable\n function IsCallable(argument) {\n // NOTE: This is an approximation as we cannot check for [[Call]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.4 IsConstructor(argument)\n // https://tc39.github.io/ecma262/#sec-isconstructor\n function IsConstructor(argument) {\n // NOTE: This is an approximation as we cannot check for [[Construct]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.7 IsPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-ispropertykey\n function IsPropertyKey(argument) {\n switch (Type(argument)) {\n case 3 /* String */: return true;\n case 4 /* Symbol */: return true;\n default: return false;\n }\n }\n function SameValueZero(x, y) {\n return x === y || x !== x && y !== y;\n }\n // 7.3 Operations on Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-objects\n // 7.3.9 GetMethod(V, P)\n // https://tc39.github.io/ecma262/#sec-getmethod\n function GetMethod(V, P) {\n var func = V[P];\n if (func === undefined || func === null)\n return undefined;\n if (!IsCallable(func))\n throw new TypeError();\n return func;\n }\n // 7.4 Operations on Iterator Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects\n function GetIterator(obj) {\n var method = GetMethod(obj, iteratorSymbol);\n if (!IsCallable(method))\n throw new TypeError(); // from Call\n var iterator = method.call(obj);\n if (!IsObject(iterator))\n throw new TypeError();\n return iterator;\n }\n // 7.4.4 IteratorValue(iterResult)\n // https://tc39.github.io/ecma262/2016/#sec-iteratorvalue\n function IteratorValue(iterResult) {\n return iterResult.value;\n }\n // 7.4.5 IteratorStep(iterator)\n // https://tc39.github.io/ecma262/#sec-iteratorstep\n function IteratorStep(iterator) {\n var result = iterator.next();\n return result.done ? false : result;\n }\n // 7.4.6 IteratorClose(iterator, completion)\n // https://tc39.github.io/ecma262/#sec-iteratorclose\n function IteratorClose(iterator) {\n var f = iterator[\"return\"];\n if (f)\n f.call(iterator);\n }\n // 9.1 Ordinary Object Internal Methods and Internal Slots\n // https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots\n // 9.1.1.1 OrdinaryGetPrototypeOf(O)\n // https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof\n function OrdinaryGetPrototypeOf(O) {\n var proto = Object.getPrototypeOf(O);\n if (typeof O !== \"function\" || O === functionPrototype)\n return proto;\n // TypeScript doesn't set __proto__ in ES5, as it's non-standard.\n // Try to determine the superclass constructor. Compatible implementations\n // must either set __proto__ on a subclass constructor to the superclass constructor,\n // or ensure each class has a valid `constructor` property on its prototype that\n // points back to the constructor.\n // If this is not the same as Function.[[Prototype]], then this is definately inherited.\n // This is the case when in ES6 or when using __proto__ in a compatible browser.\n if (proto !== functionPrototype)\n return proto;\n // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.\n var prototype = O.prototype;\n var prototypeProto = prototype && Object.getPrototypeOf(prototype);\n if (prototypeProto == null || prototypeProto === Object.prototype)\n return proto;\n // If the constructor was not a function, then we cannot determine the heritage.\n var constructor = prototypeProto.constructor;\n if (typeof constructor !== \"function\")\n return proto;\n // If we have some kind of self-reference, then we cannot determine the heritage.\n if (constructor === O)\n return proto;\n // we have a pretty good guess at the heritage.\n return constructor;\n }\n // Global metadata registry\n // - Allows `import \"reflect-metadata\"` and `import \"reflect-metadata/no-conflict\"` to interoperate.\n // - Uses isolated metadata if `Reflect` is frozen before the registry can be installed.\n /**\n * Creates a registry used to allow multiple `reflect-metadata` providers.\n */\n function CreateMetadataRegistry() {\n var fallback;\n if (!IsUndefined(registrySymbol) &&\n typeof root.Reflect !== \"undefined\" &&\n !(registrySymbol in root.Reflect) &&\n typeof root.Reflect.defineMetadata === \"function\") {\n // interoperate with older version of `reflect-metadata` that did not support a registry.\n fallback = CreateFallbackProvider(root.Reflect);\n }\n var first;\n var second;\n var rest;\n var targetProviderMap = new _WeakMap();\n var registry = {\n registerProvider: registerProvider,\n getProvider: getProvider,\n setProvider: setProvider,\n };\n return registry;\n function registerProvider(provider) {\n if (!Object.isExtensible(registry)) {\n throw new Error(\"Cannot add provider to a frozen registry.\");\n }\n switch (true) {\n case fallback === provider: break;\n case IsUndefined(first):\n first = provider;\n break;\n case first === provider: break;\n case IsUndefined(second):\n second = provider;\n break;\n case second === provider: break;\n default:\n if (rest === undefined)\n rest = new _Set();\n rest.add(provider);\n break;\n }\n }\n function getProviderNoCache(O, P) {\n if (!IsUndefined(first)) {\n if (first.isProviderFor(O, P))\n return first;\n if (!IsUndefined(second)) {\n if (second.isProviderFor(O, P))\n return first;\n if (!IsUndefined(rest)) {\n var iterator = GetIterator(rest);\n while (true) {\n var next = IteratorStep(iterator);\n if (!next) {\n return undefined;\n }\n var provider = IteratorValue(next);\n if (provider.isProviderFor(O, P)) {\n IteratorClose(iterator);\n return provider;\n }\n }\n }\n }\n }\n if (!IsUndefined(fallback) && fallback.isProviderFor(O, P)) {\n return fallback;\n }\n return undefined;\n }\n function getProvider(O, P) {\n var providerMap = targetProviderMap.get(O);\n var provider;\n if (!IsUndefined(providerMap)) {\n provider = providerMap.get(P);\n }\n if (!IsUndefined(provider)) {\n return provider;\n }\n provider = getProviderNoCache(O, P);\n if (!IsUndefined(provider)) {\n if (IsUndefined(providerMap)) {\n providerMap = new _Map();\n targetProviderMap.set(O, providerMap);\n }\n providerMap.set(P, provider);\n }\n return provider;\n }\n function hasProvider(provider) {\n if (IsUndefined(provider))\n throw new TypeError();\n return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);\n }\n function setProvider(O, P, provider) {\n if (!hasProvider(provider)) {\n throw new Error(\"Metadata provider not registered.\");\n }\n var existingProvider = getProvider(O, P);\n if (existingProvider !== provider) {\n if (!IsUndefined(existingProvider)) {\n return false;\n }\n var providerMap = targetProviderMap.get(O);\n if (IsUndefined(providerMap)) {\n providerMap = new _Map();\n targetProviderMap.set(O, providerMap);\n }\n providerMap.set(P, provider);\n }\n return true;\n }\n }\n /**\n * Gets or creates the shared registry of metadata providers.\n */\n function GetOrCreateMetadataRegistry() {\n var metadataRegistry;\n if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {\n metadataRegistry = root.Reflect[registrySymbol];\n }\n if (IsUndefined(metadataRegistry)) {\n metadataRegistry = CreateMetadataRegistry();\n }\n if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {\n Object.defineProperty(root.Reflect, registrySymbol, {\n enumerable: false,\n configurable: false,\n writable: false,\n value: metadataRegistry\n });\n }\n return metadataRegistry;\n }\n function CreateMetadataProvider(registry) {\n // [[Metadata]] internal slot\n // https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots\n var metadata = new _WeakMap();\n var provider = {\n isProviderFor: function (O, P) {\n var targetMetadata = metadata.get(O);\n if (IsUndefined(targetMetadata))\n return false;\n return targetMetadata.has(P);\n },\n OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata,\n OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata,\n OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata,\n OrdinaryOwnMetadataKeys: OrdinaryOwnMetadataKeys,\n OrdinaryDeleteMetadata: OrdinaryDeleteMetadata,\n };\n metadataRegistry.registerProvider(provider);\n return provider;\n function GetOrCreateMetadataMap(O, P, Create) {\n var targetMetadata = metadata.get(O);\n var createdTargetMetadata = false;\n if (IsUndefined(targetMetadata)) {\n if (!Create)\n return undefined;\n targetMetadata = new _Map();\n metadata.set(O, targetMetadata);\n createdTargetMetadata = true;\n }\n var metadataMap = targetMetadata.get(P);\n if (IsUndefined(metadataMap)) {\n if (!Create)\n return undefined;\n metadataMap = new _Map();\n targetMetadata.set(P, metadataMap);\n if (!registry.setProvider(O, P, provider)) {\n targetMetadata.delete(P);\n if (createdTargetMetadata) {\n metadata.delete(O);\n }\n throw new Error(\"Wrong provider for target.\");\n }\n }\n return metadataMap;\n }\n // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata\n function OrdinaryHasOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n return ToBoolean(metadataMap.has(MetadataKey));\n }\n // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata\n function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }\n // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata\n function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ true);\n metadataMap.set(MetadataKey, MetadataValue);\n }\n // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys\n function OrdinaryOwnMetadataKeys(O, P) {\n var keys = [];\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return keys;\n var keysObj = metadataMap.keys();\n var iterator = GetIterator(keysObj);\n var k = 0;\n while (true) {\n var next = IteratorStep(iterator);\n if (!next) {\n keys.length = k;\n return keys;\n }\n var nextValue = IteratorValue(next);\n try {\n keys[k] = nextValue;\n }\n catch (e) {\n try {\n IteratorClose(iterator);\n }\n finally {\n throw e;\n }\n }\n k++;\n }\n }\n function OrdinaryDeleteMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n if (!metadataMap.delete(MetadataKey))\n return false;\n if (metadataMap.size === 0) {\n var targetMetadata = metadata.get(O);\n if (!IsUndefined(targetMetadata)) {\n targetMetadata.delete(P);\n if (targetMetadata.size === 0) {\n metadata.delete(targetMetadata);\n }\n }\n }\n return true;\n }\n }\n function CreateFallbackProvider(reflect) {\n var defineMetadata = reflect.defineMetadata, hasOwnMetadata = reflect.hasOwnMetadata, getOwnMetadata = reflect.getOwnMetadata, getOwnMetadataKeys = reflect.getOwnMetadataKeys, deleteMetadata = reflect.deleteMetadata;\n var metadataOwner = new _WeakMap();\n var provider = {\n isProviderFor: function (O, P) {\n var metadataPropertySet = metadataOwner.get(O);\n if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) {\n return true;\n }\n if (getOwnMetadataKeys(O, P).length) {\n if (IsUndefined(metadataPropertySet)) {\n metadataPropertySet = new _Set();\n metadataOwner.set(O, metadataPropertySet);\n }\n metadataPropertySet.add(P);\n return true;\n }\n return false;\n },\n OrdinaryDefineOwnMetadata: defineMetadata,\n OrdinaryHasOwnMetadata: hasOwnMetadata,\n OrdinaryGetOwnMetadata: getOwnMetadata,\n OrdinaryOwnMetadataKeys: getOwnMetadataKeys,\n OrdinaryDeleteMetadata: deleteMetadata,\n };\n return provider;\n }\n /**\n * Gets the metadata provider for an object. If the object has no metadata provider and this is for a create operation,\n * then this module's metadata provider is assigned to the object.\n */\n function GetMetadataProvider(O, P, Create) {\n var registeredProvider = metadataRegistry.getProvider(O, P);\n if (!IsUndefined(registeredProvider)) {\n return registeredProvider;\n }\n if (Create) {\n if (metadataRegistry.setProvider(O, P, metadataProvider)) {\n return metadataProvider;\n }\n throw new Error(\"Illegal state.\");\n }\n return undefined;\n }\n // naive Map shim\n function CreateMapPolyfill() {\n var cacheSentinel = {};\n var arraySentinel = [];\n var MapIterator = /** @class */ (function () {\n function MapIterator(keys, values, selector) {\n this._index = 0;\n this._keys = keys;\n this._values = values;\n this._selector = selector;\n }\n MapIterator.prototype[\"@@iterator\"] = function () { return this; };\n MapIterator.prototype[iteratorSymbol] = function () { return this; };\n MapIterator.prototype.next = function () {\n var index = this._index;\n if (index >= 0 && index < this._keys.length) {\n var result = this._selector(this._keys[index], this._values[index]);\n if (index + 1 >= this._keys.length) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n else {\n this._index++;\n }\n return { value: result, done: false };\n }\n return { value: undefined, done: true };\n };\n MapIterator.prototype.throw = function (error) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n throw error;\n };\n MapIterator.prototype.return = function (value) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n return { value: value, done: true };\n };\n return MapIterator;\n }());\n var Map = /** @class */ (function () {\n function Map() {\n this._keys = [];\n this._values = [];\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n Object.defineProperty(Map.prototype, \"size\", {\n get: function () { return this._keys.length; },\n enumerable: true,\n configurable: true\n });\n Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };\n Map.prototype.get = function (key) {\n var index = this._find(key, /*insert*/ false);\n return index >= 0 ? this._values[index] : undefined;\n };\n Map.prototype.set = function (key, value) {\n var index = this._find(key, /*insert*/ true);\n this._values[index] = value;\n return this;\n };\n Map.prototype.delete = function (key) {\n var index = this._find(key, /*insert*/ false);\n if (index >= 0) {\n var size = this._keys.length;\n for (var i = index + 1; i < size; i++) {\n this._keys[i - 1] = this._keys[i];\n this._values[i - 1] = this._values[i];\n }\n this._keys.length--;\n this._values.length--;\n if (SameValueZero(key, this._cacheKey)) {\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n return true;\n }\n return false;\n };\n Map.prototype.clear = function () {\n this._keys.length = 0;\n this._values.length = 0;\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n };\n Map.prototype.keys = function () { return new MapIterator(this._keys, this._values, getKey); };\n Map.prototype.values = function () { return new MapIterator(this._keys, this._values, getValue); };\n Map.prototype.entries = function () { return new MapIterator(this._keys, this._values, getEntry); };\n Map.prototype[\"@@iterator\"] = function () { return this.entries(); };\n Map.prototype[iteratorSymbol] = function () { return this.entries(); };\n Map.prototype._find = function (key, insert) {\n if (!SameValueZero(this._cacheKey, key)) {\n this._cacheIndex = -1;\n for (var i = 0; i < this._keys.length; i++) {\n if (SameValueZero(this._keys[i], key)) {\n this._cacheIndex = i;\n break;\n }\n }\n }\n if (this._cacheIndex < 0 && insert) {\n this._cacheIndex = this._keys.length;\n this._keys.push(key);\n this._values.push(undefined);\n }\n return this._cacheIndex;\n };\n return Map;\n }());\n return Map;\n function getKey(key, _) {\n return key;\n }\n function getValue(_, value) {\n return value;\n }\n function getEntry(key, value) {\n return [key, value];\n }\n }\n // naive Set shim\n function CreateSetPolyfill() {\n var Set = /** @class */ (function () {\n function Set() {\n this._map = new _Map();\n }\n Object.defineProperty(Set.prototype, \"size\", {\n get: function () { return this._map.size; },\n enumerable: true,\n configurable: true\n });\n Set.prototype.has = function (value) { return this._map.has(value); };\n Set.prototype.add = function (value) { return this._map.set(value, value), this; };\n Set.prototype.delete = function (value) { return this._map.delete(value); };\n Set.prototype.clear = function () { this._map.clear(); };\n Set.prototype.keys = function () { return this._map.keys(); };\n Set.prototype.values = function () { return this._map.keys(); };\n Set.prototype.entries = function () { return this._map.entries(); };\n Set.prototype[\"@@iterator\"] = function () { return this.keys(); };\n Set.prototype[iteratorSymbol] = function () { return this.keys(); };\n return Set;\n }());\n return Set;\n }\n // naive WeakMap shim\n function CreateWeakMapPolyfill() {\n var UUID_SIZE = 16;\n var keys = HashMap.create();\n var rootKey = CreateUniqueKey();\n return /** @class */ (function () {\n function WeakMap() {\n this._key = CreateUniqueKey();\n }\n WeakMap.prototype.has = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.has(table, this._key) : false;\n };\n WeakMap.prototype.get = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.get(table, this._key) : undefined;\n };\n WeakMap.prototype.set = function (target, value) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ true);\n table[this._key] = value;\n return this;\n };\n WeakMap.prototype.delete = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? delete table[this._key] : false;\n };\n WeakMap.prototype.clear = function () {\n // NOTE: not a real clear, just makes the previous data unreachable\n this._key = CreateUniqueKey();\n };\n return WeakMap;\n }());\n function CreateUniqueKey() {\n var key;\n do\n key = \"@@WeakMap@@\" + CreateUUID();\n while (HashMap.has(keys, key));\n keys[key] = true;\n return key;\n }\n function GetOrCreateWeakMapTable(target, create) {\n if (!hasOwn.call(target, rootKey)) {\n if (!create)\n return undefined;\n Object.defineProperty(target, rootKey, { value: HashMap.create() });\n }\n return target[rootKey];\n }\n function FillRandomBytes(buffer, size) {\n for (var i = 0; i < size; ++i)\n buffer[i] = Math.random() * 0xff | 0;\n return buffer;\n }\n function GenRandomBytes(size) {\n if (typeof Uint8Array === \"function\") {\n var array = new Uint8Array(size);\n if (typeof crypto !== \"undefined\") {\n crypto.getRandomValues(array);\n }\n else if (typeof msCrypto !== \"undefined\") {\n msCrypto.getRandomValues(array);\n }\n else {\n FillRandomBytes(array, size);\n }\n return array;\n }\n return FillRandomBytes(new Array(size), size);\n }\n function CreateUUID() {\n var data = GenRandomBytes(UUID_SIZE);\n // mark as random - RFC 4122 § 4.4\n data[6] = data[6] & 0x4f | 0x40;\n data[8] = data[8] & 0xbf | 0x80;\n var result = \"\";\n for (var offset = 0; offset < UUID_SIZE; ++offset) {\n var byte = data[offset];\n if (offset === 4 || offset === 6 || offset === 8)\n result += \"-\";\n if (byte < 16)\n result += \"0\";\n result += byte.toString(16).toLowerCase();\n }\n return result;\n }\n }\n // uses a heuristic used by v8 and chakra to force an object into dictionary mode.\n function MakeDictionary(obj) {\n obj.__ = undefined;\n delete obj.__;\n return obj;\n }\n });\n})(Reflect || (Reflect = {}));\n",
6
+ "'use strict';\n\n/** @type {import('./type')} */\nmodule.exports = TypeError;\n",
7
+ "var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n ? Symbol.toStringTag\n : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nfunction addNumericSeparator(num, str) {\n if (\n num === Infinity\n || num === -Infinity\n || num !== num\n || (num && num > -1000 && num < 1000)\n || $test.call(/e/, str)\n ) {\n return str;\n }\n var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n if (typeof num === 'number') {\n var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n if (int !== num) {\n var intStr = String(int);\n var dec = $slice.call(str, intStr.length + 1);\n return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n }\n }\n return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = require('./util.inspect');\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nvar quotes = {\n __proto__: null,\n 'double': '\"',\n single: \"'\"\n};\nvar quoteREs = {\n __proto__: null,\n 'double': /([\"\\\\])/g,\n single: /(['\\\\])/g\n};\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n }\n var numericSeparator = opts.numericSeparator;\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n var str = String(obj);\n return numericSeparator ? addNumericSeparator(obj, str) : str;\n }\n if (typeof obj === 'bigint') {\n var bigIntStr = String(obj) + 'n';\n return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = $arrSlice.call(seen);\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + $toLowerCase.call(String(obj.nodeName));\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + $join.call(xs, ', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n }\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n return utilInspect(obj, { depth: maxDepth - depth });\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n if (mapForEach) {\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n }\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n if (setForEach) {\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n }\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other\n /* eslint-env browser */\n if (typeof window !== 'undefined' && obj === window) {\n return '{ [object Window] }';\n }\n if (\n (typeof globalThis !== 'undefined' && obj === globalThis)\n || (typeof global !== 'undefined' && obj === global)\n ) {\n return '{ [object globalThis] }';\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + $join.call(ys, ', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var style = opts.quoteStyle || defaultStyle;\n var quoteChar = quotes[style];\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return $replace.call(String(s), /\"/g, '&quot;');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n }\n var quoteRE = quoteREs[opts.quoteStyle || 'single'];\n quoteRE.lastIndex = 0;\n // eslint-disable-next-line no-control-regex\n var s = $replace.call($replace.call(str, quoteRE, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = $join.call(Array(opts.indent + 1), ' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: $join.call(Array(depth + 1), baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ($test.call(/[^\\w$]/, key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n",
8
+ "'use strict';\n\nvar inspect = require('object-inspect');\n\nvar $TypeError = require('es-errors/type');\n\n/*\n* This function traverses the list returning the node corresponding to the given key.\n*\n* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.\n* By doing so, all the recently used nodes can be accessed relatively quickly.\n*/\n/** @type {import('./list.d.ts').listGetNode} */\n// eslint-disable-next-line consistent-return\nvar listGetNode = function (list, key, isDelete) {\n\t/** @type {typeof list | NonNullable<(typeof list)['next']>} */\n\tvar prev = list;\n\t/** @type {(typeof list)['next']} */\n\tvar curr;\n\t// eslint-disable-next-line eqeqeq\n\tfor (; (curr = prev.next) != null; prev = curr) {\n\t\tif (curr.key === key) {\n\t\t\tprev.next = curr.next;\n\t\t\tif (!isDelete) {\n\t\t\t\t// eslint-disable-next-line no-extra-parens\n\t\t\t\tcurr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);\n\t\t\t\tlist.next = curr; // eslint-disable-line no-param-reassign\n\t\t\t}\n\t\t\treturn curr;\n\t\t}\n\t}\n};\n\n/** @type {import('./list.d.ts').listGet} */\nvar listGet = function (objects, key) {\n\tif (!objects) {\n\t\treturn void undefined;\n\t}\n\tvar node = listGetNode(objects, key);\n\treturn node && node.value;\n};\n/** @type {import('./list.d.ts').listSet} */\nvar listSet = function (objects, key, value) {\n\tvar node = listGetNode(objects, key);\n\tif (node) {\n\t\tnode.value = value;\n\t} else {\n\t\t// Prepend the new node to the beginning of the list\n\t\tobjects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens\n\t\t\tkey: key,\n\t\t\tnext: objects.next,\n\t\t\tvalue: value\n\t\t});\n\t}\n};\n/** @type {import('./list.d.ts').listHas} */\nvar listHas = function (objects, key) {\n\tif (!objects) {\n\t\treturn false;\n\t}\n\treturn !!listGetNode(objects, key);\n};\n/** @type {import('./list.d.ts').listDelete} */\n// eslint-disable-next-line consistent-return\nvar listDelete = function (objects, key) {\n\tif (objects) {\n\t\treturn listGetNode(objects, key, true);\n\t}\n};\n\n/** @type {import('.')} */\nmodule.exports = function getSideChannelList() {\n\t/** @typedef {ReturnType<typeof getSideChannelList>} Channel */\n\t/** @typedef {Parameters<Channel['get']>[0]} K */\n\t/** @typedef {Parameters<Channel['set']>[1]} V */\n\n\t/** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;\n\n\t/** @type {Channel} */\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\t'delete': function (key) {\n\t\t\tvar root = $o && $o.next;\n\t\t\tvar deletedNode = listDelete($o, key);\n\t\t\tif (deletedNode && root && root === deletedNode) {\n\t\t\t\t$o = void undefined;\n\t\t\t}\n\t\t\treturn !!deletedNode;\n\t\t},\n\t\tget: function (key) {\n\t\t\treturn listGet($o, key);\n\t\t},\n\t\thas: function (key) {\n\t\t\treturn listHas($o, key);\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif (!$o) {\n\t\t\t\t// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head\n\t\t\t\t$o = {\n\t\t\t\t\tnext: void undefined\n\t\t\t\t};\n\t\t\t}\n\t\t\t// eslint-disable-next-line no-extra-parens\n\t\t\tlistSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);\n\t\t}\n\t};\n\t// @ts-expect-error TODO: figure out why this is erroring\n\treturn channel;\n};\n",
9
+ "'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Object;\n",
10
+ "'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Error;\n",
11
+ "'use strict';\n\n/** @type {import('./eval')} */\nmodule.exports = EvalError;\n",
12
+ "'use strict';\n\n/** @type {import('./range')} */\nmodule.exports = RangeError;\n",
13
+ "'use strict';\n\n/** @type {import('./ref')} */\nmodule.exports = ReferenceError;\n",
14
+ "'use strict';\n\n/** @type {import('./syntax')} */\nmodule.exports = SyntaxError;\n",
15
+ "'use strict';\n\n/** @type {import('./uri')} */\nmodule.exports = URIError;\n",
16
+ "'use strict';\n\n/** @type {import('./abs')} */\nmodule.exports = Math.abs;\n",
17
+ "'use strict';\n\n/** @type {import('./floor')} */\nmodule.exports = Math.floor;\n",
18
+ "'use strict';\n\n/** @type {import('./max')} */\nmodule.exports = Math.max;\n",
19
+ "'use strict';\n\n/** @type {import('./min')} */\nmodule.exports = Math.min;\n",
20
+ "'use strict';\n\n/** @type {import('./pow')} */\nmodule.exports = Math.pow;\n",
21
+ "'use strict';\n\n/** @type {import('./round')} */\nmodule.exports = Math.round;\n",
22
+ "'use strict';\n\n/** @type {import('./isNaN')} */\nmodule.exports = Number.isNaN || function isNaN(a) {\n\treturn a !== a;\n};\n",
23
+ "'use strict';\n\nvar $isNaN = require('./isNaN');\n\n/** @type {import('./sign')} */\nmodule.exports = function sign(number) {\n\tif ($isNaN(number) || number === 0) {\n\t\treturn number;\n\t}\n\treturn number < 0 ? -1 : +1;\n};\n",
24
+ "'use strict';\n\n/** @type {import('./gOPD')} */\nmodule.exports = Object.getOwnPropertyDescriptor;\n",
25
+ "'use strict';\n\n/** @type {import('.')} */\nvar $gOPD = require('./gOPD');\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n",
26
+ "'use strict';\n\n/** @type {import('.')} */\nvar $defineProperty = Object.defineProperty || false;\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = false;\n\t}\n}\n\nmodule.exports = $defineProperty;\n",
27
+ "'use strict';\n\n/** @type {import('./shams')} */\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\t/** @type {{ [k in symbol]?: unknown }} */\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\t// eslint-disable-next-line no-extra-parens\n\t\tvar descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n",
28
+ "'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\n/** @type {import('.')} */\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n",
29
+ "'use strict';\n\n/** @type {import('./Reflect.getPrototypeOf')} */\nmodule.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;\n",
30
+ "'use strict';\n\nvar $Object = require('es-object-atoms');\n\n/** @type {import('./Object.getPrototypeOf')} */\nmodule.exports = $Object.getPrototypeOf || null;\n",
31
+ "'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n var arr = [];\n\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n\n return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n};\n\nvar joiny = function (arr, joiner) {\n var str = '';\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n};\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n\n };\n\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = '$' + i;\n }\n\n bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n",
32
+ "'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n",
33
+ "'use strict';\n\n/** @type {import('./functionCall')} */\nmodule.exports = Function.prototype.call;\n",
34
+ "'use strict';\n\n/** @type {import('./functionApply')} */\nmodule.exports = Function.prototype.apply;\n",
35
+ "'use strict';\n\n/** @type {import('./reflectApply')} */\nmodule.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;\n",
36
+ "'use strict';\n\nvar bind = require('function-bind');\n\nvar $apply = require('./functionApply');\nvar $call = require('./functionCall');\nvar $reflectApply = require('./reflectApply');\n\n/** @type {import('./actualApply')} */\nmodule.exports = $reflectApply || bind.call($call, $apply);\n",
37
+ "'use strict';\n\nvar bind = require('function-bind');\nvar $TypeError = require('es-errors/type');\n\nvar $call = require('./functionCall');\nvar $actualApply = require('./actualApply');\n\n/** @type {import('.')} */\nmodule.exports = function callBindBasic(args) {\n\tif (args.length < 1 || typeof args[0] !== 'function') {\n\t\tthrow new $TypeError('a function is required');\n\t}\n\treturn $actualApply(bind, $call, args);\n};\n",
38
+ "'use strict';\n\nvar callBind = require('call-bind-apply-helpers');\nvar gOPD = require('gopd');\n\nvar hasProtoAccessor;\ntry {\n\t// eslint-disable-next-line no-extra-parens, no-proto\n\thasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;\n} catch (e) {\n\tif (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {\n\t\tthrow e;\n\t}\n}\n\n// eslint-disable-next-line no-extra-parens\nvar desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));\n\nvar $Object = Object;\nvar $getPrototypeOf = $Object.getPrototypeOf;\n\n/** @type {import('./get')} */\nmodule.exports = desc && typeof desc.get === 'function'\n\t? callBind([desc.get])\n\t: typeof $getPrototypeOf === 'function'\n\t\t? /** @type {import('./get')} */ function getDunder(value) {\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\treturn $getPrototypeOf(value == null ? value : $Object(value));\n\t\t}\n\t\t: false;\n",
39
+ "'use strict';\n\nvar reflectGetProto = require('./Reflect.getPrototypeOf');\nvar originalGetProto = require('./Object.getPrototypeOf');\n\nvar getDunderProto = require('dunder-proto/get');\n\n/** @type {import('.')} */\nmodule.exports = reflectGetProto\n\t? function getProto(O) {\n\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\treturn reflectGetProto(O);\n\t}\n\t: originalGetProto\n\t\t? function getProto(O) {\n\t\t\tif (!O || (typeof O !== 'object' && typeof O !== 'function')) {\n\t\t\t\tthrow new TypeError('getProto: not an object');\n\t\t\t}\n\t\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\t\treturn originalGetProto(O);\n\t\t}\n\t\t: getDunderProto\n\t\t\t? function getProto(O) {\n\t\t\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\t\t\treturn getDunderProto(O);\n\t\t\t}\n\t\t\t: null;\n",
40
+ "'use strict';\n\nvar call = Function.prototype.call;\nvar $hasOwn = Object.prototype.hasOwnProperty;\nvar bind = require('function-bind');\n\n/** @type {import('.')} */\nmodule.exports = bind.call(call, $hasOwn);\n",
41
+ "'use strict';\n\nvar undefined;\n\nvar $Object = require('es-object-atoms');\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar abs = require('math-intrinsics/abs');\nvar floor = require('math-intrinsics/floor');\nvar max = require('math-intrinsics/max');\nvar min = require('math-intrinsics/min');\nvar pow = require('math-intrinsics/pow');\nvar round = require('math-intrinsics/round');\nvar sign = require('math-intrinsics/sign');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = require('gopd');\nvar $defineProperty = require('es-define-property');\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\n\nvar getProto = require('get-proto');\nvar $ObjectGPO = require('get-proto/Object.getPrototypeOf');\nvar $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');\n\nvar $apply = require('call-bind-apply-helpers/functionApply');\nvar $call = require('call-bind-apply-helpers/functionCall');\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': $Object,\n\t'%Object.getOwnPropertyDescriptor%': $gOPD,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,\n\n\t'%Function.prototype.call%': $call,\n\t'%Function.prototype.apply%': $apply,\n\t'%Object.defineProperty%': $defineProperty,\n\t'%Object.getPrototypeOf%': $ObjectGPO,\n\t'%Math.abs%': abs,\n\t'%Math.floor%': floor,\n\t'%Math.max%': max,\n\t'%Math.min%': min,\n\t'%Math.pow%': pow,\n\t'%Math.round%': round,\n\t'%Math.sign%': sign,\n\t'%Reflect.getPrototypeOf%': $ReflectGPO\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call($call, Array.prototype.concat);\nvar $spliceApply = bind.call($apply, Array.prototype.splice);\nvar $replace = bind.call($call, String.prototype.replace);\nvar $strSlice = bind.call($call, String.prototype.slice);\nvar $exec = bind.call($call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n",
42
+ "'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBindBasic = require('call-bind-apply-helpers');\n\n/** @type {(thisArg: string, searchString: string, position?: number) => number} */\nvar $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);\n\n/** @type {import('.')} */\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\t// eslint-disable-next-line no-extra-parens\n\tvar intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic(name, !!allowMissing));\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBindBasic([intrinsic]);\n\t}\n\treturn intrinsic;\n};\n",
43
+ "'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar callBound = require('call-bound');\nvar inspect = require('object-inspect');\n\nvar $TypeError = require('es-errors/type');\nvar $Map = GetIntrinsic('%Map%', true);\n\n/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */\nvar $mapGet = callBound('Map.prototype.get', true);\n/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */\nvar $mapSet = callBound('Map.prototype.set', true);\n/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */\nvar $mapHas = callBound('Map.prototype.has', true);\n/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */\nvar $mapDelete = callBound('Map.prototype.delete', true);\n/** @type {<K, V>(thisArg: Map<K, V>) => number} */\nvar $mapSize = callBound('Map.prototype.size', true);\n\n/** @type {import('.')} */\nmodule.exports = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {\n\t/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */\n\t/** @typedef {Parameters<Channel['get']>[0]} K */\n\t/** @typedef {Parameters<Channel['set']>[1]} V */\n\n\t/** @type {Map<K, V> | undefined} */ var $m;\n\n\t/** @type {Channel} */\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\t'delete': function (key) {\n\t\t\tif ($m) {\n\t\t\t\tvar result = $mapDelete($m, key);\n\t\t\t\tif ($mapSize($m) === 0) {\n\t\t\t\t\t$m = void undefined;\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($m) {\n\t\t\t\treturn $mapGet($m, key);\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($m) {\n\t\t\t\treturn $mapHas($m, key);\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif (!$m) {\n\t\t\t\t// @ts-expect-error TS can't handle narrowing a variable inside a closure\n\t\t\t\t$m = new $Map();\n\t\t\t}\n\t\t\t$mapSet($m, key, value);\n\t\t}\n\t};\n\n\t// @ts-expect-error TODO: figure out why TS is erroring here\n\treturn channel;\n};\n",
44
+ "'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar callBound = require('call-bound');\nvar inspect = require('object-inspect');\nvar getSideChannelMap = require('side-channel-map');\n\nvar $TypeError = require('es-errors/type');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\n\n/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\n/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\n/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\n/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */\nvar $weakMapDelete = callBound('WeakMap.prototype.delete', true);\n\n/** @type {import('.')} */\nmodule.exports = $WeakMap\n\t? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {\n\t\t/** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */\n\t\t/** @typedef {Parameters<Channel['get']>[0]} K */\n\t\t/** @typedef {Parameters<Channel['set']>[1]} V */\n\n\t\t/** @type {WeakMap<K & object, V> | undefined} */ var $wm;\n\t\t/** @type {Channel | undefined} */ var $m;\n\n\t\t/** @type {Channel} */\n\t\tvar channel = {\n\t\t\tassert: function (key) {\n\t\t\t\tif (!channel.has(key)) {\n\t\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t\t}\n\t\t\t},\n\t\t\t'delete': function (key) {\n\t\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\t\tif ($wm) {\n\t\t\t\t\t\treturn $weakMapDelete($wm, key);\n\t\t\t\t\t}\n\t\t\t\t} else if (getSideChannelMap) {\n\t\t\t\t\tif ($m) {\n\t\t\t\t\t\treturn $m['delete'](key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t},\n\t\t\tget: function (key) {\n\t\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\t\tif ($wm) {\n\t\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn $m && $m.get(key);\n\t\t\t},\n\t\t\thas: function (key) {\n\t\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\t\tif ($wm) {\n\t\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn !!$m && $m.has(key);\n\t\t\t},\n\t\t\tset: function (key, value) {\n\t\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\t\tif (!$wm) {\n\t\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t\t}\n\t\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t\t} else if (getSideChannelMap) {\n\t\t\t\t\tif (!$m) {\n\t\t\t\t\t\t$m = getSideChannelMap();\n\t\t\t\t\t}\n\t\t\t\t\t// eslint-disable-next-line no-extra-parens\n\t\t\t\t\t/** @type {NonNullable<typeof $m>} */ ($m).set(key, value);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\t// @ts-expect-error TODO: figure out why this is erroring\n\t\treturn channel;\n\t}\n\t: getSideChannelMap;\n",
45
+ "'use strict';\n\nvar $TypeError = require('es-errors/type');\nvar inspect = require('object-inspect');\nvar getSideChannelList = require('side-channel-list');\nvar getSideChannelMap = require('side-channel-map');\nvar getSideChannelWeakMap = require('side-channel-weakmap');\n\nvar makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;\n\n/** @type {import('.')} */\nmodule.exports = function getSideChannel() {\n\t/** @typedef {ReturnType<typeof getSideChannel>} Channel */\n\n\t/** @type {Channel | undefined} */ var $channelData;\n\n\t/** @type {Channel} */\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\t'delete': function (key) {\n\t\t\treturn !!$channelData && $channelData['delete'](key);\n\t\t},\n\t\tget: function (key) {\n\t\t\treturn $channelData && $channelData.get(key);\n\t\t},\n\t\thas: function (key) {\n\t\t\treturn !!$channelData && $channelData.has(key);\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif (!$channelData) {\n\t\t\t\t$channelData = makeChannel();\n\t\t\t}\n\n\t\t\t$channelData.set(key, value);\n\t\t}\n\t};\n\t// @ts-expect-error TODO: figure out why this is erroring\n\treturn channel;\n};\n",
46
+ "'use strict';\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nvar Format = {\n RFC1738: 'RFC1738',\n RFC3986: 'RFC3986'\n};\n\nmodule.exports = {\n 'default': Format.RFC3986,\n formatters: {\n RFC1738: function (value) {\n return replace.call(value, percentTwenties, '+');\n },\n RFC3986: function (value) {\n return String(value);\n }\n },\n RFC1738: Format.RFC1738,\n RFC3986: Format.RFC3986\n};\n",
47
+ "'use strict';\n\nvar formats = require('./formats');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar hexTable = (function () {\n var array = [];\n for (var i = 0; i < 256; ++i) {\n array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n }\n\n return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n while (queue.length > 1) {\n var item = queue.pop();\n var obj = item.obj[item.prop];\n\n if (isArray(obj)) {\n var compacted = [];\n\n for (var j = 0; j < obj.length; ++j) {\n if (typeof obj[j] !== 'undefined') {\n compacted.push(obj[j]);\n }\n }\n\n item.obj[item.prop] = compacted;\n }\n }\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n var obj = options && options.plainObjects ? { __proto__: null } : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nvar merge = function merge(target, source, options) {\n /* eslint no-param-reassign: 0 */\n if (!source) {\n return target;\n }\n\n if (typeof source !== 'object' && typeof source !== 'function') {\n if (isArray(target)) {\n target.push(source);\n } else if (target && typeof target === 'object') {\n if (\n (options && (options.plainObjects || options.allowPrototypes))\n || !has.call(Object.prototype, source)\n ) {\n target[source] = true;\n }\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if (!target || typeof target !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (isArray(target) && !isArray(source)) {\n mergeTarget = arrayToObject(target, options);\n }\n\n if (isArray(target) && isArray(source)) {\n source.forEach(function (item, i) {\n if (has.call(target, i)) {\n var targetItem = target[i];\n if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n target[i] = merge(targetItem, item, options);\n } else {\n target.push(item);\n }\n } else {\n target[i] = item;\n }\n });\n return target;\n }\n\n return Object.keys(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (has.call(acc, key)) {\n acc[key] = merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n return Object.keys(source).reduce(function (acc, key) {\n acc[key] = source[key];\n return acc;\n }, target);\n};\n\nvar decode = function (str, defaultDecoder, charset) {\n var strWithoutPlus = str.replace(/\\+/g, ' ');\n if (charset === 'iso-8859-1') {\n // unescape never throws, no try...catch needed:\n return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);\n }\n // utf-8\n try {\n return decodeURIComponent(strWithoutPlus);\n } catch (e) {\n return strWithoutPlus;\n }\n};\n\nvar limit = 1024;\n\n/* eslint operator-linebreak: [2, \"before\"] */\n\nvar encode = function encode(str, defaultEncoder, charset, kind, format) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = str;\n if (typeof str === 'symbol') {\n string = Symbol.prototype.toString.call(str);\n } else if (typeof str !== 'string') {\n string = String(str);\n }\n\n if (charset === 'iso-8859-1') {\n return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {\n return '%26%23' + parseInt($0.slice(2), 16) + '%3B';\n });\n }\n\n var out = '';\n for (var j = 0; j < string.length; j += limit) {\n var segment = string.length >= limit ? string.slice(j, j + limit) : string;\n var arr = [];\n\n for (var i = 0; i < segment.length; ++i) {\n var c = segment.charCodeAt(i);\n if (\n c === 0x2D // -\n || c === 0x2E // .\n || c === 0x5F // _\n || c === 0x7E // ~\n || (c >= 0x30 && c <= 0x39) // 0-9\n || (c >= 0x41 && c <= 0x5A) // a-z\n || (c >= 0x61 && c <= 0x7A) // A-Z\n || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )\n ) {\n arr[arr.length] = segment.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n arr[arr.length] = hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n arr[arr.length] = hexTable[0xC0 | (c >> 6)]\n + hexTable[0x80 | (c & 0x3F)];\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n arr[arr.length] = hexTable[0xE0 | (c >> 12)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n continue;\n }\n\n i += 1;\n c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));\n\n arr[arr.length] = hexTable[0xF0 | (c >> 18)]\n + hexTable[0x80 | ((c >> 12) & 0x3F)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n }\n\n out += arr.join('');\n }\n\n return out;\n};\n\nvar compact = function compact(value) {\n var queue = [{ obj: { o: value }, prop: 'o' }];\n var refs = [];\n\n for (var i = 0; i < queue.length; ++i) {\n var item = queue[i];\n var obj = item.obj[item.prop];\n\n var keys = Object.keys(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n var val = obj[key];\n if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n queue.push({ obj: obj, prop: key });\n refs.push(val);\n }\n }\n }\n\n compactQueue(queue);\n\n return value;\n};\n\nvar isRegExp = function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n if (!obj || typeof obj !== 'object') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nvar combine = function combine(a, b) {\n return [].concat(a, b);\n};\n\nvar maybeMap = function maybeMap(val, fn) {\n if (isArray(val)) {\n var mapped = [];\n for (var i = 0; i < val.length; i += 1) {\n mapped.push(fn(val[i]));\n }\n return mapped;\n }\n return fn(val);\n};\n\nmodule.exports = {\n arrayToObject: arrayToObject,\n assign: assign,\n combine: combine,\n compact: compact,\n decode: decode,\n encode: encode,\n isBuffer: isBuffer,\n isRegExp: isRegExp,\n maybeMap: maybeMap,\n merge: merge\n};\n",
48
+ "'use strict';\n\nvar getSideChannel = require('side-channel');\nvar utils = require('./utils');\nvar formats = require('./formats');\nvar has = Object.prototype.hasOwnProperty;\n\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\n\nvar isArray = Array.isArray;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n allowEmptyArrays: false,\n arrayFormat: 'indices',\n charset: 'utf-8',\n charsetSentinel: false,\n commaRoundTrip: false,\n delimiter: '&',\n encode: true,\n encodeDotInKeys: false,\n encoder: utils.encode,\n encodeValuesOnly: false,\n filter: void undefined,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string'\n || typeof v === 'number'\n || typeof v === 'boolean'\n || typeof v === 'symbol'\n || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(\n object,\n prefix,\n generateArrayPrefix,\n commaRoundTrip,\n allowEmptyArrays,\n strictNullHandling,\n skipNulls,\n encodeDotInKeys,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n sideChannel\n) {\n var obj = object;\n\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n if (encodeValuesOnly && encoder) {\n obj = utils.maybeMap(obj, encoder);\n }\n objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\\./g, '%2E') : String(prefix);\n\n var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;\n\n if (allowEmptyArrays && isArray(obj) && obj.length === 0) {\n return adjustedPrefix + '[]';\n }\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && key && typeof key.value !== 'undefined'\n ? key.value\n : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\\./g, '%2E') : String(key);\n var keyPrefix = isArray(obj)\n ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix\n : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');\n\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(\n value,\n keyPrefix,\n generateArrayPrefix,\n commaRoundTrip,\n allowEmptyArrays,\n strictNullHandling,\n skipNulls,\n encodeDotInKeys,\n generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n valueSideChannel\n ));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {\n throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');\n }\n\n if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {\n throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');\n }\n\n if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n format = opts.format;\n }\n var formatter = formats.formatters[format];\n\n var filter = defaults.filter;\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n var arrayFormat;\n if (opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if ('indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = defaults.arrayFormat;\n }\n\n if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {\n throw new TypeError('`commaRoundTrip` must be a boolean, or absent');\n }\n\n var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: allowDots,\n allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,\n arrayFormat: arrayFormat,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n commaRoundTrip: !!opts.commaRoundTrip,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];\n var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip;\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n var value = obj[key];\n\n if (options.skipNulls && value === null) {\n continue;\n }\n pushToArray(keys, stringify(\n value,\n key,\n generateArrayPrefix,\n commaRoundTrip,\n options.allowEmptyArrays,\n options.strictNullHandling,\n options.skipNulls,\n options.encodeDotInKeys,\n options.encode ? options.encoder : null,\n options.filter,\n options.sort,\n options.allowDots,\n options.serializeDate,\n options.format,\n options.formatter,\n options.encodeValuesOnly,\n options.charset,\n sideChannel\n ));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('&#10003;'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('✓')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n",
49
+ "'use strict';\n\nvar utils = require('./utils');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar defaults = {\n allowDots: false,\n allowEmptyArrays: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decodeDotInKeys: false,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n duplicates: 'combine',\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictDepth: false,\n strictNullHandling: false,\n throwOnLimitExceeded: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/&#(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options, currentArrayLength) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {\n throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');\n }\n\n return val;\n};\n\n// This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')\n\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = { __proto__: null };\n\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');\n\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(\n options.delimiter,\n options.throwOnLimitExceeded ? limit + 1 : limit\n );\n\n if (options.throwOnLimitExceeded && parts.length > limit) {\n throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');\n }\n\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n var i;\n\n var charset = options.charset;\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n var part = parts[i];\n\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n var key;\n var val;\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n\n val = utils.maybeMap(\n parseArrayValue(\n part.slice(pos + 1),\n options,\n isArray(obj[key]) ? obj[key].length : 0\n ),\n function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n }\n );\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(String(val));\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n var existing = has.call(obj, key);\n if (existing && options.duplicates === 'combine') {\n obj[key] = utils.combine(obj[key], val);\n } else if (!existing || options.duplicates === 'last') {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var currentArrayLength = 0;\n if (chain.length > 0 && chain[chain.length - 1] === '[]') {\n var parentKey = chain.slice(0, -1).join('');\n currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;\n }\n\n var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))\n ? []\n : utils.combine([], leaf);\n } else {\n obj = options.plainObjects ? { __proto__: null } : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;\n var index = parseInt(decodedRoot, 10);\n if (!options.parseArrays && decodedRoot === '') {\n obj = { 0: leaf };\n } else if (\n !isNaN(index)\n && root !== decodedRoot\n && String(index) === decodedRoot\n && index >= 0\n && (options.parseArrays && index <= options.arrayLimit)\n ) {\n obj = [];\n obj[index] = leaf;\n } else if (decodedRoot !== '__proto__') {\n obj[decodedRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g;\n\n // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key;\n\n // Stash the parent if it exists\n\n var keys = [];\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, check strictDepth option for throw, else just add whatever is left\n\n if (segment) {\n if (options.strictDepth === true) {\n throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');\n }\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {\n throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');\n }\n\n if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {\n throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');\n }\n\n if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') {\n throw new TypeError('`throwOnLimitExceeded` option must be a boolean');\n }\n\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n\n var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;\n\n if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {\n throw new TypeError('The duplicates option must be either combine, first, or last');\n }\n\n var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;\n\n return {\n allowDots: allowDots,\n allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,\n duplicates: duplicates,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,\n throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? { __proto__: null } : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? { __proto__: null } : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n",
50
+ "'use strict';\n\nvar stringify = require('./stringify');\nvar parse = require('./parse');\nvar formats = require('./formats');\n\nmodule.exports = {\n formats: formats,\n parse: parse,\n stringify: stringify\n};\n",
51
+ "import \"reflect-metadata\";\n\nexport type { THttpRouteModel } from \"./entities\";\n\nexport * from \"./decorators\";\nexport * from \"./http\";\nexport * from \"./interfaces\";\nexport * as Keys from \"./keys\";\nexport * from \"./producers\";\n",
52
+ "export const argumentsKey = Symbol(\"__bool:arguments__\");\nexport const webSocketEventArgumentsKey = Symbol(\"__bool:webSocketEventArguments__\");\nexport const configKey = Symbol(\"__bool:config__\");\nexport const controllerKey = Symbol(\"__bool:controller__\");\nexport const interceptorKey = Symbol(\"__bool:interceptor__\");\nexport const guardKey = Symbol(\"__bool:guard__\");\nexport const controllerHttpKey = Symbol(\"__bool:controller.http__\");\nexport const injectKey = Symbol(\"__bool:inject__\");\nexport const injectableKey = Symbol(\"__bool:injectable__\");\nexport const middlewareKey = Symbol(\"__bool:middleware__\");\nexport const moduleKey = Symbol(\"__bool:module__\");\nexport const containerKey = Symbol(\"__bool:container__\");\nexport const zodSchemaKey = Symbol(\"__bool:zodSchema__\");\nexport const webSocketKey = Symbol(\"__bool:webSocket__\");\nexport const webSocketEventKey = Symbol(\"__bool:webSocket:event__\");\n\nexport const webSocketServerArgsKey = Symbol(\"__bool:webSocketArguments:server__\");\nexport const webSocketConnectionArgsKey = Symbol(\"__bool:webSocketArguments:connection__\");\nexport const webSocketMessageArgsKey = Symbol(\"__bool:webSocketArguments:message__\");\nexport const webSocketCloseCodeArgsKey = Symbol(\"__bool:webSocketArguments:closeCode__\");\nexport const webSocketCloseReasonArgsKey = Symbol(\"__bool:webSocketArguments:closeReason__\");\n\nexport const httpServerArgsKey = Symbol(\"__bool:httpArguments:server__\");\nexport const requestHeadersArgsKey = Symbol(\"__bool:httpArguments:requestHeaders__\");\nexport const requestHeaderArgsKey = Symbol(\"__bool:httpArguments:requestHeader__\");\nexport const requestBodyArgsKey = Symbol(\"__bool:httpArguments:requestBody__\");\nexport const paramsArgsKey = Symbol(\"__bool:httpArguments:params__\");\nexport const paramArgsKey = Symbol(\"__bool:httpArguments:param__\");\nexport const queryArgsKey = Symbol(\"__bool:httpArguments:query__\");\nexport const requestArgsKey = Symbol(\"__bool:httpArguments:request__\");\nexport const responseHeadersArgsKey = Symbol(\"__bool:httpArguments:responseHeaders__\");\nexport const contextArgsKey = Symbol(\"__bool:httpArguments:context__\");\nexport const routeModelArgsKey = Symbol(\"__bool:httpArguments:routeModel__\");\nexport const responseBodyArgsKey = Symbol(\"__bool:httpArguments:responseBody__\");\nexport const responseStatusArgsKey = Symbol(\"__bool:httpArguments:responseStatus__\");\nexport const responseStatusTextArgsKey = Symbol(\"__bool:httpArguments:responseStatusText__\");\n",
53
+ "import * as Zod from \"zod\";\nimport {\n argumentsKey,\n contextArgsKey,\n httpServerArgsKey,\n paramArgsKey,\n paramsArgsKey,\n queryArgsKey,\n requestArgsKey,\n requestBodyArgsKey,\n requestHeaderArgsKey,\n requestHeadersArgsKey,\n responseHeadersArgsKey,\n routeModelArgsKey\n} from \"../keys\";\n\nexport type TArgumentsMetadata =\n | {\n index: number;\n type: typeof requestHeadersArgsKey;\n zodSchema?: Zod.Schema;\n }\n | {\n index: number;\n type: typeof requestHeaderArgsKey;\n key: string;\n zodSchema?: Zod.Schema;\n }\n | {\n index: number;\n type: typeof requestBodyArgsKey;\n zodSchema?: Zod.Schema;\n parser?: \"arrayBuffer\" | \"blob\" | \"formData\" | \"json\" | \"text\";\n }\n | {\n index: number;\n type: typeof paramsArgsKey;\n zodSchema?: Zod.Schema;\n }\n | {\n index: number;\n type: typeof paramArgsKey;\n key: string;\n zodSchema?: Zod.Schema;\n }\n | {\n index: number;\n type: typeof queryArgsKey;\n zodSchema?: Zod.Schema;\n }\n | {\n index: number;\n type: typeof requestArgsKey;\n zodSchema?: Zod.Schema;\n }\n | {\n index: number;\n type: typeof responseHeadersArgsKey;\n }\n | {\n index: number;\n type: typeof contextArgsKey;\n key?: symbol;\n }\n | {\n index: number;\n type: typeof routeModelArgsKey;\n }\n | {\n index: number;\n type: typeof httpServerArgsKey;\n };\n\nexport type TArgumentsMetadataCollection = Record<`argumentIndexes.${number}`, TArgumentsMetadata>;\n\nexport const RequestHeaders =\n (schema?: Zod.Schema) =>\n (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const metadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, target.constructor, methodName) || {};\n\n metadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: requestHeadersArgsKey,\n zodSchema: schema\n } satisfies Extract<\n TArgumentsMetadata,\n {\n type: typeof requestHeadersArgsKey;\n }\n >;\n\n Reflect.defineMetadata(argumentsKey, metadata, target.constructor, methodName);\n };\n\nexport const RequestHeader =\n (key: string, schema?: Zod.Schema) =>\n (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const metadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, target.constructor, methodName) || {};\n\n metadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: requestHeaderArgsKey,\n key: key,\n zodSchema: schema\n } satisfies Extract<\n TArgumentsMetadata,\n {\n type: typeof requestHeaderArgsKey;\n }\n >;\n\n Reflect.defineMetadata(argumentsKey, metadata, target.constructor, methodName);\n };\n\nexport const RequestBody =\n (schema?: Zod.Schema, parser?: \"arrayBuffer\" | \"blob\" | \"formData\" | \"json\" | \"text\") =>\n (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const metadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, target.constructor, methodName) || {};\n\n metadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: requestBodyArgsKey,\n zodSchema: schema,\n parser: parser\n } satisfies Extract<\n TArgumentsMetadata,\n {\n type: typeof requestBodyArgsKey;\n }\n >;\n\n Reflect.defineMetadata(argumentsKey, metadata, target.constructor, methodName);\n };\n\nexport const Params =\n (schema?: Zod.Schema) =>\n (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const metadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, target.constructor, methodName) || {};\n\n metadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: paramsArgsKey,\n zodSchema: schema\n } satisfies Extract<\n TArgumentsMetadata,\n {\n type: typeof paramsArgsKey;\n }\n >;\n\n Reflect.defineMetadata(argumentsKey, metadata, target.constructor, methodName);\n };\n\nexport const Param =\n (key: string, schema?: Zod.Schema) =>\n (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const metadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, target.constructor, methodName) || {};\n\n metadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: paramArgsKey,\n key: key,\n zodSchema: schema\n } satisfies Extract<\n TArgumentsMetadata,\n {\n type: typeof paramArgsKey;\n }\n >;\n\n Reflect.defineMetadata(argumentsKey, metadata, target.constructor, methodName);\n };\n\nexport const Query =\n (schema?: Zod.Schema) =>\n (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const metadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, target.constructor, methodName) || {};\n\n metadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: queryArgsKey,\n zodSchema: schema\n } satisfies Extract<\n TArgumentsMetadata,\n {\n type: typeof queryArgsKey;\n }\n >;\n\n Reflect.defineMetadata(argumentsKey, metadata, target.constructor, methodName);\n };\n\nexport const Request =\n (schema?: Zod.Schema) =>\n (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const metadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, target.constructor, methodName) || {};\n\n metadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: requestArgsKey,\n zodSchema: schema\n } satisfies Extract<\n TArgumentsMetadata,\n {\n type: typeof requestArgsKey;\n }\n >;\n\n Reflect.defineMetadata(argumentsKey, metadata, target.constructor, methodName);\n };\n\nexport const ResponseHeaders =\n () => (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const metadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, target.constructor, methodName) || {};\n\n metadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: responseHeadersArgsKey\n } satisfies Extract<\n TArgumentsMetadata,\n {\n type: typeof responseHeadersArgsKey;\n }\n >;\n\n Reflect.defineMetadata(argumentsKey, metadata, target.constructor, methodName);\n };\n\nexport const Context =\n (key?: symbol) =>\n (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const metadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, target.constructor, methodName) || {};\n\n metadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: contextArgsKey,\n key: key\n } satisfies Extract<\n TArgumentsMetadata,\n {\n type: typeof contextArgsKey;\n }\n >;\n\n Reflect.defineMetadata(argumentsKey, metadata, target.constructor, methodName);\n };\n\nexport const RouteModel =\n () => (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const metadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, target.constructor, methodName) || {};\n\n metadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: routeModelArgsKey\n } satisfies Extract<\n TArgumentsMetadata,\n {\n type: typeof routeModelArgsKey;\n }\n >;\n\n Reflect.defineMetadata(argumentsKey, metadata, target.constructor, methodName);\n };\n\nexport const HttpServer =\n () => (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const metadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, target.constructor, methodName) || {};\n\n metadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: httpServerArgsKey\n } satisfies Extract<\n TArgumentsMetadata,\n {\n type: typeof httpServerArgsKey;\n }\n >;\n\n Reflect.defineMetadata(argumentsKey, metadata, target.constructor, methodName);\n };\n",
54
+ "import type { IModule } from \"../interfaces\";\n\nimport { containerKey, guardKey, injectableKey, middlewareKey, moduleKey } from \"../keys\";\n\ntype TInstances = Array<new (...args: any[]) => any>;\ntype TLoaders<TConfig extends {} = {}> = Record<\n string | symbol,\n (args: { config: TConfig }) => [string | symbol, any] | Promise<[string | symbol, any]>\n>;\nexport type TContainerConfig<TConfig> =\n | TConfig\n | (() => TConfig | Promise<TConfig>)\n | Readonly<{\n key: symbol;\n value: TConfig | (() => TConfig | Promise<TConfig>);\n }>;\n\nexport type TContainerOptions<TConfig extends {} = {}> =\n | Partial<{\n config: TContainerConfig<TConfig>;\n modules: TInstances;\n dependencies: TInstances;\n loaders: TLoaders<TConfig>;\n middlewares: TInstances;\n guards: TInstances;\n }>\n | undefined;\n\nexport type TContainerMetadata<TConfig extends {} = {}> =\n | Partial<{\n modules: TInstances;\n config: TContainerConfig<TConfig>;\n dependencies: TInstances;\n loaders: TLoaders<TConfig>;\n middlewares: TInstances;\n guards: TInstances;\n }>\n | undefined;\n\nexport const Container =\n <TConfig extends {} = {}>(args?: TContainerOptions<TConfig>) =>\n <T extends { new (...args: any[]): IModule }>(target: T) => {\n const { modules, middlewares, guards, dependencies } = args || {};\n\n if (Reflect.hasOwnMetadata(moduleKey, target)) {\n throw new Error(\n `Conflict detected! ${target.name} class cannot be both a Module and a Container.`\n );\n }\n\n if (modules) {\n for (let i = 0; i < modules.length; i++) {\n if (!Reflect.getOwnMetadataKeys(modules[i]).includes(moduleKey)) {\n throw Error(`${modules[i].name} is not a module.`);\n }\n }\n }\n\n if (middlewares) {\n for (let i = 0; i < middlewares.length; i++) {\n if (!Reflect.getOwnMetadataKeys(middlewares[i]).includes(middlewareKey)) {\n throw Error(`${middlewares[i].name} is not a middleware.`);\n }\n }\n }\n\n if (middlewares) {\n for (let i = 0; i < middlewares.length; i++) {\n if (!Reflect.getOwnMetadataKeys(middlewares[i]).includes(middlewareKey)) {\n throw Error(`${middlewares[i].name} is not a middleware.`);\n }\n }\n }\n\n if (guards) {\n for (let i = 0; i < guards.length; i++) {\n if (!Reflect.getOwnMetadataKeys(guards[i]).includes(guardKey)) {\n throw Error(`${guards[i].name} is not a guard.`);\n }\n }\n }\n\n if (dependencies) {\n for (let i = 0; i < dependencies.length; i++) {\n if (!Reflect.getOwnMetadataKeys(dependencies[i]).includes(injectableKey)) {\n throw Error(`${dependencies[i].name} is not an injectable.`);\n }\n }\n }\n\n Reflect.defineMetadata(containerKey, args, target);\n };\n\nexport default Container;\n",
55
+ "import type { IController } from \"../interfaces\";\nimport type { THttpMetadata } from \"./http\";\n\nimport { controllerHttpKey, controllerKey } from \"../keys\";\n\nexport type TControllerMetadata = Required<{\n prefix: string;\n httpMetadata: THttpMetadata;\n}>;\n\nexport const Controller =\n (prefix?: string) =>\n <T extends { new (...args: any[]): IController }>(target: T) => {\n const metadata: TControllerMetadata = {\n prefix: !prefix?.startsWith(\"/\") ? `/${prefix || \"\"}` : prefix,\n httpMetadata: [...(Reflect.getOwnMetadata(controllerHttpKey, target) || [])]\n };\n\n Reflect.defineMetadata(controllerKey, metadata, target);\n };\n\nexport default Controller;\n",
56
+ "import type { IGuard } from \"../interfaces\";\n\nimport { guardKey } from \"../keys\";\n\nexport type TGuardMetadata = undefined;\n\nexport const Guard =\n () =>\n <T extends { new (...args: any[]): IGuard }>(target: T) => {\n if (!(\"enforce\" in target.prototype) || typeof target.prototype.enforce !== \"function\") {\n return;\n }\n\n const metadata = undefined;\n\n Reflect.defineMetadata(guardKey, metadata, target);\n };\n\nexport default Guard;\n",
57
+ "import type { TArgumentsMetadataCollection } from \"./arguments\";\n\nimport { argumentsKey, controllerHttpKey } from \"../keys\";\n\nexport type TRoute = {\n path: string;\n httpMethod: \"GET\" | \"POST\" | \"PUT\" | \"PATCH\" | \"DELETE\" | \"OPTIONS\";\n methodName: string;\n descriptor: TypedPropertyDescriptor<any>;\n argumentsMetadata: TArgumentsMetadataCollection;\n};\n\nexport type THttpMetadata = Array<TRoute>;\n\nconst defaultDecorator =\n (path: string, method: \"Get\" | \"Post\" | \"Put\" | \"Patch\" | \"Delete\" | \"Options\") =>\n (target: Object, methodName: string | symbol, descriptor: TypedPropertyDescriptor<any>) => {\n if (!(descriptor?.value instanceof Function)) {\n throw Error(`${method} decorator only use for class method.`);\n }\n\n const argumentsMetadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, target.constructor, methodName) || {};\n\n const metadata: THttpMetadata = [\n ...(Reflect.getOwnMetadata(controllerHttpKey, target.constructor) || []),\n {\n path: !path.startsWith(\"/\") ? `/${path}` : path,\n httpMethod: method.toUpperCase(),\n methodName: methodName,\n descriptor: descriptor,\n argumentsMetadata: argumentsMetadata\n }\n ];\n\n // Define controller metadata\n Reflect.defineMetadata(controllerHttpKey, metadata, target.constructor);\n };\n\n/**\n *\n * @param path\n * @returns\n */\nexport const Get = (path = \"/\") => defaultDecorator(path, \"Get\");\n\n/**\n *\n * @param path\n * @returns\n */\nexport const Post = (path = \"/\") => defaultDecorator(path, \"Post\");\n\n/**\n *\n * @param path\n * @returns\n */\nexport const Put = (path = \"/\") => defaultDecorator(path, \"Put\");\n\n/**\n *\n * @param path\n * @returns\n */\nexport const Patch = (path = \"/\") => defaultDecorator(path, \"Patch\");\n\n/**\n *\n * @param path\n * @returns\n */\nexport const Delete = (path = \"/\") => defaultDecorator(path, \"Delete\");\n\n/**\n *\n * @param path\n * @returns\n */\nexport const Options = (path = \"/\") => defaultDecorator(path, \"Options\");\n\nexport default {\n Get,\n Post,\n Put,\n Patch,\n Delete\n};\n",
58
+ "import { injectKey } from \"../keys\";\n\nexport const Inject = <T extends Object>(definition: { new (...args: any[]): T } | string | symbol) => {\n return (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n const designParameterTypes: any[] = Reflect.getMetadata(injectKey, target) || [];\n\n designParameterTypes[parameterIndex] = definition;\n\n Reflect.defineMetadata(injectKey, designParameterTypes, target);\n };\n};\n\nexport default Inject;\n",
59
+ "import { injectableKey } from \"../keys\";\n\nexport const Injectable =\n () =>\n <T extends Object>(target: T) =>\n Reflect.defineMetadata(injectableKey, undefined, target);\n\nexport default Injectable;\n",
60
+ "import type { IInterceptor } from \"../interfaces\";\n\nimport { interceptorKey } from \"../keys\";\n\nexport type TInterceptorMetadata = undefined;\n\nexport const Interceptor =\n () =>\n <T extends { new (...args: any[]): IInterceptor }>(target: T) => {\n const metadata: TInterceptorMetadata = undefined;\n\n Reflect.defineMetadata(interceptorKey, metadata, target);\n };\n\nexport default Interceptor;\n",
61
+ "import type { IMiddleware } from \"../interfaces\";\n\nimport { middlewareKey } from \"../keys\";\n\nexport type TMiddlewareMetadata = undefined;\n\nexport const Middleware =\n () =>\n <T extends { new (...args: any[]): IMiddleware }>(target: T) => {\n const metadata: TMiddlewareMetadata = undefined;\n\n Reflect.defineMetadata(middlewareKey, metadata, target);\n };\n\nexport default Middleware;\n",
62
+ "import type { IModule } from \"../interfaces\";\n\nimport {\n containerKey,\n controllerKey,\n guardKey,\n injectableKey,\n interceptorKey,\n middlewareKey,\n moduleKey,\n webSocketKey\n} from \"../keys\";\n\ntype TInstances = Array<new (...args: any[]) => any>;\ntype TLoaders<TConfig extends {} = {}> = Record<\n string | symbol,\n (args: { config: TConfig }) => [string | symbol, any] | Promise<[string | symbol, any]>\n>;\nexport type TModuleConfig<TConfig> =\n | TConfig\n | (() => TConfig | Promise<TConfig>)\n | Readonly<{\n key: symbol;\n value: TConfig | (() => TConfig | Promise<TConfig>);\n }>;\n\nexport type TModuleOptions<TConfig extends {} = {}> =\n | Partial<{\n config: TModuleConfig<TConfig>;\n prefix: string;\n dependencies: TInstances;\n loaders: TLoaders<TConfig>;\n middlewares: TInstances;\n guards: TInstances;\n controllers: TInstances;\n interceptors: TInstances;\n webSockets: TInstances;\n }>\n | undefined;\n\nexport type TModuleMetadata<TConfig extends {} = {}> =\n | Partial<{\n config: TModuleConfig<TConfig>;\n prefix: string;\n dependencies: TInstances;\n loaders: TLoaders<TConfig>;\n middlewares: TInstances;\n guards: TInstances;\n controllers: TInstances;\n interceptors: TInstances;\n webSockets: TInstances;\n }>\n | undefined;\n\nexport const Module =\n <TConfig extends {} = {}>(args?: TModuleOptions<TConfig>) =>\n <T extends { new (...args: any[]): IModule }>(target: T) => {\n if (Reflect.hasOwnMetadata(containerKey, target)) {\n throw new Error(\n `Conflict detected! ${target.name} class cannot be both a Module and a Container.`\n );\n }\n\n const { middlewares, guards, interceptors, controllers, dependencies, webSockets } =\n args || {};\n\n if (middlewares) {\n for (let i = 0; i < middlewares.length; i++) {\n if (!Reflect.getOwnMetadataKeys(middlewares[i]).includes(middlewareKey)) {\n throw Error(`${middlewares[i].name} is not a middleware.`);\n }\n }\n }\n\n if (guards) {\n for (let i = 0; i < guards.length; i++) {\n if (!Reflect.getOwnMetadataKeys(guards[i]).includes(guardKey)) {\n throw Error(`${guards[i].name} is not a guard.`);\n }\n }\n }\n\n if (interceptors) {\n for (let i = 0; i < interceptors.length; i++) {\n if (!Reflect.getOwnMetadataKeys(interceptors[i]).includes(interceptorKey)) {\n throw Error(`${interceptors[i].name} is not a interceptor.`);\n }\n }\n }\n\n if (controllers) {\n for (let i = 0; i < controllers.length; i++) {\n if (!Reflect.getOwnMetadataKeys(controllers[i]).includes(controllerKey)) {\n throw Error(`${controllers[i].name} is not a controller.`);\n }\n }\n }\n\n if (dependencies) {\n for (let i = 0; i < dependencies.length; i++) {\n if (!Reflect.getOwnMetadataKeys(dependencies[i]).includes(injectableKey)) {\n throw Error(`${dependencies[i].name} is not an injectable.`);\n }\n }\n }\n\n if (webSockets) {\n for (let i = 0; i < webSockets.length; i++) {\n if (!Reflect.getOwnMetadataKeys(webSockets[i]).includes(webSocketKey)) {\n throw Error(`${webSockets[i].name} is not a websocket gateway.`);\n }\n }\n }\n\n Reflect.defineMetadata(moduleKey, args, target);\n };\n\nexport default Module;\n",
63
+ "import type { Server } from \"bun\";\nimport type { IWebSocket } from \"../interfaces\";\nimport type { TArgumentsMetadataCollection } from \"./arguments\";\nimport type { TWebSocketEventMetadata } from \"./webSocketEvent\";\n\nimport { webSocketEventKey, webSocketKey } from \"../keys\";\n\nexport type TWebSocketHttpRouteMetadata = {\n path: string;\n httpMethod: \"GET\" | \"POST\";\n methodName: symbol;\n descriptor: PropertyDescriptor;\n argumentsMetadata: TArgumentsMetadataCollection;\n};\n\nexport type TWebSocketUpgradeData = {\n pathname: string;\n method: string;\n query: Record<string, unknown>;\n};\n\nexport type TWebSocketHttpMetadata = TWebSocketHttpRouteMetadata[];\n\nexport type TWebSocketMetadata = Required<{\n prefix: string;\n events: TWebSocketEventMetadata;\n http: TWebSocketHttpMetadata;\n}>;\n\nconst upgradeHandlerSymbol = Symbol(\"__bool:webSocket.upgrade__\");\n\nconst upgradeHandler = (server: Server, request: Request, query: Record<string, unknown>) => {\n const url = new URL(request.url);\n\n return server.upgrade<TWebSocketUpgradeData>(request, {\n data: {\n method: request.method.toUpperCase(),\n pathname: url.pathname,\n query: query\n }\n });\n};\n\nexport const WebSocket =\n (\n args?: Partial<{\n prefix: string;\n }>\n ) =>\n <T extends { new (...args: any[]): IWebSocket }>(target: T) => {\n const { prefix } = args || {};\n\n target.prototype[upgradeHandlerSymbol] = upgradeHandler;\n\n const descriptor = Object.getOwnPropertyDescriptor(target.prototype, upgradeHandlerSymbol);\n\n const httpMetadata: TWebSocketHttpMetadata = !descriptor\n ? []\n : [\n {\n path: \"/\",\n httpMethod: \"GET\",\n methodName: upgradeHandlerSymbol,\n descriptor: descriptor,\n argumentsMetadata: {}\n },\n {\n path: \"/\",\n httpMethod: \"POST\",\n methodName: upgradeHandlerSymbol,\n descriptor: descriptor,\n argumentsMetadata: {}\n }\n ];\n\n const metadata: TWebSocketMetadata = {\n prefix: !prefix?.startsWith(\"/\") ? `/${prefix || \"\"}` : prefix,\n events: Reflect.getOwnMetadata(webSocketEventKey, target) || {},\n http: httpMetadata\n };\n\n Reflect.defineMetadata(webSocketKey, metadata, target);\n };\n\nexport default WebSocket;\n",
64
+ "import {\n webSocketCloseCodeArgsKey,\n webSocketCloseReasonArgsKey,\n webSocketConnectionArgsKey,\n webSocketEventArgumentsKey,\n webSocketMessageArgsKey,\n webSocketServerArgsKey\n} from \"../keys\";\n\nexport type TWebsocketArgumentsMetadata =\n | {\n index: number;\n type: typeof webSocketConnectionArgsKey;\n }\n | {\n index: number;\n type: typeof webSocketMessageArgsKey;\n }\n | {\n index: number;\n type: typeof webSocketServerArgsKey;\n }\n | {\n index: number;\n type: typeof webSocketCloseCodeArgsKey;\n }\n | {\n index: number;\n type: typeof webSocketCloseReasonArgsKey;\n };\n\nexport type TWebsocketArgumentsMetadataGroup = Record<string, TWebsocketArgumentsMetadata>;\n\nexport const WebSocketConnection =\n () => (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const webSocketEventArgumentsMetadata: TWebsocketArgumentsMetadataGroup =\n Reflect.getOwnMetadata(webSocketEventArgumentsKey, target.constructor, methodName) ||\n {};\n\n webSocketEventArgumentsMetadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: webSocketConnectionArgsKey\n } satisfies Extract<\n TWebsocketArgumentsMetadata,\n {\n type: typeof webSocketConnectionArgsKey;\n }\n >;\n\n Reflect.defineMetadata(\n webSocketEventArgumentsKey,\n webSocketEventArgumentsMetadata,\n target.constructor,\n methodName\n );\n };\n\nexport const WebSocketServer =\n () => (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const webSocketEventArgumentsMetadata: TWebsocketArgumentsMetadataGroup =\n Reflect.getOwnMetadata(webSocketEventArgumentsKey, target.constructor, methodName) ||\n {};\n\n webSocketEventArgumentsMetadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: webSocketServerArgsKey\n } satisfies Extract<\n TWebsocketArgumentsMetadata,\n {\n type: typeof webSocketServerArgsKey;\n }\n >;\n\n Reflect.defineMetadata(\n webSocketEventArgumentsKey,\n webSocketEventArgumentsMetadata,\n target.constructor,\n methodName\n );\n };\n\nexport const WebSocketCloseCode =\n () => (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const webSocketEventArgumentsMetadata: TWebsocketArgumentsMetadataGroup =\n Reflect.getOwnMetadata(webSocketEventArgumentsKey, target.constructor, methodName) ||\n {};\n\n webSocketEventArgumentsMetadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: webSocketCloseCodeArgsKey\n } satisfies Extract<\n TWebsocketArgumentsMetadata,\n {\n type: typeof webSocketCloseCodeArgsKey;\n }\n >;\n\n Reflect.defineMetadata(\n webSocketEventArgumentsKey,\n webSocketEventArgumentsMetadata,\n target.constructor,\n methodName\n );\n };\n\nexport const WebSocketCloseReason =\n () => (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const webSocketEventArgumentsMetadata: TWebsocketArgumentsMetadataGroup =\n Reflect.getOwnMetadata(webSocketEventArgumentsKey, target.constructor, methodName) ||\n {};\n\n webSocketEventArgumentsMetadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: webSocketCloseReasonArgsKey\n } satisfies Extract<\n TWebsocketArgumentsMetadata,\n {\n type: typeof webSocketCloseReasonArgsKey;\n }\n >;\n\n Reflect.defineMetadata(\n webSocketEventArgumentsKey,\n webSocketEventArgumentsMetadata,\n target.constructor,\n methodName\n );\n };\n\nexport const WebSocketMessage =\n () => (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const webSocketEventArgumentsMetadata: TWebsocketArgumentsMetadataGroup =\n Reflect.getOwnMetadata(webSocketEventArgumentsKey, target.constructor, methodName) ||\n {};\n\n webSocketEventArgumentsMetadata[`argumentIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n type: webSocketMessageArgsKey\n } satisfies Extract<\n TWebsocketArgumentsMetadata,\n {\n type: typeof webSocketMessageArgsKey;\n }\n >;\n\n Reflect.defineMetadata(\n webSocketEventArgumentsKey,\n webSocketEventArgumentsMetadata,\n target.constructor,\n methodName\n );\n };\n",
65
+ "import type {\n TWebsocketArgumentsMetadata,\n TWebsocketArgumentsMetadataGroup\n} from \"./webSocketArguments\";\n\nimport { webSocketEventArgumentsKey, webSocketEventKey } from \"../keys\";\n\nexport type TWebSocketEventHandlerMetadata = Required<{\n methodName: string;\n descriptor: PropertyDescriptor;\n}> &\n Partial<{\n arguments: Record<string, TWebsocketArgumentsMetadata>;\n }>;\n\nexport type TWebSocketEventMetadata = Record<\n \"open\" | \"close\" | \"message\" | \"drain\" | \"ping\" | \"pong\",\n TWebSocketEventHandlerMetadata\n>;\n\n/**\n *\n * @param path\n * @returns\n */\nexport const WebSocketEvent =\n (eventName: \"open\" | \"close\" | \"message\" | \"drain\" | \"ping\" | \"pong\") =>\n (target: Object, methodName: string, descriptor: PropertyDescriptor) => {\n if (!(descriptor.value instanceof Function)) {\n throw Error(\"WebSocketEvent decorator only use for class's method.\");\n }\n\n const webSocketEventArgumentsMetadata: TWebsocketArgumentsMetadataGroup | undefined =\n Reflect.getOwnMetadata(webSocketEventArgumentsKey, target.constructor, methodName);\n\n const webSocketEventMetadata: TWebSocketEventHandlerMetadata = Object.freeze({\n methodName: methodName,\n descriptor: descriptor,\n arguments: webSocketEventArgumentsMetadata\n });\n\n const webSocketMetadata: TWebSocketEventMetadata = {\n ...(Reflect.getOwnMetadata(webSocketEventKey, target.constructor) || undefined),\n [eventName]: webSocketEventMetadata\n };\n\n Reflect.defineMetadata(\n webSocketEventKey,\n webSocketEventMetadata,\n target.constructor,\n methodName\n );\n Reflect.defineMetadata(webSocketEventKey, webSocketMetadata, target.constructor);\n };\n\nexport default WebSocket;\n",
66
+ "import * as Zod from \"zod\";\n\nimport { zodSchemaKey } from \"../keys\";\n\nexport const ZodSchema = (schema: Zod.Schema) => {\n return (target: Object, methodName: string | symbol | undefined, parameterIndex: number) => {\n if (!methodName) {\n return;\n }\n\n const zodSchemasMetadata =\n Reflect.getOwnMetadata(zodSchemaKey, target.constructor, methodName) || {};\n\n zodSchemasMetadata[`paramterIndexes.${parameterIndex}`] = {\n index: parameterIndex,\n schema: schema\n };\n\n Reflect.defineMetadata(zodSchemaKey, zodSchemasMetadata, target.constructor, methodName);\n };\n};\n",
67
+ "export const httpClientErrors = Object.freeze({\n 400: \"BAD_REQUEST\",\n 401: \"UNAUTHORIZED\",\n 402: \"PAYMENT_REQUIRED\",\n 403: \"FORBIDDEN\",\n 404: \"NOT_FOUND\",\n 405: \"METHOD_NOT_ALLOWED\",\n 406: \"NOT_ACCEPTABLE\",\n 407: \"PROXY_AUTHENCATION_REQUIRED\",\n 408: \"REQUEST_TIMEOUT\",\n 409: \"CONFLICT\",\n 410: \"GONE\",\n 411: \"LENGTH_REQUIRED\",\n 412: \"PRECONDITION_FAILED\",\n 413: \"PAYLOAD_TOO_LARGE\",\n 414: \"URI_TOO_LONG\",\n 415: \"UNSUPPORTED_MEDIA_TYPE\",\n 416: \"RANGE_NOT_SATISFIABLE\",\n 417: \"EXPECTATION_FAILED\",\n 418: \"IM_A_TEAPOT\",\n 421: \"MISDIRECTED_REQUEST\",\n 422: \"UNPROCESSABLE_ENTITY\",\n 423: \"LOCKED\",\n 424: \"FAILED_DEPENDENCY\",\n 425: \"TOO_EARLY_\",\n 426: \"UPGRAGE_REQUIRED\",\n 428: \"PRECONDITION_REQUIRED\",\n 429: \"TOO_MANY_REQUESTS\",\n 431: \"REQUEST_HEADER_FIELDS_TOO_LARGE\",\n 451: \"UNAVAILABLE_FOR_LEGAL_REASONS\"\n});\n\nexport class HttpClientError<T extends keyof typeof httpClientErrors = keyof typeof httpClientErrors, K = any> extends Error {\n public readonly httpCode: T;\n public readonly message: (typeof httpClientErrors)[T] | string;\n public readonly data: K;\n\n constructor({ httpCode, data, message }: { httpCode: T; data: K; message?: string }) {\n super();\n\n this.httpCode = httpCode;\n this.message = !message?.trim() ? httpClientErrors[httpCode] : message.trim();\n this.data = data;\n }\n}\n",
68
+ "export const httpServerErrors = Object.freeze({\n 500: \"INTERNAL_SERVER_ERROR\",\n 501: \"NOT_IMPLEMENTED\",\n 502: \"BAD_GATEWAY\",\n 503: \"SERVICE_UNAVAILABLE\",\n 504: \"GATEWAY_TIMEOUT\",\n 505: \"HTTP_VERSION_NOT_SUPPORTED\",\n 506: \"VARIANT_ALSO_NEGOTIATES\",\n 507: \"INSUFFICIENT_STORAGE\",\n 508: \"LOOP_DETECTED\",\n 510: \"NOT_EXTENDED\",\n 511: \"NETWORK_AUTHENTICATION_REQUIRED\"\n});\n\nexport class HttpServerError<T extends keyof typeof httpServerErrors = keyof typeof httpServerErrors, K = any> extends Error {\n public readonly httpCode: T;\n public readonly message: (typeof httpServerErrors)[T] | string;\n public readonly data: K;\n\n constructor({ httpCode, data, message }: { httpCode: T; data: K; message?: string }) {\n super();\n\n this.httpCode = httpCode;\n this.message = !message?.trim() ? httpServerErrors[httpCode] : message.trim();\n this.data = data;\n }\n}\n",
69
+ "import { HttpClientError } from \"./clientError\";\nimport { HttpServerError } from \"./serverError\";\n\nexport type THttpMethods = {\n GET: \"GET\";\n HEAD: \"HEAD\";\n POST: \"POST\";\n PUT: \"PUT\";\n DELETE: \"DELETE\";\n CONNECT: \"CONNECT\";\n OPTIONS: \"OPTIONS\";\n TRACE: \"TRACE\";\n PATCH: \"PATCH\";\n};\n\nexport const jsonErrorInfer = (data: any, headers: Headers = new Headers()) => {\n headers.set(\"Content-Type\", \"application/json\");\n\n if (data instanceof HttpClientError || data instanceof HttpServerError) {\n return new Response(JSON.stringify(data), {\n status: data.httpCode,\n statusText: data.message,\n headers: headers\n });\n }\n\n return new Response(\n JSON.stringify(\n (() => {\n switch (typeof data) {\n case \"object\":\n return !(data instanceof Error)\n ? data\n : {\n message: data.message,\n code: data.name,\n cause: data.cause\n };\n case \"string\":\n return {\n message: data\n };\n case \"number\":\n return {\n code: data\n };\n default:\n return undefined;\n }\n })()\n ),\n {\n status: 500,\n statusText: \"INTERNAL SERVER ERROR\",\n headers: headers\n }\n );\n};\n\nexport * from \"./clientError\";\nexport * from \"./serverError\";\n",
70
+ "import type { BunFile, Server } from \"bun\";\nimport type {\n TContainerMetadata,\n TControllerMetadata,\n TModuleMetadata,\n TWebSocketEventHandlerMetadata,\n TWebSocketMetadata\n} from \"../decorators\";\nimport type { TArgumentsMetadataCollection } from \"../decorators/arguments\";\nimport type { TWebSocketUpgradeData } from \"../decorators/webSocket\";\nimport type { IGuard, IInterceptor, IMiddleware } from \"../interfaces\";\n\nimport \"reflect-metadata\";\n\nimport Qs from \"qs\";\nimport * as Zod from \"zod\";\n\nimport { ETimeUnit, add as TimeAdd } from \"@bool-ts/date-time\";\nimport {\n HttpRouter,\n HttpRouterGroup,\n WebSocketRoute,\n WebSocketRouter,\n WebSocketRouterGroup\n} from \"../entities\";\nimport { HttpClientError, HttpServerError, jsonErrorInfer, type THttpMethods } from \"../http\";\nimport {\n argumentsKey,\n configKey,\n containerKey,\n contextArgsKey,\n controllerKey,\n httpServerArgsKey,\n moduleKey,\n paramArgsKey,\n paramsArgsKey,\n queryArgsKey,\n requestArgsKey,\n requestBodyArgsKey,\n requestHeaderArgsKey,\n requestHeadersArgsKey,\n responseBodyArgsKey,\n responseHeadersArgsKey,\n responseStatusArgsKey,\n responseStatusTextArgsKey,\n routeModelArgsKey,\n webSocketCloseCodeArgsKey,\n webSocketCloseReasonArgsKey,\n webSocketConnectionArgsKey,\n webSocketKey,\n webSocketMessageArgsKey,\n webSocketServerArgsKey\n} from \"../keys\";\nimport { ansiText, isWebSocketUpgrade } from \"../ultils\";\nimport { Context } from \"./context\";\nimport { Injector } from \"./injector\";\n\nexport type TParamsType = Record<string, string>;\n\nexport type TGroupElementModel<\n TFuncName extends keyof TClass,\n TClass extends Object = Object,\n TFunc = TClass[TFuncName]\n> = Readonly<{\n class: TClass;\n func: TFunc;\n funcName: TFuncName;\n argumentsMetadata: TArgumentsMetadataCollection;\n}>;\n\nexport type TBoolFactoryOptions = Required<{\n port: number;\n}> &\n Partial<{\n config: Record<string | symbol, any> | (() => Record<string | symbol, any>);\n prefix: string;\n debug: boolean;\n log: Partial<{\n methods: Array<\"GET\" | \"POST\" | \"PUT\" | \"PATCH\" | \"DELETE\" | \"OPTIONS\">;\n }>;\n queryParser: Parameters<typeof Qs.parse>[1];\n static: Required<{\n path: string;\n }> &\n Partial<{\n headers: TParamsType;\n cacheTimeInSeconds: number;\n }>;\n cors: Partial<{\n credentials: boolean;\n origins: string | Array<string>;\n methods: Array<\"GET\" | \"POST\" | \"PUT\" | \"PATCH\" | \"DELETE\" | \"OPTIONS\">;\n headers: Array<string>;\n }>;\n }>;\n\nconst DEFAULT_STATIC_CACHE_TIME_IN_SECONDS = 900;\n\nconst responseConverter = (response: Response) => {\n response.headers.set(\"X-Powered-By\", \"Bool Typescript\");\n\n return response;\n};\n\nconst responseSerialize = ({\n status,\n statusText,\n headers,\n data\n}: {\n status?: number;\n statusText?: string;\n headers: Headers;\n data: unknown;\n}): Response => {\n const contentType = headers.get(\"Content-Type\") || \"text/plain\";\n\n if (contentType.includes(\"application/json\")) {\n return responseConverter(\n new Response(data instanceof ReadableStream ? data : JSON.stringify(data), {\n status: status,\n statusText: statusText,\n headers: headers\n })\n );\n }\n\n if (contentType.includes(\"text/plain\") || contentType.includes(\"text/html\")) {\n return responseConverter(\n new Response(data instanceof ReadableStream ? data : String(data), {\n status: status,\n statusText: statusText,\n headers: headers\n })\n );\n }\n\n if (contentType.includes(\"application/octet-stream\")) {\n if (\n data instanceof Uint8Array ||\n data instanceof ArrayBuffer ||\n data instanceof Blob ||\n data instanceof ReadableStream\n ) {\n return responseConverter(\n new Response(data, { status: status, statusText: statusText, headers: headers })\n );\n }\n\n throw new Error(\"Invalid data type for application/octet-stream\");\n }\n\n if (contentType.includes(\"multipart/form-data\")) {\n if (data instanceof FormData) {\n return responseConverter(\n new Response(data, { status: status, statusText: statusText, headers: headers })\n );\n }\n\n throw new Error(\"multipart/form-data requires FormData object\");\n }\n\n return responseConverter(\n new Response(String(data), { status: status, statusText: statusText, headers: headers })\n );\n};\n\nconst controllerCreator = ({\n controllerConstructor,\n httpRouterGroup,\n injector,\n prefix\n}: Readonly<{\n controllerConstructor: new (...args: any[]) => unknown;\n httpRouterGroup: HttpRouterGroup;\n injector: Injector;\n prefix?: string;\n}>) => {\n if (!Reflect.getOwnMetadataKeys(controllerConstructor).includes(controllerKey)) {\n throw Error(`${controllerConstructor.name} is not a controller.`);\n }\n\n const controller = injector.get(controllerConstructor);\n\n if (!controller) {\n throw Error(\"Can not initialize controller.\");\n }\n\n const controllerMetadata: TControllerMetadata = Reflect.getOwnMetadata(\n controllerKey,\n controllerConstructor\n ) || {\n prefix: \"/\",\n httpMetadata: []\n };\n\n const router = new HttpRouter(`/${prefix || \"\"}/${controllerMetadata.prefix}`);\n\n controllerMetadata.httpMetadata.forEach((routeMetadata) => {\n if (typeof routeMetadata.descriptor.value !== \"function\") {\n return;\n }\n\n const route = router.route(routeMetadata.path);\n const handler = routeMetadata.descriptor.value.bind(controller);\n const routeArgument = Object.freeze({\n class: controllerConstructor,\n funcName: routeMetadata.methodName,\n func: handler,\n argumentsMetadata: routeMetadata.argumentsMetadata\n });\n\n switch (routeMetadata.httpMethod) {\n case \"GET\":\n return route.get(routeArgument);\n case \"POST\":\n return route.post(routeArgument);\n case \"PUT\":\n return route.put(routeArgument);\n case \"PATCH\":\n return route.patch(routeArgument);\n case \"DELETE\":\n return route.delete(routeArgument);\n case \"OPTIONS\":\n return route.options(routeArgument);\n }\n });\n\n return httpRouterGroup.add(router);\n};\n\nconst webSocketCreator = ({\n injector,\n httpRouterGroup,\n prefix,\n webSocketRouterGroup,\n webSocketConstructor\n}: Readonly<{\n webSocketConstructor: new (...args: any[]) => unknown;\n httpRouterGroup: HttpRouterGroup;\n webSocketRouterGroup: WebSocketRouterGroup;\n injector: Injector;\n prefix?: string;\n}>): Readonly<{\n httpRouterGroup: HttpRouterGroup;\n webSocketRouterGroup: WebSocketRouterGroup;\n}> => {\n if (!Reflect.getOwnMetadataKeys(webSocketConstructor).includes(webSocketKey)) {\n throw Error(`${webSocketConstructor.name} is not a websocket route.`);\n }\n\n const webSocket = injector.get(webSocketConstructor);\n\n if (!webSocket) {\n throw Error(\"Can not initialize webSocket.\");\n }\n\n const webSocketMetadata: TWebSocketMetadata = Reflect.getOwnMetadata(\n webSocketKey,\n webSocketConstructor\n ) || {\n prefix: \"/\",\n events: [],\n http: []\n };\n\n const fullPrefix = `/${prefix || \"\"}/${webSocketMetadata.prefix}`;\n\n //#region [HTTP ROUTER]\n const router = new HttpRouter(fullPrefix);\n\n for (const [_key, httpMetadata] of Object.entries(webSocketMetadata.http)) {\n if (typeof httpMetadata.descriptor?.value !== \"function\") {\n continue;\n }\n\n const route = router.route(httpMetadata.path);\n const handler = httpMetadata.descriptor.value.bind(webSocket);\n const routeArgument = Object.freeze({\n class: webSocketConstructor,\n funcName: httpMetadata.methodName,\n func: handler,\n argumentsMetadata: httpMetadata.argumentsMetadata\n });\n\n switch (httpMetadata.httpMethod) {\n case \"GET\":\n route.get(routeArgument);\n break;\n case \"POST\":\n route.post(routeArgument);\n break;\n }\n }\n\n httpRouterGroup.add(router);\n //#endregion\n\n //#region [WEBSOCKET ROUTER]\n const webSocketRouter = new WebSocketRouter(fullPrefix);\n\n for (const [key, event] of Object.entries(webSocketMetadata.events)) {\n const webSocketRoute = new WebSocketRoute({\n eventName: key,\n metadata: event\n });\n\n webSocketRouter.addRoutes(webSocketRoute);\n }\n\n webSocketRouter.bind(webSocket);\n webSocketRouterGroup.addRouters(webSocketRouter);\n //#endregion\n\n return Object.freeze({\n httpRouterGroup: httpRouterGroup,\n webSocketRouterGroup: webSocketRouterGroup\n });\n};\n\nconst argumentsResolution = async (\n data: unknown,\n zodSchema: Zod.Schema,\n argumentIndex: number,\n funcName: string | symbol\n) => {\n try {\n const validation = await zodSchema.safeParseAsync(data);\n\n if (!validation.success) {\n throw new HttpClientError({\n httpCode: 400,\n message: `Validation at the [${funcName.toString()}] method fails at positional argument [${argumentIndex}].`,\n data: validation.error.issues\n });\n }\n\n return validation.data;\n } catch (error) {\n if (error instanceof HttpClientError) {\n throw error;\n }\n\n throw new HttpServerError({\n httpCode: 500,\n message: `Validation at the [${funcName.toString()}] method error at positional argument [${argumentIndex}].`,\n data: !(error instanceof Error)\n ? error\n : [\n {\n message: error.message,\n code: error.name,\n cause: error.cause\n }\n ]\n });\n }\n};\n\nconst containerResolution = async ({\n containerClass,\n options,\n extendInjector\n}: {\n containerClass: new (...args: any[]) => unknown;\n options: TBoolFactoryOptions;\n extendInjector: Injector;\n}) => {\n if (!Reflect.getOwnMetadataKeys(containerClass).includes(containerKey)) {\n throw Error(`${containerClass.name} is not a container.`);\n }\n\n const injector = new Injector(extendInjector);\n const containerMetadata: TContainerMetadata = Reflect.getOwnMetadata(\n containerKey,\n containerClass\n );\n\n const {\n loaders,\n middlewares,\n guards,\n dependencies,\n config: containerConfig\n } = containerMetadata || {};\n\n //#region [Configuration(s)]\n const { config } = Object.freeze({\n config: {\n ...(typeof options.config !== \"function\" ? options.config : await options.config()),\n ...(typeof containerConfig !== \"function\"\n ? typeof containerConfig !== \"object\"\n ? undefined\n : \"key\" in containerConfig &&\n \"value\" in containerConfig &&\n typeof containerConfig.key === \"symbol\"\n ? typeof containerConfig.value !== \"function\"\n ? containerConfig.value\n : await containerConfig.value()\n : containerConfig\n : await containerConfig())\n }\n });\n //#endregion\n\n //#region [Register config like an injection]\n injector.set(\n containerConfig &&\n \"key\" in containerConfig &&\n \"value\" in containerConfig &&\n typeof containerConfig.key === \"symbol\"\n ? containerConfig.key\n : configKey,\n config\n );\n //#endregion\n\n //#region [Run loader(s)]\n if (loaders) {\n const loaderFunctions = [];\n\n for (const [key, func] of Object.entries(loaders)) {\n loaderFunctions.push(async () => {\n try {\n const result = await func({ config });\n\n console.info(\n `${ansiText(\" INFO \", {\n color: \"white\",\n backgroundColor: \"blue\",\n bold: true\n })} Loader [${key}] initialized successfully.`\n );\n\n return result;\n } catch (error) {\n console.error(\n `${ansiText(\" WARN \", {\n color: \"yellow\",\n backgroundColor: \"red\",\n bold: true\n })} Loader [${key}] initialization failed.`\n );\n options.debug && console.error(error);\n throw error;\n }\n });\n }\n\n const results = await Promise.all(loaderFunctions.map((func) => func()));\n\n for (let i = 0; i < results.length; i++) {\n const [key, value] = results[i];\n injector.set(key, value);\n }\n }\n //#endregion\n\n //#region [Dependencies]\n !dependencies || dependencies.map((dependency) => injector.get(dependency));\n //#endregion\n\n //#region [Middleware(s)]\n const startMiddlewareGroup: Array<\n TGroupElementModel<\"start\", IMiddleware, NonNullable<IMiddleware[\"start\"]>>\n > = [];\n const endMiddlewareGroup: Array<\n TGroupElementModel<\"end\", IMiddleware, NonNullable<IMiddleware[\"end\"]>>\n > = [];\n\n !middlewares ||\n middlewares.forEach((middleware) => {\n const instance = injector.get<IMiddleware>(middleware);\n\n if (instance.start && typeof instance.start === \"function\") {\n const argumentsMetadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, middleware, \"start\") || {};\n\n startMiddlewareGroup.push(\n Object.freeze({\n class: middleware as IMiddleware,\n funcName: \"start\",\n func: instance.start.bind(instance),\n argumentsMetadata: argumentsMetadata\n })\n );\n }\n\n if (instance.end && typeof instance.end === \"function\") {\n const argumentsMetadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, middleware, \"end\") || {};\n\n endMiddlewareGroup.push(\n Object.freeze({\n class: middleware as IMiddleware,\n funcName: \"end\",\n func: instance.end.bind(instance),\n argumentsMetadata: argumentsMetadata\n })\n );\n }\n });\n //#endregion\n\n //#region [Guard(s)]\n const guardGroup: Array<TGroupElementModel<\"enforce\", IGuard, NonNullable<IGuard[\"enforce\"]>>> =\n !guards\n ? []\n : guards.map((guard) => {\n const guardInstance = injector.get<IGuard>(guard);\n const argumentsMetadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, guard, \"enforce\") || {};\n\n return Object.freeze({\n class: guard as unknown as IGuard,\n funcName: \"enforce\",\n func: guardInstance.enforce.bind(guardInstance),\n argumentsMetadata: argumentsMetadata\n });\n });\n //#endregion\n\n return Object.freeze({\n injector,\n startMiddlewareGroup,\n endMiddlewareGroup,\n guardGroup\n });\n};\n\nconst moduleResolution = async ({\n moduleClass,\n options,\n extendInjector\n}: {\n moduleClass: new (...args: any[]) => unknown;\n options: TBoolFactoryOptions;\n extendInjector: Injector;\n}) => {\n if (!Reflect.getOwnMetadataKeys(moduleClass).includes(moduleKey)) {\n throw Error(`${moduleClass.name} is not a module.`);\n }\n\n const injector = new Injector(extendInjector);\n const moduleMetadata: TModuleMetadata = Reflect.getOwnMetadata(moduleKey, moduleClass);\n\n const {\n loaders,\n middlewares,\n guards,\n interceptors,\n controllers,\n dependencies,\n webSockets,\n prefix: modulePrefix,\n config: moduleConfig\n } = moduleMetadata || {};\n\n const fullPrefix = `${options.prefix || \"\"}/${modulePrefix || \"\"}`;\n\n //#region [Configuration(s)]\n const { config } = Object.freeze({\n config: {\n ...(typeof options.config !== \"function\" ? options.config : await options.config()),\n ...(typeof moduleConfig !== \"function\"\n ? typeof moduleConfig !== \"object\"\n ? undefined\n : \"key\" in moduleConfig &&\n \"value\" in moduleConfig &&\n typeof moduleConfig.key === \"symbol\"\n ? typeof moduleConfig.value !== \"function\"\n ? moduleConfig.value\n : await moduleConfig.value()\n : moduleConfig\n : await moduleConfig())\n }\n });\n //#endregion\n\n //#region [Register config like an injection]\n injector.set(\n moduleConfig &&\n \"key\" in moduleConfig &&\n \"value\" in moduleConfig &&\n typeof moduleConfig.key === \"symbol\"\n ? moduleConfig.key\n : configKey,\n config\n );\n //#endregion\n\n //#region [Run loader(s)]\n if (loaders) {\n const loaderFunctions = [];\n\n for (const [key, func] of Object.entries(loaders)) {\n loaderFunctions.push(async () => {\n try {\n const result = await func({ config });\n\n console.info(\n `${ansiText(\" INFO \", {\n color: \"white\",\n backgroundColor: \"blue\",\n bold: true\n })} Loader [${key}] initialized successfully.`\n );\n\n return result;\n } catch (error) {\n console.error(\n `${ansiText(\" WARN \", {\n color: \"yellow\",\n backgroundColor: \"red\",\n bold: true\n })} Loader [${key}] initialization failed.`\n );\n options.debug && console.error(error);\n throw error;\n }\n });\n }\n\n const results = await Promise.all(loaderFunctions.map((func) => func()));\n\n for (let i = 0; i < results.length; i++) {\n const [key, value] = results[i];\n injector.set(key, value);\n }\n }\n //#endregion\n\n //#region [Dependencies]\n !dependencies || dependencies.map((dependency) => injector.get(dependency));\n //#endregion\n\n //#region [Middleware(s)]\n const startMiddlewareGroup: Array<\n TGroupElementModel<\"start\", IMiddleware, NonNullable<IMiddleware[\"start\"]>>\n > = [];\n const endMiddlewareGroup: Array<\n TGroupElementModel<\"end\", IMiddleware, NonNullable<IMiddleware[\"end\"]>>\n > = [];\n\n !middlewares ||\n middlewares.forEach((middleware) => {\n const instance = injector.get<IMiddleware>(middleware);\n\n if (instance.start && typeof instance.start === \"function\") {\n const argumentsMetadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, middleware, \"start\") || {};\n\n startMiddlewareGroup.push(\n Object.freeze({\n class: middleware as IMiddleware,\n funcName: \"start\",\n func: instance.start.bind(instance),\n argumentsMetadata: argumentsMetadata\n })\n );\n }\n\n if (instance.end && typeof instance.end === \"function\") {\n const argumentsMetadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, middleware, \"end\") || {};\n\n endMiddlewareGroup.push(\n Object.freeze({\n class: middleware as IMiddleware,\n funcName: \"end\",\n func: instance.end.bind(instance),\n argumentsMetadata: argumentsMetadata\n })\n );\n }\n });\n //#endregion\n\n //#region [Guard(s)]\n const guardGroup: Array<TGroupElementModel<\"enforce\", IGuard, NonNullable<IGuard[\"enforce\"]>>> =\n !guards\n ? []\n : guards.map((guard) => {\n const guardInstance = injector.get<IGuard>(guard);\n const argumentsMetadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, guard, \"enforce\") || {};\n\n return Object.freeze({\n class: guard as unknown as IGuard,\n funcName: \"enforce\",\n func: guardInstance.enforce.bind(guardInstance),\n argumentsMetadata: argumentsMetadata\n });\n });\n //#endregion\n\n //#region [Before interceptor(s)]\n const openInterceptorGroup: Array<\n TGroupElementModel<\"open\", IInterceptor, NonNullable<IInterceptor[\"open\"]>>\n > = [];\n const closeInterceptorGroup: Array<\n TGroupElementModel<\"close\", IInterceptor, NonNullable<IInterceptor[\"close\"]>>\n > = [];\n\n !interceptors ||\n interceptors.forEach((interceptor) => {\n const instance = injector.get<IInterceptor>(interceptor);\n\n if (instance.open && typeof instance.open === \"function\") {\n const argumentsMetadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, interceptor, \"open\") || {};\n\n openInterceptorGroup.push(\n Object.freeze({\n class: interceptor as IInterceptor,\n funcName: \"open\",\n func: instance.open.bind(instance),\n argumentsMetadata: argumentsMetadata\n })\n );\n }\n\n if (instance.close && typeof instance.close === \"function\") {\n const argumentsMetadata: TArgumentsMetadataCollection =\n Reflect.getOwnMetadata(argumentsKey, interceptor, \"close\") || {};\n\n closeInterceptorGroup.push(\n Object.freeze({\n class: interceptor as IInterceptor,\n funcName: \"close\",\n func: instance.close.bind(instance),\n argumentsMetadata: argumentsMetadata\n })\n );\n }\n });\n //#endregion\n\n //#region [Controller(s)]\n const controllerRouterGroup = new HttpRouterGroup();\n\n !controllers ||\n controllers.forEach((controllerConstructor) =>\n controllerCreator({\n controllerConstructor,\n httpRouterGroup: controllerRouterGroup,\n injector: injector,\n prefix: fullPrefix\n })\n );\n //#endregion\n\n //#region [WebSocket(s)]\n const webSocketHttpRouterGroup = new HttpRouterGroup();\n const webSocketRouterGroup = new WebSocketRouterGroup();\n\n webSockets &&\n webSockets.forEach((webSocket) =>\n webSocketCreator({\n webSocketConstructor: webSocket,\n httpRouterGroup: webSocketHttpRouterGroup,\n webSocketRouterGroup: webSocketRouterGroup,\n injector: injector,\n prefix: fullPrefix\n })\n );\n //#endregion\n\n return Object.freeze({\n prefix: modulePrefix || \"\",\n injector: injector,\n startMiddlewareGroup: startMiddlewareGroup,\n endMiddlewareGroup: endMiddlewareGroup,\n guardGroup: guardGroup,\n openInterceptorGroup: openInterceptorGroup,\n closeInterceptorGroup: closeInterceptorGroup,\n controllerRouterGroup: controllerRouterGroup,\n webSocketHttpRouterGroup: webSocketHttpRouterGroup,\n webSocketRouterGroup: webSocketRouterGroup\n });\n};\n\nconst webSocketFetcher = async (\n bun: Required<{\n request: Request;\n server: Server;\n }>,\n bool: Required<{\n responseHeaders: Headers;\n query: Record<string, unknown>;\n route: NonNullable<ReturnType<HttpRouterGroup[\"find\"]>>;\n moduleResolution: NonNullable<Awaited<ReturnType<typeof moduleResolution>>>;\n }>\n) => {\n const { request, server } = bun;\n const {\n query,\n responseHeaders,\n route: { model }\n } = bool;\n\n // Execute controller action\n const isUpgrade = await model.func(...[server, request, query]);\n\n if (typeof isUpgrade !== \"boolean\") {\n return responseConverter(\n new Response(\n JSON.stringify({\n httpCode: 500,\n message: \"Can not detect webSocket upgrade result.\",\n data: undefined\n }),\n {\n status: 500,\n statusText: \"Internal server error.\",\n headers: responseHeaders\n }\n )\n );\n }\n\n if (!isUpgrade) {\n return responseConverter(\n new Response(\n JSON.stringify({\n httpCode: 500,\n message: \"Can not upgrade.\",\n data: undefined\n }),\n {\n status: 500,\n statusText: \"Internal server error.\",\n headers: responseHeaders\n }\n )\n );\n }\n\n return isUpgrade;\n};\n\nconst httpFetcher = async ({\n context: outerContext,\n route,\n options,\n resolutedMap\n}: Partial<{\n route: NonNullable<ReturnType<HttpRouterGroup[\"find\"]>>;\n resolutedMap:\n | Partial<NonNullable<Awaited<ReturnType<typeof containerResolution>>>>\n | Partial<NonNullable<Awaited<ReturnType<typeof moduleResolution>>>>;\n context: Context;\n options: Partial<{\n isContainer: boolean;\n }>;\n}>) => {\n const contextOptions = { isStatic: true };\n const context = (!outerContext ? new Context() : new Context(outerContext)).setOptions(\n contextOptions\n );\n\n if (route) {\n context.set(paramsArgsKey, route.parameters).set(routeModelArgsKey, route.model);\n }\n\n const httpServer =\n context.get<Server | null | undefined>(httpServerArgsKey, contextOptions) || undefined,\n request =\n context.get<Request | null | undefined>(requestArgsKey, contextOptions) || undefined,\n requestHeaders =\n context.get<Headers | null | undefined>(requestHeaderArgsKey, contextOptions) ||\n undefined,\n responseHeaders =\n context.get<Headers | null | undefined>(responseHeadersArgsKey, contextOptions) ||\n undefined,\n parameters =\n context.get<TParamsType | null | undefined>(paramsArgsKey, contextOptions) || undefined,\n routeModel =\n context.get<\n NonNullable<ReturnType<HttpRouterGroup[\"find\"]>>[\"model\"] | null | undefined\n >(routeModelArgsKey, contextOptions) || undefined;\n\n if (resolutedMap) {\n const { startMiddlewareGroup, guardGroup } = resolutedMap;\n\n // Execute start middleware(s)\n if (startMiddlewareGroup) {\n for (let i = 0; i < startMiddlewareGroup.length; i++) {\n const args = [];\n const {\n func: handler,\n funcName: functionName,\n argumentsMetadata\n } = startMiddlewareGroup[i];\n\n for (const [_key, argMetadata] of Object.entries(argumentsMetadata)) {\n switch (argMetadata.type) {\n case contextArgsKey:\n args[argMetadata.index] = !argMetadata.key\n ? context\n : context.get(argMetadata.key, contextOptions);\n break;\n case requestArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? request\n : await argumentsResolution(\n request,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case requestBodyArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? await request?.[argMetadata.parser || \"json\"]()\n : await argumentsResolution(\n await request?.[argMetadata.parser || \"json\"](),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case requestHeadersArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? requestHeaders\n : await argumentsResolution(\n requestHeaders?.toJSON(),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case requestHeaderArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? requestHeaders?.get(argMetadata.key) || undefined\n : await argumentsResolution(\n requestHeaders?.get(argMetadata.key) || undefined,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case paramArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? parameters?.[argMetadata.key] || undefined\n : await argumentsResolution(\n parameters?.[argMetadata.key] || undefined,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case routeModelArgsKey:\n args[argMetadata.index] = routeModel;\n break;\n case responseHeadersArgsKey:\n args[argMetadata.index] = responseHeaders;\n break;\n case httpServerArgsKey:\n args[argMetadata.index] = httpServer;\n break;\n default:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? !context.has(argMetadata.type, contextOptions)\n ? undefined\n : context.get(argMetadata.type, contextOptions)\n : await argumentsResolution(\n !(argMetadata.type in context)\n ? undefined\n : context.get(argMetadata.type, contextOptions),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n }\n }\n\n await handler(...args);\n }\n }\n\n // Execute guard(s)\n if (guardGroup) {\n for (let i = 0; i < guardGroup.length; i++) {\n const args = [];\n const { func: handler, funcName: functionName, argumentsMetadata } = guardGroup[i];\n\n for (const [_key, argMetadata] of Object.entries(argumentsMetadata)) {\n switch (argMetadata.type) {\n case requestArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? request\n : await argumentsResolution(\n request,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case requestBodyArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? await request?.[argMetadata.parser || \"json\"]()\n : await argumentsResolution(\n await request?.[argMetadata.parser || \"json\"](),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case contextArgsKey:\n args[argMetadata.index] = !argMetadata.key\n ? context\n : context.get(argMetadata.key);\n break;\n case requestHeadersArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? requestHeaders\n : await argumentsResolution(\n requestHeaders?.toJSON(),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case responseHeadersArgsKey:\n args[argMetadata.index] = responseHeaders;\n break;\n case requestHeaderArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? requestHeaders?.get(argMetadata.key) || undefined\n : await argumentsResolution(\n requestHeaders?.get(argMetadata.key) || undefined,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case paramArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? parameters?.[argMetadata.key] || undefined\n : await argumentsResolution(\n parameters?.[argMetadata.key],\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case routeModelArgsKey:\n args[argMetadata.index] = routeModel;\n break;\n case httpServerArgsKey:\n args[argMetadata.index] = httpServer;\n break;\n default:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? !context.has(argMetadata.type)\n ? undefined\n : context.get(argMetadata.type)\n : await argumentsResolution(\n context.get(argMetadata.type),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n }\n }\n\n const guardResult = await handler(...args);\n\n if (typeof guardResult !== \"boolean\" || !guardResult) {\n throw new HttpClientError({\n httpCode: 401,\n message: \"Unauthorization.\",\n data: undefined\n });\n }\n }\n }\n }\n\n if (routeModel && !options?.isContainer) {\n if (\n resolutedMap &&\n \"openInterceptorGroup\" in resolutedMap &&\n resolutedMap.openInterceptorGroup\n ) {\n const { openInterceptorGroup } = resolutedMap;\n\n // Execute open interceptor(s)\n for (let i = 0; i < openInterceptorGroup.length; i++) {\n const args = [];\n const {\n func: handler,\n funcName: functionName,\n argumentsMetadata\n } = openInterceptorGroup[i];\n\n for (const [_key, argMetadata] of Object.entries(argumentsMetadata)) {\n switch (argMetadata.type) {\n case requestArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? request\n : await argumentsResolution(\n request,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case requestBodyArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? await request?.[argMetadata.parser || \"json\"]()\n : await argumentsResolution(\n await request?.[argMetadata.parser || \"json\"](),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case contextArgsKey:\n args[argMetadata.index] = !argMetadata.key\n ? context\n : context.get(argMetadata.key);\n break;\n case requestHeadersArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? requestHeaders\n : await argumentsResolution(\n requestHeaders?.toJSON(),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case requestHeaderArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? requestHeaders?.get(argMetadata.key) || undefined\n : await argumentsResolution(\n requestHeaders?.get(argMetadata.key) || undefined,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case responseHeadersArgsKey:\n args[argMetadata.index] = responseHeaders;\n break;\n case paramArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? parameters?.[argMetadata.key] || undefined\n : await argumentsResolution(\n parameters?.[argMetadata.key] || undefined,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case routeModelArgsKey:\n args[argMetadata.index] = routeModel;\n break;\n case httpServerArgsKey:\n args[argMetadata.index] = httpServer;\n break;\n default:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? !context.has(argMetadata.type)\n ? undefined\n : context.get(argMetadata.type)\n : await argumentsResolution(\n context.get(argMetadata.type),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n }\n }\n\n await handler(...args);\n }\n }\n\n // Execute controller action\n const controllerActionArguments: any[] = [];\n const {\n func: controllerAction,\n funcName: controllerActionName,\n argumentsMetadata: controllerActionArgumentsMetadata\n } = routeModel;\n\n for (const [_key, argMetadata] of Object.entries(controllerActionArgumentsMetadata)) {\n switch (argMetadata.type) {\n case requestArgsKey:\n controllerActionArguments[argMetadata.index] = !argMetadata.zodSchema\n ? request\n : await argumentsResolution(\n request,\n argMetadata.zodSchema,\n argMetadata.index,\n controllerActionName\n );\n break;\n case requestBodyArgsKey:\n controllerActionArguments[argMetadata.index] = !argMetadata.zodSchema\n ? await request?.[argMetadata.parser || \"json\"]()\n : await argumentsResolution(\n await request?.[argMetadata.parser || \"json\"](),\n argMetadata.zodSchema,\n argMetadata.index,\n controllerActionName\n );\n break;\n case contextArgsKey:\n controllerActionArguments[argMetadata.index] = !argMetadata.key\n ? context\n : context.get(argMetadata.key);\n break;\n case requestHeadersArgsKey:\n controllerActionArguments[argMetadata.index] = !argMetadata.zodSchema\n ? requestHeaders\n : await argumentsResolution(\n requestHeaders?.toJSON(),\n argMetadata.zodSchema,\n argMetadata.index,\n controllerActionName\n );\n break;\n case requestHeaderArgsKey:\n controllerActionArguments[argMetadata.index] = !argMetadata.zodSchema\n ? requestHeaders?.get(argMetadata.key) || undefined\n : await argumentsResolution(\n requestHeaders?.get(argMetadata.key) || undefined,\n argMetadata.zodSchema,\n argMetadata.index,\n controllerActionName\n );\n break;\n case responseHeadersArgsKey:\n controllerActionArguments[argMetadata.index] = responseHeaders;\n break;\n case paramArgsKey:\n controllerActionArguments[argMetadata.index] = !argMetadata.zodSchema\n ? parameters?.[argMetadata.key] || undefined\n : await argumentsResolution(\n parameters?.[argMetadata.key] || undefined,\n argMetadata.zodSchema,\n argMetadata.index,\n controllerActionName\n );\n break;\n case routeModelArgsKey:\n controllerActionArguments[argMetadata.index] = routeModel;\n break;\n case httpServerArgsKey:\n controllerActionArguments[argMetadata.index] = httpServer;\n break;\n default:\n controllerActionArguments[argMetadata.index] = !argMetadata.zodSchema\n ? !context.has(argMetadata.type)\n ? undefined\n : context.get(argMetadata.type)\n : await argumentsResolution(\n context.get(argMetadata.type),\n argMetadata.zodSchema,\n argMetadata.index,\n controllerActionName\n );\n break;\n }\n }\n\n context.set(responseBodyArgsKey, await controllerAction(...controllerActionArguments), {\n isStatic: false\n });\n\n if (\n resolutedMap &&\n \"closeInterceptorGroup\" in resolutedMap &&\n resolutedMap.closeInterceptorGroup\n ) {\n const { closeInterceptorGroup } = resolutedMap;\n\n // Execute close interceptor(s)\n for (let i = 0; i < closeInterceptorGroup.length; i++) {\n const args = [];\n const {\n func: handler,\n funcName: functionName,\n argumentsMetadata\n } = closeInterceptorGroup[i];\n\n for (const [_key, argMetadata] of Object.entries(argumentsMetadata)) {\n switch (argMetadata.type) {\n case requestArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? request\n : await argumentsResolution(\n request,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case requestBodyArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? await request?.[argMetadata.parser || \"json\"]()\n : await argumentsResolution(\n await request?.[argMetadata.parser || \"json\"](),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case contextArgsKey:\n args[argMetadata.index] = !argMetadata.key\n ? context\n : context.get(argMetadata.key);\n break;\n case requestHeadersArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? requestHeaders\n : await argumentsResolution(\n requestHeaders?.toJSON(),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case responseHeadersArgsKey:\n args[argMetadata.index] = context.get(argMetadata.type);\n break;\n case requestHeaderArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? requestHeaders?.get(argMetadata.key) || undefined\n : await argumentsResolution(\n requestHeaders?.get(argMetadata.key) || undefined,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case paramArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? parameters?.[argMetadata.key] || undefined\n : await argumentsResolution(\n parameters?.[argMetadata.key] || undefined,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case routeModelArgsKey:\n args[argMetadata.index] = routeModel;\n break;\n case httpServerArgsKey:\n args[argMetadata.index] = httpServer;\n break;\n default:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? !context.has(argMetadata.type)\n ? undefined\n : context.get(argMetadata.type)\n : await argumentsResolution(\n context.get(argMetadata.type),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n }\n }\n\n await handler(...args);\n }\n }\n }\n\n if (resolutedMap) {\n const { endMiddlewareGroup } = resolutedMap;\n\n // Execute end middleware(s)\n if (endMiddlewareGroup) {\n for (let i = 0; i < endMiddlewareGroup.length; i++) {\n const args = [];\n const {\n func: handler,\n funcName: functionName,\n argumentsMetadata\n } = endMiddlewareGroup[i];\n\n for (const [_key, argMetadata] of Object.entries(argumentsMetadata)) {\n switch (argMetadata.type) {\n case requestArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? request\n : await argumentsResolution(\n request,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case requestBodyArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? await request?.[argMetadata.parser || \"json\"]()\n : await argumentsResolution(\n await request?.[argMetadata.parser || \"json\"](),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case contextArgsKey:\n args[argMetadata.index] = !argMetadata.key\n ? context\n : context.get(argMetadata.key);\n break;\n case requestHeadersArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? requestHeaders\n : await argumentsResolution(\n requestHeaders?.toJSON(),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case responseHeadersArgsKey:\n args[argMetadata.index] = context.get(argMetadata.type);\n break;\n case requestHeaderArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? requestHeaders?.get(argMetadata.key) || undefined\n : await argumentsResolution(\n requestHeaders?.get(argMetadata.key) || undefined,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case paramArgsKey:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? parameters?.[argMetadata.key] || undefined\n : await argumentsResolution(\n parameters?.[argMetadata.key] || undefined,\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n case routeModelArgsKey:\n args[argMetadata.index] = routeModel;\n break;\n case httpServerArgsKey:\n args[argMetadata.index] = httpServer;\n break;\n default:\n args[argMetadata.index] = !argMetadata.zodSchema\n ? !context.has(argMetadata.type)\n ? undefined\n : context.get(argMetadata.type)\n : await argumentsResolution(\n !(argMetadata.type in context)\n ? undefined\n : context.get(argMetadata.type),\n argMetadata.zodSchema,\n argMetadata.index,\n functionName\n );\n break;\n }\n }\n\n await handler(...args);\n }\n }\n }\n\n return Object.freeze({\n context: context\n });\n};\n\nexport const BoolFactory = async (\n classConstructor: new (...args: any[]) => unknown,\n options: TBoolFactoryOptions\n) => {\n try {\n const staticMap: Map<\n string,\n Readonly<{\n expiredAt: Date;\n file: BunFile;\n }>\n > = new Map();\n\n const {\n allowLogsMethods,\n staticOption,\n allowOrigins,\n allowMethods,\n allowCredentials,\n allowHeaders\n } = Object.freeze({\n allowLogsMethods: options?.log?.methods,\n staticOption: options.static,\n allowOrigins: !options.cors?.origins\n ? [\"*\"]\n : typeof options.cors.origins !== \"string\"\n ? options.cors.origins.includes(\"*\") || options.cors.origins.length < 1\n ? [\"*\"]\n : options.cors.origins\n : [options.cors.origins !== \"*\" ? options.cors.origins : \"*\"],\n allowMethods: options.cors?.methods || [\n \"GET\",\n \"POST\",\n \"PUT\",\n \"PATCH\",\n \"DELETE\",\n \"OPTIONS\"\n ],\n allowCredentials: !options.cors?.credentials ? false : true,\n allowHeaders:\n !options.cors?.headers || options.cors.headers.includes(\"*\")\n ? [\"*\"]\n : options.cors.headers\n });\n\n const inputedConstructorKeys = Reflect.getOwnMetadataKeys(classConstructor);\n\n if (\n !inputedConstructorKeys.includes(containerKey) &&\n !inputedConstructorKeys.includes(moduleKey)\n ) {\n throw Error(\n `Can not detect! ${classConstructor.name} class is not a container or module.`\n );\n }\n\n const injector = new Injector();\n\n const containerMetadata: TContainerMetadata = !inputedConstructorKeys.includes(containerKey)\n ? undefined\n : Reflect.getOwnMetadata(containerKey, classConstructor);\n\n const modulesConverted = !inputedConstructorKeys.includes(containerKey)\n ? [classConstructor]\n : containerMetadata?.modules || [];\n\n const resolutedContainer = !containerMetadata\n ? undefined\n : await containerResolution({\n containerClass: classConstructor,\n options: options,\n extendInjector: injector\n });\n\n const resolutedModules = await Promise.all(\n modulesConverted.map((moduleConverted) =>\n moduleResolution({\n moduleClass: moduleConverted,\n options: options,\n extendInjector: !resolutedContainer ? injector : resolutedContainer.injector\n })\n )\n );\n\n const availableModuleResolutions = resolutedModules.filter(\n (resolutedModule) => typeof resolutedModule !== \"undefined\"\n );\n\n const prefixs = [\n ...new Set(\n availableModuleResolutions.map(\n (availableModuleResolution) => availableModuleResolution.prefix\n )\n )\n ];\n\n if (prefixs.length !== availableModuleResolutions.length) {\n throw Error(\"Module prefix should be unique.\");\n }\n\n const webSocketsMap = new Map<string, TWebSocketEventHandlerMetadata>();\n\n for (const availableModuleResolution of availableModuleResolutions) {\n const webSocketMap = availableModuleResolution.webSocketRouterGroup.execute();\n\n for (const [key, metadata] of webSocketMap.entries()) {\n webSocketsMap.set(key, metadata);\n }\n }\n\n const server = Bun.serve<TWebSocketUpgradeData, {}>({\n port: options.port,\n fetch: async (request, server) => {\n const start = performance.now(),\n url = new URL(request.url),\n query = Qs.parse(url.searchParams.toString(), options.queryParser),\n origin = request.headers.get(\"origin\") || \"*\",\n method = request.method.toUpperCase(),\n responseHeaders = new Headers();\n\n let context = new Context()\n .setOptions({ isStatic: true })\n .set(httpServerArgsKey, server)\n .set(requestArgsKey, request)\n .set(requestHeaderArgsKey, request.headers)\n .set(responseHeadersArgsKey, responseHeaders)\n .set(queryArgsKey, query);\n\n try {\n const isUpgradable = isWebSocketUpgrade(request);\n\n let collection:\n | undefined\n | Required<{\n route: NonNullable<ReturnType<HttpRouterGroup[\"find\"]>>;\n resolution: NonNullable<Awaited<ReturnType<typeof moduleResolution>>>;\n }>;\n\n if (isUpgradable) {\n for (const availableModuleResolution of availableModuleResolutions) {\n const routeResult =\n availableModuleResolution.webSocketHttpRouterGroup.find(\n url.pathname,\n request.method as keyof THttpMethods\n );\n\n if (routeResult) {\n collection = Object.freeze({\n route: routeResult,\n resolution: availableModuleResolution\n });\n break;\n }\n }\n\n if (!collection) {\n return responseConverter(\n new Response(\n JSON.stringify({\n httpCode: 404,\n message: \"Route not found\",\n data: undefined\n }),\n {\n status: 404,\n statusText: \"Not found.\",\n headers: responseHeaders\n }\n )\n );\n }\n\n const upgradeResult = await webSocketFetcher(\n {\n request,\n server\n },\n {\n query: query,\n responseHeaders: responseHeaders,\n route: collection.route,\n moduleResolution: collection.resolution\n }\n );\n\n return upgradeResult instanceof Response ? upgradeResult : undefined;\n }\n\n [\n ...(!allowCredentials\n ? []\n : [\n {\n key: \"Access-Control-Allow-Credentials\",\n value: \"true\"\n }\n ]),\n {\n key: \"Access-Control-Allow-Origin\",\n value: allowOrigins.includes(\"*\")\n ? \"*\"\n : !allowOrigins.includes(origin)\n ? allowOrigins[0]\n : origin\n },\n { key: \"Access-Control-Allow-Methods\", value: allowMethods.join(\", \") },\n { key: \"Access-Control-Allow-Headers\", value: allowHeaders.join(\", \") }\n ].forEach(({ key, value }) => responseHeaders.set(key, value));\n\n if (!allowMethods.includes(method)) {\n return responseConverter(\n new Response(undefined, {\n status: 405,\n statusText: \"Method Not Allowed.\",\n headers: responseHeaders\n })\n );\n }\n\n if (request.method.toUpperCase() === \"OPTIONS\") {\n return responseConverter(\n allowOrigins.includes(\"*\") || allowOrigins.includes(origin)\n ? new Response(undefined, {\n status: 204,\n statusText: \"No Content.\",\n headers: responseHeaders\n })\n : new Response(undefined, {\n status: 417,\n statusText: \"Expectation Failed.\",\n headers: responseHeaders\n })\n );\n }\n\n if (staticOption) {\n const { path, headers, cacheTimeInSeconds } = staticOption;\n const pathname = `${path}/${url.pathname}`;\n const cachedFile = staticMap.get(pathname);\n\n if (!cachedFile) {\n const file = Bun.file(pathname);\n const isFileExists = await file.exists();\n\n if (isFileExists) {\n if (headers) {\n for (const [key, value] of Object.entries(headers)) {\n responseHeaders.set(key, value);\n }\n }\n\n responseHeaders.set(\"Content-Type\", file.type);\n\n return responseConverter(\n new Response(await file.arrayBuffer(), {\n status: 200,\n statusText: \"SUCCESS\",\n headers: responseHeaders\n })\n );\n }\n } else {\n const isExpired = new Date() > cachedFile.expiredAt;\n\n if (isExpired) {\n staticMap.delete(pathname);\n }\n\n const file = !isExpired ? cachedFile.file : Bun.file(pathname);\n const isFileExists = await file.exists();\n\n if (isFileExists) {\n staticMap.set(\n pathname,\n Object.freeze({\n expiredAt: TimeAdd(\n new Date(),\n typeof cacheTimeInSeconds !== \"number\"\n ? DEFAULT_STATIC_CACHE_TIME_IN_SECONDS\n : cacheTimeInSeconds,\n ETimeUnit.seconds\n ),\n file: file\n })\n );\n\n if (headers) {\n for (const [key, value] of Object.entries(headers)) {\n responseHeaders.set(key, value);\n }\n }\n\n responseHeaders.set(\"Content-Type\", file.type);\n\n return responseConverter(\n new Response(await file.arrayBuffer(), {\n status: 200,\n statusText: \"SUCCESS\",\n headers: responseHeaders\n })\n );\n }\n }\n }\n\n if (resolutedContainer) {\n const { context: newContext } = await httpFetcher({\n context: context,\n resolutedMap: {\n injector: resolutedContainer.injector,\n startMiddlewareGroup: resolutedContainer.startMiddlewareGroup,\n guardGroup: resolutedContainer.guardGroup\n },\n options: {\n isContainer: true\n }\n });\n\n context = newContext;\n }\n\n for (const availableModuleResolution of availableModuleResolutions) {\n const routeResult = availableModuleResolution.controllerRouterGroup.find(\n url.pathname,\n method as keyof THttpMethods\n );\n\n if (routeResult) {\n collection = Object.freeze({\n route: routeResult,\n resolution: availableModuleResolution\n });\n break;\n }\n }\n\n if (!collection) {\n context\n .setOptions({ isStatic: false })\n .set(responseStatusArgsKey, 404)\n .set(responseStatusTextArgsKey, \"Not found.\")\n .set(\n responseBodyArgsKey,\n JSON.stringify({\n httpCode: 404,\n message: \"Route not found\",\n data: undefined\n })\n );\n } else {\n const { context: newContext } = await httpFetcher({\n context: context,\n route: collection.route,\n resolutedMap: collection.resolution\n });\n\n context = newContext;\n }\n\n if (resolutedContainer) {\n const { context: newContext } = await httpFetcher({\n context: context,\n resolutedMap: {\n injector: resolutedContainer.injector,\n endMiddlewareGroup: resolutedContainer.endMiddlewareGroup\n },\n options: {\n isContainer: true\n }\n });\n\n context = newContext;\n }\n\n const latestResponseHeaders =\n context.get<Headers | null | undefined>(responseHeadersArgsKey, {\n isStatic: true\n }) || new Headers(),\n latestResponseBody =\n context.get<unknown>(responseBodyArgsKey, { isStatic: false }) ||\n undefined,\n latestResponseStatus = context.get<unknown>(responseStatusArgsKey, {\n isStatic: false\n }),\n latestResponseStatusText = context.get<unknown>(responseStatusArgsKey, {\n isStatic: false\n });\n\n return responseSerialize({\n status:\n typeof latestResponseStatus !== \"number\"\n ? undefined\n : latestResponseStatus,\n statusText:\n typeof latestResponseStatusText !== \"string\"\n ? undefined\n : latestResponseStatusText,\n headers: latestResponseHeaders,\n data: latestResponseBody\n });\n } catch (error) {\n options.debug && console.error(error);\n\n return responseConverter(jsonErrorInfer(error, responseHeaders));\n } finally {\n if (allowLogsMethods) {\n const end = performance.now();\n const pathname = ansiText(url.pathname, { color: \"blue\" });\n const convertedPID = `${Bun.color(\"yellow\", \"ansi\")}${process.pid}`;\n const convertedMethod = ansiText(request.method, {\n color: \"yellow\",\n backgroundColor: \"blue\"\n });\n const convertedReqIp = ansiText(\n `${\n request.headers.get(\"x-forwarded-for\") ||\n request.headers.get(\"x-real-ip\") ||\n server.requestIP(request)?.address ||\n \"<Unknown>\"\n }`,\n {\n color: \"yellow\"\n }\n );\n const convertedTime = ansiText(\n `${Math.round((end - start + Number.EPSILON) * 10 ** 2) / 10 ** 2}ms`,\n {\n color: \"yellow\",\n backgroundColor: \"blue\"\n }\n );\n\n allowLogsMethods.includes(\n request.method.toUpperCase() as (typeof allowLogsMethods)[number]\n ) &&\n console.info(\n `PID: ${convertedPID} - Method: ${convertedMethod} - IP: ${convertedReqIp} - ${pathname} - Time: ${convertedTime}`\n );\n }\n }\n },\n websocket: {\n open: (connection) => {\n const pathnameKey = `${connection.data.pathname}:::open`;\n const handlerMetadata = webSocketsMap.get(pathnameKey);\n\n if (!handlerMetadata) {\n return;\n }\n\n const argumentsMetadata = handlerMetadata.arguments || {};\n const args: Array<unknown> = [];\n\n for (const [_key, argumentMetadata] of Object.entries(argumentsMetadata)) {\n switch (argumentMetadata.type) {\n case webSocketConnectionArgsKey:\n args[argumentMetadata.index] = connection;\n break;\n case webSocketServerArgsKey:\n args[argumentMetadata.index] = server;\n break;\n }\n }\n\n handlerMetadata.descriptor.value(...args);\n },\n close: (connection, code, reason) => {\n const pathnameKey = `${connection.data.pathname}:::close`;\n const handlerMetadata = webSocketsMap.get(pathnameKey);\n\n if (!handlerMetadata) {\n return;\n }\n\n const argumentsMetadata = handlerMetadata.arguments || {};\n const args: Array<unknown> = [];\n\n for (const [_key, argumentMetadata] of Object.entries(argumentsMetadata)) {\n switch (argumentMetadata.type) {\n case webSocketConnectionArgsKey:\n args[argumentMetadata.index] = connection;\n break;\n case webSocketServerArgsKey:\n args[argumentMetadata.index] = server;\n break;\n case webSocketCloseCodeArgsKey:\n args[argumentMetadata.index] = code;\n break;\n case webSocketCloseReasonArgsKey:\n args[argumentMetadata.index] = reason;\n break;\n }\n }\n\n handlerMetadata.descriptor.value(...args);\n },\n message: (connection, message) => {\n const pathnameKey = `${connection.data.pathname}:::message`;\n const handlerMetadata = webSocketsMap.get(pathnameKey);\n\n if (!handlerMetadata) {\n return;\n }\n\n const argumentsMetadata = handlerMetadata.arguments || {};\n const args: Array<unknown> = [];\n\n for (const [_key, argumentMetadata] of Object.entries(argumentsMetadata)) {\n switch (argumentMetadata.type) {\n case webSocketConnectionArgsKey:\n args[argumentMetadata.index] = connection;\n break;\n case webSocketMessageArgsKey:\n args[argumentMetadata.index] = message;\n break;\n case webSocketServerArgsKey:\n args[argumentMetadata.index] = server;\n break;\n }\n }\n\n handlerMetadata.descriptor.value(...args);\n },\n drain: (connection) => {\n const pathnameKey = `${connection.data.pathname}:::drain`;\n const handlerMetadata = webSocketsMap.get(pathnameKey);\n\n if (!handlerMetadata) {\n return;\n }\n\n const argumentsMetadata = handlerMetadata.arguments || {};\n const args: Array<unknown> = [];\n\n for (const [_key, argumentMetadata] of Object.entries(argumentsMetadata)) {\n switch (argumentMetadata.type) {\n case webSocketConnectionArgsKey:\n args[argumentMetadata.index] = connection;\n break;\n case webSocketServerArgsKey:\n args[argumentMetadata.index] = server;\n break;\n }\n }\n\n handlerMetadata.descriptor.value(...args);\n },\n ping: (connection, data) => {\n const pathnameKey = `${connection.data.pathname}:::ping`;\n const handlerMetadata = webSocketsMap.get(pathnameKey);\n\n if (!handlerMetadata) {\n return;\n }\n\n const argumentsMetadata = handlerMetadata.arguments || {};\n const args: Array<unknown> = [];\n\n for (const [_key, argumentMetadata] of Object.entries(argumentsMetadata)) {\n switch (argumentMetadata.type) {\n case webSocketConnectionArgsKey:\n args[argumentMetadata.index] = connection;\n break;\n case webSocketServerArgsKey:\n args[argumentMetadata.index] = server;\n break;\n case webSocketMessageArgsKey:\n args[argumentMetadata.index] = data;\n break;\n }\n }\n\n handlerMetadata.descriptor.value(...args);\n },\n pong: (connection, data) => {\n const pathnameKey = `${connection.data.pathname}:::pong`;\n const handlerMetadata = webSocketsMap.get(pathnameKey);\n\n if (!handlerMetadata) {\n return;\n }\n\n const argumentsMetadata = handlerMetadata.arguments || {};\n const args: Array<unknown> = [];\n\n for (const [_key, argumentMetadata] of Object.entries(argumentsMetadata)) {\n switch (argumentMetadata.type) {\n case webSocketConnectionArgsKey:\n args[argumentMetadata.index] = connection;\n break;\n case webSocketServerArgsKey:\n args[argumentMetadata.index] = server;\n break;\n case webSocketMessageArgsKey:\n args[argumentMetadata.index] = data;\n break;\n }\n }\n\n handlerMetadata.descriptor.value(...args);\n }\n }\n });\n } catch (error) {\n options.debug && console.error(error);\n throw error;\n }\n};\n\nexport default BoolFactory;\n",
71
+ "export var ETimeUnit;\n(function (ETimeUnit) {\n ETimeUnit[\"year\"] = \"year\";\n ETimeUnit[\"month\"] = \"month\";\n ETimeUnit[\"day\"] = \"day\";\n ETimeUnit[\"hours\"] = \"hours\";\n ETimeUnit[\"minutes\"] = \"minutes\";\n ETimeUnit[\"seconds\"] = \"seconds\";\n ETimeUnit[\"miliseconds\"] = \"miliseconds\";\n})(ETimeUnit || (ETimeUnit = {}));\nexport const add = (time, value, unit = ETimeUnit.day) => {\n const date = time instanceof Date ? time : new Date(time);\n switch (unit) {\n case ETimeUnit.year:\n date.setFullYear(date.getFullYear() + value);\n break;\n case ETimeUnit.month:\n date.setMonth(date.getMonth() + value);\n break;\n case ETimeUnit.day:\n date.setDate(date.getDate() + value);\n break;\n case ETimeUnit.hours:\n date.setHours(date.getHours() + value);\n break;\n case ETimeUnit.minutes:\n date.setMinutes(date.getMinutes() + value);\n break;\n case ETimeUnit.seconds:\n date.setSeconds(date.getSeconds() + value);\n break;\n case ETimeUnit.miliseconds:\n date.setMilliseconds(date.getMilliseconds() + value);\n break;\n }\n return date;\n};\nexport const splitTime = (params) => {\n const { dateData, isUTC, isString } = !params\n ? {\n [\"dateData\"]: new Date(),\n [\"isUTC\"]: false,\n [\"isString\"]: false\n }\n : params;\n if (!isUTC) {\n const year = !isString ? dateData.getFullYear() : String(dateData.getFullYear());\n const month = dateData.getMonth() < 9\n ? !isString\n ? dateData.getMonth() + 1\n : `0${dateData.getMonth() + 1}`\n : !isString\n ? dateData.getMonth() + 1\n : String(dateData.getMonth() + 1);\n const date = dateData.getDate() < 10\n ? !isString\n ? dateData.getDate()\n : `0${dateData.getDate()}`\n : !isString\n ? dateData.getDate()\n : String(dateData.getDate());\n const hours = dateData.getHours() < 10\n ? !isString\n ? dateData.getHours()\n : `0${dateData.getHours()}`\n : !isString\n ? dateData.getHours()\n : String(dateData.getHours());\n const minutes = dateData.getMinutes() < 10\n ? !isString\n ? dateData.getMinutes()\n : `0${dateData.getMinutes()}`\n : !isString\n ? dateData.getMinutes()\n : String(dateData.getMinutes());\n const seconds = dateData.getSeconds() < 10\n ? !isString\n ? dateData.getSeconds()\n : `0${dateData.getSeconds()}`\n : !isString\n ? dateData.getSeconds()\n : String(dateData.getSeconds());\n const milliseconds = dateData.getMilliseconds() < 10\n ? !isString\n ? dateData.getMilliseconds()\n : `0${dateData.getMilliseconds()}`\n : !isString\n ? dateData.getMilliseconds()\n : String(dateData.getMilliseconds());\n return { source: dateData, year, month, date, hours, minutes, seconds, milliseconds };\n }\n else {\n const year = !isString ? dateData.getUTCFullYear() : String(dateData.getUTCFullYear());\n const month = dateData.getUTCMonth() < 9\n ? !isString\n ? dateData.getUTCMonth() + 1\n : `0${dateData.getUTCMonth() + 1}`\n : !isString\n ? dateData.getUTCMonth() + 1\n : String(dateData.getUTCMonth() + 1);\n const date = dateData.getUTCDate() < 10\n ? !isString\n ? dateData.getUTCDate()\n : `0${dateData.getUTCDate()}`\n : !isString\n ? dateData.getUTCDate()\n : String(dateData.getUTCDate());\n const hours = dateData.getUTCHours() < 10\n ? !isString\n ? dateData.getUTCHours()\n : `0${dateData.getUTCHours()}`\n : !isString\n ? dateData.getUTCHours()\n : String(dateData.getUTCHours());\n const minutes = dateData.getUTCMinutes() < 10\n ? !isString\n ? dateData.getUTCMinutes()\n : `0${dateData.getUTCMinutes()}`\n : !isString\n ? dateData.getUTCMinutes()\n : String(dateData.getUTCMinutes());\n const seconds = dateData.getUTCSeconds() < 10\n ? !isString\n ? dateData.getUTCSeconds()\n : `0${dateData.getUTCSeconds()}`\n : !isString\n ? dateData.getUTCSeconds()\n : String(dateData.getUTCSeconds());\n const milliseconds = dateData.getUTCMilliseconds() < 10\n ? !isString\n ? dateData.getUTCMilliseconds()\n : `0${dateData.getUTCMilliseconds()}`\n : !isString\n ? dateData.getUTCMilliseconds()\n : String(dateData.getUTCMilliseconds());\n return { source: dateData, year, month, date, hours, minutes, seconds, milliseconds };\n }\n};\n",
72
+ "\"use strict\";\n\nimport type { TArgumentsMetadataCollection } from \"../decorators/arguments\";\nimport type { THttpMethods } from \"../http\";\n\nexport type THttpRouteModel<T = unknown> = Readonly<{\n class: new (...args: Array<any>) => T;\n funcName: string | symbol;\n func: (...args: Array<any>) => unknown;\n argumentsMetadata: TArgumentsMetadataCollection;\n}>;\n\nexport class HttpRoute {\n public static rootPattern = \":([a-z0-9A-Z_-]{1,})\";\n public static innerRootPattern = \"([a-z0-9A-Z_-]{1,})\";\n\n public readonly alias: string;\n\n private _map = new Map<keyof THttpMethods, THttpRouteModel>();\n\n constructor(alias: string) {\n this.alias = this._thinAlias(alias);\n }\n\n public test(\n pathname: string,\n method: keyof THttpMethods\n ):\n | Readonly<{ parameters: Record<string, string>; model: THttpRouteModel }>\n | false\n | undefined {\n try {\n const model = this._map.get(method);\n const aliasSplitted = this.alias.split(\"/\");\n const currentPathNameSplitted = this._thinAlias(pathname).split(\"/\");\n\n if (!model) {\n return undefined;\n }\n\n // Compare splitted length\n if (aliasSplitted.length !== currentPathNameSplitted.length) {\n return undefined;\n }\n\n const parameters: Record<string, string> = Object();\n const matchingRegex = this.alias.replace(\n new RegExp(HttpRoute.rootPattern, \"g\"),\n HttpRoute.innerRootPattern\n );\n\n if (!new RegExp(matchingRegex).test(this._thinAlias(pathname))) {\n return undefined;\n }\n\n for (let index = 0; index < aliasSplitted.length; index++) {\n const aliasPart = aliasSplitted[index];\n const pathnamePart = currentPathNameSplitted[index];\n\n // Check pathmane path match a dynamic syntax, if no match => start compare equal or not\n if (!new RegExp(HttpRoute.rootPattern, \"g\").test(aliasPart)) {\n if (aliasPart !== pathnamePart) return undefined;\n } else {\n let isFailed = false;\n\n aliasPart.replace(\n new RegExp(HttpRoute.rootPattern, \"g\"),\n (match, key, offset) => {\n if (offset === 0) {\n pathnamePart.replace(\n new RegExp(HttpRoute.innerRootPattern, \"g\"),\n (innerMatch, innerKey, innerOffset) => {\n if (innerOffset === 0) {\n Object.assign(parameters, {\n [key]: innerMatch\n });\n }\n\n return innerMatch;\n }\n );\n }\n\n return match;\n }\n );\n\n if (isFailed) {\n return undefined;\n }\n }\n\n continue;\n }\n\n return Object.freeze({\n parameters: parameters,\n model: model\n });\n } catch (err) {\n console.error(err);\n return false;\n }\n }\n\n /**\n *\n */\n public isMatch(pathname: string, method: keyof THttpMethods) {\n try {\n const handlers = this._map.get(method);\n\n if (!handlers) {\n return undefined;\n }\n\n const aliasSplitted = this.alias.split(\"/\");\n const currentPathNameSplitted = this._thinAlias(pathname).split(\"/\");\n\n // Compare splitted length\n if (aliasSplitted.length !== currentPathNameSplitted.length) {\n return false;\n }\n\n const parameters = Object();\n\n for (let index = 0; index < aliasSplitted.length; index++) {\n const aliasPart = aliasSplitted[index];\n const pathnamePart = currentPathNameSplitted[index];\n\n // Check pathmane path match a dynamic syntax, if no match => start compare equal or not\n if (!new RegExp(HttpRoute.rootPattern, \"g\").test(aliasPart)) {\n if (aliasPart !== pathnamePart) {\n return false;\n }\n } else {\n let isFailed = false;\n\n aliasPart.replace(\n new RegExp(HttpRoute.rootPattern, \"g\"),\n (subString, key, value) => {\n if (!new RegExp(value, \"g\").test(pathnamePart)) {\n isFailed = true;\n } else {\n Object.assign(parameters, {\n [key]: pathnamePart\n });\n }\n return \"\";\n }\n );\n\n if (isFailed) {\n return false;\n }\n }\n\n continue;\n }\n\n return true;\n } catch (err) {\n console.error(err);\n return undefined;\n }\n }\n\n /**\n *\n * @param handlers\n * @returns\n */\n public get(handler: THttpRouteModel) {\n const currenTHttpRouteModel = this._map.get(\"GET\");\n\n if (!currenTHttpRouteModel) {\n this._map.set(\"GET\", handler);\n }\n\n return this;\n }\n\n /**\n *\n * @param handlers\n * @returns\n */\n public post(handler: THttpRouteModel) {\n const currenTHttpRouteModel = this._map.get(\"POST\");\n\n if (!currenTHttpRouteModel) {\n this._map.set(\"POST\", handler);\n }\n\n return this;\n }\n\n /**\n *\n * @param handlers\n * @returns\n */\n public put(handler: THttpRouteModel) {\n const currenTHttpRouteModel = this._map.get(\"PUT\");\n\n if (!currenTHttpRouteModel) {\n this._map.set(\"PUT\", handler);\n }\n\n return this;\n }\n\n /**\n *\n * @param handlers\n * @returns\n */\n public delete(handler: THttpRouteModel) {\n const currenTHttpRouteModel = this._map.get(\"DELETE\");\n\n if (!currenTHttpRouteModel) {\n this._map.set(\"DELETE\", handler);\n }\n\n return this;\n }\n\n /**\n *\n * @param handlers\n * @returns\n */\n public connect(handler: THttpRouteModel) {\n const currenTHttpRouteModel = this._map.get(\"CONNECT\");\n\n if (!currenTHttpRouteModel) {\n return this._map.set(\"CONNECT\", handler);\n }\n\n return this;\n }\n\n /**\n *\n * @param handlers\n * @returns\n */\n public options(handler: THttpRouteModel) {\n const currenTHttpRouteModel = this._map.get(\"OPTIONS\");\n\n if (!currenTHttpRouteModel) {\n return this._map.set(\"OPTIONS\", handler);\n }\n\n return this;\n }\n\n /**\n *\n * @param handlers\n * @returns\n */\n public trace(handler: THttpRouteModel) {\n const currenTHttpRouteModel = this._map.get(\"TRACE\");\n\n if (!currenTHttpRouteModel) {\n return this._map.set(\"TRACE\", handler);\n }\n\n return this;\n }\n\n /**\n *\n * @param handlers\n * @returns\n */\n public patch(handler: THttpRouteModel) {\n const currenTHttpRouteModel = this._map.get(\"PATCH\");\n\n if (!currenTHttpRouteModel) {\n return this._map.set(\"PATCH\", handler);\n }\n\n return this;\n }\n\n /**\n *\n * @param handlers\n * @returns\n */\n private _thinAlias(alias: string) {\n return alias\n .replace(new RegExp(\"[/]{2,}\", \"g\"), \"/\")\n .replace(new RegExp(\"^[/]|[/]$\", \"g\"), \"\");\n }\n\n /**\n * Internal get fullpath after check regular expression\n * @returns\n */\n get _fullPath(): string {\n // Split path to start filter\n const pathSplited = this.alias.split(\"/\");\n\n const blockFiltered = pathSplited.map((value, index) => {\n // Initialize full parameter regex to validate\n let validateReg = new RegExp(\":([a-z0-9A-Z_.-]{1,})(\\\\(.*?\\\\))\", \"g\");\n\n if (!validateReg.test(value)) {\n // Initialize key parameter regex to validate\n validateReg = new RegExp(\":([a-z0-9A-Z_.-]{1,})\", \"g\");\n\n if (!validateReg.test(value)) {\n return value;\n }\n\n return value.replace(validateReg, (value, index) => `${value}(.*?)`);\n }\n\n return value;\n });\n\n return blockFiltered.join(\"/\");\n }\n\n /**\n * Internal get filterd path after check regular expression\n * @returns\n */\n get _filteredPath(): string {\n // Split path to start filter\n const pathSplited = this.alias.split(\"/\");\n\n //\n const blockFiltered = pathSplited.map((value, index) => {\n let validateReg = new RegExp(\":([a-z0-9A-Z_.-]{1,})((.*?))\", \"g\");\n\n if (!validateReg.test(value)) {\n // Initialize key parameter regex to validate\n validateReg = new RegExp(\":([a-z0-9A-Z_.-]{1,})\", \"g\");\n\n if (!validateReg.test(value)) {\n return value;\n }\n\n return value.replace(validateReg, (value, index) => \"(.*?)\");\n }\n\n return value.replace(validateReg, (subString, arg_01, arg_02) => arg_02);\n });\n\n return blockFiltered.join(\"/\");\n }\n}\n\nexport default HttpRoute;\n",
73
+ "\"use strict\";\n\nimport HttpRoute from \"./httpRoute\";\n\nexport class HttpRouter {\n public readonly alias: string;\n\n private _routes: Map<string, HttpRoute> = new Map();\n\n constructor(alias: string) {\n this.alias = this._thinAlias(alias);\n }\n\n public route(alias: string) {\n const thinAlias = this._thinAlias(`${this.alias}/${alias}`);\n const route = this._routes.get(thinAlias);\n const newRoute = !route ? new HttpRoute(`${this.alias}/${alias}`) : route;\n\n if (!route) {\n this._routes.set(thinAlias, newRoute);\n }\n\n return newRoute;\n }\n\n private _thinAlias(alias: string) {\n return alias\n .replace(new RegExp(\"[/]{2,}\", \"g\"), \"/\")\n .replace(new RegExp(\"^[/]|[/]$\", \"g\"), \"\");\n }\n\n get routes() {\n return this._routes;\n }\n}\n\nexport default HttpRouter;\n",
74
+ "import type { THttpMethods } from \"../http\";\nimport type { HttpRouter } from \"./httpRouter\";\n\nexport class HttpRouterGroup {\n private _routers: Map<string, HttpRouter> = new Map();\n\n public add(...routers: Array<HttpRouter>) {\n for (let i = 0; i < routers.length; i++) {\n if (this._routers.has(routers[i].alias)) {\n continue;\n }\n\n this._routers.set(routers[i].alias, routers[i]);\n }\n\n return this;\n }\n\n public find(pathame: string, method: keyof THttpMethods) {\n for (const router of [...this._routers.values()]) {\n for (const route of router.routes.values()) {\n const result = route.test(pathame, method);\n\n if (!result) {\n continue;\n }\n\n return result;\n }\n }\n\n return undefined;\n }\n}\n",
75
+ "import type { TWebSocketEventHandlerMetadata } from \"../decorators\";\n\nexport class WebSocketRoute {\n public readonly eventName: string;\n public readonly metadata: TWebSocketEventHandlerMetadata;\n private _context: Object | undefined = undefined;\n\n constructor({\n eventName,\n metadata\n }: {\n eventName: string;\n metadata: TWebSocketEventHandlerMetadata;\n }) {\n this.eventName = eventName;\n this.metadata = metadata;\n }\n\n public bind(instance: Object): ThisType<WebSocketRoute> {\n this._context = instance;\n\n return this;\n }\n\n public execute(): Readonly<TWebSocketEventHandlerMetadata> {\n return Object.freeze({\n methodName: this.metadata.methodName,\n descriptor:\n !this._context || typeof this.metadata.descriptor.value !== \"function\"\n ? this.metadata.descriptor\n : this.metadata.descriptor.value.bind(this._context),\n arguments: this.metadata.arguments\n });\n }\n}\n",
76
+ "import type { TWebSocketEventHandlerMetadata } from \"../decorators\";\nimport type { WebSocketRoute } from \"./webSocketRoute\";\n\nexport class WebSocketRouter {\n public readonly alias: string;\n public readonly routes: Array<WebSocketRoute> = [];\n\n constructor(public readonly rawAlias: string = \"/\") {\n this.alias = WebSocketRouter.thinAlias(rawAlias);\n }\n\n /**\n * Add websocket routes into router and start analysis\n * @param routes\n * @returns\n */\n public addRoutes(...routes: Array<WebSocketRoute>): ThisType<WebSocketRouter> {\n for (const route of routes) {\n if (!this.routes.includes(route)) {\n this.routes.push(route);\n }\n }\n\n return this;\n }\n\n /**\n * Bind context for descriptor handler in the router\n * @param instance\n * @returns\n */\n public bind(instance: Object): ThisType<WebSocketRouter> {\n for (const route of this.routes) {\n route.bind(instance);\n }\n\n return this;\n }\n\n /**\n * Generate map for websocket handler metadata\n * @returns\n */\n public execute(): Map<string, TWebSocketEventHandlerMetadata> {\n const map = new Map<string, TWebSocketEventHandlerMetadata>();\n\n for (const route of this.routes) {\n map.set(`${this.alias}:::${route.eventName}`, route.execute());\n }\n\n return map;\n }\n\n /**\n * Handle alias for router, standardize\n * @param alias\n * @returns\n */\n public static thinAlias(alias: string): string {\n return alias\n .replace(new RegExp(\"[/]{2,}\", \"g\"), \"/\")\n .replace(new RegExp(\"^[/]|[/]$\", \"g\"), \"\");\n }\n}\n",
77
+ "import type { TWebSocketEventHandlerMetadata } from \"../decorators\";\nimport type { WebSocketRouter } from \"./webSocketRouter\";\n\nexport class WebSocketRouterGroup {\n public readonly prefix: string;\n public readonly routers: Array<WebSocketRouter> = [];\n\n constructor(public readonly rawPrefix: string = \"/\") {\n this.prefix = WebSocketRouterGroup.thinPrefix(rawPrefix);\n }\n\n /**\n *\n * @param routers\n * @returns\n */\n public addRouters(...routers: Array<WebSocketRouter>): ThisType<WebSocketRouterGroup> {\n for (let i = 0; i < routers.length; i++) {\n if (!this.routers.includes(routers[i])) {\n this.routers.push(routers[i]);\n }\n }\n\n for (const router of routers) {\n if (!this.routers.includes(router)) {\n this.routers.push(router);\n }\n }\n\n return this;\n }\n\n /**\n *\n * @returns\n */\n public execute(): Map<string, TWebSocketEventHandlerMetadata> {\n const map = new Map<string, TWebSocketEventHandlerMetadata>();\n\n for (const router of this.routers) {\n const routerMap = router.execute();\n\n for (const [routerKey, metadata] of routerMap.entries()) {\n map.set(\n `/${WebSocketRouterGroup.thinPrefix(`${this.prefix}/${routerKey}`)}`,\n metadata\n );\n }\n }\n\n return map;\n }\n\n /**\n *\n * @param prefix\n * @returns\n */\n public static thinPrefix(prefix: string): string {\n return prefix\n .replace(new RegExp(\"[/]{2,}\", \"g\"), \"/\")\n .replace(new RegExp(\"^[/]|[/]$\", \"g\"), \"\");\n }\n}\n",
78
+ "export const AsyncFunction = async function () { }.constructor;",
79
+ "type AnsiOptions = {\n color?: keyof typeof ansiColors;\n backgroundColor?: keyof typeof backgroundColors;\n bold?: boolean;\n underline?: boolean;\n};\n\nconst ansiColors = Object.freeze({\n black: 30,\n red: 31,\n green: 32,\n yellow: 33,\n blue: 34,\n magenta: 35,\n cyan: 36,\n white: 37,\n gray: 90\n});\n\nconst backgroundColors = Object.freeze({\n black: 40,\n red: 41,\n green: 42,\n yellow: 43,\n blue: 44,\n magenta: 45,\n cyan: 46,\n white: 47,\n gray: 100\n});\n\nexport const ansiText = (text: string, options: AnsiOptions = {}) => {\n const { color, backgroundColor, bold, underline } = options;\n\n let ansiCode = \"\";\n\n if (bold) {\n ansiCode += \"\\x1b[1m\"; // Mã ANSI cho in đậm\n }\n\n if (underline) {\n ansiCode += \"\\x1b[4m\"; // Mã ANSI cho gạch chân\n }\n\n if (color && ansiColors[color]) {\n ansiCode += `\\x1b[${ansiColors[color]}m`;\n }\n\n // Màu nền\n if (backgroundColor && backgroundColors[backgroundColor]) {\n ansiCode += `\\x1b[${backgroundColors[backgroundColor]}m`;\n }\n\n // Kết quả với reset\n return `${ansiCode}${text}\\x1b[0m`;\n};\n",
80
+ "export const isWebSocketUpgrade = (request: Request): boolean => {\n const headers = request.headers;\n\n const method = request.method;\n const upgrade = headers.get(\"upgrade\")?.toLowerCase() || \"\";\n const connection = headers.get(\"connection\")?.toLowerCase() || \"\";\n\n return method === \"GET\" && upgrade?.toLowerCase() === \"websocket\" && connection?.toLowerCase().includes(\"upgrade\");\n};\n",
81
+ "import type { IContext, TContextOptions } from \"../interfaces\";\n\nexport class Context implements IContext {\n private readonly _staticMap = new Map<symbol, any>();\n private readonly _dynamicMap = new Map<symbol, any>();\n\n private _options?: TContextOptions = undefined;\n\n constructor(...contexts: Array<Context>) {\n contexts.forEach((context) => {\n context.staticEntries.forEach(([key, value]) =>\n this.set(key, value, { isStatic: true, isPassthrough: true })\n );\n context.dynamicEntries.forEach(([key, value]) =>\n this.set(key, value, { isStatic: false })\n );\n });\n }\n\n get<T = unknown>(key: symbol, options?: TContextOptions) {\n const temporaryOptions = options || this._options;\n\n return !temporaryOptions?.isStatic\n ? (this._dynamicMap.get(key) as T)\n : (this._staticMap.get(key) as T);\n }\n\n has(key: symbol, options?: TContextOptions) {\n const temporaryOptions = options || this._options;\n\n return !temporaryOptions?.isStatic ? this._dynamicMap.has(key) : this._staticMap.has(key);\n }\n\n set(key: symbol, value: any, options?: TContextOptions) {\n const temporaryOptions = options || this._options;\n\n if (!temporaryOptions?.isStatic) {\n this._dynamicMap.set(key, value);\n } else {\n if (!this._staticMap.has(key)) {\n this._staticMap.set(key, value);\n } else if (!temporaryOptions.isPassthrough) {\n throw Error(`${String(key)} already exists in context static collection.`);\n }\n }\n\n return this;\n }\n\n setOptions(options: TContextOptions) {\n this._options = options;\n\n return this;\n }\n\n get staticEntries() {\n return [...this._staticMap.entries()];\n }\n\n get dynamicEntries() {\n return [...this._dynamicMap.entries()];\n }\n}\n",
82
+ "import \"reflect-metadata\";\nimport {\n controllerKey,\n guardKey,\n injectableKey,\n injectKey,\n interceptorKey,\n middlewareKey,\n webSocketKey\n} from \"../keys\";\n\ntype TDefinition<T = any> = { new (...args: any[]): T } | string | symbol;\n\ninterface IInjector {\n set(key: TDefinition, value: any): void;\n get<T>(definition: TDefinition): T;\n}\n\nexport class Injector implements IInjector {\n private readonly _mapper: Map<Function | string | symbol, any> = new Map();\n\n /**\n *\n * @param injectors\n */\n constructor(...injectors: Array<Injector>) {\n injectors.forEach((injector) => {\n injector.entries.forEach(([key, value]) => {\n this._mapper.set(key, value);\n });\n });\n }\n\n /**\n *\n * @param definition\n */\n get<T>(definition: TDefinition) {\n if (this._mapper.has(definition)) {\n return this._mapper.get(definition) as T;\n }\n\n if (typeof definition !== \"function\") {\n return undefined;\n }\n\n const ownMetadataKeys = Reflect.getMetadataKeys(definition);\n\n if (\n ![\n injectableKey,\n controllerKey,\n middlewareKey,\n guardKey,\n interceptorKey,\n webSocketKey\n ].some((value) => ownMetadataKeys.includes(value))\n ) {\n throw Error(\n \"Missing dependency declaration, please check @Injectable() used on dependency(ies).\"\n );\n }\n\n // Initialize dependencies injection\n const dependencies: any[] = Reflect.getOwnMetadata(injectKey, definition) || [];\n const injections: any[] = dependencies.map((dependency) => this.get(dependency));\n const instance = new definition(...injections);\n\n this._mapper.set(definition, instance);\n\n return instance;\n }\n\n /**\n *\n * @param key\n * @param value\n */\n set(key: TDefinition, value: any) {\n if (this._mapper.has(key)) {\n throw Error(`${String(key)} already exists in injector collection.`);\n }\n\n this._mapper.set(key, value);\n }\n\n get entries() {\n return [...this._mapper.entries()];\n }\n}\n\nexport default Injector;\n"
83
+ ],
84
+ "mappings": ";;;;;;;;;;;;;gFAcA,IAAI,IACH,QA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