- API: `pnpm build` bundles dist/ into apps/api/.output (esbuild), with Linux musl native packages for sharp and argon2 kept alongside - docker/api.Dockerfile copies that output; no pnpm install on the server - add dist/migrate.js (prisma migrate deploy equivalent, same _prisma_migrations table and lock) so the Prisma CLI is not needed at runtime - pnpm-workspace: supportedArchitectures for linux/x64/musl - admin: apps/admin/.env.production sets VITE_SITE_URL for the production build - drop NPM_REGISTRY / SITE_URL build args from compose and .env.example - gitignore: anchor node_modules rules so pre-built node_modules are committed - README: describe the pre-built deploy flow Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
15728 lines
635 KiB
JavaScript
15728 lines
635 KiB
JavaScript
import { createRequire as __bundleCreateRequire } from "node:module"; const require = __bundleCreateRequire(import.meta.url);
|
|
import {
|
|
__commonJS,
|
|
__esm,
|
|
__export,
|
|
__name,
|
|
__toESM
|
|
} from "./chunk-T6GW54FI.js";
|
|
|
|
// ../../node_modules/.pnpm/reflect-metadata@0.2.2/node_modules/reflect-metadata/Reflect.js
|
|
var require_Reflect = __commonJS({
|
|
"../../node_modules/.pnpm/reflect-metadata@0.2.2/node_modules/reflect-metadata/Reflect.js"() {
|
|
var Reflect2;
|
|
(function(Reflect3) {
|
|
(function(factory) {
|
|
var root = typeof globalThis === "object" ? globalThis : typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : sloppyModeThis();
|
|
var exporter = makeExporter(Reflect3);
|
|
if (typeof root.Reflect !== "undefined") {
|
|
exporter = makeExporter(root.Reflect, exporter);
|
|
}
|
|
factory(exporter, root);
|
|
if (typeof root.Reflect === "undefined") {
|
|
root.Reflect = Reflect3;
|
|
}
|
|
function makeExporter(target, previous) {
|
|
return function(key, value) {
|
|
Object.defineProperty(target, key, { configurable: true, writable: true, value });
|
|
if (previous)
|
|
previous(key, value);
|
|
};
|
|
}
|
|
__name(makeExporter, "makeExporter");
|
|
function functionThis() {
|
|
try {
|
|
return Function("return this;")();
|
|
} catch (_) {
|
|
}
|
|
}
|
|
__name(functionThis, "functionThis");
|
|
function indirectEvalThis() {
|
|
try {
|
|
return (void 0, eval)("(function() { return this; })()");
|
|
} catch (_) {
|
|
}
|
|
}
|
|
__name(indirectEvalThis, "indirectEvalThis");
|
|
function sloppyModeThis() {
|
|
return functionThis() || indirectEvalThis();
|
|
}
|
|
__name(sloppyModeThis, "sloppyModeThis");
|
|
})(function(exporter, root) {
|
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
var supportsSymbol = typeof Symbol === "function";
|
|
var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== "undefined" ? Symbol.toPrimitive : "@@toPrimitive";
|
|
var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== "undefined" ? Symbol.iterator : "@@iterator";
|
|
var supportsCreate = typeof Object.create === "function";
|
|
var supportsProto = { __proto__: [] } instanceof Array;
|
|
var downLevel = !supportsCreate && !supportsProto;
|
|
var HashMap = {
|
|
// create an object in dictionary mode (a.k.a. "slow" mode in v8)
|
|
create: supportsCreate ? function() {
|
|
return MakeDictionary(/* @__PURE__ */ Object.create(null));
|
|
} : supportsProto ? function() {
|
|
return MakeDictionary({ __proto__: null });
|
|
} : function() {
|
|
return MakeDictionary({});
|
|
},
|
|
has: downLevel ? function(map2, key) {
|
|
return hasOwn.call(map2, key);
|
|
} : function(map2, key) {
|
|
return key in map2;
|
|
},
|
|
get: downLevel ? function(map2, key) {
|
|
return hasOwn.call(map2, key) ? map2[key] : void 0;
|
|
} : function(map2, key) {
|
|
return map2[key];
|
|
}
|
|
};
|
|
var functionPrototype = Object.getPrototypeOf(Function);
|
|
var _Map = typeof Map === "function" && typeof Map.prototype.entries === "function" ? Map : CreateMapPolyfill();
|
|
var _Set = typeof Set === "function" && typeof Set.prototype.entries === "function" ? Set : CreateSetPolyfill();
|
|
var _WeakMap = typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
|
|
var registrySymbol = supportsSymbol ? /* @__PURE__ */ Symbol.for("@reflect-metadata:registry") : void 0;
|
|
var metadataRegistry = GetOrCreateMetadataRegistry();
|
|
var metadataProvider = CreateMetadataProvider(metadataRegistry);
|
|
function decorate(decorators, target, propertyKey, attributes) {
|
|
if (!IsUndefined(propertyKey)) {
|
|
if (!IsArray(decorators))
|
|
throw new TypeError();
|
|
if (!IsObject(target))
|
|
throw new TypeError();
|
|
if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))
|
|
throw new TypeError();
|
|
if (IsNull(attributes))
|
|
attributes = void 0;
|
|
propertyKey = ToPropertyKey(propertyKey);
|
|
return DecorateProperty(decorators, target, propertyKey, attributes);
|
|
} else {
|
|
if (!IsArray(decorators))
|
|
throw new TypeError();
|
|
if (!IsConstructor(target))
|
|
throw new TypeError();
|
|
return DecorateConstructor(decorators, target);
|
|
}
|
|
}
|
|
__name(decorate, "decorate");
|
|
exporter("decorate", decorate);
|
|
function metadata(metadataKey, metadataValue) {
|
|
function decorator(target, propertyKey) {
|
|
if (!IsObject(target))
|
|
throw new TypeError();
|
|
if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))
|
|
throw new TypeError();
|
|
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
|
|
}
|
|
__name(decorator, "decorator");
|
|
return decorator;
|
|
}
|
|
__name(metadata, "metadata");
|
|
exporter("metadata", metadata);
|
|
function defineMetadata(metadataKey, metadataValue, target, propertyKey) {
|
|
if (!IsObject(target))
|
|
throw new TypeError();
|
|
if (!IsUndefined(propertyKey))
|
|
propertyKey = ToPropertyKey(propertyKey);
|
|
return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
|
|
}
|
|
__name(defineMetadata, "defineMetadata");
|
|
exporter("defineMetadata", defineMetadata);
|
|
function hasMetadata(metadataKey, target, propertyKey) {
|
|
if (!IsObject(target))
|
|
throw new TypeError();
|
|
if (!IsUndefined(propertyKey))
|
|
propertyKey = ToPropertyKey(propertyKey);
|
|
return OrdinaryHasMetadata(metadataKey, target, propertyKey);
|
|
}
|
|
__name(hasMetadata, "hasMetadata");
|
|
exporter("hasMetadata", hasMetadata);
|
|
function hasOwnMetadata(metadataKey, target, propertyKey) {
|
|
if (!IsObject(target))
|
|
throw new TypeError();
|
|
if (!IsUndefined(propertyKey))
|
|
propertyKey = ToPropertyKey(propertyKey);
|
|
return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);
|
|
}
|
|
__name(hasOwnMetadata, "hasOwnMetadata");
|
|
exporter("hasOwnMetadata", hasOwnMetadata);
|
|
function getMetadata(metadataKey, target, propertyKey) {
|
|
if (!IsObject(target))
|
|
throw new TypeError();
|
|
if (!IsUndefined(propertyKey))
|
|
propertyKey = ToPropertyKey(propertyKey);
|
|
return OrdinaryGetMetadata(metadataKey, target, propertyKey);
|
|
}
|
|
__name(getMetadata, "getMetadata");
|
|
exporter("getMetadata", getMetadata);
|
|
function getOwnMetadata(metadataKey, target, propertyKey) {
|
|
if (!IsObject(target))
|
|
throw new TypeError();
|
|
if (!IsUndefined(propertyKey))
|
|
propertyKey = ToPropertyKey(propertyKey);
|
|
return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);
|
|
}
|
|
__name(getOwnMetadata, "getOwnMetadata");
|
|
exporter("getOwnMetadata", getOwnMetadata);
|
|
function getMetadataKeys(target, propertyKey) {
|
|
if (!IsObject(target))
|
|
throw new TypeError();
|
|
if (!IsUndefined(propertyKey))
|
|
propertyKey = ToPropertyKey(propertyKey);
|
|
return OrdinaryMetadataKeys(target, propertyKey);
|
|
}
|
|
__name(getMetadataKeys, "getMetadataKeys");
|
|
exporter("getMetadataKeys", getMetadataKeys);
|
|
function getOwnMetadataKeys(target, propertyKey) {
|
|
if (!IsObject(target))
|
|
throw new TypeError();
|
|
if (!IsUndefined(propertyKey))
|
|
propertyKey = ToPropertyKey(propertyKey);
|
|
return OrdinaryOwnMetadataKeys(target, propertyKey);
|
|
}
|
|
__name(getOwnMetadataKeys, "getOwnMetadataKeys");
|
|
exporter("getOwnMetadataKeys", getOwnMetadataKeys);
|
|
function deleteMetadata(metadataKey, target, propertyKey) {
|
|
if (!IsObject(target))
|
|
throw new TypeError();
|
|
if (!IsUndefined(propertyKey))
|
|
propertyKey = ToPropertyKey(propertyKey);
|
|
if (!IsObject(target))
|
|
throw new TypeError();
|
|
if (!IsUndefined(propertyKey))
|
|
propertyKey = ToPropertyKey(propertyKey);
|
|
var provider = GetMetadataProvider(
|
|
target,
|
|
propertyKey,
|
|
/*Create*/
|
|
false
|
|
);
|
|
if (IsUndefined(provider))
|
|
return false;
|
|
return provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey);
|
|
}
|
|
__name(deleteMetadata, "deleteMetadata");
|
|
exporter("deleteMetadata", deleteMetadata);
|
|
function DecorateConstructor(decorators, target) {
|
|
for (var i = decorators.length - 1; i >= 0; --i) {
|
|
var decorator = decorators[i];
|
|
var decorated = decorator(target);
|
|
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
if (!IsConstructor(decorated))
|
|
throw new TypeError();
|
|
target = decorated;
|
|
}
|
|
}
|
|
return target;
|
|
}
|
|
__name(DecorateConstructor, "DecorateConstructor");
|
|
function DecorateProperty(decorators, target, propertyKey, descriptor) {
|
|
for (var i = decorators.length - 1; i >= 0; --i) {
|
|
var decorator = decorators[i];
|
|
var decorated = decorator(target, propertyKey, descriptor);
|
|
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
if (!IsObject(decorated))
|
|
throw new TypeError();
|
|
descriptor = decorated;
|
|
}
|
|
}
|
|
return descriptor;
|
|
}
|
|
__name(DecorateProperty, "DecorateProperty");
|
|
function OrdinaryHasMetadata(MetadataKey, O, P) {
|
|
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
|
if (hasOwn2)
|
|
return true;
|
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
if (!IsNull(parent))
|
|
return OrdinaryHasMetadata(MetadataKey, parent, P);
|
|
return false;
|
|
}
|
|
__name(OrdinaryHasMetadata, "OrdinaryHasMetadata");
|
|
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
|
|
var provider = GetMetadataProvider(
|
|
O,
|
|
P,
|
|
/*Create*/
|
|
false
|
|
);
|
|
if (IsUndefined(provider))
|
|
return false;
|
|
return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));
|
|
}
|
|
__name(OrdinaryHasOwnMetadata, "OrdinaryHasOwnMetadata");
|
|
function OrdinaryGetMetadata(MetadataKey, O, P) {
|
|
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
|
if (hasOwn2)
|
|
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
if (!IsNull(parent))
|
|
return OrdinaryGetMetadata(MetadataKey, parent, P);
|
|
return void 0;
|
|
}
|
|
__name(OrdinaryGetMetadata, "OrdinaryGetMetadata");
|
|
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
|
|
var provider = GetMetadataProvider(
|
|
O,
|
|
P,
|
|
/*Create*/
|
|
false
|
|
);
|
|
if (IsUndefined(provider))
|
|
return;
|
|
return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
}
|
|
__name(OrdinaryGetOwnMetadata, "OrdinaryGetOwnMetadata");
|
|
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
|
|
var provider = GetMetadataProvider(
|
|
O,
|
|
P,
|
|
/*Create*/
|
|
true
|
|
);
|
|
provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);
|
|
}
|
|
__name(OrdinaryDefineOwnMetadata, "OrdinaryDefineOwnMetadata");
|
|
function OrdinaryMetadataKeys(O, P) {
|
|
var ownKeys = OrdinaryOwnMetadataKeys(O, P);
|
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
if (parent === null)
|
|
return ownKeys;
|
|
var parentKeys = OrdinaryMetadataKeys(parent, P);
|
|
if (parentKeys.length <= 0)
|
|
return ownKeys;
|
|
if (ownKeys.length <= 0)
|
|
return parentKeys;
|
|
var set = new _Set();
|
|
var keys = [];
|
|
for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {
|
|
var key = ownKeys_1[_i];
|
|
var hasKey = set.has(key);
|
|
if (!hasKey) {
|
|
set.add(key);
|
|
keys.push(key);
|
|
}
|
|
}
|
|
for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) {
|
|
var key = parentKeys_1[_a];
|
|
var hasKey = set.has(key);
|
|
if (!hasKey) {
|
|
set.add(key);
|
|
keys.push(key);
|
|
}
|
|
}
|
|
return keys;
|
|
}
|
|
__name(OrdinaryMetadataKeys, "OrdinaryMetadataKeys");
|
|
function OrdinaryOwnMetadataKeys(O, P) {
|
|
var provider = GetMetadataProvider(
|
|
O,
|
|
P,
|
|
/*create*/
|
|
false
|
|
);
|
|
if (!provider) {
|
|
return [];
|
|
}
|
|
return provider.OrdinaryOwnMetadataKeys(O, P);
|
|
}
|
|
__name(OrdinaryOwnMetadataKeys, "OrdinaryOwnMetadataKeys");
|
|
function Type(x) {
|
|
if (x === null)
|
|
return 1;
|
|
switch (typeof x) {
|
|
case "undefined":
|
|
return 0;
|
|
case "boolean":
|
|
return 2;
|
|
case "string":
|
|
return 3;
|
|
case "symbol":
|
|
return 4;
|
|
case "number":
|
|
return 5;
|
|
case "object":
|
|
return x === null ? 1 : 6;
|
|
default:
|
|
return 6;
|
|
}
|
|
}
|
|
__name(Type, "Type");
|
|
function IsUndefined(x) {
|
|
return x === void 0;
|
|
}
|
|
__name(IsUndefined, "IsUndefined");
|
|
function IsNull(x) {
|
|
return x === null;
|
|
}
|
|
__name(IsNull, "IsNull");
|
|
function IsSymbol(x) {
|
|
return typeof x === "symbol";
|
|
}
|
|
__name(IsSymbol, "IsSymbol");
|
|
function IsObject(x) {
|
|
return typeof x === "object" ? x !== null : typeof x === "function";
|
|
}
|
|
__name(IsObject, "IsObject");
|
|
function ToPrimitive(input, PreferredType) {
|
|
switch (Type(input)) {
|
|
case 0:
|
|
return input;
|
|
case 1:
|
|
return input;
|
|
case 2:
|
|
return input;
|
|
case 3:
|
|
return input;
|
|
case 4:
|
|
return input;
|
|
case 5:
|
|
return input;
|
|
}
|
|
var hint = PreferredType === 3 ? "string" : PreferredType === 5 ? "number" : "default";
|
|
var exoticToPrim = GetMethod(input, toPrimitiveSymbol);
|
|
if (exoticToPrim !== void 0) {
|
|
var result = exoticToPrim.call(input, hint);
|
|
if (IsObject(result))
|
|
throw new TypeError();
|
|
return result;
|
|
}
|
|
return OrdinaryToPrimitive(input, hint === "default" ? "number" : hint);
|
|
}
|
|
__name(ToPrimitive, "ToPrimitive");
|
|
function OrdinaryToPrimitive(O, hint) {
|
|
if (hint === "string") {
|
|
var toString_1 = O.toString;
|
|
if (IsCallable(toString_1)) {
|
|
var result = toString_1.call(O);
|
|
if (!IsObject(result))
|
|
return result;
|
|
}
|
|
var valueOf = O.valueOf;
|
|
if (IsCallable(valueOf)) {
|
|
var result = valueOf.call(O);
|
|
if (!IsObject(result))
|
|
return result;
|
|
}
|
|
} else {
|
|
var valueOf = O.valueOf;
|
|
if (IsCallable(valueOf)) {
|
|
var result = valueOf.call(O);
|
|
if (!IsObject(result))
|
|
return result;
|
|
}
|
|
var toString_2 = O.toString;
|
|
if (IsCallable(toString_2)) {
|
|
var result = toString_2.call(O);
|
|
if (!IsObject(result))
|
|
return result;
|
|
}
|
|
}
|
|
throw new TypeError();
|
|
}
|
|
__name(OrdinaryToPrimitive, "OrdinaryToPrimitive");
|
|
function ToBoolean(argument) {
|
|
return !!argument;
|
|
}
|
|
__name(ToBoolean, "ToBoolean");
|
|
function ToString(argument) {
|
|
return "" + argument;
|
|
}
|
|
__name(ToString, "ToString");
|
|
function ToPropertyKey(argument) {
|
|
var key = ToPrimitive(
|
|
argument,
|
|
3
|
|
/* String */
|
|
);
|
|
if (IsSymbol(key))
|
|
return key;
|
|
return ToString(key);
|
|
}
|
|
__name(ToPropertyKey, "ToPropertyKey");
|
|
function IsArray(argument) {
|
|
return Array.isArray ? Array.isArray(argument) : argument instanceof Object ? argument instanceof Array : Object.prototype.toString.call(argument) === "[object Array]";
|
|
}
|
|
__name(IsArray, "IsArray");
|
|
function IsCallable(argument) {
|
|
return typeof argument === "function";
|
|
}
|
|
__name(IsCallable, "IsCallable");
|
|
function IsConstructor(argument) {
|
|
return typeof argument === "function";
|
|
}
|
|
__name(IsConstructor, "IsConstructor");
|
|
function IsPropertyKey(argument) {
|
|
switch (Type(argument)) {
|
|
case 3:
|
|
return true;
|
|
case 4:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
__name(IsPropertyKey, "IsPropertyKey");
|
|
function SameValueZero(x, y) {
|
|
return x === y || x !== x && y !== y;
|
|
}
|
|
__name(SameValueZero, "SameValueZero");
|
|
function GetMethod(V, P) {
|
|
var func = V[P];
|
|
if (func === void 0 || func === null)
|
|
return void 0;
|
|
if (!IsCallable(func))
|
|
throw new TypeError();
|
|
return func;
|
|
}
|
|
__name(GetMethod, "GetMethod");
|
|
function GetIterator(obj) {
|
|
var method = GetMethod(obj, iteratorSymbol);
|
|
if (!IsCallable(method))
|
|
throw new TypeError();
|
|
var iterator = method.call(obj);
|
|
if (!IsObject(iterator))
|
|
throw new TypeError();
|
|
return iterator;
|
|
}
|
|
__name(GetIterator, "GetIterator");
|
|
function IteratorValue(iterResult) {
|
|
return iterResult.value;
|
|
}
|
|
__name(IteratorValue, "IteratorValue");
|
|
function IteratorStep(iterator) {
|
|
var result = iterator.next();
|
|
return result.done ? false : result;
|
|
}
|
|
__name(IteratorStep, "IteratorStep");
|
|
function IteratorClose(iterator) {
|
|
var f = iterator["return"];
|
|
if (f)
|
|
f.call(iterator);
|
|
}
|
|
__name(IteratorClose, "IteratorClose");
|
|
function OrdinaryGetPrototypeOf(O) {
|
|
var proto = Object.getPrototypeOf(O);
|
|
if (typeof O !== "function" || O === functionPrototype)
|
|
return proto;
|
|
if (proto !== functionPrototype)
|
|
return proto;
|
|
var prototype = O.prototype;
|
|
var prototypeProto = prototype && Object.getPrototypeOf(prototype);
|
|
if (prototypeProto == null || prototypeProto === Object.prototype)
|
|
return proto;
|
|
var constructor = prototypeProto.constructor;
|
|
if (typeof constructor !== "function")
|
|
return proto;
|
|
if (constructor === O)
|
|
return proto;
|
|
return constructor;
|
|
}
|
|
__name(OrdinaryGetPrototypeOf, "OrdinaryGetPrototypeOf");
|
|
function CreateMetadataRegistry() {
|
|
var fallback;
|
|
if (!IsUndefined(registrySymbol) && typeof root.Reflect !== "undefined" && !(registrySymbol in root.Reflect) && typeof root.Reflect.defineMetadata === "function") {
|
|
fallback = CreateFallbackProvider(root.Reflect);
|
|
}
|
|
var first;
|
|
var second;
|
|
var rest;
|
|
var targetProviderMap = new _WeakMap();
|
|
var registry = {
|
|
registerProvider,
|
|
getProvider,
|
|
setProvider
|
|
};
|
|
return registry;
|
|
function registerProvider(provider) {
|
|
if (!Object.isExtensible(registry)) {
|
|
throw new Error("Cannot add provider to a frozen registry.");
|
|
}
|
|
switch (true) {
|
|
case fallback === provider:
|
|
break;
|
|
case IsUndefined(first):
|
|
first = provider;
|
|
break;
|
|
case first === provider:
|
|
break;
|
|
case IsUndefined(second):
|
|
second = provider;
|
|
break;
|
|
case second === provider:
|
|
break;
|
|
default:
|
|
if (rest === void 0)
|
|
rest = new _Set();
|
|
rest.add(provider);
|
|
break;
|
|
}
|
|
}
|
|
__name(registerProvider, "registerProvider");
|
|
function getProviderNoCache(O, P) {
|
|
if (!IsUndefined(first)) {
|
|
if (first.isProviderFor(O, P))
|
|
return first;
|
|
if (!IsUndefined(second)) {
|
|
if (second.isProviderFor(O, P))
|
|
return first;
|
|
if (!IsUndefined(rest)) {
|
|
var iterator = GetIterator(rest);
|
|
while (true) {
|
|
var next = IteratorStep(iterator);
|
|
if (!next) {
|
|
return void 0;
|
|
}
|
|
var provider = IteratorValue(next);
|
|
if (provider.isProviderFor(O, P)) {
|
|
IteratorClose(iterator);
|
|
return provider;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (!IsUndefined(fallback) && fallback.isProviderFor(O, P)) {
|
|
return fallback;
|
|
}
|
|
return void 0;
|
|
}
|
|
__name(getProviderNoCache, "getProviderNoCache");
|
|
function getProvider(O, P) {
|
|
var providerMap = targetProviderMap.get(O);
|
|
var provider;
|
|
if (!IsUndefined(providerMap)) {
|
|
provider = providerMap.get(P);
|
|
}
|
|
if (!IsUndefined(provider)) {
|
|
return provider;
|
|
}
|
|
provider = getProviderNoCache(O, P);
|
|
if (!IsUndefined(provider)) {
|
|
if (IsUndefined(providerMap)) {
|
|
providerMap = new _Map();
|
|
targetProviderMap.set(O, providerMap);
|
|
}
|
|
providerMap.set(P, provider);
|
|
}
|
|
return provider;
|
|
}
|
|
__name(getProvider, "getProvider");
|
|
function hasProvider(provider) {
|
|
if (IsUndefined(provider))
|
|
throw new TypeError();
|
|
return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);
|
|
}
|
|
__name(hasProvider, "hasProvider");
|
|
function setProvider(O, P, provider) {
|
|
if (!hasProvider(provider)) {
|
|
throw new Error("Metadata provider not registered.");
|
|
}
|
|
var existingProvider = getProvider(O, P);
|
|
if (existingProvider !== provider) {
|
|
if (!IsUndefined(existingProvider)) {
|
|
return false;
|
|
}
|
|
var providerMap = targetProviderMap.get(O);
|
|
if (IsUndefined(providerMap)) {
|
|
providerMap = new _Map();
|
|
targetProviderMap.set(O, providerMap);
|
|
}
|
|
providerMap.set(P, provider);
|
|
}
|
|
return true;
|
|
}
|
|
__name(setProvider, "setProvider");
|
|
}
|
|
__name(CreateMetadataRegistry, "CreateMetadataRegistry");
|
|
function GetOrCreateMetadataRegistry() {
|
|
var metadataRegistry2;
|
|
if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {
|
|
metadataRegistry2 = root.Reflect[registrySymbol];
|
|
}
|
|
if (IsUndefined(metadataRegistry2)) {
|
|
metadataRegistry2 = CreateMetadataRegistry();
|
|
}
|
|
if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {
|
|
Object.defineProperty(root.Reflect, registrySymbol, {
|
|
enumerable: false,
|
|
configurable: false,
|
|
writable: false,
|
|
value: metadataRegistry2
|
|
});
|
|
}
|
|
return metadataRegistry2;
|
|
}
|
|
__name(GetOrCreateMetadataRegistry, "GetOrCreateMetadataRegistry");
|
|
function CreateMetadataProvider(registry) {
|
|
var metadata2 = new _WeakMap();
|
|
var provider = {
|
|
isProviderFor: /* @__PURE__ */ __name(function(O, P) {
|
|
var targetMetadata = metadata2.get(O);
|
|
if (IsUndefined(targetMetadata))
|
|
return false;
|
|
return targetMetadata.has(P);
|
|
}, "isProviderFor"),
|
|
OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata2,
|
|
OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata2,
|
|
OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata2,
|
|
OrdinaryOwnMetadataKeys: OrdinaryOwnMetadataKeys2,
|
|
OrdinaryDeleteMetadata
|
|
};
|
|
metadataRegistry.registerProvider(provider);
|
|
return provider;
|
|
function GetOrCreateMetadataMap(O, P, Create) {
|
|
var targetMetadata = metadata2.get(O);
|
|
var createdTargetMetadata = false;
|
|
if (IsUndefined(targetMetadata)) {
|
|
if (!Create)
|
|
return void 0;
|
|
targetMetadata = new _Map();
|
|
metadata2.set(O, targetMetadata);
|
|
createdTargetMetadata = true;
|
|
}
|
|
var metadataMap = targetMetadata.get(P);
|
|
if (IsUndefined(metadataMap)) {
|
|
if (!Create)
|
|
return void 0;
|
|
metadataMap = new _Map();
|
|
targetMetadata.set(P, metadataMap);
|
|
if (!registry.setProvider(O, P, provider)) {
|
|
targetMetadata.delete(P);
|
|
if (createdTargetMetadata) {
|
|
metadata2.delete(O);
|
|
}
|
|
throw new Error("Wrong provider for target.");
|
|
}
|
|
}
|
|
return metadataMap;
|
|
}
|
|
__name(GetOrCreateMetadataMap, "GetOrCreateMetadataMap");
|
|
function OrdinaryHasOwnMetadata2(MetadataKey, O, P) {
|
|
var metadataMap = GetOrCreateMetadataMap(
|
|
O,
|
|
P,
|
|
/*Create*/
|
|
false
|
|
);
|
|
if (IsUndefined(metadataMap))
|
|
return false;
|
|
return ToBoolean(metadataMap.has(MetadataKey));
|
|
}
|
|
__name(OrdinaryHasOwnMetadata2, "OrdinaryHasOwnMetadata");
|
|
function OrdinaryGetOwnMetadata2(MetadataKey, O, P) {
|
|
var metadataMap = GetOrCreateMetadataMap(
|
|
O,
|
|
P,
|
|
/*Create*/
|
|
false
|
|
);
|
|
if (IsUndefined(metadataMap))
|
|
return void 0;
|
|
return metadataMap.get(MetadataKey);
|
|
}
|
|
__name(OrdinaryGetOwnMetadata2, "OrdinaryGetOwnMetadata");
|
|
function OrdinaryDefineOwnMetadata2(MetadataKey, MetadataValue, O, P) {
|
|
var metadataMap = GetOrCreateMetadataMap(
|
|
O,
|
|
P,
|
|
/*Create*/
|
|
true
|
|
);
|
|
metadataMap.set(MetadataKey, MetadataValue);
|
|
}
|
|
__name(OrdinaryDefineOwnMetadata2, "OrdinaryDefineOwnMetadata");
|
|
function OrdinaryOwnMetadataKeys2(O, P) {
|
|
var keys = [];
|
|
var metadataMap = GetOrCreateMetadataMap(
|
|
O,
|
|
P,
|
|
/*Create*/
|
|
false
|
|
);
|
|
if (IsUndefined(metadataMap))
|
|
return keys;
|
|
var keysObj = metadataMap.keys();
|
|
var iterator = GetIterator(keysObj);
|
|
var k = 0;
|
|
while (true) {
|
|
var next = IteratorStep(iterator);
|
|
if (!next) {
|
|
keys.length = k;
|
|
return keys;
|
|
}
|
|
var nextValue = IteratorValue(next);
|
|
try {
|
|
keys[k] = nextValue;
|
|
} catch (e) {
|
|
try {
|
|
IteratorClose(iterator);
|
|
} finally {
|
|
throw e;
|
|
}
|
|
}
|
|
k++;
|
|
}
|
|
}
|
|
__name(OrdinaryOwnMetadataKeys2, "OrdinaryOwnMetadataKeys");
|
|
function OrdinaryDeleteMetadata(MetadataKey, O, P) {
|
|
var metadataMap = GetOrCreateMetadataMap(
|
|
O,
|
|
P,
|
|
/*Create*/
|
|
false
|
|
);
|
|
if (IsUndefined(metadataMap))
|
|
return false;
|
|
if (!metadataMap.delete(MetadataKey))
|
|
return false;
|
|
if (metadataMap.size === 0) {
|
|
var targetMetadata = metadata2.get(O);
|
|
if (!IsUndefined(targetMetadata)) {
|
|
targetMetadata.delete(P);
|
|
if (targetMetadata.size === 0) {
|
|
metadata2.delete(targetMetadata);
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
__name(OrdinaryDeleteMetadata, "OrdinaryDeleteMetadata");
|
|
}
|
|
__name(CreateMetadataProvider, "CreateMetadataProvider");
|
|
function CreateFallbackProvider(reflect) {
|
|
var defineMetadata2 = reflect.defineMetadata, hasOwnMetadata2 = reflect.hasOwnMetadata, getOwnMetadata2 = reflect.getOwnMetadata, getOwnMetadataKeys2 = reflect.getOwnMetadataKeys, deleteMetadata2 = reflect.deleteMetadata;
|
|
var metadataOwner = new _WeakMap();
|
|
var provider = {
|
|
isProviderFor: /* @__PURE__ */ __name(function(O, P) {
|
|
var metadataPropertySet = metadataOwner.get(O);
|
|
if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) {
|
|
return true;
|
|
}
|
|
if (getOwnMetadataKeys2(O, P).length) {
|
|
if (IsUndefined(metadataPropertySet)) {
|
|
metadataPropertySet = new _Set();
|
|
metadataOwner.set(O, metadataPropertySet);
|
|
}
|
|
metadataPropertySet.add(P);
|
|
return true;
|
|
}
|
|
return false;
|
|
}, "isProviderFor"),
|
|
OrdinaryDefineOwnMetadata: defineMetadata2,
|
|
OrdinaryHasOwnMetadata: hasOwnMetadata2,
|
|
OrdinaryGetOwnMetadata: getOwnMetadata2,
|
|
OrdinaryOwnMetadataKeys: getOwnMetadataKeys2,
|
|
OrdinaryDeleteMetadata: deleteMetadata2
|
|
};
|
|
return provider;
|
|
}
|
|
__name(CreateFallbackProvider, "CreateFallbackProvider");
|
|
function GetMetadataProvider(O, P, Create) {
|
|
var registeredProvider = metadataRegistry.getProvider(O, P);
|
|
if (!IsUndefined(registeredProvider)) {
|
|
return registeredProvider;
|
|
}
|
|
if (Create) {
|
|
if (metadataRegistry.setProvider(O, P, metadataProvider)) {
|
|
return metadataProvider;
|
|
}
|
|
throw new Error("Illegal state.");
|
|
}
|
|
return void 0;
|
|
}
|
|
__name(GetMetadataProvider, "GetMetadataProvider");
|
|
function CreateMapPolyfill() {
|
|
var cacheSentinel = {};
|
|
var arraySentinel = [];
|
|
var MapIterator = (
|
|
/** @class */
|
|
(function() {
|
|
function MapIterator2(keys, values, selector) {
|
|
this._index = 0;
|
|
this._keys = keys;
|
|
this._values = values;
|
|
this._selector = selector;
|
|
}
|
|
__name(MapIterator2, "MapIterator");
|
|
MapIterator2.prototype["@@iterator"] = function() {
|
|
return this;
|
|
};
|
|
MapIterator2.prototype[iteratorSymbol] = function() {
|
|
return this;
|
|
};
|
|
MapIterator2.prototype.next = function() {
|
|
var index = this._index;
|
|
if (index >= 0 && index < this._keys.length) {
|
|
var result = this._selector(this._keys[index], this._values[index]);
|
|
if (index + 1 >= this._keys.length) {
|
|
this._index = -1;
|
|
this._keys = arraySentinel;
|
|
this._values = arraySentinel;
|
|
} else {
|
|
this._index++;
|
|
}
|
|
return { value: result, done: false };
|
|
}
|
|
return { value: void 0, done: true };
|
|
};
|
|
MapIterator2.prototype.throw = function(error) {
|
|
if (this._index >= 0) {
|
|
this._index = -1;
|
|
this._keys = arraySentinel;
|
|
this._values = arraySentinel;
|
|
}
|
|
throw error;
|
|
};
|
|
MapIterator2.prototype.return = function(value) {
|
|
if (this._index >= 0) {
|
|
this._index = -1;
|
|
this._keys = arraySentinel;
|
|
this._values = arraySentinel;
|
|
}
|
|
return { value, done: true };
|
|
};
|
|
return MapIterator2;
|
|
})()
|
|
);
|
|
var Map2 = (
|
|
/** @class */
|
|
(function() {
|
|
function Map3() {
|
|
this._keys = [];
|
|
this._values = [];
|
|
this._cacheKey = cacheSentinel;
|
|
this._cacheIndex = -2;
|
|
}
|
|
__name(Map3, "Map");
|
|
Object.defineProperty(Map3.prototype, "size", {
|
|
get: /* @__PURE__ */ __name(function() {
|
|
return this._keys.length;
|
|
}, "get"),
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Map3.prototype.has = function(key) {
|
|
return this._find(
|
|
key,
|
|
/*insert*/
|
|
false
|
|
) >= 0;
|
|
};
|
|
Map3.prototype.get = function(key) {
|
|
var index = this._find(
|
|
key,
|
|
/*insert*/
|
|
false
|
|
);
|
|
return index >= 0 ? this._values[index] : void 0;
|
|
};
|
|
Map3.prototype.set = function(key, value) {
|
|
var index = this._find(
|
|
key,
|
|
/*insert*/
|
|
true
|
|
);
|
|
this._values[index] = value;
|
|
return this;
|
|
};
|
|
Map3.prototype.delete = function(key) {
|
|
var index = this._find(
|
|
key,
|
|
/*insert*/
|
|
false
|
|
);
|
|
if (index >= 0) {
|
|
var size = this._keys.length;
|
|
for (var i = index + 1; i < size; i++) {
|
|
this._keys[i - 1] = this._keys[i];
|
|
this._values[i - 1] = this._values[i];
|
|
}
|
|
this._keys.length--;
|
|
this._values.length--;
|
|
if (SameValueZero(key, this._cacheKey)) {
|
|
this._cacheKey = cacheSentinel;
|
|
this._cacheIndex = -2;
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|
|
Map3.prototype.clear = function() {
|
|
this._keys.length = 0;
|
|
this._values.length = 0;
|
|
this._cacheKey = cacheSentinel;
|
|
this._cacheIndex = -2;
|
|
};
|
|
Map3.prototype.keys = function() {
|
|
return new MapIterator(this._keys, this._values, getKey);
|
|
};
|
|
Map3.prototype.values = function() {
|
|
return new MapIterator(this._keys, this._values, getValue);
|
|
};
|
|
Map3.prototype.entries = function() {
|
|
return new MapIterator(this._keys, this._values, getEntry);
|
|
};
|
|
Map3.prototype["@@iterator"] = function() {
|
|
return this.entries();
|
|
};
|
|
Map3.prototype[iteratorSymbol] = function() {
|
|
return this.entries();
|
|
};
|
|
Map3.prototype._find = function(key, insert) {
|
|
if (!SameValueZero(this._cacheKey, key)) {
|
|
this._cacheIndex = -1;
|
|
for (var i = 0; i < this._keys.length; i++) {
|
|
if (SameValueZero(this._keys[i], key)) {
|
|
this._cacheIndex = i;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
if (this._cacheIndex < 0 && insert) {
|
|
this._cacheIndex = this._keys.length;
|
|
this._keys.push(key);
|
|
this._values.push(void 0);
|
|
}
|
|
return this._cacheIndex;
|
|
};
|
|
return Map3;
|
|
})()
|
|
);
|
|
return Map2;
|
|
function getKey(key, _) {
|
|
return key;
|
|
}
|
|
__name(getKey, "getKey");
|
|
function getValue(_, value) {
|
|
return value;
|
|
}
|
|
__name(getValue, "getValue");
|
|
function getEntry(key, value) {
|
|
return [key, value];
|
|
}
|
|
__name(getEntry, "getEntry");
|
|
}
|
|
__name(CreateMapPolyfill, "CreateMapPolyfill");
|
|
function CreateSetPolyfill() {
|
|
var Set2 = (
|
|
/** @class */
|
|
(function() {
|
|
function Set3() {
|
|
this._map = new _Map();
|
|
}
|
|
__name(Set3, "Set");
|
|
Object.defineProperty(Set3.prototype, "size", {
|
|
get: /* @__PURE__ */ __name(function() {
|
|
return this._map.size;
|
|
}, "get"),
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Set3.prototype.has = function(value) {
|
|
return this._map.has(value);
|
|
};
|
|
Set3.prototype.add = function(value) {
|
|
return this._map.set(value, value), this;
|
|
};
|
|
Set3.prototype.delete = function(value) {
|
|
return this._map.delete(value);
|
|
};
|
|
Set3.prototype.clear = function() {
|
|
this._map.clear();
|
|
};
|
|
Set3.prototype.keys = function() {
|
|
return this._map.keys();
|
|
};
|
|
Set3.prototype.values = function() {
|
|
return this._map.keys();
|
|
};
|
|
Set3.prototype.entries = function() {
|
|
return this._map.entries();
|
|
};
|
|
Set3.prototype["@@iterator"] = function() {
|
|
return this.keys();
|
|
};
|
|
Set3.prototype[iteratorSymbol] = function() {
|
|
return this.keys();
|
|
};
|
|
return Set3;
|
|
})()
|
|
);
|
|
return Set2;
|
|
}
|
|
__name(CreateSetPolyfill, "CreateSetPolyfill");
|
|
function CreateWeakMapPolyfill() {
|
|
var UUID_SIZE = 16;
|
|
var keys = HashMap.create();
|
|
var rootKey = CreateUniqueKey();
|
|
return (
|
|
/** @class */
|
|
(function() {
|
|
function WeakMap2() {
|
|
this._key = CreateUniqueKey();
|
|
}
|
|
__name(WeakMap2, "WeakMap");
|
|
WeakMap2.prototype.has = function(target) {
|
|
var table = GetOrCreateWeakMapTable(
|
|
target,
|
|
/*create*/
|
|
false
|
|
);
|
|
return table !== void 0 ? HashMap.has(table, this._key) : false;
|
|
};
|
|
WeakMap2.prototype.get = function(target) {
|
|
var table = GetOrCreateWeakMapTable(
|
|
target,
|
|
/*create*/
|
|
false
|
|
);
|
|
return table !== void 0 ? HashMap.get(table, this._key) : void 0;
|
|
};
|
|
WeakMap2.prototype.set = function(target, value) {
|
|
var table = GetOrCreateWeakMapTable(
|
|
target,
|
|
/*create*/
|
|
true
|
|
);
|
|
table[this._key] = value;
|
|
return this;
|
|
};
|
|
WeakMap2.prototype.delete = function(target) {
|
|
var table = GetOrCreateWeakMapTable(
|
|
target,
|
|
/*create*/
|
|
false
|
|
);
|
|
return table !== void 0 ? delete table[this._key] : false;
|
|
};
|
|
WeakMap2.prototype.clear = function() {
|
|
this._key = CreateUniqueKey();
|
|
};
|
|
return WeakMap2;
|
|
})()
|
|
);
|
|
function CreateUniqueKey() {
|
|
var key;
|
|
do
|
|
key = "@@WeakMap@@" + CreateUUID();
|
|
while (HashMap.has(keys, key));
|
|
keys[key] = true;
|
|
return key;
|
|
}
|
|
__name(CreateUniqueKey, "CreateUniqueKey");
|
|
function GetOrCreateWeakMapTable(target, create) {
|
|
if (!hasOwn.call(target, rootKey)) {
|
|
if (!create)
|
|
return void 0;
|
|
Object.defineProperty(target, rootKey, { value: HashMap.create() });
|
|
}
|
|
return target[rootKey];
|
|
}
|
|
__name(GetOrCreateWeakMapTable, "GetOrCreateWeakMapTable");
|
|
function FillRandomBytes(buffer, size) {
|
|
for (var i = 0; i < size; ++i)
|
|
buffer[i] = Math.random() * 255 | 0;
|
|
return buffer;
|
|
}
|
|
__name(FillRandomBytes, "FillRandomBytes");
|
|
function GenRandomBytes(size) {
|
|
if (typeof Uint8Array === "function") {
|
|
var array = new Uint8Array(size);
|
|
if (typeof crypto !== "undefined") {
|
|
crypto.getRandomValues(array);
|
|
} else if (typeof msCrypto !== "undefined") {
|
|
msCrypto.getRandomValues(array);
|
|
} else {
|
|
FillRandomBytes(array, size);
|
|
}
|
|
return array;
|
|
}
|
|
return FillRandomBytes(new Array(size), size);
|
|
}
|
|
__name(GenRandomBytes, "GenRandomBytes");
|
|
function CreateUUID() {
|
|
var data = GenRandomBytes(UUID_SIZE);
|
|
data[6] = data[6] & 79 | 64;
|
|
data[8] = data[8] & 191 | 128;
|
|
var result = "";
|
|
for (var offset = 0; offset < UUID_SIZE; ++offset) {
|
|
var byte = data[offset];
|
|
if (offset === 4 || offset === 6 || offset === 8)
|
|
result += "-";
|
|
if (byte < 16)
|
|
result += "0";
|
|
result += byte.toString(16).toLowerCase();
|
|
}
|
|
return result;
|
|
}
|
|
__name(CreateUUID, "CreateUUID");
|
|
}
|
|
__name(CreateWeakMapPolyfill, "CreateWeakMapPolyfill");
|
|
function MakeDictionary(obj) {
|
|
obj.__ = void 0;
|
|
delete obj.__;
|
|
return obj;
|
|
}
|
|
__name(MakeDictionary, "MakeDictionary");
|
|
});
|
|
})(Reflect2 || (Reflect2 = {}));
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
function __decorate(decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
}
|
|
function __param(paramIndex, decorator) {
|
|
return function(target, key) {
|
|
decorator(target, key, paramIndex);
|
|
};
|
|
}
|
|
function __metadata(metadataKey, metadataValue) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
}
|
|
var init_tslib_es6 = __esm({
|
|
"../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"() {
|
|
__name(__decorate, "__decorate");
|
|
__name(__param, "__param");
|
|
__name(__metadata, "__metadata");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/shared.utils.js
|
|
var isUndefined, isObject, isPlainObject, addLeadingSlash, normalizePath, stripEndSlash, isFunction, isString, isNumber, isConstructor, isNil, isEmpty, isEmptyArray, isSymbol;
|
|
var init_shared_utils = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/shared.utils.js"() {
|
|
isUndefined = /* @__PURE__ */ __name((obj) => typeof obj === "undefined", "isUndefined");
|
|
isObject = /* @__PURE__ */ __name((fn) => !isNil(fn) && typeof fn === "object", "isObject");
|
|
isPlainObject = /* @__PURE__ */ __name((fn) => {
|
|
if (!isObject(fn)) {
|
|
return false;
|
|
}
|
|
const proto = Object.getPrototypeOf(fn);
|
|
if (proto === null) {
|
|
return true;
|
|
}
|
|
const ctor = Object.hasOwn(proto, "constructor") && proto.constructor;
|
|
return typeof ctor === "function" && ctor instanceof ctor && Function.prototype.toString.call(ctor) === Function.prototype.toString.call(Object);
|
|
}, "isPlainObject");
|
|
addLeadingSlash = /* @__PURE__ */ __name((path) => path && typeof path === "string" ? path.charAt(0) !== "/" && path.substring(0, 2) !== "{/" ? "/" + path : path : "", "addLeadingSlash");
|
|
normalizePath = /* @__PURE__ */ __name((path) => path ? ("/" + path.replace(/\/+$/, "")).replace(/\/+/g, "/") : "/", "normalizePath");
|
|
stripEndSlash = /* @__PURE__ */ __name((path) => path.endsWith("/") ? path.slice(0, -1) : path, "stripEndSlash");
|
|
isFunction = /* @__PURE__ */ __name((val) => typeof val === "function", "isFunction");
|
|
isString = /* @__PURE__ */ __name((val) => typeof val === "string", "isString");
|
|
isNumber = /* @__PURE__ */ __name((val) => typeof val === "number", "isNumber");
|
|
isConstructor = /* @__PURE__ */ __name((val) => val === "constructor", "isConstructor");
|
|
isNil = /* @__PURE__ */ __name((val) => isUndefined(val) || val === null, "isNil");
|
|
isEmpty = /* @__PURE__ */ __name((value) => {
|
|
if (isNil(value)) {
|
|
return true;
|
|
}
|
|
if (Array.isArray(value)) {
|
|
return value.length === 0;
|
|
}
|
|
return false;
|
|
}, "isEmpty");
|
|
isEmptyArray = /* @__PURE__ */ __name((array) => {
|
|
if (!Array.isArray(array)) {
|
|
return false;
|
|
}
|
|
return array.length === 0;
|
|
}, "isEmptyArray");
|
|
isSymbol = /* @__PURE__ */ __name((val) => typeof val === "symbol", "isSymbol");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/constants.js
|
|
var MODULE_METADATA, GLOBAL_MODULE_METADATA, HOST_METADATA, PATH_METADATA, PARAMTYPES_METADATA, SELF_DECLARED_DEPS_METADATA, OPTIONAL_DEPS_METADATA, PROPERTY_DEPS_METADATA, OPTIONAL_PROPERTY_DEPS_METADATA, SCOPE_OPTIONS_METADATA, METHOD_METADATA, ROUTE_ARGS_METADATA, CUSTOM_ROUTE_ARGS_METADATA, FILTER_CATCH_EXCEPTIONS, PIPES_METADATA, GUARDS_METADATA, INTERCEPTORS_METADATA, EXCEPTION_FILTERS_METADATA, ENHANCER_KEY_TO_SUBTYPE_MAP, RENDER_METADATA, HTTP_CODE_METADATA, MODULE_PATH, HEADERS_METADATA, REDIRECT_METADATA, RESPONSE_PASSTHROUGH_METADATA, SSE_METADATA, SSE_OPTIONS_METADATA, VERSION_METADATA, INJECTABLE_WATERMARK, CONTROLLER_WATERMARK, CATCH_WATERMARK, ENTRY_PROVIDER_WATERMARK;
|
|
var init_constants = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/constants.js"() {
|
|
MODULE_METADATA = {
|
|
IMPORTS: "imports",
|
|
PROVIDERS: "providers",
|
|
CONTROLLERS: "controllers",
|
|
EXPORTS: "exports"
|
|
};
|
|
GLOBAL_MODULE_METADATA = "__module:global__";
|
|
HOST_METADATA = "host";
|
|
PATH_METADATA = "path";
|
|
PARAMTYPES_METADATA = "design:paramtypes";
|
|
SELF_DECLARED_DEPS_METADATA = "self:paramtypes";
|
|
OPTIONAL_DEPS_METADATA = "optional:paramtypes";
|
|
PROPERTY_DEPS_METADATA = "self:properties_metadata";
|
|
OPTIONAL_PROPERTY_DEPS_METADATA = "optional:properties_metadata";
|
|
SCOPE_OPTIONS_METADATA = "scope:options";
|
|
METHOD_METADATA = "method";
|
|
ROUTE_ARGS_METADATA = "__routeArguments__";
|
|
CUSTOM_ROUTE_ARGS_METADATA = "__customRouteArgs__";
|
|
FILTER_CATCH_EXCEPTIONS = "__filterCatchExceptions__";
|
|
PIPES_METADATA = "__pipes__";
|
|
GUARDS_METADATA = "__guards__";
|
|
INTERCEPTORS_METADATA = "__interceptors__";
|
|
EXCEPTION_FILTERS_METADATA = "__exceptionFilters__";
|
|
ENHANCER_KEY_TO_SUBTYPE_MAP = {
|
|
[GUARDS_METADATA]: "guard",
|
|
[INTERCEPTORS_METADATA]: "interceptor",
|
|
[PIPES_METADATA]: "pipe",
|
|
[EXCEPTION_FILTERS_METADATA]: "filter"
|
|
};
|
|
RENDER_METADATA = "__renderTemplate__";
|
|
HTTP_CODE_METADATA = "__httpCode__";
|
|
MODULE_PATH = "__module_path__";
|
|
HEADERS_METADATA = "__headers__";
|
|
REDIRECT_METADATA = "__redirect__";
|
|
RESPONSE_PASSTHROUGH_METADATA = "__responsePassthrough__";
|
|
SSE_METADATA = "__sse__";
|
|
SSE_OPTIONS_METADATA = "__sseOptions__";
|
|
VERSION_METADATA = "__version__";
|
|
INJECTABLE_WATERMARK = "__injectable__";
|
|
CONTROLLER_WATERMARK = "__controller__";
|
|
CATCH_WATERMARK = "__catch__";
|
|
ENTRY_PROVIDER_WATERMARK = "__entryProvider__";
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/controller.decorator.js
|
|
function Controller(prefixOrOptions) {
|
|
const defaultPath = "/";
|
|
const [path, host, scopeOptions, versionOptions] = isUndefined(prefixOrOptions) ? [defaultPath, void 0, void 0, void 0] : isString(prefixOrOptions) || Array.isArray(prefixOrOptions) ? [prefixOrOptions, void 0, void 0, void 0] : [
|
|
prefixOrOptions.path || defaultPath,
|
|
prefixOrOptions.host,
|
|
{ scope: prefixOrOptions.scope, durable: prefixOrOptions.durable },
|
|
Array.isArray(prefixOrOptions.version) ? Array.from(new Set(prefixOrOptions.version)) : prefixOrOptions.version
|
|
];
|
|
return (target) => {
|
|
Reflect.defineMetadata(CONTROLLER_WATERMARK, true, target);
|
|
Reflect.defineMetadata(PATH_METADATA, path, target);
|
|
Reflect.defineMetadata(HOST_METADATA, host, target);
|
|
Reflect.defineMetadata(SCOPE_OPTIONS_METADATA, scopeOptions, target);
|
|
Reflect.defineMetadata(VERSION_METADATA, versionOptions, target);
|
|
};
|
|
}
|
|
var init_controller_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/controller.decorator.js"() {
|
|
init_constants();
|
|
init_shared_utils();
|
|
__name(Controller, "Controller");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/inject.decorator.js
|
|
function Inject(token) {
|
|
const injectCallHasArguments = arguments.length > 0;
|
|
return (target, key, index) => {
|
|
let type = token || Reflect.getMetadata("design:type", target, key);
|
|
if (!type && !injectCallHasArguments) {
|
|
type = Reflect.getMetadata(PARAMTYPES_METADATA, target, key)?.[index];
|
|
}
|
|
if (!isUndefined(index)) {
|
|
let dependencies = Reflect.getMetadata(SELF_DECLARED_DEPS_METADATA, target) || [];
|
|
dependencies = [...dependencies, { index, param: type }];
|
|
Reflect.defineMetadata(SELF_DECLARED_DEPS_METADATA, dependencies, target);
|
|
return;
|
|
}
|
|
let properties = Reflect.getMetadata(PROPERTY_DEPS_METADATA, target.constructor) || [];
|
|
properties = [
|
|
...properties.filter((property) => property.key !== key),
|
|
{ key, type }
|
|
];
|
|
Reflect.defineMetadata(PROPERTY_DEPS_METADATA, properties, target.constructor);
|
|
};
|
|
}
|
|
var init_inject_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/inject.decorator.js"() {
|
|
init_constants();
|
|
init_shared_utils();
|
|
__name(Inject, "Inject");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/uid@2.0.2/node_modules/uid/dist/index.mjs
|
|
function uid(len) {
|
|
var i = 0, tmp = len || 11;
|
|
if (!BUFFER || IDX + tmp > SIZE * 2) {
|
|
for (BUFFER = "", IDX = 0; i < SIZE; i++) {
|
|
BUFFER += HEX[Math.random() * 256 | 0];
|
|
}
|
|
}
|
|
return BUFFER.substring(IDX, IDX++ + tmp);
|
|
}
|
|
var IDX, HEX, SIZE, BUFFER;
|
|
var init_dist = __esm({
|
|
"../../node_modules/.pnpm/uid@2.0.2/node_modules/uid/dist/index.mjs"() {
|
|
IDX = 256;
|
|
HEX = [];
|
|
SIZE = 256;
|
|
while (IDX--) HEX[IDX] = (IDX + 256).toString(16).substring(1);
|
|
__name(uid, "uid");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/injectable.decorator.js
|
|
function Injectable(options) {
|
|
return (target) => {
|
|
Reflect.defineMetadata(INJECTABLE_WATERMARK, true, target);
|
|
Reflect.defineMetadata(SCOPE_OPTIONS_METADATA, options, target);
|
|
};
|
|
}
|
|
function mixin(mixinClass) {
|
|
Object.defineProperty(mixinClass, "name", {
|
|
value: uid(21)
|
|
});
|
|
Injectable()(mixinClass);
|
|
return mixinClass;
|
|
}
|
|
var init_injectable_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/injectable.decorator.js"() {
|
|
init_dist();
|
|
init_constants();
|
|
__name(Injectable, "Injectable");
|
|
__name(mixin, "mixin");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/optional.decorator.js
|
|
function Optional() {
|
|
return (target, key, index) => {
|
|
if (!isUndefined(index)) {
|
|
const args = Reflect.getOwnMetadata(OPTIONAL_DEPS_METADATA, target) || [];
|
|
Reflect.defineMetadata(OPTIONAL_DEPS_METADATA, [...args, index], target);
|
|
return;
|
|
}
|
|
const properties = Reflect.getMetadata(OPTIONAL_PROPERTY_DEPS_METADATA, target.constructor) || [];
|
|
Reflect.defineMetadata(OPTIONAL_PROPERTY_DEPS_METADATA, [...properties, key], target.constructor);
|
|
};
|
|
}
|
|
var init_optional_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/optional.decorator.js"() {
|
|
init_constants();
|
|
init_shared_utils();
|
|
__name(Optional, "Optional");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/modules/global.decorator.js
|
|
function Global() {
|
|
return (target) => {
|
|
Reflect.defineMetadata(GLOBAL_MODULE_METADATA, true, target);
|
|
};
|
|
}
|
|
var init_global_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/modules/global.decorator.js"() {
|
|
init_constants();
|
|
__name(Global, "Global");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/validate-module-keys.util.js
|
|
function validateModuleKeys(keys) {
|
|
const validateKey = /* @__PURE__ */ __name((key) => {
|
|
if (metadataKeys.includes(key)) {
|
|
return;
|
|
}
|
|
throw new Error(INVALID_MODULE_CONFIG_MESSAGE`${key}`);
|
|
}, "validateKey");
|
|
keys.forEach(validateKey);
|
|
}
|
|
var INVALID_MODULE_CONFIG_MESSAGE, metadataKeys;
|
|
var init_validate_module_keys_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/validate-module-keys.util.js"() {
|
|
init_constants();
|
|
INVALID_MODULE_CONFIG_MESSAGE = /* @__PURE__ */ __name((text, property) => `Invalid property '${property}' passed into the @Module() decorator.`, "INVALID_MODULE_CONFIG_MESSAGE");
|
|
metadataKeys = [
|
|
MODULE_METADATA.IMPORTS,
|
|
MODULE_METADATA.EXPORTS,
|
|
MODULE_METADATA.CONTROLLERS,
|
|
MODULE_METADATA.PROVIDERS
|
|
];
|
|
__name(validateModuleKeys, "validateModuleKeys");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/modules/module.decorator.js
|
|
function Module(metadata) {
|
|
const propsKeys = Object.keys(metadata);
|
|
validateModuleKeys(propsKeys);
|
|
return (target) => {
|
|
for (const property in metadata) {
|
|
if (Object.hasOwn(metadata, property)) {
|
|
Reflect.defineMetadata(property, metadata[property], target);
|
|
}
|
|
}
|
|
};
|
|
}
|
|
var init_module_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/modules/module.decorator.js"() {
|
|
init_validate_module_keys_util();
|
|
__name(Module, "Module");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/request-method.enum.js
|
|
var RequestMethod;
|
|
var init_request_method_enum = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/request-method.enum.js"() {
|
|
(function(RequestMethod2) {
|
|
RequestMethod2[RequestMethod2["GET"] = 0] = "GET";
|
|
RequestMethod2[RequestMethod2["POST"] = 1] = "POST";
|
|
RequestMethod2[RequestMethod2["PUT"] = 2] = "PUT";
|
|
RequestMethod2[RequestMethod2["DELETE"] = 3] = "DELETE";
|
|
RequestMethod2[RequestMethod2["PATCH"] = 4] = "PATCH";
|
|
RequestMethod2[RequestMethod2["ALL"] = 5] = "ALL";
|
|
RequestMethod2[RequestMethod2["OPTIONS"] = 6] = "OPTIONS";
|
|
RequestMethod2[RequestMethod2["HEAD"] = 7] = "HEAD";
|
|
RequestMethod2[RequestMethod2["SEARCH"] = 8] = "SEARCH";
|
|
RequestMethod2[RequestMethod2["PROPFIND"] = 9] = "PROPFIND";
|
|
RequestMethod2[RequestMethod2["PROPPATCH"] = 10] = "PROPPATCH";
|
|
RequestMethod2[RequestMethod2["MKCOL"] = 11] = "MKCOL";
|
|
RequestMethod2[RequestMethod2["COPY"] = 12] = "COPY";
|
|
RequestMethod2[RequestMethod2["MOVE"] = 13] = "MOVE";
|
|
RequestMethod2[RequestMethod2["LOCK"] = 14] = "LOCK";
|
|
RequestMethod2[RequestMethod2["UNLOCK"] = 15] = "UNLOCK";
|
|
RequestMethod2[RequestMethod2["QUERY"] = 16] = "QUERY";
|
|
})(RequestMethod || (RequestMethod = {}));
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/request-mapping.decorator.js
|
|
var defaultMetadata, RequestMapping, createMappingDecorator, Post, Get, Delete, Put, Patch, Options, Head, All, Search, QueryMethod, Propfind, Proppatch, Mkcol, Copy, Move, Lock, Unlock;
|
|
var init_request_mapping_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/request-mapping.decorator.js"() {
|
|
init_constants();
|
|
init_request_method_enum();
|
|
defaultMetadata = {
|
|
[PATH_METADATA]: "/",
|
|
[METHOD_METADATA]: RequestMethod.GET
|
|
};
|
|
RequestMapping = /* @__PURE__ */ __name((metadata = defaultMetadata) => {
|
|
const pathMetadata = metadata[PATH_METADATA];
|
|
const path = pathMetadata && pathMetadata.length ? pathMetadata : "/";
|
|
const requestMethod = metadata[METHOD_METADATA] || RequestMethod.GET;
|
|
return (target, key, descriptor) => {
|
|
Reflect.defineMetadata(PATH_METADATA, path, descriptor.value);
|
|
Reflect.defineMetadata(METHOD_METADATA, requestMethod, descriptor.value);
|
|
return descriptor;
|
|
};
|
|
}, "RequestMapping");
|
|
createMappingDecorator = /* @__PURE__ */ __name((method) => (path) => {
|
|
return RequestMapping({
|
|
[PATH_METADATA]: path,
|
|
[METHOD_METADATA]: method
|
|
});
|
|
}, "createMappingDecorator");
|
|
Post = createMappingDecorator(RequestMethod.POST);
|
|
Get = createMappingDecorator(RequestMethod.GET);
|
|
Delete = createMappingDecorator(RequestMethod.DELETE);
|
|
Put = createMappingDecorator(RequestMethod.PUT);
|
|
Patch = createMappingDecorator(RequestMethod.PATCH);
|
|
Options = createMappingDecorator(RequestMethod.OPTIONS);
|
|
Head = createMappingDecorator(RequestMethod.HEAD);
|
|
All = createMappingDecorator(RequestMethod.ALL);
|
|
Search = createMappingDecorator(RequestMethod.SEARCH);
|
|
QueryMethod = createMappingDecorator(RequestMethod.QUERY);
|
|
Propfind = createMappingDecorator(RequestMethod.PROPFIND);
|
|
Proppatch = createMappingDecorator(RequestMethod.PROPPATCH);
|
|
Mkcol = createMappingDecorator(RequestMethod.MKCOL);
|
|
Copy = createMappingDecorator(RequestMethod.COPY);
|
|
Move = createMappingDecorator(RequestMethod.MOVE);
|
|
Lock = createMappingDecorator(RequestMethod.LOCK);
|
|
Unlock = createMappingDecorator(RequestMethod.UNLOCK);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/http-status.enum.js
|
|
var HttpStatus;
|
|
var init_http_status_enum = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/http-status.enum.js"() {
|
|
(function(HttpStatus2) {
|
|
HttpStatus2[HttpStatus2["CONTINUE"] = 100] = "CONTINUE";
|
|
HttpStatus2[HttpStatus2["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
HttpStatus2[HttpStatus2["PROCESSING"] = 102] = "PROCESSING";
|
|
HttpStatus2[HttpStatus2["EARLYHINTS"] = 103] = "EARLYHINTS";
|
|
HttpStatus2[HttpStatus2["OK"] = 200] = "OK";
|
|
HttpStatus2[HttpStatus2["CREATED"] = 201] = "CREATED";
|
|
HttpStatus2[HttpStatus2["ACCEPTED"] = 202] = "ACCEPTED";
|
|
HttpStatus2[HttpStatus2["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
HttpStatus2[HttpStatus2["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
HttpStatus2[HttpStatus2["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
HttpStatus2[HttpStatus2["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
HttpStatus2[HttpStatus2["MULTI_STATUS"] = 207] = "MULTI_STATUS";
|
|
HttpStatus2[HttpStatus2["ALREADY_REPORTED"] = 208] = "ALREADY_REPORTED";
|
|
HttpStatus2[HttpStatus2["CONTENT_DIFFERENT"] = 210] = "CONTENT_DIFFERENT";
|
|
HttpStatus2[HttpStatus2["AMBIGUOUS"] = 300] = "AMBIGUOUS";
|
|
HttpStatus2[HttpStatus2["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
HttpStatus2[HttpStatus2["FOUND"] = 302] = "FOUND";
|
|
HttpStatus2[HttpStatus2["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
HttpStatus2[HttpStatus2["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
HttpStatus2[HttpStatus2["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
HttpStatus2[HttpStatus2["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
HttpStatus2[HttpStatus2["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
HttpStatus2[HttpStatus2["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
HttpStatus2[HttpStatus2["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
HttpStatus2[HttpStatus2["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
HttpStatus2[HttpStatus2["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
HttpStatus2[HttpStatus2["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
HttpStatus2[HttpStatus2["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
HttpStatus2[HttpStatus2["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
HttpStatus2[HttpStatus2["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
HttpStatus2[HttpStatus2["CONFLICT"] = 409] = "CONFLICT";
|
|
HttpStatus2[HttpStatus2["GONE"] = 410] = "GONE";
|
|
HttpStatus2[HttpStatus2["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
HttpStatus2[HttpStatus2["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
HttpStatus2[HttpStatus2["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
HttpStatus2[HttpStatus2["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
HttpStatus2[HttpStatus2["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
HttpStatus2[HttpStatus2["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
|
|
HttpStatus2[HttpStatus2["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
HttpStatus2[HttpStatus2["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
|
|
HttpStatus2[HttpStatus2["MISDIRECTED"] = 421] = "MISDIRECTED";
|
|
HttpStatus2[HttpStatus2["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
HttpStatus2[HttpStatus2["LOCKED"] = 423] = "LOCKED";
|
|
HttpStatus2[HttpStatus2["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
HttpStatus2[HttpStatus2["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
|
|
HttpStatus2[HttpStatus2["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
HttpStatus2[HttpStatus2["UNRECOVERABLE_ERROR"] = 456] = "UNRECOVERABLE_ERROR";
|
|
HttpStatus2[HttpStatus2["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
HttpStatus2[HttpStatus2["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
HttpStatus2[HttpStatus2["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
HttpStatus2[HttpStatus2["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
HttpStatus2[HttpStatus2["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
HttpStatus2[HttpStatus2["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
HttpStatus2[HttpStatus2["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
|
|
HttpStatus2[HttpStatus2["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
})(HttpStatus || (HttpStatus = {}));
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/version-type.enum.js
|
|
var VersioningType;
|
|
var init_version_type_enum = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/version-type.enum.js"() {
|
|
(function(VersioningType2) {
|
|
VersioningType2[VersioningType2["URI"] = 0] = "URI";
|
|
VersioningType2[VersioningType2["HEADER"] = 1] = "HEADER";
|
|
VersioningType2[VersioningType2["MEDIA_TYPE"] = 2] = "MEDIA_TYPE";
|
|
VersioningType2[VersioningType2["CUSTOM"] = 3] = "CUSTOM";
|
|
})(VersioningType || (VersioningType = {}));
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/intrinsic.exception.js
|
|
var IntrinsicException;
|
|
var init_intrinsic_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/intrinsic.exception.js"() {
|
|
IntrinsicException = class extends Error {
|
|
static {
|
|
__name(this, "IntrinsicException");
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/http.exception.js
|
|
var HttpException;
|
|
var init_http_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/http.exception.js"() {
|
|
init_shared_utils();
|
|
init_intrinsic_exception();
|
|
HttpException = class extends IntrinsicException {
|
|
static {
|
|
__name(this, "HttpException");
|
|
}
|
|
response;
|
|
status;
|
|
options;
|
|
/**
|
|
* Exception cause. Indicates the specific original cause of the error.
|
|
* It is used when catching and re-throwing an error with a more-specific or useful error message in order to still have access to the original error.
|
|
*/
|
|
cause;
|
|
errorCode;
|
|
/**
|
|
* Instantiate a plain HTTP Exception.
|
|
*
|
|
* @example
|
|
* throw new HttpException('message', HttpStatus.BAD_REQUEST)
|
|
* throw new HttpException('custom message', HttpStatus.BAD_REQUEST, {
|
|
* cause: new Error('Cause Error'),
|
|
* })
|
|
*
|
|
*
|
|
* @usageNotes
|
|
* The constructor arguments define the response and the HTTP response status code.
|
|
* - The `response` argument (required) defines the JSON response body. alternatively, it can also be
|
|
* an error object that is used to define an error [cause](https://nodejs.org/en/blog/release/v16.9.0/#error-cause).
|
|
* - The `status` argument (required) defines the HTTP Status Code.
|
|
* - The `options` argument (optional) defines additional error options. Currently, it supports the `cause` attribute,
|
|
* and can be used as an alternative way to specify the error cause: `const error = new HttpException('description', 400, { cause: new Error() });`
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: the Http Status Code.
|
|
* - `message`: a short description of the HTTP error by default; override this
|
|
* by supplying a string in the `response` parameter.
|
|
*
|
|
* To override the entire JSON response body, pass an object to the `createBody`
|
|
* method. Nest will serialize the object and return it as the JSON response body.
|
|
*
|
|
* The `status` argument is required, and should be a valid HTTP status code.
|
|
* Best practice is to use the `HttpStatus` enum imported from `nestjs/common`.
|
|
*
|
|
* @param response string, object describing the error condition or the error cause.
|
|
* @param status HTTP response status code.
|
|
* @param options An object used to add an error cause.
|
|
*/
|
|
constructor(response, status, options) {
|
|
super();
|
|
this.response = response;
|
|
this.status = status;
|
|
this.options = options;
|
|
this.initMessage();
|
|
this.initName();
|
|
this.initCause();
|
|
this.initErrorCode();
|
|
}
|
|
/**
|
|
* Configures error chaining support
|
|
*
|
|
* @see https://nodejs.org/en/blog/release/v16.9.0/#error-cause
|
|
* @see https://github.com/microsoft/TypeScript/issues/45167
|
|
*/
|
|
initCause() {
|
|
if (this.options?.cause) {
|
|
this.cause = this.options.cause;
|
|
return;
|
|
}
|
|
}
|
|
initErrorCode() {
|
|
if (this.options?.errorCode) {
|
|
this.errorCode = this.options.errorCode;
|
|
}
|
|
}
|
|
initMessage() {
|
|
if (isString(this.response)) {
|
|
this.message = this.response;
|
|
} else if (isObject(this.response) && isString(this.response.message)) {
|
|
this.message = this.response.message;
|
|
} else if (this.constructor) {
|
|
this.message = this.constructor.name.match(/[A-Z][a-z]+|[0-9]+/g)?.join(" ") ?? "Error";
|
|
}
|
|
}
|
|
initName() {
|
|
this.name = this.constructor.name;
|
|
}
|
|
getResponse() {
|
|
return this.response;
|
|
}
|
|
getStatus() {
|
|
return this.status;
|
|
}
|
|
static createBody(arg0, arg1, statusCode, errorCode) {
|
|
if (!arg0) {
|
|
const body = {
|
|
message: arg1,
|
|
statusCode
|
|
};
|
|
if (errorCode) {
|
|
body.errorCode = errorCode;
|
|
}
|
|
return body;
|
|
}
|
|
if (isString(arg0) || Array.isArray(arg0) || isNumber(arg0)) {
|
|
const body = {
|
|
message: arg0,
|
|
error: arg1,
|
|
statusCode
|
|
};
|
|
if (errorCode) {
|
|
body.errorCode = errorCode;
|
|
}
|
|
return body;
|
|
}
|
|
return arg0;
|
|
}
|
|
static getDescriptionFrom(descriptionOrOptions) {
|
|
return isString(descriptionOrOptions) ? descriptionOrOptions : descriptionOrOptions?.description;
|
|
}
|
|
static getHttpExceptionOptionsFrom(descriptionOrOptions) {
|
|
return isString(descriptionOrOptions) ? {} : descriptionOrOptions;
|
|
}
|
|
/**
|
|
* Utility method used to extract the error description and httpExceptionOptions from the given argument.
|
|
* This is used by inheriting classes to correctly parse both options.
|
|
* @returns the error description and the httpExceptionOptions as an object.
|
|
*/
|
|
static extractDescriptionAndOptionsFrom(descriptionOrOptions) {
|
|
const description = isString(descriptionOrOptions) ? descriptionOrOptions : descriptionOrOptions?.description;
|
|
const httpExceptionOptions = isString(descriptionOrOptions) ? {} : descriptionOrOptions;
|
|
return {
|
|
description,
|
|
httpExceptionOptions
|
|
};
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/bad-request.exception.js
|
|
var BadRequestException;
|
|
var init_bad_request_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/bad-request.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
BadRequestException = class extends HttpException {
|
|
static {
|
|
__name(this, "BadRequestException");
|
|
}
|
|
/**
|
|
* Instantiate a `BadRequestException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new BadRequestException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 400.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 400.
|
|
* - `message`: the string `'Bad Request'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Bad Request") {
|
|
const { description = "Bad Request", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.BAD_REQUEST, httpExceptionOptions?.errorCode), HttpStatus.BAD_REQUEST, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/internal-server-error.exception.js
|
|
var InternalServerErrorException;
|
|
var init_internal_server_error_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/internal-server-error.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
InternalServerErrorException = class extends HttpException {
|
|
static {
|
|
__name(this, "InternalServerErrorException");
|
|
}
|
|
/**
|
|
* Instantiate an `InternalServerErrorException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new InternalServerErrorException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 500.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 500.
|
|
* - `message`: the string `'Internal Server Error'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Internal Server Error") {
|
|
const { description = "Internal Server Error", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.INTERNAL_SERVER_ERROR, httpExceptionOptions?.errorCode), HttpStatus.INTERNAL_SERVER_ERROR, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/unauthorized.exception.js
|
|
var UnauthorizedException;
|
|
var init_unauthorized_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/unauthorized.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
UnauthorizedException = class extends HttpException {
|
|
static {
|
|
__name(this, "UnauthorizedException");
|
|
}
|
|
/**
|
|
* Instantiate an `UnauthorizedException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new UnauthorizedException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 401.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 401.
|
|
* - `message`: the string `'Unauthorized'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Unauthorized") {
|
|
const { description = "Unauthorized", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.UNAUTHORIZED, httpExceptionOptions?.errorCode), HttpStatus.UNAUTHORIZED, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/bind.decorator.js
|
|
function Bind(...decorators) {
|
|
return (target, key, descriptor) => {
|
|
decorators.forEach((fn, index) => fn(target, key, index));
|
|
return descriptor;
|
|
};
|
|
}
|
|
var init_bind_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/bind.decorator.js"() {
|
|
__name(Bind, "Bind");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/catch.decorator.js
|
|
function Catch(...exceptions) {
|
|
return (target) => {
|
|
Reflect.defineMetadata(CATCH_WATERMARK, true, target);
|
|
Reflect.defineMetadata(FILTER_CATCH_EXCEPTIONS, exceptions, target);
|
|
};
|
|
}
|
|
var init_catch_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/catch.decorator.js"() {
|
|
init_constants();
|
|
__name(Catch, "Catch");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/dependencies.decorator.js
|
|
function flatten(arr) {
|
|
const flat = [].concat(...arr);
|
|
return flat.some(Array.isArray) ? flatten(flat) : flat;
|
|
}
|
|
var Dependencies;
|
|
var init_dependencies_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/dependencies.decorator.js"() {
|
|
init_constants();
|
|
__name(flatten, "flatten");
|
|
Dependencies = /* @__PURE__ */ __name((...dependencies) => {
|
|
const flattenDeps = flatten(dependencies);
|
|
return (target) => {
|
|
Reflect.defineMetadata(PARAMTYPES_METADATA, flattenDeps, target);
|
|
};
|
|
}, "Dependencies");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/extend-metadata.util.js
|
|
function extendArrayMetadata(key, metadata, target) {
|
|
const previousValue = Reflect.getMetadata(key, target) || [];
|
|
const value = [...previousValue, ...metadata];
|
|
Reflect.defineMetadata(key, value, target);
|
|
}
|
|
var init_extend_metadata_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/extend-metadata.util.js"() {
|
|
__name(extendArrayMetadata, "extendArrayMetadata");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/validate-each.util.js
|
|
function validateEach(context, arr, predicate, decorator, item) {
|
|
if (!context || !context.name) {
|
|
return true;
|
|
}
|
|
const errors = arr.some((str) => !predicate(str));
|
|
if (errors) {
|
|
throw new InvalidDecoratorItemException(decorator, item, context.name);
|
|
}
|
|
return true;
|
|
}
|
|
var InvalidDecoratorItemException;
|
|
var init_validate_each_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/validate-each.util.js"() {
|
|
InvalidDecoratorItemException = class extends Error {
|
|
static {
|
|
__name(this, "InvalidDecoratorItemException");
|
|
}
|
|
msg;
|
|
constructor(decorator, item, context) {
|
|
const message = `Invalid ${item} passed to ${decorator}() decorator (${context}).`;
|
|
super(message);
|
|
this.msg = message;
|
|
}
|
|
what() {
|
|
return this.msg;
|
|
}
|
|
};
|
|
__name(validateEach, "validateEach");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/exception-filters.decorator.js
|
|
function addExceptionFiltersMetadata(...filters) {
|
|
return (target, key, descriptor) => {
|
|
const isFilterValid = /* @__PURE__ */ __name((filter) => filter && (isFunction(filter) || isFunction(filter.catch)), "isFilterValid");
|
|
if (descriptor) {
|
|
validateEach(target.constructor, filters, isFilterValid, "@UseFilters", "filter");
|
|
extendArrayMetadata(EXCEPTION_FILTERS_METADATA, filters, descriptor.value);
|
|
return descriptor;
|
|
}
|
|
validateEach(target, filters, isFilterValid, "@UseFilters", "filter");
|
|
extendArrayMetadata(EXCEPTION_FILTERS_METADATA, filters, target);
|
|
return target;
|
|
};
|
|
}
|
|
var UseFilters;
|
|
var init_exception_filters_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/exception-filters.decorator.js"() {
|
|
init_constants();
|
|
init_extend_metadata_util();
|
|
init_shared_utils();
|
|
init_validate_each_util();
|
|
UseFilters = /* @__PURE__ */ __name((...filters) => addExceptionFiltersMetadata(...filters), "UseFilters");
|
|
__name(addExceptionFiltersMetadata, "addExceptionFiltersMetadata");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/set-metadata.decorator.js
|
|
var SetMetadata;
|
|
var init_set_metadata_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/set-metadata.decorator.js"() {
|
|
SetMetadata = /* @__PURE__ */ __name((metadataKey, metadataValue) => {
|
|
const decoratorFactory = /* @__PURE__ */ __name((target, key, descriptor) => {
|
|
if (descriptor) {
|
|
Reflect.defineMetadata(metadataKey, metadataValue, descriptor.value);
|
|
return descriptor;
|
|
}
|
|
Reflect.defineMetadata(metadataKey, metadataValue, target);
|
|
return target;
|
|
}, "decoratorFactory");
|
|
decoratorFactory.KEY = metadataKey;
|
|
return decoratorFactory;
|
|
}, "SetMetadata");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/use-guards.decorator.js
|
|
function UseGuards(...guards) {
|
|
return (target, key, descriptor) => {
|
|
const isGuardValid = /* @__PURE__ */ __name((guard) => guard && (isFunction(guard) || isFunction(guard.canActivate)), "isGuardValid");
|
|
if (descriptor) {
|
|
validateEach(target.constructor, guards, isGuardValid, "@UseGuards", "guard");
|
|
extendArrayMetadata(GUARDS_METADATA, guards, descriptor.value);
|
|
return descriptor;
|
|
}
|
|
validateEach(target, guards, isGuardValid, "@UseGuards", "guard");
|
|
extendArrayMetadata(GUARDS_METADATA, guards, target);
|
|
return target;
|
|
};
|
|
}
|
|
var init_use_guards_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/use-guards.decorator.js"() {
|
|
init_constants();
|
|
init_extend_metadata_util();
|
|
init_shared_utils();
|
|
init_validate_each_util();
|
|
__name(UseGuards, "UseGuards");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/use-interceptors.decorator.js
|
|
function UseInterceptors(...interceptors) {
|
|
return (target, key, descriptor) => {
|
|
const isInterceptorValid = /* @__PURE__ */ __name((interceptor) => interceptor && (isFunction(interceptor) || isFunction(interceptor.intercept)), "isInterceptorValid");
|
|
if (descriptor) {
|
|
validateEach(target.constructor, interceptors, isInterceptorValid, "@UseInterceptors", "interceptor");
|
|
extendArrayMetadata(INTERCEPTORS_METADATA, interceptors, descriptor.value);
|
|
return descriptor;
|
|
}
|
|
validateEach(target, interceptors, isInterceptorValid, "@UseInterceptors", "interceptor");
|
|
extendArrayMetadata(INTERCEPTORS_METADATA, interceptors, target);
|
|
return target;
|
|
};
|
|
}
|
|
var init_use_interceptors_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/use-interceptors.decorator.js"() {
|
|
init_constants();
|
|
init_extend_metadata_util();
|
|
init_shared_utils();
|
|
init_validate_each_util();
|
|
__name(UseInterceptors, "UseInterceptors");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/use-pipes.decorator.js
|
|
function UsePipes(...pipes) {
|
|
return (target, key, descriptor) => {
|
|
const isPipeValid = /* @__PURE__ */ __name((pipe) => pipe && (isFunction(pipe) || isFunction(pipe.transform)), "isPipeValid");
|
|
if (descriptor) {
|
|
validateEach(target.constructor, pipes, isPipeValid, "@UsePipes", "pipe");
|
|
extendArrayMetadata(PIPES_METADATA, pipes, descriptor.value);
|
|
return descriptor;
|
|
}
|
|
validateEach(target, pipes, isPipeValid, "@UsePipes", "pipe");
|
|
extendArrayMetadata(PIPES_METADATA, pipes, target);
|
|
return target;
|
|
};
|
|
}
|
|
var init_use_pipes_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/use-pipes.decorator.js"() {
|
|
init_constants();
|
|
init_extend_metadata_util();
|
|
init_shared_utils();
|
|
init_validate_each_util();
|
|
__name(UsePipes, "UsePipes");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/apply-decorators.js
|
|
function applyDecorators(...decorators) {
|
|
return (target, propertyKey, descriptor) => {
|
|
for (const decorator of decorators) {
|
|
if (target instanceof Function && !descriptor) {
|
|
decorator(target);
|
|
continue;
|
|
}
|
|
decorator(target, propertyKey, descriptor);
|
|
}
|
|
};
|
|
}
|
|
var init_apply_decorators = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/apply-decorators.js"() {
|
|
__name(applyDecorators, "applyDecorators");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/version.decorator.js
|
|
function Version(version) {
|
|
if (Array.isArray(version)) {
|
|
version = Array.from(new Set(version));
|
|
}
|
|
return (target, key, descriptor) => {
|
|
Reflect.defineMetadata(VERSION_METADATA, version, descriptor.value);
|
|
return descriptor;
|
|
};
|
|
}
|
|
var init_version_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/version.decorator.js"() {
|
|
init_constants();
|
|
__name(Version, "Version");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/index.js
|
|
var init_core = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/index.js"() {
|
|
init_bind_decorator();
|
|
init_catch_decorator();
|
|
init_controller_decorator();
|
|
init_dependencies_decorator();
|
|
init_exception_filters_decorator();
|
|
init_inject_decorator();
|
|
init_injectable_decorator();
|
|
init_optional_decorator();
|
|
init_set_metadata_decorator();
|
|
init_use_guards_decorator();
|
|
init_use_interceptors_decorator();
|
|
init_use_pipes_decorator();
|
|
init_apply_decorators();
|
|
init_version_decorator();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/cli-colors.util.js
|
|
var isColorAllowed, colorIfAllowed, clc, yellow;
|
|
var init_cli_colors_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/cli-colors.util.js"() {
|
|
isColorAllowed = /* @__PURE__ */ __name(() => !process.env.NO_COLOR, "isColorAllowed");
|
|
colorIfAllowed = /* @__PURE__ */ __name((colorFn) => (text) => isColorAllowed() ? colorFn(text) : text, "colorIfAllowed");
|
|
clc = {
|
|
bold: colorIfAllowed((text) => `\x1B[1m${text}\x1B[0m`),
|
|
green: colorIfAllowed((text) => `\x1B[32m${text}\x1B[39m`),
|
|
yellow: colorIfAllowed((text) => `\x1B[33m${text}\x1B[39m`),
|
|
red: colorIfAllowed((text) => `\x1B[31m${text}\x1B[39m`),
|
|
magentaBright: colorIfAllowed((text) => `\x1B[95m${text}\x1B[39m`),
|
|
cyanBright: colorIfAllowed((text) => `\x1B[96m${text}\x1B[39m`)
|
|
};
|
|
yellow = colorIfAllowed((text) => `\x1B[38;5;3m${text}\x1B[39m`);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/log-levels.constant.js
|
|
var LOG_LEVELS;
|
|
var init_log_levels_constant = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/log-levels.constant.js"() {
|
|
LOG_LEVELS = [
|
|
"verbose",
|
|
"debug",
|
|
"log",
|
|
"warn",
|
|
"error",
|
|
"fatal"
|
|
];
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/utils/is-log-level.util.js
|
|
function isLogLevel(maybeLogLevel) {
|
|
return LOG_LEVELS.includes(maybeLogLevel);
|
|
}
|
|
var init_is_log_level_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/utils/is-log-level.util.js"() {
|
|
init_log_levels_constant();
|
|
__name(isLogLevel, "isLogLevel");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/utils/filter-log-levels.util.js
|
|
function filterLogLevels(parseableString = "") {
|
|
const sanitizedString = parseableString.replaceAll(" ", "").toLowerCase();
|
|
if (sanitizedString[0] === ">") {
|
|
const orEqual = sanitizedString[1] === "=";
|
|
const logLevelIndex = LOG_LEVELS.indexOf(sanitizedString.substring(orEqual ? 2 : 1));
|
|
if (logLevelIndex === -1) {
|
|
throw new Error(`parse error (unknown log level): ${sanitizedString}`);
|
|
}
|
|
return LOG_LEVELS.slice(orEqual ? logLevelIndex : logLevelIndex + 1);
|
|
} else if (sanitizedString.includes(",")) {
|
|
return sanitizedString.split(",").filter(isLogLevel);
|
|
}
|
|
return isLogLevel(sanitizedString) ? [sanitizedString] : LOG_LEVELS;
|
|
}
|
|
var init_filter_log_levels_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/utils/filter-log-levels.util.js"() {
|
|
init_log_levels_constant();
|
|
init_is_log_level_util();
|
|
__name(filterLogLevels, "filterLogLevels");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/utils/get-env-log-levels.util.js
|
|
function getEnvLogLevels() {
|
|
const value = process.env[LOG_LEVEL_ENV_VAR]?.replaceAll(" ", "");
|
|
if (!value) {
|
|
return void 0;
|
|
}
|
|
const threshold = /^>=?(.*)$/.exec(value.toLowerCase());
|
|
const isValid = threshold ? isLogLevel(threshold[1]) : value.toLowerCase().split(",").every(isLogLevel);
|
|
return isValid ? filterLogLevels(value) : false;
|
|
}
|
|
var LOG_LEVEL_ENV_VAR;
|
|
var init_get_env_log_levels_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/utils/get-env-log-levels.util.js"() {
|
|
init_filter_log_levels_util();
|
|
init_is_log_level_util();
|
|
LOG_LEVEL_ENV_VAR = "NEST_LOG_LEVEL";
|
|
__name(getEnvLogLevels, "getEnvLogLevels");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/utils/is-log-level-enabled.util.js
|
|
function isLogLevelEnabled(targetLevel, logLevels) {
|
|
if (!logLevels || Array.isArray(logLevels) && logLevels?.length === 0) {
|
|
return false;
|
|
}
|
|
if (logLevels.includes(targetLevel)) {
|
|
return true;
|
|
}
|
|
let highestLogLevelValue = -Infinity;
|
|
for (const level of logLevels) {
|
|
const v = LOG_LEVEL_VALUES[level];
|
|
if (v > highestLogLevelValue)
|
|
highestLogLevelValue = v;
|
|
}
|
|
const targetLevelValue = LOG_LEVEL_VALUES[targetLevel];
|
|
return targetLevelValue >= highestLogLevelValue;
|
|
}
|
|
var LOG_LEVEL_VALUES;
|
|
var init_is_log_level_enabled_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/utils/is-log-level-enabled.util.js"() {
|
|
LOG_LEVEL_VALUES = {
|
|
verbose: 0,
|
|
debug: 1,
|
|
log: 2,
|
|
warn: 3,
|
|
error: 4,
|
|
fatal: 5
|
|
};
|
|
__name(isLogLevelEnabled, "isLogLevelEnabled");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/utils/redact.util.js
|
|
function createRedactor(paths, censor = DEFAULT_REDACT_CENSOR) {
|
|
const keys = /* @__PURE__ */ new Set();
|
|
const dottedPaths = [];
|
|
for (const path of paths) {
|
|
const segments = path.split(".").map((segment) => segment.trim().toLowerCase()).filter((segment) => segment.length > 0);
|
|
if (segments.length === 1) {
|
|
keys.add(segments[0]);
|
|
} else if (segments.length > 1) {
|
|
dottedPaths.push(segments);
|
|
}
|
|
}
|
|
if (keys.size === 0 && dottedPaths.length === 0) {
|
|
return void 0;
|
|
}
|
|
const contextLength = Math.max(0, ...dottedPaths.map((segments) => segments.length - 1));
|
|
return (value) => {
|
|
const path = [];
|
|
const ancestors = [];
|
|
const visited = /* @__PURE__ */ new Map();
|
|
const isRedacted = /* @__PURE__ */ __name((key) => {
|
|
if (keys.has(key)) {
|
|
return true;
|
|
}
|
|
return dottedPaths.some((segments) => {
|
|
const last = segments.length - 1;
|
|
if (segments[last] !== key || last > path.length) {
|
|
return false;
|
|
}
|
|
for (let i = 1; i <= last; i++) {
|
|
if (segments[last - i] !== path[path.length - i]) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
});
|
|
}, "isRedacted");
|
|
const visitProperty = /* @__PURE__ */ __name((key, propertyValue) => {
|
|
const normalizedKey = key.toLowerCase();
|
|
if (isRedacted(normalizedKey)) {
|
|
return censor;
|
|
}
|
|
if (typeof propertyValue !== "object" || propertyValue === null) {
|
|
return propertyValue;
|
|
}
|
|
path.push(normalizedKey);
|
|
const redacted = visit(propertyValue);
|
|
path.pop();
|
|
return redacted;
|
|
}, "visitProperty");
|
|
const visit = /* @__PURE__ */ __name((current) => {
|
|
if (typeof current !== "object" || current === null) {
|
|
return current;
|
|
}
|
|
if (ancestors.includes(current)) {
|
|
return CIRCULAR;
|
|
}
|
|
const context = contextLength > 0 ? JSON.stringify(path.slice(-contextLength)) : "";
|
|
let results = visited.get(context);
|
|
if (!results) {
|
|
results = /* @__PURE__ */ new Map();
|
|
visited.set(context, results);
|
|
}
|
|
if (results.has(current)) {
|
|
return results.get(current);
|
|
}
|
|
let redacted;
|
|
ancestors.push(current);
|
|
if (Array.isArray(current)) {
|
|
redacted = redactArray(current);
|
|
} else if (Object.getPrototypeOf(current) === Object.prototype) {
|
|
redacted = redactObject(current);
|
|
} else if (current instanceof Map) {
|
|
redacted = redactMap(current);
|
|
} else if (current instanceof Set) {
|
|
redacted = redactSet(current);
|
|
} else if (isOpaque(current)) {
|
|
redacted = current;
|
|
} else {
|
|
redacted = redactObject(current);
|
|
}
|
|
ancestors.pop();
|
|
results.set(current, redacted);
|
|
return redacted;
|
|
}, "visit");
|
|
const redactArray = /* @__PURE__ */ __name((array) => {
|
|
let copy;
|
|
for (let i = 0; i < array.length; i++) {
|
|
const redacted = visit(array[i]);
|
|
if (!Object.is(redacted, array[i])) {
|
|
copy ??= array.slice();
|
|
copy[i] = redacted;
|
|
}
|
|
}
|
|
return copy ?? array;
|
|
}, "redactArray");
|
|
const redactMap = /* @__PURE__ */ __name((map2) => {
|
|
let changed = false;
|
|
const entries = [];
|
|
for (const [key, entryValue] of map2) {
|
|
const redacted = typeof key === "string" ? visitProperty(key, entryValue) : visit(entryValue);
|
|
changed ||= !Object.is(redacted, entryValue);
|
|
entries.push([key, redacted]);
|
|
}
|
|
return changed ? new Map(entries) : map2;
|
|
}, "redactMap");
|
|
const redactSet = /* @__PURE__ */ __name((set) => {
|
|
let changed = false;
|
|
const values = [];
|
|
for (const setValue of set) {
|
|
const redacted = visit(setValue);
|
|
changed ||= !Object.is(redacted, setValue);
|
|
values.push(redacted);
|
|
}
|
|
return changed ? new Set(values) : set;
|
|
}, "redactSet");
|
|
const redactObject = /* @__PURE__ */ __name((object) => {
|
|
const source = object;
|
|
const keysToVisit = Object.keys(source);
|
|
if (object instanceof Error) {
|
|
for (const key of ["cause", "errors"]) {
|
|
if (Object.prototype.hasOwnProperty.call(object, key) && !keysToVisit.includes(key)) {
|
|
keysToVisit.push(key);
|
|
}
|
|
}
|
|
}
|
|
let changes;
|
|
for (const key of keysToVisit) {
|
|
const original = source[key];
|
|
const redacted = visitProperty(key, original);
|
|
if (!Object.is(redacted, original)) {
|
|
changes ??= /* @__PURE__ */ new Map();
|
|
changes.set(key, redacted);
|
|
}
|
|
}
|
|
if (!changes) {
|
|
return object;
|
|
}
|
|
if (Object.getPrototypeOf(object) === Object.prototype) {
|
|
const copy = { ...source };
|
|
for (const [key, redacted] of changes) {
|
|
if (key === "__proto__") {
|
|
Object.defineProperty(copy, key, {
|
|
value: redacted,
|
|
enumerable: true,
|
|
writable: true,
|
|
configurable: true
|
|
});
|
|
} else {
|
|
copy[key] = redacted;
|
|
}
|
|
}
|
|
return copy;
|
|
}
|
|
const descriptors = Object.getOwnPropertyDescriptors(object);
|
|
if (object instanceof Error && descriptors.stack?.get) {
|
|
descriptors.stack = {
|
|
value: object.stack,
|
|
enumerable: descriptors.stack.enumerable,
|
|
writable: true,
|
|
configurable: true
|
|
};
|
|
}
|
|
for (const [key, redacted] of changes) {
|
|
descriptors[key] = {
|
|
value: redacted,
|
|
enumerable: descriptors[key].enumerable,
|
|
writable: true,
|
|
configurable: true
|
|
};
|
|
}
|
|
return Object.create(Object.getPrototypeOf(object), descriptors);
|
|
}, "redactObject");
|
|
try {
|
|
return visit(value);
|
|
} catch {
|
|
return censor;
|
|
}
|
|
};
|
|
}
|
|
function isOpaque(value) {
|
|
return value instanceof Date || value instanceof RegExp || value instanceof Promise || value instanceof WeakMap || value instanceof WeakSet || value instanceof ArrayBuffer || ArrayBuffer.isView(value);
|
|
}
|
|
var DEFAULT_REDACT_CENSOR, CIRCULAR;
|
|
var init_redact_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/utils/redact.util.js"() {
|
|
DEFAULT_REDACT_CENSOR = "[REDACTED]";
|
|
CIRCULAR = "[Circular]";
|
|
__name(createRedactor, "createRedactor");
|
|
__name(isOpaque, "isOpaque");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/console-logger.service.js
|
|
import { inspect } from "util";
|
|
var ConsoleLogger_1, DEFAULT_DEPTH, MAX_ERROR_DEPTH, MAX_JSON_LENGTH, DEFAULT_LOG_LEVELS, reportedInvalidEnvLogLevel, dateTimeFormatter, ConsoleLogger;
|
|
var init_console_logger_service = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/console-logger.service.js"() {
|
|
init_tslib_es6();
|
|
init_core();
|
|
init_cli_colors_util();
|
|
init_shared_utils();
|
|
init_get_env_log_levels_util();
|
|
init_is_log_level_enabled_util();
|
|
init_redact_util();
|
|
DEFAULT_DEPTH = 5;
|
|
MAX_ERROR_DEPTH = 5;
|
|
MAX_JSON_LENGTH = 1e6;
|
|
DEFAULT_LOG_LEVELS = [
|
|
"log",
|
|
"error",
|
|
"warn",
|
|
"debug",
|
|
"verbose",
|
|
"fatal"
|
|
];
|
|
dateTimeFormatter = new Intl.DateTimeFormat(void 0, {
|
|
year: "numeric",
|
|
hour: "numeric",
|
|
minute: "numeric",
|
|
second: "numeric",
|
|
day: "2-digit",
|
|
month: "2-digit"
|
|
});
|
|
ConsoleLogger = class ConsoleLogger2 {
|
|
static {
|
|
__name(this, "ConsoleLogger");
|
|
}
|
|
static {
|
|
ConsoleLogger_1 = this;
|
|
}
|
|
/**
|
|
* The options of the logger.
|
|
*/
|
|
options;
|
|
/**
|
|
* The context of the logger (can be set manually or automatically inferred).
|
|
*/
|
|
context;
|
|
/**
|
|
* The original context of the logger (set in the constructor).
|
|
*/
|
|
originalContext;
|
|
/**
|
|
* The options used for the "inspect" method.
|
|
*/
|
|
inspectOptions;
|
|
/**
|
|
* The last timestamp at which the log message was printed.
|
|
*/
|
|
static lastTimestampAt;
|
|
/**
|
|
* Masks the properties set in the `redact` option.
|
|
*/
|
|
redactor;
|
|
constructor(contextOrOptions, options) {
|
|
let [context, opts] = isString(contextOrOptions) ? [contextOrOptions, options] : options ? [void 0, options] : [contextOrOptions?.context, contextOrOptions];
|
|
opts = opts ?? {};
|
|
opts.colors ??= opts.colors ?? (opts.json ? false : isColorAllowed());
|
|
opts.prefix ??= "Nest";
|
|
this.options = opts;
|
|
this.inspectOptions = this.getInspectOptions();
|
|
if (opts.redact) {
|
|
this.redactor = Array.isArray(opts.redact) ? createRedactor(opts.redact) : createRedactor(opts.redact.paths, opts.redact.censor);
|
|
}
|
|
if (context) {
|
|
this.context = context;
|
|
this.originalContext = context;
|
|
}
|
|
}
|
|
log(message, ...optionalParams) {
|
|
if (!this.isLevelEnabled("log")) {
|
|
return;
|
|
}
|
|
const { messages, context, params } = this.getContextAndMessagesToPrint([
|
|
message,
|
|
...optionalParams
|
|
]);
|
|
this.printMessages(messages, context, "log", "stdout", void 0, params);
|
|
}
|
|
error(message, ...optionalParams) {
|
|
if (!this.isLevelEnabled("error")) {
|
|
return;
|
|
}
|
|
const { messages, context, stack, params } = this.getContextAndStackAndMessagesToPrint([message, ...optionalParams]);
|
|
this.printMessages(messages, context, "error", "stderr", stack, params);
|
|
this.printStackTrace(stack);
|
|
}
|
|
warn(message, ...optionalParams) {
|
|
if (!this.isLevelEnabled("warn")) {
|
|
return;
|
|
}
|
|
const { messages, context, params } = this.getContextAndMessagesToPrint([
|
|
message,
|
|
...optionalParams
|
|
]);
|
|
this.printMessages(messages, context, "warn", "stdout", void 0, params);
|
|
}
|
|
debug(message, ...optionalParams) {
|
|
if (!this.isLevelEnabled("debug")) {
|
|
return;
|
|
}
|
|
const { messages, context, params } = this.getContextAndMessagesToPrint([
|
|
message,
|
|
...optionalParams
|
|
]);
|
|
this.printMessages(messages, context, "debug", "stdout", void 0, params);
|
|
}
|
|
verbose(message, ...optionalParams) {
|
|
if (!this.isLevelEnabled("verbose")) {
|
|
return;
|
|
}
|
|
const { messages, context, params } = this.getContextAndMessagesToPrint([
|
|
message,
|
|
...optionalParams
|
|
]);
|
|
this.printMessages(messages, context, "verbose", "stdout", void 0, params);
|
|
}
|
|
fatal(message, ...optionalParams) {
|
|
if (!this.isLevelEnabled("fatal")) {
|
|
return;
|
|
}
|
|
const { messages, context, stack, params } = this.getContextAndStackAndMessagesToPrint([message, ...optionalParams]);
|
|
this.printMessages(messages, context, "fatal", "stderr", stack, params);
|
|
this.printStackTrace(stack);
|
|
}
|
|
/**
|
|
* Set log levels
|
|
* @param levels log levels
|
|
*/
|
|
setLogLevels(levels) {
|
|
if (!this.options) {
|
|
this.options = {};
|
|
}
|
|
this.options.logLevels = levels;
|
|
}
|
|
/**
|
|
* Set logger context
|
|
* @param context context
|
|
*/
|
|
setContext(context) {
|
|
this.context = context;
|
|
}
|
|
/**
|
|
* Resets the logger context to the value that was passed in the constructor.
|
|
*/
|
|
resetContext() {
|
|
this.context = this.originalContext;
|
|
}
|
|
isLevelEnabled(level) {
|
|
if (this.options && !this.options.logLevels) {
|
|
this.options.logLevels = this.getDefaultLogLevels();
|
|
}
|
|
const logLevels = this.options?.logLevels;
|
|
return isLogLevelEnabled(level, logLevels);
|
|
}
|
|
/**
|
|
* Returns the levels used when none were passed to the constructor: the
|
|
* `NEST_LOG_LEVEL` environment variable if it is set, every level otherwise.
|
|
* Called on the first level check rather than in the constructor, so that
|
|
* the default logger also sees variables loaded after "@nestjs/common" was
|
|
* imported (for example, from a `.env` file).
|
|
*/
|
|
getDefaultLogLevels() {
|
|
const envLogLevels = getEnvLogLevels();
|
|
if (envLogLevels !== false) {
|
|
return envLogLevels ?? DEFAULT_LOG_LEVELS;
|
|
}
|
|
const value = process.env[LOG_LEVEL_ENV_VAR];
|
|
if (reportedInvalidEnvLogLevel !== value) {
|
|
reportedInvalidEnvLogLevel = value;
|
|
this.options.logLevels = DEFAULT_LOG_LEVELS;
|
|
this.warn(`Invalid ${LOG_LEVEL_ENV_VAR} value "${value}". Expected a log level ("warn"), a comma-separated list ("warn,error") or a threshold (">=warn"). Every log level is enabled instead.`, "ConsoleLogger");
|
|
}
|
|
return DEFAULT_LOG_LEVELS;
|
|
}
|
|
getTimestamp() {
|
|
return dateTimeFormatter.format(Date.now());
|
|
}
|
|
printMessages(messages, context = "", logLevel = "log", writeStreamType, errorStack, params) {
|
|
if (this.redactor) {
|
|
messages = messages.map((message) => this.redact(this.resolveMessage(message)));
|
|
params = params && this.redact(params);
|
|
}
|
|
if (this.options.json) {
|
|
const { messages: jsonMessages, error } = this.extractJsonError(messages.map((message) => this.resolveMessage(message)));
|
|
jsonMessages.forEach((message, index) => {
|
|
this.printAsJson(message, {
|
|
context,
|
|
logLevel,
|
|
writeStreamType,
|
|
errorStack,
|
|
params,
|
|
// The error belongs to the first record (the log message).
|
|
error: index === 0 ? error : void 0
|
|
});
|
|
});
|
|
return;
|
|
}
|
|
messages.forEach((message) => {
|
|
const pidMessage = this.formatPid(process.pid);
|
|
const contextMessage = this.formatContext(context);
|
|
const timestampDiff = this.updateAndGetTimestampDiff();
|
|
const formattedLogLevel = logLevel.toUpperCase().padStart(7, " ");
|
|
const formattedMessage = this.formatMessage(logLevel, message, pidMessage, formattedLogLevel, contextMessage, timestampDiff, params);
|
|
if (this.options.forceConsole) {
|
|
if (writeStreamType === "stderr") {
|
|
console.error(formattedMessage.trim());
|
|
} else {
|
|
console.log(formattedMessage.trim());
|
|
}
|
|
} else {
|
|
process[writeStreamType ?? "stdout"].write(formattedMessage);
|
|
}
|
|
});
|
|
}
|
|
printAsJson(message, options) {
|
|
const logObject = this.getJsonLogObject(message, options);
|
|
const formattedMessage = !this.options.colors && this.inspectOptions.compact === true ? this.stringifyJsonLogObject(logObject) : inspect(logObject, this.inspectOptions);
|
|
if (this.options.forceConsole) {
|
|
if (options.writeStreamType === "stderr") {
|
|
console.error(formattedMessage);
|
|
} else {
|
|
console.log(formattedMessage);
|
|
}
|
|
} else {
|
|
process[options.writeStreamType ?? "stdout"].write(`${formattedMessage}
|
|
`);
|
|
}
|
|
}
|
|
getJsonLogObject(message, options) {
|
|
const logObject = {
|
|
level: options.logLevel,
|
|
pid: process.pid,
|
|
timestamp: Date.now(),
|
|
message
|
|
};
|
|
if (options.context) {
|
|
logObject.context = options.context;
|
|
}
|
|
if (options.errorStack) {
|
|
logObject.stack = options.errorStack;
|
|
}
|
|
if (options.error) {
|
|
logObject.error = this.serializeError(options.error);
|
|
}
|
|
if (options.params) {
|
|
if (this.options.flattenParams) {
|
|
for (const [key, value] of Object.entries(options.params)) {
|
|
if (!(key in logObject)) {
|
|
logObject[key] = value;
|
|
}
|
|
}
|
|
} else {
|
|
logObject.params = options.params;
|
|
}
|
|
}
|
|
return logObject;
|
|
}
|
|
/**
|
|
* Pulls the first `Error` out of the messages so that it can be attached to
|
|
* the log record as a structured `error` field instead of being printed as
|
|
* a separate record. When the error is the message itself, the record's
|
|
* message becomes the error's message.
|
|
*/
|
|
extractJsonError(messages) {
|
|
const errorIndex = messages.findIndex((message) => message instanceof Error);
|
|
if (errorIndex === -1) {
|
|
return { messages };
|
|
}
|
|
const error = messages[errorIndex];
|
|
const remainingMessages = errorIndex === 0 ? [error.message, ...messages.slice(1)] : messages.filter((_, index) => index !== errorIndex);
|
|
return { messages: remainingMessages, error };
|
|
}
|
|
/**
|
|
* Converts an error into a plain object: `name`, `message`, `stack`, own
|
|
* primitive properties (e.g. `code`), and, recursively, `cause` and the
|
|
* `errors` of an `AggregateError`, up to a fixed depth.
|
|
*/
|
|
serializeError(error, depth = 0, ancestors = /* @__PURE__ */ new Set()) {
|
|
const serialized = {
|
|
name: error.name,
|
|
message: error.message,
|
|
stack: error.stack
|
|
};
|
|
for (const [key, value] of Object.entries(error)) {
|
|
if (key in serialized || key === "cause" || key === "errors") {
|
|
continue;
|
|
}
|
|
const isPrimitive = value === null || typeof value !== "object" && typeof value !== "function";
|
|
if (isPrimitive) {
|
|
serialized[key] = value;
|
|
}
|
|
}
|
|
const serializeNested = /* @__PURE__ */ __name((value) => {
|
|
if (!(value instanceof Error)) {
|
|
return value;
|
|
}
|
|
if (ancestors.has(value)) {
|
|
return "[Circular]";
|
|
}
|
|
if (depth + 1 > MAX_ERROR_DEPTH) {
|
|
return "[Truncated]";
|
|
}
|
|
return this.serializeError(value, depth + 1, ancestors);
|
|
}, "serializeNested");
|
|
ancestors.add(error);
|
|
if (error.cause !== void 0) {
|
|
serialized.cause = serializeNested(error.cause);
|
|
}
|
|
const errors = error.errors;
|
|
if (Array.isArray(errors)) {
|
|
serialized.errors = errors.map(serializeNested);
|
|
}
|
|
ancestors.delete(error);
|
|
return serialized;
|
|
}
|
|
/**
|
|
* Masks the properties set in the `redact` option. Returns the value itself
|
|
* when the option isn't set or nothing matched.
|
|
*/
|
|
redact(value) {
|
|
return this.redactor ? this.redactor(value) : value;
|
|
}
|
|
formatPid(pid) {
|
|
return `[${this.options.prefix}] ${pid} - `;
|
|
}
|
|
formatContext(context) {
|
|
if (!context) {
|
|
return "";
|
|
}
|
|
context = `[${context}] `;
|
|
return this.options.colors ? yellow(context) : context;
|
|
}
|
|
formatMessage(logLevel, message, pidMessage, formattedLogLevel, contextMessage, timestampDiff, params) {
|
|
const output = this.stringifyMessage(message, logLevel);
|
|
pidMessage = this.colorize(pidMessage, logLevel);
|
|
formattedLogLevel = this.colorize(formattedLogLevel, logLevel);
|
|
const paramsOutput = params ? ` ${this.stringifyParams(params)}` : "";
|
|
return `${pidMessage}${this.getTimestamp()} ${formattedLogLevel} ${contextMessage}${output}${paramsOutput}${timestampDiff}
|
|
`;
|
|
}
|
|
stringifyParams(params) {
|
|
return inspect(params, {
|
|
...this.inspectOptions,
|
|
compact: true,
|
|
breakLength: Infinity
|
|
});
|
|
}
|
|
/**
|
|
* Resolves a message passed as a function: a class resolves to its name,
|
|
* any other function is called (lazy message) and its result re-resolved.
|
|
*/
|
|
resolveMessage(message) {
|
|
if (isFunction(message)) {
|
|
const messageAsStr = Function.prototype.toString.call(message);
|
|
const isClass = messageAsStr.startsWith("class ");
|
|
if (isClass) {
|
|
return message.name;
|
|
}
|
|
return this.resolveMessage(message());
|
|
}
|
|
return message;
|
|
}
|
|
stringifyMessage(message, logLevel) {
|
|
message = this.resolveMessage(message);
|
|
if (typeof message === "string") {
|
|
return this.colorize(message, logLevel);
|
|
}
|
|
const outputText = inspect(message, this.inspectOptions);
|
|
if (isPlainObject(message)) {
|
|
return `Object(${Object.keys(message).length}) ${outputText}`;
|
|
}
|
|
if (Array.isArray(message)) {
|
|
return `Array(${message.length}) ${outputText}`;
|
|
}
|
|
return outputText;
|
|
}
|
|
colorize(message, logLevel) {
|
|
if (!this.options.colors || this.options.json) {
|
|
return message;
|
|
}
|
|
const color = this.getColorByLogLevel(logLevel);
|
|
return color(message);
|
|
}
|
|
printStackTrace(stack) {
|
|
if (!stack || this.options.json) {
|
|
return;
|
|
}
|
|
if (this.options.forceConsole) {
|
|
console.error(stack);
|
|
} else {
|
|
process.stderr.write(`${stack}
|
|
`);
|
|
}
|
|
}
|
|
updateAndGetTimestampDiff() {
|
|
const includeTimestamp = ConsoleLogger_1.lastTimestampAt && this.options?.timestamp;
|
|
const result = includeTimestamp ? this.formatTimestampDiff(Date.now() - ConsoleLogger_1.lastTimestampAt) : "";
|
|
ConsoleLogger_1.lastTimestampAt = Date.now();
|
|
return result;
|
|
}
|
|
formatTimestampDiff(timestampDiff) {
|
|
const formattedDiff = ` +${timestampDiff}ms`;
|
|
return this.options.colors ? yellow(formattedDiff) : formattedDiff;
|
|
}
|
|
getInspectOptions() {
|
|
let breakLength = this.options.breakLength;
|
|
if (typeof breakLength === "undefined") {
|
|
breakLength = this.options.colors ? this.options.compact ? Infinity : void 0 : this.options.compact === false ? void 0 : Infinity;
|
|
}
|
|
const inspectOptions = {
|
|
depth: this.options.depth ?? DEFAULT_DEPTH,
|
|
sorted: this.options.sorted,
|
|
showHidden: this.options.showHidden,
|
|
compact: this.options.compact ?? (this.options.json ? true : false),
|
|
colors: this.options.colors,
|
|
breakLength
|
|
};
|
|
if (typeof this.options.maxArrayLength !== "undefined") {
|
|
inspectOptions.maxArrayLength = this.options.maxArrayLength;
|
|
}
|
|
if (typeof this.options.maxStringLength !== "undefined") {
|
|
inspectOptions.maxStringLength = this.options.maxStringLength;
|
|
}
|
|
return inspectOptions;
|
|
}
|
|
/**
|
|
* Serializes a JSON log object without ever throwing: circular references
|
|
* are replaced with "[Circular]", whatever comes past `MAX_JSON_LENGTH`
|
|
* characters with "[Truncated]", and a value that cannot be serialized
|
|
* (e.g. a throwing `toJSON()`) makes the whole record fall back to `inspect`.
|
|
*/
|
|
stringifyJsonLogObject(logObject) {
|
|
const replacer = this.stringifyReplacer.bind(this);
|
|
const ancestors = [];
|
|
let length = 0;
|
|
try {
|
|
return JSON.stringify(logObject, function(key, value) {
|
|
value = replacer(key, value);
|
|
length += (Array.isArray(this) ? 0 : key.length) + (isString(value) || typeof value === "number" ? String(value).length : 1);
|
|
if (length > MAX_JSON_LENGTH) {
|
|
return isString(value) || typeof value === "object" && value !== null ? "[Truncated]" : value;
|
|
}
|
|
if (typeof value !== "object" || value === null) {
|
|
return value;
|
|
}
|
|
while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) {
|
|
ancestors.pop();
|
|
}
|
|
if (ancestors.includes(value)) {
|
|
return "[Circular]";
|
|
}
|
|
ancestors.push(value);
|
|
return value;
|
|
});
|
|
} catch {
|
|
return inspect(logObject, {
|
|
...this.inspectOptions,
|
|
colors: false,
|
|
compact: true,
|
|
breakLength: Infinity
|
|
});
|
|
}
|
|
}
|
|
stringifyReplacer(key, value) {
|
|
if (typeof value === "bigint") {
|
|
return value.toString();
|
|
}
|
|
if (typeof value === "symbol") {
|
|
return value.toString();
|
|
}
|
|
if (value instanceof Map || value instanceof Set || value instanceof Error) {
|
|
return `${inspect(value, this.inspectOptions)}`;
|
|
}
|
|
return value;
|
|
}
|
|
getContextAndMessagesToPrint(args) {
|
|
if (args?.length <= 1) {
|
|
return { messages: args, context: this.context };
|
|
}
|
|
const lastElement = args[args.length - 1];
|
|
const isContext = isString(lastElement);
|
|
let context;
|
|
let remainingArgs;
|
|
if (isContext) {
|
|
context = lastElement;
|
|
remainingArgs = args.slice(0, args.length - 1);
|
|
} else {
|
|
context = this.context;
|
|
remainingArgs = args;
|
|
}
|
|
if (this.options.structuredParams === false) {
|
|
return { messages: remainingArgs, context };
|
|
}
|
|
const messages = [remainingArgs[0]];
|
|
const paramObjects = [];
|
|
for (let i = 1; i < remainingArgs.length; i++) {
|
|
if (isPlainObject(remainingArgs[i])) {
|
|
paramObjects.push(remainingArgs[i]);
|
|
} else {
|
|
messages.push(remainingArgs[i]);
|
|
}
|
|
}
|
|
const params = paramObjects.length > 0 ? Object.assign({}, ...paramObjects) : void 0;
|
|
return { messages, context, params };
|
|
}
|
|
getContextAndStackAndMessagesToPrint(args) {
|
|
if (args.length === 1) {
|
|
return { ...this.getContextAndMessagesToPrint(args) };
|
|
}
|
|
if (args.length === 2) {
|
|
if (this.isStackFormat(args[1]) || isUndefined(args[1])) {
|
|
return {
|
|
messages: [args[0]],
|
|
stack: args[1],
|
|
context: this.context
|
|
};
|
|
}
|
|
return { ...this.getContextAndMessagesToPrint(args) };
|
|
}
|
|
const trailingArg = args[args.length - 1];
|
|
if (this.isStackFormat(trailingArg)) {
|
|
const { messages: messages2, context: context2, params: params2 } = this.getContextAndMessagesToPrint(args.slice(0, -1));
|
|
return {
|
|
messages: messages2,
|
|
context: context2,
|
|
stack: trailingArg,
|
|
params: params2
|
|
};
|
|
}
|
|
const { messages, context, params } = this.getContextAndMessagesToPrint(args);
|
|
if (messages?.length <= 1) {
|
|
return { messages, context, params };
|
|
}
|
|
const lastElement = messages[messages.length - 1];
|
|
const isStack = isString(lastElement);
|
|
if (!isStack && !isUndefined(lastElement)) {
|
|
return { messages, context, params };
|
|
}
|
|
return {
|
|
stack: lastElement,
|
|
messages: messages.slice(0, messages.length - 1),
|
|
context,
|
|
params
|
|
};
|
|
}
|
|
isStackFormat(stack) {
|
|
if (!isString(stack) && !isUndefined(stack)) {
|
|
return false;
|
|
}
|
|
return /\n[ \t]+at .+:\d+:\d+/.test(stack);
|
|
}
|
|
getColorByLogLevel(level) {
|
|
switch (level) {
|
|
case "debug":
|
|
return clc.magentaBright;
|
|
case "warn":
|
|
return clc.yellow;
|
|
case "error":
|
|
return clc.red;
|
|
case "verbose":
|
|
return clc.cyanBright;
|
|
case "fatal":
|
|
return clc.bold;
|
|
default:
|
|
return clc.green;
|
|
}
|
|
}
|
|
};
|
|
ConsoleLogger = ConsoleLogger_1 = __decorate([
|
|
Injectable(),
|
|
__param(0, Optional()),
|
|
__param(1, Optional()),
|
|
__metadata("design:paramtypes", [Object, Object])
|
|
], ConsoleLogger);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/utils/index.js
|
|
var init_utils = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/utils/index.js"() {
|
|
init_filter_log_levels_util();
|
|
init_is_log_level_enabled_util();
|
|
init_is_log_level_util();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/logger.service.js
|
|
var Logger_1, DEFAULT_LOGGER, dateTimeFormatter2, Logger;
|
|
var init_logger_service = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/logger.service.js"() {
|
|
init_tslib_es6();
|
|
init_core();
|
|
init_shared_utils();
|
|
init_console_logger_service();
|
|
init_utils();
|
|
init_log_levels_constant();
|
|
DEFAULT_LOGGER = new ConsoleLogger();
|
|
dateTimeFormatter2 = new Intl.DateTimeFormat(void 0, {
|
|
year: "numeric",
|
|
hour: "numeric",
|
|
minute: "numeric",
|
|
second: "numeric",
|
|
day: "2-digit",
|
|
month: "2-digit"
|
|
});
|
|
Logger = class Logger2 {
|
|
static {
|
|
__name(this, "Logger");
|
|
}
|
|
static {
|
|
Logger_1 = this;
|
|
}
|
|
context;
|
|
options;
|
|
static logBuffer = new Array();
|
|
static staticInstanceRef = DEFAULT_LOGGER;
|
|
static logLevels;
|
|
static isBufferAttached;
|
|
localInstanceRef;
|
|
/**
|
|
* The `Logger.logLevels` the local instance was last configured with.
|
|
*/
|
|
localInstanceLogLevels;
|
|
static WrapBuffer = /* @__PURE__ */ __name((target, propertyKey, descriptor) => {
|
|
const originalFn = descriptor.value;
|
|
descriptor.value = function(...args) {
|
|
if (Logger_1.isBufferAttached) {
|
|
Logger_1.logBuffer.push({
|
|
methodRef: originalFn.bind(this),
|
|
arguments: args
|
|
});
|
|
return;
|
|
}
|
|
return originalFn.call(this, ...args);
|
|
};
|
|
}, "WrapBuffer");
|
|
constructor(context, options = {}) {
|
|
this.context = context;
|
|
this.options = options;
|
|
}
|
|
get localInstance() {
|
|
if (Logger_1.staticInstanceRef === DEFAULT_LOGGER) {
|
|
return this.registerLocalInstanceRef();
|
|
} else if (Logger_1.staticInstanceRef instanceof Logger_1) {
|
|
const prototype = Object.getPrototypeOf(Logger_1.staticInstanceRef);
|
|
if (prototype.constructor === Logger_1) {
|
|
return this.registerLocalInstanceRef();
|
|
}
|
|
}
|
|
return Logger_1.staticInstanceRef;
|
|
}
|
|
error(message, ...optionalParams) {
|
|
optionalParams = this.context ? (optionalParams.length ? optionalParams : [void 0]).concat(this.context) : optionalParams;
|
|
this.localInstance?.error(message, ...optionalParams);
|
|
}
|
|
log(message, ...optionalParams) {
|
|
optionalParams = this.context ? optionalParams.concat(this.context) : optionalParams;
|
|
this.localInstance?.log(message, ...optionalParams);
|
|
}
|
|
warn(message, ...optionalParams) {
|
|
optionalParams = this.context ? optionalParams.concat(this.context) : optionalParams;
|
|
this.localInstance?.warn(message, ...optionalParams);
|
|
}
|
|
debug(message, ...optionalParams) {
|
|
optionalParams = this.context ? optionalParams.concat(this.context) : optionalParams;
|
|
this.localInstance?.debug?.(message, ...optionalParams);
|
|
}
|
|
verbose(message, ...optionalParams) {
|
|
optionalParams = this.context ? optionalParams.concat(this.context) : optionalParams;
|
|
this.localInstance?.verbose?.(message, ...optionalParams);
|
|
}
|
|
fatal(message, ...optionalParams) {
|
|
optionalParams = this.context ? optionalParams.concat(this.context) : optionalParams;
|
|
this.localInstance?.fatal?.(message, ...optionalParams);
|
|
}
|
|
static error(message, ...optionalParams) {
|
|
this.staticInstanceRef?.error(message, ...optionalParams);
|
|
}
|
|
static log(message, ...optionalParams) {
|
|
this.staticInstanceRef?.log(message, ...optionalParams);
|
|
}
|
|
static warn(message, ...optionalParams) {
|
|
this.staticInstanceRef?.warn(message, ...optionalParams);
|
|
}
|
|
static debug(message, ...optionalParams) {
|
|
this.staticInstanceRef?.debug?.(message, ...optionalParams);
|
|
}
|
|
static verbose(message, ...optionalParams) {
|
|
this.staticInstanceRef?.verbose?.(message, ...optionalParams);
|
|
}
|
|
static fatal(message, ...optionalParams) {
|
|
this.staticInstanceRef?.fatal?.(message, ...optionalParams);
|
|
}
|
|
/**
|
|
* Print buffered logs and detach buffer.
|
|
*/
|
|
static flush() {
|
|
this.isBufferAttached = false;
|
|
this.logBuffer.forEach((item) => item.methodRef(...item.arguments));
|
|
this.logBuffer = [];
|
|
}
|
|
/**
|
|
* Attach buffer.
|
|
* Turns on initialization logs buffering.
|
|
*/
|
|
static attachBuffer() {
|
|
this.isBufferAttached = true;
|
|
}
|
|
/**
|
|
* Detach buffer.
|
|
* Turns off initialization logs buffering.
|
|
*/
|
|
static detachBuffer() {
|
|
this.isBufferAttached = false;
|
|
}
|
|
static getTimestamp() {
|
|
return dateTimeFormatter2.format(Date.now());
|
|
}
|
|
static overrideLogger(logger3) {
|
|
if (Array.isArray(logger3)) {
|
|
Logger_1.logLevels = logger3;
|
|
return this.staticInstanceRef?.setLogLevels?.(logger3);
|
|
}
|
|
if (isObject(logger3)) {
|
|
if (logger3 instanceof Logger_1 && logger3.constructor !== Logger_1) {
|
|
const errorMessage = `Using the "extends Logger" instruction is not allowed in Nest v9. Please, use "extends ConsoleLogger" instead.`;
|
|
this.staticInstanceRef?.error(errorMessage);
|
|
throw new Error(errorMessage);
|
|
}
|
|
this.staticInstanceRef = logger3;
|
|
} else {
|
|
this.staticInstanceRef = void 0;
|
|
}
|
|
}
|
|
static isLevelEnabled(level) {
|
|
const instance = Logger_1.staticInstanceRef;
|
|
if (!instance) {
|
|
return false;
|
|
}
|
|
if (instance instanceof ConsoleLogger) {
|
|
return instance.isLevelEnabled(level);
|
|
}
|
|
const logLevels = Logger_1.logLevels;
|
|
return logLevels ? isLogLevelEnabled(level, logLevels) : true;
|
|
}
|
|
registerLocalInstanceRef() {
|
|
if (this.localInstanceRef) {
|
|
if (Logger_1.logLevels && this.localInstanceLogLevels !== Logger_1.logLevels) {
|
|
this.localInstanceRef.setLogLevels?.(Logger_1.logLevels);
|
|
this.localInstanceLogLevels = Logger_1.logLevels;
|
|
}
|
|
return this.localInstanceRef;
|
|
}
|
|
this.localInstanceLogLevels = Logger_1.logLevels;
|
|
this.localInstanceRef = new ConsoleLogger(this.context, {
|
|
timestamp: this.options?.timestamp,
|
|
logLevels: Logger_1.logLevels
|
|
});
|
|
return this.localInstanceRef;
|
|
}
|
|
};
|
|
__decorate([
|
|
Logger.WrapBuffer,
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", [Object, Object]),
|
|
__metadata("design:returntype", void 0)
|
|
], Logger.prototype, "error", null);
|
|
__decorate([
|
|
Logger.WrapBuffer,
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", [Object, Object]),
|
|
__metadata("design:returntype", void 0)
|
|
], Logger.prototype, "log", null);
|
|
__decorate([
|
|
Logger.WrapBuffer,
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", [Object, Object]),
|
|
__metadata("design:returntype", void 0)
|
|
], Logger.prototype, "warn", null);
|
|
__decorate([
|
|
Logger.WrapBuffer,
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", [Object, Object]),
|
|
__metadata("design:returntype", void 0)
|
|
], Logger.prototype, "debug", null);
|
|
__decorate([
|
|
Logger.WrapBuffer,
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", [Object, Object]),
|
|
__metadata("design:returntype", void 0)
|
|
], Logger.prototype, "verbose", null);
|
|
__decorate([
|
|
Logger.WrapBuffer,
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", [Object, Object]),
|
|
__metadata("design:returntype", void 0)
|
|
], Logger.prototype, "fatal", null);
|
|
__decorate([
|
|
Logger.WrapBuffer,
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", [Object, Object]),
|
|
__metadata("design:returntype", void 0)
|
|
], Logger, "error", null);
|
|
__decorate([
|
|
Logger.WrapBuffer,
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", [Object, Object]),
|
|
__metadata("design:returntype", void 0)
|
|
], Logger, "log", null);
|
|
__decorate([
|
|
Logger.WrapBuffer,
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", [Object, Object]),
|
|
__metadata("design:returntype", void 0)
|
|
], Logger, "warn", null);
|
|
__decorate([
|
|
Logger.WrapBuffer,
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", [Object, Object]),
|
|
__metadata("design:returntype", void 0)
|
|
], Logger, "debug", null);
|
|
__decorate([
|
|
Logger.WrapBuffer,
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", [Object, Object]),
|
|
__metadata("design:returntype", void 0)
|
|
], Logger, "verbose", null);
|
|
__decorate([
|
|
Logger.WrapBuffer,
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", [Object, Object]),
|
|
__metadata("design:returntype", void 0)
|
|
], Logger, "fatal", null);
|
|
Logger = Logger_1 = __decorate([
|
|
Injectable(),
|
|
__param(0, Optional()),
|
|
__param(1, Optional()),
|
|
__metadata("design:paramtypes", [String, Object])
|
|
], Logger);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/shutdown-signal.enum.js
|
|
var ShutdownSignal;
|
|
var init_shutdown_signal_enum = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/shutdown-signal.enum.js"() {
|
|
(function(ShutdownSignal2) {
|
|
ShutdownSignal2["SIGHUP"] = "SIGHUP";
|
|
ShutdownSignal2["SIGINT"] = "SIGINT";
|
|
ShutdownSignal2["SIGQUIT"] = "SIGQUIT";
|
|
ShutdownSignal2["SIGILL"] = "SIGILL";
|
|
ShutdownSignal2["SIGTRAP"] = "SIGTRAP";
|
|
ShutdownSignal2["SIGABRT"] = "SIGABRT";
|
|
ShutdownSignal2["SIGBUS"] = "SIGBUS";
|
|
ShutdownSignal2["SIGFPE"] = "SIGFPE";
|
|
ShutdownSignal2["SIGSEGV"] = "SIGSEGV";
|
|
ShutdownSignal2["SIGUSR2"] = "SIGUSR2";
|
|
ShutdownSignal2["SIGTERM"] = "SIGTERM";
|
|
})(ShutdownSignal || (ShutdownSignal = {}));
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/index.js
|
|
var init_enums = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/index.js"() {
|
|
init_request_method_enum();
|
|
init_http_status_enum();
|
|
init_shutdown_signal_enum();
|
|
init_version_type_enum();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/index.js
|
|
var init_services = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/services/index.js"() {
|
|
init_console_logger_service();
|
|
init_logger_service();
|
|
init_filter_log_levels_util();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/file-stream/streamable-file.js
|
|
import { Readable } from "stream";
|
|
import { types } from "util";
|
|
var StreamableFile;
|
|
var init_streamable_file = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/file-stream/streamable-file.js"() {
|
|
init_enums();
|
|
init_services();
|
|
init_shared_utils();
|
|
StreamableFile = class {
|
|
static {
|
|
__name(this, "StreamableFile");
|
|
}
|
|
options;
|
|
stream;
|
|
logger = new Logger("StreamableFile");
|
|
handleError = /* @__PURE__ */ __name((err, res) => {
|
|
if (res.destroyed) {
|
|
return;
|
|
}
|
|
if (res.headersSent) {
|
|
res.end();
|
|
return;
|
|
}
|
|
this.logError(err);
|
|
res.statusCode = HttpStatus.BAD_REQUEST;
|
|
res.send("Bad Request");
|
|
}, "handleError");
|
|
logError = /* @__PURE__ */ __name((err) => {
|
|
this.logger.error(err);
|
|
}, "logError");
|
|
constructor(bufferOrReadStream, options = {}) {
|
|
this.options = options;
|
|
if (types.isUint8Array(bufferOrReadStream)) {
|
|
this.stream = new Readable();
|
|
this.stream.push(bufferOrReadStream);
|
|
this.stream.push(null);
|
|
this.options = {
|
|
...this.options,
|
|
length: this.options.length ?? bufferOrReadStream.length
|
|
};
|
|
} else if (bufferOrReadStream.pipe && isFunction(bufferOrReadStream.pipe)) {
|
|
this.stream = bufferOrReadStream;
|
|
if (isFunction(this.stream.on)) {
|
|
this.stream.on("error", () => {
|
|
});
|
|
}
|
|
}
|
|
}
|
|
getStream() {
|
|
return this.stream;
|
|
}
|
|
getHeaders() {
|
|
const { type = "application/octet-stream", disposition = void 0, length = void 0 } = this.options;
|
|
return {
|
|
type,
|
|
disposition,
|
|
length
|
|
};
|
|
}
|
|
get errorHandler() {
|
|
return this.handleError;
|
|
}
|
|
setErrorHandler(handler) {
|
|
this.handleError = handler;
|
|
return this;
|
|
}
|
|
get errorLogger() {
|
|
return this.logError;
|
|
}
|
|
setErrorLogger(handler) {
|
|
this.logError = handler;
|
|
return this;
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/version-options.interface.js
|
|
var VERSION_NEUTRAL;
|
|
var init_version_options_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/version-options.interface.js"() {
|
|
VERSION_NEUTRAL = /* @__PURE__ */ Symbol("VERSION_NEUTRAL");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/random-string-generator.util.js
|
|
var randomStringGenerator;
|
|
var init_random_string_generator_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/random-string-generator.util.js"() {
|
|
init_dist();
|
|
randomStringGenerator = /* @__PURE__ */ __name(() => uid(21), "randomStringGenerator");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/load-package.util.js
|
|
import { createRequire } from "module";
|
|
async function loadPackage(packageName, context, loaderFn) {
|
|
const cached = packageCache.get(packageName);
|
|
if (cached) {
|
|
return cached;
|
|
}
|
|
try {
|
|
const pkg = loaderFn ? await loaderFn() : await import(packageName);
|
|
packageCache.set(packageName, pkg);
|
|
return pkg;
|
|
} catch (e) {
|
|
logger.error(MISSING_REQUIRED_DEPENDENCY(packageName, context));
|
|
Logger.flush();
|
|
process.exit(1);
|
|
}
|
|
}
|
|
function loadPackageSync(packageName, context, loaderFn) {
|
|
const cached = packageCache.get(packageName);
|
|
if (cached) {
|
|
return cached;
|
|
}
|
|
try {
|
|
const pkg = loaderFn ? loaderFn() : createRequire(import.meta.url)(packageName);
|
|
packageCache.set(packageName, pkg);
|
|
return pkg;
|
|
} catch (e) {
|
|
logger.error(MISSING_REQUIRED_DEPENDENCY(packageName, context));
|
|
Logger.flush();
|
|
process.exit(1);
|
|
}
|
|
}
|
|
function loadPackageCached(packageName, context) {
|
|
const cached = packageCache.get(packageName);
|
|
if (!cached) {
|
|
if (context) {
|
|
return loadPackageSync(packageName, context);
|
|
}
|
|
throw new Error(`Package "${packageName}" has not been loaded yet. Ensure loadPackage("${packageName}", ...) has been awaited before calling loadPackageCached.`);
|
|
}
|
|
return cached;
|
|
}
|
|
async function tryLoadPackage(packageName, loaderFn) {
|
|
const cached = packageCache.get(packageName);
|
|
if (cached) {
|
|
return cached;
|
|
}
|
|
try {
|
|
const pkg = loaderFn ? await loaderFn() : await import(packageName);
|
|
packageCache.set(packageName, pkg);
|
|
return pkg;
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
var MISSING_REQUIRED_DEPENDENCY, logger, packageCache;
|
|
var init_load_package_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/load-package.util.js"() {
|
|
init_logger_service();
|
|
MISSING_REQUIRED_DEPENDENCY = /* @__PURE__ */ __name((name, reason) => `The "${name}" package is missing. Please, make sure to install it to use ${reason}.`, "MISSING_REQUIRED_DEPENDENCY");
|
|
logger = new Logger("PackageLoader");
|
|
packageCache = /* @__PURE__ */ new Map();
|
|
__name(loadPackage, "loadPackage");
|
|
__name(loadPackageSync, "loadPackageSync");
|
|
__name(loadPackageCached, "loadPackageCached");
|
|
__name(tryLoadPackage, "tryLoadPackage");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/modules/index.js
|
|
var init_modules = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/modules/index.js"() {
|
|
init_global_decorator();
|
|
init_module_decorator();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/route-paramtypes.enum.js
|
|
var RouteParamtypes;
|
|
var init_route_paramtypes_enum = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/enums/route-paramtypes.enum.js"() {
|
|
(function(RouteParamtypes2) {
|
|
RouteParamtypes2[RouteParamtypes2["REQUEST"] = 0] = "REQUEST";
|
|
RouteParamtypes2[RouteParamtypes2["RESPONSE"] = 1] = "RESPONSE";
|
|
RouteParamtypes2[RouteParamtypes2["NEXT"] = 2] = "NEXT";
|
|
RouteParamtypes2[RouteParamtypes2["BODY"] = 3] = "BODY";
|
|
RouteParamtypes2[RouteParamtypes2["QUERY"] = 4] = "QUERY";
|
|
RouteParamtypes2[RouteParamtypes2["PARAM"] = 5] = "PARAM";
|
|
RouteParamtypes2[RouteParamtypes2["HEADERS"] = 6] = "HEADERS";
|
|
RouteParamtypes2[RouteParamtypes2["SESSION"] = 7] = "SESSION";
|
|
RouteParamtypes2[RouteParamtypes2["FILE"] = 8] = "FILE";
|
|
RouteParamtypes2[RouteParamtypes2["FILES"] = 9] = "FILES";
|
|
RouteParamtypes2[RouteParamtypes2["HOST"] = 10] = "HOST";
|
|
RouteParamtypes2[RouteParamtypes2["IP"] = 11] = "IP";
|
|
RouteParamtypes2[RouteParamtypes2["RAW_BODY"] = 12] = "RAW_BODY";
|
|
RouteParamtypes2[RouteParamtypes2["ACK"] = 13] = "ACK";
|
|
RouteParamtypes2[RouteParamtypes2["COOKIES"] = 14] = "COOKIES";
|
|
RouteParamtypes2[RouteParamtypes2["SIGNED_COOKIES"] = 15] = "SIGNED_COOKIES";
|
|
})(RouteParamtypes || (RouteParamtypes = {}));
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/parameter-decorator-options.util.js
|
|
function isParameterDecoratorOptions(value) {
|
|
return !!value && typeof value === "object" && !isPipeLike(value) && ("schema" in value || "pipes" in value);
|
|
}
|
|
var isPipeLike;
|
|
var init_parameter_decorator_options_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/parameter-decorator-options.util.js"() {
|
|
init_shared_utils();
|
|
isPipeLike = /* @__PURE__ */ __name((value) => isFunction(value?.transform) || isFunction(value) && value.prototype && isFunction(value.prototype.transform), "isPipeLike");
|
|
__name(isParameterDecoratorOptions, "isParameterDecoratorOptions");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/route-params.decorator.js
|
|
function assignMetadata(args, paramtype, index, options, ...legacyPipes) {
|
|
const isOptionsObject = options !== null && typeof options === "object" && (isParameterDecoratorOptions(options) || "data" in options) && !("transform" in options) && legacyPipes.length === 0;
|
|
const normalizedOptions = isOptionsObject ? options : { data: options, pipes: legacyPipes };
|
|
return {
|
|
...args,
|
|
[`${paramtype}:${index}`]: {
|
|
index,
|
|
data: normalizedOptions.data,
|
|
pipes: normalizedOptions.pipes ?? [],
|
|
...normalizedOptions.schema !== void 0 && {
|
|
schema: normalizedOptions.schema
|
|
}
|
|
}
|
|
};
|
|
}
|
|
function createRouteParamDecorator(paramtype) {
|
|
return (data) => (target, key, index) => {
|
|
const args = Reflect.getMetadata(ROUTE_ARGS_METADATA, target.constructor, key) || {};
|
|
Reflect.defineMetadata(ROUTE_ARGS_METADATA, assignMetadata(args, paramtype, index, {
|
|
data
|
|
}), target.constructor, key);
|
|
};
|
|
}
|
|
function UploadedFile(fileKey, ...pipes) {
|
|
return createPipesRouteParamDecorator(RouteParamtypes.FILE)({
|
|
data: fileKey,
|
|
pipes
|
|
});
|
|
}
|
|
function UploadedFiles(...pipes) {
|
|
return createPipesRouteParamDecorator(RouteParamtypes.FILES)({
|
|
pipes
|
|
});
|
|
}
|
|
function Query(property, optionsOrPipe, ...pipes) {
|
|
const isPropertyOptions = isParameterDecoratorOptions(property);
|
|
if (isPropertyOptions) {
|
|
return createPipesRouteParamDecorator(RouteParamtypes.QUERY)({
|
|
pipes: property.pipes,
|
|
schema: property.schema
|
|
});
|
|
}
|
|
const isOptions = isParameterDecoratorOptions(optionsOrPipe);
|
|
const actualPipes = isOptions ? [...optionsOrPipe.pipes ?? [], ...pipes] : [optionsOrPipe, ...pipes].filter(Boolean);
|
|
return createPipesRouteParamDecorator(RouteParamtypes.QUERY)({
|
|
data: property,
|
|
pipes: actualPipes,
|
|
schema: isOptions ? optionsOrPipe.schema : void 0
|
|
});
|
|
}
|
|
function Body(property, optionsOrPipe, ...pipes) {
|
|
const isPropertyOptions = isParameterDecoratorOptions(property);
|
|
if (isPropertyOptions) {
|
|
return createPipesRouteParamDecorator(RouteParamtypes.BODY)({
|
|
pipes: property.pipes,
|
|
schema: property.schema
|
|
});
|
|
}
|
|
const isOptions = isParameterDecoratorOptions(optionsOrPipe);
|
|
const actualPipes = isOptions ? [...optionsOrPipe.pipes ?? [], ...pipes] : [optionsOrPipe, ...pipes].filter(Boolean);
|
|
return createPipesRouteParamDecorator(RouteParamtypes.BODY)({
|
|
data: property,
|
|
pipes: actualPipes,
|
|
schema: isOptions ? optionsOrPipe.schema : void 0
|
|
});
|
|
}
|
|
function RawBody(optionsOrPipe, ...pipes) {
|
|
const isOptions = isParameterDecoratorOptions(optionsOrPipe);
|
|
const actualPipes = isOptions ? [...optionsOrPipe.pipes ?? [], ...pipes] : [optionsOrPipe, ...pipes].filter(Boolean);
|
|
return createPipesRouteParamDecorator(RouteParamtypes.RAW_BODY)({
|
|
pipes: actualPipes,
|
|
schema: isOptions ? optionsOrPipe.schema : void 0
|
|
});
|
|
}
|
|
function Param(property, optionsOrPipe, ...pipes) {
|
|
const isPropertyOptions = isParameterDecoratorOptions(property);
|
|
if (isPropertyOptions) {
|
|
return createPipesRouteParamDecorator(RouteParamtypes.PARAM)({
|
|
pipes: property.pipes,
|
|
schema: property.schema
|
|
});
|
|
}
|
|
const isOptions = isParameterDecoratorOptions(optionsOrPipe);
|
|
const actualPipes = isOptions ? [...optionsOrPipe.pipes ?? [], ...pipes] : [optionsOrPipe, ...pipes].filter(Boolean);
|
|
return createPipesRouteParamDecorator(RouteParamtypes.PARAM)({
|
|
data: property,
|
|
pipes: actualPipes,
|
|
schema: isOptions ? optionsOrPipe.schema : void 0
|
|
});
|
|
}
|
|
function HostParam(property) {
|
|
return createRouteParamDecorator(RouteParamtypes.HOST)(property);
|
|
}
|
|
function Cookies(property, ...pipes) {
|
|
return createPipesRouteParamDecorator(RouteParamtypes.COOKIES)({
|
|
data: property,
|
|
pipes
|
|
});
|
|
}
|
|
function SignedCookies(property, ...pipes) {
|
|
return createPipesRouteParamDecorator(RouteParamtypes.SIGNED_COOKIES)({
|
|
data: property,
|
|
pipes
|
|
});
|
|
}
|
|
var createPipesRouteParamDecorator, Request, Response, Next, Ip, Session, Headers, Req, Res;
|
|
var init_route_params_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/route-params.decorator.js"() {
|
|
init_constants();
|
|
init_route_paramtypes_enum();
|
|
init_shared_utils();
|
|
init_parameter_decorator_options_util();
|
|
__name(assignMetadata, "assignMetadata");
|
|
__name(createRouteParamDecorator, "createRouteParamDecorator");
|
|
createPipesRouteParamDecorator = /* @__PURE__ */ __name((paramtype) => ({ data, pipes, schema }) => (target, key, index) => {
|
|
const args = Reflect.getMetadata(ROUTE_ARGS_METADATA, target.constructor, key) || {};
|
|
const hasParamData = isNil(data) || isString(data);
|
|
const paramData = hasParamData ? data : void 0;
|
|
const paramPipes = hasParamData ? pipes ?? [] : [data, ...pipes ?? []];
|
|
Reflect.defineMetadata(ROUTE_ARGS_METADATA, assignMetadata(args, paramtype, index, {
|
|
data: paramData,
|
|
pipes: paramPipes,
|
|
schema
|
|
}), target.constructor, key);
|
|
}, "createPipesRouteParamDecorator");
|
|
Request = createRouteParamDecorator(RouteParamtypes.REQUEST);
|
|
Response = /* @__PURE__ */ __name((options) => (target, key, index) => {
|
|
if (options?.passthrough) {
|
|
Reflect.defineMetadata(RESPONSE_PASSTHROUGH_METADATA, options?.passthrough, target.constructor, key);
|
|
}
|
|
return createRouteParamDecorator(RouteParamtypes.RESPONSE)()(target, key, index);
|
|
}, "Response");
|
|
Next = createRouteParamDecorator(RouteParamtypes.NEXT);
|
|
Ip = createRouteParamDecorator(RouteParamtypes.IP);
|
|
Session = createRouteParamDecorator(RouteParamtypes.SESSION);
|
|
__name(UploadedFile, "UploadedFile");
|
|
__name(UploadedFiles, "UploadedFiles");
|
|
Headers = createRouteParamDecorator(RouteParamtypes.HEADERS);
|
|
__name(Query, "Query");
|
|
__name(Body, "Body");
|
|
__name(RawBody, "RawBody");
|
|
__name(Param, "Param");
|
|
__name(HostParam, "HostParam");
|
|
__name(Cookies, "Cookies");
|
|
__name(SignedCookies, "SignedCookies");
|
|
Req = Request;
|
|
Res = Response;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/http-code.decorator.js
|
|
function HttpCode(statusCode) {
|
|
return (target, key, descriptor) => {
|
|
Reflect.defineMetadata(HTTP_CODE_METADATA, statusCode, descriptor.value);
|
|
return descriptor;
|
|
};
|
|
}
|
|
var init_http_code_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/http-code.decorator.js"() {
|
|
init_constants();
|
|
__name(HttpCode, "HttpCode");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/assign-custom-metadata.util.js
|
|
function assignCustomParameterMetadata(args, paramtype, index, factory, data, schema, ...pipes) {
|
|
return {
|
|
...args,
|
|
[`${paramtype}${CUSTOM_ROUTE_ARGS_METADATA}:${index}`]: {
|
|
index,
|
|
factory,
|
|
data,
|
|
pipes,
|
|
...schema !== void 0 && { schema }
|
|
}
|
|
};
|
|
}
|
|
var init_assign_custom_metadata_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/assign-custom-metadata.util.js"() {
|
|
init_constants();
|
|
__name(assignCustomParameterMetadata, "assignCustomParameterMetadata");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/create-route-param-metadata.decorator.js
|
|
function createParamDecorator(factory, enhancers = []) {
|
|
const paramtype = uid(21);
|
|
return (data, ...pipes) => (target, key, index) => {
|
|
const args = Reflect.getMetadata(ROUTE_ARGS_METADATA, target.constructor, key) || {};
|
|
const isPipe = /* @__PURE__ */ __name((pipe) => pipe && (isFunction(pipe) && pipe.prototype && isFunction(pipe.prototype.transform) || isFunction(pipe.transform)), "isPipe");
|
|
const hasParamData = isNil(data) || !isPipe(data);
|
|
const paramData = hasParamData ? data : void 0;
|
|
const paramPipes = hasParamData ? pipes : [data, ...pipes];
|
|
const isDataOptions = hasParamData && !isNil(data) && isParameterDecoratorOptions(data) && Object.keys(data).every((key2) => key2 === "schema" || key2 === "pipes") && (data.schema === void 0 || isFunction(data.schema?.["~standard"]?.validate)) && (data.pipes === void 0 || Array.isArray(data.pipes) && // Falsy entries are allowed, as the pipes context filters them out
|
|
data.pipes.every((pipe) => isNil(pipe) || isPipe(pipe)));
|
|
const finalData = isDataOptions ? void 0 : paramData;
|
|
let finalSchema;
|
|
const finalPipes = [];
|
|
for (const arg of isDataOptions ? [data, ...paramPipes] : paramPipes) {
|
|
if (isParameterDecoratorOptions(arg)) {
|
|
finalSchema ??= arg.schema;
|
|
finalPipes.push(...arg.pipes ?? []);
|
|
} else {
|
|
finalPipes.push(arg);
|
|
}
|
|
}
|
|
Reflect.defineMetadata(ROUTE_ARGS_METADATA, assignCustomParameterMetadata(args, paramtype, index, factory, finalData, finalSchema, ...finalPipes), target.constructor, key);
|
|
enhancers.forEach((fn) => fn(target, key, index));
|
|
};
|
|
}
|
|
var init_create_route_param_metadata_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/create-route-param-metadata.decorator.js"() {
|
|
init_dist();
|
|
init_constants();
|
|
init_assign_custom_metadata_util();
|
|
init_shared_utils();
|
|
init_parameter_decorator_options_util();
|
|
__name(createParamDecorator, "createParamDecorator");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/render.decorator.js
|
|
function Render(template) {
|
|
return (target, key, descriptor) => {
|
|
Reflect.defineMetadata(RENDER_METADATA, template, descriptor.value);
|
|
return descriptor;
|
|
};
|
|
}
|
|
var init_render_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/render.decorator.js"() {
|
|
init_constants();
|
|
__name(Render, "Render");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/header.decorator.js
|
|
function Header(name, value) {
|
|
return (target, key, descriptor) => {
|
|
extendArrayMetadata(HEADERS_METADATA, [{ name, value }], descriptor.value);
|
|
return descriptor;
|
|
};
|
|
}
|
|
var init_header_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/header.decorator.js"() {
|
|
init_constants();
|
|
init_extend_metadata_util();
|
|
__name(Header, "Header");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/redirect.decorator.js
|
|
function Redirect(url = "", statusCode) {
|
|
return (target, key, descriptor) => {
|
|
Reflect.defineMetadata(REDIRECT_METADATA, { statusCode, url }, descriptor.value);
|
|
return descriptor;
|
|
};
|
|
}
|
|
var init_redirect_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/redirect.decorator.js"() {
|
|
init_constants();
|
|
__name(Redirect, "Redirect");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/sse.decorator.js
|
|
function Sse(path, options = {}) {
|
|
return (target, key, descriptor) => {
|
|
path = path && path.length ? path : "/";
|
|
Reflect.defineMetadata(PATH_METADATA, path, descriptor.value);
|
|
Reflect.defineMetadata(METHOD_METADATA, options[METHOD_METADATA] ?? RequestMethod.GET, descriptor.value);
|
|
Reflect.defineMetadata(SSE_METADATA, true, descriptor.value);
|
|
Reflect.defineMetadata(SSE_OPTIONS_METADATA, { maxPendingDataLength: options.maxPendingDataLength }, descriptor.value);
|
|
return descriptor;
|
|
};
|
|
}
|
|
var init_sse_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/sse.decorator.js"() {
|
|
init_constants();
|
|
init_request_method_enum();
|
|
__name(Sse, "Sse");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/sse-signal.decorator.js
|
|
var SSE_ABORT_CONTROLLER, SseSignal;
|
|
var init_sse_signal_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/sse-signal.decorator.js"() {
|
|
init_create_route_param_metadata_decorator();
|
|
SSE_ABORT_CONTROLLER = /* @__PURE__ */ Symbol("SSE_ABORT_CONTROLLER");
|
|
SseSignal = createParamDecorator((_data, ctx) => {
|
|
const request = ctx.switchToHttp().getRequest();
|
|
const controller = request?.[SSE_ABORT_CONTROLLER];
|
|
return controller?.signal;
|
|
});
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/index.js
|
|
var init_http = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/http/index.js"() {
|
|
init_request_mapping_decorator();
|
|
init_route_params_decorator();
|
|
init_http_code_decorator();
|
|
init_create_route_param_metadata_decorator();
|
|
init_render_decorator();
|
|
init_header_decorator();
|
|
init_redirect_decorator();
|
|
init_sse_decorator();
|
|
init_sse_signal_decorator();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/index.js
|
|
var init_decorators = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/index.js"() {
|
|
init_core();
|
|
init_modules();
|
|
init_http();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/bad-gateway.exception.js
|
|
var BadGatewayException;
|
|
var init_bad_gateway_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/bad-gateway.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
BadGatewayException = class extends HttpException {
|
|
static {
|
|
__name(this, "BadGatewayException");
|
|
}
|
|
/**
|
|
* Instantiate a `BadGatewayException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new BadGatewayException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 502.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 502.
|
|
* - `message`: the string `'Bad Gateway'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Bad Gateway") {
|
|
const { description = "Bad Gateway", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.BAD_GATEWAY, httpExceptionOptions?.errorCode), HttpStatus.BAD_GATEWAY, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/conflict.exception.js
|
|
var ConflictException;
|
|
var init_conflict_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/conflict.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
ConflictException = class extends HttpException {
|
|
static {
|
|
__name(this, "ConflictException");
|
|
}
|
|
/**
|
|
* Instantiate a `ConflictException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new ConflictException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 409.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 409.
|
|
* - `message`: the string `'Conflict'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Conflict") {
|
|
const { description = "Conflict", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.CONFLICT, httpExceptionOptions?.errorCode), HttpStatus.CONFLICT, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/forbidden.exception.js
|
|
var ForbiddenException;
|
|
var init_forbidden_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/forbidden.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
ForbiddenException = class extends HttpException {
|
|
static {
|
|
__name(this, "ForbiddenException");
|
|
}
|
|
/**
|
|
* Instantiate a `ForbiddenException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new ForbiddenException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 403.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 403.
|
|
* - `message`: the string `'Forbidden'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Forbidden") {
|
|
const { description = "Forbidden", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.FORBIDDEN, httpExceptionOptions?.errorCode), HttpStatus.FORBIDDEN, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/gateway-timeout.exception.js
|
|
var GatewayTimeoutException;
|
|
var init_gateway_timeout_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/gateway-timeout.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
GatewayTimeoutException = class extends HttpException {
|
|
static {
|
|
__name(this, "GatewayTimeoutException");
|
|
}
|
|
/**
|
|
* Instantiate a `GatewayTimeoutException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new GatewayTimeoutException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 504.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 504.
|
|
* - `message`: the string `'Gateway Timeout'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Gateway Timeout") {
|
|
const { description = "Gateway Timeout", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.GATEWAY_TIMEOUT, httpExceptionOptions?.errorCode), HttpStatus.GATEWAY_TIMEOUT, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/gone.exception.js
|
|
var GoneException;
|
|
var init_gone_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/gone.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
GoneException = class extends HttpException {
|
|
static {
|
|
__name(this, "GoneException");
|
|
}
|
|
/**
|
|
* Instantiate a `GoneException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new GoneException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 410.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 410.
|
|
* - `message`: the string `'Gone'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Gone") {
|
|
const { description = "Gone", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.GONE, httpExceptionOptions?.errorCode), HttpStatus.GONE, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/http-version-not-supported.exception.js
|
|
var HttpVersionNotSupportedException;
|
|
var init_http_version_not_supported_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/http-version-not-supported.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
HttpVersionNotSupportedException = class extends HttpException {
|
|
static {
|
|
__name(this, "HttpVersionNotSupportedException");
|
|
}
|
|
/**
|
|
* Instantiate a `HttpVersionNotSupportedException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new HttpVersionNotSupportedException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 505.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 505.
|
|
* - `message`: the string `'HTTP Version Not Supported'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "HTTP Version Not Supported") {
|
|
const { description = "HTTP Version Not Supported", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.HTTP_VERSION_NOT_SUPPORTED, httpExceptionOptions?.errorCode), HttpStatus.HTTP_VERSION_NOT_SUPPORTED, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/im-a-teapot.exception.js
|
|
var ImATeapotException;
|
|
var init_im_a_teapot_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/im-a-teapot.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
ImATeapotException = class extends HttpException {
|
|
static {
|
|
__name(this, "ImATeapotException");
|
|
}
|
|
/**
|
|
* Instantiate an `ImATeapotException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new ImATeapotException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 418.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 418.
|
|
* - `message`: the string `"I'm a Teapot"` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = `I'm a teapot`) {
|
|
const { description = `I'm a teapot`, httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.I_AM_A_TEAPOT, httpExceptionOptions?.errorCode), HttpStatus.I_AM_A_TEAPOT, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/method-not-allowed.exception.js
|
|
var MethodNotAllowedException;
|
|
var init_method_not_allowed_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/method-not-allowed.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
MethodNotAllowedException = class extends HttpException {
|
|
static {
|
|
__name(this, "MethodNotAllowedException");
|
|
}
|
|
/**
|
|
* Instantiate a `MethodNotAllowedException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new MethodNotAllowedException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 405.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 405.
|
|
* - `message`: the string `'Method Not Allowed'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Method Not Allowed") {
|
|
const { description = "Method Not Allowed", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.METHOD_NOT_ALLOWED, httpExceptionOptions?.errorCode), HttpStatus.METHOD_NOT_ALLOWED, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/misdirected.exception.js
|
|
var MisdirectedException;
|
|
var init_misdirected_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/misdirected.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
MisdirectedException = class extends HttpException {
|
|
static {
|
|
__name(this, "MisdirectedException");
|
|
}
|
|
/**
|
|
* Instantiate a `MisdirectedException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new MisdirectedException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 421.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 421.
|
|
* - `message`: the string `'Misdirected'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Misdirected") {
|
|
const { description = "Misdirected", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.MISDIRECTED, httpExceptionOptions?.errorCode), HttpStatus.MISDIRECTED, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/not-acceptable.exception.js
|
|
var NotAcceptableException;
|
|
var init_not_acceptable_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/not-acceptable.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
NotAcceptableException = class extends HttpException {
|
|
static {
|
|
__name(this, "NotAcceptableException");
|
|
}
|
|
/**
|
|
* Instantiate a `NotAcceptableException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new NotAcceptableException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 406.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 406.
|
|
* - `message`: the string `'Not Acceptable'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Not Acceptable") {
|
|
const { description = "Not Acceptable", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.NOT_ACCEPTABLE, httpExceptionOptions?.errorCode), HttpStatus.NOT_ACCEPTABLE, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/not-found.exception.js
|
|
var NotFoundException;
|
|
var init_not_found_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/not-found.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
NotFoundException = class extends HttpException {
|
|
static {
|
|
__name(this, "NotFoundException");
|
|
}
|
|
/**
|
|
* Instantiate a `NotFoundException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new NotFoundException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 404.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 404.
|
|
* - `message`: the string `'Not Found'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Not Found") {
|
|
const { description = "Not Found", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.NOT_FOUND, httpExceptionOptions?.errorCode), HttpStatus.NOT_FOUND, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/not-implemented.exception.js
|
|
var NotImplementedException;
|
|
var init_not_implemented_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/not-implemented.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
NotImplementedException = class extends HttpException {
|
|
static {
|
|
__name(this, "NotImplementedException");
|
|
}
|
|
/**
|
|
* Instantiate a `NotImplementedException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new NotImplementedException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 501.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 501.
|
|
* - `message`: the string `'Not Implemented'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
* @param error a short description of the HTTP error.
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Not Implemented") {
|
|
const { description = "Not Implemented", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.NOT_IMPLEMENTED, httpExceptionOptions?.errorCode), HttpStatus.NOT_IMPLEMENTED, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/payload-too-large.exception.js
|
|
var PayloadTooLargeException;
|
|
var init_payload_too_large_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/payload-too-large.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
PayloadTooLargeException = class extends HttpException {
|
|
static {
|
|
__name(this, "PayloadTooLargeException");
|
|
}
|
|
/**
|
|
* Instantiate a `PayloadTooLargeException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new PayloadTooLargeException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 413.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 413.
|
|
* - `message`: the string `'Payload Too Large'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Payload Too Large") {
|
|
const { description = "Payload Too Large", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.PAYLOAD_TOO_LARGE, httpExceptionOptions?.errorCode), HttpStatus.PAYLOAD_TOO_LARGE, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/precondition-failed.exception.js
|
|
var PreconditionFailedException;
|
|
var init_precondition_failed_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/precondition-failed.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
PreconditionFailedException = class extends HttpException {
|
|
static {
|
|
__name(this, "PreconditionFailedException");
|
|
}
|
|
/**
|
|
* Instantiate a `PreconditionFailedException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new PreconditionFailedException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 412.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 412.
|
|
* - `message`: the string `'Precondition Failed'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Precondition Failed") {
|
|
const { description = "Precondition Failed", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.PRECONDITION_FAILED, httpExceptionOptions?.errorCode), HttpStatus.PRECONDITION_FAILED, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/request-timeout.exception.js
|
|
var RequestTimeoutException;
|
|
var init_request_timeout_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/request-timeout.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
RequestTimeoutException = class extends HttpException {
|
|
static {
|
|
__name(this, "RequestTimeoutException");
|
|
}
|
|
/**
|
|
* Instantiate a `RequestTimeoutException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new RequestTimeoutException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 408.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 408.
|
|
* - `message`: the string `'Request Timeout'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Request Timeout") {
|
|
const { description = "Request Timeout", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.REQUEST_TIMEOUT, httpExceptionOptions?.errorCode), HttpStatus.REQUEST_TIMEOUT, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/service-unavailable.exception.js
|
|
var ServiceUnavailableException;
|
|
var init_service_unavailable_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/service-unavailable.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
ServiceUnavailableException = class extends HttpException {
|
|
static {
|
|
__name(this, "ServiceUnavailableException");
|
|
}
|
|
/**
|
|
* Instantiate a `ServiceUnavailableException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new ServiceUnavailableException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 503.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 503.
|
|
* - `message`: the string `'Service Unavailable'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Service Unavailable") {
|
|
const { description = "Service Unavailable", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.SERVICE_UNAVAILABLE, httpExceptionOptions?.errorCode), HttpStatus.SERVICE_UNAVAILABLE, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/unprocessable-entity.exception.js
|
|
var UnprocessableEntityException;
|
|
var init_unprocessable_entity_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/unprocessable-entity.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
UnprocessableEntityException = class extends HttpException {
|
|
static {
|
|
__name(this, "UnprocessableEntityException");
|
|
}
|
|
/**
|
|
* Instantiate an `UnprocessableEntityException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new UnprocessableEntityException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 422.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 422.
|
|
* - `message`: the string `'Unprocessable Entity'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Unprocessable Entity") {
|
|
const { description = "Unprocessable Entity", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.UNPROCESSABLE_ENTITY, httpExceptionOptions?.errorCode), HttpStatus.UNPROCESSABLE_ENTITY, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/unsupported-media-type.exception.js
|
|
var UnsupportedMediaTypeException;
|
|
var init_unsupported_media_type_exception = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/unsupported-media-type.exception.js"() {
|
|
init_http_status_enum();
|
|
init_http_exception();
|
|
UnsupportedMediaTypeException = class extends HttpException {
|
|
static {
|
|
__name(this, "UnsupportedMediaTypeException");
|
|
}
|
|
/**
|
|
* Instantiate an `UnsupportedMediaTypeException` Exception.
|
|
*
|
|
* @example
|
|
* `throw new UnsupportedMediaTypeException()`
|
|
*
|
|
* @usageNotes
|
|
* The HTTP response status code will be 415.
|
|
* - The `objectOrError` argument defines the JSON response body or the message string.
|
|
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
|
|
*
|
|
* By default, the JSON response body contains two properties:
|
|
* - `statusCode`: this will be the value 415.
|
|
* - `message`: the string `'Unsupported Media Type'` by default; override this by supplying
|
|
* a string in the `objectOrError` parameter.
|
|
*
|
|
* If the parameter `objectOrError` is a string, the response body will contain an
|
|
* additional property, `error`, with a short description of the HTTP error. To override the
|
|
* entire JSON response body, pass an object instead. Nest will serialize the object
|
|
* and return it as the JSON response body.
|
|
*
|
|
* @param objectOrError string or object describing the error condition.
|
|
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause
|
|
*/
|
|
constructor(objectOrError, descriptionOrOptions = "Unsupported Media Type") {
|
|
const { description = "Unsupported Media Type", httpExceptionOptions } = HttpException.extractDescriptionAndOptionsFrom(descriptionOrOptions);
|
|
super(HttpException.createBody(objectOrError, description, HttpStatus.UNSUPPORTED_MEDIA_TYPE, httpExceptionOptions?.errorCode), HttpStatus.UNSUPPORTED_MEDIA_TYPE, httpExceptionOptions);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/index.js
|
|
var init_exceptions = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/exceptions/index.js"() {
|
|
init_bad_gateway_exception();
|
|
init_bad_request_exception();
|
|
init_conflict_exception();
|
|
init_forbidden_exception();
|
|
init_gateway_timeout_exception();
|
|
init_gone_exception();
|
|
init_http_version_not_supported_exception();
|
|
init_http_exception();
|
|
init_im_a_teapot_exception();
|
|
init_internal_server_error_exception();
|
|
init_intrinsic_exception();
|
|
init_method_not_allowed_exception();
|
|
init_misdirected_exception();
|
|
init_not_acceptable_exception();
|
|
init_not_found_exception();
|
|
init_not_implemented_exception();
|
|
init_payload_too_large_exception();
|
|
init_precondition_failed_exception();
|
|
init_request_timeout_exception();
|
|
init_service_unavailable_exception();
|
|
init_unauthorized_exception();
|
|
init_unprocessable_entity_exception();
|
|
init_unsupported_media_type_exception();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/file-stream/index.js
|
|
var init_file_stream = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/file-stream/index.js"() {
|
|
init_streamable_file();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/abstract.interface.js
|
|
var init_abstract_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/abstract.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/controllers/controller-metadata.interface.js
|
|
var init_controller_metadata_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/controllers/controller-metadata.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/controllers/controller.interface.js
|
|
var init_controller_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/controllers/controller.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/exceptions/exception-filter.interface.js
|
|
var init_exception_filter_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/exceptions/exception-filter.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/exceptions/rpc-exception-filter.interface.js
|
|
var init_rpc_exception_filter_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/exceptions/rpc-exception-filter.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/exceptions/ws-exception-filter.interface.js
|
|
var init_ws_exception_filter_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/exceptions/ws-exception-filter.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/external/validation-error.interface.js
|
|
var init_validation_error_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/external/validation-error.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/arguments-host.interface.js
|
|
var init_arguments_host_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/arguments-host.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/can-activate.interface.js
|
|
var init_can_activate_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/can-activate.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/custom-route-param-factory.interface.js
|
|
var init_custom_route_param_factory_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/custom-route-param-factory.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/execution-context.interface.js
|
|
var init_execution_context_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/execution-context.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/nest-interceptor.interface.js
|
|
var init_nest_interceptor_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/nest-interceptor.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/paramtype.interface.js
|
|
var init_paramtype_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/paramtype.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/pipe-transform.interface.js
|
|
var init_pipe_transform_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/features/pipe-transform.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/global-prefix-options.interface.js
|
|
var init_global_prefix_options_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/global-prefix-options.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/hooks/before-application-shutdown.interface.js
|
|
var init_before_application_shutdown_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/hooks/before-application-shutdown.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/hooks/on-application-bootstrap.interface.js
|
|
var init_on_application_bootstrap_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/hooks/on-application-bootstrap.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/hooks/on-application-shutdown.interface.js
|
|
var init_on_application_shutdown_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/hooks/on-application-shutdown.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/hooks/on-destroy.interface.js
|
|
var init_on_destroy_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/hooks/on-destroy.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/hooks/on-init.interface.js
|
|
var init_on_init_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/hooks/on-init.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/hooks/index.js
|
|
var init_hooks = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/hooks/index.js"() {
|
|
init_before_application_shutdown_interface();
|
|
init_on_application_bootstrap_interface();
|
|
init_on_application_shutdown_interface();
|
|
init_on_destroy_interface();
|
|
init_on_init_interface();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/cookie-options.interface.js
|
|
var init_cookie_options_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/cookie-options.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/csrf-protection-options.interface.js
|
|
var init_csrf_protection_options_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/csrf-protection-options.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/http-exception-body.interface.js
|
|
var init_http_exception_body_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/http-exception-body.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/http-redirect-response.interface.js
|
|
var init_http_redirect_response_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/http-redirect-response.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/http-server.interface.js
|
|
var init_http_server_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/http-server.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/message-event.interface.js
|
|
var init_message_event_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/message-event.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/raw-body-request.interface.js
|
|
var init_raw_body_request_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/raw-body-request.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/security-headers-options.interface.js
|
|
var init_security_headers_options_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/security-headers-options.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/index.js
|
|
var init_http2 = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/http/index.js"() {
|
|
init_cookie_options_interface();
|
|
init_csrf_protection_options_interface();
|
|
init_http_exception_body_interface();
|
|
init_http_redirect_response_interface();
|
|
init_http_server_interface();
|
|
init_message_event_interface();
|
|
init_raw_body_request_interface();
|
|
init_security_headers_options_interface();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/injectable.interface.js
|
|
var init_injectable_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/injectable.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/microservices/nest-hybrid-application-options.interface.js
|
|
var init_nest_hybrid_application_options_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/microservices/nest-hybrid-application-options.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/microservices/pre-request-hook.interface.js
|
|
var init_pre_request_hook_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/microservices/pre-request-hook.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/microservices/transport-server.interface.js
|
|
var init_transport_server_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/microservices/transport-server.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/middleware/middleware-config-proxy.interface.js
|
|
var init_middleware_config_proxy_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/middleware/middleware-config-proxy.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/middleware/middleware-configuration.interface.js
|
|
var init_middleware_configuration_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/middleware/middleware-configuration.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/middleware/middleware-consumer.interface.js
|
|
var init_middleware_consumer_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/middleware/middleware-consumer.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/middleware/nest-middleware.interface.js
|
|
var init_nest_middleware_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/middleware/nest-middleware.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/middleware/index.js
|
|
var init_middleware = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/middleware/index.js"() {
|
|
init_middleware_config_proxy_interface();
|
|
init_middleware_configuration_interface();
|
|
init_middleware_consumer_interface();
|
|
init_nest_middleware_interface();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/dynamic-module.interface.js
|
|
var init_dynamic_module_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/dynamic-module.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/forward-reference.interface.js
|
|
var init_forward_reference_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/forward-reference.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/injection-token.interface.js
|
|
var init_injection_token_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/injection-token.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/introspection-result.interface.js
|
|
var init_introspection_result_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/introspection-result.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/module-metadata.interface.js
|
|
var init_module_metadata_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/module-metadata.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/nest-module.interface.js
|
|
var init_nest_module_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/nest-module.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/optional-factory-dependency.interface.js
|
|
var init_optional_factory_dependency_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/optional-factory-dependency.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/provider.interface.js
|
|
var init_provider_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/provider.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/index.js
|
|
var init_modules2 = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/modules/index.js"() {
|
|
init_dynamic_module_interface();
|
|
init_forward_reference_interface();
|
|
init_injection_token_interface();
|
|
init_introspection_result_interface();
|
|
init_module_metadata_interface();
|
|
init_nest_module_interface();
|
|
init_optional_factory_dependency_interface();
|
|
init_provider_interface();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/nest-application-context.interface.js
|
|
var init_nest_application_context_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/nest-application-context.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/nest-application-options.interface.js
|
|
var init_nest_application_options_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/nest-application-options.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/nest-application.interface.js
|
|
var init_nest_application_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/nest-application.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/nest-microservice.interface.js
|
|
var init_nest_microservice_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/nest-microservice.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/router-options.interface.js
|
|
var init_router_options_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/router-options.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/scope-options.interface.js
|
|
var Scope;
|
|
var init_scope_options_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/scope-options.interface.js"() {
|
|
(function(Scope2) {
|
|
Scope2[Scope2["DEFAULT"] = 0] = "DEFAULT";
|
|
Scope2[Scope2["TRANSIENT"] = 1] = "TRANSIENT";
|
|
Scope2[Scope2["REQUEST"] = 2] = "REQUEST";
|
|
})(Scope || (Scope = {}));
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/shutdown-hooks-options.interface.js
|
|
var init_shutdown_hooks_options_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/shutdown-hooks-options.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/type.interface.js
|
|
var init_type_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/type.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/websockets/web-socket-adapter.interface.js
|
|
var init_web_socket_adapter_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/websockets/web-socket-adapter.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/index.js
|
|
var init_interfaces = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/interfaces/index.js"() {
|
|
init_abstract_interface();
|
|
init_controller_metadata_interface();
|
|
init_controller_interface();
|
|
init_exception_filter_interface();
|
|
init_rpc_exception_filter_interface();
|
|
init_ws_exception_filter_interface();
|
|
init_validation_error_interface();
|
|
init_arguments_host_interface();
|
|
init_can_activate_interface();
|
|
init_custom_route_param_factory_interface();
|
|
init_execution_context_interface();
|
|
init_nest_interceptor_interface();
|
|
init_paramtype_interface();
|
|
init_pipe_transform_interface();
|
|
init_global_prefix_options_interface();
|
|
init_hooks();
|
|
init_http2();
|
|
init_injectable_interface();
|
|
init_nest_hybrid_application_options_interface();
|
|
init_pre_request_hook_interface();
|
|
init_transport_server_interface();
|
|
init_middleware();
|
|
init_modules2();
|
|
init_nest_application_context_interface();
|
|
init_nest_application_options_interface();
|
|
init_nest_application_interface();
|
|
init_nest_microservice_interface();
|
|
init_router_options_interface();
|
|
init_scope_options_interface();
|
|
init_shutdown_hooks_options_interface();
|
|
init_type_interface();
|
|
init_version_options_interface();
|
|
init_web_socket_adapter_interface();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/constants.js
|
|
var DEFAULT_METHOD_KEY, DEFAULT_FACTORY_CLASS_METHOD_KEY, ASYNC_METHOD_SUFFIX, CONFIGURABLE_MODULE_ID, ASYNC_OPTIONS_METADATA_KEYS;
|
|
var init_constants2 = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/constants.js"() {
|
|
DEFAULT_METHOD_KEY = "register";
|
|
DEFAULT_FACTORY_CLASS_METHOD_KEY = "create";
|
|
ASYNC_METHOD_SUFFIX = "Async";
|
|
CONFIGURABLE_MODULE_ID = "CONFIGURABLE_MODULE_ID";
|
|
ASYNC_OPTIONS_METADATA_KEYS = [
|
|
"useFactory",
|
|
"useClass",
|
|
"useExisting",
|
|
"inject",
|
|
"imports",
|
|
"provideInjectionTokensFrom"
|
|
];
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/utils/generate-options-injection-token.util.js
|
|
function generateOptionsInjectionToken() {
|
|
const hash = randomStringGenerator();
|
|
return `CONFIGURABLE_MODULE_OPTIONS[${hash}]`;
|
|
}
|
|
var init_generate_options_injection_token_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/utils/generate-options-injection-token.util.js"() {
|
|
init_random_string_generator_util();
|
|
__name(generateOptionsInjectionToken, "generateOptionsInjectionToken");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/utils/get-injection-providers.util.js
|
|
function isOptionalFactoryDependency(value) {
|
|
return !isUndefined(value.token) && !isUndefined(value.optional) && !value.prototype;
|
|
}
|
|
function getInjectionProviders(providers, tokens) {
|
|
const result = [];
|
|
let search = tokens.map(mapInjectToTokens);
|
|
while (search.length > 0) {
|
|
const match = (providers ?? []).filter((p) => !result.includes(p) && // this prevents circular loops and duplication
|
|
(search.includes(p) || search.includes(p?.provide)));
|
|
result.push(...match);
|
|
search = match.flatMap((p) => p?.useExisting !== void 0 ? [p.useExisting] : p?.inject ?? []).map(mapInjectToTokens);
|
|
}
|
|
return result;
|
|
}
|
|
var mapInjectToTokens;
|
|
var init_get_injection_providers_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/utils/get-injection-providers.util.js"() {
|
|
init_shared_utils();
|
|
__name(isOptionalFactoryDependency, "isOptionalFactoryDependency");
|
|
mapInjectToTokens = /* @__PURE__ */ __name((t) => isOptionalFactoryDependency(t) ? t.token : t, "mapInjectToTokens");
|
|
__name(getInjectionProviders, "getInjectionProviders");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/utils/index.js
|
|
var init_utils2 = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/utils/index.js"() {
|
|
init_generate_options_injection_token_util();
|
|
init_get_injection_providers_util();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/configurable-module.builder.js
|
|
var ConfigurableModuleBuilder;
|
|
var init_configurable_module_builder = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/configurable-module.builder.js"() {
|
|
init_logger_service();
|
|
init_random_string_generator_util();
|
|
init_constants2();
|
|
init_utils2();
|
|
ConfigurableModuleBuilder = class _ConfigurableModuleBuilder {
|
|
static {
|
|
__name(this, "ConfigurableModuleBuilder");
|
|
}
|
|
options;
|
|
staticMethodKey;
|
|
factoryClassMethodKey;
|
|
extras;
|
|
transformModuleDefinition;
|
|
logger = new Logger(_ConfigurableModuleBuilder.name);
|
|
constructor(options = {}, parentBuilder) {
|
|
this.options = options;
|
|
if (parentBuilder) {
|
|
this.staticMethodKey = parentBuilder.staticMethodKey;
|
|
this.factoryClassMethodKey = parentBuilder.factoryClassMethodKey;
|
|
this.transformModuleDefinition = parentBuilder.transformModuleDefinition;
|
|
this.extras = parentBuilder.extras;
|
|
}
|
|
}
|
|
/**
|
|
* Registers the "extras" object (a set of extra options that can be used to modify the dynamic module definition).
|
|
* Values you specify within the "extras" object will be used as default values (that can be overridden by module consumers).
|
|
*
|
|
* This method also applies the so-called "module definition transform function" that takes the auto-generated
|
|
* dynamic module object ("DynamicModule") and the actual consumer "extras" object as input parameters.
|
|
* The "extras" object consists of values explicitly specified by module consumers and default values.
|
|
*
|
|
* @example
|
|
* ```typescript
|
|
* .setExtras<{ isGlobal?: boolean }>({ isGlobal: false }, (definition, extras) =>
|
|
* ({ ...definition, global: extras.isGlobal })
|
|
* )
|
|
* ```
|
|
*/
|
|
setExtras(extras, transformDefinition = (def) => def) {
|
|
const builder = new _ConfigurableModuleBuilder(this.options, this);
|
|
builder.extras = extras;
|
|
builder.transformModuleDefinition = transformDefinition;
|
|
return builder;
|
|
}
|
|
/**
|
|
* Dynamic modules must expose public static methods that let you pass in
|
|
* configuration parameters (control the module's behavior from the outside).
|
|
* Some frequently used names that you may have seen in other modules are:
|
|
* "forRoot", "forFeature", "register", "configure".
|
|
*
|
|
* This method "setClassMethodName" lets you specify the name of the
|
|
* method that will be auto-generated.
|
|
*
|
|
* @param key name of the method
|
|
*/
|
|
setClassMethodName(key) {
|
|
const builder = new _ConfigurableModuleBuilder(this.options, this);
|
|
builder.staticMethodKey = key;
|
|
return builder;
|
|
}
|
|
/**
|
|
* Asynchronously configured modules (that rely on other modules, i.e. "ConfigModule")
|
|
* let you pass the configuration factory class that will be registered and instantiated as a provider.
|
|
* This provider then will be used to retrieve the module's configuration. To provide the configuration,
|
|
* the corresponding factory method must be implemented.
|
|
*
|
|
* This method ("setFactoryMethodName") lets you control what method name will have to be
|
|
* implemented by the config factory (default is "create").
|
|
*
|
|
* @param key name of the method
|
|
*/
|
|
setFactoryMethodName(key) {
|
|
const builder = new _ConfigurableModuleBuilder(this.options, this);
|
|
builder.factoryClassMethodKey = key;
|
|
return builder;
|
|
}
|
|
/**
|
|
* Returns an object consisting of multiple properties that lets you
|
|
* easily construct dynamic configurable modules. See "ConfigurableModuleHost" interface for more details.
|
|
*/
|
|
build() {
|
|
this.staticMethodKey ??= DEFAULT_METHOD_KEY;
|
|
this.factoryClassMethodKey ??= DEFAULT_FACTORY_CLASS_METHOD_KEY;
|
|
this.options.optionsInjectionToken ??= this.options.moduleName ? this.constructInjectionTokenString() : generateOptionsInjectionToken();
|
|
this.transformModuleDefinition ??= (definition) => definition;
|
|
return {
|
|
ConfigurableModuleClass: this.createConfigurableModuleCls(),
|
|
MODULE_OPTIONS_TOKEN: this.options.optionsInjectionToken,
|
|
ASYNC_OPTIONS_TYPE: this.createTypeProxy("ASYNC_OPTIONS_TYPE"),
|
|
OPTIONS_TYPE: this.createTypeProxy("OPTIONS_TYPE")
|
|
};
|
|
}
|
|
constructInjectionTokenString() {
|
|
const moduleNameInSnakeCase = this.options.moduleName.trim().split(/(?=[A-Z])/).join("_").toUpperCase();
|
|
return `${moduleNameInSnakeCase}_MODULE_OPTIONS`;
|
|
}
|
|
createConfigurableModuleCls() {
|
|
const self2 = this;
|
|
const asyncMethodKey = this.staticMethodKey + ASYNC_METHOD_SUFFIX;
|
|
class InternalModuleClass {
|
|
static {
|
|
__name(this, "InternalModuleClass");
|
|
}
|
|
static [self2.staticMethodKey](options) {
|
|
const providers = [
|
|
{
|
|
provide: self2.options.optionsInjectionToken,
|
|
useValue: this.omitExtras(options, self2.extras)
|
|
}
|
|
];
|
|
if (self2.options.alwaysTransient) {
|
|
providers.push({
|
|
provide: CONFIGURABLE_MODULE_ID,
|
|
useValue: randomStringGenerator()
|
|
});
|
|
}
|
|
return self2.transformModuleDefinition({
|
|
module: this,
|
|
providers
|
|
}, {
|
|
...self2.extras,
|
|
...options
|
|
});
|
|
}
|
|
static [asyncMethodKey](options) {
|
|
const providers = this.createAsyncProviders(options);
|
|
if (self2.options.alwaysTransient) {
|
|
providers.push({
|
|
provide: CONFIGURABLE_MODULE_ID,
|
|
useValue: randomStringGenerator()
|
|
});
|
|
}
|
|
return self2.transformModuleDefinition({
|
|
module: this,
|
|
imports: options.imports || [],
|
|
providers
|
|
}, {
|
|
...self2.extras,
|
|
...this.extractExtrasFromAsyncOptions(options, self2.extras)
|
|
});
|
|
}
|
|
static omitExtras(input, extras) {
|
|
if (!extras) {
|
|
return input;
|
|
}
|
|
const moduleOptions = {};
|
|
const extrasKeys = Object.keys(extras);
|
|
Object.keys(input).filter((key) => !extrasKeys.includes(key)).forEach((key) => {
|
|
moduleOptions[key] = input[key];
|
|
});
|
|
return moduleOptions;
|
|
}
|
|
static extractExtrasFromAsyncOptions(input, extras) {
|
|
if (!extras) {
|
|
return {};
|
|
}
|
|
const extrasOptions = {};
|
|
Object.keys(input).filter((key) => !ASYNC_OPTIONS_METADATA_KEYS.includes(key)).forEach((key) => {
|
|
extrasOptions[key] = input[key];
|
|
});
|
|
return extrasOptions;
|
|
}
|
|
static createAsyncProviders(options) {
|
|
if (options.useExisting || options.useFactory) {
|
|
if (options.inject && options.provideInjectionTokensFrom) {
|
|
return [
|
|
this.createAsyncOptionsProvider(options),
|
|
...getInjectionProviders(options.provideInjectionTokensFrom, options.inject)
|
|
];
|
|
}
|
|
return [this.createAsyncOptionsProvider(options)];
|
|
}
|
|
return [
|
|
this.createAsyncOptionsProvider(options),
|
|
{
|
|
provide: options.useClass,
|
|
useClass: options.useClass
|
|
}
|
|
];
|
|
}
|
|
static createAsyncOptionsProvider(options) {
|
|
if (options.useFactory) {
|
|
return {
|
|
provide: self2.options.optionsInjectionToken,
|
|
useFactory: options.useFactory,
|
|
inject: options.inject || []
|
|
};
|
|
}
|
|
return {
|
|
provide: self2.options.optionsInjectionToken,
|
|
useFactory: /* @__PURE__ */ __name(async (optionsFactory) => await optionsFactory[self2.factoryClassMethodKey](), "useFactory"),
|
|
inject: [options.useExisting || options.useClass]
|
|
};
|
|
}
|
|
}
|
|
return InternalModuleClass;
|
|
}
|
|
createTypeProxy(typeName) {
|
|
const proxy = new Proxy({}, {
|
|
get: /* @__PURE__ */ __name(() => {
|
|
throw new Error(`"${typeName}" is not supposed to be used as a value.`);
|
|
}, "get")
|
|
});
|
|
return proxy;
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/interfaces/configurable-module-async-options.interface.js
|
|
var init_configurable_module_async_options_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/interfaces/configurable-module-async-options.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/interfaces/configurable-module-cls.interface.js
|
|
var init_configurable_module_cls_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/interfaces/configurable-module-cls.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/interfaces/configurable-module-host.interface.js
|
|
var init_configurable_module_host_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/interfaces/configurable-module-host.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/interfaces/index.js
|
|
var init_interfaces2 = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/interfaces/index.js"() {
|
|
init_configurable_module_async_options_interface();
|
|
init_configurable_module_cls_interface();
|
|
init_configurable_module_host_interface();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/index.js
|
|
var init_module_utils = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/module-utils/index.js"() {
|
|
init_configurable_module_builder();
|
|
init_interfaces2();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/default-value.pipe.js
|
|
var DefaultValuePipe;
|
|
var init_default_value_pipe = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/default-value.pipe.js"() {
|
|
init_tslib_es6();
|
|
init_injectable_decorator();
|
|
init_shared_utils();
|
|
DefaultValuePipe = class DefaultValuePipe2 {
|
|
static {
|
|
__name(this, "DefaultValuePipe");
|
|
}
|
|
defaultValue;
|
|
constructor(defaultValue) {
|
|
this.defaultValue = defaultValue;
|
|
}
|
|
transform(value, _metadata) {
|
|
if (isNil(value) || isNumber(value) && isNaN(value)) {
|
|
return this.copyDefaultValue(this.defaultValue);
|
|
}
|
|
return value;
|
|
}
|
|
/**
|
|
* Copies `value` if it is an array or a plain object, along with the arrays
|
|
* and plain objects nested in it. `copies` maps the objects copied so far
|
|
* to their copies, so that shared and circular references are preserved.
|
|
*/
|
|
copyDefaultValue(value, copies) {
|
|
const isArray = Array.isArray(value) && Object.getPrototypeOf(value) === Array.prototype;
|
|
if (!isArray && !isPlainObject(value)) {
|
|
return value;
|
|
}
|
|
copies ??= /* @__PURE__ */ new Map();
|
|
if (copies.has(value)) {
|
|
return copies.get(value);
|
|
}
|
|
const copy = Object.assign(isArray ? [] : Object.create(Object.getPrototypeOf(value)), value);
|
|
copies.set(value, copy);
|
|
for (const key of Reflect.ownKeys(copy)) {
|
|
copy[key] = this.copyDefaultValue(copy[key], copies);
|
|
}
|
|
return copy;
|
|
}
|
|
};
|
|
DefaultValuePipe = __decorate([
|
|
Injectable(),
|
|
__metadata("design:paramtypes", [Object])
|
|
], DefaultValuePipe);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/file-validator.interface.js
|
|
var FileValidator;
|
|
var init_file_validator_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/file-validator.interface.js"() {
|
|
FileValidator = class {
|
|
static {
|
|
__name(this, "FileValidator");
|
|
}
|
|
validationOptions;
|
|
constructor(validationOptions) {
|
|
this.validationOptions = validationOptions;
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/file-type.validator.js
|
|
var logger2, FileTypeValidator;
|
|
var init_file_type_validator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/file-type.validator.js"() {
|
|
init_logger_service();
|
|
init_file_validator_interface();
|
|
logger2 = new Logger("FileTypeValidator");
|
|
FileTypeValidator = class extends FileValidator {
|
|
static {
|
|
__name(this, "FileTypeValidator");
|
|
}
|
|
buildErrorMessage(file) {
|
|
const { errorMessage, ...config } = this.validationOptions;
|
|
if (errorMessage) {
|
|
return typeof errorMessage === "function" ? errorMessage({ file, config }) : errorMessage;
|
|
}
|
|
if (file?.mimetype && !file.buffer && !this.validationOptions?.fallbackToMimetype && !this.validationOptions?.skipMagicNumbersValidation) {
|
|
return `Validation failed (file buffer is not available; file type validation could not be performed; expected type is ${this.validationOptions.fileType})`;
|
|
}
|
|
if (file?.mimetype) {
|
|
const baseMessage = `Validation failed (current file type is ${file.mimetype}, expected type is ${this.validationOptions.fileType})`;
|
|
if (this.validationOptions.fallbackToMimetype) {
|
|
return `${baseMessage} - magic number detection failed, used mimetype fallback`;
|
|
}
|
|
return baseMessage;
|
|
}
|
|
return `Validation failed (expected type is ${this.validationOptions.fileType})`;
|
|
}
|
|
async isValid(file) {
|
|
if (!this.validationOptions) {
|
|
return true;
|
|
}
|
|
const isFileValid = !!file && "mimetype" in file;
|
|
if (this.validationOptions.skipMagicNumbersValidation) {
|
|
return isFileValid && this.matchesFileType(file.mimetype);
|
|
}
|
|
if (!isFileValid)
|
|
return false;
|
|
if (!file.buffer) {
|
|
if (this.validationOptions.fallbackToMimetype) {
|
|
return this.matchesFileType(file.mimetype);
|
|
}
|
|
return false;
|
|
}
|
|
try {
|
|
const { fileTypeFromBuffer } = await import("./source-SMPGMLTA.js");
|
|
const fileType = await fileTypeFromBuffer(file.buffer);
|
|
if (fileType) {
|
|
if (this.validationOptions.overrideMimeType) {
|
|
file.mimetype = fileType.mime;
|
|
}
|
|
return this.matchesFileType(fileType.mime);
|
|
}
|
|
if (this.validationOptions.fallbackToMimetype) {
|
|
return this.matchesFileType(file.mimetype);
|
|
}
|
|
return false;
|
|
} catch (error) {
|
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
if (errorMessage.includes("ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING") || errorMessage.includes("Cannot find module") || errorMessage.includes("ERR_MODULE_NOT_FOUND")) {
|
|
logger2.warn(`Failed to load the "file-type" package for magic number validation. If you are using Jest, run it with NODE_OPTIONS="--experimental-vm-modules". Error: ${errorMessage}`);
|
|
}
|
|
if (this.validationOptions.fallbackToMimetype) {
|
|
return this.matchesFileType(file.mimetype);
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
matchesFileType(mimetype) {
|
|
const { fileType } = this.validationOptions;
|
|
if (typeof fileType === "string" && mimetype === fileType) {
|
|
return true;
|
|
}
|
|
if (typeof fileType === "string") {
|
|
return !!mimetype.match(/[a-z\d]$/i.test(fileType) ? `(?:${fileType})(?![\\w-])` : fileType);
|
|
}
|
|
return !!mimetype.match(new RegExp(fileType));
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/max-file-size.validator.js
|
|
var MaxFileSizeValidator;
|
|
var init_max_file_size_validator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/max-file-size.validator.js"() {
|
|
init_file_validator_interface();
|
|
MaxFileSizeValidator = class extends FileValidator {
|
|
static {
|
|
__name(this, "MaxFileSizeValidator");
|
|
}
|
|
buildErrorMessage(file) {
|
|
const { errorMessage, message, ...config } = this.validationOptions;
|
|
if (errorMessage) {
|
|
return typeof errorMessage === "function" ? errorMessage({ file, config }) : errorMessage;
|
|
}
|
|
if (message) {
|
|
return typeof message === "function" ? message(this.validationOptions.maxSize) : message;
|
|
}
|
|
if (file?.size) {
|
|
return `Validation failed (current file size is ${file.size}, expected size is less than ${this.validationOptions.maxSize})`;
|
|
}
|
|
return `Validation failed (expected size is less than ${this.validationOptions.maxSize})`;
|
|
}
|
|
isValid(file) {
|
|
if (!this.validationOptions || !file) {
|
|
return true;
|
|
}
|
|
return "size" in file && file.size < this.validationOptions.maxSize;
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/parse-file-options.interface.js
|
|
var init_parse_file_options_interface = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/parse-file-options.interface.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/http-error-by-code.util.js
|
|
var HttpErrorByCode;
|
|
var init_http_error_by_code_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/http-error-by-code.util.js"() {
|
|
init_enums();
|
|
init_exceptions();
|
|
HttpErrorByCode = {
|
|
[HttpStatus.BAD_GATEWAY]: BadGatewayException,
|
|
[HttpStatus.BAD_REQUEST]: BadRequestException,
|
|
[HttpStatus.CONFLICT]: ConflictException,
|
|
[HttpStatus.FORBIDDEN]: ForbiddenException,
|
|
[HttpStatus.GATEWAY_TIMEOUT]: GatewayTimeoutException,
|
|
[HttpStatus.GONE]: GoneException,
|
|
[HttpStatus.HTTP_VERSION_NOT_SUPPORTED]: HttpVersionNotSupportedException,
|
|
[HttpStatus.I_AM_A_TEAPOT]: ImATeapotException,
|
|
[HttpStatus.INTERNAL_SERVER_ERROR]: InternalServerErrorException,
|
|
[HttpStatus.METHOD_NOT_ALLOWED]: MethodNotAllowedException,
|
|
[HttpStatus.MISDIRECTED]: MisdirectedException,
|
|
[HttpStatus.NOT_ACCEPTABLE]: NotAcceptableException,
|
|
[HttpStatus.NOT_FOUND]: NotFoundException,
|
|
[HttpStatus.NOT_IMPLEMENTED]: NotImplementedException,
|
|
[HttpStatus.PAYLOAD_TOO_LARGE]: PayloadTooLargeException,
|
|
[HttpStatus.PRECONDITION_FAILED]: PreconditionFailedException,
|
|
[HttpStatus.REQUEST_TIMEOUT]: RequestTimeoutException,
|
|
[HttpStatus.SERVICE_UNAVAILABLE]: ServiceUnavailableException,
|
|
[HttpStatus.UNAUTHORIZED]: UnauthorizedException,
|
|
[HttpStatus.UNPROCESSABLE_ENTITY]: UnprocessableEntityException,
|
|
[HttpStatus.UNSUPPORTED_MEDIA_TYPE]: UnsupportedMediaTypeException
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/parse-file.pipe.js
|
|
var ParseFilePipe;
|
|
var init_parse_file_pipe = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/parse-file.pipe.js"() {
|
|
init_tslib_es6();
|
|
init_core();
|
|
init_enums();
|
|
init_http_error_by_code_util();
|
|
init_shared_utils();
|
|
ParseFilePipe = class ParseFilePipe2 {
|
|
static {
|
|
__name(this, "ParseFilePipe");
|
|
}
|
|
exceptionFactory;
|
|
validators;
|
|
fileIsRequired;
|
|
constructor(options = {}) {
|
|
const { exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST, validators = [], fileIsRequired } = options;
|
|
this.exceptionFactory = exceptionFactory || ((error) => new HttpErrorByCode[errorHttpStatusCode](error));
|
|
this.validators = validators;
|
|
this.fileIsRequired = fileIsRequired ?? true;
|
|
}
|
|
async transform(value) {
|
|
const areThereAnyFilesIn = this.thereAreNoFilesIn(value);
|
|
if (areThereAnyFilesIn && this.fileIsRequired) {
|
|
throw this.exceptionFactory("File is required");
|
|
}
|
|
if (!areThereAnyFilesIn && this.validators.length) {
|
|
await this.validateFilesOrFile(value);
|
|
}
|
|
return value;
|
|
}
|
|
async validateFilesOrFile(value) {
|
|
if (Array.isArray(value)) {
|
|
await Promise.all(value.map((f) => this.validate(f)));
|
|
} else {
|
|
await this.validate(value);
|
|
}
|
|
}
|
|
thereAreNoFilesIn(value) {
|
|
const isEmptyObject = isObject(value) && isEmptyArray(Object.keys(value));
|
|
return isNil(value) || isEmptyArray(value) || isEmptyObject;
|
|
}
|
|
async validate(file) {
|
|
for (const validator of this.validators) {
|
|
await this.validateOrThrow(file, validator);
|
|
}
|
|
return file;
|
|
}
|
|
async validateOrThrow(file, validator) {
|
|
const isValid = await validator.isValid(file);
|
|
if (!isValid) {
|
|
const errorMessage = validator.buildErrorMessage(file);
|
|
throw this.exceptionFactory(errorMessage);
|
|
}
|
|
}
|
|
/**
|
|
* @returns list of validators used in this pipe.
|
|
*/
|
|
getValidators() {
|
|
return this.validators;
|
|
}
|
|
};
|
|
ParseFilePipe = __decorate([
|
|
Injectable(),
|
|
__param(0, Optional()),
|
|
__metadata("design:paramtypes", [Object])
|
|
], ParseFilePipe);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/parse-file-pipe.builder.js
|
|
var ParseFilePipeBuilder;
|
|
var init_parse_file_pipe_builder = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/parse-file-pipe.builder.js"() {
|
|
init_file_type_validator();
|
|
init_max_file_size_validator();
|
|
init_parse_file_pipe();
|
|
ParseFilePipeBuilder = class {
|
|
static {
|
|
__name(this, "ParseFilePipeBuilder");
|
|
}
|
|
validators = [];
|
|
addMaxSizeValidator(options) {
|
|
return this.addValidator(new MaxFileSizeValidator(options));
|
|
}
|
|
addFileTypeValidator(options) {
|
|
return this.addValidator(new FileTypeValidator(options));
|
|
}
|
|
addValidator(validator) {
|
|
this.validators.push(validator);
|
|
return this;
|
|
}
|
|
build(additionalOptions) {
|
|
const parseFilePipe = new ParseFilePipe({
|
|
...additionalOptions,
|
|
validators: this.validators
|
|
});
|
|
this.validators = [];
|
|
return parseFilePipe;
|
|
}
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/index.js
|
|
var init_file = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/file/index.js"() {
|
|
init_file_type_validator();
|
|
init_file_validator_interface();
|
|
init_max_file_size_validator();
|
|
init_parse_file_options_interface();
|
|
init_parse_file_pipe();
|
|
init_parse_file_pipe_builder();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/concat.js
|
|
var require_concat = __commonJS({
|
|
"../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/concat.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var ConcatIterator = class {
|
|
static {
|
|
__name(this, "ConcatIterator");
|
|
}
|
|
constructor(toConcat) {
|
|
this.toConcat = toConcat;
|
|
}
|
|
next() {
|
|
if (this.toConcat.length === 0) {
|
|
return { done: true };
|
|
}
|
|
const result = this.toConcat[0].next();
|
|
if (!result.done) {
|
|
return result;
|
|
}
|
|
this.toConcat.shift();
|
|
return this.next();
|
|
}
|
|
};
|
|
exports.ConcatIterator = ConcatIterator;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/filter.js
|
|
var require_filter = __commonJS({
|
|
"../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/filter.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var FilterIterator = class {
|
|
static {
|
|
__name(this, "FilterIterator");
|
|
}
|
|
constructor(source, predicate) {
|
|
this.source = source;
|
|
this.predicate = predicate;
|
|
}
|
|
next() {
|
|
let result;
|
|
do {
|
|
result = this.source.next();
|
|
} while (!result.done && !this.predicate(result.value));
|
|
return result;
|
|
}
|
|
};
|
|
exports.FilterIterator = FilterIterator;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/utils.js
|
|
var require_utils = __commonJS({
|
|
"../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/utils.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
function isIterator(candidate) {
|
|
return typeof candidate === "object" && candidate !== null && typeof candidate.next === "function";
|
|
}
|
|
__name(isIterator, "isIterator");
|
|
exports.isIterator = isIterator;
|
|
function isIterable(candidate) {
|
|
return typeof candidate === "object" && candidate !== null && typeof candidate[Symbol.iterator] === "function";
|
|
}
|
|
__name(isIterable, "isIterable");
|
|
exports.isIterable = isIterable;
|
|
function toIterator(collection) {
|
|
if (isIterator(collection)) {
|
|
return collection;
|
|
}
|
|
if (isIterable(collection)) {
|
|
return collection[Symbol.iterator]();
|
|
}
|
|
throw new Error("Passed collection is neither an Iterator nor an Iterable");
|
|
}
|
|
__name(toIterator, "toIterator");
|
|
exports.toIterator = toIterator;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/flatten.js
|
|
var require_flatten = __commonJS({
|
|
"../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/flatten.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var utils_1 = require_utils();
|
|
var FlattenIterator = class {
|
|
static {
|
|
__name(this, "FlattenIterator");
|
|
}
|
|
constructor(outer) {
|
|
this.outer = outer;
|
|
}
|
|
next() {
|
|
if (this.inner) {
|
|
const result = this.inner.next();
|
|
if (!result.done) {
|
|
return result;
|
|
}
|
|
this.inner = void 0;
|
|
}
|
|
const { value, done } = this.outer.next();
|
|
if (utils_1.isIterable(value)) {
|
|
this.inner = value[Symbol.iterator]();
|
|
return this.next();
|
|
}
|
|
return { value, done };
|
|
}
|
|
};
|
|
exports.FlattenIterator = FlattenIterator;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/map.js
|
|
var require_map = __commonJS({
|
|
"../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/map.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var MapIterator = class {
|
|
static {
|
|
__name(this, "MapIterator");
|
|
}
|
|
constructor(source, iteratee) {
|
|
this.source = source;
|
|
this.iteratee = iteratee;
|
|
}
|
|
next() {
|
|
const { value, done } = this.source.next();
|
|
return { value: !done && this.iteratee(value), done };
|
|
}
|
|
};
|
|
exports.MapIterator = MapIterator;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/slice.js
|
|
var require_slice = __commonJS({
|
|
"../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/slice.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var SliceIterator = class {
|
|
static {
|
|
__name(this, "SliceIterator");
|
|
}
|
|
/**
|
|
* @param {Iterator<T>} source Source Iterator
|
|
* @param {number} start Zero-based positive start index, inclusive
|
|
* @param {number} end Zero-based positive end index, exclusive, defaults to end of iterator
|
|
*/
|
|
constructor(source, start, end = Infinity) {
|
|
this.source = source;
|
|
this.start = start;
|
|
this.end = end;
|
|
this.i = 0;
|
|
}
|
|
next() {
|
|
while (this.i < this.start) {
|
|
const result = this.source.next();
|
|
if (result.done) {
|
|
return result;
|
|
}
|
|
this.i++;
|
|
}
|
|
this.i++;
|
|
if (this.i >= this.end) {
|
|
return { done: true };
|
|
}
|
|
return this.source.next();
|
|
}
|
|
};
|
|
exports.SliceIterator = SliceIterator;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/zip.js
|
|
var require_zip = __commonJS({
|
|
"../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/zip.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var ZipIterator = class {
|
|
static {
|
|
__name(this, "ZipIterator");
|
|
}
|
|
constructor(a, b) {
|
|
this.a = a;
|
|
this.b = b;
|
|
}
|
|
next() {
|
|
const a = this.a.next();
|
|
if (a.done) {
|
|
return { done: true };
|
|
}
|
|
const b = this.b.next();
|
|
if (b.done) {
|
|
return { done: true };
|
|
}
|
|
return { value: [a.value, b.value], done: false };
|
|
}
|
|
};
|
|
exports.ZipIterator = ZipIterator;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/iterate.js
|
|
var require_iterate = __commonJS({
|
|
"../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/iterate.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var concat_1 = require_concat();
|
|
var filter_1 = require_filter();
|
|
var flatten_1 = require_flatten();
|
|
var map_1 = require_map();
|
|
var slice_1 = require_slice();
|
|
var utils_1 = require_utils();
|
|
var zip_1 = require_zip();
|
|
var IteratorWithOperators = class _IteratorWithOperators {
|
|
static {
|
|
__name(this, "IteratorWithOperators");
|
|
}
|
|
/**
|
|
* @param source Iterator to wrap
|
|
*/
|
|
constructor(source) {
|
|
this.source = source;
|
|
}
|
|
/**
|
|
* Returns a `{ value, done }` object that adheres to the Iterator protocol
|
|
*/
|
|
next() {
|
|
return this.source.next();
|
|
}
|
|
/**
|
|
* The presence of this method makes the Iterator itself Iterable.
|
|
* This makes it possible to pass it to `for of` and Iterable-accepting functions like `Array.from()`
|
|
*/
|
|
[Symbol.iterator]() {
|
|
return this;
|
|
}
|
|
/**
|
|
* Returns a new Iterator by running each element thru iteratee
|
|
*/
|
|
map(iteratee) {
|
|
return new _IteratorWithOperators(new map_1.MapIterator(this.source, iteratee));
|
|
}
|
|
filter(predicate) {
|
|
return new _IteratorWithOperators(new filter_1.FilterIterator(this.source, predicate));
|
|
}
|
|
/**
|
|
* Returns a new Iterator concatenating the Iterator with an additional Iterator or Iterable
|
|
*/
|
|
concat(collection) {
|
|
return new _IteratorWithOperators(new concat_1.ConcatIterator([this.source, utils_1.toIterator(collection)]));
|
|
}
|
|
/**
|
|
* Returns a new Iterator that emits slice of the source with n elements taken from the beginning
|
|
*
|
|
* @param limit The number of elements to take.
|
|
*/
|
|
take(limit) {
|
|
return new _IteratorWithOperators(new slice_1.SliceIterator(this.source, 0, limit + 1));
|
|
}
|
|
/**
|
|
* Returns a new Iterator that emits slice of the source with n elements dropped from the beginning
|
|
*
|
|
* @param n The number of elements to drop.
|
|
*/
|
|
drop(n) {
|
|
return new _IteratorWithOperators(new slice_1.SliceIterator(this.source, n, Infinity));
|
|
}
|
|
/**
|
|
* Returns a new Iterator that emits a slice of the source
|
|
*
|
|
* @param {number} start Zero-based positive start index, inclusive
|
|
* @param {number} end Zero-based positive end index, exclusive, defaults to end of iterator
|
|
*/
|
|
slice(start, end = Infinity) {
|
|
return new _IteratorWithOperators(new slice_1.SliceIterator(this.source, start, end));
|
|
}
|
|
/**
|
|
* Returns a new Iterator that flattens items emitted by the Iterator a single level deep
|
|
*/
|
|
flatten() {
|
|
return new _IteratorWithOperators(new flatten_1.FlattenIterator(this.source));
|
|
}
|
|
reduce(iteratee, accumulator) {
|
|
let result;
|
|
if (accumulator === void 0) {
|
|
result = this.source.next();
|
|
if (result.done) {
|
|
throw new TypeError("Reduce of empty Iterator with no initial value");
|
|
}
|
|
accumulator = result.value;
|
|
}
|
|
while (true) {
|
|
result = this.source.next();
|
|
if (result.done) {
|
|
break;
|
|
}
|
|
accumulator = iteratee(accumulator, result.value);
|
|
}
|
|
return accumulator;
|
|
}
|
|
find(predicate) {
|
|
let result;
|
|
while (true) {
|
|
result = this.source.next();
|
|
if (result.done) {
|
|
return void 0;
|
|
}
|
|
if (predicate(result.value)) {
|
|
return result.value;
|
|
}
|
|
}
|
|
}
|
|
/**
|
|
* Iterates and checks if `value` is emitted by the Iterator
|
|
*
|
|
* @param value The value to search
|
|
*/
|
|
includes(value) {
|
|
let result;
|
|
do {
|
|
result = this.source.next();
|
|
if (!result.done && result.value === value) {
|
|
return true;
|
|
}
|
|
} while (!result.done);
|
|
return false;
|
|
}
|
|
/**
|
|
* Iterates and checks if `predicate` returns truthy for any element emitted by the Iterator
|
|
*/
|
|
some(predicate) {
|
|
let result;
|
|
do {
|
|
result = this.source.next();
|
|
if (!result.done && predicate(result.value)) {
|
|
return true;
|
|
}
|
|
} while (!result.done);
|
|
return false;
|
|
}
|
|
/**
|
|
* Iterates and checks if `predicate` returns truthy for all elements emitted by the Iterator
|
|
*/
|
|
every(predicate) {
|
|
let result;
|
|
do {
|
|
result = this.source.next();
|
|
if (!result.done && !predicate(result.value)) {
|
|
return false;
|
|
}
|
|
} while (!result.done);
|
|
return true;
|
|
}
|
|
/**
|
|
* Iterates and invokes `iteratee` for every element emitted by the Iterator
|
|
*/
|
|
forEach(iteratee) {
|
|
let result;
|
|
while (true) {
|
|
result = this.source.next();
|
|
if (result.done) {
|
|
break;
|
|
}
|
|
iteratee(result.value);
|
|
}
|
|
}
|
|
/**
|
|
* Iterates and joins all elements emitted by the Iterator together as a string separated by an optional separator
|
|
*/
|
|
join(separator = ",") {
|
|
let joined = "";
|
|
let result;
|
|
while (true) {
|
|
result = this.source.next();
|
|
if (result.done) {
|
|
break;
|
|
}
|
|
joined += separator + result.value;
|
|
}
|
|
return joined.substr(separator.length);
|
|
}
|
|
/**
|
|
* Iterates and returns all items emitted by the Iterator as an array.
|
|
* Equivalent to passing the Iterator to `Array.from()`
|
|
*/
|
|
toArray() {
|
|
return Array.from(this);
|
|
}
|
|
/**
|
|
* Iterates and returns all items emitted by the Iterator as an ES6 Set.
|
|
* Equivalent to passing the Iterator to `new Set()`
|
|
*/
|
|
toSet() {
|
|
const set = /* @__PURE__ */ new Set();
|
|
while (true) {
|
|
const { value, done } = this.next();
|
|
if (done) {
|
|
return set;
|
|
}
|
|
set.add(value);
|
|
}
|
|
}
|
|
/**
|
|
* Iterates and returns all `[key, value]` paris emitted by the Iterator as an ES6 Map.
|
|
* Equivalent to passing the Iterator to `new Map()`
|
|
*/
|
|
toMap() {
|
|
return new Map(this);
|
|
}
|
|
};
|
|
exports.IteratorWithOperators = IteratorWithOperators;
|
|
function iterate2(collection) {
|
|
return new IteratorWithOperators(utils_1.toIterator(collection));
|
|
}
|
|
__name(iterate2, "iterate");
|
|
exports.iterate = iterate2;
|
|
function zip(a, b) {
|
|
return new IteratorWithOperators(new zip_1.ZipIterator(utils_1.toIterator(a), utils_1.toIterator(b)));
|
|
}
|
|
__name(zip, "zip");
|
|
exports.zip = zip;
|
|
exports.default = iterate2;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/index.js
|
|
var require_lib = __commonJS({
|
|
"../../node_modules/.pnpm/iterare@1.2.1/node_modules/iterare/lib/index.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var iterate_1 = require_iterate();
|
|
exports.iterate = iterate_1.iterate;
|
|
exports.zip = iterate_1.zip;
|
|
exports.default = iterate_1.iterate;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/strip-proto-keys.util.js
|
|
import { types as types2 } from "util";
|
|
function stripProtoKeys(value) {
|
|
if (value == null || typeof value !== "object" || types2.isTypedArray(value)) {
|
|
return;
|
|
}
|
|
if (BUILT_IN_TYPES.some((type) => value instanceof type)) {
|
|
return;
|
|
}
|
|
if (Array.isArray(value)) {
|
|
for (const v of Object.values(value)) {
|
|
stripProtoKeys(v);
|
|
}
|
|
return;
|
|
}
|
|
delete value.__proto__;
|
|
delete value.prototype;
|
|
if (!BUILT_IN_TYPES.includes(value.constructor)) {
|
|
delete value.constructor;
|
|
}
|
|
for (const key in value) {
|
|
stripProtoKeys(value[key]);
|
|
}
|
|
}
|
|
var BUILT_IN_TYPES;
|
|
var init_strip_proto_keys_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/strip-proto-keys.util.js"() {
|
|
BUILT_IN_TYPES = [Date, RegExp, Error, Map, Set, WeakMap, WeakSet];
|
|
__name(stripProtoKeys, "stripProtoKeys");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/validation.pipe.js
|
|
var import_iterare, DEFAULT_MAX_ERROR_MESSAGES_LENGTH, OMITTED_ERRORS_MESSAGE, classValidator, classTransformer, ValidationPipe;
|
|
var init_validation_pipe = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/validation.pipe.js"() {
|
|
init_tslib_es6();
|
|
import_iterare = __toESM(require_lib(), 1);
|
|
init_core();
|
|
init_decorators();
|
|
init_http_status_enum();
|
|
init_http_error_by_code_util();
|
|
init_load_package_util();
|
|
init_shared_utils();
|
|
init_strip_proto_keys_util();
|
|
DEFAULT_MAX_ERROR_MESSAGES_LENGTH = 1e6;
|
|
OMITTED_ERRORS_MESSAGE = "Further validation errors were omitted";
|
|
classValidator = {};
|
|
classTransformer = {};
|
|
ValidationPipe = class ValidationPipe2 {
|
|
static {
|
|
__name(this, "ValidationPipe");
|
|
}
|
|
isTransformEnabled;
|
|
isDetailedOutputDisabled;
|
|
validatorOptions;
|
|
transformOptions;
|
|
errorHttpStatusCode;
|
|
expectedType;
|
|
exceptionFactory;
|
|
validateCustomDecorators;
|
|
errorFormat;
|
|
maxErrorMessagesLength;
|
|
constructor(options) {
|
|
options = options || {};
|
|
const { transform, disableErrorMessages, errorHttpStatusCode, expectedType, transformOptions, exceptionFactory, validatorPackage, transformerPackage, validateCustomDecorators, errorFormat, maxErrorMessagesLength, ...validatorOptions } = options;
|
|
this.validatorOptions = { forbidUnknownValues: false, ...validatorOptions };
|
|
this.isTransformEnabled = !!transform;
|
|
this.transformOptions = transformOptions;
|
|
this.isDetailedOutputDisabled = disableErrorMessages;
|
|
this.validateCustomDecorators = validateCustomDecorators || false;
|
|
this.errorHttpStatusCode = errorHttpStatusCode || HttpStatus.BAD_REQUEST;
|
|
this.expectedType = expectedType;
|
|
this.errorFormat = errorFormat || "list";
|
|
this.maxErrorMessagesLength = maxErrorMessagesLength ?? DEFAULT_MAX_ERROR_MESSAGES_LENGTH;
|
|
this.exceptionFactory = exceptionFactory || this.createExceptionFactory();
|
|
classValidator = this.loadValidator(validatorPackage);
|
|
classTransformer = this.loadTransformer(transformerPackage);
|
|
}
|
|
loadValidator(validatorPackage) {
|
|
return validatorPackage ?? loadPackage("class-validator", "ValidationPipe", () => import("class-validator"));
|
|
}
|
|
loadTransformer(transformerPackage) {
|
|
return transformerPackage ?? loadPackage("class-transformer", "ValidationPipe", () => import("class-transformer"));
|
|
}
|
|
async transform(value, metadata) {
|
|
if (this.expectedType) {
|
|
metadata = { ...metadata, metatype: this.expectedType };
|
|
}
|
|
const metatype = metadata.metatype;
|
|
if (!metatype || !this.toValidate(metadata)) {
|
|
return this.isTransformEnabled ? this.transformPrimitive(value, metadata) : value;
|
|
}
|
|
classValidator = await classValidator;
|
|
classTransformer = await classTransformer;
|
|
const originalValue = value;
|
|
value = this.toEmptyIfNil(value, metatype);
|
|
const isNil2 = value !== originalValue;
|
|
const isPrimitive = this.isPrimitive(value);
|
|
this.stripProtoKeys(value);
|
|
let entity = classTransformer.plainToInstance(metatype, value, this.transformOptions);
|
|
const originalEntity = entity;
|
|
const isCtorNotEqual = entity.constructor !== metatype;
|
|
if (isCtorNotEqual && !isPrimitive) {
|
|
entity.constructor = metatype;
|
|
} else if (isCtorNotEqual) {
|
|
entity = { constructor: metatype };
|
|
}
|
|
const errors = await this.validate(entity, {
|
|
...this.validatorOptions,
|
|
// The target of an error is the whole object it was found in, so an
|
|
// exception factory that sends the errors would repeat that object
|
|
// once per error.
|
|
validationError: {
|
|
target: false,
|
|
...this.validatorOptions.validationError
|
|
}
|
|
});
|
|
if (errors.length > 0) {
|
|
throw await this.exceptionFactory(errors);
|
|
}
|
|
if (isCtorNotEqual && (isPrimitive || Array.isArray(value)) && await this.hasValidationRules(metatype)) {
|
|
throw await this.exceptionFactory([
|
|
{
|
|
property: metadata.data || metadata.type,
|
|
constraints: { isObject: "Validation failed (object is expected)" },
|
|
children: []
|
|
}
|
|
]);
|
|
}
|
|
if (originalValue === void 0 && originalEntity === "") {
|
|
return originalValue;
|
|
}
|
|
if (isPrimitive) {
|
|
entity = originalEntity;
|
|
}
|
|
if (this.isTransformEnabled) {
|
|
return entity;
|
|
}
|
|
if (isNil2) {
|
|
return originalValue;
|
|
}
|
|
const shouldTransformToPlain = Object.keys(this.validatorOptions).length > 1;
|
|
return shouldTransformToPlain ? classTransformer.classToPlain(entity, this.transformOptions) : value;
|
|
}
|
|
createExceptionFactory() {
|
|
return (validationErrors = []) => {
|
|
if (this.isDetailedOutputDisabled) {
|
|
return new HttpErrorByCode[this.errorHttpStatusCode]();
|
|
}
|
|
const budget = {
|
|
remaining: this.maxErrorMessagesLength,
|
|
isExceeded: false
|
|
};
|
|
validationErrors = this.limitValidationErrors(validationErrors, budget);
|
|
if (this.errorFormat === "grouped") {
|
|
let errors2 = this.groupValidationErrors(validationErrors);
|
|
if (budget.isExceeded) {
|
|
errors2 = { ...errors2, "...": [OMITTED_ERRORS_MESSAGE] };
|
|
}
|
|
const { message: error, statusCode } = new HttpErrorByCode[this.errorHttpStatusCode]().getResponse();
|
|
return new HttpErrorByCode[this.errorHttpStatusCode]({
|
|
message: errors2,
|
|
error,
|
|
statusCode
|
|
});
|
|
}
|
|
let errors = this.flattenValidationErrors(validationErrors);
|
|
if (budget.isExceeded) {
|
|
errors = [...errors, OMITTED_ERRORS_MESSAGE];
|
|
}
|
|
return new HttpErrorByCode[this.errorHttpStatusCode](errors);
|
|
};
|
|
}
|
|
/**
|
|
* Leaves out the errors that come after the first "maxErrorMessagesLength"
|
|
* characters of messages. Each message counts with the path of its
|
|
* property, which is what makes the response to a deeply nested payload
|
|
* grow faster than the payload. The errors past the limit are not visited.
|
|
*/
|
|
limitValidationErrors(validationErrors, budget, parentPathLength = 0) {
|
|
const limited = [];
|
|
let isChanged = false;
|
|
for (const error of validationErrors) {
|
|
if (budget.remaining <= 0) {
|
|
budget.isExceeded = true;
|
|
return limited;
|
|
}
|
|
const pathLength = parentPathLength + String(error.property).length + 1;
|
|
for (const key in error.constraints) {
|
|
budget.remaining -= pathLength + String(error.constraints[key]).length;
|
|
}
|
|
const children = error.children && this.limitValidationErrors(error.children, budget, pathLength);
|
|
if (children === error.children) {
|
|
limited.push(error);
|
|
} else {
|
|
limited.push({ ...error, children });
|
|
isChanged = true;
|
|
}
|
|
}
|
|
return isChanged ? limited : validationErrors;
|
|
}
|
|
toValidate(metadata) {
|
|
const { metatype, type } = metadata;
|
|
if (type === "custom" && !this.validateCustomDecorators) {
|
|
return false;
|
|
}
|
|
const types3 = [String, Boolean, Number, Array, Object, Buffer, Date];
|
|
return !types3.some((t) => metatype === t) && !isNil(metatype);
|
|
}
|
|
transformPrimitive(value, metadata) {
|
|
if (!metadata.data) {
|
|
return value;
|
|
}
|
|
const { type, metatype } = metadata;
|
|
if (type !== "param" && type !== "query") {
|
|
return value;
|
|
}
|
|
if (metatype === Boolean) {
|
|
if (isUndefined(value)) {
|
|
return void 0;
|
|
}
|
|
return value === true || value === "true";
|
|
}
|
|
if (metatype === Number) {
|
|
if (isUndefined(value)) {
|
|
return void 0;
|
|
}
|
|
return +value;
|
|
}
|
|
if (metatype === String && !isUndefined(value)) {
|
|
return String(value);
|
|
}
|
|
return value;
|
|
}
|
|
toEmptyIfNil(value, metatype) {
|
|
if (!isNil(value)) {
|
|
return value;
|
|
}
|
|
if (typeof metatype === "function" || metatype && "prototype" in metatype && metatype.prototype?.constructor) {
|
|
return {};
|
|
}
|
|
return "";
|
|
}
|
|
isPrimitive(value) {
|
|
return ["number", "boolean", "string"].includes(typeof value);
|
|
}
|
|
stripProtoKeys(value) {
|
|
stripProtoKeys(value);
|
|
}
|
|
validate(object, validatorOptions) {
|
|
return classValidator.validate(object, validatorOptions);
|
|
}
|
|
async hasValidationRules(metatype) {
|
|
const errors = await this.validate({ constructor: metatype }, { ...this.validatorOptions, forbidUnknownValues: true });
|
|
return !errors.some((error) => error.constraints?.unknownValue);
|
|
}
|
|
flattenValidationErrors(validationErrors) {
|
|
return (0, import_iterare.iterate)(validationErrors).map((error) => this.mapChildrenToValidationErrors(error)).flatten().filter((item) => !!item.constraints).map((item) => Object.values(item.constraints)).flatten().toArray();
|
|
}
|
|
groupValidationErrors(validationErrors, parentPath, result = {}) {
|
|
for (const error of validationErrors) {
|
|
const path = parentPath ? `${parentPath}.${error.property}` : error.property;
|
|
if (error.constraints) {
|
|
result[path] = Object.values(error.constraints);
|
|
}
|
|
if (error.children && error.children.length) {
|
|
const nested = this.groupValidationErrors(error.children, path, result);
|
|
if (nested !== result) {
|
|
Object.assign(result, nested);
|
|
}
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
mapChildrenToValidationErrors(error, parentPath, validationErrors = []) {
|
|
const currentError = parentPath ? this.prependConstraintsWithParentProp(parentPath, error) : error;
|
|
if (!(error.children && error.children.length)) {
|
|
validationErrors.push(currentError);
|
|
return validationErrors;
|
|
}
|
|
if (error.constraints) {
|
|
validationErrors.push(currentError);
|
|
}
|
|
parentPath = parentPath ? `${parentPath}.${error.property}` : error.property;
|
|
for (const item of error.children) {
|
|
const nested = this.mapChildrenToValidationErrors(item, parentPath, validationErrors);
|
|
if (nested !== validationErrors) {
|
|
for (const nestedError of nested) {
|
|
validationErrors.push(nestedError);
|
|
}
|
|
}
|
|
}
|
|
return validationErrors;
|
|
}
|
|
prependConstraintsWithParentProp(parentPath, error) {
|
|
const constraints = {};
|
|
for (const key in error.constraints) {
|
|
constraints[key] = `${parentPath}.${error.constraints[key]}`;
|
|
}
|
|
return {
|
|
...error,
|
|
constraints
|
|
};
|
|
}
|
|
};
|
|
ValidationPipe = __decorate([
|
|
Injectable(),
|
|
__param(0, Optional()),
|
|
__metadata("design:paramtypes", [Object])
|
|
], ValidationPipe);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-array.pipe.js
|
|
var VALIDATION_ERROR_MESSAGE, DEFAULT_ARRAY_SEPARATOR, ParseArrayPipe;
|
|
var init_parse_array_pipe = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-array.pipe.js"() {
|
|
init_tslib_es6();
|
|
init_injectable_decorator();
|
|
init_optional_decorator();
|
|
init_http_status_enum();
|
|
init_http_error_by_code_util();
|
|
init_shared_utils();
|
|
init_validation_pipe();
|
|
VALIDATION_ERROR_MESSAGE = "Validation failed (parsable array expected)";
|
|
DEFAULT_ARRAY_SEPARATOR = ",";
|
|
ParseArrayPipe = class ParseArrayPipe2 {
|
|
static {
|
|
__name(this, "ParseArrayPipe");
|
|
}
|
|
options;
|
|
validationPipe;
|
|
exceptionFactory;
|
|
constructor(options = {}) {
|
|
this.options = options;
|
|
this.validationPipe = new ValidationPipe({
|
|
transform: true,
|
|
validateCustomDecorators: true,
|
|
...options
|
|
});
|
|
const { exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST } = options;
|
|
this.exceptionFactory = exceptionFactory || ((error) => new HttpErrorByCode[errorHttpStatusCode](error));
|
|
}
|
|
/**
|
|
* Method that accesses and performs optional transformation on argument for
|
|
* in-flight requests.
|
|
*
|
|
* @param value currently processed route argument
|
|
* @param metadata contains metadata about the currently processed route argument
|
|
*/
|
|
async transform(value, metadata) {
|
|
if (isNil(value) && !this.options.optional) {
|
|
throw this.exceptionFactory(VALIDATION_ERROR_MESSAGE);
|
|
} else if (isNil(value) && this.options.optional) {
|
|
return value;
|
|
}
|
|
if (!Array.isArray(value)) {
|
|
if (!isString(value)) {
|
|
throw this.exceptionFactory(VALIDATION_ERROR_MESSAGE);
|
|
} else {
|
|
try {
|
|
value = value.trim().split(this.options.separator || DEFAULT_ARRAY_SEPARATOR);
|
|
} catch {
|
|
throw this.exceptionFactory(VALIDATION_ERROR_MESSAGE);
|
|
}
|
|
}
|
|
}
|
|
if (this.options.items) {
|
|
const validationMetadata = {
|
|
metatype: this.options.items,
|
|
type: "query"
|
|
};
|
|
const isExpectedTypePrimitive = this.isExpectedTypePrimitive();
|
|
const toClassInstance = /* @__PURE__ */ __name((item, index) => {
|
|
if (this.options.items !== String && isString(item)) {
|
|
try {
|
|
item = JSON.parse(item);
|
|
} catch {
|
|
}
|
|
}
|
|
if (isExpectedTypePrimitive) {
|
|
return this.validatePrimitive(item, index);
|
|
}
|
|
return this.validationPipe.transform(item, validationMetadata);
|
|
}, "toClassInstance");
|
|
if (this.options.stopAtFirstError === false) {
|
|
const errors = [];
|
|
const targetArray = Array.from(value);
|
|
for (let i = 0; i < targetArray.length; i++) {
|
|
try {
|
|
targetArray[i] = await toClassInstance(targetArray[i]);
|
|
} catch (err) {
|
|
let message;
|
|
if (err.getResponse) {
|
|
const response = err.getResponse();
|
|
if (Array.isArray(response.message)) {
|
|
message = response.message.map((item) => `[${i}] ${item}`);
|
|
} else {
|
|
message = `[${i}] ${response.message}`;
|
|
}
|
|
} else {
|
|
message = err;
|
|
}
|
|
if (Array.isArray(message)) {
|
|
for (const item of message) {
|
|
errors.push(item);
|
|
}
|
|
} else {
|
|
errors.push(message);
|
|
}
|
|
}
|
|
}
|
|
if (errors.length > 0) {
|
|
throw this.exceptionFactory(errors);
|
|
}
|
|
return targetArray;
|
|
} else {
|
|
const targetArray = value;
|
|
const items = [];
|
|
for (let i = 0; i < targetArray.length; i++) {
|
|
items.push(i in targetArray ? await toClassInstance(targetArray[i], i) : void 0);
|
|
}
|
|
value = items;
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
isExpectedTypePrimitive() {
|
|
return [Boolean, Number, String].includes(this.options.items);
|
|
}
|
|
validatePrimitive(originalValue, index) {
|
|
if (this.options.items === Number) {
|
|
if (!this.isNumeric(originalValue)) {
|
|
throw this.exceptionFactory(`${isUndefined(index) ? "" : `[${index}] `}item must be a number`);
|
|
}
|
|
return Number(originalValue);
|
|
} else if (this.options.items === String) {
|
|
if (!isString(originalValue)) {
|
|
return `${originalValue}`;
|
|
}
|
|
} else if (this.options.items === Boolean) {
|
|
if (typeof originalValue !== "boolean") {
|
|
throw this.exceptionFactory(`${isUndefined(index) ? "" : `[${index}] `}item must be a boolean value`);
|
|
}
|
|
}
|
|
return originalValue;
|
|
}
|
|
isNumeric(value) {
|
|
if (typeof value === "number") {
|
|
return Number.isFinite(value);
|
|
}
|
|
if (typeof value !== "string" || value.trim() === "") {
|
|
return false;
|
|
}
|
|
if (/^0[box]/i.test(value.trim())) {
|
|
return false;
|
|
}
|
|
return Number.isFinite(Number(value));
|
|
}
|
|
};
|
|
ParseArrayPipe = __decorate([
|
|
Injectable(),
|
|
__param(0, Optional()),
|
|
__metadata("design:paramtypes", [Object])
|
|
], ParseArrayPipe);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-bool.pipe.js
|
|
var ParseBoolPipe;
|
|
var init_parse_bool_pipe = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-bool.pipe.js"() {
|
|
init_tslib_es6();
|
|
init_injectable_decorator();
|
|
init_optional_decorator();
|
|
init_http_status_enum();
|
|
init_http_error_by_code_util();
|
|
init_shared_utils();
|
|
ParseBoolPipe = class ParseBoolPipe2 {
|
|
static {
|
|
__name(this, "ParseBoolPipe");
|
|
}
|
|
options;
|
|
exceptionFactory;
|
|
constructor(options) {
|
|
this.options = options;
|
|
options = options || {};
|
|
const { exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST } = options;
|
|
this.exceptionFactory = exceptionFactory || ((error) => new HttpErrorByCode[errorHttpStatusCode](error));
|
|
}
|
|
/**
|
|
* Method that accesses and performs optional transformation on argument for
|
|
* in-flight requests.
|
|
*
|
|
* @param value currently processed route argument
|
|
* @param metadata contains metadata about the currently processed route argument
|
|
*/
|
|
async transform(value, metadata) {
|
|
if (isNil(value) && this.options?.optional) {
|
|
return value;
|
|
}
|
|
if (this.isTrue(value)) {
|
|
return true;
|
|
}
|
|
if (this.isFalse(value)) {
|
|
return false;
|
|
}
|
|
throw this.exceptionFactory("Validation failed (boolean string is expected)");
|
|
}
|
|
/**
|
|
* @param value currently processed route argument
|
|
* @returns `true` if `value` is said 'true', ie., if it is equal to the boolean
|
|
* `true` or the string `"true"`
|
|
*/
|
|
isTrue(value) {
|
|
return value === true || value === "true";
|
|
}
|
|
/**
|
|
* @param value currently processed route argument
|
|
* @returns `true` if `value` is said 'false', ie., if it is equal to the boolean
|
|
* `false` or the string `"false"`
|
|
*/
|
|
isFalse(value) {
|
|
return value === false || value === "false";
|
|
}
|
|
};
|
|
ParseBoolPipe = __decorate([
|
|
Injectable(),
|
|
__param(0, Optional()),
|
|
__metadata("design:paramtypes", [Object])
|
|
], ParseBoolPipe);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-date.pipe.js
|
|
var ParseDatePipe;
|
|
var init_parse_date_pipe = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-date.pipe.js"() {
|
|
init_tslib_es6();
|
|
init_injectable_decorator();
|
|
init_optional_decorator();
|
|
init_http_status_enum();
|
|
init_http_error_by_code_util();
|
|
init_shared_utils();
|
|
ParseDatePipe = class ParseDatePipe2 {
|
|
static {
|
|
__name(this, "ParseDatePipe");
|
|
}
|
|
options;
|
|
exceptionFactory;
|
|
constructor(options = {}) {
|
|
this.options = options;
|
|
const { exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST } = options;
|
|
this.exceptionFactory = exceptionFactory || ((error) => new HttpErrorByCode[errorHttpStatusCode](error));
|
|
}
|
|
/**
|
|
* Method that accesses and performs optional transformation on argument for
|
|
* in-flight requests.
|
|
*
|
|
* @param value currently processed route argument
|
|
* @param metadata contains metadata about the currently processed route argument
|
|
*/
|
|
transform(value) {
|
|
if (isNil(value)) {
|
|
if (this.options.default) {
|
|
return this.options.default();
|
|
}
|
|
if (this.options.optional) {
|
|
return value;
|
|
}
|
|
}
|
|
if (isNil(value) || value === "") {
|
|
throw this.exceptionFactory("Validation failed (no Date provided)");
|
|
}
|
|
const transformedValue = isString(value) || isNumber(value) || value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(NaN);
|
|
if (isNaN(transformedValue.getTime())) {
|
|
throw this.exceptionFactory("Validation failed (invalid date format)");
|
|
}
|
|
return transformedValue;
|
|
}
|
|
};
|
|
ParseDatePipe = __decorate([
|
|
Injectable(),
|
|
__param(0, Optional()),
|
|
__metadata("design:paramtypes", [Object])
|
|
], ParseDatePipe);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-enum.pipe.js
|
|
var ParseEnumPipe;
|
|
var init_parse_enum_pipe = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-enum.pipe.js"() {
|
|
init_tslib_es6();
|
|
init_core();
|
|
init_common();
|
|
init_http_error_by_code_util();
|
|
init_shared_utils();
|
|
ParseEnumPipe = class ParseEnumPipe2 {
|
|
static {
|
|
__name(this, "ParseEnumPipe");
|
|
}
|
|
enumType;
|
|
options;
|
|
exceptionFactory;
|
|
cachedEnumValues;
|
|
constructor(enumType, options) {
|
|
this.enumType = enumType;
|
|
this.options = options;
|
|
if (!enumType) {
|
|
throw new Error(`"ParseEnumPipe" requires "enumType" argument specified (to validate input values).`);
|
|
}
|
|
options = options || {};
|
|
const { exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST } = options;
|
|
this.exceptionFactory = exceptionFactory || ((error) => new HttpErrorByCode[errorHttpStatusCode](error));
|
|
}
|
|
/**
|
|
* Method that accesses and performs optional transformation on argument for
|
|
* in-flight requests.
|
|
*
|
|
* @param value currently processed route argument
|
|
* @param metadata contains metadata about the currently processed route argument
|
|
*/
|
|
async transform(value, metadata) {
|
|
if (isNil(value) && this.options?.optional) {
|
|
return value;
|
|
}
|
|
if (!this.isEnum(value)) {
|
|
throw this.exceptionFactory("Validation failed (enum string is expected)");
|
|
}
|
|
return this.toEnumValue(value) ?? value;
|
|
}
|
|
isEnum(value) {
|
|
return this.toEnumValue(value) !== void 0;
|
|
}
|
|
/**
|
|
* Returns the enum member that `value` refers to, or `undefined` if there is none.
|
|
* Numeric members also match their string representation (e.g. `'1'` for `1`),
|
|
* since HTTP route and query params always arrive as strings.
|
|
*/
|
|
toEnumValue(value) {
|
|
return this.getEnumValues().find((enumValue) => enumValue === value || typeof enumValue === "number" && typeof value === "string" && String(enumValue) === value);
|
|
}
|
|
getEnumValues() {
|
|
return this.cachedEnumValues ??= this.computeEnumValues();
|
|
}
|
|
computeEnumValues() {
|
|
return Object.keys(this.enumType).filter((key) => {
|
|
const enumValue = this.enumType[key];
|
|
return !(typeof enumValue === "string" && typeof this.enumType[enumValue] === "number" && String(this.enumType[enumValue]) === key);
|
|
}).map((key) => this.enumType[key]);
|
|
}
|
|
};
|
|
ParseEnumPipe = __decorate([
|
|
Injectable(),
|
|
__param(1, Optional()),
|
|
__metadata("design:paramtypes", [Object, Object])
|
|
], ParseEnumPipe);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-float.pipe.js
|
|
var ParseFloatPipe;
|
|
var init_parse_float_pipe = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-float.pipe.js"() {
|
|
init_tslib_es6();
|
|
init_core();
|
|
init_common();
|
|
init_http_error_by_code_util();
|
|
init_shared_utils();
|
|
ParseFloatPipe = class ParseFloatPipe2 {
|
|
static {
|
|
__name(this, "ParseFloatPipe");
|
|
}
|
|
options;
|
|
exceptionFactory;
|
|
constructor(options) {
|
|
this.options = options;
|
|
options = options || {};
|
|
const { exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST } = options;
|
|
this.exceptionFactory = exceptionFactory || ((error) => new HttpErrorByCode[errorHttpStatusCode](error));
|
|
}
|
|
/**
|
|
* Method that accesses and performs optional transformation on argument for
|
|
* in-flight requests.
|
|
*
|
|
* @param value currently processed route argument
|
|
* @param metadata contains metadata about the currently processed route argument
|
|
*/
|
|
async transform(value, metadata) {
|
|
if (isNil(value) && this.options?.optional) {
|
|
return value;
|
|
}
|
|
if (!this.isNumeric(value)) {
|
|
throw this.exceptionFactory("Validation failed (numeric string is expected)");
|
|
}
|
|
return parseFloat(String(value));
|
|
}
|
|
/**
|
|
* @param value currently processed route argument
|
|
* @returns `true` if `value` is a valid float number
|
|
*/
|
|
isNumeric(value) {
|
|
if (typeof value === "number")
|
|
return Number.isFinite(value);
|
|
if (typeof value !== "string" || value === "" || value !== value.trim()) {
|
|
return false;
|
|
}
|
|
if (value.startsWith("0x") || value.startsWith("0X") || value.startsWith("0b") || value.startsWith("0B") || value.startsWith("0o") || value.startsWith("0O")) {
|
|
return false;
|
|
}
|
|
return Number.isFinite(Number(value));
|
|
}
|
|
};
|
|
ParseFloatPipe = __decorate([
|
|
Injectable(),
|
|
__param(0, Optional()),
|
|
__metadata("design:paramtypes", [Object])
|
|
], ParseFloatPipe);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-int.pipe.js
|
|
var ParseIntPipe;
|
|
var init_parse_int_pipe = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-int.pipe.js"() {
|
|
init_tslib_es6();
|
|
init_injectable_decorator();
|
|
init_optional_decorator();
|
|
init_http_status_enum();
|
|
init_http_error_by_code_util();
|
|
init_shared_utils();
|
|
ParseIntPipe = class ParseIntPipe2 {
|
|
static {
|
|
__name(this, "ParseIntPipe");
|
|
}
|
|
options;
|
|
exceptionFactory;
|
|
constructor(options) {
|
|
this.options = options;
|
|
options = options || {};
|
|
const { exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST } = options;
|
|
this.exceptionFactory = exceptionFactory || ((error) => new HttpErrorByCode[errorHttpStatusCode](error));
|
|
}
|
|
/**
|
|
* Method that accesses and performs optional transformation on argument for
|
|
* in-flight requests.
|
|
*
|
|
* @param value currently processed route argument
|
|
* @param metadata contains metadata about the currently processed route argument
|
|
*/
|
|
async transform(value, metadata) {
|
|
if (isNil(value) && this.options?.optional) {
|
|
return value;
|
|
}
|
|
if (!this.isNumeric(value)) {
|
|
throw this.exceptionFactory("Validation failed (numeric string is expected)");
|
|
}
|
|
return parseInt(String(value), 10);
|
|
}
|
|
/**
|
|
* @param value currently processed route argument
|
|
* @returns `true` if `value` is a valid integer number
|
|
*/
|
|
isNumeric(value) {
|
|
return ["string", "number"].includes(typeof value) && /^-?\d+$/.test(String(value)) && isFinite(value);
|
|
}
|
|
};
|
|
ParseIntPipe = __decorate([
|
|
Injectable(),
|
|
__param(0, Optional()),
|
|
__metadata("design:paramtypes", [Object])
|
|
], ParseIntPipe);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-uuid.pipe.js
|
|
var ParseUUIDPipe_1, ParseUUIDPipe;
|
|
var init_parse_uuid_pipe = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/parse-uuid.pipe.js"() {
|
|
init_tslib_es6();
|
|
init_injectable_decorator();
|
|
init_optional_decorator();
|
|
init_http_status_enum();
|
|
init_http_error_by_code_util();
|
|
init_shared_utils();
|
|
ParseUUIDPipe = class ParseUUIDPipe2 {
|
|
static {
|
|
__name(this, "ParseUUIDPipe");
|
|
}
|
|
static {
|
|
ParseUUIDPipe_1 = this;
|
|
}
|
|
options;
|
|
static uuidRegExps = {
|
|
1: /^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
|
|
2: /^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
|
|
3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
|
|
4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
|
|
5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
|
|
6: /^[0-9A-F]{8}-[0-9A-F]{4}-6[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
|
|
7: /^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
|
|
8: /^[0-9A-F]{8}-[0-9A-F]{4}-8[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
|
|
// Versions 1-8 with the RFC variant, or the Nil and Max UUIDs (RFC 9562, sections 5.9, 5.10)
|
|
all: /^(?:[0-9A-F]{8}-[0-9A-F]{4}-[1-8][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}|00000000-0000-0000-0000-000000000000|FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF)$/i
|
|
};
|
|
version;
|
|
exceptionFactory;
|
|
constructor(options) {
|
|
this.options = options;
|
|
options = options || {};
|
|
const { exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST, version } = options;
|
|
this.version = version;
|
|
this.exceptionFactory = exceptionFactory || ((error) => new HttpErrorByCode[errorHttpStatusCode](error));
|
|
}
|
|
async transform(value, metadata) {
|
|
if (isNil(value) && this.options?.optional) {
|
|
return value;
|
|
}
|
|
if (!this.isUUID(value, this.version)) {
|
|
throw this.exceptionFactory(`Validation failed (uuid${this.version && this.version !== "all" ? ` v ${this.version}` : ""} is expected)`);
|
|
}
|
|
return value;
|
|
}
|
|
isUUID(str, version = "all") {
|
|
if (!isString(str)) {
|
|
throw this.exceptionFactory("The value passed as UUID is not a string");
|
|
}
|
|
const pattern = ParseUUIDPipe_1.uuidRegExps[version];
|
|
return pattern?.test(str);
|
|
}
|
|
};
|
|
ParseUUIDPipe = ParseUUIDPipe_1 = __decorate([
|
|
Injectable(),
|
|
__param(0, Optional()),
|
|
__metadata("design:paramtypes", [Object])
|
|
], ParseUUIDPipe);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/standard-schema-validation.pipe.js
|
|
var StandardSchemaValidationPipe;
|
|
var init_standard_schema_validation_pipe = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/standard-schema-validation.pipe.js"() {
|
|
init_tslib_es6();
|
|
init_injectable_decorator();
|
|
init_optional_decorator();
|
|
init_http_status_enum();
|
|
init_http_error_by_code_util();
|
|
init_shared_utils();
|
|
init_strip_proto_keys_util();
|
|
StandardSchemaValidationPipe = class StandardSchemaValidationPipe2 {
|
|
static {
|
|
__name(this, "StandardSchemaValidationPipe");
|
|
}
|
|
options;
|
|
isTransformEnabled;
|
|
validateCustomDecorators;
|
|
validateOptions;
|
|
exceptionFactory;
|
|
constructor(options) {
|
|
this.options = options;
|
|
const { transform = true, validateCustomDecorators = false, validateOptions, exceptionFactory, errorHttpStatusCode = HttpStatus.BAD_REQUEST } = options || {};
|
|
this.isTransformEnabled = transform;
|
|
this.validateCustomDecorators = validateCustomDecorators;
|
|
this.validateOptions = validateOptions;
|
|
this.exceptionFactory = exceptionFactory || ((issues) => {
|
|
const messages = this.formatIssueMessages(issues);
|
|
return new HttpErrorByCode[errorHttpStatusCode](messages);
|
|
});
|
|
}
|
|
/**
|
|
* Formats Standard Schema validation issues into a flat list of error messages.
|
|
* When an issue includes a path, the path is prefixed to the message.
|
|
*/
|
|
formatIssueMessages(issues) {
|
|
return issues.map((issue) => {
|
|
if (issue.path?.length) {
|
|
const stringPath = issue.path.map((segment) => String(isObject(segment) ? segment.key : segment)).join(".");
|
|
return `${stringPath}: ${issue.message}`;
|
|
}
|
|
return issue.message;
|
|
});
|
|
}
|
|
/**
|
|
* Method that validates the incoming value against the standard schema
|
|
* provided in the parameter metadata.
|
|
*
|
|
* @param value currently processed route argument
|
|
* @param metadata contains metadata about the currently processed route argument
|
|
*/
|
|
async transform(value, metadata) {
|
|
const schema = metadata.schema;
|
|
if (!schema || !this.toValidate(metadata)) {
|
|
return value;
|
|
}
|
|
this.stripProtoKeys(value);
|
|
const result = await this.validate(value, schema, this.validateOptions);
|
|
if (result.issues) {
|
|
throw this.exceptionFactory(result.issues);
|
|
}
|
|
return this.isTransformEnabled ? result.value : value;
|
|
}
|
|
/**
|
|
* Determines whether validation should be performed for the given metadata.
|
|
* Skips validation for custom decorators unless `validateCustomDecorators` is enabled.
|
|
*
|
|
* @param metadata contains metadata about the currently processed route argument
|
|
* @returns `true` if validation should be performed
|
|
*/
|
|
toValidate(metadata) {
|
|
const { type } = metadata;
|
|
if (type === "custom" && !this.validateCustomDecorators) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
/**
|
|
* Validates a value against a standard schema.
|
|
* Can be overridden to customize validation behavior.
|
|
*
|
|
* @param value The value to validate
|
|
* @param schema The standard schema to validate against
|
|
* @param options Optional options forwarded to the schema's validate method
|
|
* @returns The validation result
|
|
*/
|
|
validate(value, schema, options) {
|
|
return schema["~standard"].validate(value, options);
|
|
}
|
|
stripProtoKeys(value) {
|
|
stripProtoKeys(value);
|
|
}
|
|
};
|
|
StandardSchemaValidationPipe = __decorate([
|
|
Injectable(),
|
|
__param(0, Optional()),
|
|
__metadata("design:paramtypes", [Object])
|
|
], StandardSchemaValidationPipe);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/index.js
|
|
var init_pipes = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/pipes/index.js"() {
|
|
init_default_value_pipe();
|
|
init_file();
|
|
init_parse_array_pipe();
|
|
init_parse_bool_pipe();
|
|
init_parse_date_pipe();
|
|
init_parse_enum_pipe();
|
|
init_parse_float_pipe();
|
|
init_parse_int_pipe();
|
|
init_parse_uuid_pipe();
|
|
init_standard_schema_validation_pipe();
|
|
init_validation_pipe();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isFunction.js
|
|
var require_isFunction = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isFunction.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isFunction = void 0;
|
|
function isFunction2(value) {
|
|
return typeof value === "function";
|
|
}
|
|
__name(isFunction2, "isFunction");
|
|
exports.isFunction = isFunction2;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/lift.js
|
|
var require_lift = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/lift.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.operate = exports.hasLift = void 0;
|
|
var isFunction_1 = require_isFunction();
|
|
function hasLift(source) {
|
|
return isFunction_1.isFunction(source === null || source === void 0 ? void 0 : source.lift);
|
|
}
|
|
__name(hasLift, "hasLift");
|
|
exports.hasLift = hasLift;
|
|
function operate(init) {
|
|
return function(source) {
|
|
if (hasLift(source)) {
|
|
return source.lift(function(liftedSource) {
|
|
try {
|
|
return init(liftedSource, this);
|
|
} catch (err) {
|
|
this.error(err);
|
|
}
|
|
});
|
|
}
|
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
};
|
|
}
|
|
__name(operate, "operate");
|
|
exports.operate = operate;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js
|
|
var require_isArrayLike = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isArrayLike = void 0;
|
|
exports.isArrayLike = (function(x) {
|
|
return x && typeof x.length === "number" && typeof x !== "function";
|
|
});
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isPromise.js
|
|
var require_isPromise = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isPromise.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isPromise = void 0;
|
|
var isFunction_1 = require_isFunction();
|
|
function isPromise(value) {
|
|
return isFunction_1.isFunction(value === null || value === void 0 ? void 0 : value.then);
|
|
}
|
|
__name(isPromise, "isPromise");
|
|
exports.isPromise = isPromise;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js
|
|
var require_createErrorClass = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.createErrorClass = void 0;
|
|
function createErrorClass(createImpl) {
|
|
var _super = /* @__PURE__ */ __name(function(instance) {
|
|
Error.call(instance);
|
|
instance.stack = new Error().stack;
|
|
}, "_super");
|
|
var ctorFunc = createImpl(_super);
|
|
ctorFunc.prototype = Object.create(Error.prototype);
|
|
ctorFunc.prototype.constructor = ctorFunc;
|
|
return ctorFunc;
|
|
}
|
|
__name(createErrorClass, "createErrorClass");
|
|
exports.createErrorClass = createErrorClass;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js
|
|
var require_UnsubscriptionError = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.UnsubscriptionError = void 0;
|
|
var createErrorClass_1 = require_createErrorClass();
|
|
exports.UnsubscriptionError = createErrorClass_1.createErrorClass(function(_super) {
|
|
return /* @__PURE__ */ __name(function UnsubscriptionErrorImpl(errors) {
|
|
_super(this);
|
|
this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function(err, i) {
|
|
return i + 1 + ") " + err.toString();
|
|
}).join("\n ") : "";
|
|
this.name = "UnsubscriptionError";
|
|
this.errors = errors;
|
|
}, "UnsubscriptionErrorImpl");
|
|
});
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js
|
|
var require_arrRemove = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.arrRemove = void 0;
|
|
function arrRemove(arr, item) {
|
|
if (arr) {
|
|
var index = arr.indexOf(item);
|
|
0 <= index && arr.splice(index, 1);
|
|
}
|
|
}
|
|
__name(arrRemove, "arrRemove");
|
|
exports.arrRemove = arrRemove;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/Subscription.js
|
|
var require_Subscription = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/Subscription.js"(exports) {
|
|
"use strict";
|
|
var __values = exports && exports.__values || function(o) {
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
if (m) return m.call(o);
|
|
if (o && typeof o.length === "number") return {
|
|
next: /* @__PURE__ */ __name(function() {
|
|
if (o && i >= o.length) o = void 0;
|
|
return { value: o && o[i++], done: !o };
|
|
}, "next")
|
|
};
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
};
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isSubscription = exports.EMPTY_SUBSCRIPTION = exports.Subscription = void 0;
|
|
var isFunction_1 = require_isFunction();
|
|
var UnsubscriptionError_1 = require_UnsubscriptionError();
|
|
var arrRemove_1 = require_arrRemove();
|
|
var Subscription = (function() {
|
|
function Subscription2(initialTeardown) {
|
|
this.initialTeardown = initialTeardown;
|
|
this.closed = false;
|
|
this._parentage = null;
|
|
this._finalizers = null;
|
|
}
|
|
__name(Subscription2, "Subscription");
|
|
Subscription2.prototype.unsubscribe = function() {
|
|
var e_1, _a, e_2, _b;
|
|
var errors;
|
|
if (!this.closed) {
|
|
this.closed = true;
|
|
var _parentage = this._parentage;
|
|
if (_parentage) {
|
|
this._parentage = null;
|
|
if (Array.isArray(_parentage)) {
|
|
try {
|
|
for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
|
|
var parent_1 = _parentage_1_1.value;
|
|
parent_1.remove(this);
|
|
}
|
|
} catch (e_1_1) {
|
|
e_1 = { error: e_1_1 };
|
|
} finally {
|
|
try {
|
|
if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1);
|
|
} finally {
|
|
if (e_1) throw e_1.error;
|
|
}
|
|
}
|
|
} else {
|
|
_parentage.remove(this);
|
|
}
|
|
}
|
|
var initialFinalizer = this.initialTeardown;
|
|
if (isFunction_1.isFunction(initialFinalizer)) {
|
|
try {
|
|
initialFinalizer();
|
|
} catch (e) {
|
|
errors = e instanceof UnsubscriptionError_1.UnsubscriptionError ? e.errors : [e];
|
|
}
|
|
}
|
|
var _finalizers = this._finalizers;
|
|
if (_finalizers) {
|
|
this._finalizers = null;
|
|
try {
|
|
for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
|
|
var finalizer = _finalizers_1_1.value;
|
|
try {
|
|
execFinalizer(finalizer);
|
|
} catch (err) {
|
|
errors = errors !== null && errors !== void 0 ? errors : [];
|
|
if (err instanceof UnsubscriptionError_1.UnsubscriptionError) {
|
|
errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));
|
|
} else {
|
|
errors.push(err);
|
|
}
|
|
}
|
|
}
|
|
} catch (e_2_1) {
|
|
e_2 = { error: e_2_1 };
|
|
} finally {
|
|
try {
|
|
if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1);
|
|
} finally {
|
|
if (e_2) throw e_2.error;
|
|
}
|
|
}
|
|
}
|
|
if (errors) {
|
|
throw new UnsubscriptionError_1.UnsubscriptionError(errors);
|
|
}
|
|
}
|
|
};
|
|
Subscription2.prototype.add = function(teardown) {
|
|
var _a;
|
|
if (teardown && teardown !== this) {
|
|
if (this.closed) {
|
|
execFinalizer(teardown);
|
|
} else {
|
|
if (teardown instanceof Subscription2) {
|
|
if (teardown.closed || teardown._hasParent(this)) {
|
|
return;
|
|
}
|
|
teardown._addParent(this);
|
|
}
|
|
(this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
|
|
}
|
|
}
|
|
};
|
|
Subscription2.prototype._hasParent = function(parent) {
|
|
var _parentage = this._parentage;
|
|
return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);
|
|
};
|
|
Subscription2.prototype._addParent = function(parent) {
|
|
var _parentage = this._parentage;
|
|
this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
|
|
};
|
|
Subscription2.prototype._removeParent = function(parent) {
|
|
var _parentage = this._parentage;
|
|
if (_parentage === parent) {
|
|
this._parentage = null;
|
|
} else if (Array.isArray(_parentage)) {
|
|
arrRemove_1.arrRemove(_parentage, parent);
|
|
}
|
|
};
|
|
Subscription2.prototype.remove = function(teardown) {
|
|
var _finalizers = this._finalizers;
|
|
_finalizers && arrRemove_1.arrRemove(_finalizers, teardown);
|
|
if (teardown instanceof Subscription2) {
|
|
teardown._removeParent(this);
|
|
}
|
|
};
|
|
Subscription2.EMPTY = (function() {
|
|
var empty = new Subscription2();
|
|
empty.closed = true;
|
|
return empty;
|
|
})();
|
|
return Subscription2;
|
|
})();
|
|
exports.Subscription = Subscription;
|
|
exports.EMPTY_SUBSCRIPTION = Subscription.EMPTY;
|
|
function isSubscription(value) {
|
|
return value instanceof Subscription || value && "closed" in value && isFunction_1.isFunction(value.remove) && isFunction_1.isFunction(value.add) && isFunction_1.isFunction(value.unsubscribe);
|
|
}
|
|
__name(isSubscription, "isSubscription");
|
|
exports.isSubscription = isSubscription;
|
|
function execFinalizer(finalizer) {
|
|
if (isFunction_1.isFunction(finalizer)) {
|
|
finalizer();
|
|
} else {
|
|
finalizer.unsubscribe();
|
|
}
|
|
}
|
|
__name(execFinalizer, "execFinalizer");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/config.js
|
|
var require_config = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/config.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.config = void 0;
|
|
exports.config = {
|
|
onUnhandledError: null,
|
|
onStoppedNotification: null,
|
|
Promise: void 0,
|
|
useDeprecatedSynchronousErrorHandling: false,
|
|
useDeprecatedNextContext: false
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js
|
|
var require_timeoutProvider = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.timeoutProvider = void 0;
|
|
exports.timeoutProvider = {
|
|
setTimeout: /* @__PURE__ */ __name(function(handler, timeout) {
|
|
var args = [];
|
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
args[_i - 2] = arguments[_i];
|
|
}
|
|
var delegate = exports.timeoutProvider.delegate;
|
|
if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
|
|
return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args)));
|
|
}
|
|
return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));
|
|
}, "setTimeout"),
|
|
clearTimeout: /* @__PURE__ */ __name(function(handle) {
|
|
var delegate = exports.timeoutProvider.delegate;
|
|
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
|
|
}, "clearTimeout"),
|
|
delegate: void 0
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js
|
|
var require_reportUnhandledError = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.reportUnhandledError = void 0;
|
|
var config_1 = require_config();
|
|
var timeoutProvider_1 = require_timeoutProvider();
|
|
function reportUnhandledError(err) {
|
|
timeoutProvider_1.timeoutProvider.setTimeout(function() {
|
|
var onUnhandledError = config_1.config.onUnhandledError;
|
|
if (onUnhandledError) {
|
|
onUnhandledError(err);
|
|
} else {
|
|
throw err;
|
|
}
|
|
});
|
|
}
|
|
__name(reportUnhandledError, "reportUnhandledError");
|
|
exports.reportUnhandledError = reportUnhandledError;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/noop.js
|
|
var require_noop = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/noop.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.noop = void 0;
|
|
function noop() {
|
|
}
|
|
__name(noop, "noop");
|
|
exports.noop = noop;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/NotificationFactories.js
|
|
var require_NotificationFactories = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/NotificationFactories.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.createNotification = exports.nextNotification = exports.errorNotification = exports.COMPLETE_NOTIFICATION = void 0;
|
|
exports.COMPLETE_NOTIFICATION = (function() {
|
|
return createNotification("C", void 0, void 0);
|
|
})();
|
|
function errorNotification(error) {
|
|
return createNotification("E", void 0, error);
|
|
}
|
|
__name(errorNotification, "errorNotification");
|
|
exports.errorNotification = errorNotification;
|
|
function nextNotification(value) {
|
|
return createNotification("N", value, void 0);
|
|
}
|
|
__name(nextNotification, "nextNotification");
|
|
exports.nextNotification = nextNotification;
|
|
function createNotification(kind, value, error) {
|
|
return {
|
|
kind,
|
|
value,
|
|
error
|
|
};
|
|
}
|
|
__name(createNotification, "createNotification");
|
|
exports.createNotification = createNotification;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/errorContext.js
|
|
var require_errorContext = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/errorContext.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.captureError = exports.errorContext = void 0;
|
|
var config_1 = require_config();
|
|
var context = null;
|
|
function errorContext(cb) {
|
|
if (config_1.config.useDeprecatedSynchronousErrorHandling) {
|
|
var isRoot = !context;
|
|
if (isRoot) {
|
|
context = { errorThrown: false, error: null };
|
|
}
|
|
cb();
|
|
if (isRoot) {
|
|
var _a = context, errorThrown = _a.errorThrown, error = _a.error;
|
|
context = null;
|
|
if (errorThrown) {
|
|
throw error;
|
|
}
|
|
}
|
|
} else {
|
|
cb();
|
|
}
|
|
}
|
|
__name(errorContext, "errorContext");
|
|
exports.errorContext = errorContext;
|
|
function captureError(err) {
|
|
if (config_1.config.useDeprecatedSynchronousErrorHandling && context) {
|
|
context.errorThrown = true;
|
|
context.error = err;
|
|
}
|
|
}
|
|
__name(captureError, "captureError");
|
|
exports.captureError = captureError;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/Subscriber.js
|
|
var require_Subscriber = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/Subscriber.js"(exports) {
|
|
"use strict";
|
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
var extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
d2.__proto__ = b2;
|
|
} || function(d2, b2) {
|
|
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
};
|
|
return extendStatics(d, b);
|
|
}, "extendStatics");
|
|
return function(d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() {
|
|
this.constructor = d;
|
|
}
|
|
__name(__, "__");
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.EMPTY_OBSERVER = exports.SafeSubscriber = exports.Subscriber = void 0;
|
|
var isFunction_1 = require_isFunction();
|
|
var Subscription_1 = require_Subscription();
|
|
var config_1 = require_config();
|
|
var reportUnhandledError_1 = require_reportUnhandledError();
|
|
var noop_1 = require_noop();
|
|
var NotificationFactories_1 = require_NotificationFactories();
|
|
var timeoutProvider_1 = require_timeoutProvider();
|
|
var errorContext_1 = require_errorContext();
|
|
var Subscriber = (function(_super) {
|
|
__extends(Subscriber2, _super);
|
|
function Subscriber2(destination) {
|
|
var _this = _super.call(this) || this;
|
|
_this.isStopped = false;
|
|
if (destination) {
|
|
_this.destination = destination;
|
|
if (Subscription_1.isSubscription(destination)) {
|
|
destination.add(_this);
|
|
}
|
|
} else {
|
|
_this.destination = exports.EMPTY_OBSERVER;
|
|
}
|
|
return _this;
|
|
}
|
|
__name(Subscriber2, "Subscriber");
|
|
Subscriber2.create = function(next, error, complete) {
|
|
return new SafeSubscriber(next, error, complete);
|
|
};
|
|
Subscriber2.prototype.next = function(value) {
|
|
if (this.isStopped) {
|
|
handleStoppedNotification(NotificationFactories_1.nextNotification(value), this);
|
|
} else {
|
|
this._next(value);
|
|
}
|
|
};
|
|
Subscriber2.prototype.error = function(err) {
|
|
if (this.isStopped) {
|
|
handleStoppedNotification(NotificationFactories_1.errorNotification(err), this);
|
|
} else {
|
|
this.isStopped = true;
|
|
this._error(err);
|
|
}
|
|
};
|
|
Subscriber2.prototype.complete = function() {
|
|
if (this.isStopped) {
|
|
handleStoppedNotification(NotificationFactories_1.COMPLETE_NOTIFICATION, this);
|
|
} else {
|
|
this.isStopped = true;
|
|
this._complete();
|
|
}
|
|
};
|
|
Subscriber2.prototype.unsubscribe = function() {
|
|
if (!this.closed) {
|
|
this.isStopped = true;
|
|
_super.prototype.unsubscribe.call(this);
|
|
this.destination = null;
|
|
}
|
|
};
|
|
Subscriber2.prototype._next = function(value) {
|
|
this.destination.next(value);
|
|
};
|
|
Subscriber2.prototype._error = function(err) {
|
|
try {
|
|
this.destination.error(err);
|
|
} finally {
|
|
this.unsubscribe();
|
|
}
|
|
};
|
|
Subscriber2.prototype._complete = function() {
|
|
try {
|
|
this.destination.complete();
|
|
} finally {
|
|
this.unsubscribe();
|
|
}
|
|
};
|
|
return Subscriber2;
|
|
})(Subscription_1.Subscription);
|
|
exports.Subscriber = Subscriber;
|
|
var _bind = Function.prototype.bind;
|
|
function bind(fn, thisArg) {
|
|
return _bind.call(fn, thisArg);
|
|
}
|
|
__name(bind, "bind");
|
|
var ConsumerObserver = (function() {
|
|
function ConsumerObserver2(partialObserver) {
|
|
this.partialObserver = partialObserver;
|
|
}
|
|
__name(ConsumerObserver2, "ConsumerObserver");
|
|
ConsumerObserver2.prototype.next = function(value) {
|
|
var partialObserver = this.partialObserver;
|
|
if (partialObserver.next) {
|
|
try {
|
|
partialObserver.next(value);
|
|
} catch (error) {
|
|
handleUnhandledError(error);
|
|
}
|
|
}
|
|
};
|
|
ConsumerObserver2.prototype.error = function(err) {
|
|
var partialObserver = this.partialObserver;
|
|
if (partialObserver.error) {
|
|
try {
|
|
partialObserver.error(err);
|
|
} catch (error) {
|
|
handleUnhandledError(error);
|
|
}
|
|
} else {
|
|
handleUnhandledError(err);
|
|
}
|
|
};
|
|
ConsumerObserver2.prototype.complete = function() {
|
|
var partialObserver = this.partialObserver;
|
|
if (partialObserver.complete) {
|
|
try {
|
|
partialObserver.complete();
|
|
} catch (error) {
|
|
handleUnhandledError(error);
|
|
}
|
|
}
|
|
};
|
|
return ConsumerObserver2;
|
|
})();
|
|
var SafeSubscriber = (function(_super) {
|
|
__extends(SafeSubscriber2, _super);
|
|
function SafeSubscriber2(observerOrNext, error, complete) {
|
|
var _this = _super.call(this) || this;
|
|
var partialObserver;
|
|
if (isFunction_1.isFunction(observerOrNext) || !observerOrNext) {
|
|
partialObserver = {
|
|
next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : void 0,
|
|
error: error !== null && error !== void 0 ? error : void 0,
|
|
complete: complete !== null && complete !== void 0 ? complete : void 0
|
|
};
|
|
} else {
|
|
var context_1;
|
|
if (_this && config_1.config.useDeprecatedNextContext) {
|
|
context_1 = Object.create(observerOrNext);
|
|
context_1.unsubscribe = function() {
|
|
return _this.unsubscribe();
|
|
};
|
|
partialObserver = {
|
|
next: observerOrNext.next && bind(observerOrNext.next, context_1),
|
|
error: observerOrNext.error && bind(observerOrNext.error, context_1),
|
|
complete: observerOrNext.complete && bind(observerOrNext.complete, context_1)
|
|
};
|
|
} else {
|
|
partialObserver = observerOrNext;
|
|
}
|
|
}
|
|
_this.destination = new ConsumerObserver(partialObserver);
|
|
return _this;
|
|
}
|
|
__name(SafeSubscriber2, "SafeSubscriber");
|
|
return SafeSubscriber2;
|
|
})(Subscriber);
|
|
exports.SafeSubscriber = SafeSubscriber;
|
|
function handleUnhandledError(error) {
|
|
if (config_1.config.useDeprecatedSynchronousErrorHandling) {
|
|
errorContext_1.captureError(error);
|
|
} else {
|
|
reportUnhandledError_1.reportUnhandledError(error);
|
|
}
|
|
}
|
|
__name(handleUnhandledError, "handleUnhandledError");
|
|
function defaultErrorHandler(err) {
|
|
throw err;
|
|
}
|
|
__name(defaultErrorHandler, "defaultErrorHandler");
|
|
function handleStoppedNotification(notification, subscriber) {
|
|
var onStoppedNotification = config_1.config.onStoppedNotification;
|
|
onStoppedNotification && timeoutProvider_1.timeoutProvider.setTimeout(function() {
|
|
return onStoppedNotification(notification, subscriber);
|
|
});
|
|
}
|
|
__name(handleStoppedNotification, "handleStoppedNotification");
|
|
exports.EMPTY_OBSERVER = {
|
|
closed: true,
|
|
next: noop_1.noop,
|
|
error: defaultErrorHandler,
|
|
complete: noop_1.noop
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/symbol/observable.js
|
|
var require_observable = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/symbol/observable.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.observable = void 0;
|
|
exports.observable = (function() {
|
|
return typeof Symbol === "function" && Symbol.observable || "@@observable";
|
|
})();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/identity.js
|
|
var require_identity = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/identity.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.identity = void 0;
|
|
function identity(x) {
|
|
return x;
|
|
}
|
|
__name(identity, "identity");
|
|
exports.identity = identity;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/pipe.js
|
|
var require_pipe = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/pipe.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.pipeFromArray = exports.pipe = void 0;
|
|
var identity_1 = require_identity();
|
|
function pipe() {
|
|
var fns = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
fns[_i] = arguments[_i];
|
|
}
|
|
return pipeFromArray(fns);
|
|
}
|
|
__name(pipe, "pipe");
|
|
exports.pipe = pipe;
|
|
function pipeFromArray(fns) {
|
|
if (fns.length === 0) {
|
|
return identity_1.identity;
|
|
}
|
|
if (fns.length === 1) {
|
|
return fns[0];
|
|
}
|
|
return /* @__PURE__ */ __name(function piped(input) {
|
|
return fns.reduce(function(prev, fn) {
|
|
return fn(prev);
|
|
}, input);
|
|
}, "piped");
|
|
}
|
|
__name(pipeFromArray, "pipeFromArray");
|
|
exports.pipeFromArray = pipeFromArray;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/Observable.js
|
|
var require_Observable = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/Observable.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Observable = void 0;
|
|
var Subscriber_1 = require_Subscriber();
|
|
var Subscription_1 = require_Subscription();
|
|
var observable_1 = require_observable();
|
|
var pipe_1 = require_pipe();
|
|
var config_1 = require_config();
|
|
var isFunction_1 = require_isFunction();
|
|
var errorContext_1 = require_errorContext();
|
|
var Observable = (function() {
|
|
function Observable2(subscribe) {
|
|
if (subscribe) {
|
|
this._subscribe = subscribe;
|
|
}
|
|
}
|
|
__name(Observable2, "Observable");
|
|
Observable2.prototype.lift = function(operator) {
|
|
var observable = new Observable2();
|
|
observable.source = this;
|
|
observable.operator = operator;
|
|
return observable;
|
|
};
|
|
Observable2.prototype.subscribe = function(observerOrNext, error, complete) {
|
|
var _this = this;
|
|
var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new Subscriber_1.SafeSubscriber(observerOrNext, error, complete);
|
|
errorContext_1.errorContext(function() {
|
|
var _a = _this, operator = _a.operator, source = _a.source;
|
|
subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
|
|
});
|
|
return subscriber;
|
|
};
|
|
Observable2.prototype._trySubscribe = function(sink) {
|
|
try {
|
|
return this._subscribe(sink);
|
|
} catch (err) {
|
|
sink.error(err);
|
|
}
|
|
};
|
|
Observable2.prototype.forEach = function(next, promiseCtor) {
|
|
var _this = this;
|
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
return new promiseCtor(function(resolve, reject) {
|
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
next: /* @__PURE__ */ __name(function(value) {
|
|
try {
|
|
next(value);
|
|
} catch (err) {
|
|
reject(err);
|
|
subscriber.unsubscribe();
|
|
}
|
|
}, "next"),
|
|
error: reject,
|
|
complete: resolve
|
|
});
|
|
_this.subscribe(subscriber);
|
|
});
|
|
};
|
|
Observable2.prototype._subscribe = function(subscriber) {
|
|
var _a;
|
|
return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
|
|
};
|
|
Observable2.prototype[observable_1.observable] = function() {
|
|
return this;
|
|
};
|
|
Observable2.prototype.pipe = function() {
|
|
var operations = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
operations[_i] = arguments[_i];
|
|
}
|
|
return pipe_1.pipeFromArray(operations)(this);
|
|
};
|
|
Observable2.prototype.toPromise = function(promiseCtor) {
|
|
var _this = this;
|
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
return new promiseCtor(function(resolve, reject) {
|
|
var value;
|
|
_this.subscribe(function(x) {
|
|
return value = x;
|
|
}, function(err) {
|
|
return reject(err);
|
|
}, function() {
|
|
return resolve(value);
|
|
});
|
|
});
|
|
};
|
|
Observable2.create = function(subscribe) {
|
|
return new Observable2(subscribe);
|
|
};
|
|
return Observable2;
|
|
})();
|
|
exports.Observable = Observable;
|
|
function getPromiseCtor(promiseCtor) {
|
|
var _a;
|
|
return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config_1.config.Promise) !== null && _a !== void 0 ? _a : Promise;
|
|
}
|
|
__name(getPromiseCtor, "getPromiseCtor");
|
|
function isObserver(value) {
|
|
return value && isFunction_1.isFunction(value.next) && isFunction_1.isFunction(value.error) && isFunction_1.isFunction(value.complete);
|
|
}
|
|
__name(isObserver, "isObserver");
|
|
function isSubscriber(value) {
|
|
return value && value instanceof Subscriber_1.Subscriber || isObserver(value) && Subscription_1.isSubscription(value);
|
|
}
|
|
__name(isSubscriber, "isSubscriber");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js
|
|
var require_isInteropObservable = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isInteropObservable = void 0;
|
|
var observable_1 = require_observable();
|
|
var isFunction_1 = require_isFunction();
|
|
function isInteropObservable(input) {
|
|
return isFunction_1.isFunction(input[observable_1.observable]);
|
|
}
|
|
__name(isInteropObservable, "isInteropObservable");
|
|
exports.isInteropObservable = isInteropObservable;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js
|
|
var require_isAsyncIterable = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isAsyncIterable = void 0;
|
|
var isFunction_1 = require_isFunction();
|
|
function isAsyncIterable(obj) {
|
|
return Symbol.asyncIterator && isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
|
|
}
|
|
__name(isAsyncIterable, "isAsyncIterable");
|
|
exports.isAsyncIterable = isAsyncIterable;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js
|
|
var require_throwUnobservableError = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.createInvalidObservableTypeError = void 0;
|
|
function createInvalidObservableTypeError(input) {
|
|
return new TypeError("You provided " + (input !== null && typeof input === "object" ? "an invalid object" : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
}
|
|
__name(createInvalidObservableTypeError, "createInvalidObservableTypeError");
|
|
exports.createInvalidObservableTypeError = createInvalidObservableTypeError;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/symbol/iterator.js
|
|
var require_iterator = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/symbol/iterator.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.iterator = exports.getSymbolIterator = void 0;
|
|
function getSymbolIterator() {
|
|
if (typeof Symbol !== "function" || !Symbol.iterator) {
|
|
return "@@iterator";
|
|
}
|
|
return Symbol.iterator;
|
|
}
|
|
__name(getSymbolIterator, "getSymbolIterator");
|
|
exports.getSymbolIterator = getSymbolIterator;
|
|
exports.iterator = getSymbolIterator();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isIterable.js
|
|
var require_isIterable = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isIterable.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isIterable = void 0;
|
|
var iterator_1 = require_iterator();
|
|
var isFunction_1 = require_isFunction();
|
|
function isIterable(input) {
|
|
return isFunction_1.isFunction(input === null || input === void 0 ? void 0 : input[iterator_1.iterator]);
|
|
}
|
|
__name(isIterable, "isIterable");
|
|
exports.isIterable = isIterable;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js
|
|
var require_isReadableStreamLike = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js"(exports) {
|
|
"use strict";
|
|
var __generator = exports && exports.__generator || function(thisArg, body) {
|
|
var _ = { label: 0, sent: /* @__PURE__ */ __name(function() {
|
|
if (t[0] & 1) throw t[1];
|
|
return t[1];
|
|
}, "sent"), trys: [], ops: [] }, f, y, t, g;
|
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
return this;
|
|
}), g;
|
|
function verb(n) {
|
|
return function(v) {
|
|
return step([n, v]);
|
|
};
|
|
}
|
|
__name(verb, "verb");
|
|
function step(op) {
|
|
if (f) throw new TypeError("Generator is already executing.");
|
|
while (_) try {
|
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
switch (op[0]) {
|
|
case 0:
|
|
case 1:
|
|
t = op;
|
|
break;
|
|
case 4:
|
|
_.label++;
|
|
return { value: op[1], done: false };
|
|
case 5:
|
|
_.label++;
|
|
y = op[1];
|
|
op = [0];
|
|
continue;
|
|
case 7:
|
|
op = _.ops.pop();
|
|
_.trys.pop();
|
|
continue;
|
|
default:
|
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
_ = 0;
|
|
continue;
|
|
}
|
|
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
_.label = op[1];
|
|
break;
|
|
}
|
|
if (op[0] === 6 && _.label < t[1]) {
|
|
_.label = t[1];
|
|
t = op;
|
|
break;
|
|
}
|
|
if (t && _.label < t[2]) {
|
|
_.label = t[2];
|
|
_.ops.push(op);
|
|
break;
|
|
}
|
|
if (t[2]) _.ops.pop();
|
|
_.trys.pop();
|
|
continue;
|
|
}
|
|
op = body.call(thisArg, _);
|
|
} catch (e) {
|
|
op = [6, e];
|
|
y = 0;
|
|
} finally {
|
|
f = t = 0;
|
|
}
|
|
if (op[0] & 5) throw op[1];
|
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
}
|
|
__name(step, "step");
|
|
};
|
|
var __await = exports && exports.__await || function(v) {
|
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
};
|
|
var __asyncGenerator = exports && exports.__asyncGenerator || function(thisArg, _arguments, generator) {
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
return this;
|
|
}, i;
|
|
function verb(n) {
|
|
if (g[n]) i[n] = function(v) {
|
|
return new Promise(function(a, b) {
|
|
q.push([n, v, a, b]) > 1 || resume(n, v);
|
|
});
|
|
};
|
|
}
|
|
__name(verb, "verb");
|
|
function resume(n, v) {
|
|
try {
|
|
step(g[n](v));
|
|
} catch (e) {
|
|
settle(q[0][3], e);
|
|
}
|
|
}
|
|
__name(resume, "resume");
|
|
function step(r) {
|
|
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
}
|
|
__name(step, "step");
|
|
function fulfill(value) {
|
|
resume("next", value);
|
|
}
|
|
__name(fulfill, "fulfill");
|
|
function reject(value) {
|
|
resume("throw", value);
|
|
}
|
|
__name(reject, "reject");
|
|
function settle(f, v) {
|
|
if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
|
|
}
|
|
__name(settle, "settle");
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isReadableStreamLike = exports.readableStreamLikeToAsyncGenerator = void 0;
|
|
var isFunction_1 = require_isFunction();
|
|
function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
return __asyncGenerator(this, arguments, /* @__PURE__ */ __name(function readableStreamLikeToAsyncGenerator_1() {
|
|
var reader, _a, value, done;
|
|
return __generator(this, function(_b) {
|
|
switch (_b.label) {
|
|
case 0:
|
|
reader = readableStream.getReader();
|
|
_b.label = 1;
|
|
case 1:
|
|
_b.trys.push([1, , 9, 10]);
|
|
_b.label = 2;
|
|
case 2:
|
|
if (false) return [3, 8];
|
|
return [4, __await(reader.read())];
|
|
case 3:
|
|
_a = _b.sent(), value = _a.value, done = _a.done;
|
|
if (!done) return [3, 5];
|
|
return [4, __await(void 0)];
|
|
case 4:
|
|
return [2, _b.sent()];
|
|
case 5:
|
|
return [4, __await(value)];
|
|
case 6:
|
|
return [4, _b.sent()];
|
|
case 7:
|
|
_b.sent();
|
|
return [3, 2];
|
|
case 8:
|
|
return [3, 10];
|
|
case 9:
|
|
reader.releaseLock();
|
|
return [7];
|
|
case 10:
|
|
return [2];
|
|
}
|
|
});
|
|
}, "readableStreamLikeToAsyncGenerator_1"));
|
|
}
|
|
__name(readableStreamLikeToAsyncGenerator, "readableStreamLikeToAsyncGenerator");
|
|
exports.readableStreamLikeToAsyncGenerator = readableStreamLikeToAsyncGenerator;
|
|
function isReadableStreamLike(obj) {
|
|
return isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);
|
|
}
|
|
__name(isReadableStreamLike, "isReadableStreamLike");
|
|
exports.isReadableStreamLike = isReadableStreamLike;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js
|
|
var require_innerFrom = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js"(exports) {
|
|
"use strict";
|
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
function adopt(value) {
|
|
return value instanceof P ? value : new P(function(resolve) {
|
|
resolve(value);
|
|
});
|
|
}
|
|
__name(adopt, "adopt");
|
|
return new (P || (P = Promise))(function(resolve, reject) {
|
|
function fulfilled(value) {
|
|
try {
|
|
step(generator.next(value));
|
|
} catch (e) {
|
|
reject(e);
|
|
}
|
|
}
|
|
__name(fulfilled, "fulfilled");
|
|
function rejected(value) {
|
|
try {
|
|
step(generator["throw"](value));
|
|
} catch (e) {
|
|
reject(e);
|
|
}
|
|
}
|
|
__name(rejected, "rejected");
|
|
function step(result) {
|
|
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
}
|
|
__name(step, "step");
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
});
|
|
};
|
|
var __generator = exports && exports.__generator || function(thisArg, body) {
|
|
var _ = { label: 0, sent: /* @__PURE__ */ __name(function() {
|
|
if (t[0] & 1) throw t[1];
|
|
return t[1];
|
|
}, "sent"), trys: [], ops: [] }, f, y, t, g;
|
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
return this;
|
|
}), g;
|
|
function verb(n) {
|
|
return function(v) {
|
|
return step([n, v]);
|
|
};
|
|
}
|
|
__name(verb, "verb");
|
|
function step(op) {
|
|
if (f) throw new TypeError("Generator is already executing.");
|
|
while (_) try {
|
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
switch (op[0]) {
|
|
case 0:
|
|
case 1:
|
|
t = op;
|
|
break;
|
|
case 4:
|
|
_.label++;
|
|
return { value: op[1], done: false };
|
|
case 5:
|
|
_.label++;
|
|
y = op[1];
|
|
op = [0];
|
|
continue;
|
|
case 7:
|
|
op = _.ops.pop();
|
|
_.trys.pop();
|
|
continue;
|
|
default:
|
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
_ = 0;
|
|
continue;
|
|
}
|
|
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
_.label = op[1];
|
|
break;
|
|
}
|
|
if (op[0] === 6 && _.label < t[1]) {
|
|
_.label = t[1];
|
|
t = op;
|
|
break;
|
|
}
|
|
if (t && _.label < t[2]) {
|
|
_.label = t[2];
|
|
_.ops.push(op);
|
|
break;
|
|
}
|
|
if (t[2]) _.ops.pop();
|
|
_.trys.pop();
|
|
continue;
|
|
}
|
|
op = body.call(thisArg, _);
|
|
} catch (e) {
|
|
op = [6, e];
|
|
y = 0;
|
|
} finally {
|
|
f = t = 0;
|
|
}
|
|
if (op[0] & 5) throw op[1];
|
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
}
|
|
__name(step, "step");
|
|
};
|
|
var __asyncValues = exports && exports.__asyncValues || function(o) {
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
var m = o[Symbol.asyncIterator], i;
|
|
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
return this;
|
|
}, i);
|
|
function verb(n) {
|
|
i[n] = o[n] && function(v) {
|
|
return new Promise(function(resolve, reject) {
|
|
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
});
|
|
};
|
|
}
|
|
__name(verb, "verb");
|
|
function settle(resolve, reject, d, v) {
|
|
Promise.resolve(v).then(function(v2) {
|
|
resolve({ value: v2, done: d });
|
|
}, reject);
|
|
}
|
|
__name(settle, "settle");
|
|
};
|
|
var __values = exports && exports.__values || function(o) {
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
if (m) return m.call(o);
|
|
if (o && typeof o.length === "number") return {
|
|
next: /* @__PURE__ */ __name(function() {
|
|
if (o && i >= o.length) o = void 0;
|
|
return { value: o && o[i++], done: !o };
|
|
}, "next")
|
|
};
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.fromReadableStreamLike = exports.fromAsyncIterable = exports.fromIterable = exports.fromPromise = exports.fromArrayLike = exports.fromInteropObservable = exports.innerFrom = void 0;
|
|
var isArrayLike_1 = require_isArrayLike();
|
|
var isPromise_1 = require_isPromise();
|
|
var Observable_1 = require_Observable();
|
|
var isInteropObservable_1 = require_isInteropObservable();
|
|
var isAsyncIterable_1 = require_isAsyncIterable();
|
|
var throwUnobservableError_1 = require_throwUnobservableError();
|
|
var isIterable_1 = require_isIterable();
|
|
var isReadableStreamLike_1 = require_isReadableStreamLike();
|
|
var isFunction_1 = require_isFunction();
|
|
var reportUnhandledError_1 = require_reportUnhandledError();
|
|
var observable_1 = require_observable();
|
|
function innerFrom(input) {
|
|
if (input instanceof Observable_1.Observable) {
|
|
return input;
|
|
}
|
|
if (input != null) {
|
|
if (isInteropObservable_1.isInteropObservable(input)) {
|
|
return fromInteropObservable(input);
|
|
}
|
|
if (isArrayLike_1.isArrayLike(input)) {
|
|
return fromArrayLike(input);
|
|
}
|
|
if (isPromise_1.isPromise(input)) {
|
|
return fromPromise(input);
|
|
}
|
|
if (isAsyncIterable_1.isAsyncIterable(input)) {
|
|
return fromAsyncIterable(input);
|
|
}
|
|
if (isIterable_1.isIterable(input)) {
|
|
return fromIterable(input);
|
|
}
|
|
if (isReadableStreamLike_1.isReadableStreamLike(input)) {
|
|
return fromReadableStreamLike(input);
|
|
}
|
|
}
|
|
throw throwUnobservableError_1.createInvalidObservableTypeError(input);
|
|
}
|
|
__name(innerFrom, "innerFrom");
|
|
exports.innerFrom = innerFrom;
|
|
function fromInteropObservable(obj) {
|
|
return new Observable_1.Observable(function(subscriber) {
|
|
var obs = obj[observable_1.observable]();
|
|
if (isFunction_1.isFunction(obs.subscribe)) {
|
|
return obs.subscribe(subscriber);
|
|
}
|
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
});
|
|
}
|
|
__name(fromInteropObservable, "fromInteropObservable");
|
|
exports.fromInteropObservable = fromInteropObservable;
|
|
function fromArrayLike(array) {
|
|
return new Observable_1.Observable(function(subscriber) {
|
|
for (var i = 0; i < array.length && !subscriber.closed; i++) {
|
|
subscriber.next(array[i]);
|
|
}
|
|
subscriber.complete();
|
|
});
|
|
}
|
|
__name(fromArrayLike, "fromArrayLike");
|
|
exports.fromArrayLike = fromArrayLike;
|
|
function fromPromise(promise) {
|
|
return new Observable_1.Observable(function(subscriber) {
|
|
promise.then(function(value) {
|
|
if (!subscriber.closed) {
|
|
subscriber.next(value);
|
|
subscriber.complete();
|
|
}
|
|
}, function(err) {
|
|
return subscriber.error(err);
|
|
}).then(null, reportUnhandledError_1.reportUnhandledError);
|
|
});
|
|
}
|
|
__name(fromPromise, "fromPromise");
|
|
exports.fromPromise = fromPromise;
|
|
function fromIterable(iterable) {
|
|
return new Observable_1.Observable(function(subscriber) {
|
|
var e_1, _a;
|
|
try {
|
|
for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
|
|
var value = iterable_1_1.value;
|
|
subscriber.next(value);
|
|
if (subscriber.closed) {
|
|
return;
|
|
}
|
|
}
|
|
} catch (e_1_1) {
|
|
e_1 = { error: e_1_1 };
|
|
} finally {
|
|
try {
|
|
if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return)) _a.call(iterable_1);
|
|
} finally {
|
|
if (e_1) throw e_1.error;
|
|
}
|
|
}
|
|
subscriber.complete();
|
|
});
|
|
}
|
|
__name(fromIterable, "fromIterable");
|
|
exports.fromIterable = fromIterable;
|
|
function fromAsyncIterable(asyncIterable) {
|
|
return new Observable_1.Observable(function(subscriber) {
|
|
process2(asyncIterable, subscriber).catch(function(err) {
|
|
return subscriber.error(err);
|
|
});
|
|
});
|
|
}
|
|
__name(fromAsyncIterable, "fromAsyncIterable");
|
|
exports.fromAsyncIterable = fromAsyncIterable;
|
|
function fromReadableStreamLike(readableStream) {
|
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
|
}
|
|
__name(fromReadableStreamLike, "fromReadableStreamLike");
|
|
exports.fromReadableStreamLike = fromReadableStreamLike;
|
|
function process2(asyncIterable, subscriber) {
|
|
var asyncIterable_1, asyncIterable_1_1;
|
|
var e_2, _a;
|
|
return __awaiter(this, void 0, void 0, function() {
|
|
var value, e_2_1;
|
|
return __generator(this, function(_b) {
|
|
switch (_b.label) {
|
|
case 0:
|
|
_b.trys.push([0, 5, 6, 11]);
|
|
asyncIterable_1 = __asyncValues(asyncIterable);
|
|
_b.label = 1;
|
|
case 1:
|
|
return [4, asyncIterable_1.next()];
|
|
case 2:
|
|
if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done)) return [3, 4];
|
|
value = asyncIterable_1_1.value;
|
|
subscriber.next(value);
|
|
if (subscriber.closed) {
|
|
return [2];
|
|
}
|
|
_b.label = 3;
|
|
case 3:
|
|
return [3, 1];
|
|
case 4:
|
|
return [3, 11];
|
|
case 5:
|
|
e_2_1 = _b.sent();
|
|
e_2 = { error: e_2_1 };
|
|
return [3, 11];
|
|
case 6:
|
|
_b.trys.push([6, , 9, 10]);
|
|
if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return))) return [3, 8];
|
|
return [4, _a.call(asyncIterable_1)];
|
|
case 7:
|
|
_b.sent();
|
|
_b.label = 8;
|
|
case 8:
|
|
return [3, 10];
|
|
case 9:
|
|
if (e_2) throw e_2.error;
|
|
return [7];
|
|
case 10:
|
|
return [7];
|
|
case 11:
|
|
subscriber.complete();
|
|
return [2];
|
|
}
|
|
});
|
|
});
|
|
}
|
|
__name(process2, "process");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js
|
|
var require_OperatorSubscriber = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js"(exports) {
|
|
"use strict";
|
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
var extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
d2.__proto__ = b2;
|
|
} || function(d2, b2) {
|
|
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
};
|
|
return extendStatics(d, b);
|
|
}, "extendStatics");
|
|
return function(d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() {
|
|
this.constructor = d;
|
|
}
|
|
__name(__, "__");
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.OperatorSubscriber = exports.createOperatorSubscriber = void 0;
|
|
var Subscriber_1 = require_Subscriber();
|
|
function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
|
|
return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
|
|
}
|
|
__name(createOperatorSubscriber, "createOperatorSubscriber");
|
|
exports.createOperatorSubscriber = createOperatorSubscriber;
|
|
var OperatorSubscriber = (function(_super) {
|
|
__extends(OperatorSubscriber2, _super);
|
|
function OperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
var _this = _super.call(this, destination) || this;
|
|
_this.onFinalize = onFinalize;
|
|
_this.shouldUnsubscribe = shouldUnsubscribe;
|
|
_this._next = onNext ? function(value) {
|
|
try {
|
|
onNext(value);
|
|
} catch (err) {
|
|
destination.error(err);
|
|
}
|
|
} : _super.prototype._next;
|
|
_this._error = onError ? function(err) {
|
|
try {
|
|
onError(err);
|
|
} catch (err2) {
|
|
destination.error(err2);
|
|
} finally {
|
|
this.unsubscribe();
|
|
}
|
|
} : _super.prototype._error;
|
|
_this._complete = onComplete ? function() {
|
|
try {
|
|
onComplete();
|
|
} catch (err) {
|
|
destination.error(err);
|
|
} finally {
|
|
this.unsubscribe();
|
|
}
|
|
} : _super.prototype._complete;
|
|
return _this;
|
|
}
|
|
__name(OperatorSubscriber2, "OperatorSubscriber");
|
|
OperatorSubscriber2.prototype.unsubscribe = function() {
|
|
var _a;
|
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
var closed_1 = this.closed;
|
|
_super.prototype.unsubscribe.call(this);
|
|
!closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
}
|
|
};
|
|
return OperatorSubscriber2;
|
|
})(Subscriber_1.Subscriber);
|
|
exports.OperatorSubscriber = OperatorSubscriber;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/audit.js
|
|
var require_audit = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/audit.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.audit = void 0;
|
|
var lift_1 = require_lift();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function audit(durationSelector) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var hasValue = false;
|
|
var lastValue = null;
|
|
var durationSubscriber = null;
|
|
var isComplete = false;
|
|
var endDuration = /* @__PURE__ */ __name(function() {
|
|
durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
|
|
durationSubscriber = null;
|
|
if (hasValue) {
|
|
hasValue = false;
|
|
var value = lastValue;
|
|
lastValue = null;
|
|
subscriber.next(value);
|
|
}
|
|
isComplete && subscriber.complete();
|
|
}, "endDuration");
|
|
var cleanupDuration = /* @__PURE__ */ __name(function() {
|
|
durationSubscriber = null;
|
|
isComplete && subscriber.complete();
|
|
}, "cleanupDuration");
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
hasValue = true;
|
|
lastValue = value;
|
|
if (!durationSubscriber) {
|
|
innerFrom_1.innerFrom(durationSelector(value)).subscribe(durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, endDuration, cleanupDuration));
|
|
}
|
|
}, function() {
|
|
isComplete = true;
|
|
(!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();
|
|
}));
|
|
});
|
|
}
|
|
__name(audit, "audit");
|
|
exports.audit = audit;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js
|
|
var require_Action = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js"(exports) {
|
|
"use strict";
|
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
var extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
d2.__proto__ = b2;
|
|
} || function(d2, b2) {
|
|
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
};
|
|
return extendStatics(d, b);
|
|
}, "extendStatics");
|
|
return function(d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() {
|
|
this.constructor = d;
|
|
}
|
|
__name(__, "__");
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Action = void 0;
|
|
var Subscription_1 = require_Subscription();
|
|
var Action = (function(_super) {
|
|
__extends(Action2, _super);
|
|
function Action2(scheduler, work) {
|
|
return _super.call(this) || this;
|
|
}
|
|
__name(Action2, "Action");
|
|
Action2.prototype.schedule = function(state, delay) {
|
|
if (delay === void 0) {
|
|
delay = 0;
|
|
}
|
|
return this;
|
|
};
|
|
return Action2;
|
|
})(Subscription_1.Subscription);
|
|
exports.Action = Action;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js
|
|
var require_intervalProvider = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.intervalProvider = void 0;
|
|
exports.intervalProvider = {
|
|
setInterval: /* @__PURE__ */ __name(function(handler, timeout) {
|
|
var args = [];
|
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
args[_i - 2] = arguments[_i];
|
|
}
|
|
var delegate = exports.intervalProvider.delegate;
|
|
if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
|
|
return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args)));
|
|
}
|
|
return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args)));
|
|
}, "setInterval"),
|
|
clearInterval: /* @__PURE__ */ __name(function(handle) {
|
|
var delegate = exports.intervalProvider.delegate;
|
|
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);
|
|
}, "clearInterval"),
|
|
delegate: void 0
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js
|
|
var require_AsyncAction = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"(exports) {
|
|
"use strict";
|
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
var extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
d2.__proto__ = b2;
|
|
} || function(d2, b2) {
|
|
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
};
|
|
return extendStatics(d, b);
|
|
}, "extendStatics");
|
|
return function(d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() {
|
|
this.constructor = d;
|
|
}
|
|
__name(__, "__");
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.AsyncAction = void 0;
|
|
var Action_1 = require_Action();
|
|
var intervalProvider_1 = require_intervalProvider();
|
|
var arrRemove_1 = require_arrRemove();
|
|
var AsyncAction = (function(_super) {
|
|
__extends(AsyncAction2, _super);
|
|
function AsyncAction2(scheduler, work) {
|
|
var _this = _super.call(this, scheduler, work) || this;
|
|
_this.scheduler = scheduler;
|
|
_this.work = work;
|
|
_this.pending = false;
|
|
return _this;
|
|
}
|
|
__name(AsyncAction2, "AsyncAction");
|
|
AsyncAction2.prototype.schedule = function(state, delay) {
|
|
var _a;
|
|
if (delay === void 0) {
|
|
delay = 0;
|
|
}
|
|
if (this.closed) {
|
|
return this;
|
|
}
|
|
this.state = state;
|
|
var id = this.id;
|
|
var scheduler = this.scheduler;
|
|
if (id != null) {
|
|
this.id = this.recycleAsyncId(scheduler, id, delay);
|
|
}
|
|
this.pending = true;
|
|
this.delay = delay;
|
|
this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);
|
|
return this;
|
|
};
|
|
AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay) {
|
|
if (delay === void 0) {
|
|
delay = 0;
|
|
}
|
|
return intervalProvider_1.intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
|
|
};
|
|
AsyncAction2.prototype.recycleAsyncId = function(_scheduler, id, delay) {
|
|
if (delay === void 0) {
|
|
delay = 0;
|
|
}
|
|
if (delay != null && this.delay === delay && this.pending === false) {
|
|
return id;
|
|
}
|
|
if (id != null) {
|
|
intervalProvider_1.intervalProvider.clearInterval(id);
|
|
}
|
|
return void 0;
|
|
};
|
|
AsyncAction2.prototype.execute = function(state, delay) {
|
|
if (this.closed) {
|
|
return new Error("executing a cancelled action");
|
|
}
|
|
this.pending = false;
|
|
var error = this._execute(state, delay);
|
|
if (error) {
|
|
return error;
|
|
} else if (this.pending === false && this.id != null) {
|
|
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
|
}
|
|
};
|
|
AsyncAction2.prototype._execute = function(state, _delay) {
|
|
var errored = false;
|
|
var errorValue;
|
|
try {
|
|
this.work(state);
|
|
} catch (e) {
|
|
errored = true;
|
|
errorValue = e ? e : new Error("Scheduled action threw falsy error");
|
|
}
|
|
if (errored) {
|
|
this.unsubscribe();
|
|
return errorValue;
|
|
}
|
|
};
|
|
AsyncAction2.prototype.unsubscribe = function() {
|
|
if (!this.closed) {
|
|
var _a = this, id = _a.id, scheduler = _a.scheduler;
|
|
var actions = scheduler.actions;
|
|
this.work = this.state = this.scheduler = null;
|
|
this.pending = false;
|
|
arrRemove_1.arrRemove(actions, this);
|
|
if (id != null) {
|
|
this.id = this.recycleAsyncId(scheduler, id, null);
|
|
}
|
|
this.delay = null;
|
|
_super.prototype.unsubscribe.call(this);
|
|
}
|
|
};
|
|
return AsyncAction2;
|
|
})(Action_1.Action);
|
|
exports.AsyncAction = AsyncAction;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js
|
|
var require_dateTimestampProvider = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.dateTimestampProvider = void 0;
|
|
exports.dateTimestampProvider = {
|
|
now: /* @__PURE__ */ __name(function() {
|
|
return (exports.dateTimestampProvider.delegate || Date).now();
|
|
}, "now"),
|
|
delegate: void 0
|
|
};
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/Scheduler.js
|
|
var require_Scheduler = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/Scheduler.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Scheduler = void 0;
|
|
var dateTimestampProvider_1 = require_dateTimestampProvider();
|
|
var Scheduler = (function() {
|
|
function Scheduler2(schedulerActionCtor, now) {
|
|
if (now === void 0) {
|
|
now = Scheduler2.now;
|
|
}
|
|
this.schedulerActionCtor = schedulerActionCtor;
|
|
this.now = now;
|
|
}
|
|
__name(Scheduler2, "Scheduler");
|
|
Scheduler2.prototype.schedule = function(work, delay, state) {
|
|
if (delay === void 0) {
|
|
delay = 0;
|
|
}
|
|
return new this.schedulerActionCtor(this, work).schedule(state, delay);
|
|
};
|
|
Scheduler2.now = dateTimestampProvider_1.dateTimestampProvider.now;
|
|
return Scheduler2;
|
|
})();
|
|
exports.Scheduler = Scheduler;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js
|
|
var require_AsyncScheduler = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js"(exports) {
|
|
"use strict";
|
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
var extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
d2.__proto__ = b2;
|
|
} || function(d2, b2) {
|
|
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
};
|
|
return extendStatics(d, b);
|
|
}, "extendStatics");
|
|
return function(d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() {
|
|
this.constructor = d;
|
|
}
|
|
__name(__, "__");
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.AsyncScheduler = void 0;
|
|
var Scheduler_1 = require_Scheduler();
|
|
var AsyncScheduler = (function(_super) {
|
|
__extends(AsyncScheduler2, _super);
|
|
function AsyncScheduler2(SchedulerAction, now) {
|
|
if (now === void 0) {
|
|
now = Scheduler_1.Scheduler.now;
|
|
}
|
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
_this.actions = [];
|
|
_this._active = false;
|
|
return _this;
|
|
}
|
|
__name(AsyncScheduler2, "AsyncScheduler");
|
|
AsyncScheduler2.prototype.flush = function(action) {
|
|
var actions = this.actions;
|
|
if (this._active) {
|
|
actions.push(action);
|
|
return;
|
|
}
|
|
var error;
|
|
this._active = true;
|
|
do {
|
|
if (error = action.execute(action.state, action.delay)) {
|
|
break;
|
|
}
|
|
} while (action = actions.shift());
|
|
this._active = false;
|
|
if (error) {
|
|
while (action = actions.shift()) {
|
|
action.unsubscribe();
|
|
}
|
|
throw error;
|
|
}
|
|
};
|
|
return AsyncScheduler2;
|
|
})(Scheduler_1.Scheduler);
|
|
exports.AsyncScheduler = AsyncScheduler;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/async.js
|
|
var require_async = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.async = exports.asyncScheduler = void 0;
|
|
var AsyncAction_1 = require_AsyncAction();
|
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
exports.asyncScheduler = new AsyncScheduler_1.AsyncScheduler(AsyncAction_1.AsyncAction);
|
|
exports.async = exports.asyncScheduler;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js
|
|
var require_isScheduler = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isScheduler = void 0;
|
|
var isFunction_1 = require_isFunction();
|
|
function isScheduler(value) {
|
|
return value && isFunction_1.isFunction(value.schedule);
|
|
}
|
|
__name(isScheduler, "isScheduler");
|
|
exports.isScheduler = isScheduler;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isDate.js
|
|
var require_isDate = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/isDate.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isValidDate = void 0;
|
|
function isValidDate(value) {
|
|
return value instanceof Date && !isNaN(value);
|
|
}
|
|
__name(isValidDate, "isValidDate");
|
|
exports.isValidDate = isValidDate;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/timer.js
|
|
var require_timer = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/timer.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.timer = void 0;
|
|
var Observable_1 = require_Observable();
|
|
var async_1 = require_async();
|
|
var isScheduler_1 = require_isScheduler();
|
|
var isDate_1 = require_isDate();
|
|
function timer(dueTime, intervalOrScheduler, scheduler) {
|
|
if (dueTime === void 0) {
|
|
dueTime = 0;
|
|
}
|
|
if (scheduler === void 0) {
|
|
scheduler = async_1.async;
|
|
}
|
|
var intervalDuration = -1;
|
|
if (intervalOrScheduler != null) {
|
|
if (isScheduler_1.isScheduler(intervalOrScheduler)) {
|
|
scheduler = intervalOrScheduler;
|
|
} else {
|
|
intervalDuration = intervalOrScheduler;
|
|
}
|
|
}
|
|
return new Observable_1.Observable(function(subscriber) {
|
|
var due = isDate_1.isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;
|
|
if (due < 0) {
|
|
due = 0;
|
|
}
|
|
var n = 0;
|
|
return scheduler.schedule(function() {
|
|
if (!subscriber.closed) {
|
|
subscriber.next(n++);
|
|
if (0 <= intervalDuration) {
|
|
this.schedule(void 0, intervalDuration);
|
|
} else {
|
|
subscriber.complete();
|
|
}
|
|
}
|
|
}, due);
|
|
});
|
|
}
|
|
__name(timer, "timer");
|
|
exports.timer = timer;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/auditTime.js
|
|
var require_auditTime = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/auditTime.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.auditTime = void 0;
|
|
var async_1 = require_async();
|
|
var audit_1 = require_audit();
|
|
var timer_1 = require_timer();
|
|
function auditTime(duration, scheduler) {
|
|
if (scheduler === void 0) {
|
|
scheduler = async_1.asyncScheduler;
|
|
}
|
|
return audit_1.audit(function() {
|
|
return timer_1.timer(duration, scheduler);
|
|
});
|
|
}
|
|
__name(auditTime, "auditTime");
|
|
exports.auditTime = auditTime;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/buffer.js
|
|
var require_buffer = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/buffer.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.buffer = void 0;
|
|
var lift_1 = require_lift();
|
|
var noop_1 = require_noop();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var innerFrom_1 = require_innerFrom();
|
|
function buffer(closingNotifier) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var currentBuffer = [];
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
return currentBuffer.push(value);
|
|
}, function() {
|
|
subscriber.next(currentBuffer);
|
|
subscriber.complete();
|
|
}));
|
|
innerFrom_1.innerFrom(closingNotifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
|
|
var b = currentBuffer;
|
|
currentBuffer = [];
|
|
subscriber.next(b);
|
|
}, noop_1.noop));
|
|
return function() {
|
|
currentBuffer = null;
|
|
};
|
|
});
|
|
}
|
|
__name(buffer, "buffer");
|
|
exports.buffer = buffer;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js
|
|
var require_bufferCount = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js"(exports) {
|
|
"use strict";
|
|
var __values = exports && exports.__values || function(o) {
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
if (m) return m.call(o);
|
|
if (o && typeof o.length === "number") return {
|
|
next: /* @__PURE__ */ __name(function() {
|
|
if (o && i >= o.length) o = void 0;
|
|
return { value: o && o[i++], done: !o };
|
|
}, "next")
|
|
};
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.bufferCount = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var arrRemove_1 = require_arrRemove();
|
|
function bufferCount(bufferSize, startBufferEvery) {
|
|
if (startBufferEvery === void 0) {
|
|
startBufferEvery = null;
|
|
}
|
|
startBufferEvery = startBufferEvery !== null && startBufferEvery !== void 0 ? startBufferEvery : bufferSize;
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var buffers = [];
|
|
var count = 0;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var e_1, _a, e_2, _b;
|
|
var toEmit = null;
|
|
if (count++ % startBufferEvery === 0) {
|
|
buffers.push([]);
|
|
}
|
|
try {
|
|
for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) {
|
|
var buffer = buffers_1_1.value;
|
|
buffer.push(value);
|
|
if (bufferSize <= buffer.length) {
|
|
toEmit = toEmit !== null && toEmit !== void 0 ? toEmit : [];
|
|
toEmit.push(buffer);
|
|
}
|
|
}
|
|
} catch (e_1_1) {
|
|
e_1 = { error: e_1_1 };
|
|
} finally {
|
|
try {
|
|
if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1);
|
|
} finally {
|
|
if (e_1) throw e_1.error;
|
|
}
|
|
}
|
|
if (toEmit) {
|
|
try {
|
|
for (var toEmit_1 = __values(toEmit), toEmit_1_1 = toEmit_1.next(); !toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) {
|
|
var buffer = toEmit_1_1.value;
|
|
arrRemove_1.arrRemove(buffers, buffer);
|
|
subscriber.next(buffer);
|
|
}
|
|
} catch (e_2_1) {
|
|
e_2 = { error: e_2_1 };
|
|
} finally {
|
|
try {
|
|
if (toEmit_1_1 && !toEmit_1_1.done && (_b = toEmit_1.return)) _b.call(toEmit_1);
|
|
} finally {
|
|
if (e_2) throw e_2.error;
|
|
}
|
|
}
|
|
}
|
|
}, function() {
|
|
var e_3, _a;
|
|
try {
|
|
for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) {
|
|
var buffer = buffers_2_1.value;
|
|
subscriber.next(buffer);
|
|
}
|
|
} catch (e_3_1) {
|
|
e_3 = { error: e_3_1 };
|
|
} finally {
|
|
try {
|
|
if (buffers_2_1 && !buffers_2_1.done && (_a = buffers_2.return)) _a.call(buffers_2);
|
|
} finally {
|
|
if (e_3) throw e_3.error;
|
|
}
|
|
}
|
|
subscriber.complete();
|
|
}, void 0, function() {
|
|
buffers = null;
|
|
}));
|
|
});
|
|
}
|
|
__name(bufferCount, "bufferCount");
|
|
exports.bufferCount = bufferCount;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/args.js
|
|
var require_args = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/args.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.popNumber = exports.popScheduler = exports.popResultSelector = void 0;
|
|
var isFunction_1 = require_isFunction();
|
|
var isScheduler_1 = require_isScheduler();
|
|
function last(arr) {
|
|
return arr[arr.length - 1];
|
|
}
|
|
__name(last, "last");
|
|
function popResultSelector(args) {
|
|
return isFunction_1.isFunction(last(args)) ? args.pop() : void 0;
|
|
}
|
|
__name(popResultSelector, "popResultSelector");
|
|
exports.popResultSelector = popResultSelector;
|
|
function popScheduler(args) {
|
|
return isScheduler_1.isScheduler(last(args)) ? args.pop() : void 0;
|
|
}
|
|
__name(popScheduler, "popScheduler");
|
|
exports.popScheduler = popScheduler;
|
|
function popNumber(args, defaultValue) {
|
|
return typeof last(args) === "number" ? args.pop() : defaultValue;
|
|
}
|
|
__name(popNumber, "popNumber");
|
|
exports.popNumber = popNumber;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js
|
|
var require_executeSchedule = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.executeSchedule = void 0;
|
|
function executeSchedule(parentSubscription, scheduler, work, delay, repeat) {
|
|
if (delay === void 0) {
|
|
delay = 0;
|
|
}
|
|
if (repeat === void 0) {
|
|
repeat = false;
|
|
}
|
|
var scheduleSubscription = scheduler.schedule(function() {
|
|
work();
|
|
if (repeat) {
|
|
parentSubscription.add(this.schedule(null, delay));
|
|
} else {
|
|
this.unsubscribe();
|
|
}
|
|
}, delay);
|
|
parentSubscription.add(scheduleSubscription);
|
|
if (!repeat) {
|
|
return scheduleSubscription;
|
|
}
|
|
}
|
|
__name(executeSchedule, "executeSchedule");
|
|
exports.executeSchedule = executeSchedule;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js
|
|
var require_bufferTime = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js"(exports) {
|
|
"use strict";
|
|
var __values = exports && exports.__values || function(o) {
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
if (m) return m.call(o);
|
|
if (o && typeof o.length === "number") return {
|
|
next: /* @__PURE__ */ __name(function() {
|
|
if (o && i >= o.length) o = void 0;
|
|
return { value: o && o[i++], done: !o };
|
|
}, "next")
|
|
};
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.bufferTime = void 0;
|
|
var Subscription_1 = require_Subscription();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var arrRemove_1 = require_arrRemove();
|
|
var async_1 = require_async();
|
|
var args_1 = require_args();
|
|
var executeSchedule_1 = require_executeSchedule();
|
|
function bufferTime(bufferTimeSpan) {
|
|
var _a, _b;
|
|
var otherArgs = [];
|
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
otherArgs[_i - 1] = arguments[_i];
|
|
}
|
|
var scheduler = (_a = args_1.popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : async_1.asyncScheduler;
|
|
var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
|
|
var maxBufferSize = otherArgs[1] || Infinity;
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var bufferRecords = [];
|
|
var restartOnEmit = false;
|
|
var emit = /* @__PURE__ */ __name(function(record) {
|
|
var buffer = record.buffer, subs = record.subs;
|
|
subs.unsubscribe();
|
|
arrRemove_1.arrRemove(bufferRecords, record);
|
|
subscriber.next(buffer);
|
|
restartOnEmit && startBuffer();
|
|
}, "emit");
|
|
var startBuffer = /* @__PURE__ */ __name(function() {
|
|
if (bufferRecords) {
|
|
var subs = new Subscription_1.Subscription();
|
|
subscriber.add(subs);
|
|
var buffer = [];
|
|
var record_1 = {
|
|
buffer,
|
|
subs
|
|
};
|
|
bufferRecords.push(record_1);
|
|
executeSchedule_1.executeSchedule(subs, scheduler, function() {
|
|
return emit(record_1);
|
|
}, bufferTimeSpan);
|
|
}
|
|
}, "startBuffer");
|
|
if (bufferCreationInterval !== null && bufferCreationInterval >= 0) {
|
|
executeSchedule_1.executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true);
|
|
} else {
|
|
restartOnEmit = true;
|
|
}
|
|
startBuffer();
|
|
var bufferTimeSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var e_1, _a2;
|
|
var recordsCopy = bufferRecords.slice();
|
|
try {
|
|
for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
|
|
var record = recordsCopy_1_1.value;
|
|
var buffer = record.buffer;
|
|
buffer.push(value);
|
|
maxBufferSize <= buffer.length && emit(record);
|
|
}
|
|
} catch (e_1_1) {
|
|
e_1 = { error: e_1_1 };
|
|
} finally {
|
|
try {
|
|
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a2 = recordsCopy_1.return)) _a2.call(recordsCopy_1);
|
|
} finally {
|
|
if (e_1) throw e_1.error;
|
|
}
|
|
}
|
|
}, function() {
|
|
while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) {
|
|
subscriber.next(bufferRecords.shift().buffer);
|
|
}
|
|
bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe();
|
|
subscriber.complete();
|
|
subscriber.unsubscribe();
|
|
}, void 0, function() {
|
|
return bufferRecords = null;
|
|
});
|
|
source.subscribe(bufferTimeSubscriber);
|
|
});
|
|
}
|
|
__name(bufferTime, "bufferTime");
|
|
exports.bufferTime = bufferTime;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js
|
|
var require_bufferToggle = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js"(exports) {
|
|
"use strict";
|
|
var __values = exports && exports.__values || function(o) {
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
if (m) return m.call(o);
|
|
if (o && typeof o.length === "number") return {
|
|
next: /* @__PURE__ */ __name(function() {
|
|
if (o && i >= o.length) o = void 0;
|
|
return { value: o && o[i++], done: !o };
|
|
}, "next")
|
|
};
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.bufferToggle = void 0;
|
|
var Subscription_1 = require_Subscription();
|
|
var lift_1 = require_lift();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var noop_1 = require_noop();
|
|
var arrRemove_1 = require_arrRemove();
|
|
function bufferToggle(openings, closingSelector) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var buffers = [];
|
|
innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(openValue) {
|
|
var buffer = [];
|
|
buffers.push(buffer);
|
|
var closingSubscription = new Subscription_1.Subscription();
|
|
var emitBuffer = /* @__PURE__ */ __name(function() {
|
|
arrRemove_1.arrRemove(buffers, buffer);
|
|
subscriber.next(buffer);
|
|
closingSubscription.unsubscribe();
|
|
}, "emitBuffer");
|
|
closingSubscription.add(innerFrom_1.innerFrom(closingSelector(openValue)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, emitBuffer, noop_1.noop)));
|
|
}, noop_1.noop));
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var e_1, _a;
|
|
try {
|
|
for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) {
|
|
var buffer = buffers_1_1.value;
|
|
buffer.push(value);
|
|
}
|
|
} catch (e_1_1) {
|
|
e_1 = { error: e_1_1 };
|
|
} finally {
|
|
try {
|
|
if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1);
|
|
} finally {
|
|
if (e_1) throw e_1.error;
|
|
}
|
|
}
|
|
}, function() {
|
|
while (buffers.length > 0) {
|
|
subscriber.next(buffers.shift());
|
|
}
|
|
subscriber.complete();
|
|
}));
|
|
});
|
|
}
|
|
__name(bufferToggle, "bufferToggle");
|
|
exports.bufferToggle = bufferToggle;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js
|
|
var require_bufferWhen = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.bufferWhen = void 0;
|
|
var lift_1 = require_lift();
|
|
var noop_1 = require_noop();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var innerFrom_1 = require_innerFrom();
|
|
function bufferWhen(closingSelector) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var buffer = null;
|
|
var closingSubscriber = null;
|
|
var openBuffer = /* @__PURE__ */ __name(function() {
|
|
closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
|
|
var b = buffer;
|
|
buffer = [];
|
|
b && subscriber.next(b);
|
|
innerFrom_1.innerFrom(closingSelector()).subscribe(closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openBuffer, noop_1.noop));
|
|
}, "openBuffer");
|
|
openBuffer();
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
return buffer === null || buffer === void 0 ? void 0 : buffer.push(value);
|
|
}, function() {
|
|
buffer && subscriber.next(buffer);
|
|
subscriber.complete();
|
|
}, void 0, function() {
|
|
return buffer = closingSubscriber = null;
|
|
}));
|
|
});
|
|
}
|
|
__name(bufferWhen, "bufferWhen");
|
|
exports.bufferWhen = bufferWhen;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/catchError.js
|
|
var require_catchError = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/catchError.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.catchError = void 0;
|
|
var innerFrom_1 = require_innerFrom();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var lift_1 = require_lift();
|
|
function catchError(selector) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var innerSub = null;
|
|
var syncUnsub = false;
|
|
var handledResult;
|
|
innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, void 0, function(err) {
|
|
handledResult = innerFrom_1.innerFrom(selector(err, catchError(selector)(source)));
|
|
if (innerSub) {
|
|
innerSub.unsubscribe();
|
|
innerSub = null;
|
|
handledResult.subscribe(subscriber);
|
|
} else {
|
|
syncUnsub = true;
|
|
}
|
|
}));
|
|
if (syncUnsub) {
|
|
innerSub.unsubscribe();
|
|
innerSub = null;
|
|
handledResult.subscribe(subscriber);
|
|
}
|
|
});
|
|
}
|
|
__name(catchError, "catchError");
|
|
exports.catchError = catchError;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js
|
|
var require_argsArgArrayOrObject = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.argsArgArrayOrObject = void 0;
|
|
var isArray = Array.isArray;
|
|
var getPrototypeOf = Object.getPrototypeOf;
|
|
var objectProto = Object.prototype;
|
|
var getKeys = Object.keys;
|
|
function argsArgArrayOrObject(args) {
|
|
if (args.length === 1) {
|
|
var first_1 = args[0];
|
|
if (isArray(first_1)) {
|
|
return { args: first_1, keys: null };
|
|
}
|
|
if (isPOJO(first_1)) {
|
|
var keys = getKeys(first_1);
|
|
return {
|
|
args: keys.map(function(key) {
|
|
return first_1[key];
|
|
}),
|
|
keys
|
|
};
|
|
}
|
|
}
|
|
return { args, keys: null };
|
|
}
|
|
__name(argsArgArrayOrObject, "argsArgArrayOrObject");
|
|
exports.argsArgArrayOrObject = argsArgArrayOrObject;
|
|
function isPOJO(obj) {
|
|
return obj && typeof obj === "object" && getPrototypeOf(obj) === objectProto;
|
|
}
|
|
__name(isPOJO, "isPOJO");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js
|
|
var require_observeOn = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.observeOn = void 0;
|
|
var executeSchedule_1 = require_executeSchedule();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function observeOn(scheduler, delay) {
|
|
if (delay === void 0) {
|
|
delay = 0;
|
|
}
|
|
return lift_1.operate(function(source, subscriber) {
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
return executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
|
|
return subscriber.next(value);
|
|
}, delay);
|
|
}, function() {
|
|
return executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
|
|
return subscriber.complete();
|
|
}, delay);
|
|
}, function(err) {
|
|
return executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
|
|
return subscriber.error(err);
|
|
}, delay);
|
|
}));
|
|
});
|
|
}
|
|
__name(observeOn, "observeOn");
|
|
exports.observeOn = observeOn;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js
|
|
var require_subscribeOn = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.subscribeOn = void 0;
|
|
var lift_1 = require_lift();
|
|
function subscribeOn(scheduler, delay) {
|
|
if (delay === void 0) {
|
|
delay = 0;
|
|
}
|
|
return lift_1.operate(function(source, subscriber) {
|
|
subscriber.add(scheduler.schedule(function() {
|
|
return source.subscribe(subscriber);
|
|
}, delay));
|
|
});
|
|
}
|
|
__name(subscribeOn, "subscribeOn");
|
|
exports.subscribeOn = subscribeOn;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js
|
|
var require_scheduleObservable = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.scheduleObservable = void 0;
|
|
var innerFrom_1 = require_innerFrom();
|
|
var observeOn_1 = require_observeOn();
|
|
var subscribeOn_1 = require_subscribeOn();
|
|
function scheduleObservable(input, scheduler) {
|
|
return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler));
|
|
}
|
|
__name(scheduleObservable, "scheduleObservable");
|
|
exports.scheduleObservable = scheduleObservable;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js
|
|
var require_schedulePromise = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.schedulePromise = void 0;
|
|
var innerFrom_1 = require_innerFrom();
|
|
var observeOn_1 = require_observeOn();
|
|
var subscribeOn_1 = require_subscribeOn();
|
|
function schedulePromise(input, scheduler) {
|
|
return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler));
|
|
}
|
|
__name(schedulePromise, "schedulePromise");
|
|
exports.schedulePromise = schedulePromise;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js
|
|
var require_scheduleArray = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.scheduleArray = void 0;
|
|
var Observable_1 = require_Observable();
|
|
function scheduleArray(input, scheduler) {
|
|
return new Observable_1.Observable(function(subscriber) {
|
|
var i = 0;
|
|
return scheduler.schedule(function() {
|
|
if (i === input.length) {
|
|
subscriber.complete();
|
|
} else {
|
|
subscriber.next(input[i++]);
|
|
if (!subscriber.closed) {
|
|
this.schedule();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
__name(scheduleArray, "scheduleArray");
|
|
exports.scheduleArray = scheduleArray;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js
|
|
var require_scheduleIterable = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.scheduleIterable = void 0;
|
|
var Observable_1 = require_Observable();
|
|
var iterator_1 = require_iterator();
|
|
var isFunction_1 = require_isFunction();
|
|
var executeSchedule_1 = require_executeSchedule();
|
|
function scheduleIterable(input, scheduler) {
|
|
return new Observable_1.Observable(function(subscriber) {
|
|
var iterator;
|
|
executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
|
|
iterator = input[iterator_1.iterator]();
|
|
executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
|
|
var _a;
|
|
var value;
|
|
var done;
|
|
try {
|
|
_a = iterator.next(), value = _a.value, done = _a.done;
|
|
} catch (err) {
|
|
subscriber.error(err);
|
|
return;
|
|
}
|
|
if (done) {
|
|
subscriber.complete();
|
|
} else {
|
|
subscriber.next(value);
|
|
}
|
|
}, 0, true);
|
|
});
|
|
return function() {
|
|
return isFunction_1.isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return();
|
|
};
|
|
});
|
|
}
|
|
__name(scheduleIterable, "scheduleIterable");
|
|
exports.scheduleIterable = scheduleIterable;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js
|
|
var require_scheduleAsyncIterable = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.scheduleAsyncIterable = void 0;
|
|
var Observable_1 = require_Observable();
|
|
var executeSchedule_1 = require_executeSchedule();
|
|
function scheduleAsyncIterable(input, scheduler) {
|
|
if (!input) {
|
|
throw new Error("Iterable cannot be null");
|
|
}
|
|
return new Observable_1.Observable(function(subscriber) {
|
|
executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
|
|
var iterator = input[Symbol.asyncIterator]();
|
|
executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
|
|
iterator.next().then(function(result) {
|
|
if (result.done) {
|
|
subscriber.complete();
|
|
} else {
|
|
subscriber.next(result.value);
|
|
}
|
|
});
|
|
}, 0, true);
|
|
});
|
|
});
|
|
}
|
|
__name(scheduleAsyncIterable, "scheduleAsyncIterable");
|
|
exports.scheduleAsyncIterable = scheduleAsyncIterable;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js
|
|
var require_scheduleReadableStreamLike = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.scheduleReadableStreamLike = void 0;
|
|
var scheduleAsyncIterable_1 = require_scheduleAsyncIterable();
|
|
var isReadableStreamLike_1 = require_isReadableStreamLike();
|
|
function scheduleReadableStreamLike(input, scheduler) {
|
|
return scheduleAsyncIterable_1.scheduleAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(input), scheduler);
|
|
}
|
|
__name(scheduleReadableStreamLike, "scheduleReadableStreamLike");
|
|
exports.scheduleReadableStreamLike = scheduleReadableStreamLike;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js
|
|
var require_scheduled = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.scheduled = void 0;
|
|
var scheduleObservable_1 = require_scheduleObservable();
|
|
var schedulePromise_1 = require_schedulePromise();
|
|
var scheduleArray_1 = require_scheduleArray();
|
|
var scheduleIterable_1 = require_scheduleIterable();
|
|
var scheduleAsyncIterable_1 = require_scheduleAsyncIterable();
|
|
var isInteropObservable_1 = require_isInteropObservable();
|
|
var isPromise_1 = require_isPromise();
|
|
var isArrayLike_1 = require_isArrayLike();
|
|
var isIterable_1 = require_isIterable();
|
|
var isAsyncIterable_1 = require_isAsyncIterable();
|
|
var throwUnobservableError_1 = require_throwUnobservableError();
|
|
var isReadableStreamLike_1 = require_isReadableStreamLike();
|
|
var scheduleReadableStreamLike_1 = require_scheduleReadableStreamLike();
|
|
function scheduled(input, scheduler) {
|
|
if (input != null) {
|
|
if (isInteropObservable_1.isInteropObservable(input)) {
|
|
return scheduleObservable_1.scheduleObservable(input, scheduler);
|
|
}
|
|
if (isArrayLike_1.isArrayLike(input)) {
|
|
return scheduleArray_1.scheduleArray(input, scheduler);
|
|
}
|
|
if (isPromise_1.isPromise(input)) {
|
|
return schedulePromise_1.schedulePromise(input, scheduler);
|
|
}
|
|
if (isAsyncIterable_1.isAsyncIterable(input)) {
|
|
return scheduleAsyncIterable_1.scheduleAsyncIterable(input, scheduler);
|
|
}
|
|
if (isIterable_1.isIterable(input)) {
|
|
return scheduleIterable_1.scheduleIterable(input, scheduler);
|
|
}
|
|
if (isReadableStreamLike_1.isReadableStreamLike(input)) {
|
|
return scheduleReadableStreamLike_1.scheduleReadableStreamLike(input, scheduler);
|
|
}
|
|
}
|
|
throw throwUnobservableError_1.createInvalidObservableTypeError(input);
|
|
}
|
|
__name(scheduled, "scheduled");
|
|
exports.scheduled = scheduled;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/from.js
|
|
var require_from = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/from.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.from = void 0;
|
|
var scheduled_1 = require_scheduled();
|
|
var innerFrom_1 = require_innerFrom();
|
|
function from(input, scheduler) {
|
|
return scheduler ? scheduled_1.scheduled(input, scheduler) : innerFrom_1.innerFrom(input);
|
|
}
|
|
__name(from, "from");
|
|
exports.from = from;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/map.js
|
|
var require_map2 = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/map.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.map = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function map2(project, thisArg) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var index = 0;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
subscriber.next(project.call(thisArg, value, index++));
|
|
}));
|
|
});
|
|
}
|
|
__name(map2, "map");
|
|
exports.map = map2;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js
|
|
var require_mapOneOrManyArgs = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.mapOneOrManyArgs = void 0;
|
|
var map_1 = require_map2();
|
|
var isArray = Array.isArray;
|
|
function callOrApply(fn, args) {
|
|
return isArray(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args);
|
|
}
|
|
__name(callOrApply, "callOrApply");
|
|
function mapOneOrManyArgs(fn) {
|
|
return map_1.map(function(args) {
|
|
return callOrApply(fn, args);
|
|
});
|
|
}
|
|
__name(mapOneOrManyArgs, "mapOneOrManyArgs");
|
|
exports.mapOneOrManyArgs = mapOneOrManyArgs;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/createObject.js
|
|
var require_createObject = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/createObject.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.createObject = void 0;
|
|
function createObject(keys, values) {
|
|
return keys.reduce(function(result, key, i) {
|
|
return result[key] = values[i], result;
|
|
}, {});
|
|
}
|
|
__name(createObject, "createObject");
|
|
exports.createObject = createObject;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js
|
|
var require_combineLatest = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.combineLatestInit = exports.combineLatest = void 0;
|
|
var Observable_1 = require_Observable();
|
|
var argsArgArrayOrObject_1 = require_argsArgArrayOrObject();
|
|
var from_1 = require_from();
|
|
var identity_1 = require_identity();
|
|
var mapOneOrManyArgs_1 = require_mapOneOrManyArgs();
|
|
var args_1 = require_args();
|
|
var createObject_1 = require_createObject();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var executeSchedule_1 = require_executeSchedule();
|
|
function combineLatest() {
|
|
var args = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
args[_i] = arguments[_i];
|
|
}
|
|
var scheduler = args_1.popScheduler(args);
|
|
var resultSelector = args_1.popResultSelector(args);
|
|
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), observables = _a.args, keys = _a.keys;
|
|
if (observables.length === 0) {
|
|
return from_1.from([], scheduler);
|
|
}
|
|
var result = new Observable_1.Observable(combineLatestInit(observables, scheduler, keys ? function(values) {
|
|
return createObject_1.createObject(keys, values);
|
|
} : identity_1.identity));
|
|
return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result;
|
|
}
|
|
__name(combineLatest, "combineLatest");
|
|
exports.combineLatest = combineLatest;
|
|
function combineLatestInit(observables, scheduler, valueTransform) {
|
|
if (valueTransform === void 0) {
|
|
valueTransform = identity_1.identity;
|
|
}
|
|
return function(subscriber) {
|
|
maybeSchedule(scheduler, function() {
|
|
var length = observables.length;
|
|
var values = new Array(length);
|
|
var active = length;
|
|
var remainingFirstValues = length;
|
|
var _loop_1 = /* @__PURE__ */ __name(function(i2) {
|
|
maybeSchedule(scheduler, function() {
|
|
var source = from_1.from(observables[i2], scheduler);
|
|
var hasFirstValue = false;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
values[i2] = value;
|
|
if (!hasFirstValue) {
|
|
hasFirstValue = true;
|
|
remainingFirstValues--;
|
|
}
|
|
if (!remainingFirstValues) {
|
|
subscriber.next(valueTransform(values.slice()));
|
|
}
|
|
}, function() {
|
|
if (!--active) {
|
|
subscriber.complete();
|
|
}
|
|
}));
|
|
}, subscriber);
|
|
}, "_loop_1");
|
|
for (var i = 0; i < length; i++) {
|
|
_loop_1(i);
|
|
}
|
|
}, subscriber);
|
|
};
|
|
}
|
|
__name(combineLatestInit, "combineLatestInit");
|
|
exports.combineLatestInit = combineLatestInit;
|
|
function maybeSchedule(scheduler, execute, subscription) {
|
|
if (scheduler) {
|
|
executeSchedule_1.executeSchedule(subscription, scheduler, execute);
|
|
} else {
|
|
execute();
|
|
}
|
|
}
|
|
__name(maybeSchedule, "maybeSchedule");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js
|
|
var require_mergeInternals = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.mergeInternals = void 0;
|
|
var innerFrom_1 = require_innerFrom();
|
|
var executeSchedule_1 = require_executeSchedule();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
|
|
var buffer = [];
|
|
var active = 0;
|
|
var index = 0;
|
|
var isComplete = false;
|
|
var checkComplete = /* @__PURE__ */ __name(function() {
|
|
if (isComplete && !buffer.length && !active) {
|
|
subscriber.complete();
|
|
}
|
|
}, "checkComplete");
|
|
var outerNext = /* @__PURE__ */ __name(function(value) {
|
|
return active < concurrent ? doInnerSub(value) : buffer.push(value);
|
|
}, "outerNext");
|
|
var doInnerSub = /* @__PURE__ */ __name(function(value) {
|
|
expand && subscriber.next(value);
|
|
active++;
|
|
var innerComplete = false;
|
|
innerFrom_1.innerFrom(project(value, index++)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(innerValue) {
|
|
onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);
|
|
if (expand) {
|
|
outerNext(innerValue);
|
|
} else {
|
|
subscriber.next(innerValue);
|
|
}
|
|
}, function() {
|
|
innerComplete = true;
|
|
}, void 0, function() {
|
|
if (innerComplete) {
|
|
try {
|
|
active--;
|
|
var _loop_1 = /* @__PURE__ */ __name(function() {
|
|
var bufferedValue = buffer.shift();
|
|
if (innerSubScheduler) {
|
|
executeSchedule_1.executeSchedule(subscriber, innerSubScheduler, function() {
|
|
return doInnerSub(bufferedValue);
|
|
});
|
|
} else {
|
|
doInnerSub(bufferedValue);
|
|
}
|
|
}, "_loop_1");
|
|
while (buffer.length && active < concurrent) {
|
|
_loop_1();
|
|
}
|
|
checkComplete();
|
|
} catch (err) {
|
|
subscriber.error(err);
|
|
}
|
|
}
|
|
}));
|
|
}, "doInnerSub");
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, outerNext, function() {
|
|
isComplete = true;
|
|
checkComplete();
|
|
}));
|
|
return function() {
|
|
additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();
|
|
};
|
|
}
|
|
__name(mergeInternals, "mergeInternals");
|
|
exports.mergeInternals = mergeInternals;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js
|
|
var require_mergeMap = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.mergeMap = void 0;
|
|
var map_1 = require_map2();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var lift_1 = require_lift();
|
|
var mergeInternals_1 = require_mergeInternals();
|
|
var isFunction_1 = require_isFunction();
|
|
function mergeMap(project, resultSelector, concurrent) {
|
|
if (concurrent === void 0) {
|
|
concurrent = Infinity;
|
|
}
|
|
if (isFunction_1.isFunction(resultSelector)) {
|
|
return mergeMap(function(a, i) {
|
|
return map_1.map(function(b, ii) {
|
|
return resultSelector(a, b, i, ii);
|
|
})(innerFrom_1.innerFrom(project(a, i)));
|
|
}, concurrent);
|
|
} else if (typeof resultSelector === "number") {
|
|
concurrent = resultSelector;
|
|
}
|
|
return lift_1.operate(function(source, subscriber) {
|
|
return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent);
|
|
});
|
|
}
|
|
__name(mergeMap, "mergeMap");
|
|
exports.mergeMap = mergeMap;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js
|
|
var require_scanInternals = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.scanInternals = void 0;
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
|
|
return function(source, subscriber) {
|
|
var hasState = hasSeed;
|
|
var state = seed;
|
|
var index = 0;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var i = index++;
|
|
state = hasState ? accumulator(state, value, i) : (hasState = true, value);
|
|
emitOnNext && subscriber.next(state);
|
|
}, emitBeforeComplete && (function() {
|
|
hasState && subscriber.next(state);
|
|
subscriber.complete();
|
|
})));
|
|
};
|
|
}
|
|
__name(scanInternals, "scanInternals");
|
|
exports.scanInternals = scanInternals;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/reduce.js
|
|
var require_reduce = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/reduce.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.reduce = void 0;
|
|
var scanInternals_1 = require_scanInternals();
|
|
var lift_1 = require_lift();
|
|
function reduce(accumulator, seed) {
|
|
return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, false, true));
|
|
}
|
|
__name(reduce, "reduce");
|
|
exports.reduce = reduce;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/toArray.js
|
|
var require_toArray = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/toArray.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.toArray = void 0;
|
|
var reduce_1 = require_reduce();
|
|
var lift_1 = require_lift();
|
|
var arrReducer = /* @__PURE__ */ __name(function(arr, value) {
|
|
return arr.push(value), arr;
|
|
}, "arrReducer");
|
|
function toArray() {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
reduce_1.reduce(arrReducer, [])(source).subscribe(subscriber);
|
|
});
|
|
}
|
|
__name(toArray, "toArray");
|
|
exports.toArray = toArray;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js
|
|
var require_joinAllInternals = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.joinAllInternals = void 0;
|
|
var identity_1 = require_identity();
|
|
var mapOneOrManyArgs_1 = require_mapOneOrManyArgs();
|
|
var pipe_1 = require_pipe();
|
|
var mergeMap_1 = require_mergeMap();
|
|
var toArray_1 = require_toArray();
|
|
function joinAllInternals(joinFn, project) {
|
|
return pipe_1.pipe(toArray_1.toArray(), mergeMap_1.mergeMap(function(sources) {
|
|
return joinFn(sources);
|
|
}), project ? mapOneOrManyArgs_1.mapOneOrManyArgs(project) : identity_1.identity);
|
|
}
|
|
__name(joinAllInternals, "joinAllInternals");
|
|
exports.joinAllInternals = joinAllInternals;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js
|
|
var require_combineLatestAll = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.combineLatestAll = void 0;
|
|
var combineLatest_1 = require_combineLatest();
|
|
var joinAllInternals_1 = require_joinAllInternals();
|
|
function combineLatestAll(project) {
|
|
return joinAllInternals_1.joinAllInternals(combineLatest_1.combineLatest, project);
|
|
}
|
|
__name(combineLatestAll, "combineLatestAll");
|
|
exports.combineLatestAll = combineLatestAll;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/combineAll.js
|
|
var require_combineAll = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/combineAll.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.combineAll = void 0;
|
|
var combineLatestAll_1 = require_combineLatestAll();
|
|
exports.combineAll = combineLatestAll_1.combineLatestAll;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js
|
|
var require_argsOrArgArray = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.argsOrArgArray = void 0;
|
|
var isArray = Array.isArray;
|
|
function argsOrArgArray(args) {
|
|
return args.length === 1 && isArray(args[0]) ? args[0] : args;
|
|
}
|
|
__name(argsOrArgArray, "argsOrArgArray");
|
|
exports.argsOrArgArray = argsOrArgArray;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js
|
|
var require_combineLatest2 = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.combineLatest = void 0;
|
|
var combineLatest_1 = require_combineLatest();
|
|
var lift_1 = require_lift();
|
|
var argsOrArgArray_1 = require_argsOrArgArray();
|
|
var mapOneOrManyArgs_1 = require_mapOneOrManyArgs();
|
|
var pipe_1 = require_pipe();
|
|
var args_1 = require_args();
|
|
function combineLatest() {
|
|
var args = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
args[_i] = arguments[_i];
|
|
}
|
|
var resultSelector = args_1.popResultSelector(args);
|
|
return resultSelector ? pipe_1.pipe(combineLatest.apply(void 0, __spreadArray([], __read(args))), mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : lift_1.operate(function(source, subscriber) {
|
|
combineLatest_1.combineLatestInit(__spreadArray([source], __read(argsOrArgArray_1.argsOrArgArray(args))))(subscriber);
|
|
});
|
|
}
|
|
__name(combineLatest, "combineLatest");
|
|
exports.combineLatest = combineLatest;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js
|
|
var require_combineLatestWith = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.combineLatestWith = void 0;
|
|
var combineLatest_1 = require_combineLatest2();
|
|
function combineLatestWith() {
|
|
var otherSources = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
otherSources[_i] = arguments[_i];
|
|
}
|
|
return combineLatest_1.combineLatest.apply(void 0, __spreadArray([], __read(otherSources)));
|
|
}
|
|
__name(combineLatestWith, "combineLatestWith");
|
|
exports.combineLatestWith = combineLatestWith;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js
|
|
var require_mergeAll = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.mergeAll = void 0;
|
|
var mergeMap_1 = require_mergeMap();
|
|
var identity_1 = require_identity();
|
|
function mergeAll(concurrent) {
|
|
if (concurrent === void 0) {
|
|
concurrent = Infinity;
|
|
}
|
|
return mergeMap_1.mergeMap(identity_1.identity, concurrent);
|
|
}
|
|
__name(mergeAll, "mergeAll");
|
|
exports.mergeAll = mergeAll;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js
|
|
var require_concatAll = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.concatAll = void 0;
|
|
var mergeAll_1 = require_mergeAll();
|
|
function concatAll() {
|
|
return mergeAll_1.mergeAll(1);
|
|
}
|
|
__name(concatAll, "concatAll");
|
|
exports.concatAll = concatAll;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/concat.js
|
|
var require_concat2 = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/concat.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.concat = void 0;
|
|
var lift_1 = require_lift();
|
|
var concatAll_1 = require_concatAll();
|
|
var args_1 = require_args();
|
|
var from_1 = require_from();
|
|
function concat() {
|
|
var args = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
args[_i] = arguments[_i];
|
|
}
|
|
var scheduler = args_1.popScheduler(args);
|
|
return lift_1.operate(function(source, subscriber) {
|
|
concatAll_1.concatAll()(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
|
|
});
|
|
}
|
|
__name(concat, "concat");
|
|
exports.concat = concat;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js
|
|
var require_concatMap = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.concatMap = void 0;
|
|
var mergeMap_1 = require_mergeMap();
|
|
var isFunction_1 = require_isFunction();
|
|
function concatMap2(project, resultSelector) {
|
|
return isFunction_1.isFunction(resultSelector) ? mergeMap_1.mergeMap(project, resultSelector, 1) : mergeMap_1.mergeMap(project, 1);
|
|
}
|
|
__name(concatMap2, "concatMap");
|
|
exports.concatMap = concatMap2;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js
|
|
var require_concatMapTo = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.concatMapTo = void 0;
|
|
var concatMap_1 = require_concatMap();
|
|
var isFunction_1 = require_isFunction();
|
|
function concatMapTo(innerObservable, resultSelector) {
|
|
return isFunction_1.isFunction(resultSelector) ? concatMap_1.concatMap(function() {
|
|
return innerObservable;
|
|
}, resultSelector) : concatMap_1.concatMap(function() {
|
|
return innerObservable;
|
|
});
|
|
}
|
|
__name(concatMapTo, "concatMapTo");
|
|
exports.concatMapTo = concatMapTo;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js
|
|
var require_concatWith = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.concatWith = void 0;
|
|
var concat_1 = require_concat2();
|
|
function concatWith() {
|
|
var otherSources = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
otherSources[_i] = arguments[_i];
|
|
}
|
|
return concat_1.concat.apply(void 0, __spreadArray([], __read(otherSources)));
|
|
}
|
|
__name(concatWith, "concatWith");
|
|
exports.concatWith = concatWith;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js
|
|
var require_ObjectUnsubscribedError = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.ObjectUnsubscribedError = void 0;
|
|
var createErrorClass_1 = require_createErrorClass();
|
|
exports.ObjectUnsubscribedError = createErrorClass_1.createErrorClass(function(_super) {
|
|
return /* @__PURE__ */ __name(function ObjectUnsubscribedErrorImpl() {
|
|
_super(this);
|
|
this.name = "ObjectUnsubscribedError";
|
|
this.message = "object unsubscribed";
|
|
}, "ObjectUnsubscribedErrorImpl");
|
|
});
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/Subject.js
|
|
var require_Subject = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/Subject.js"(exports) {
|
|
"use strict";
|
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
var extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
d2.__proto__ = b2;
|
|
} || function(d2, b2) {
|
|
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
};
|
|
return extendStatics(d, b);
|
|
}, "extendStatics");
|
|
return function(d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() {
|
|
this.constructor = d;
|
|
}
|
|
__name(__, "__");
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
var __values = exports && exports.__values || function(o) {
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
if (m) return m.call(o);
|
|
if (o && typeof o.length === "number") return {
|
|
next: /* @__PURE__ */ __name(function() {
|
|
if (o && i >= o.length) o = void 0;
|
|
return { value: o && o[i++], done: !o };
|
|
}, "next")
|
|
};
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.AnonymousSubject = exports.Subject = void 0;
|
|
var Observable_1 = require_Observable();
|
|
var Subscription_1 = require_Subscription();
|
|
var ObjectUnsubscribedError_1 = require_ObjectUnsubscribedError();
|
|
var arrRemove_1 = require_arrRemove();
|
|
var errorContext_1 = require_errorContext();
|
|
var Subject = (function(_super) {
|
|
__extends(Subject2, _super);
|
|
function Subject2() {
|
|
var _this = _super.call(this) || this;
|
|
_this.closed = false;
|
|
_this.currentObservers = null;
|
|
_this.observers = [];
|
|
_this.isStopped = false;
|
|
_this.hasError = false;
|
|
_this.thrownError = null;
|
|
return _this;
|
|
}
|
|
__name(Subject2, "Subject");
|
|
Subject2.prototype.lift = function(operator) {
|
|
var subject = new AnonymousSubject(this, this);
|
|
subject.operator = operator;
|
|
return subject;
|
|
};
|
|
Subject2.prototype._throwIfClosed = function() {
|
|
if (this.closed) {
|
|
throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();
|
|
}
|
|
};
|
|
Subject2.prototype.next = function(value) {
|
|
var _this = this;
|
|
errorContext_1.errorContext(function() {
|
|
var e_1, _a;
|
|
_this._throwIfClosed();
|
|
if (!_this.isStopped) {
|
|
if (!_this.currentObservers) {
|
|
_this.currentObservers = Array.from(_this.observers);
|
|
}
|
|
try {
|
|
for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
var observer = _c.value;
|
|
observer.next(value);
|
|
}
|
|
} catch (e_1_1) {
|
|
e_1 = { error: e_1_1 };
|
|
} finally {
|
|
try {
|
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
} finally {
|
|
if (e_1) throw e_1.error;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
};
|
|
Subject2.prototype.error = function(err) {
|
|
var _this = this;
|
|
errorContext_1.errorContext(function() {
|
|
_this._throwIfClosed();
|
|
if (!_this.isStopped) {
|
|
_this.hasError = _this.isStopped = true;
|
|
_this.thrownError = err;
|
|
var observers = _this.observers;
|
|
while (observers.length) {
|
|
observers.shift().error(err);
|
|
}
|
|
}
|
|
});
|
|
};
|
|
Subject2.prototype.complete = function() {
|
|
var _this = this;
|
|
errorContext_1.errorContext(function() {
|
|
_this._throwIfClosed();
|
|
if (!_this.isStopped) {
|
|
_this.isStopped = true;
|
|
var observers = _this.observers;
|
|
while (observers.length) {
|
|
observers.shift().complete();
|
|
}
|
|
}
|
|
});
|
|
};
|
|
Subject2.prototype.unsubscribe = function() {
|
|
this.isStopped = this.closed = true;
|
|
this.observers = this.currentObservers = null;
|
|
};
|
|
Object.defineProperty(Subject2.prototype, "observed", {
|
|
get: /* @__PURE__ */ __name(function() {
|
|
var _a;
|
|
return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
}, "get"),
|
|
enumerable: false,
|
|
configurable: true
|
|
});
|
|
Subject2.prototype._trySubscribe = function(subscriber) {
|
|
this._throwIfClosed();
|
|
return _super.prototype._trySubscribe.call(this, subscriber);
|
|
};
|
|
Subject2.prototype._subscribe = function(subscriber) {
|
|
this._throwIfClosed();
|
|
this._checkFinalizedStatuses(subscriber);
|
|
return this._innerSubscribe(subscriber);
|
|
};
|
|
Subject2.prototype._innerSubscribe = function(subscriber) {
|
|
var _this = this;
|
|
var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
|
|
if (hasError || isStopped) {
|
|
return Subscription_1.EMPTY_SUBSCRIPTION;
|
|
}
|
|
this.currentObservers = null;
|
|
observers.push(subscriber);
|
|
return new Subscription_1.Subscription(function() {
|
|
_this.currentObservers = null;
|
|
arrRemove_1.arrRemove(observers, subscriber);
|
|
});
|
|
};
|
|
Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
|
|
if (hasError) {
|
|
subscriber.error(thrownError);
|
|
} else if (isStopped) {
|
|
subscriber.complete();
|
|
}
|
|
};
|
|
Subject2.prototype.asObservable = function() {
|
|
var observable = new Observable_1.Observable();
|
|
observable.source = this;
|
|
return observable;
|
|
};
|
|
Subject2.create = function(destination, source) {
|
|
return new AnonymousSubject(destination, source);
|
|
};
|
|
return Subject2;
|
|
})(Observable_1.Observable);
|
|
exports.Subject = Subject;
|
|
var AnonymousSubject = (function(_super) {
|
|
__extends(AnonymousSubject2, _super);
|
|
function AnonymousSubject2(destination, source) {
|
|
var _this = _super.call(this) || this;
|
|
_this.destination = destination;
|
|
_this.source = source;
|
|
return _this;
|
|
}
|
|
__name(AnonymousSubject2, "AnonymousSubject");
|
|
AnonymousSubject2.prototype.next = function(value) {
|
|
var _a, _b;
|
|
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
|
|
};
|
|
AnonymousSubject2.prototype.error = function(err) {
|
|
var _a, _b;
|
|
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
|
|
};
|
|
AnonymousSubject2.prototype.complete = function() {
|
|
var _a, _b;
|
|
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
};
|
|
AnonymousSubject2.prototype._subscribe = function(subscriber) {
|
|
var _a, _b;
|
|
return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : Subscription_1.EMPTY_SUBSCRIPTION;
|
|
};
|
|
return AnonymousSubject2;
|
|
})(Subject);
|
|
exports.AnonymousSubject = AnonymousSubject;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js
|
|
var require_fromSubscribable = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.fromSubscribable = void 0;
|
|
var Observable_1 = require_Observable();
|
|
function fromSubscribable(subscribable) {
|
|
return new Observable_1.Observable(function(subscriber) {
|
|
return subscribable.subscribe(subscriber);
|
|
});
|
|
}
|
|
__name(fromSubscribable, "fromSubscribable");
|
|
exports.fromSubscribable = fromSubscribable;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/connect.js
|
|
var require_connect = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/connect.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.connect = void 0;
|
|
var Subject_1 = require_Subject();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var lift_1 = require_lift();
|
|
var fromSubscribable_1 = require_fromSubscribable();
|
|
var DEFAULT_CONFIG = {
|
|
connector: /* @__PURE__ */ __name(function() {
|
|
return new Subject_1.Subject();
|
|
}, "connector")
|
|
};
|
|
function connect(selector, config) {
|
|
if (config === void 0) {
|
|
config = DEFAULT_CONFIG;
|
|
}
|
|
var connector = config.connector;
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var subject = connector();
|
|
innerFrom_1.innerFrom(selector(fromSubscribable_1.fromSubscribable(subject))).subscribe(subscriber);
|
|
subscriber.add(source.subscribe(subject));
|
|
});
|
|
}
|
|
__name(connect, "connect");
|
|
exports.connect = connect;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/count.js
|
|
var require_count = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/count.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.count = void 0;
|
|
var reduce_1 = require_reduce();
|
|
function count(predicate) {
|
|
return reduce_1.reduce(function(total, value, i) {
|
|
return !predicate || predicate(value, i) ? total + 1 : total;
|
|
}, 0);
|
|
}
|
|
__name(count, "count");
|
|
exports.count = count;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/debounce.js
|
|
var require_debounce = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/debounce.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.debounce = void 0;
|
|
var lift_1 = require_lift();
|
|
var noop_1 = require_noop();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var innerFrom_1 = require_innerFrom();
|
|
function debounce(durationSelector) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var hasValue = false;
|
|
var lastValue = null;
|
|
var durationSubscriber = null;
|
|
var emit = /* @__PURE__ */ __name(function() {
|
|
durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
|
|
durationSubscriber = null;
|
|
if (hasValue) {
|
|
hasValue = false;
|
|
var value = lastValue;
|
|
lastValue = null;
|
|
subscriber.next(value);
|
|
}
|
|
}, "emit");
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
|
|
hasValue = true;
|
|
lastValue = value;
|
|
durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, emit, noop_1.noop);
|
|
innerFrom_1.innerFrom(durationSelector(value)).subscribe(durationSubscriber);
|
|
}, function() {
|
|
emit();
|
|
subscriber.complete();
|
|
}, void 0, function() {
|
|
lastValue = durationSubscriber = null;
|
|
}));
|
|
});
|
|
}
|
|
__name(debounce, "debounce");
|
|
exports.debounce = debounce;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js
|
|
var require_debounceTime = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.debounceTime = void 0;
|
|
var async_1 = require_async();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function debounceTime(dueTime, scheduler) {
|
|
if (scheduler === void 0) {
|
|
scheduler = async_1.asyncScheduler;
|
|
}
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var activeTask = null;
|
|
var lastValue = null;
|
|
var lastTime = null;
|
|
var emit = /* @__PURE__ */ __name(function() {
|
|
if (activeTask) {
|
|
activeTask.unsubscribe();
|
|
activeTask = null;
|
|
var value = lastValue;
|
|
lastValue = null;
|
|
subscriber.next(value);
|
|
}
|
|
}, "emit");
|
|
function emitWhenIdle() {
|
|
var targetTime = lastTime + dueTime;
|
|
var now = scheduler.now();
|
|
if (now < targetTime) {
|
|
activeTask = this.schedule(void 0, targetTime - now);
|
|
subscriber.add(activeTask);
|
|
return;
|
|
}
|
|
emit();
|
|
}
|
|
__name(emitWhenIdle, "emitWhenIdle");
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
lastValue = value;
|
|
lastTime = scheduler.now();
|
|
if (!activeTask) {
|
|
activeTask = scheduler.schedule(emitWhenIdle, dueTime);
|
|
subscriber.add(activeTask);
|
|
}
|
|
}, function() {
|
|
emit();
|
|
subscriber.complete();
|
|
}, void 0, function() {
|
|
lastValue = activeTask = null;
|
|
}));
|
|
});
|
|
}
|
|
__name(debounceTime, "debounceTime");
|
|
exports.debounceTime = debounceTime;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js
|
|
var require_defaultIfEmpty = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.defaultIfEmpty = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function defaultIfEmpty(defaultValue) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var hasValue = false;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
hasValue = true;
|
|
subscriber.next(value);
|
|
}, function() {
|
|
if (!hasValue) {
|
|
subscriber.next(defaultValue);
|
|
}
|
|
subscriber.complete();
|
|
}));
|
|
});
|
|
}
|
|
__name(defaultIfEmpty, "defaultIfEmpty");
|
|
exports.defaultIfEmpty = defaultIfEmpty;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/concat.js
|
|
var require_concat3 = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/concat.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.concat = void 0;
|
|
var concatAll_1 = require_concatAll();
|
|
var args_1 = require_args();
|
|
var from_1 = require_from();
|
|
function concat() {
|
|
var args = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
args[_i] = arguments[_i];
|
|
}
|
|
return concatAll_1.concatAll()(from_1.from(args, args_1.popScheduler(args)));
|
|
}
|
|
__name(concat, "concat");
|
|
exports.concat = concat;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/empty.js
|
|
var require_empty = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/empty.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.empty = exports.EMPTY = void 0;
|
|
var Observable_1 = require_Observable();
|
|
exports.EMPTY = new Observable_1.Observable(function(subscriber) {
|
|
return subscriber.complete();
|
|
});
|
|
function empty(scheduler) {
|
|
return scheduler ? emptyScheduled(scheduler) : exports.EMPTY;
|
|
}
|
|
__name(empty, "empty");
|
|
exports.empty = empty;
|
|
function emptyScheduled(scheduler) {
|
|
return new Observable_1.Observable(function(subscriber) {
|
|
return scheduler.schedule(function() {
|
|
return subscriber.complete();
|
|
});
|
|
});
|
|
}
|
|
__name(emptyScheduled, "emptyScheduled");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/take.js
|
|
var require_take = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/take.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.take = void 0;
|
|
var empty_1 = require_empty();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function take(count) {
|
|
return count <= 0 ? function() {
|
|
return empty_1.EMPTY;
|
|
} : lift_1.operate(function(source, subscriber) {
|
|
var seen = 0;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
if (++seen <= count) {
|
|
subscriber.next(value);
|
|
if (count <= seen) {
|
|
subscriber.complete();
|
|
}
|
|
}
|
|
}));
|
|
});
|
|
}
|
|
__name(take, "take");
|
|
exports.take = take;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js
|
|
var require_ignoreElements = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.ignoreElements = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var noop_1 = require_noop();
|
|
function ignoreElements() {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, noop_1.noop));
|
|
});
|
|
}
|
|
__name(ignoreElements, "ignoreElements");
|
|
exports.ignoreElements = ignoreElements;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mapTo.js
|
|
var require_mapTo = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mapTo.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.mapTo = void 0;
|
|
var map_1 = require_map2();
|
|
function mapTo(value) {
|
|
return map_1.map(function() {
|
|
return value;
|
|
});
|
|
}
|
|
__name(mapTo, "mapTo");
|
|
exports.mapTo = mapTo;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js
|
|
var require_delayWhen = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.delayWhen = void 0;
|
|
var concat_1 = require_concat3();
|
|
var take_1 = require_take();
|
|
var ignoreElements_1 = require_ignoreElements();
|
|
var mapTo_1 = require_mapTo();
|
|
var mergeMap_1 = require_mergeMap();
|
|
var innerFrom_1 = require_innerFrom();
|
|
function delayWhen(delayDurationSelector, subscriptionDelay) {
|
|
if (subscriptionDelay) {
|
|
return function(source) {
|
|
return concat_1.concat(subscriptionDelay.pipe(take_1.take(1), ignoreElements_1.ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
|
|
};
|
|
}
|
|
return mergeMap_1.mergeMap(function(value, index) {
|
|
return innerFrom_1.innerFrom(delayDurationSelector(value, index)).pipe(take_1.take(1), mapTo_1.mapTo(value));
|
|
});
|
|
}
|
|
__name(delayWhen, "delayWhen");
|
|
exports.delayWhen = delayWhen;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/delay.js
|
|
var require_delay = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/delay.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.delay = void 0;
|
|
var async_1 = require_async();
|
|
var delayWhen_1 = require_delayWhen();
|
|
var timer_1 = require_timer();
|
|
function delay(due, scheduler) {
|
|
if (scheduler === void 0) {
|
|
scheduler = async_1.asyncScheduler;
|
|
}
|
|
var duration = timer_1.timer(due, scheduler);
|
|
return delayWhen_1.delayWhen(function() {
|
|
return duration;
|
|
});
|
|
}
|
|
__name(delay, "delay");
|
|
exports.delay = delay;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/of.js
|
|
var require_of = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/of.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.of = void 0;
|
|
var args_1 = require_args();
|
|
var from_1 = require_from();
|
|
function of() {
|
|
var args = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
args[_i] = arguments[_i];
|
|
}
|
|
var scheduler = args_1.popScheduler(args);
|
|
return from_1.from(args, scheduler);
|
|
}
|
|
__name(of, "of");
|
|
exports.of = of;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/throwError.js
|
|
var require_throwError = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/throwError.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.throwError = void 0;
|
|
var Observable_1 = require_Observable();
|
|
var isFunction_1 = require_isFunction();
|
|
function throwError(errorOrErrorFactory, scheduler) {
|
|
var errorFactory = isFunction_1.isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function() {
|
|
return errorOrErrorFactory;
|
|
};
|
|
var init = /* @__PURE__ */ __name(function(subscriber) {
|
|
return subscriber.error(errorFactory());
|
|
}, "init");
|
|
return new Observable_1.Observable(scheduler ? function(subscriber) {
|
|
return scheduler.schedule(init, 0, subscriber);
|
|
} : init);
|
|
}
|
|
__name(throwError, "throwError");
|
|
exports.throwError = throwError;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/Notification.js
|
|
var require_Notification = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/Notification.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.observeNotification = exports.Notification = exports.NotificationKind = void 0;
|
|
var empty_1 = require_empty();
|
|
var of_1 = require_of();
|
|
var throwError_1 = require_throwError();
|
|
var isFunction_1 = require_isFunction();
|
|
var NotificationKind;
|
|
(function(NotificationKind2) {
|
|
NotificationKind2["NEXT"] = "N";
|
|
NotificationKind2["ERROR"] = "E";
|
|
NotificationKind2["COMPLETE"] = "C";
|
|
})(NotificationKind = exports.NotificationKind || (exports.NotificationKind = {}));
|
|
var Notification = (function() {
|
|
function Notification2(kind, value, error) {
|
|
this.kind = kind;
|
|
this.value = value;
|
|
this.error = error;
|
|
this.hasValue = kind === "N";
|
|
}
|
|
__name(Notification2, "Notification");
|
|
Notification2.prototype.observe = function(observer) {
|
|
return observeNotification(this, observer);
|
|
};
|
|
Notification2.prototype.do = function(nextHandler, errorHandler, completeHandler) {
|
|
var _a = this, kind = _a.kind, value = _a.value, error = _a.error;
|
|
return kind === "N" ? nextHandler === null || nextHandler === void 0 ? void 0 : nextHandler(value) : kind === "E" ? errorHandler === null || errorHandler === void 0 ? void 0 : errorHandler(error) : completeHandler === null || completeHandler === void 0 ? void 0 : completeHandler();
|
|
};
|
|
Notification2.prototype.accept = function(nextOrObserver, error, complete) {
|
|
var _a;
|
|
return isFunction_1.isFunction((_a = nextOrObserver) === null || _a === void 0 ? void 0 : _a.next) ? this.observe(nextOrObserver) : this.do(nextOrObserver, error, complete);
|
|
};
|
|
Notification2.prototype.toObservable = function() {
|
|
var _a = this, kind = _a.kind, value = _a.value, error = _a.error;
|
|
var result = kind === "N" ? of_1.of(value) : kind === "E" ? throwError_1.throwError(function() {
|
|
return error;
|
|
}) : kind === "C" ? empty_1.EMPTY : 0;
|
|
if (!result) {
|
|
throw new TypeError("Unexpected notification kind " + kind);
|
|
}
|
|
return result;
|
|
};
|
|
Notification2.createNext = function(value) {
|
|
return new Notification2("N", value);
|
|
};
|
|
Notification2.createError = function(err) {
|
|
return new Notification2("E", void 0, err);
|
|
};
|
|
Notification2.createComplete = function() {
|
|
return Notification2.completeNotification;
|
|
};
|
|
Notification2.completeNotification = new Notification2("C");
|
|
return Notification2;
|
|
})();
|
|
exports.Notification = Notification;
|
|
function observeNotification(notification, observer) {
|
|
var _a, _b, _c;
|
|
var _d = notification, kind = _d.kind, value = _d.value, error = _d.error;
|
|
if (typeof kind !== "string") {
|
|
throw new TypeError('Invalid notification, missing "kind"');
|
|
}
|
|
kind === "N" ? (_a = observer.next) === null || _a === void 0 ? void 0 : _a.call(observer, value) : kind === "E" ? (_b = observer.error) === null || _b === void 0 ? void 0 : _b.call(observer, error) : (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.call(observer);
|
|
}
|
|
__name(observeNotification, "observeNotification");
|
|
exports.observeNotification = observeNotification;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js
|
|
var require_dematerialize = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.dematerialize = void 0;
|
|
var Notification_1 = require_Notification();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function dematerialize() {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(notification) {
|
|
return Notification_1.observeNotification(notification, subscriber);
|
|
}));
|
|
});
|
|
}
|
|
__name(dematerialize, "dematerialize");
|
|
exports.dematerialize = dematerialize;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/distinct.js
|
|
var require_distinct = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/distinct.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.distinct = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var noop_1 = require_noop();
|
|
var innerFrom_1 = require_innerFrom();
|
|
function distinct(keySelector, flushes) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var distinctKeys = /* @__PURE__ */ new Set();
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var key = keySelector ? keySelector(value) : value;
|
|
if (!distinctKeys.has(key)) {
|
|
distinctKeys.add(key);
|
|
subscriber.next(value);
|
|
}
|
|
}));
|
|
flushes && innerFrom_1.innerFrom(flushes).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
|
|
return distinctKeys.clear();
|
|
}, noop_1.noop));
|
|
});
|
|
}
|
|
__name(distinct, "distinct");
|
|
exports.distinct = distinct;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js
|
|
var require_distinctUntilChanged = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.distinctUntilChanged = void 0;
|
|
var identity_1 = require_identity();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function distinctUntilChanged(comparator, keySelector) {
|
|
if (keySelector === void 0) {
|
|
keySelector = identity_1.identity;
|
|
}
|
|
comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var previousKey;
|
|
var first = true;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var currentKey = keySelector(value);
|
|
if (first || !comparator(previousKey, currentKey)) {
|
|
first = false;
|
|
previousKey = currentKey;
|
|
subscriber.next(value);
|
|
}
|
|
}));
|
|
});
|
|
}
|
|
__name(distinctUntilChanged, "distinctUntilChanged");
|
|
exports.distinctUntilChanged = distinctUntilChanged;
|
|
function defaultCompare(a, b) {
|
|
return a === b;
|
|
}
|
|
__name(defaultCompare, "defaultCompare");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js
|
|
var require_distinctUntilKeyChanged = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.distinctUntilKeyChanged = void 0;
|
|
var distinctUntilChanged_1 = require_distinctUntilChanged();
|
|
function distinctUntilKeyChanged(key, compare) {
|
|
return distinctUntilChanged_1.distinctUntilChanged(function(x, y) {
|
|
return compare ? compare(x[key], y[key]) : x[key] === y[key];
|
|
});
|
|
}
|
|
__name(distinctUntilKeyChanged, "distinctUntilKeyChanged");
|
|
exports.distinctUntilKeyChanged = distinctUntilKeyChanged;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js
|
|
var require_ArgumentOutOfRangeError = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.ArgumentOutOfRangeError = void 0;
|
|
var createErrorClass_1 = require_createErrorClass();
|
|
exports.ArgumentOutOfRangeError = createErrorClass_1.createErrorClass(function(_super) {
|
|
return /* @__PURE__ */ __name(function ArgumentOutOfRangeErrorImpl() {
|
|
_super(this);
|
|
this.name = "ArgumentOutOfRangeError";
|
|
this.message = "argument out of range";
|
|
}, "ArgumentOutOfRangeErrorImpl");
|
|
});
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/filter.js
|
|
var require_filter2 = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/filter.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.filter = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function filter(predicate, thisArg) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var index = 0;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
return predicate.call(thisArg, value, index++) && subscriber.next(value);
|
|
}));
|
|
});
|
|
}
|
|
__name(filter, "filter");
|
|
exports.filter = filter;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js
|
|
var require_EmptyError = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.EmptyError = void 0;
|
|
var createErrorClass_1 = require_createErrorClass();
|
|
exports.EmptyError = createErrorClass_1.createErrorClass(function(_super) {
|
|
return /* @__PURE__ */ __name(function EmptyErrorImpl() {
|
|
_super(this);
|
|
this.name = "EmptyError";
|
|
this.message = "no elements in sequence";
|
|
}, "EmptyErrorImpl");
|
|
});
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js
|
|
var require_throwIfEmpty = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.throwIfEmpty = void 0;
|
|
var EmptyError_1 = require_EmptyError();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function throwIfEmpty(errorFactory) {
|
|
if (errorFactory === void 0) {
|
|
errorFactory = defaultErrorFactory;
|
|
}
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var hasValue = false;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
hasValue = true;
|
|
subscriber.next(value);
|
|
}, function() {
|
|
return hasValue ? subscriber.complete() : subscriber.error(errorFactory());
|
|
}));
|
|
});
|
|
}
|
|
__name(throwIfEmpty, "throwIfEmpty");
|
|
exports.throwIfEmpty = throwIfEmpty;
|
|
function defaultErrorFactory() {
|
|
return new EmptyError_1.EmptyError();
|
|
}
|
|
__name(defaultErrorFactory, "defaultErrorFactory");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/elementAt.js
|
|
var require_elementAt = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/elementAt.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.elementAt = void 0;
|
|
var ArgumentOutOfRangeError_1 = require_ArgumentOutOfRangeError();
|
|
var filter_1 = require_filter2();
|
|
var throwIfEmpty_1 = require_throwIfEmpty();
|
|
var defaultIfEmpty_1 = require_defaultIfEmpty();
|
|
var take_1 = require_take();
|
|
function elementAt(index, defaultValue) {
|
|
if (index < 0) {
|
|
throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError();
|
|
}
|
|
var hasDefaultValue = arguments.length >= 2;
|
|
return function(source) {
|
|
return source.pipe(filter_1.filter(function(v, i) {
|
|
return i === index;
|
|
}), take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function() {
|
|
return new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError();
|
|
}));
|
|
};
|
|
}
|
|
__name(elementAt, "elementAt");
|
|
exports.elementAt = elementAt;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/endWith.js
|
|
var require_endWith = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/endWith.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.endWith = void 0;
|
|
var concat_1 = require_concat3();
|
|
var of_1 = require_of();
|
|
function endWith() {
|
|
var values = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
values[_i] = arguments[_i];
|
|
}
|
|
return function(source) {
|
|
return concat_1.concat(source, of_1.of.apply(void 0, __spreadArray([], __read(values))));
|
|
};
|
|
}
|
|
__name(endWith, "endWith");
|
|
exports.endWith = endWith;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/every.js
|
|
var require_every = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/every.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.every = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function every(predicate, thisArg) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var index = 0;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
if (!predicate.call(thisArg, value, index++, source)) {
|
|
subscriber.next(false);
|
|
subscriber.complete();
|
|
}
|
|
}, function() {
|
|
subscriber.next(true);
|
|
subscriber.complete();
|
|
}));
|
|
});
|
|
}
|
|
__name(every, "every");
|
|
exports.every = every;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js
|
|
var require_exhaustMap = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.exhaustMap = void 0;
|
|
var map_1 = require_map2();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function exhaustMap(project, resultSelector) {
|
|
if (resultSelector) {
|
|
return function(source) {
|
|
return source.pipe(exhaustMap(function(a, i) {
|
|
return innerFrom_1.innerFrom(project(a, i)).pipe(map_1.map(function(b, ii) {
|
|
return resultSelector(a, b, i, ii);
|
|
}));
|
|
}));
|
|
};
|
|
}
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var index = 0;
|
|
var innerSub = null;
|
|
var isComplete = false;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(outerValue) {
|
|
if (!innerSub) {
|
|
innerSub = OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, function() {
|
|
innerSub = null;
|
|
isComplete && subscriber.complete();
|
|
});
|
|
innerFrom_1.innerFrom(project(outerValue, index++)).subscribe(innerSub);
|
|
}
|
|
}, function() {
|
|
isComplete = true;
|
|
!innerSub && subscriber.complete();
|
|
}));
|
|
});
|
|
}
|
|
__name(exhaustMap, "exhaustMap");
|
|
exports.exhaustMap = exhaustMap;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js
|
|
var require_exhaustAll = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.exhaustAll = void 0;
|
|
var exhaustMap_1 = require_exhaustMap();
|
|
var identity_1 = require_identity();
|
|
function exhaustAll() {
|
|
return exhaustMap_1.exhaustMap(identity_1.identity);
|
|
}
|
|
__name(exhaustAll, "exhaustAll");
|
|
exports.exhaustAll = exhaustAll;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/exhaust.js
|
|
var require_exhaust = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/exhaust.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.exhaust = void 0;
|
|
var exhaustAll_1 = require_exhaustAll();
|
|
exports.exhaust = exhaustAll_1.exhaustAll;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/expand.js
|
|
var require_expand = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/expand.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.expand = void 0;
|
|
var lift_1 = require_lift();
|
|
var mergeInternals_1 = require_mergeInternals();
|
|
function expand(project, concurrent, scheduler) {
|
|
if (concurrent === void 0) {
|
|
concurrent = Infinity;
|
|
}
|
|
concurrent = (concurrent || 0) < 1 ? Infinity : concurrent;
|
|
return lift_1.operate(function(source, subscriber) {
|
|
return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent, void 0, true, scheduler);
|
|
});
|
|
}
|
|
__name(expand, "expand");
|
|
exports.expand = expand;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/finalize.js
|
|
var require_finalize = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/finalize.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.finalize = void 0;
|
|
var lift_1 = require_lift();
|
|
function finalize(callback) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
try {
|
|
source.subscribe(subscriber);
|
|
} finally {
|
|
subscriber.add(callback);
|
|
}
|
|
});
|
|
}
|
|
__name(finalize, "finalize");
|
|
exports.finalize = finalize;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/find.js
|
|
var require_find = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/find.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.createFind = exports.find = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function find(predicate, thisArg) {
|
|
return lift_1.operate(createFind(predicate, thisArg, "value"));
|
|
}
|
|
__name(find, "find");
|
|
exports.find = find;
|
|
function createFind(predicate, thisArg, emit) {
|
|
var findIndex = emit === "index";
|
|
return function(source, subscriber) {
|
|
var index = 0;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var i = index++;
|
|
if (predicate.call(thisArg, value, i, source)) {
|
|
subscriber.next(findIndex ? i : value);
|
|
subscriber.complete();
|
|
}
|
|
}, function() {
|
|
subscriber.next(findIndex ? -1 : void 0);
|
|
subscriber.complete();
|
|
}));
|
|
};
|
|
}
|
|
__name(createFind, "createFind");
|
|
exports.createFind = createFind;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/findIndex.js
|
|
var require_findIndex = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/findIndex.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.findIndex = void 0;
|
|
var lift_1 = require_lift();
|
|
var find_1 = require_find();
|
|
function findIndex(predicate, thisArg) {
|
|
return lift_1.operate(find_1.createFind(predicate, thisArg, "index"));
|
|
}
|
|
__name(findIndex, "findIndex");
|
|
exports.findIndex = findIndex;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/first.js
|
|
var require_first = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/first.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.first = void 0;
|
|
var EmptyError_1 = require_EmptyError();
|
|
var filter_1 = require_filter2();
|
|
var take_1 = require_take();
|
|
var defaultIfEmpty_1 = require_defaultIfEmpty();
|
|
var throwIfEmpty_1 = require_throwIfEmpty();
|
|
var identity_1 = require_identity();
|
|
function first(predicate, defaultValue) {
|
|
var hasDefaultValue = arguments.length >= 2;
|
|
return function(source) {
|
|
return source.pipe(predicate ? filter_1.filter(function(v, i) {
|
|
return predicate(v, i, source);
|
|
}) : identity_1.identity, take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function() {
|
|
return new EmptyError_1.EmptyError();
|
|
}));
|
|
};
|
|
}
|
|
__name(first, "first");
|
|
exports.first = first;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/groupBy.js
|
|
var require_groupBy = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/groupBy.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.groupBy = void 0;
|
|
var Observable_1 = require_Observable();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var Subject_1 = require_Subject();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function groupBy(keySelector, elementOrOptions, duration, connector) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var element;
|
|
if (!elementOrOptions || typeof elementOrOptions === "function") {
|
|
element = elementOrOptions;
|
|
} else {
|
|
duration = elementOrOptions.duration, element = elementOrOptions.element, connector = elementOrOptions.connector;
|
|
}
|
|
var groups = /* @__PURE__ */ new Map();
|
|
var notify = /* @__PURE__ */ __name(function(cb) {
|
|
groups.forEach(cb);
|
|
cb(subscriber);
|
|
}, "notify");
|
|
var handleError = /* @__PURE__ */ __name(function(err) {
|
|
return notify(function(consumer) {
|
|
return consumer.error(err);
|
|
});
|
|
}, "handleError");
|
|
var activeGroups = 0;
|
|
var teardownAttempted = false;
|
|
var groupBySourceSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, function(value) {
|
|
try {
|
|
var key_1 = keySelector(value);
|
|
var group_1 = groups.get(key_1);
|
|
if (!group_1) {
|
|
groups.set(key_1, group_1 = connector ? connector() : new Subject_1.Subject());
|
|
var grouped = createGroupedObservable(key_1, group_1);
|
|
subscriber.next(grouped);
|
|
if (duration) {
|
|
var durationSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(group_1, function() {
|
|
group_1.complete();
|
|
durationSubscriber_1 === null || durationSubscriber_1 === void 0 ? void 0 : durationSubscriber_1.unsubscribe();
|
|
}, void 0, void 0, function() {
|
|
return groups.delete(key_1);
|
|
});
|
|
groupBySourceSubscriber.add(innerFrom_1.innerFrom(duration(grouped)).subscribe(durationSubscriber_1));
|
|
}
|
|
}
|
|
group_1.next(element ? element(value) : value);
|
|
} catch (err) {
|
|
handleError(err);
|
|
}
|
|
}, function() {
|
|
return notify(function(consumer) {
|
|
return consumer.complete();
|
|
});
|
|
}, handleError, function() {
|
|
return groups.clear();
|
|
}, function() {
|
|
teardownAttempted = true;
|
|
return activeGroups === 0;
|
|
});
|
|
source.subscribe(groupBySourceSubscriber);
|
|
function createGroupedObservable(key, groupSubject) {
|
|
var result = new Observable_1.Observable(function(groupSubscriber) {
|
|
activeGroups++;
|
|
var innerSub = groupSubject.subscribe(groupSubscriber);
|
|
return function() {
|
|
innerSub.unsubscribe();
|
|
--activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe();
|
|
};
|
|
});
|
|
result.key = key;
|
|
return result;
|
|
}
|
|
__name(createGroupedObservable, "createGroupedObservable");
|
|
});
|
|
}
|
|
__name(groupBy, "groupBy");
|
|
exports.groupBy = groupBy;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js
|
|
var require_isEmpty = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isEmpty = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function isEmpty2() {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
|
|
subscriber.next(false);
|
|
subscriber.complete();
|
|
}, function() {
|
|
subscriber.next(true);
|
|
subscriber.complete();
|
|
}));
|
|
});
|
|
}
|
|
__name(isEmpty2, "isEmpty");
|
|
exports.isEmpty = isEmpty2;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js
|
|
var require_takeLast = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js"(exports) {
|
|
"use strict";
|
|
var __values = exports && exports.__values || function(o) {
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
if (m) return m.call(o);
|
|
if (o && typeof o.length === "number") return {
|
|
next: /* @__PURE__ */ __name(function() {
|
|
if (o && i >= o.length) o = void 0;
|
|
return { value: o && o[i++], done: !o };
|
|
}, "next")
|
|
};
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.takeLast = void 0;
|
|
var empty_1 = require_empty();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function takeLast(count) {
|
|
return count <= 0 ? function() {
|
|
return empty_1.EMPTY;
|
|
} : lift_1.operate(function(source, subscriber) {
|
|
var buffer = [];
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
buffer.push(value);
|
|
count < buffer.length && buffer.shift();
|
|
}, function() {
|
|
var e_1, _a;
|
|
try {
|
|
for (var buffer_1 = __values(buffer), buffer_1_1 = buffer_1.next(); !buffer_1_1.done; buffer_1_1 = buffer_1.next()) {
|
|
var value = buffer_1_1.value;
|
|
subscriber.next(value);
|
|
}
|
|
} catch (e_1_1) {
|
|
e_1 = { error: e_1_1 };
|
|
} finally {
|
|
try {
|
|
if (buffer_1_1 && !buffer_1_1.done && (_a = buffer_1.return)) _a.call(buffer_1);
|
|
} finally {
|
|
if (e_1) throw e_1.error;
|
|
}
|
|
}
|
|
subscriber.complete();
|
|
}, void 0, function() {
|
|
buffer = null;
|
|
}));
|
|
});
|
|
}
|
|
__name(takeLast, "takeLast");
|
|
exports.takeLast = takeLast;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/last.js
|
|
var require_last = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/last.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.last = void 0;
|
|
var EmptyError_1 = require_EmptyError();
|
|
var filter_1 = require_filter2();
|
|
var takeLast_1 = require_takeLast();
|
|
var throwIfEmpty_1 = require_throwIfEmpty();
|
|
var defaultIfEmpty_1 = require_defaultIfEmpty();
|
|
var identity_1 = require_identity();
|
|
function last(predicate, defaultValue) {
|
|
var hasDefaultValue = arguments.length >= 2;
|
|
return function(source) {
|
|
return source.pipe(predicate ? filter_1.filter(function(v, i) {
|
|
return predicate(v, i, source);
|
|
}) : identity_1.identity, takeLast_1.takeLast(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function() {
|
|
return new EmptyError_1.EmptyError();
|
|
}));
|
|
};
|
|
}
|
|
__name(last, "last");
|
|
exports.last = last;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/materialize.js
|
|
var require_materialize = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/materialize.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.materialize = void 0;
|
|
var Notification_1 = require_Notification();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function materialize() {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
subscriber.next(Notification_1.Notification.createNext(value));
|
|
}, function() {
|
|
subscriber.next(Notification_1.Notification.createComplete());
|
|
subscriber.complete();
|
|
}, function(err) {
|
|
subscriber.next(Notification_1.Notification.createError(err));
|
|
subscriber.complete();
|
|
}));
|
|
});
|
|
}
|
|
__name(materialize, "materialize");
|
|
exports.materialize = materialize;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/max.js
|
|
var require_max = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/max.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.max = void 0;
|
|
var reduce_1 = require_reduce();
|
|
var isFunction_1 = require_isFunction();
|
|
function max(comparer) {
|
|
return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function(x, y) {
|
|
return comparer(x, y) > 0 ? x : y;
|
|
} : function(x, y) {
|
|
return x > y ? x : y;
|
|
});
|
|
}
|
|
__name(max, "max");
|
|
exports.max = max;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/merge.js
|
|
var require_merge = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/merge.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.merge = void 0;
|
|
var lift_1 = require_lift();
|
|
var mergeAll_1 = require_mergeAll();
|
|
var args_1 = require_args();
|
|
var from_1 = require_from();
|
|
function merge() {
|
|
var args = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
args[_i] = arguments[_i];
|
|
}
|
|
var scheduler = args_1.popScheduler(args);
|
|
var concurrent = args_1.popNumber(args, Infinity);
|
|
return lift_1.operate(function(source, subscriber) {
|
|
mergeAll_1.mergeAll(concurrent)(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
|
|
});
|
|
}
|
|
__name(merge, "merge");
|
|
exports.merge = merge;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/flatMap.js
|
|
var require_flatMap = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/flatMap.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.flatMap = void 0;
|
|
var mergeMap_1 = require_mergeMap();
|
|
exports.flatMap = mergeMap_1.mergeMap;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js
|
|
var require_mergeMapTo = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.mergeMapTo = void 0;
|
|
var mergeMap_1 = require_mergeMap();
|
|
var isFunction_1 = require_isFunction();
|
|
function mergeMapTo(innerObservable, resultSelector, concurrent) {
|
|
if (concurrent === void 0) {
|
|
concurrent = Infinity;
|
|
}
|
|
if (isFunction_1.isFunction(resultSelector)) {
|
|
return mergeMap_1.mergeMap(function() {
|
|
return innerObservable;
|
|
}, resultSelector, concurrent);
|
|
}
|
|
if (typeof resultSelector === "number") {
|
|
concurrent = resultSelector;
|
|
}
|
|
return mergeMap_1.mergeMap(function() {
|
|
return innerObservable;
|
|
}, concurrent);
|
|
}
|
|
__name(mergeMapTo, "mergeMapTo");
|
|
exports.mergeMapTo = mergeMapTo;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js
|
|
var require_mergeScan = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.mergeScan = void 0;
|
|
var lift_1 = require_lift();
|
|
var mergeInternals_1 = require_mergeInternals();
|
|
function mergeScan(accumulator, seed, concurrent) {
|
|
if (concurrent === void 0) {
|
|
concurrent = Infinity;
|
|
}
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var state = seed;
|
|
return mergeInternals_1.mergeInternals(source, subscriber, function(value, index) {
|
|
return accumulator(state, value, index);
|
|
}, concurrent, function(value) {
|
|
state = value;
|
|
}, false, void 0, function() {
|
|
return state = null;
|
|
});
|
|
});
|
|
}
|
|
__name(mergeScan, "mergeScan");
|
|
exports.mergeScan = mergeScan;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js
|
|
var require_mergeWith = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.mergeWith = void 0;
|
|
var merge_1 = require_merge();
|
|
function mergeWith() {
|
|
var otherSources = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
otherSources[_i] = arguments[_i];
|
|
}
|
|
return merge_1.merge.apply(void 0, __spreadArray([], __read(otherSources)));
|
|
}
|
|
__name(mergeWith, "mergeWith");
|
|
exports.mergeWith = mergeWith;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/min.js
|
|
var require_min = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/min.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.min = void 0;
|
|
var reduce_1 = require_reduce();
|
|
var isFunction_1 = require_isFunction();
|
|
function min(comparer) {
|
|
return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function(x, y) {
|
|
return comparer(x, y) < 0 ? x : y;
|
|
} : function(x, y) {
|
|
return x < y ? x : y;
|
|
});
|
|
}
|
|
__name(min, "min");
|
|
exports.min = min;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/refCount.js
|
|
var require_refCount = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/refCount.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.refCount = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function refCount() {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var connection = null;
|
|
source._refCount++;
|
|
var refCounter = OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, void 0, void 0, function() {
|
|
if (!source || source._refCount <= 0 || 0 < --source._refCount) {
|
|
connection = null;
|
|
return;
|
|
}
|
|
var sharedConnection = source._connection;
|
|
var conn = connection;
|
|
connection = null;
|
|
if (sharedConnection && (!conn || sharedConnection === conn)) {
|
|
sharedConnection.unsubscribe();
|
|
}
|
|
subscriber.unsubscribe();
|
|
});
|
|
source.subscribe(refCounter);
|
|
if (!refCounter.closed) {
|
|
connection = source.connect();
|
|
}
|
|
});
|
|
}
|
|
__name(refCount, "refCount");
|
|
exports.refCount = refCount;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js
|
|
var require_ConnectableObservable = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js"(exports) {
|
|
"use strict";
|
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
var extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
d2.__proto__ = b2;
|
|
} || function(d2, b2) {
|
|
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
};
|
|
return extendStatics(d, b);
|
|
}, "extendStatics");
|
|
return function(d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() {
|
|
this.constructor = d;
|
|
}
|
|
__name(__, "__");
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.ConnectableObservable = void 0;
|
|
var Observable_1 = require_Observable();
|
|
var Subscription_1 = require_Subscription();
|
|
var refCount_1 = require_refCount();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var lift_1 = require_lift();
|
|
var ConnectableObservable = (function(_super) {
|
|
__extends(ConnectableObservable2, _super);
|
|
function ConnectableObservable2(source, subjectFactory) {
|
|
var _this = _super.call(this) || this;
|
|
_this.source = source;
|
|
_this.subjectFactory = subjectFactory;
|
|
_this._subject = null;
|
|
_this._refCount = 0;
|
|
_this._connection = null;
|
|
if (lift_1.hasLift(source)) {
|
|
_this.lift = source.lift;
|
|
}
|
|
return _this;
|
|
}
|
|
__name(ConnectableObservable2, "ConnectableObservable");
|
|
ConnectableObservable2.prototype._subscribe = function(subscriber) {
|
|
return this.getSubject().subscribe(subscriber);
|
|
};
|
|
ConnectableObservable2.prototype.getSubject = function() {
|
|
var subject = this._subject;
|
|
if (!subject || subject.isStopped) {
|
|
this._subject = this.subjectFactory();
|
|
}
|
|
return this._subject;
|
|
};
|
|
ConnectableObservable2.prototype._teardown = function() {
|
|
this._refCount = 0;
|
|
var _connection = this._connection;
|
|
this._subject = this._connection = null;
|
|
_connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe();
|
|
};
|
|
ConnectableObservable2.prototype.connect = function() {
|
|
var _this = this;
|
|
var connection = this._connection;
|
|
if (!connection) {
|
|
connection = this._connection = new Subscription_1.Subscription();
|
|
var subject_1 = this.getSubject();
|
|
connection.add(this.source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subject_1, void 0, function() {
|
|
_this._teardown();
|
|
subject_1.complete();
|
|
}, function(err) {
|
|
_this._teardown();
|
|
subject_1.error(err);
|
|
}, function() {
|
|
return _this._teardown();
|
|
})));
|
|
if (connection.closed) {
|
|
this._connection = null;
|
|
connection = Subscription_1.Subscription.EMPTY;
|
|
}
|
|
}
|
|
return connection;
|
|
};
|
|
ConnectableObservable2.prototype.refCount = function() {
|
|
return refCount_1.refCount()(this);
|
|
};
|
|
return ConnectableObservable2;
|
|
})(Observable_1.Observable);
|
|
exports.ConnectableObservable = ConnectableObservable;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/multicast.js
|
|
var require_multicast = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/multicast.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.multicast = void 0;
|
|
var ConnectableObservable_1 = require_ConnectableObservable();
|
|
var isFunction_1 = require_isFunction();
|
|
var connect_1 = require_connect();
|
|
function multicast(subjectOrSubjectFactory, selector) {
|
|
var subjectFactory = isFunction_1.isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function() {
|
|
return subjectOrSubjectFactory;
|
|
};
|
|
if (isFunction_1.isFunction(selector)) {
|
|
return connect_1.connect(selector, {
|
|
connector: subjectFactory
|
|
});
|
|
}
|
|
return function(source) {
|
|
return new ConnectableObservable_1.ConnectableObservable(source, subjectFactory);
|
|
};
|
|
}
|
|
__name(multicast, "multicast");
|
|
exports.multicast = multicast;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js
|
|
var require_onErrorResumeNext = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.onErrorResumeNext = void 0;
|
|
var Observable_1 = require_Observable();
|
|
var argsOrArgArray_1 = require_argsOrArgArray();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var noop_1 = require_noop();
|
|
var innerFrom_1 = require_innerFrom();
|
|
function onErrorResumeNext() {
|
|
var sources = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
sources[_i] = arguments[_i];
|
|
}
|
|
var nextSources = argsOrArgArray_1.argsOrArgArray(sources);
|
|
return new Observable_1.Observable(function(subscriber) {
|
|
var sourceIndex = 0;
|
|
var subscribeNext = /* @__PURE__ */ __name(function() {
|
|
if (sourceIndex < nextSources.length) {
|
|
var nextSource = void 0;
|
|
try {
|
|
nextSource = innerFrom_1.innerFrom(nextSources[sourceIndex++]);
|
|
} catch (err) {
|
|
subscribeNext();
|
|
return;
|
|
}
|
|
var innerSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, void 0, noop_1.noop, noop_1.noop);
|
|
nextSource.subscribe(innerSubscriber);
|
|
innerSubscriber.add(subscribeNext);
|
|
} else {
|
|
subscriber.complete();
|
|
}
|
|
}, "subscribeNext");
|
|
subscribeNext();
|
|
});
|
|
}
|
|
__name(onErrorResumeNext, "onErrorResumeNext");
|
|
exports.onErrorResumeNext = onErrorResumeNext;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js
|
|
var require_onErrorResumeNextWith = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.onErrorResumeNext = exports.onErrorResumeNextWith = void 0;
|
|
var argsOrArgArray_1 = require_argsOrArgArray();
|
|
var onErrorResumeNext_1 = require_onErrorResumeNext();
|
|
function onErrorResumeNextWith() {
|
|
var sources = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
sources[_i] = arguments[_i];
|
|
}
|
|
var nextSources = argsOrArgArray_1.argsOrArgArray(sources);
|
|
return function(source) {
|
|
return onErrorResumeNext_1.onErrorResumeNext.apply(void 0, __spreadArray([source], __read(nextSources)));
|
|
};
|
|
}
|
|
__name(onErrorResumeNextWith, "onErrorResumeNextWith");
|
|
exports.onErrorResumeNextWith = onErrorResumeNextWith;
|
|
exports.onErrorResumeNext = onErrorResumeNextWith;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/pairwise.js
|
|
var require_pairwise = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/pairwise.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.pairwise = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function pairwise() {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var prev;
|
|
var hasPrev = false;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var p = prev;
|
|
prev = value;
|
|
hasPrev && subscriber.next([p, value]);
|
|
hasPrev = true;
|
|
}));
|
|
});
|
|
}
|
|
__name(pairwise, "pairwise");
|
|
exports.pairwise = pairwise;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/not.js
|
|
var require_not = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/not.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.not = void 0;
|
|
function not(pred, thisArg) {
|
|
return function(value, index) {
|
|
return !pred.call(thisArg, value, index);
|
|
};
|
|
}
|
|
__name(not, "not");
|
|
exports.not = not;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/partition.js
|
|
var require_partition = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/partition.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.partition = void 0;
|
|
var not_1 = require_not();
|
|
var filter_1 = require_filter2();
|
|
function partition(predicate, thisArg) {
|
|
return function(source) {
|
|
return [filter_1.filter(predicate, thisArg)(source), filter_1.filter(not_1.not(predicate, thisArg))(source)];
|
|
};
|
|
}
|
|
__name(partition, "partition");
|
|
exports.partition = partition;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/pluck.js
|
|
var require_pluck = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/pluck.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.pluck = void 0;
|
|
var map_1 = require_map2();
|
|
function pluck() {
|
|
var properties = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
properties[_i] = arguments[_i];
|
|
}
|
|
var length = properties.length;
|
|
if (length === 0) {
|
|
throw new Error("list of properties cannot be empty.");
|
|
}
|
|
return map_1.map(function(x) {
|
|
var currentProp = x;
|
|
for (var i = 0; i < length; i++) {
|
|
var p = currentProp === null || currentProp === void 0 ? void 0 : currentProp[properties[i]];
|
|
if (typeof p !== "undefined") {
|
|
currentProp = p;
|
|
} else {
|
|
return void 0;
|
|
}
|
|
}
|
|
return currentProp;
|
|
});
|
|
}
|
|
__name(pluck, "pluck");
|
|
exports.pluck = pluck;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/publish.js
|
|
var require_publish = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/publish.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.publish = void 0;
|
|
var Subject_1 = require_Subject();
|
|
var multicast_1 = require_multicast();
|
|
var connect_1 = require_connect();
|
|
function publish(selector) {
|
|
return selector ? function(source) {
|
|
return connect_1.connect(selector)(source);
|
|
} : function(source) {
|
|
return multicast_1.multicast(new Subject_1.Subject())(source);
|
|
};
|
|
}
|
|
__name(publish, "publish");
|
|
exports.publish = publish;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js
|
|
var require_BehaviorSubject = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js"(exports) {
|
|
"use strict";
|
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
var extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
d2.__proto__ = b2;
|
|
} || function(d2, b2) {
|
|
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
};
|
|
return extendStatics(d, b);
|
|
}, "extendStatics");
|
|
return function(d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() {
|
|
this.constructor = d;
|
|
}
|
|
__name(__, "__");
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.BehaviorSubject = void 0;
|
|
var Subject_1 = require_Subject();
|
|
var BehaviorSubject = (function(_super) {
|
|
__extends(BehaviorSubject2, _super);
|
|
function BehaviorSubject2(_value) {
|
|
var _this = _super.call(this) || this;
|
|
_this._value = _value;
|
|
return _this;
|
|
}
|
|
__name(BehaviorSubject2, "BehaviorSubject");
|
|
Object.defineProperty(BehaviorSubject2.prototype, "value", {
|
|
get: /* @__PURE__ */ __name(function() {
|
|
return this.getValue();
|
|
}, "get"),
|
|
enumerable: false,
|
|
configurable: true
|
|
});
|
|
BehaviorSubject2.prototype._subscribe = function(subscriber) {
|
|
var subscription = _super.prototype._subscribe.call(this, subscriber);
|
|
!subscription.closed && subscriber.next(this._value);
|
|
return subscription;
|
|
};
|
|
BehaviorSubject2.prototype.getValue = function() {
|
|
var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, _value = _a._value;
|
|
if (hasError) {
|
|
throw thrownError;
|
|
}
|
|
this._throwIfClosed();
|
|
return _value;
|
|
};
|
|
BehaviorSubject2.prototype.next = function(value) {
|
|
_super.prototype.next.call(this, this._value = value);
|
|
};
|
|
return BehaviorSubject2;
|
|
})(Subject_1.Subject);
|
|
exports.BehaviorSubject = BehaviorSubject;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js
|
|
var require_publishBehavior = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.publishBehavior = void 0;
|
|
var BehaviorSubject_1 = require_BehaviorSubject();
|
|
var ConnectableObservable_1 = require_ConnectableObservable();
|
|
function publishBehavior(initialValue) {
|
|
return function(source) {
|
|
var subject = new BehaviorSubject_1.BehaviorSubject(initialValue);
|
|
return new ConnectableObservable_1.ConnectableObservable(source, function() {
|
|
return subject;
|
|
});
|
|
};
|
|
}
|
|
__name(publishBehavior, "publishBehavior");
|
|
exports.publishBehavior = publishBehavior;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/AsyncSubject.js
|
|
var require_AsyncSubject = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/AsyncSubject.js"(exports) {
|
|
"use strict";
|
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
var extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
d2.__proto__ = b2;
|
|
} || function(d2, b2) {
|
|
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
};
|
|
return extendStatics(d, b);
|
|
}, "extendStatics");
|
|
return function(d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() {
|
|
this.constructor = d;
|
|
}
|
|
__name(__, "__");
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.AsyncSubject = void 0;
|
|
var Subject_1 = require_Subject();
|
|
var AsyncSubject = (function(_super) {
|
|
__extends(AsyncSubject2, _super);
|
|
function AsyncSubject2() {
|
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
_this._value = null;
|
|
_this._hasValue = false;
|
|
_this._isComplete = false;
|
|
return _this;
|
|
}
|
|
__name(AsyncSubject2, "AsyncSubject");
|
|
AsyncSubject2.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
var _a = this, hasError = _a.hasError, _hasValue = _a._hasValue, _value = _a._value, thrownError = _a.thrownError, isStopped = _a.isStopped, _isComplete = _a._isComplete;
|
|
if (hasError) {
|
|
subscriber.error(thrownError);
|
|
} else if (isStopped || _isComplete) {
|
|
_hasValue && subscriber.next(_value);
|
|
subscriber.complete();
|
|
}
|
|
};
|
|
AsyncSubject2.prototype.next = function(value) {
|
|
if (!this.isStopped) {
|
|
this._value = value;
|
|
this._hasValue = true;
|
|
}
|
|
};
|
|
AsyncSubject2.prototype.complete = function() {
|
|
var _a = this, _hasValue = _a._hasValue, _value = _a._value, _isComplete = _a._isComplete;
|
|
if (!_isComplete) {
|
|
this._isComplete = true;
|
|
_hasValue && _super.prototype.next.call(this, _value);
|
|
_super.prototype.complete.call(this);
|
|
}
|
|
};
|
|
return AsyncSubject2;
|
|
})(Subject_1.Subject);
|
|
exports.AsyncSubject = AsyncSubject;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/publishLast.js
|
|
var require_publishLast = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/publishLast.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.publishLast = void 0;
|
|
var AsyncSubject_1 = require_AsyncSubject();
|
|
var ConnectableObservable_1 = require_ConnectableObservable();
|
|
function publishLast() {
|
|
return function(source) {
|
|
var subject = new AsyncSubject_1.AsyncSubject();
|
|
return new ConnectableObservable_1.ConnectableObservable(source, function() {
|
|
return subject;
|
|
});
|
|
};
|
|
}
|
|
__name(publishLast, "publishLast");
|
|
exports.publishLast = publishLast;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/ReplaySubject.js
|
|
var require_ReplaySubject = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/ReplaySubject.js"(exports) {
|
|
"use strict";
|
|
var __extends = exports && exports.__extends || /* @__PURE__ */ (function() {
|
|
var extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
d2.__proto__ = b2;
|
|
} || function(d2, b2) {
|
|
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
};
|
|
return extendStatics(d, b);
|
|
}, "extendStatics");
|
|
return function(d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() {
|
|
this.constructor = d;
|
|
}
|
|
__name(__, "__");
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.ReplaySubject = void 0;
|
|
var Subject_1 = require_Subject();
|
|
var dateTimestampProvider_1 = require_dateTimestampProvider();
|
|
var ReplaySubject = (function(_super) {
|
|
__extends(ReplaySubject2, _super);
|
|
function ReplaySubject2(_bufferSize, _windowTime, _timestampProvider) {
|
|
if (_bufferSize === void 0) {
|
|
_bufferSize = Infinity;
|
|
}
|
|
if (_windowTime === void 0) {
|
|
_windowTime = Infinity;
|
|
}
|
|
if (_timestampProvider === void 0) {
|
|
_timestampProvider = dateTimestampProvider_1.dateTimestampProvider;
|
|
}
|
|
var _this = _super.call(this) || this;
|
|
_this._bufferSize = _bufferSize;
|
|
_this._windowTime = _windowTime;
|
|
_this._timestampProvider = _timestampProvider;
|
|
_this._buffer = [];
|
|
_this._infiniteTimeWindow = true;
|
|
_this._infiniteTimeWindow = _windowTime === Infinity;
|
|
_this._bufferSize = Math.max(1, _bufferSize);
|
|
_this._windowTime = Math.max(1, _windowTime);
|
|
return _this;
|
|
}
|
|
__name(ReplaySubject2, "ReplaySubject");
|
|
ReplaySubject2.prototype.next = function(value) {
|
|
var _a = this, isStopped = _a.isStopped, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow, _timestampProvider = _a._timestampProvider, _windowTime = _a._windowTime;
|
|
if (!isStopped) {
|
|
_buffer.push(value);
|
|
!_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
|
|
}
|
|
this._trimBuffer();
|
|
_super.prototype.next.call(this, value);
|
|
};
|
|
ReplaySubject2.prototype._subscribe = function(subscriber) {
|
|
this._throwIfClosed();
|
|
this._trimBuffer();
|
|
var subscription = this._innerSubscribe(subscriber);
|
|
var _a = this, _infiniteTimeWindow = _a._infiniteTimeWindow, _buffer = _a._buffer;
|
|
var copy = _buffer.slice();
|
|
for (var i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {
|
|
subscriber.next(copy[i]);
|
|
}
|
|
this._checkFinalizedStatuses(subscriber);
|
|
return subscription;
|
|
};
|
|
ReplaySubject2.prototype._trimBuffer = function() {
|
|
var _a = this, _bufferSize = _a._bufferSize, _timestampProvider = _a._timestampProvider, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow;
|
|
var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
|
|
_bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
|
|
if (!_infiniteTimeWindow) {
|
|
var now = _timestampProvider.now();
|
|
var last = 0;
|
|
for (var i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) {
|
|
last = i;
|
|
}
|
|
last && _buffer.splice(0, last + 1);
|
|
}
|
|
};
|
|
return ReplaySubject2;
|
|
})(Subject_1.Subject);
|
|
exports.ReplaySubject = ReplaySubject;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js
|
|
var require_publishReplay = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.publishReplay = void 0;
|
|
var ReplaySubject_1 = require_ReplaySubject();
|
|
var multicast_1 = require_multicast();
|
|
var isFunction_1 = require_isFunction();
|
|
function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) {
|
|
if (selectorOrScheduler && !isFunction_1.isFunction(selectorOrScheduler)) {
|
|
timestampProvider = selectorOrScheduler;
|
|
}
|
|
var selector = isFunction_1.isFunction(selectorOrScheduler) ? selectorOrScheduler : void 0;
|
|
return function(source) {
|
|
return multicast_1.multicast(new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source);
|
|
};
|
|
}
|
|
__name(publishReplay, "publishReplay");
|
|
exports.publishReplay = publishReplay;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/race.js
|
|
var require_race = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/race.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.raceInit = exports.race = void 0;
|
|
var Observable_1 = require_Observable();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var argsOrArgArray_1 = require_argsOrArgArray();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function race() {
|
|
var sources = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
sources[_i] = arguments[_i];
|
|
}
|
|
sources = argsOrArgArray_1.argsOrArgArray(sources);
|
|
return sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : new Observable_1.Observable(raceInit(sources));
|
|
}
|
|
__name(race, "race");
|
|
exports.race = race;
|
|
function raceInit(sources) {
|
|
return function(subscriber) {
|
|
var subscriptions = [];
|
|
var _loop_1 = /* @__PURE__ */ __name(function(i2) {
|
|
subscriptions.push(innerFrom_1.innerFrom(sources[i2]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
if (subscriptions) {
|
|
for (var s = 0; s < subscriptions.length; s++) {
|
|
s !== i2 && subscriptions[s].unsubscribe();
|
|
}
|
|
subscriptions = null;
|
|
}
|
|
subscriber.next(value);
|
|
})));
|
|
}, "_loop_1");
|
|
for (var i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) {
|
|
_loop_1(i);
|
|
}
|
|
};
|
|
}
|
|
__name(raceInit, "raceInit");
|
|
exports.raceInit = raceInit;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js
|
|
var require_raceWith = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.raceWith = void 0;
|
|
var race_1 = require_race();
|
|
var lift_1 = require_lift();
|
|
var identity_1 = require_identity();
|
|
function raceWith() {
|
|
var otherSources = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
otherSources[_i] = arguments[_i];
|
|
}
|
|
return !otherSources.length ? identity_1.identity : lift_1.operate(function(source, subscriber) {
|
|
race_1.raceInit(__spreadArray([source], __read(otherSources)))(subscriber);
|
|
});
|
|
}
|
|
__name(raceWith, "raceWith");
|
|
exports.raceWith = raceWith;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/race.js
|
|
var require_race2 = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/race.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.race = void 0;
|
|
var argsOrArgArray_1 = require_argsOrArgArray();
|
|
var raceWith_1 = require_raceWith();
|
|
function race() {
|
|
var args = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
args[_i] = arguments[_i];
|
|
}
|
|
return raceWith_1.raceWith.apply(void 0, __spreadArray([], __read(argsOrArgArray_1.argsOrArgArray(args))));
|
|
}
|
|
__name(race, "race");
|
|
exports.race = race;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/repeat.js
|
|
var require_repeat = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/repeat.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.repeat = void 0;
|
|
var empty_1 = require_empty();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var timer_1 = require_timer();
|
|
function repeat(countOrConfig) {
|
|
var _a;
|
|
var count = Infinity;
|
|
var delay;
|
|
if (countOrConfig != null) {
|
|
if (typeof countOrConfig === "object") {
|
|
_a = countOrConfig.count, count = _a === void 0 ? Infinity : _a, delay = countOrConfig.delay;
|
|
} else {
|
|
count = countOrConfig;
|
|
}
|
|
}
|
|
return count <= 0 ? function() {
|
|
return empty_1.EMPTY;
|
|
} : lift_1.operate(function(source, subscriber) {
|
|
var soFar = 0;
|
|
var sourceSub;
|
|
var resubscribe = /* @__PURE__ */ __name(function() {
|
|
sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe();
|
|
sourceSub = null;
|
|
if (delay != null) {
|
|
var notifier = typeof delay === "number" ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(soFar));
|
|
var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
|
|
notifierSubscriber_1.unsubscribe();
|
|
subscribeToSource();
|
|
});
|
|
notifier.subscribe(notifierSubscriber_1);
|
|
} else {
|
|
subscribeToSource();
|
|
}
|
|
}, "resubscribe");
|
|
var subscribeToSource = /* @__PURE__ */ __name(function() {
|
|
var syncUnsub = false;
|
|
sourceSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, function() {
|
|
if (++soFar < count) {
|
|
if (sourceSub) {
|
|
resubscribe();
|
|
} else {
|
|
syncUnsub = true;
|
|
}
|
|
} else {
|
|
subscriber.complete();
|
|
}
|
|
}));
|
|
if (syncUnsub) {
|
|
resubscribe();
|
|
}
|
|
}, "subscribeToSource");
|
|
subscribeToSource();
|
|
});
|
|
}
|
|
__name(repeat, "repeat");
|
|
exports.repeat = repeat;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js
|
|
var require_repeatWhen = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.repeatWhen = void 0;
|
|
var innerFrom_1 = require_innerFrom();
|
|
var Subject_1 = require_Subject();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function repeatWhen(notifier) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var innerSub;
|
|
var syncResub = false;
|
|
var completions$;
|
|
var isNotifierComplete = false;
|
|
var isMainComplete = false;
|
|
var checkComplete = /* @__PURE__ */ __name(function() {
|
|
return isMainComplete && isNotifierComplete && (subscriber.complete(), true);
|
|
}, "checkComplete");
|
|
var getCompletionSubject = /* @__PURE__ */ __name(function() {
|
|
if (!completions$) {
|
|
completions$ = new Subject_1.Subject();
|
|
innerFrom_1.innerFrom(notifier(completions$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
|
|
if (innerSub) {
|
|
subscribeForRepeatWhen();
|
|
} else {
|
|
syncResub = true;
|
|
}
|
|
}, function() {
|
|
isNotifierComplete = true;
|
|
checkComplete();
|
|
}));
|
|
}
|
|
return completions$;
|
|
}, "getCompletionSubject");
|
|
var subscribeForRepeatWhen = /* @__PURE__ */ __name(function() {
|
|
isMainComplete = false;
|
|
innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, function() {
|
|
isMainComplete = true;
|
|
!checkComplete() && getCompletionSubject().next();
|
|
}));
|
|
if (syncResub) {
|
|
innerSub.unsubscribe();
|
|
innerSub = null;
|
|
syncResub = false;
|
|
subscribeForRepeatWhen();
|
|
}
|
|
}, "subscribeForRepeatWhen");
|
|
subscribeForRepeatWhen();
|
|
});
|
|
}
|
|
__name(repeatWhen, "repeatWhen");
|
|
exports.repeatWhen = repeatWhen;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/retry.js
|
|
var require_retry = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/retry.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.retry = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var identity_1 = require_identity();
|
|
var timer_1 = require_timer();
|
|
var innerFrom_1 = require_innerFrom();
|
|
function retry(configOrCount) {
|
|
if (configOrCount === void 0) {
|
|
configOrCount = Infinity;
|
|
}
|
|
var config;
|
|
if (configOrCount && typeof configOrCount === "object") {
|
|
config = configOrCount;
|
|
} else {
|
|
config = {
|
|
count: configOrCount
|
|
};
|
|
}
|
|
var _a = config.count, count = _a === void 0 ? Infinity : _a, delay = config.delay, _b = config.resetOnSuccess, resetOnSuccess = _b === void 0 ? false : _b;
|
|
return count <= 0 ? identity_1.identity : lift_1.operate(function(source, subscriber) {
|
|
var soFar = 0;
|
|
var innerSub;
|
|
var subscribeForRetry = /* @__PURE__ */ __name(function() {
|
|
var syncUnsub = false;
|
|
innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
if (resetOnSuccess) {
|
|
soFar = 0;
|
|
}
|
|
subscriber.next(value);
|
|
}, void 0, function(err) {
|
|
if (soFar++ < count) {
|
|
var resub_1 = /* @__PURE__ */ __name(function() {
|
|
if (innerSub) {
|
|
innerSub.unsubscribe();
|
|
innerSub = null;
|
|
subscribeForRetry();
|
|
} else {
|
|
syncUnsub = true;
|
|
}
|
|
}, "resub_1");
|
|
if (delay != null) {
|
|
var notifier = typeof delay === "number" ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(err, soFar));
|
|
var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
|
|
notifierSubscriber_1.unsubscribe();
|
|
resub_1();
|
|
}, function() {
|
|
subscriber.complete();
|
|
});
|
|
notifier.subscribe(notifierSubscriber_1);
|
|
} else {
|
|
resub_1();
|
|
}
|
|
} else {
|
|
subscriber.error(err);
|
|
}
|
|
}));
|
|
if (syncUnsub) {
|
|
innerSub.unsubscribe();
|
|
innerSub = null;
|
|
subscribeForRetry();
|
|
}
|
|
}, "subscribeForRetry");
|
|
subscribeForRetry();
|
|
});
|
|
}
|
|
__name(retry, "retry");
|
|
exports.retry = retry;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js
|
|
var require_retryWhen = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.retryWhen = void 0;
|
|
var innerFrom_1 = require_innerFrom();
|
|
var Subject_1 = require_Subject();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function retryWhen(notifier) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var innerSub;
|
|
var syncResub = false;
|
|
var errors$;
|
|
var subscribeForRetryWhen = /* @__PURE__ */ __name(function() {
|
|
innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, void 0, function(err) {
|
|
if (!errors$) {
|
|
errors$ = new Subject_1.Subject();
|
|
innerFrom_1.innerFrom(notifier(errors$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
|
|
return innerSub ? subscribeForRetryWhen() : syncResub = true;
|
|
}));
|
|
}
|
|
if (errors$) {
|
|
errors$.next(err);
|
|
}
|
|
}));
|
|
if (syncResub) {
|
|
innerSub.unsubscribe();
|
|
innerSub = null;
|
|
syncResub = false;
|
|
subscribeForRetryWhen();
|
|
}
|
|
}, "subscribeForRetryWhen");
|
|
subscribeForRetryWhen();
|
|
});
|
|
}
|
|
__name(retryWhen, "retryWhen");
|
|
exports.retryWhen = retryWhen;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/sample.js
|
|
var require_sample = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/sample.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.sample = void 0;
|
|
var innerFrom_1 = require_innerFrom();
|
|
var lift_1 = require_lift();
|
|
var noop_1 = require_noop();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function sample(notifier) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var hasValue = false;
|
|
var lastValue = null;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
hasValue = true;
|
|
lastValue = value;
|
|
}));
|
|
innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
|
|
if (hasValue) {
|
|
hasValue = false;
|
|
var value = lastValue;
|
|
lastValue = null;
|
|
subscriber.next(value);
|
|
}
|
|
}, noop_1.noop));
|
|
});
|
|
}
|
|
__name(sample, "sample");
|
|
exports.sample = sample;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/interval.js
|
|
var require_interval = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/interval.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.interval = void 0;
|
|
var async_1 = require_async();
|
|
var timer_1 = require_timer();
|
|
function interval(period, scheduler) {
|
|
if (period === void 0) {
|
|
period = 0;
|
|
}
|
|
if (scheduler === void 0) {
|
|
scheduler = async_1.asyncScheduler;
|
|
}
|
|
if (period < 0) {
|
|
period = 0;
|
|
}
|
|
return timer_1.timer(period, period, scheduler);
|
|
}
|
|
__name(interval, "interval");
|
|
exports.interval = interval;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js
|
|
var require_sampleTime = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.sampleTime = void 0;
|
|
var async_1 = require_async();
|
|
var sample_1 = require_sample();
|
|
var interval_1 = require_interval();
|
|
function sampleTime(period, scheduler) {
|
|
if (scheduler === void 0) {
|
|
scheduler = async_1.asyncScheduler;
|
|
}
|
|
return sample_1.sample(interval_1.interval(period, scheduler));
|
|
}
|
|
__name(sampleTime, "sampleTime");
|
|
exports.sampleTime = sampleTime;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/scan.js
|
|
var require_scan = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/scan.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.scan = void 0;
|
|
var lift_1 = require_lift();
|
|
var scanInternals_1 = require_scanInternals();
|
|
function scan(accumulator, seed) {
|
|
return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, true));
|
|
}
|
|
__name(scan, "scan");
|
|
exports.scan = scan;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js
|
|
var require_sequenceEqual = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.sequenceEqual = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var innerFrom_1 = require_innerFrom();
|
|
function sequenceEqual(compareTo, comparator) {
|
|
if (comparator === void 0) {
|
|
comparator = /* @__PURE__ */ __name(function(a, b) {
|
|
return a === b;
|
|
}, "comparator");
|
|
}
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var aState = createState();
|
|
var bState = createState();
|
|
var emit = /* @__PURE__ */ __name(function(isEqual) {
|
|
subscriber.next(isEqual);
|
|
subscriber.complete();
|
|
}, "emit");
|
|
var createSubscriber = /* @__PURE__ */ __name(function(selfState, otherState) {
|
|
var sequenceEqualSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(a) {
|
|
var buffer = otherState.buffer, complete = otherState.complete;
|
|
if (buffer.length === 0) {
|
|
complete ? emit(false) : selfState.buffer.push(a);
|
|
} else {
|
|
!comparator(a, buffer.shift()) && emit(false);
|
|
}
|
|
}, function() {
|
|
selfState.complete = true;
|
|
var complete = otherState.complete, buffer = otherState.buffer;
|
|
complete && emit(buffer.length === 0);
|
|
sequenceEqualSubscriber === null || sequenceEqualSubscriber === void 0 ? void 0 : sequenceEqualSubscriber.unsubscribe();
|
|
});
|
|
return sequenceEqualSubscriber;
|
|
}, "createSubscriber");
|
|
source.subscribe(createSubscriber(aState, bState));
|
|
innerFrom_1.innerFrom(compareTo).subscribe(createSubscriber(bState, aState));
|
|
});
|
|
}
|
|
__name(sequenceEqual, "sequenceEqual");
|
|
exports.sequenceEqual = sequenceEqual;
|
|
function createState() {
|
|
return {
|
|
buffer: [],
|
|
complete: false
|
|
};
|
|
}
|
|
__name(createState, "createState");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/share.js
|
|
var require_share = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/share.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.share = void 0;
|
|
var innerFrom_1 = require_innerFrom();
|
|
var Subject_1 = require_Subject();
|
|
var Subscriber_1 = require_Subscriber();
|
|
var lift_1 = require_lift();
|
|
function share(options) {
|
|
if (options === void 0) {
|
|
options = {};
|
|
}
|
|
var _a = options.connector, connector = _a === void 0 ? function() {
|
|
return new Subject_1.Subject();
|
|
} : _a, _b = options.resetOnError, resetOnError = _b === void 0 ? true : _b, _c = options.resetOnComplete, resetOnComplete = _c === void 0 ? true : _c, _d = options.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d;
|
|
return function(wrapperSource) {
|
|
var connection;
|
|
var resetConnection;
|
|
var subject;
|
|
var refCount = 0;
|
|
var hasCompleted = false;
|
|
var hasErrored = false;
|
|
var cancelReset = /* @__PURE__ */ __name(function() {
|
|
resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();
|
|
resetConnection = void 0;
|
|
}, "cancelReset");
|
|
var reset = /* @__PURE__ */ __name(function() {
|
|
cancelReset();
|
|
connection = subject = void 0;
|
|
hasCompleted = hasErrored = false;
|
|
}, "reset");
|
|
var resetAndUnsubscribe = /* @__PURE__ */ __name(function() {
|
|
var conn = connection;
|
|
reset();
|
|
conn === null || conn === void 0 ? void 0 : conn.unsubscribe();
|
|
}, "resetAndUnsubscribe");
|
|
return lift_1.operate(function(source, subscriber) {
|
|
refCount++;
|
|
if (!hasErrored && !hasCompleted) {
|
|
cancelReset();
|
|
}
|
|
var dest = subject = subject !== null && subject !== void 0 ? subject : connector();
|
|
subscriber.add(function() {
|
|
refCount--;
|
|
if (refCount === 0 && !hasErrored && !hasCompleted) {
|
|
resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);
|
|
}
|
|
});
|
|
dest.subscribe(subscriber);
|
|
if (!connection && refCount > 0) {
|
|
connection = new Subscriber_1.SafeSubscriber({
|
|
next: /* @__PURE__ */ __name(function(value) {
|
|
return dest.next(value);
|
|
}, "next"),
|
|
error: /* @__PURE__ */ __name(function(err) {
|
|
hasErrored = true;
|
|
cancelReset();
|
|
resetConnection = handleReset(reset, resetOnError, err);
|
|
dest.error(err);
|
|
}, "error"),
|
|
complete: /* @__PURE__ */ __name(function() {
|
|
hasCompleted = true;
|
|
cancelReset();
|
|
resetConnection = handleReset(reset, resetOnComplete);
|
|
dest.complete();
|
|
}, "complete")
|
|
});
|
|
innerFrom_1.innerFrom(source).subscribe(connection);
|
|
}
|
|
})(wrapperSource);
|
|
};
|
|
}
|
|
__name(share, "share");
|
|
exports.share = share;
|
|
function handleReset(reset, on) {
|
|
var args = [];
|
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
args[_i - 2] = arguments[_i];
|
|
}
|
|
if (on === true) {
|
|
reset();
|
|
return;
|
|
}
|
|
if (on === false) {
|
|
return;
|
|
}
|
|
var onSubscriber = new Subscriber_1.SafeSubscriber({
|
|
next: /* @__PURE__ */ __name(function() {
|
|
onSubscriber.unsubscribe();
|
|
reset();
|
|
}, "next")
|
|
});
|
|
return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
|
|
}
|
|
__name(handleReset, "handleReset");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js
|
|
var require_shareReplay = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.shareReplay = void 0;
|
|
var ReplaySubject_1 = require_ReplaySubject();
|
|
var share_1 = require_share();
|
|
function shareReplay(configOrBufferSize, windowTime, scheduler) {
|
|
var _a, _b, _c;
|
|
var bufferSize;
|
|
var refCount = false;
|
|
if (configOrBufferSize && typeof configOrBufferSize === "object") {
|
|
_a = configOrBufferSize.bufferSize, bufferSize = _a === void 0 ? Infinity : _a, _b = configOrBufferSize.windowTime, windowTime = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler;
|
|
} else {
|
|
bufferSize = configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity;
|
|
}
|
|
return share_1.share({
|
|
connector: /* @__PURE__ */ __name(function() {
|
|
return new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler);
|
|
}, "connector"),
|
|
resetOnError: true,
|
|
resetOnComplete: false,
|
|
resetOnRefCountZero: refCount
|
|
});
|
|
}
|
|
__name(shareReplay, "shareReplay");
|
|
exports.shareReplay = shareReplay;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js
|
|
var require_SequenceError = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.SequenceError = void 0;
|
|
var createErrorClass_1 = require_createErrorClass();
|
|
exports.SequenceError = createErrorClass_1.createErrorClass(function(_super) {
|
|
return /* @__PURE__ */ __name(function SequenceErrorImpl(message) {
|
|
_super(this);
|
|
this.name = "SequenceError";
|
|
this.message = message;
|
|
}, "SequenceErrorImpl");
|
|
});
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js
|
|
var require_NotFoundError = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.NotFoundError = void 0;
|
|
var createErrorClass_1 = require_createErrorClass();
|
|
exports.NotFoundError = createErrorClass_1.createErrorClass(function(_super) {
|
|
return /* @__PURE__ */ __name(function NotFoundErrorImpl(message) {
|
|
_super(this);
|
|
this.name = "NotFoundError";
|
|
this.message = message;
|
|
}, "NotFoundErrorImpl");
|
|
});
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/single.js
|
|
var require_single = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/single.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.single = void 0;
|
|
var EmptyError_1 = require_EmptyError();
|
|
var SequenceError_1 = require_SequenceError();
|
|
var NotFoundError_1 = require_NotFoundError();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function single(predicate) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var hasValue = false;
|
|
var singleValue;
|
|
var seenValue = false;
|
|
var index = 0;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
seenValue = true;
|
|
if (!predicate || predicate(value, index++, source)) {
|
|
hasValue && subscriber.error(new SequenceError_1.SequenceError("Too many matching values"));
|
|
hasValue = true;
|
|
singleValue = value;
|
|
}
|
|
}, function() {
|
|
if (hasValue) {
|
|
subscriber.next(singleValue);
|
|
subscriber.complete();
|
|
} else {
|
|
subscriber.error(seenValue ? new NotFoundError_1.NotFoundError("No matching values") : new EmptyError_1.EmptyError());
|
|
}
|
|
}));
|
|
});
|
|
}
|
|
__name(single, "single");
|
|
exports.single = single;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/skip.js
|
|
var require_skip = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/skip.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.skip = void 0;
|
|
var filter_1 = require_filter2();
|
|
function skip(count) {
|
|
return filter_1.filter(function(_, index) {
|
|
return count <= index;
|
|
});
|
|
}
|
|
__name(skip, "skip");
|
|
exports.skip = skip;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/skipLast.js
|
|
var require_skipLast = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/skipLast.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.skipLast = void 0;
|
|
var identity_1 = require_identity();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function skipLast(skipCount) {
|
|
return skipCount <= 0 ? identity_1.identity : lift_1.operate(function(source, subscriber) {
|
|
var ring = new Array(skipCount);
|
|
var seen = 0;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var valueIndex = seen++;
|
|
if (valueIndex < skipCount) {
|
|
ring[valueIndex] = value;
|
|
} else {
|
|
var index = valueIndex % skipCount;
|
|
var oldValue = ring[index];
|
|
ring[index] = value;
|
|
subscriber.next(oldValue);
|
|
}
|
|
}));
|
|
return function() {
|
|
ring = null;
|
|
};
|
|
});
|
|
}
|
|
__name(skipLast, "skipLast");
|
|
exports.skipLast = skipLast;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js
|
|
var require_skipUntil = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.skipUntil = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var noop_1 = require_noop();
|
|
function skipUntil(notifier) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var taking = false;
|
|
var skipSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
|
|
skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe();
|
|
taking = true;
|
|
}, noop_1.noop);
|
|
innerFrom_1.innerFrom(notifier).subscribe(skipSubscriber);
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
return taking && subscriber.next(value);
|
|
}));
|
|
});
|
|
}
|
|
__name(skipUntil, "skipUntil");
|
|
exports.skipUntil = skipUntil;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js
|
|
var require_skipWhile = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.skipWhile = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function skipWhile(predicate) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var taking = false;
|
|
var index = 0;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
return (taking || (taking = !predicate(value, index++))) && subscriber.next(value);
|
|
}));
|
|
});
|
|
}
|
|
__name(skipWhile, "skipWhile");
|
|
exports.skipWhile = skipWhile;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/startWith.js
|
|
var require_startWith = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/startWith.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.startWith = void 0;
|
|
var concat_1 = require_concat3();
|
|
var args_1 = require_args();
|
|
var lift_1 = require_lift();
|
|
function startWith() {
|
|
var values = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
values[_i] = arguments[_i];
|
|
}
|
|
var scheduler = args_1.popScheduler(values);
|
|
return lift_1.operate(function(source, subscriber) {
|
|
(scheduler ? concat_1.concat(values, source, scheduler) : concat_1.concat(values, source)).subscribe(subscriber);
|
|
});
|
|
}
|
|
__name(startWith, "startWith");
|
|
exports.startWith = startWith;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js
|
|
var require_switchMap = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.switchMap = void 0;
|
|
var innerFrom_1 = require_innerFrom();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function switchMap(project, resultSelector) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var innerSubscriber = null;
|
|
var index = 0;
|
|
var isComplete = false;
|
|
var checkComplete = /* @__PURE__ */ __name(function() {
|
|
return isComplete && !innerSubscriber && subscriber.complete();
|
|
}, "checkComplete");
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();
|
|
var innerIndex = 0;
|
|
var outerIndex = index++;
|
|
innerFrom_1.innerFrom(project(value, outerIndex)).subscribe(innerSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(innerValue) {
|
|
return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue);
|
|
}, function() {
|
|
innerSubscriber = null;
|
|
checkComplete();
|
|
}));
|
|
}, function() {
|
|
isComplete = true;
|
|
checkComplete();
|
|
}));
|
|
});
|
|
}
|
|
__name(switchMap, "switchMap");
|
|
exports.switchMap = switchMap;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/switchAll.js
|
|
var require_switchAll = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/switchAll.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.switchAll = void 0;
|
|
var switchMap_1 = require_switchMap();
|
|
var identity_1 = require_identity();
|
|
function switchAll() {
|
|
return switchMap_1.switchMap(identity_1.identity);
|
|
}
|
|
__name(switchAll, "switchAll");
|
|
exports.switchAll = switchAll;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js
|
|
var require_switchMapTo = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.switchMapTo = void 0;
|
|
var switchMap_1 = require_switchMap();
|
|
var isFunction_1 = require_isFunction();
|
|
function switchMapTo(innerObservable, resultSelector) {
|
|
return isFunction_1.isFunction(resultSelector) ? switchMap_1.switchMap(function() {
|
|
return innerObservable;
|
|
}, resultSelector) : switchMap_1.switchMap(function() {
|
|
return innerObservable;
|
|
});
|
|
}
|
|
__name(switchMapTo, "switchMapTo");
|
|
exports.switchMapTo = switchMapTo;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/switchScan.js
|
|
var require_switchScan = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/switchScan.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.switchScan = void 0;
|
|
var switchMap_1 = require_switchMap();
|
|
var lift_1 = require_lift();
|
|
function switchScan(accumulator, seed) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var state = seed;
|
|
switchMap_1.switchMap(function(value, index) {
|
|
return accumulator(state, value, index);
|
|
}, function(_, innerValue) {
|
|
return state = innerValue, innerValue;
|
|
})(source).subscribe(subscriber);
|
|
return function() {
|
|
state = null;
|
|
};
|
|
});
|
|
}
|
|
__name(switchScan, "switchScan");
|
|
exports.switchScan = switchScan;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js
|
|
var require_takeUntil = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.takeUntil = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var noop_1 = require_noop();
|
|
function takeUntil(notifier) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
|
|
return subscriber.complete();
|
|
}, noop_1.noop));
|
|
!subscriber.closed && source.subscribe(subscriber);
|
|
});
|
|
}
|
|
__name(takeUntil, "takeUntil");
|
|
exports.takeUntil = takeUntil;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js
|
|
var require_takeWhile = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.takeWhile = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function takeWhile(predicate, inclusive) {
|
|
if (inclusive === void 0) {
|
|
inclusive = false;
|
|
}
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var index = 0;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var result = predicate(value, index++);
|
|
(result || inclusive) && subscriber.next(value);
|
|
!result && subscriber.complete();
|
|
}));
|
|
});
|
|
}
|
|
__name(takeWhile, "takeWhile");
|
|
exports.takeWhile = takeWhile;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/tap.js
|
|
var require_tap = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/tap.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.tap = void 0;
|
|
var isFunction_1 = require_isFunction();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var identity_1 = require_identity();
|
|
function tap(observerOrNext, error, complete) {
|
|
var tapObserver = isFunction_1.isFunction(observerOrNext) || error || complete ? { next: observerOrNext, error, complete } : observerOrNext;
|
|
return tapObserver ? lift_1.operate(function(source, subscriber) {
|
|
var _a;
|
|
(_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
|
|
var isUnsub = true;
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var _a2;
|
|
(_a2 = tapObserver.next) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver, value);
|
|
subscriber.next(value);
|
|
}, function() {
|
|
var _a2;
|
|
isUnsub = false;
|
|
(_a2 = tapObserver.complete) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver);
|
|
subscriber.complete();
|
|
}, function(err) {
|
|
var _a2;
|
|
isUnsub = false;
|
|
(_a2 = tapObserver.error) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver, err);
|
|
subscriber.error(err);
|
|
}, function() {
|
|
var _a2, _b;
|
|
if (isUnsub) {
|
|
(_a2 = tapObserver.unsubscribe) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver);
|
|
}
|
|
(_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);
|
|
}));
|
|
}) : identity_1.identity;
|
|
}
|
|
__name(tap, "tap");
|
|
exports.tap = tap;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/throttle.js
|
|
var require_throttle = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/throttle.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.throttle = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var innerFrom_1 = require_innerFrom();
|
|
function throttle(durationSelector, config) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var _a = config !== null && config !== void 0 ? config : {}, _b = _a.leading, leading = _b === void 0 ? true : _b, _c = _a.trailing, trailing = _c === void 0 ? false : _c;
|
|
var hasValue = false;
|
|
var sendValue = null;
|
|
var throttled = null;
|
|
var isComplete = false;
|
|
var endThrottling = /* @__PURE__ */ __name(function() {
|
|
throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe();
|
|
throttled = null;
|
|
if (trailing) {
|
|
send();
|
|
isComplete && subscriber.complete();
|
|
}
|
|
}, "endThrottling");
|
|
var cleanupThrottling = /* @__PURE__ */ __name(function() {
|
|
throttled = null;
|
|
isComplete && subscriber.complete();
|
|
}, "cleanupThrottling");
|
|
var startThrottle = /* @__PURE__ */ __name(function(value) {
|
|
return throttled = innerFrom_1.innerFrom(durationSelector(value)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling));
|
|
}, "startThrottle");
|
|
var send = /* @__PURE__ */ __name(function() {
|
|
if (hasValue) {
|
|
hasValue = false;
|
|
var value = sendValue;
|
|
sendValue = null;
|
|
subscriber.next(value);
|
|
!isComplete && startThrottle(value);
|
|
}
|
|
}, "send");
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
hasValue = true;
|
|
sendValue = value;
|
|
!(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));
|
|
}, function() {
|
|
isComplete = true;
|
|
!(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();
|
|
}));
|
|
});
|
|
}
|
|
__name(throttle, "throttle");
|
|
exports.throttle = throttle;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js
|
|
var require_throttleTime = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.throttleTime = void 0;
|
|
var async_1 = require_async();
|
|
var throttle_1 = require_throttle();
|
|
var timer_1 = require_timer();
|
|
function throttleTime(duration, scheduler, config) {
|
|
if (scheduler === void 0) {
|
|
scheduler = async_1.asyncScheduler;
|
|
}
|
|
var duration$ = timer_1.timer(duration, scheduler);
|
|
return throttle_1.throttle(function() {
|
|
return duration$;
|
|
}, config);
|
|
}
|
|
__name(throttleTime, "throttleTime");
|
|
exports.throttleTime = throttleTime;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js
|
|
var require_timeInterval = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.TimeInterval = exports.timeInterval = void 0;
|
|
var async_1 = require_async();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function timeInterval(scheduler) {
|
|
if (scheduler === void 0) {
|
|
scheduler = async_1.asyncScheduler;
|
|
}
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var last = scheduler.now();
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var now = scheduler.now();
|
|
var interval = now - last;
|
|
last = now;
|
|
subscriber.next(new TimeInterval(value, interval));
|
|
}));
|
|
});
|
|
}
|
|
__name(timeInterval, "timeInterval");
|
|
exports.timeInterval = timeInterval;
|
|
var TimeInterval = /* @__PURE__ */ (function() {
|
|
function TimeInterval2(value, interval) {
|
|
this.value = value;
|
|
this.interval = interval;
|
|
}
|
|
__name(TimeInterval2, "TimeInterval");
|
|
return TimeInterval2;
|
|
})();
|
|
exports.TimeInterval = TimeInterval;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/timeout.js
|
|
var require_timeout = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/timeout.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.timeout = exports.TimeoutError = void 0;
|
|
var async_1 = require_async();
|
|
var isDate_1 = require_isDate();
|
|
var lift_1 = require_lift();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var createErrorClass_1 = require_createErrorClass();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var executeSchedule_1 = require_executeSchedule();
|
|
exports.TimeoutError = createErrorClass_1.createErrorClass(function(_super) {
|
|
return /* @__PURE__ */ __name(function TimeoutErrorImpl(info) {
|
|
if (info === void 0) {
|
|
info = null;
|
|
}
|
|
_super(this);
|
|
this.message = "Timeout has occurred";
|
|
this.name = "TimeoutError";
|
|
this.info = info;
|
|
}, "TimeoutErrorImpl");
|
|
});
|
|
function timeout(config, schedulerArg) {
|
|
var _a = isDate_1.isValidDate(config) ? { first: config } : typeof config === "number" ? { each: config } : config, first = _a.first, each = _a.each, _b = _a.with, _with = _b === void 0 ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === void 0 ? schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : async_1.asyncScheduler : _c, _d = _a.meta, meta = _d === void 0 ? null : _d;
|
|
if (first == null && each == null) {
|
|
throw new TypeError("No timeout provided.");
|
|
}
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var originalSourceSubscription;
|
|
var timerSubscription;
|
|
var lastValue = null;
|
|
var seen = 0;
|
|
var startTimer = /* @__PURE__ */ __name(function(delay) {
|
|
timerSubscription = executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
|
|
try {
|
|
originalSourceSubscription.unsubscribe();
|
|
innerFrom_1.innerFrom(_with({
|
|
meta,
|
|
lastValue,
|
|
seen
|
|
})).subscribe(subscriber);
|
|
} catch (err) {
|
|
subscriber.error(err);
|
|
}
|
|
}, delay);
|
|
}, "startTimer");
|
|
originalSourceSubscription = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();
|
|
seen++;
|
|
subscriber.next(lastValue = value);
|
|
each > 0 && startTimer(each);
|
|
}, void 0, void 0, function() {
|
|
if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) {
|
|
timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();
|
|
}
|
|
lastValue = null;
|
|
}));
|
|
!seen && startTimer(first != null ? typeof first === "number" ? first : +first - scheduler.now() : each);
|
|
});
|
|
}
|
|
__name(timeout, "timeout");
|
|
exports.timeout = timeout;
|
|
function timeoutErrorFactory(info) {
|
|
throw new exports.TimeoutError(info);
|
|
}
|
|
__name(timeoutErrorFactory, "timeoutErrorFactory");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js
|
|
var require_timeoutWith = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.timeoutWith = void 0;
|
|
var async_1 = require_async();
|
|
var isDate_1 = require_isDate();
|
|
var timeout_1 = require_timeout();
|
|
function timeoutWith(due, withObservable, scheduler) {
|
|
var first;
|
|
var each;
|
|
var _with;
|
|
scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async_1.async;
|
|
if (isDate_1.isValidDate(due)) {
|
|
first = due;
|
|
} else if (typeof due === "number") {
|
|
each = due;
|
|
}
|
|
if (withObservable) {
|
|
_with = /* @__PURE__ */ __name(function() {
|
|
return withObservable;
|
|
}, "_with");
|
|
} else {
|
|
throw new TypeError("No observable provided to switch to");
|
|
}
|
|
if (first == null && each == null) {
|
|
throw new TypeError("No timeout provided.");
|
|
}
|
|
return timeout_1.timeout({
|
|
first,
|
|
each,
|
|
scheduler,
|
|
with: _with
|
|
});
|
|
}
|
|
__name(timeoutWith, "timeoutWith");
|
|
exports.timeoutWith = timeoutWith;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js
|
|
var require_timestamp = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.timestamp = void 0;
|
|
var dateTimestampProvider_1 = require_dateTimestampProvider();
|
|
var map_1 = require_map2();
|
|
function timestamp(timestampProvider) {
|
|
if (timestampProvider === void 0) {
|
|
timestampProvider = dateTimestampProvider_1.dateTimestampProvider;
|
|
}
|
|
return map_1.map(function(value) {
|
|
return { value, timestamp: timestampProvider.now() };
|
|
});
|
|
}
|
|
__name(timestamp, "timestamp");
|
|
exports.timestamp = timestamp;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/window.js
|
|
var require_window = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/window.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.window = void 0;
|
|
var Subject_1 = require_Subject();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var noop_1 = require_noop();
|
|
var innerFrom_1 = require_innerFrom();
|
|
function window(windowBoundaries) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var windowSubject = new Subject_1.Subject();
|
|
subscriber.next(windowSubject.asObservable());
|
|
var errorHandler = /* @__PURE__ */ __name(function(err) {
|
|
windowSubject.error(err);
|
|
subscriber.error(err);
|
|
}, "errorHandler");
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
return windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.next(value);
|
|
}, function() {
|
|
windowSubject.complete();
|
|
subscriber.complete();
|
|
}, errorHandler));
|
|
innerFrom_1.innerFrom(windowBoundaries).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
|
|
windowSubject.complete();
|
|
subscriber.next(windowSubject = new Subject_1.Subject());
|
|
}, noop_1.noop, errorHandler));
|
|
return function() {
|
|
windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.unsubscribe();
|
|
windowSubject = null;
|
|
};
|
|
});
|
|
}
|
|
__name(window, "window");
|
|
exports.window = window;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js
|
|
var require_windowCount = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js"(exports) {
|
|
"use strict";
|
|
var __values = exports && exports.__values || function(o) {
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
if (m) return m.call(o);
|
|
if (o && typeof o.length === "number") return {
|
|
next: /* @__PURE__ */ __name(function() {
|
|
if (o && i >= o.length) o = void 0;
|
|
return { value: o && o[i++], done: !o };
|
|
}, "next")
|
|
};
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.windowCount = void 0;
|
|
var Subject_1 = require_Subject();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
function windowCount(windowSize, startWindowEvery) {
|
|
if (startWindowEvery === void 0) {
|
|
startWindowEvery = 0;
|
|
}
|
|
var startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize;
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var windows = [new Subject_1.Subject()];
|
|
var starts = [];
|
|
var count = 0;
|
|
subscriber.next(windows[0].asObservable());
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var e_1, _a;
|
|
try {
|
|
for (var windows_1 = __values(windows), windows_1_1 = windows_1.next(); !windows_1_1.done; windows_1_1 = windows_1.next()) {
|
|
var window_1 = windows_1_1.value;
|
|
window_1.next(value);
|
|
}
|
|
} catch (e_1_1) {
|
|
e_1 = { error: e_1_1 };
|
|
} finally {
|
|
try {
|
|
if (windows_1_1 && !windows_1_1.done && (_a = windows_1.return)) _a.call(windows_1);
|
|
} finally {
|
|
if (e_1) throw e_1.error;
|
|
}
|
|
}
|
|
var c = count - windowSize + 1;
|
|
if (c >= 0 && c % startEvery === 0) {
|
|
windows.shift().complete();
|
|
}
|
|
if (++count % startEvery === 0) {
|
|
var window_2 = new Subject_1.Subject();
|
|
windows.push(window_2);
|
|
subscriber.next(window_2.asObservable());
|
|
}
|
|
}, function() {
|
|
while (windows.length > 0) {
|
|
windows.shift().complete();
|
|
}
|
|
subscriber.complete();
|
|
}, function(err) {
|
|
while (windows.length > 0) {
|
|
windows.shift().error(err);
|
|
}
|
|
subscriber.error(err);
|
|
}, function() {
|
|
starts = null;
|
|
windows = null;
|
|
}));
|
|
});
|
|
}
|
|
__name(windowCount, "windowCount");
|
|
exports.windowCount = windowCount;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/windowTime.js
|
|
var require_windowTime = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/windowTime.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.windowTime = void 0;
|
|
var Subject_1 = require_Subject();
|
|
var async_1 = require_async();
|
|
var Subscription_1 = require_Subscription();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var arrRemove_1 = require_arrRemove();
|
|
var args_1 = require_args();
|
|
var executeSchedule_1 = require_executeSchedule();
|
|
function windowTime(windowTimeSpan) {
|
|
var _a, _b;
|
|
var otherArgs = [];
|
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
otherArgs[_i - 1] = arguments[_i];
|
|
}
|
|
var scheduler = (_a = args_1.popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : async_1.asyncScheduler;
|
|
var windowCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
|
|
var maxWindowSize = otherArgs[1] || Infinity;
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var windowRecords = [];
|
|
var restartOnClose = false;
|
|
var closeWindow = /* @__PURE__ */ __name(function(record) {
|
|
var window = record.window, subs = record.subs;
|
|
window.complete();
|
|
subs.unsubscribe();
|
|
arrRemove_1.arrRemove(windowRecords, record);
|
|
restartOnClose && startWindow();
|
|
}, "closeWindow");
|
|
var startWindow = /* @__PURE__ */ __name(function() {
|
|
if (windowRecords) {
|
|
var subs = new Subscription_1.Subscription();
|
|
subscriber.add(subs);
|
|
var window_1 = new Subject_1.Subject();
|
|
var record_1 = {
|
|
window: window_1,
|
|
subs,
|
|
seen: 0
|
|
};
|
|
windowRecords.push(record_1);
|
|
subscriber.next(window_1.asObservable());
|
|
executeSchedule_1.executeSchedule(subs, scheduler, function() {
|
|
return closeWindow(record_1);
|
|
}, windowTimeSpan);
|
|
}
|
|
}, "startWindow");
|
|
if (windowCreationInterval !== null && windowCreationInterval >= 0) {
|
|
executeSchedule_1.executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true);
|
|
} else {
|
|
restartOnClose = true;
|
|
}
|
|
startWindow();
|
|
var loop = /* @__PURE__ */ __name(function(cb) {
|
|
return windowRecords.slice().forEach(cb);
|
|
}, "loop");
|
|
var terminate = /* @__PURE__ */ __name(function(cb) {
|
|
loop(function(_a2) {
|
|
var window = _a2.window;
|
|
return cb(window);
|
|
});
|
|
cb(subscriber);
|
|
subscriber.unsubscribe();
|
|
}, "terminate");
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
loop(function(record) {
|
|
record.window.next(value);
|
|
maxWindowSize <= ++record.seen && closeWindow(record);
|
|
});
|
|
}, function() {
|
|
return terminate(function(consumer) {
|
|
return consumer.complete();
|
|
});
|
|
}, function(err) {
|
|
return terminate(function(consumer) {
|
|
return consumer.error(err);
|
|
});
|
|
}));
|
|
return function() {
|
|
windowRecords = null;
|
|
};
|
|
});
|
|
}
|
|
__name(windowTime, "windowTime");
|
|
exports.windowTime = windowTime;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js
|
|
var require_windowToggle = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js"(exports) {
|
|
"use strict";
|
|
var __values = exports && exports.__values || function(o) {
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
if (m) return m.call(o);
|
|
if (o && typeof o.length === "number") return {
|
|
next: /* @__PURE__ */ __name(function() {
|
|
if (o && i >= o.length) o = void 0;
|
|
return { value: o && o[i++], done: !o };
|
|
}, "next")
|
|
};
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.windowToggle = void 0;
|
|
var Subject_1 = require_Subject();
|
|
var Subscription_1 = require_Subscription();
|
|
var lift_1 = require_lift();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var noop_1 = require_noop();
|
|
var arrRemove_1 = require_arrRemove();
|
|
function windowToggle(openings, closingSelector) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var windows = [];
|
|
var handleError = /* @__PURE__ */ __name(function(err) {
|
|
while (0 < windows.length) {
|
|
windows.shift().error(err);
|
|
}
|
|
subscriber.error(err);
|
|
}, "handleError");
|
|
innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(openValue) {
|
|
var window = new Subject_1.Subject();
|
|
windows.push(window);
|
|
var closingSubscription = new Subscription_1.Subscription();
|
|
var closeWindow = /* @__PURE__ */ __name(function() {
|
|
arrRemove_1.arrRemove(windows, window);
|
|
window.complete();
|
|
closingSubscription.unsubscribe();
|
|
}, "closeWindow");
|
|
var closingNotifier;
|
|
try {
|
|
closingNotifier = innerFrom_1.innerFrom(closingSelector(openValue));
|
|
} catch (err) {
|
|
handleError(err);
|
|
return;
|
|
}
|
|
subscriber.next(window.asObservable());
|
|
closingSubscription.add(closingNotifier.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, closeWindow, noop_1.noop, handleError)));
|
|
}, noop_1.noop));
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
var e_1, _a;
|
|
var windowsCopy = windows.slice();
|
|
try {
|
|
for (var windowsCopy_1 = __values(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next(); !windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) {
|
|
var window_1 = windowsCopy_1_1.value;
|
|
window_1.next(value);
|
|
}
|
|
} catch (e_1_1) {
|
|
e_1 = { error: e_1_1 };
|
|
} finally {
|
|
try {
|
|
if (windowsCopy_1_1 && !windowsCopy_1_1.done && (_a = windowsCopy_1.return)) _a.call(windowsCopy_1);
|
|
} finally {
|
|
if (e_1) throw e_1.error;
|
|
}
|
|
}
|
|
}, function() {
|
|
while (0 < windows.length) {
|
|
windows.shift().complete();
|
|
}
|
|
subscriber.complete();
|
|
}, handleError, function() {
|
|
while (0 < windows.length) {
|
|
windows.shift().unsubscribe();
|
|
}
|
|
}));
|
|
});
|
|
}
|
|
__name(windowToggle, "windowToggle");
|
|
exports.windowToggle = windowToggle;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js
|
|
var require_windowWhen = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.windowWhen = void 0;
|
|
var Subject_1 = require_Subject();
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var innerFrom_1 = require_innerFrom();
|
|
function windowWhen(closingSelector) {
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var window;
|
|
var closingSubscriber;
|
|
var handleError = /* @__PURE__ */ __name(function(err) {
|
|
window.error(err);
|
|
subscriber.error(err);
|
|
}, "handleError");
|
|
var openWindow = /* @__PURE__ */ __name(function() {
|
|
closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
|
|
window === null || window === void 0 ? void 0 : window.complete();
|
|
window = new Subject_1.Subject();
|
|
subscriber.next(window.asObservable());
|
|
var closingNotifier;
|
|
try {
|
|
closingNotifier = innerFrom_1.innerFrom(closingSelector());
|
|
} catch (err) {
|
|
handleError(err);
|
|
return;
|
|
}
|
|
closingNotifier.subscribe(closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openWindow, openWindow, handleError));
|
|
}, "openWindow");
|
|
openWindow();
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
return window.next(value);
|
|
}, function() {
|
|
window.complete();
|
|
subscriber.complete();
|
|
}, handleError, function() {
|
|
closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
|
|
window = null;
|
|
}));
|
|
});
|
|
}
|
|
__name(windowWhen, "windowWhen");
|
|
exports.windowWhen = windowWhen;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js
|
|
var require_withLatestFrom = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.withLatestFrom = void 0;
|
|
var lift_1 = require_lift();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var identity_1 = require_identity();
|
|
var noop_1 = require_noop();
|
|
var args_1 = require_args();
|
|
function withLatestFrom() {
|
|
var inputs = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
inputs[_i] = arguments[_i];
|
|
}
|
|
var project = args_1.popResultSelector(inputs);
|
|
return lift_1.operate(function(source, subscriber) {
|
|
var len = inputs.length;
|
|
var otherValues = new Array(len);
|
|
var hasValue = inputs.map(function() {
|
|
return false;
|
|
});
|
|
var ready = false;
|
|
var _loop_1 = /* @__PURE__ */ __name(function(i2) {
|
|
innerFrom_1.innerFrom(inputs[i2]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
otherValues[i2] = value;
|
|
if (!ready && !hasValue[i2]) {
|
|
hasValue[i2] = true;
|
|
(ready = hasValue.every(identity_1.identity)) && (hasValue = null);
|
|
}
|
|
}, noop_1.noop));
|
|
}, "_loop_1");
|
|
for (var i = 0; i < len; i++) {
|
|
_loop_1(i);
|
|
}
|
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
if (ready) {
|
|
var values = __spreadArray([value], __read(otherValues));
|
|
subscriber.next(project ? project.apply(void 0, __spreadArray([], __read(values))) : values);
|
|
}
|
|
}));
|
|
});
|
|
}
|
|
__name(withLatestFrom, "withLatestFrom");
|
|
exports.withLatestFrom = withLatestFrom;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/zip.js
|
|
var require_zip2 = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/observable/zip.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.zip = void 0;
|
|
var Observable_1 = require_Observable();
|
|
var innerFrom_1 = require_innerFrom();
|
|
var argsOrArgArray_1 = require_argsOrArgArray();
|
|
var empty_1 = require_empty();
|
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
var args_1 = require_args();
|
|
function zip() {
|
|
var args = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
args[_i] = arguments[_i];
|
|
}
|
|
var resultSelector = args_1.popResultSelector(args);
|
|
var sources = argsOrArgArray_1.argsOrArgArray(args);
|
|
return sources.length ? new Observable_1.Observable(function(subscriber) {
|
|
var buffers = sources.map(function() {
|
|
return [];
|
|
});
|
|
var completed = sources.map(function() {
|
|
return false;
|
|
});
|
|
subscriber.add(function() {
|
|
buffers = completed = null;
|
|
});
|
|
var _loop_1 = /* @__PURE__ */ __name(function(sourceIndex2) {
|
|
innerFrom_1.innerFrom(sources[sourceIndex2]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
buffers[sourceIndex2].push(value);
|
|
if (buffers.every(function(buffer) {
|
|
return buffer.length;
|
|
})) {
|
|
var result = buffers.map(function(buffer) {
|
|
return buffer.shift();
|
|
});
|
|
subscriber.next(resultSelector ? resultSelector.apply(void 0, __spreadArray([], __read(result))) : result);
|
|
if (buffers.some(function(buffer, i) {
|
|
return !buffer.length && completed[i];
|
|
})) {
|
|
subscriber.complete();
|
|
}
|
|
}
|
|
}, function() {
|
|
completed[sourceIndex2] = true;
|
|
!buffers[sourceIndex2].length && subscriber.complete();
|
|
}));
|
|
}, "_loop_1");
|
|
for (var sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) {
|
|
_loop_1(sourceIndex);
|
|
}
|
|
return function() {
|
|
buffers = completed = null;
|
|
};
|
|
}) : empty_1.EMPTY;
|
|
}
|
|
__name(zip, "zip");
|
|
exports.zip = zip;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/zip.js
|
|
var require_zip3 = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/zip.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.zip = void 0;
|
|
var zip_1 = require_zip2();
|
|
var lift_1 = require_lift();
|
|
function zip() {
|
|
var sources = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
sources[_i] = arguments[_i];
|
|
}
|
|
return lift_1.operate(function(source, subscriber) {
|
|
zip_1.zip.apply(void 0, __spreadArray([source], __read(sources))).subscribe(subscriber);
|
|
});
|
|
}
|
|
__name(zip, "zip");
|
|
exports.zip = zip;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/zipAll.js
|
|
var require_zipAll = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/zipAll.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.zipAll = void 0;
|
|
var zip_1 = require_zip2();
|
|
var joinAllInternals_1 = require_joinAllInternals();
|
|
function zipAll(project) {
|
|
return joinAllInternals_1.joinAllInternals(zip_1.zip, project);
|
|
}
|
|
__name(zipAll, "zipAll");
|
|
exports.zipAll = zipAll;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js
|
|
var require_zipWith = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js"(exports) {
|
|
"use strict";
|
|
var __read = exports && exports.__read || function(o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
} catch (error) {
|
|
e = { error };
|
|
} finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
} finally {
|
|
if (e) throw e.error;
|
|
}
|
|
}
|
|
return ar;
|
|
};
|
|
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
to[j] = from[i];
|
|
return to;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.zipWith = void 0;
|
|
var zip_1 = require_zip3();
|
|
function zipWith() {
|
|
var otherInputs = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
otherInputs[_i] = arguments[_i];
|
|
}
|
|
return zip_1.zip.apply(void 0, __spreadArray([], __read(otherInputs)));
|
|
}
|
|
__name(zipWith, "zipWith");
|
|
exports.zipWith = zipWith;
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/operators/index.js
|
|
var require_operators = __commonJS({
|
|
"../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/operators/index.js"(exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.mergeAll = exports.merge = exports.max = exports.materialize = exports.mapTo = exports.map = exports.last = exports.isEmpty = exports.ignoreElements = exports.groupBy = exports.first = exports.findIndex = exports.find = exports.finalize = exports.filter = exports.expand = exports.exhaustMap = exports.exhaustAll = exports.exhaust = exports.every = exports.endWith = exports.elementAt = exports.distinctUntilKeyChanged = exports.distinctUntilChanged = exports.distinct = exports.dematerialize = exports.delayWhen = exports.delay = exports.defaultIfEmpty = exports.debounceTime = exports.debounce = exports.count = exports.connect = exports.concatWith = exports.concatMapTo = exports.concatMap = exports.concatAll = exports.concat = exports.combineLatestWith = exports.combineLatest = exports.combineLatestAll = exports.combineAll = exports.catchError = exports.bufferWhen = exports.bufferToggle = exports.bufferTime = exports.bufferCount = exports.buffer = exports.auditTime = exports.audit = void 0;
|
|
exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = exports.switchMapTo = exports.switchMap = exports.switchAll = exports.subscribeOn = exports.startWith = exports.skipWhile = exports.skipUntil = exports.skipLast = exports.skip = exports.single = exports.shareReplay = exports.share = exports.sequenceEqual = exports.scan = exports.sampleTime = exports.sample = exports.refCount = exports.retryWhen = exports.retry = exports.repeatWhen = exports.repeat = exports.reduce = exports.raceWith = exports.race = exports.publishReplay = exports.publishLast = exports.publishBehavior = exports.publish = exports.pluck = exports.partition = exports.pairwise = exports.onErrorResumeNext = exports.observeOn = exports.multicast = exports.min = exports.mergeWith = exports.mergeScan = exports.mergeMapTo = exports.mergeMap = exports.flatMap = void 0;
|
|
exports.zipWith = exports.zipAll = exports.zip = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = void 0;
|
|
var audit_1 = require_audit();
|
|
Object.defineProperty(exports, "audit", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return audit_1.audit;
|
|
}, "get") });
|
|
var auditTime_1 = require_auditTime();
|
|
Object.defineProperty(exports, "auditTime", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return auditTime_1.auditTime;
|
|
}, "get") });
|
|
var buffer_1 = require_buffer();
|
|
Object.defineProperty(exports, "buffer", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return buffer_1.buffer;
|
|
}, "get") });
|
|
var bufferCount_1 = require_bufferCount();
|
|
Object.defineProperty(exports, "bufferCount", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return bufferCount_1.bufferCount;
|
|
}, "get") });
|
|
var bufferTime_1 = require_bufferTime();
|
|
Object.defineProperty(exports, "bufferTime", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return bufferTime_1.bufferTime;
|
|
}, "get") });
|
|
var bufferToggle_1 = require_bufferToggle();
|
|
Object.defineProperty(exports, "bufferToggle", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return bufferToggle_1.bufferToggle;
|
|
}, "get") });
|
|
var bufferWhen_1 = require_bufferWhen();
|
|
Object.defineProperty(exports, "bufferWhen", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return bufferWhen_1.bufferWhen;
|
|
}, "get") });
|
|
var catchError_1 = require_catchError();
|
|
Object.defineProperty(exports, "catchError", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return catchError_1.catchError;
|
|
}, "get") });
|
|
var combineAll_1 = require_combineAll();
|
|
Object.defineProperty(exports, "combineAll", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return combineAll_1.combineAll;
|
|
}, "get") });
|
|
var combineLatestAll_1 = require_combineLatestAll();
|
|
Object.defineProperty(exports, "combineLatestAll", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return combineLatestAll_1.combineLatestAll;
|
|
}, "get") });
|
|
var combineLatest_1 = require_combineLatest2();
|
|
Object.defineProperty(exports, "combineLatest", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return combineLatest_1.combineLatest;
|
|
}, "get") });
|
|
var combineLatestWith_1 = require_combineLatestWith();
|
|
Object.defineProperty(exports, "combineLatestWith", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return combineLatestWith_1.combineLatestWith;
|
|
}, "get") });
|
|
var concat_1 = require_concat2();
|
|
Object.defineProperty(exports, "concat", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return concat_1.concat;
|
|
}, "get") });
|
|
var concatAll_1 = require_concatAll();
|
|
Object.defineProperty(exports, "concatAll", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return concatAll_1.concatAll;
|
|
}, "get") });
|
|
var concatMap_1 = require_concatMap();
|
|
Object.defineProperty(exports, "concatMap", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return concatMap_1.concatMap;
|
|
}, "get") });
|
|
var concatMapTo_1 = require_concatMapTo();
|
|
Object.defineProperty(exports, "concatMapTo", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return concatMapTo_1.concatMapTo;
|
|
}, "get") });
|
|
var concatWith_1 = require_concatWith();
|
|
Object.defineProperty(exports, "concatWith", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return concatWith_1.concatWith;
|
|
}, "get") });
|
|
var connect_1 = require_connect();
|
|
Object.defineProperty(exports, "connect", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return connect_1.connect;
|
|
}, "get") });
|
|
var count_1 = require_count();
|
|
Object.defineProperty(exports, "count", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return count_1.count;
|
|
}, "get") });
|
|
var debounce_1 = require_debounce();
|
|
Object.defineProperty(exports, "debounce", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return debounce_1.debounce;
|
|
}, "get") });
|
|
var debounceTime_1 = require_debounceTime();
|
|
Object.defineProperty(exports, "debounceTime", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return debounceTime_1.debounceTime;
|
|
}, "get") });
|
|
var defaultIfEmpty_1 = require_defaultIfEmpty();
|
|
Object.defineProperty(exports, "defaultIfEmpty", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return defaultIfEmpty_1.defaultIfEmpty;
|
|
}, "get") });
|
|
var delay_1 = require_delay();
|
|
Object.defineProperty(exports, "delay", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return delay_1.delay;
|
|
}, "get") });
|
|
var delayWhen_1 = require_delayWhen();
|
|
Object.defineProperty(exports, "delayWhen", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return delayWhen_1.delayWhen;
|
|
}, "get") });
|
|
var dematerialize_1 = require_dematerialize();
|
|
Object.defineProperty(exports, "dematerialize", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return dematerialize_1.dematerialize;
|
|
}, "get") });
|
|
var distinct_1 = require_distinct();
|
|
Object.defineProperty(exports, "distinct", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return distinct_1.distinct;
|
|
}, "get") });
|
|
var distinctUntilChanged_1 = require_distinctUntilChanged();
|
|
Object.defineProperty(exports, "distinctUntilChanged", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return distinctUntilChanged_1.distinctUntilChanged;
|
|
}, "get") });
|
|
var distinctUntilKeyChanged_1 = require_distinctUntilKeyChanged();
|
|
Object.defineProperty(exports, "distinctUntilKeyChanged", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return distinctUntilKeyChanged_1.distinctUntilKeyChanged;
|
|
}, "get") });
|
|
var elementAt_1 = require_elementAt();
|
|
Object.defineProperty(exports, "elementAt", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return elementAt_1.elementAt;
|
|
}, "get") });
|
|
var endWith_1 = require_endWith();
|
|
Object.defineProperty(exports, "endWith", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return endWith_1.endWith;
|
|
}, "get") });
|
|
var every_1 = require_every();
|
|
Object.defineProperty(exports, "every", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return every_1.every;
|
|
}, "get") });
|
|
var exhaust_1 = require_exhaust();
|
|
Object.defineProperty(exports, "exhaust", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return exhaust_1.exhaust;
|
|
}, "get") });
|
|
var exhaustAll_1 = require_exhaustAll();
|
|
Object.defineProperty(exports, "exhaustAll", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return exhaustAll_1.exhaustAll;
|
|
}, "get") });
|
|
var exhaustMap_1 = require_exhaustMap();
|
|
Object.defineProperty(exports, "exhaustMap", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return exhaustMap_1.exhaustMap;
|
|
}, "get") });
|
|
var expand_1 = require_expand();
|
|
Object.defineProperty(exports, "expand", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return expand_1.expand;
|
|
}, "get") });
|
|
var filter_1 = require_filter2();
|
|
Object.defineProperty(exports, "filter", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return filter_1.filter;
|
|
}, "get") });
|
|
var finalize_1 = require_finalize();
|
|
Object.defineProperty(exports, "finalize", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return finalize_1.finalize;
|
|
}, "get") });
|
|
var find_1 = require_find();
|
|
Object.defineProperty(exports, "find", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return find_1.find;
|
|
}, "get") });
|
|
var findIndex_1 = require_findIndex();
|
|
Object.defineProperty(exports, "findIndex", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return findIndex_1.findIndex;
|
|
}, "get") });
|
|
var first_1 = require_first();
|
|
Object.defineProperty(exports, "first", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return first_1.first;
|
|
}, "get") });
|
|
var groupBy_1 = require_groupBy();
|
|
Object.defineProperty(exports, "groupBy", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return groupBy_1.groupBy;
|
|
}, "get") });
|
|
var ignoreElements_1 = require_ignoreElements();
|
|
Object.defineProperty(exports, "ignoreElements", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return ignoreElements_1.ignoreElements;
|
|
}, "get") });
|
|
var isEmpty_1 = require_isEmpty();
|
|
Object.defineProperty(exports, "isEmpty", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return isEmpty_1.isEmpty;
|
|
}, "get") });
|
|
var last_1 = require_last();
|
|
Object.defineProperty(exports, "last", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return last_1.last;
|
|
}, "get") });
|
|
var map_1 = require_map2();
|
|
Object.defineProperty(exports, "map", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return map_1.map;
|
|
}, "get") });
|
|
var mapTo_1 = require_mapTo();
|
|
Object.defineProperty(exports, "mapTo", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return mapTo_1.mapTo;
|
|
}, "get") });
|
|
var materialize_1 = require_materialize();
|
|
Object.defineProperty(exports, "materialize", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return materialize_1.materialize;
|
|
}, "get") });
|
|
var max_1 = require_max();
|
|
Object.defineProperty(exports, "max", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return max_1.max;
|
|
}, "get") });
|
|
var merge_1 = require_merge();
|
|
Object.defineProperty(exports, "merge", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return merge_1.merge;
|
|
}, "get") });
|
|
var mergeAll_1 = require_mergeAll();
|
|
Object.defineProperty(exports, "mergeAll", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return mergeAll_1.mergeAll;
|
|
}, "get") });
|
|
var flatMap_1 = require_flatMap();
|
|
Object.defineProperty(exports, "flatMap", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return flatMap_1.flatMap;
|
|
}, "get") });
|
|
var mergeMap_1 = require_mergeMap();
|
|
Object.defineProperty(exports, "mergeMap", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return mergeMap_1.mergeMap;
|
|
}, "get") });
|
|
var mergeMapTo_1 = require_mergeMapTo();
|
|
Object.defineProperty(exports, "mergeMapTo", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return mergeMapTo_1.mergeMapTo;
|
|
}, "get") });
|
|
var mergeScan_1 = require_mergeScan();
|
|
Object.defineProperty(exports, "mergeScan", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return mergeScan_1.mergeScan;
|
|
}, "get") });
|
|
var mergeWith_1 = require_mergeWith();
|
|
Object.defineProperty(exports, "mergeWith", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return mergeWith_1.mergeWith;
|
|
}, "get") });
|
|
var min_1 = require_min();
|
|
Object.defineProperty(exports, "min", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return min_1.min;
|
|
}, "get") });
|
|
var multicast_1 = require_multicast();
|
|
Object.defineProperty(exports, "multicast", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return multicast_1.multicast;
|
|
}, "get") });
|
|
var observeOn_1 = require_observeOn();
|
|
Object.defineProperty(exports, "observeOn", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return observeOn_1.observeOn;
|
|
}, "get") });
|
|
var onErrorResumeNextWith_1 = require_onErrorResumeNextWith();
|
|
Object.defineProperty(exports, "onErrorResumeNext", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return onErrorResumeNextWith_1.onErrorResumeNext;
|
|
}, "get") });
|
|
var pairwise_1 = require_pairwise();
|
|
Object.defineProperty(exports, "pairwise", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return pairwise_1.pairwise;
|
|
}, "get") });
|
|
var partition_1 = require_partition();
|
|
Object.defineProperty(exports, "partition", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return partition_1.partition;
|
|
}, "get") });
|
|
var pluck_1 = require_pluck();
|
|
Object.defineProperty(exports, "pluck", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return pluck_1.pluck;
|
|
}, "get") });
|
|
var publish_1 = require_publish();
|
|
Object.defineProperty(exports, "publish", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return publish_1.publish;
|
|
}, "get") });
|
|
var publishBehavior_1 = require_publishBehavior();
|
|
Object.defineProperty(exports, "publishBehavior", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return publishBehavior_1.publishBehavior;
|
|
}, "get") });
|
|
var publishLast_1 = require_publishLast();
|
|
Object.defineProperty(exports, "publishLast", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return publishLast_1.publishLast;
|
|
}, "get") });
|
|
var publishReplay_1 = require_publishReplay();
|
|
Object.defineProperty(exports, "publishReplay", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return publishReplay_1.publishReplay;
|
|
}, "get") });
|
|
var race_1 = require_race2();
|
|
Object.defineProperty(exports, "race", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return race_1.race;
|
|
}, "get") });
|
|
var raceWith_1 = require_raceWith();
|
|
Object.defineProperty(exports, "raceWith", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return raceWith_1.raceWith;
|
|
}, "get") });
|
|
var reduce_1 = require_reduce();
|
|
Object.defineProperty(exports, "reduce", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return reduce_1.reduce;
|
|
}, "get") });
|
|
var repeat_1 = require_repeat();
|
|
Object.defineProperty(exports, "repeat", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return repeat_1.repeat;
|
|
}, "get") });
|
|
var repeatWhen_1 = require_repeatWhen();
|
|
Object.defineProperty(exports, "repeatWhen", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return repeatWhen_1.repeatWhen;
|
|
}, "get") });
|
|
var retry_1 = require_retry();
|
|
Object.defineProperty(exports, "retry", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return retry_1.retry;
|
|
}, "get") });
|
|
var retryWhen_1 = require_retryWhen();
|
|
Object.defineProperty(exports, "retryWhen", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return retryWhen_1.retryWhen;
|
|
}, "get") });
|
|
var refCount_1 = require_refCount();
|
|
Object.defineProperty(exports, "refCount", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return refCount_1.refCount;
|
|
}, "get") });
|
|
var sample_1 = require_sample();
|
|
Object.defineProperty(exports, "sample", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return sample_1.sample;
|
|
}, "get") });
|
|
var sampleTime_1 = require_sampleTime();
|
|
Object.defineProperty(exports, "sampleTime", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return sampleTime_1.sampleTime;
|
|
}, "get") });
|
|
var scan_1 = require_scan();
|
|
Object.defineProperty(exports, "scan", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return scan_1.scan;
|
|
}, "get") });
|
|
var sequenceEqual_1 = require_sequenceEqual();
|
|
Object.defineProperty(exports, "sequenceEqual", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return sequenceEqual_1.sequenceEqual;
|
|
}, "get") });
|
|
var share_1 = require_share();
|
|
Object.defineProperty(exports, "share", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return share_1.share;
|
|
}, "get") });
|
|
var shareReplay_1 = require_shareReplay();
|
|
Object.defineProperty(exports, "shareReplay", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return shareReplay_1.shareReplay;
|
|
}, "get") });
|
|
var single_1 = require_single();
|
|
Object.defineProperty(exports, "single", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return single_1.single;
|
|
}, "get") });
|
|
var skip_1 = require_skip();
|
|
Object.defineProperty(exports, "skip", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return skip_1.skip;
|
|
}, "get") });
|
|
var skipLast_1 = require_skipLast();
|
|
Object.defineProperty(exports, "skipLast", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return skipLast_1.skipLast;
|
|
}, "get") });
|
|
var skipUntil_1 = require_skipUntil();
|
|
Object.defineProperty(exports, "skipUntil", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return skipUntil_1.skipUntil;
|
|
}, "get") });
|
|
var skipWhile_1 = require_skipWhile();
|
|
Object.defineProperty(exports, "skipWhile", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return skipWhile_1.skipWhile;
|
|
}, "get") });
|
|
var startWith_1 = require_startWith();
|
|
Object.defineProperty(exports, "startWith", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return startWith_1.startWith;
|
|
}, "get") });
|
|
var subscribeOn_1 = require_subscribeOn();
|
|
Object.defineProperty(exports, "subscribeOn", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return subscribeOn_1.subscribeOn;
|
|
}, "get") });
|
|
var switchAll_1 = require_switchAll();
|
|
Object.defineProperty(exports, "switchAll", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return switchAll_1.switchAll;
|
|
}, "get") });
|
|
var switchMap_1 = require_switchMap();
|
|
Object.defineProperty(exports, "switchMap", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return switchMap_1.switchMap;
|
|
}, "get") });
|
|
var switchMapTo_1 = require_switchMapTo();
|
|
Object.defineProperty(exports, "switchMapTo", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return switchMapTo_1.switchMapTo;
|
|
}, "get") });
|
|
var switchScan_1 = require_switchScan();
|
|
Object.defineProperty(exports, "switchScan", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return switchScan_1.switchScan;
|
|
}, "get") });
|
|
var take_1 = require_take();
|
|
Object.defineProperty(exports, "take", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return take_1.take;
|
|
}, "get") });
|
|
var takeLast_1 = require_takeLast();
|
|
Object.defineProperty(exports, "takeLast", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return takeLast_1.takeLast;
|
|
}, "get") });
|
|
var takeUntil_1 = require_takeUntil();
|
|
Object.defineProperty(exports, "takeUntil", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return takeUntil_1.takeUntil;
|
|
}, "get") });
|
|
var takeWhile_1 = require_takeWhile();
|
|
Object.defineProperty(exports, "takeWhile", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return takeWhile_1.takeWhile;
|
|
}, "get") });
|
|
var tap_1 = require_tap();
|
|
Object.defineProperty(exports, "tap", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return tap_1.tap;
|
|
}, "get") });
|
|
var throttle_1 = require_throttle();
|
|
Object.defineProperty(exports, "throttle", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return throttle_1.throttle;
|
|
}, "get") });
|
|
var throttleTime_1 = require_throttleTime();
|
|
Object.defineProperty(exports, "throttleTime", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return throttleTime_1.throttleTime;
|
|
}, "get") });
|
|
var throwIfEmpty_1 = require_throwIfEmpty();
|
|
Object.defineProperty(exports, "throwIfEmpty", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return throwIfEmpty_1.throwIfEmpty;
|
|
}, "get") });
|
|
var timeInterval_1 = require_timeInterval();
|
|
Object.defineProperty(exports, "timeInterval", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return timeInterval_1.timeInterval;
|
|
}, "get") });
|
|
var timeout_1 = require_timeout();
|
|
Object.defineProperty(exports, "timeout", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return timeout_1.timeout;
|
|
}, "get") });
|
|
var timeoutWith_1 = require_timeoutWith();
|
|
Object.defineProperty(exports, "timeoutWith", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return timeoutWith_1.timeoutWith;
|
|
}, "get") });
|
|
var timestamp_1 = require_timestamp();
|
|
Object.defineProperty(exports, "timestamp", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return timestamp_1.timestamp;
|
|
}, "get") });
|
|
var toArray_1 = require_toArray();
|
|
Object.defineProperty(exports, "toArray", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return toArray_1.toArray;
|
|
}, "get") });
|
|
var window_1 = require_window();
|
|
Object.defineProperty(exports, "window", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return window_1.window;
|
|
}, "get") });
|
|
var windowCount_1 = require_windowCount();
|
|
Object.defineProperty(exports, "windowCount", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return windowCount_1.windowCount;
|
|
}, "get") });
|
|
var windowTime_1 = require_windowTime();
|
|
Object.defineProperty(exports, "windowTime", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return windowTime_1.windowTime;
|
|
}, "get") });
|
|
var windowToggle_1 = require_windowToggle();
|
|
Object.defineProperty(exports, "windowToggle", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return windowToggle_1.windowToggle;
|
|
}, "get") });
|
|
var windowWhen_1 = require_windowWhen();
|
|
Object.defineProperty(exports, "windowWhen", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return windowWhen_1.windowWhen;
|
|
}, "get") });
|
|
var withLatestFrom_1 = require_withLatestFrom();
|
|
Object.defineProperty(exports, "withLatestFrom", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return withLatestFrom_1.withLatestFrom;
|
|
}, "get") });
|
|
var zip_1 = require_zip3();
|
|
Object.defineProperty(exports, "zip", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return zip_1.zip;
|
|
}, "get") });
|
|
var zipAll_1 = require_zipAll();
|
|
Object.defineProperty(exports, "zipAll", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return zipAll_1.zipAll;
|
|
}, "get") });
|
|
var zipWith_1 = require_zipWith();
|
|
Object.defineProperty(exports, "zipWith", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
return zipWith_1.zipWith;
|
|
}, "get") });
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/class-serializer.constants.js
|
|
var CLASS_SERIALIZER_OPTIONS;
|
|
var init_class_serializer_constants = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/class-serializer.constants.js"() {
|
|
CLASS_SERIALIZER_OPTIONS = "class_serializer:options";
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/class-serializer.interceptor.js
|
|
var import_operators, classTransformer2, pendingClassTransformer, REFLECTOR, ClassSerializerInterceptor;
|
|
var init_class_serializer_interceptor = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/class-serializer.interceptor.js"() {
|
|
init_tslib_es6();
|
|
import_operators = __toESM(require_operators(), 1);
|
|
init_core();
|
|
init_file_stream();
|
|
init_load_package_util();
|
|
init_shared_utils();
|
|
init_class_serializer_constants();
|
|
classTransformer2 = {};
|
|
REFLECTOR = "Reflector";
|
|
ClassSerializerInterceptor = class ClassSerializerInterceptor2 {
|
|
static {
|
|
__name(this, "ClassSerializerInterceptor");
|
|
}
|
|
reflector;
|
|
defaultOptions;
|
|
constructor(reflector, defaultOptions = {}) {
|
|
this.reflector = reflector;
|
|
this.defaultOptions = defaultOptions;
|
|
pendingClassTransformer = defaultOptions?.transformerPackage ?? loadPackage("class-transformer", "ClassSerializerInterceptor", () => import("class-transformer"));
|
|
if (!(pendingClassTransformer instanceof Promise)) {
|
|
classTransformer2 = pendingClassTransformer;
|
|
}
|
|
}
|
|
async intercept(context, next) {
|
|
classTransformer2 = await pendingClassTransformer;
|
|
const contextOptions = this.getContextOptions(context);
|
|
const options = {
|
|
...this.defaultOptions,
|
|
...contextOptions
|
|
};
|
|
return next.handle().pipe((0, import_operators.map)((res) => this.serialize(res, options)));
|
|
}
|
|
/**
|
|
* Serializes responses that are non-null objects nor streamable files.
|
|
*/
|
|
serialize(response, options) {
|
|
if (!isObject(response) || response instanceof StreamableFile) {
|
|
return response;
|
|
}
|
|
return Array.isArray(response) ? response.map((item) => this.transformToPlain(item, options)) : this.transformToPlain(response, options);
|
|
}
|
|
transformToPlain(plainOrClass, options) {
|
|
if (!plainOrClass) {
|
|
return plainOrClass;
|
|
}
|
|
if (!options.type) {
|
|
return classTransformer2.classToPlain(plainOrClass, options);
|
|
}
|
|
if (plainOrClass instanceof options.type) {
|
|
return classTransformer2.classToPlain(plainOrClass, options);
|
|
}
|
|
const instance = classTransformer2.plainToInstance(options.type, plainOrClass, options);
|
|
return classTransformer2.classToPlain(instance, options);
|
|
}
|
|
getContextOptions(context) {
|
|
return this.reflector.getAllAndOverride(CLASS_SERIALIZER_OPTIONS, [
|
|
context.getHandler(),
|
|
context.getClass()
|
|
]);
|
|
}
|
|
};
|
|
ClassSerializerInterceptor = __decorate([
|
|
Injectable(),
|
|
__param(0, Inject(REFLECTOR)),
|
|
__param(1, Optional()),
|
|
__metadata("design:paramtypes", [Object, Object])
|
|
], ClassSerializerInterceptor);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/class-serializer.interfaces.js
|
|
var init_class_serializer_interfaces = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/class-serializer.interfaces.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/decorators/serialize-options.decorator.js
|
|
var SerializeOptions;
|
|
var init_serialize_options_decorator = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/decorators/serialize-options.decorator.js"() {
|
|
init_decorators();
|
|
init_class_serializer_constants();
|
|
SerializeOptions = /* @__PURE__ */ __name((options) => SetMetadata(CLASS_SERIALIZER_OPTIONS, options), "SerializeOptions");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/decorators/index.js
|
|
var init_decorators2 = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/decorators/index.js"() {
|
|
init_serialize_options_decorator();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/standard-schema-serializer.interceptor.js
|
|
var import_operators2, REFLECTOR2, StandardSchemaSerializerInterceptor;
|
|
var init_standard_schema_serializer_interceptor = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/standard-schema-serializer.interceptor.js"() {
|
|
init_tslib_es6();
|
|
import_operators2 = __toESM(require_operators(), 1);
|
|
init_core();
|
|
init_file_stream();
|
|
init_shared_utils();
|
|
init_class_serializer_constants();
|
|
REFLECTOR2 = "Reflector";
|
|
StandardSchemaSerializerInterceptor = class StandardSchemaSerializerInterceptor2 {
|
|
static {
|
|
__name(this, "StandardSchemaSerializerInterceptor");
|
|
}
|
|
reflector;
|
|
defaultOptions;
|
|
constructor(reflector, defaultOptions = {}) {
|
|
this.reflector = reflector;
|
|
this.defaultOptions = defaultOptions;
|
|
}
|
|
intercept(context, next) {
|
|
const contextOptions = this.getContextOptions(context);
|
|
const schema = contextOptions?.schema ?? this.defaultOptions.schema;
|
|
const validateOptions = contextOptions?.validateOptions ?? this.defaultOptions.validateOptions;
|
|
return next.handle().pipe((0, import_operators2.concatMap)(async (res) => this.serialize(res, schema, validateOptions)));
|
|
}
|
|
/**
|
|
* Serializes responses that are non-null objects nor streamable files.
|
|
*/
|
|
serialize(response, schema, validateOptions) {
|
|
if (!schema || !isObject(response) || response instanceof StreamableFile) {
|
|
return response;
|
|
}
|
|
return Array.isArray(response) ? Promise.all(response.map((item) => this.transformToPlain(item, schema, validateOptions))) : this.transformToPlain(response, schema, validateOptions);
|
|
}
|
|
async transformToPlain(plainOrClass, schema, validateOptions) {
|
|
if (!plainOrClass) {
|
|
return plainOrClass;
|
|
}
|
|
const result = await schema["~standard"].validate(plainOrClass, validateOptions);
|
|
if (result.issues) {
|
|
throw new Error(`Serialization failed: ${result.issues.map((i) => i.message).join(", ")}`);
|
|
}
|
|
return result.value;
|
|
}
|
|
getContextOptions(context) {
|
|
const [handlerOptions, classOptions] = this.reflector.getAll(CLASS_SERIALIZER_OPTIONS, [
|
|
context.getHandler(),
|
|
context.getClass()
|
|
]);
|
|
if (!handlerOptions || !classOptions) {
|
|
return handlerOptions ?? classOptions;
|
|
}
|
|
return {
|
|
schema: handlerOptions.schema ?? classOptions.schema,
|
|
validateOptions: handlerOptions.validateOptions ?? classOptions.validateOptions
|
|
};
|
|
}
|
|
};
|
|
StandardSchemaSerializerInterceptor = __decorate([
|
|
Injectable(),
|
|
__param(0, Inject(REFLECTOR2)),
|
|
__param(1, Optional()),
|
|
__metadata("design:paramtypes", [Object, Object])
|
|
], StandardSchemaSerializerInterceptor);
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/standard-schema-serializer.interfaces.js
|
|
var init_standard_schema_serializer_interfaces = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/standard-schema-serializer.interfaces.js"() {
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/index.js
|
|
var init_serializer = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/serializer/index.js"() {
|
|
init_class_serializer_interceptor();
|
|
init_class_serializer_interfaces();
|
|
init_decorators2();
|
|
init_standard_schema_serializer_interceptor();
|
|
init_standard_schema_serializer_interfaces();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/forward-ref.util.js
|
|
var forwardRef;
|
|
var init_forward_ref_util = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/forward-ref.util.js"() {
|
|
forwardRef = /* @__PURE__ */ __name((fn) => ({
|
|
forwardRef: fn
|
|
}), "forwardRef");
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/index.js
|
|
var init_utils3 = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/utils/index.js"() {
|
|
init_forward_ref_util();
|
|
init_strip_proto_keys_util();
|
|
}
|
|
});
|
|
|
|
// ../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/index.js
|
|
var common_exports = {};
|
|
__export(common_exports, {
|
|
All: () => All,
|
|
BadGatewayException: () => BadGatewayException,
|
|
BadRequestException: () => BadRequestException,
|
|
Bind: () => Bind,
|
|
Body: () => Body,
|
|
Catch: () => Catch,
|
|
ClassSerializerInterceptor: () => ClassSerializerInterceptor,
|
|
ConfigurableModuleBuilder: () => ConfigurableModuleBuilder,
|
|
ConflictException: () => ConflictException,
|
|
ConsoleLogger: () => ConsoleLogger,
|
|
Controller: () => Controller,
|
|
Cookies: () => Cookies,
|
|
Copy: () => Copy,
|
|
DefaultValuePipe: () => DefaultValuePipe,
|
|
Delete: () => Delete,
|
|
Dependencies: () => Dependencies,
|
|
FileTypeValidator: () => FileTypeValidator,
|
|
FileValidator: () => FileValidator,
|
|
ForbiddenException: () => ForbiddenException,
|
|
GatewayTimeoutException: () => GatewayTimeoutException,
|
|
Get: () => Get,
|
|
Global: () => Global,
|
|
GoneException: () => GoneException,
|
|
Head: () => Head,
|
|
Header: () => Header,
|
|
Headers: () => Headers,
|
|
HostParam: () => HostParam,
|
|
HttpCode: () => HttpCode,
|
|
HttpException: () => HttpException,
|
|
HttpStatus: () => HttpStatus,
|
|
HttpVersionNotSupportedException: () => HttpVersionNotSupportedException,
|
|
ImATeapotException: () => ImATeapotException,
|
|
Inject: () => Inject,
|
|
Injectable: () => Injectable,
|
|
InternalServerErrorException: () => InternalServerErrorException,
|
|
IntrinsicException: () => IntrinsicException,
|
|
Ip: () => Ip,
|
|
LOG_LEVELS: () => LOG_LEVELS,
|
|
Lock: () => Lock,
|
|
Logger: () => Logger,
|
|
MaxFileSizeValidator: () => MaxFileSizeValidator,
|
|
MethodNotAllowedException: () => MethodNotAllowedException,
|
|
MisdirectedException: () => MisdirectedException,
|
|
Mkcol: () => Mkcol,
|
|
Module: () => Module,
|
|
Move: () => Move,
|
|
Next: () => Next,
|
|
NotAcceptableException: () => NotAcceptableException,
|
|
NotFoundException: () => NotFoundException,
|
|
NotImplementedException: () => NotImplementedException,
|
|
Optional: () => Optional,
|
|
Options: () => Options,
|
|
Param: () => Param,
|
|
ParseArrayPipe: () => ParseArrayPipe,
|
|
ParseBoolPipe: () => ParseBoolPipe,
|
|
ParseDatePipe: () => ParseDatePipe,
|
|
ParseEnumPipe: () => ParseEnumPipe,
|
|
ParseFilePipe: () => ParseFilePipe,
|
|
ParseFilePipeBuilder: () => ParseFilePipeBuilder,
|
|
ParseFloatPipe: () => ParseFloatPipe,
|
|
ParseIntPipe: () => ParseIntPipe,
|
|
ParseUUIDPipe: () => ParseUUIDPipe,
|
|
Patch: () => Patch,
|
|
PayloadTooLargeException: () => PayloadTooLargeException,
|
|
Post: () => Post,
|
|
PreconditionFailedException: () => PreconditionFailedException,
|
|
Propfind: () => Propfind,
|
|
Proppatch: () => Proppatch,
|
|
Put: () => Put,
|
|
Query: () => Query,
|
|
QueryMethod: () => QueryMethod,
|
|
RawBody: () => RawBody,
|
|
Redirect: () => Redirect,
|
|
Render: () => Render,
|
|
Req: () => Req,
|
|
Request: () => Request,
|
|
RequestMapping: () => RequestMapping,
|
|
RequestMethod: () => RequestMethod,
|
|
RequestTimeoutException: () => RequestTimeoutException,
|
|
Res: () => Res,
|
|
Response: () => Response,
|
|
SSE_ABORT_CONTROLLER: () => SSE_ABORT_CONTROLLER,
|
|
Scope: () => Scope,
|
|
Search: () => Search,
|
|
SerializeOptions: () => SerializeOptions,
|
|
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
Session: () => Session,
|
|
SetMetadata: () => SetMetadata,
|
|
ShutdownSignal: () => ShutdownSignal,
|
|
SignedCookies: () => SignedCookies,
|
|
Sse: () => Sse,
|
|
SseSignal: () => SseSignal,
|
|
StandardSchemaSerializerInterceptor: () => StandardSchemaSerializerInterceptor,
|
|
StandardSchemaValidationPipe: () => StandardSchemaValidationPipe,
|
|
StreamableFile: () => StreamableFile,
|
|
UnauthorizedException: () => UnauthorizedException,
|
|
Unlock: () => Unlock,
|
|
UnprocessableEntityException: () => UnprocessableEntityException,
|
|
UnsupportedMediaTypeException: () => UnsupportedMediaTypeException,
|
|
UploadedFile: () => UploadedFile,
|
|
UploadedFiles: () => UploadedFiles,
|
|
UseFilters: () => UseFilters,
|
|
UseGuards: () => UseGuards,
|
|
UseInterceptors: () => UseInterceptors,
|
|
UsePipes: () => UsePipes,
|
|
VERSION_NEUTRAL: () => VERSION_NEUTRAL,
|
|
ValidationPipe: () => ValidationPipe,
|
|
Version: () => Version,
|
|
VersioningType: () => VersioningType,
|
|
applyDecorators: () => applyDecorators,
|
|
assignMetadata: () => assignMetadata,
|
|
createParamDecorator: () => createParamDecorator,
|
|
filterLogLevels: () => filterLogLevels,
|
|
flatten: () => flatten,
|
|
forwardRef: () => forwardRef,
|
|
mixin: () => mixin,
|
|
stripProtoKeys: () => stripProtoKeys
|
|
});
|
|
var import_reflect_metadata;
|
|
var init_common = __esm({
|
|
"../../node_modules/.pnpm/@nestjs+common@12.2.0_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/index.js"() {
|
|
import_reflect_metadata = __toESM(require_Reflect(), 1);
|
|
init_decorators();
|
|
init_enums();
|
|
init_exceptions();
|
|
init_file_stream();
|
|
init_interfaces();
|
|
init_module_utils();
|
|
init_pipes();
|
|
init_serializer();
|
|
init_services();
|
|
init_utils3();
|
|
}
|
|
});
|
|
|
|
export {
|
|
require_Reflect,
|
|
__decorate,
|
|
__param,
|
|
__metadata,
|
|
init_tslib_es6,
|
|
MODULE_METADATA,
|
|
GLOBAL_MODULE_METADATA,
|
|
HOST_METADATA,
|
|
PATH_METADATA,
|
|
PARAMTYPES_METADATA,
|
|
SELF_DECLARED_DEPS_METADATA,
|
|
OPTIONAL_DEPS_METADATA,
|
|
PROPERTY_DEPS_METADATA,
|
|
OPTIONAL_PROPERTY_DEPS_METADATA,
|
|
SCOPE_OPTIONS_METADATA,
|
|
METHOD_METADATA,
|
|
ROUTE_ARGS_METADATA,
|
|
CUSTOM_ROUTE_ARGS_METADATA,
|
|
FILTER_CATCH_EXCEPTIONS,
|
|
PIPES_METADATA,
|
|
GUARDS_METADATA,
|
|
INTERCEPTORS_METADATA,
|
|
EXCEPTION_FILTERS_METADATA,
|
|
ENHANCER_KEY_TO_SUBTYPE_MAP,
|
|
RENDER_METADATA,
|
|
HTTP_CODE_METADATA,
|
|
MODULE_PATH,
|
|
HEADERS_METADATA,
|
|
REDIRECT_METADATA,
|
|
RESPONSE_PASSTHROUGH_METADATA,
|
|
SSE_METADATA,
|
|
SSE_OPTIONS_METADATA,
|
|
VERSION_METADATA,
|
|
INJECTABLE_WATERMARK,
|
|
CONTROLLER_WATERMARK,
|
|
CATCH_WATERMARK,
|
|
ENTRY_PROVIDER_WATERMARK,
|
|
init_constants,
|
|
Catch,
|
|
isUndefined,
|
|
isObject,
|
|
isPlainObject,
|
|
addLeadingSlash,
|
|
normalizePath,
|
|
stripEndSlash,
|
|
isFunction,
|
|
isString,
|
|
isConstructor,
|
|
isNil,
|
|
isEmpty,
|
|
isEmptyArray,
|
|
isSymbol,
|
|
init_shared_utils,
|
|
Controller,
|
|
flatten,
|
|
Inject,
|
|
uid,
|
|
init_dist,
|
|
Injectable,
|
|
mixin,
|
|
Optional,
|
|
SetMetadata,
|
|
UseGuards,
|
|
UseInterceptors,
|
|
applyDecorators,
|
|
Global,
|
|
Module,
|
|
RequestMethod,
|
|
Post,
|
|
Get,
|
|
Delete,
|
|
Put,
|
|
Patch,
|
|
RouteParamtypes,
|
|
init_route_paramtypes_enum,
|
|
init_parameter_decorator_options_util,
|
|
UploadedFile,
|
|
Query,
|
|
Body,
|
|
Param,
|
|
Req,
|
|
Res,
|
|
init_route_params_decorator,
|
|
HttpCode,
|
|
createParamDecorator,
|
|
SSE_ABORT_CONTROLLER,
|
|
HttpStatus,
|
|
ShutdownSignal,
|
|
VersioningType,
|
|
IntrinsicException,
|
|
HttpException,
|
|
BadRequestException,
|
|
ConflictException,
|
|
ForbiddenException,
|
|
InternalServerErrorException,
|
|
NotFoundException,
|
|
PayloadTooLargeException,
|
|
ServiceUnavailableException,
|
|
UnauthorizedException,
|
|
clc,
|
|
init_cli_colors_util,
|
|
ConsoleLogger,
|
|
Logger,
|
|
StreamableFile,
|
|
Scope,
|
|
VERSION_NEUTRAL,
|
|
randomStringGenerator,
|
|
init_random_string_generator_util,
|
|
require_lib,
|
|
loadPackage,
|
|
loadPackageCached,
|
|
tryLoadPackage,
|
|
init_load_package_util,
|
|
require_isFunction,
|
|
require_isArrayLike,
|
|
require_UnsubscriptionError,
|
|
require_Subscription,
|
|
require_config,
|
|
require_noop,
|
|
require_Subscriber,
|
|
require_observable,
|
|
require_identity,
|
|
require_pipe,
|
|
require_Observable,
|
|
require_innerFrom,
|
|
require_OperatorSubscriber,
|
|
require_audit,
|
|
require_AsyncAction,
|
|
require_Scheduler,
|
|
require_AsyncScheduler,
|
|
require_async,
|
|
require_isScheduler,
|
|
require_timer,
|
|
require_auditTime,
|
|
require_buffer,
|
|
require_bufferCount,
|
|
require_args,
|
|
require_bufferTime,
|
|
require_bufferToggle,
|
|
require_bufferWhen,
|
|
require_catchError,
|
|
require_argsArgArrayOrObject,
|
|
require_observeOn,
|
|
require_subscribeOn,
|
|
require_scheduleIterable,
|
|
require_scheduled,
|
|
require_from,
|
|
require_map2 as require_map,
|
|
require_mapOneOrManyArgs,
|
|
require_createObject,
|
|
require_combineLatest,
|
|
require_mergeMap,
|
|
require_reduce,
|
|
require_toArray,
|
|
require_combineLatestAll,
|
|
require_combineAll,
|
|
require_combineLatestWith,
|
|
require_mergeAll,
|
|
require_concatAll,
|
|
require_concatMap,
|
|
require_concatMapTo,
|
|
require_concatWith,
|
|
require_ObjectUnsubscribedError,
|
|
require_Subject,
|
|
require_connect,
|
|
require_count,
|
|
require_debounce,
|
|
require_debounceTime,
|
|
require_defaultIfEmpty,
|
|
require_concat3 as require_concat,
|
|
require_empty,
|
|
require_take,
|
|
require_ignoreElements,
|
|
require_mapTo,
|
|
require_delayWhen,
|
|
require_delay,
|
|
require_of,
|
|
require_throwError,
|
|
require_Notification,
|
|
require_dematerialize,
|
|
require_distinct,
|
|
require_distinctUntilChanged,
|
|
require_distinctUntilKeyChanged,
|
|
require_ArgumentOutOfRangeError,
|
|
require_filter2 as require_filter,
|
|
require_EmptyError,
|
|
require_throwIfEmpty,
|
|
require_elementAt,
|
|
require_endWith,
|
|
require_every,
|
|
require_exhaustMap,
|
|
require_exhaustAll,
|
|
require_exhaust,
|
|
require_expand,
|
|
require_finalize,
|
|
require_find,
|
|
require_findIndex,
|
|
require_first,
|
|
require_groupBy,
|
|
require_isEmpty,
|
|
require_takeLast,
|
|
require_last,
|
|
require_materialize,
|
|
require_max,
|
|
require_flatMap,
|
|
require_mergeMapTo,
|
|
require_mergeScan,
|
|
require_mergeWith,
|
|
require_min,
|
|
require_refCount,
|
|
require_ConnectableObservable,
|
|
require_multicast,
|
|
require_onErrorResumeNext,
|
|
require_onErrorResumeNextWith,
|
|
require_pairwise,
|
|
require_not,
|
|
require_pluck,
|
|
require_publish,
|
|
require_BehaviorSubject,
|
|
require_publishBehavior,
|
|
require_AsyncSubject,
|
|
require_publishLast,
|
|
require_ReplaySubject,
|
|
require_publishReplay,
|
|
require_race,
|
|
require_raceWith,
|
|
require_repeat,
|
|
require_repeatWhen,
|
|
require_retry,
|
|
require_retryWhen,
|
|
require_sample,
|
|
require_interval,
|
|
require_sampleTime,
|
|
require_scan,
|
|
require_sequenceEqual,
|
|
require_share,
|
|
require_shareReplay,
|
|
require_SequenceError,
|
|
require_NotFoundError,
|
|
require_single,
|
|
require_skip,
|
|
require_skipLast,
|
|
require_skipUntil,
|
|
require_skipWhile,
|
|
require_startWith,
|
|
require_switchMap,
|
|
require_switchAll,
|
|
require_switchMapTo,
|
|
require_switchScan,
|
|
require_takeUntil,
|
|
require_takeWhile,
|
|
require_tap,
|
|
require_throttle,
|
|
require_throttleTime,
|
|
require_timeInterval,
|
|
require_timeout,
|
|
require_timeoutWith,
|
|
require_timestamp,
|
|
require_window,
|
|
require_windowCount,
|
|
require_windowTime,
|
|
require_windowToggle,
|
|
require_windowWhen,
|
|
require_withLatestFrom,
|
|
require_zip2 as require_zip,
|
|
require_zipAll,
|
|
require_zipWith,
|
|
require_operators,
|
|
common_exports,
|
|
init_common
|
|
};
|