@blackglory/structures 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.min.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/emitter.ts","../../src/hash-map.ts","../../src/hash-set.ts","../../src/queue.ts","../../node_modules/iterable-operator/node_modules/@blackglory/go/lib/es2018/go.js","../../node_modules/iterable-operator/node_modules/@blackglory/go/lib/es2018/index.js","../../node_modules/iterable-operator/node_modules/@blackglory/errors/lib/es2018/custom-error.js","../../node_modules/iterable-operator/node_modules/@blackglory/errors/lib/es2018/expected-error.js","../../node_modules/iterable-operator/node_modules/@blackglory/errors/lib/es2018/assertion-error.js","../../node_modules/iterable-operator/node_modules/@blackglory/errors/lib/es2018/normalize.js","../../node_modules/iterable-operator/node_modules/@blackglory/errors/lib/es2018/refute.js","../../node_modules/iterable-operator/node_modules/@blackglory/errors/lib/es2018/assert.js","../../node_modules/iterable-operator/node_modules/@blackglory/errors/lib/es2018/index.js","../../node_modules/iterable-operator/lib/es2018/middleware/chunk-async.js","../../node_modules/@blackglory/types/lib/es2018/array.js","../../node_modules/@blackglory/types/lib/es2018/null.js","../../node_modules/@blackglory/types/lib/es2018/undefined.js","../../node_modules/@blackglory/types/lib/es2018/async-iterable.js","../../node_modules/@blackglory/types/lib/es2018/bigint.js","../../node_modules/@blackglory/types/lib/es2018/boolean.js","../../node_modules/@blackglory/types/lib/es2018/string.js","../../node_modules/@blackglory/types/lib/es2018/char.js","../../node_modules/@blackglory/types/lib/es2018/date.js","../../node_modules/@blackglory/types/lib/es2018/enum.js","../../node_modules/@blackglory/types/lib/es2018/error.js","../../node_modules/@blackglory/types/lib/es2018/falsy.js","../../node_modules/@blackglory/types/lib/es2018/function.js","../../node_modules/@blackglory/types/lib/es2018/iterable.js","../../node_modules/lodash.isplainobject/index.js","../../node_modules/@blackglory/types/lib/es2018/object.js","../../node_modules/@blackglory/types/lib/es2018/number.js","../../node_modules/@blackglory/types/lib/es2018/json-rpc.js","../../node_modules/@blackglory/types/lib/es2018/json.js","../../node_modules/@blackglory/types/lib/es2018/url.js","../../node_modules/@blackglory/types/lib/es2018/index.js","../../node_modules/iterable-operator/lib/es2018/middleware/chunk-by-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/chunk-by.js","../../node_modules/iterable-operator/lib/es2018/middleware/chunk.js","../../node_modules/iterable-operator/lib/es2018/middleware/concat-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/concat.js","../../node_modules/iterable-operator/lib/es2018/utils.js","../../node_modules/iterable-operator/lib/es2018/middleware/drop-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/drop-right-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/drop-right.js","../../node_modules/iterable-operator/lib/es2018/middleware/drop-until-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/drop-until.js","../../node_modules/iterable-operator/lib/es2018/middleware/drop.js","../../node_modules/iterable-operator/lib/es2018/middleware/filter-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/filter.js","../../node_modules/iterable-operator/lib/es2018/middleware/flatten-by-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/flatten-deep-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/flatten-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/flatten-by.js","../../node_modules/iterable-operator/lib/es2018/middleware/flatten-deep.js","../../node_modules/iterable-operator/lib/es2018/middleware/flatten.js","../../node_modules/iterable-operator/lib/es2018/middleware/map-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/map.js","../../node_modules/iterable-operator/lib/es2018/middleware/repeat-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/repeat.js","../../node_modules/iterable-operator/lib/es2018/middleware/slice-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/slice.js","../../node_modules/iterable-operator/lib/es2018/middleware/split-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/split-by-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/split-by.js","../../node_modules/iterable-operator/lib/es2018/middleware/split.js","../../node_modules/iterable-operator/lib/es2018/middleware/take-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/take-right-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/take-right.js","../../node_modules/iterable-operator/lib/es2018/middleware/take-until-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/take-until.js","../../node_modules/iterable-operator/lib/es2018/middleware/take.js","../../node_modules/iterable-operator/lib/es2018/middleware/tap-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/tap.js","../../node_modules/iterable-operator/lib/es2018/middleware/to-async-iterable.js","../../node_modules/iterable-operator/lib/es2018/middleware/transform-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/transform.js","../../node_modules/iterable-operator/lib/es2018/middleware/uniq-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/uniq-by-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/uniq-by.js","../../node_modules/iterable-operator/lib/es2018/middleware/uniq.js","../../node_modules/iterable-operator/lib/es2018/middleware/zip-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/zip.js","../../node_modules/iterable-operator/lib/es2018/middleware/index.js","../../node_modules/iterable-operator/lib/es2018/output/consume.js","../../node_modules/iterable-operator/lib/es2018/output/each-async.js","../../node_modules/iterable-operator/lib/es2018/output/each.js","../../node_modules/iterable-operator/lib/es2018/output/every-async.js","../../node_modules/iterable-operator/lib/es2018/output/every.js","../../node_modules/iterable-operator/lib/es2018/output/find-async.js","../../node_modules/iterable-operator/lib/es2018/output/find.js","../../node_modules/iterable-operator/lib/es2018/output/first-async.js","../../node_modules/iterable-operator/lib/es2018/output/first.js","../../node_modules/iterable-operator/lib/es2018/output/includes-async.js","../../node_modules/iterable-operator/lib/es2018/output/includes.js","../../node_modules/iterable-operator/lib/es2018/output/match-async.js","../../node_modules/iterable-operator/lib/es2018/output/match.js","../../node_modules/iterable-operator/lib/es2018/output/reduce-async.js","../../node_modules/iterable-operator/lib/es2018/output/reduce.js","../../node_modules/iterable-operator/lib/es2018/output/some-async.js","../../node_modules/iterable-operator/lib/es2018/output/some.js","../../node_modules/iterable-operator/lib/es2018/output/last-async.js","../../node_modules/iterable-operator/lib/es2018/output/last.js","../../node_modules/iterable-operator/lib/es2018/output/to-array-async.js","../../node_modules/iterable-operator/lib/es2018/output/to-array.js","../../node_modules/iterable-operator/lib/es2018/output/to-set-async.js","../../node_modules/iterable-operator/lib/es2018/output/to-set.js","../../node_modules/iterable-operator/lib/es2018/output/index.js","../../node_modules/iterable-operator/lib/es2018/index.js","../../node_modules/@blackglory/errors/lib/es2018/traverse-error-prototype-chain.js","../../node_modules/@blackglory/errors/lib/es2018/get-error-names.js","../../node_modules/@blackglory/errors/lib/es2018/serializable-error.js","../../node_modules/@blackglory/errors/lib/es2018/custom-error.js","../../node_modules/@blackglory/errors/lib/es2018/assertion-error.js","../../node_modules/@blackglory/errors/lib/es2018/normalize.js","../../node_modules/@blackglory/pass/lib/es2018/pass.js","../../node_modules/@blackglory/pass/lib/es2018/index.js","../../node_modules/@blackglory/errors/lib/es2018/hydrate.js","../../node_modules/@blackglory/errors/lib/es2018/assert.js","../../node_modules/@blackglory/errors/lib/es2018/index.js","../../src/lru-map.ts","../../node_modules/extra-rand/lib/es2018/random.js","../../node_modules/extra-rand/lib/es2018/random-int.js","../../node_modules/extra-rand/lib/es2018/random-int-inclusive.js","../../node_modules/extra-rand/lib/es2018/index.js","../../node_modules/extra-timers/lib/es2018/exponential-backoff.js","../../node_modules/extra-timers/lib/es2018/set-timeout.js","../../node_modules/extra-timers/lib/es2018/set-schedule.js","../../node_modules/extra-timers/lib/es2018/set-interval.js","../../node_modules/extra-timers/lib/es2018/set-immediate.js","../../node_modules/extra-timers/lib/es2018/set-timeout-loop.js","../../node_modules/extra-timers/lib/es2018/set-dynamic-timeout-loop.js","../../node_modules/extra-timers/lib/es2018/index.js","../../src/expirable-map.ts","../../src/tlru-map.ts","../../src/trie-map.ts","../../src/finite-state-machine.ts","../../node_modules/rxjs/dist/esm5/internal/util/isFunction.js","../../node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js","../../node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js","../../node_modules/rxjs/dist/esm5/internal/util/arrRemove.js","../../node_modules/rxjs/dist/esm5/internal/Subscription.js","../../node_modules/rxjs/dist/esm5/internal/config.js","../../node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js","../../node_modules/rxjs/dist/esm5/internal/util/noop.js","../../node_modules/rxjs/dist/esm5/internal/util/errorContext.js","../../node_modules/rxjs/dist/esm5/internal/Subscriber.js","../../node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js","../../node_modules/rxjs/dist/esm5/internal/symbol/observable.js","../../node_modules/rxjs/dist/esm5/internal/util/identity.js","../../node_modules/rxjs/dist/esm5/internal/util/pipe.js","../../node_modules/rxjs/dist/esm5/internal/Observable.js","../../node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js","../../node_modules/rxjs/dist/esm5/internal/Subject.js","../../src/box.ts","../../src/observable-finite-state-machine.ts","../../src/cons.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n 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;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n 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); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","type Handler<T> = (value: T) => void\n\nexport class Emitter<T> {\n #map = new Map<string, Set<Handler<T>>>()\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n /**\n * The same handler will only be registered once.\n */\n on(event: string, handler: Handler<T>): void {\n if (!this.#map.has(event)) {\n this.#map.set(event, new Set())\n }\n\n const set = this.#map.get(event)!\n set.add(handler)\n }\n\n off(event: string, handler: Handler<T>): void {\n if (!this.#map.has(event)) return\n\n const handlers = this.#map.get(event)!\n handlers.delete(handler)\n if (handlers.size === 0) {\n this.#map.delete(event)\n }\n }\n\n emit(event: string, value: T): void {\n if (!this.#map.has(event)) return\n\n const set = this.#map.get(event)!\n set.forEach(cb => cb(value))\n }\n}\n","export class HashMap<K, V, H = unknown> {\n #map = new Map<H, V>()\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n get size() {\n return this.#map.size\n }\n\n constructor(private hash: (key: K) => H) {}\n\n set(key: K, value: V): this {\n this.#map.set(this.hash(key), value)\n return this\n }\n\n has(key: K): boolean {\n return this.#map.has(this.hash(key))\n }\n\n get(key: K): V | undefined {\n return this.#map.get(this.hash(key))\n }\n\n delete(key: K): boolean {\n return this.#map.delete(this.hash(key))\n }\n\n clear(): void {\n this.#map.clear()\n }\n}\n","export class HashSet<V, H = unknown> implements Iterable<V> {\n #map = new Map<H, V>()\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n get size() {\n return this.#map.size\n }\n\n [Symbol.iterator]() {\n return this.#map.values()\n }\n\n constructor(private hash: (value: V) => H) {}\n\n add(value: V): this {\n this.#map.set(this.hash(value), value)\n return this\n }\n\n delete(value: V): boolean {\n return this.#map.delete(this.hash(value))\n }\n\n has(value: V): boolean {\n return this.#map.has(this.hash(value))\n }\n\n clear(): void {\n this.#map.clear()\n }\n\n values(): Iterable<V> {\n return this.#map.values()\n }\n}\n","export class Queue<T> {\n #items: T[] = []\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n get size(): number {\n return this.#items.length\n }\n\n empty(): void {\n this.#items.length = 0\n }\n\n enqueue(...items: T[]): void {\n this.#items.push(...items)\n }\n\n dequeue(): T | undefined {\n return this.#items.shift()\n }\n\n remove(item: T): void {\n let index: number\n while ((index = this.#items.indexOf(item)) >= 0) {\n this.#items.splice(index, 1)\n }\n }\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.go = void 0;\nfunction go(fn) {\n return fn();\n}\nexports.go = go;\n//# sourceMappingURL=go.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./go\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CustomError = void 0;\nclass CustomError extends Error {\n get name() {\n return this.constructor.name;\n }\n}\nexports.CustomError = CustomError;\n//# sourceMappingURL=custom-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ExpectedError = void 0;\nconst custom_error_1 = require(\"./custom-error\");\nclass ExpectedError extends custom_error_1.CustomError {\n}\nexports.ExpectedError = ExpectedError;\n//# sourceMappingURL=expected-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AssertionError = void 0;\nconst custom_error_1 = require(\"./custom-error\");\nclass AssertionError extends custom_error_1.CustomError {\n}\nexports.AssertionError = AssertionError;\n//# sourceMappingURL=assertion-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.normalize = void 0;\nfunction normalize(err) {\n var _a;\n return {\n name: err.name,\n message: err.message,\n stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null\n };\n}\nexports.normalize = normalize;\n//# sourceMappingURL=normalize.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.refute = void 0;\nconst expected_error_1 = require(\"./expected-error\");\nfunction refute(condition, message) {\n if (condition)\n throw new expected_error_1.ExpectedError(message);\n}\nexports.refute = refute;\n//# sourceMappingURL=refute.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assert = void 0;\nconst assertion_error_1 = require(\"./assertion-error\");\nfunction assert(condition, message) {\n if (!condition)\n throw new assertion_error_1.AssertionError(message);\n}\nexports.assert = assert;\n//# sourceMappingURL=assert.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./custom-error\"), exports);\n__exportStar(require(\"./expected-error\"), exports);\n__exportStar(require(\"./assertion-error\"), exports);\n__exportStar(require(\"./normalize\"), exports);\n__exportStar(require(\"./refute\"), exports);\n__exportStar(require(\"./assert\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.chunkAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction chunkAsync(iterable, size) {\n (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');\n (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');\n return (0, go_1.go)(async function* () {\n let buffer = [];\n for await (const element of iterable) {\n buffer.push(element);\n if (buffer.length >= size) {\n yield buffer;\n buffer = [];\n }\n }\n if (buffer.length)\n yield buffer;\n });\n}\nexports.chunkAsync = chunkAsync;\n//# sourceMappingURL=chunk-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntEmptyArray = exports.isEmptyArray = exports.isntArray = exports.isArray = void 0;\nfunction isArray(val) {\n return Array.isArray(val);\n}\nexports.isArray = isArray;\nfunction isntArray(val) {\n return !isArray(val);\n}\nexports.isntArray = isntArray;\nfunction isEmptyArray(val) {\n return val.length === 0;\n}\nexports.isEmptyArray = isEmptyArray;\nfunction isntEmptyArray(val) {\n return val.length !== 0;\n}\nexports.isntEmptyArray = isntEmptyArray;\n//# sourceMappingURL=array.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntNull = exports.isNull = void 0;\nfunction isNull(val) {\n return val === null;\n}\nexports.isNull = isNull;\nfunction isntNull(val) {\n return !isNull(val);\n}\nexports.isntNull = isntNull;\n//# sourceMappingURL=null.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntUndefined = exports.isUndefined = void 0;\nfunction isUndefined(val) {\n return val === undefined;\n}\nexports.isUndefined = isUndefined;\nfunction isntUndefined(val) {\n return !isUndefined(val);\n}\nexports.isntUndefined = isntUndefined;\n//# sourceMappingURL=undefined.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntAsyncIterable = exports.isAsyncIterable = void 0;\nconst null_1 = require(\"./null\");\nconst undefined_1 = require(\"./undefined\");\nfunction isAsyncIterable(val) {\n return (0, null_1.isntNull)(val)\n && (0, undefined_1.isntUndefined)(val)\n && typeof val[Symbol.asyncIterator] === 'function';\n}\nexports.isAsyncIterable = isAsyncIterable;\nfunction isntAsyncIterable(val) {\n return !isAsyncIterable(val);\n}\nexports.isntAsyncIterable = isntAsyncIterable;\n//# sourceMappingURL=async-iterable.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntBigInt = exports.isBigInt = void 0;\nfunction isBigInt(val) {\n return typeof val === 'bigint';\n}\nexports.isBigInt = isBigInt;\nfunction isntBigInt(val) {\n return !isBigInt(val);\n}\nexports.isntBigInt = isntBigInt;\n//# sourceMappingURL=bigint.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntBoolean = exports.isBoolean = void 0;\nfunction isBoolean(val) {\n return typeof val === 'boolean';\n}\nexports.isBoolean = isBoolean;\nfunction isntBoolean(val) {\n return !isBoolean(val);\n}\nexports.isntBoolean = isntBoolean;\n//# sourceMappingURL=boolean.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntString = exports.isString = void 0;\nfunction isString(val) {\n return typeof val === 'string';\n}\nexports.isString = isString;\nfunction isntString(val) {\n return !isString(val);\n}\nexports.isntString = isntString;\n//# sourceMappingURL=string.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntChar = exports.isChar = void 0;\nconst string_1 = require(\"./string\");\nfunction isChar(val) {\n return (0, string_1.isString)(val)\n && val.length === 1;\n}\nexports.isChar = isChar;\nfunction isntChar(val) {\n return !isChar(val);\n}\nexports.isntChar = isntChar;\n//# sourceMappingURL=char.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntDate = exports.isDate = void 0;\nfunction isDate(val) {\n return val instanceof Date;\n}\nexports.isDate = isDate;\nfunction isntDate(val) {\n return !isDate(val);\n}\nexports.isntDate = isntDate;\n//# sourceMappingURL=date.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.inEnum = void 0;\nfunction inEnum(val, _enum) {\n return Object.values(_enum).includes(val);\n}\nexports.inEnum = inEnum;\n//# sourceMappingURL=enum.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntError = exports.isError = void 0;\nfunction isError(val) {\n return val instanceof Error;\n}\nexports.isError = isError;\nfunction isntError(val) {\n return !isError(val);\n}\nexports.isntError = isntError;\n//# sourceMappingURL=error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntFalsy = exports.isFalsy = void 0;\nfunction isFalsy(val) {\n return !val;\n}\nexports.isFalsy = isFalsy;\nfunction isntFalsy(val) {\n return !isFalsy(val);\n}\nexports.isntFalsy = isntFalsy;\n//# sourceMappingURL=falsy.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntFunction = exports.isFunction = void 0;\nfunction isFunction(val) {\n return typeof val === 'function';\n}\nexports.isFunction = isFunction;\nfunction isntFunction(val) {\n return !isFunction(val);\n}\nexports.isntFunction = isntFunction;\n//# sourceMappingURL=function.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntIterable = exports.isIterable = void 0;\nconst null_1 = require(\"./null\");\nconst undefined_1 = require(\"./undefined\");\nfunction isIterable(val) {\n return (0, null_1.isntNull)(val)\n && (0, undefined_1.isntUndefined)(val)\n && typeof val[Symbol.iterator] === 'function';\n}\nexports.isIterable = isIterable;\nfunction isntIterable(val) {\n return !isIterable(val);\n}\nexports.isntIterable = isntIterable;\n//# sourceMappingURL=iterable.js.map","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n // Many host objects are `Object` objects that can coerce to strings\n // despite having improperly defined `toString` methods.\n var result = false;\n if (value != null && typeof value.toString != 'function') {\n try {\n result = !!(value + '');\n } catch (e) {}\n }\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) ||\n objectToString.call(value) != objectTag || isHostObject(value)) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return (typeof Ctor == 'function' &&\n Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);\n}\n\nmodule.exports = isPlainObject;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntEmptyObject = exports.isEmptyObject = exports.isntPlainObject = exports.isPlainObject = exports.isntObject = exports.isObject = void 0;\nconst lodash_isplainobject_1 = __importDefault(require(\"lodash.isplainobject\"));\nfunction isObject(val) {\n return val !== null\n && typeof val === 'object';\n}\nexports.isObject = isObject;\nfunction isntObject(val) {\n return !isObject(val);\n}\nexports.isntObject = isntObject;\nfunction isPlainObject(val) {\n return (0, lodash_isplainobject_1.default)(val);\n}\nexports.isPlainObject = isPlainObject;\nfunction isntPlainObject(val) {\n return !isPlainObject(val);\n}\nexports.isntPlainObject = isntPlainObject;\nfunction isEmptyObject(val) {\n return Object.keys(val).length === 0;\n}\nexports.isEmptyObject = isEmptyObject;\nfunction isntEmptyObject(val) {\n return Object.keys(val).length !== 0;\n}\nexports.isntEmptyObject = isntEmptyObject;\n//# sourceMappingURL=object.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntNumber = exports.isNumber = void 0;\nfunction isNumber(val) {\n return typeof val === 'number';\n}\nexports.isNumber = isNumber;\nfunction isntNumber(val) {\n return !isNumber(val);\n}\nexports.isntNumber = isntNumber;\n//# sourceMappingURL=number.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntJsonRpcError = exports.isJsonRpcError = exports.isntJsonRpcSuccess = exports.isJsonRpcSuccess = exports.isntJsonRpcRequest = exports.isJsonRpcRequest = exports.isntJsonRpcNotification = exports.isJsonRpcNotification = void 0;\nconst array_1 = require(\"./array\");\nconst object_1 = require(\"./object\");\nconst string_1 = require(\"./string\");\nconst number_1 = require(\"./number\");\nconst undefined_1 = require(\"./undefined\");\nfunction isJsonRpcId(val) {\n return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);\n}\nfunction isJsonRpcParams(val) {\n return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);\n}\nfunction isJsonRpcNotification(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, string_1.isString)(val.jsonrpc)\n && (0, string_1.isString)(val.method)\n && (0, undefined_1.isUndefined)(val.id)\n && isJsonRpcParams(val.params);\n}\nexports.isJsonRpcNotification = isJsonRpcNotification;\nfunction isntJsonRpcNotification(val) {\n return !isJsonRpcNotification(val);\n}\nexports.isntJsonRpcNotification = isntJsonRpcNotification;\nfunction isJsonRpcRequest(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, string_1.isString)(val.jsonrpc)\n && (0, string_1.isString)(val.method)\n && isJsonRpcId(val.id)\n && isJsonRpcParams(val.params);\n}\nexports.isJsonRpcRequest = isJsonRpcRequest;\nfunction isntJsonRpcRequest(val) {\n return !isJsonRpcRequest(val);\n}\nexports.isntJsonRpcRequest = isntJsonRpcRequest;\nfunction isJsonRpcSuccess(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, string_1.isString)(val.jsonrpc)\n && (0, string_1.isString)(val.id)\n && 'result' in val;\n}\nexports.isJsonRpcSuccess = isJsonRpcSuccess;\nfunction isntJsonRpcSuccess(val) {\n return !isJsonRpcSuccess(val);\n}\nexports.isntJsonRpcSuccess = isntJsonRpcSuccess;\nfunction isJsonRpcError(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, string_1.isString)(val.jsonrpc)\n && isJsonRpcId(val.id)\n && isJsonRpcErrorObject(val.error);\n}\nexports.isJsonRpcError = isJsonRpcError;\nfunction isntJsonRpcError(val) {\n return !isJsonRpcError(val);\n}\nexports.isntJsonRpcError = isntJsonRpcError;\nfunction isJsonRpcErrorObject(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, number_1.isNumber)(val.code)\n && (0, string_1.isString)(val.message)\n && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));\n}\n//# sourceMappingURL=json-rpc.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntJson = exports.isJson = void 0;\nfunction isJson(val) {\n try {\n JSON.stringify(val);\n return true;\n }\n catch (_a) {\n return false;\n }\n}\nexports.isJson = isJson;\nfunction isntJson(val) {\n return !isntJson(val);\n}\nexports.isntJson = isntJson;\n//# sourceMappingURL=json.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isAbsoluteURL = void 0;\nfunction isAbsoluteURL(str) {\n try {\n new URL(str);\n return true;\n }\n catch (_a) {\n return false;\n }\n}\nexports.isAbsoluteURL = isAbsoluteURL;\n//# sourceMappingURL=url.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./array\"), exports);\n__exportStar(require(\"./async-iterable\"), exports);\n__exportStar(require(\"./bigint\"), exports);\n__exportStar(require(\"./boolean\"), exports);\n__exportStar(require(\"./char\"), exports);\n__exportStar(require(\"./date\"), exports);\n__exportStar(require(\"./enum\"), exports);\n__exportStar(require(\"./error\"), exports);\n__exportStar(require(\"./falsy\"), exports);\n__exportStar(require(\"./function\"), exports);\n__exportStar(require(\"./iterable\"), exports);\n__exportStar(require(\"./json-rpc\"), exports);\n__exportStar(require(\"./json\"), exports);\n__exportStar(require(\"./null\"), exports);\n__exportStar(require(\"./number\"), exports);\n__exportStar(require(\"./object\"), exports);\n__exportStar(require(\"./string\"), exports);\n__exportStar(require(\"./undefined\"), exports);\n__exportStar(require(\"./url\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.chunkByAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction chunkByAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return chunkByAsyncIterable(iterable);\n }\n else {\n return chunkByIterable(iterable);\n }\n async function* chunkByAsyncIterable(iterable) {\n let buffer = [];\n let index = 0;\n for await (const element of iterable) {\n buffer.push(element);\n if (await predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n index++;\n }\n if (buffer.length)\n yield buffer;\n }\n async function* chunkByIterable(iterable) {\n let buffer = [];\n let index = 0;\n for (const element of iterable) {\n buffer.push(element);\n if (await predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n index++;\n }\n if (buffer.length)\n yield buffer;\n }\n}\nexports.chunkByAsync = chunkByAsync;\n//# sourceMappingURL=chunk-by-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.chunkBy = void 0;\nfunction* chunkBy(iterable, predicate) {\n let buffer = [];\n let index = 0;\n for (const element of iterable) {\n buffer.push(element);\n if (predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n index++;\n }\n if (buffer.length)\n yield buffer;\n}\nexports.chunkBy = chunkBy;\n//# sourceMappingURL=chunk-by.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.chunk = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction chunk(iterable, size) {\n (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');\n (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');\n return (0, go_1.go)(function* () {\n let buffer = [];\n for (const element of iterable) {\n buffer.push(element);\n if (buffer.length >= size) {\n yield buffer;\n buffer = [];\n }\n }\n if (buffer.length)\n yield buffer;\n });\n}\nexports.chunk = chunk;\n//# sourceMappingURL=chunk.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.concatAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nconst go_1 = require(\"@blackglory/go\");\nfunction concatAsync(iterable, ...otherIterables) {\n return (0, go_1.go)(async function* () {\n for (const iter of [iterable, ...otherIterables]) {\n if ((0, types_1.isAsyncIterable)(iter)) {\n for await (const element of iter) {\n yield element;\n }\n }\n else {\n for (const element of iter) {\n yield element;\n }\n }\n }\n });\n}\nexports.concatAsync = concatAsync;\n//# sourceMappingURL=concat-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.concat = void 0;\nconst go_1 = require(\"@blackglory/go\");\nfunction concat(iterable, ...otherIterables) {\n return (0, go_1.go)(function* () {\n for (const iter of [iterable, ...otherIterables]) {\n yield* iter;\n }\n });\n}\nexports.concat = concat;\n//# sourceMappingURL=concat.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.copyIterable = exports.copyAsyncIterable = void 0;\nasync function* copyAsyncIterable(iterable) {\n for await (const element of iterable) {\n yield element;\n }\n}\nexports.copyAsyncIterable = copyAsyncIterable;\nfunction* copyIterable(iterable) {\n for (const element of iterable) {\n yield element;\n }\n}\nexports.copyIterable = copyIterable;\n//# sourceMappingURL=utils.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst utils_1 = require(\"../utils\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction dropAsync(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n if (count === 0)\n return (0, utils_1.copyAsyncIterable)(iterable);\n return (0, go_1.go)(async function* () {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n let value;\n while ({ value, done } = await iterator.next(), !done) {\n if (count <= 0)\n break;\n count--;\n }\n while (!done) {\n yield value;\n ({ value, done } = await iterator.next());\n }\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n });\n}\nexports.dropAsync = dropAsync;\n//# sourceMappingURL=drop-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropRightAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst utils_1 = require(\"../utils\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction dropRightAsync(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n if (count === 0)\n return (0, utils_1.copyAsyncIterable)(iterable);\n return (0, go_1.go)(async function* () {\n const arr = await toArrayAsync(iterable);\n const result = arr.slice(0, -count);\n for (const value of result) {\n yield value;\n }\n });\n}\nexports.dropRightAsync = dropRightAsync;\nasync function toArrayAsync(iterable) {\n const result = [];\n for await (const element of iterable) {\n result.push(element);\n }\n return result;\n}\n//# sourceMappingURL=drop-right-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropRight = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst utils_1 = require(\"../utils\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction dropRight(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n if (count === 0)\n return (0, utils_1.copyIterable)(iterable);\n return (0, go_1.go)(function* () {\n const arr = Array.from(iterable);\n yield* arr.slice(0, -count);\n });\n}\nexports.dropRight = dropRight;\n//# sourceMappingURL=drop-right.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropUntilAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction dropUntilAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return dropUntilAsyncIterable(iterable);\n }\n else {\n return dropUntilIterable(iterable);\n }\n async function* dropUntilAsyncIterable(iterable) {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n let index = 0;\n let value;\n while ({ value, done } = await iterator.next(), !done) {\n if (await predicate(value, index++))\n break;\n }\n while (!done) {\n yield value;\n ({ value, done } = await iterator.next());\n }\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n }\n async function* dropUntilIterable(iterable) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let index = 0;\n let value;\n while ({ value, done } = iterator.next(), !done) {\n if (await predicate(value, index++))\n break;\n }\n while (!done) {\n yield value;\n ({ value, done } = iterator.next());\n }\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n }\n}\nexports.dropUntilAsync = dropUntilAsync;\n//# sourceMappingURL=drop-until-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropUntil = void 0;\nfunction* dropUntil(iterable, predicate) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let index = 0;\n let value;\n while ({ value, done } = iterator.next(), !done) {\n if (predicate(value, index++))\n break;\n }\n while (!done) {\n yield value;\n ({ value, done } = iterator.next());\n }\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n}\nexports.dropUntil = dropUntil;\n//# sourceMappingURL=drop-until.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.drop = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst utils_1 = require(\"../utils\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction drop(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n if (count === 0)\n return (0, utils_1.copyIterable)(iterable);\n return (0, go_1.go)(function* () {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let value;\n while ({ value, done } = iterator.next(), !done) {\n if (count <= 0)\n break;\n count--;\n }\n while (!done) {\n yield value;\n ({ value, done } = iterator.next());\n }\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n });\n}\nexports.drop = drop;\n//# sourceMappingURL=drop.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.filterAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction filterAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return filterAsyncIterable(iterable);\n }\n else {\n return filterIterable(iterable);\n }\n async function* filterAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index))\n yield element;\n index++;\n }\n }\n async function* filterIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index))\n yield element;\n index++;\n }\n }\n}\nexports.filterAsync = filterAsync;\n//# sourceMappingURL=filter-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.filter = void 0;\nfunction* filter(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index))\n yield element;\n index++;\n }\n}\nexports.filter = filter;\n//# sourceMappingURL=filter.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenByAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction flattenByAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return flattenByAsyncIterable(iterable);\n }\n else {\n return flattenByIterable(iterable);\n }\n async function* flattenByAsyncIterable(iterable) {\n const level = 1;\n for await (const element of iterable) {\n if (isFiniteIterable(element) && await predicate(element, level)) {\n yield* flatten(element, level + 1);\n }\n else {\n yield element;\n }\n }\n }\n function flattenByIterable(iterable) {\n return flatten(iterable, 1);\n }\n async function* flatten(iterable, level) {\n for (const element of iterable) {\n if (isFiniteIterable(element) && await predicate(element, level)) {\n yield* flatten(element, level + 1);\n }\n else {\n yield element;\n }\n }\n }\n}\nexports.flattenByAsync = flattenByAsync;\nfunction isFiniteIterable(val) {\n return (0, types_1.isIterable)(val) && (0, types_1.isntChar)(val);\n}\n//# sourceMappingURL=flatten-by-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenDeepAsync = void 0;\nconst flatten_by_async_1 = require(\"./flatten-by-async\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction flattenDeepAsync(iterable, depth = Infinity) {\n (0, errors_1.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');\n (0, errors_1.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');\n return (0, flatten_by_async_1.flattenByAsync)(iterable, (_, level) => level <= depth);\n}\nexports.flattenDeepAsync = flattenDeepAsync;\n//# sourceMappingURL=flatten-deep-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenAsync = void 0;\nconst flatten_deep_async_1 = require(\"./flatten-deep-async\");\nfunction flattenAsync(iterable) {\n return (0, flatten_deep_async_1.flattenDeepAsync)(iterable, 1);\n}\nexports.flattenAsync = flattenAsync;\n//# sourceMappingURL=flatten-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenBy = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction flattenBy(iterable, predicate) {\n return flatten(iterable, 1);\n function* flatten(iterable, level) {\n for (const element of iterable) {\n if (isFiniteIterable(element) && predicate(element, level)) {\n yield* flatten(element, level + 1);\n }\n else {\n yield element;\n }\n }\n }\n}\nexports.flattenBy = flattenBy;\nfunction isFiniteIterable(val) {\n return (0, types_1.isIterable)(val) && (0, types_1.isntChar)(val);\n}\n//# sourceMappingURL=flatten-by.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenDeep = void 0;\nconst flatten_by_1 = require(\"./flatten-by\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction flattenDeep(iterable, depth = Infinity) {\n (0, errors_1.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');\n (0, errors_1.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');\n return (0, flatten_by_1.flattenBy)(iterable, (_, level) => level <= depth);\n}\nexports.flattenDeep = flattenDeep;\n//# sourceMappingURL=flatten-deep.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flatten = void 0;\nconst flatten_deep_1 = require(\"./flatten-deep\");\nfunction flatten(iterable) {\n return (0, flatten_deep_1.flattenDeep)(iterable, 1);\n}\nexports.flatten = flatten;\n//# sourceMappingURL=flatten.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.mapAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction mapAsync(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return mapAsyncIterable(iterable);\n }\n else {\n return mapIterable(iterable);\n }\n async function* mapAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n yield await fn(element, index);\n index++;\n }\n }\n async function* mapIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n yield await fn(element, index);\n index++;\n }\n }\n}\nexports.mapAsync = mapAsync;\n//# sourceMappingURL=map-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.map = void 0;\nfunction* map(iterable, fn) {\n let index = 0;\n for (const element of iterable) {\n yield fn(element, index);\n index++;\n }\n}\nexports.map = map;\n//# sourceMappingURL=map.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.repeatAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction repeatAsync(iterable, times) {\n (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');\n (0, errors_1.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');\n if (times === Infinity)\n warnInfiniteLoop();\n return (0, go_1.go)(async function* () {\n const cache = [];\n if (times > 0) {\n for await (const element of iterable) {\n yield element;\n cache.push(element);\n }\n times--;\n }\n while (times > 0) {\n yield* cache;\n times--;\n }\n });\n}\nexports.repeatAsync = repeatAsync;\nfunction warnInfiniteLoop() {\n if (isProduction())\n return;\n console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');\n}\nfunction isProduction() {\n return process.env.NODE_ENV === 'production';\n}\n//# sourceMappingURL=repeat-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.repeat = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction repeat(iterable, times) {\n (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');\n (0, errors_1.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');\n if (times === Infinity)\n warnInfiniteLoop();\n return (0, go_1.go)(function* () {\n const cache = [];\n if (times > 0) {\n for (const element of iterable) {\n yield element;\n cache.push(element);\n }\n times--;\n }\n while (times > 0) {\n yield* cache;\n times--;\n }\n });\n}\nexports.repeat = repeat;\nfunction warnInfiniteLoop() {\n if (isProduction())\n return;\n console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');\n}\nfunction isProduction() {\n return process.env.NODE_ENV === 'production';\n}\n//# sourceMappingURL=repeat.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sliceAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction sliceAsync(iterable, start, end = Infinity) {\n (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');\n (0, errors_1.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');\n (0, errors_1.assert)(Number.isInteger(end), 'The parameter end must be an integer');\n (0, errors_1.assert)(end >= start, 'The parameter end must be greater than or equal to start');\n return (0, go_1.go)(async function* () {\n let index = 0;\n for await (const element of iterable) {\n if (index >= end)\n break;\n if (index >= start)\n yield element;\n index++;\n }\n });\n}\nexports.sliceAsync = sliceAsync;\n//# sourceMappingURL=slice-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.slice = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction slice(iterable, start, end = Infinity) {\n (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');\n (0, errors_1.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');\n (0, errors_1.assert)(Number.isInteger(end), 'The parameter end must be an integer');\n (0, errors_1.assert)(end >= start, 'The parameter end must be greater than or equal to start');\n return (0, go_1.go)(function* () {\n let index = 0;\n for (const element of iterable) {\n if (index >= end)\n break;\n if (index >= start)\n yield element;\n index++;\n }\n });\n}\nexports.slice = slice;\n//# sourceMappingURL=slice.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.splitAsync = void 0;\nasync function* splitAsync(iterable, separator) {\n let buffer = [];\n for await (const element of iterable) {\n if (element === separator) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n }\n yield buffer;\n}\nexports.splitAsync = splitAsync;\n//# sourceMappingURL=split-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.splitByAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction splitByAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return splitByAsyncIterable(iterable);\n }\n else {\n return splitByIterable(iterable);\n }\n async function* splitByIterable(iterable) {\n let buffer = [];\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n index++;\n }\n yield buffer;\n }\n async function* splitByAsyncIterable(iterable) {\n let buffer = [];\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n index++;\n }\n yield buffer;\n }\n}\nexports.splitByAsync = splitByAsync;\n//# sourceMappingURL=split-by-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.splitBy = void 0;\nfunction* splitBy(iterable, predicate) {\n let buffer = [];\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n index++;\n }\n yield buffer;\n}\nexports.splitBy = splitBy;\n//# sourceMappingURL=split-by.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.split = void 0;\nfunction* split(iterable, separator) {\n let buffer = [];\n for (const element of iterable) {\n if (element === separator) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n }\n yield buffer;\n}\nexports.split = split;\n//# sourceMappingURL=split.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction takeAsync(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n return (0, go_1.go)(async function* () {\n if (count === 0)\n return;\n for await (const element of iterable) {\n yield element;\n count--;\n if (count === 0)\n break;\n }\n });\n}\nexports.takeAsync = takeAsync;\n//# sourceMappingURL=take-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeRightAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction takeRightAsync(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n return (0, go_1.go)(async function* () {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n const buffer = [];\n let value;\n while ({ value, done } = await iterator.next(), !done) {\n buffer.push(value);\n if (buffer.length > count)\n buffer.shift();\n }\n yield* buffer;\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n });\n}\nexports.takeRightAsync = takeRightAsync;\n//# sourceMappingURL=take-right-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeRight = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction takeRight(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n return (0, go_1.go)(function* () {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n const buffer = [];\n let value;\n while ({ value, done } = iterator.next(), !done) {\n buffer.push(value);\n if (buffer.length > count)\n buffer.shift();\n }\n yield* buffer;\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n });\n}\nexports.takeRight = takeRight;\n//# sourceMappingURL=take-right.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeUntilAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction takeUntilAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return takeUntilAsyncIterable(iterable);\n }\n else {\n return takeUntilIterable(iterable);\n }\n async function* takeUntilAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index))\n break;\n yield element;\n index++;\n }\n }\n async function* takeUntilIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index))\n break;\n yield element;\n index++;\n }\n }\n}\nexports.takeUntilAsync = takeUntilAsync;\n//# sourceMappingURL=take-until-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeUntil = void 0;\nfunction* takeUntil(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index))\n break;\n yield element;\n index++;\n }\n}\nexports.takeUntil = takeUntil;\n//# sourceMappingURL=take-until.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.take = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction take(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n return (0, go_1.go)(function* () {\n if (count === 0)\n return;\n for (const element of iterable) {\n yield element;\n count--;\n if (count === 0)\n break;\n }\n });\n}\nexports.take = take;\n//# sourceMappingURL=take.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.tapAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction tapAsync(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return tapAsyncIterable(iterable);\n }\n else {\n return tapIterable(iterable);\n }\n async function* tapIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n await fn(element, index);\n yield element;\n index++;\n }\n }\n async function* tapAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n await fn(element, index);\n yield element;\n index++;\n }\n }\n}\nexports.tapAsync = tapAsync;\n//# sourceMappingURL=tap-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.tap = void 0;\nfunction* tap(iterable, fn) {\n let index = 0;\n for (const element of iterable) {\n fn(element, index);\n yield element;\n index++;\n }\n}\nexports.tap = tap;\n//# sourceMappingURL=tap.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toAsyncIterable = void 0;\nasync function* toAsyncIterable(iterable) {\n for (const value of iterable) {\n yield value;\n }\n}\nexports.toAsyncIterable = toAsyncIterable;\n//# sourceMappingURL=to-async-iterable.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.transformAsync = void 0;\nasync function* transformAsync(iterable, transformer) {\n yield* transformer(iterable);\n}\nexports.transformAsync = transformAsync;\n//# sourceMappingURL=transform-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.transform = void 0;\nfunction* transform(iterable, transformer) {\n yield* transformer(iterable);\n}\nexports.transform = transform;\n//# sourceMappingURL=transform.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uniqAsync = void 0;\nasync function* uniqAsync(iterable) {\n const bucket = new Set();\n for await (const element of iterable) {\n if (!bucket.has(element)) {\n yield element;\n bucket.add(element);\n }\n }\n}\nexports.uniqAsync = uniqAsync;\n//# sourceMappingURL=uniq-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uniqByAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction uniqByAsync(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return uniqByAsyncIterable(iterable);\n }\n else {\n return uniqByIterable(iterable);\n }\n async function* uniqByAsyncIterable(iterable) {\n const bucket = new Set();\n let index = 0;\n for await (const element of iterable) {\n const result = await fn(element, index);\n if (!bucket.has(result)) {\n yield element;\n bucket.add(result);\n }\n index++;\n }\n }\n async function* uniqByIterable(iterable) {\n const bucket = new Set();\n let index = 0;\n for (const element of iterable) {\n const result = await fn(element, index);\n if (!bucket.has(result)) {\n yield element;\n bucket.add(result);\n }\n index++;\n }\n }\n}\nexports.uniqByAsync = uniqByAsync;\n//# sourceMappingURL=uniq-by-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uniqBy = void 0;\nfunction* uniqBy(iterable, fn) {\n const bucket = new Set();\n let index = 0;\n for (const element of iterable) {\n const result = fn(element, index);\n if (!bucket.has(result)) {\n yield element;\n bucket.add(result);\n }\n index++;\n }\n}\nexports.uniqBy = uniqBy;\n//# sourceMappingURL=uniq-by.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uniq = void 0;\nfunction* uniq(iterable) {\n const bucket = new Set();\n for (const element of iterable) {\n if (!bucket.has(element)) {\n yield element;\n bucket.add(element);\n }\n }\n}\nexports.uniq = uniq;\n//# sourceMappingURL=uniq.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.zipAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nvar Kind;\n(function (Kind) {\n Kind[Kind[\"Sync\"] = 0] = \"Sync\";\n Kind[Kind[\"Async\"] = 1] = \"Async\";\n})(Kind || (Kind = {}));\nfunction zipAsync(iterable, ...otherIterables) {\n return zipWithSize(iterable, ...otherIterables);\n}\nexports.zipAsync = zipAsync;\nasync function* zipWithSize(...iterables) {\n var _a, _b, _c, _d;\n const length = iterables.length;\n const iterators = iterables.map(iterable => {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return [Kind.Async, iterable[Symbol.asyncIterator]()];\n }\n else {\n return [Kind.Sync, iterable[Symbol.iterator]()];\n }\n });\n const dones = iterators.map(() => false);\n try {\n while (true) {\n const result = new Array(length);\n for (let i = 0; i < length; i++) {\n const [kind, iterator] = iterators[i];\n let temp;\n if (kind === Kind.Async) {\n temp = await iterator.next();\n }\n else {\n temp = iterator.next();\n }\n if (temp.done) {\n dones[i] = true;\n return;\n }\n result[i] = temp.value;\n }\n yield result;\n }\n }\n finally {\n const undoneIterators = iterators.filter((_, i) => !dones[i]);\n for (const [kind, iterator] of undoneIterators) {\n if (kind === Kind.Async) {\n await ((_b = (_a = iterator).return) === null || _b === void 0 ? void 0 : _b.call(_a));\n }\n else {\n (_d = (_c = iterator).return) === null || _d === void 0 ? void 0 : _d.call(_c);\n }\n }\n }\n}\n//# sourceMappingURL=zip-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.zip = void 0;\nfunction zip(iterable, ...otherIterables) {\n return zipWithSize(iterable, ...otherIterables);\n}\nexports.zip = zip;\nfunction* zipWithSize(...iterables) {\n const length = iterables.length;\n const iterators = iterables.map(iterable => iterable[Symbol.iterator]());\n const dones = iterators.map(() => false);\n try {\n while (true) {\n const result = new Array(length);\n for (let i = 0; i < length; i++) {\n const { value, done } = iterators[i].next();\n if (done) {\n dones[i] = true;\n return;\n }\n result[i] = value;\n }\n yield result;\n }\n }\n finally {\n const undoneIterators = iterators.filter((_, i) => !dones[i]);\n undoneIterators.forEach(x => { var _a; return (_a = x.return) === null || _a === void 0 ? void 0 : _a.call(x); });\n }\n}\n//# sourceMappingURL=zip.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./chunk-async\"), exports);\n__exportStar(require(\"./chunk-by-async\"), exports);\n__exportStar(require(\"./chunk-by\"), exports);\n__exportStar(require(\"./chunk\"), exports);\n__exportStar(require(\"./concat-async\"), exports);\n__exportStar(require(\"./concat\"), exports);\n__exportStar(require(\"./drop-async\"), exports);\n__exportStar(require(\"./drop-right-async\"), exports);\n__exportStar(require(\"./drop-right\"), exports);\n__exportStar(require(\"./drop-until-async\"), exports);\n__exportStar(require(\"./drop-until\"), exports);\n__exportStar(require(\"./drop\"), exports);\n__exportStar(require(\"./filter-async\"), exports);\n__exportStar(require(\"./filter\"), exports);\n__exportStar(require(\"./flatten-async\"), exports);\n__exportStar(require(\"./flatten-by-async\"), exports);\n__exportStar(require(\"./flatten-by\"), exports);\n__exportStar(require(\"./flatten-deep-async\"), exports);\n__exportStar(require(\"./flatten-deep\"), exports);\n__exportStar(require(\"./flatten\"), exports);\n__exportStar(require(\"./map-async\"), exports);\n__exportStar(require(\"./map\"), exports);\n__exportStar(require(\"./repeat-async\"), exports);\n__exportStar(require(\"./repeat\"), exports);\n__exportStar(require(\"./slice-async\"), exports);\n__exportStar(require(\"./slice\"), exports);\n__exportStar(require(\"./split-async\"), exports);\n__exportStar(require(\"./split-by-async\"), exports);\n__exportStar(require(\"./split-by\"), exports);\n__exportStar(require(\"./split\"), exports);\n__exportStar(require(\"./take-async\"), exports);\n__exportStar(require(\"./take-right-async\"), exports);\n__exportStar(require(\"./take-right\"), exports);\n__exportStar(require(\"./take-until-async\"), exports);\n__exportStar(require(\"./take-until\"), exports);\n__exportStar(require(\"./take\"), exports);\n__exportStar(require(\"./tap-async\"), exports);\n__exportStar(require(\"./tap\"), exports);\n__exportStar(require(\"./to-async-iterable\"), exports);\n__exportStar(require(\"./transform-async\"), exports);\n__exportStar(require(\"./transform\"), exports);\n__exportStar(require(\"./uniq-async\"), exports);\n__exportStar(require(\"./uniq-by-async\"), exports);\n__exportStar(require(\"./uniq-by\"), exports);\n__exportStar(require(\"./uniq\"), exports);\n__exportStar(require(\"./zip-async\"), exports);\n__exportStar(require(\"./zip\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.consume = void 0;\nfunction consume(iterable, consumer) {\n return consumer(iterable);\n}\nexports.consume = consume;\n//# sourceMappingURL=consume.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.eachAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction eachAsync(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return eachAsyncIterable(iterable);\n }\n else {\n return eachIterable(iterable);\n }\n async function eachAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n await fn(element, index);\n index++;\n }\n }\n async function eachIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n await fn(element, index);\n index++;\n }\n }\n}\nexports.eachAsync = eachAsync;\n//# sourceMappingURL=each-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.each = void 0;\nfunction each(iterable, fn) {\n let index = 0;\n for (const element of iterable) {\n fn(element, index);\n index++;\n }\n}\nexports.each = each;\n//# sourceMappingURL=each.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.everyAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction everyAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return everyAsyncIterable(iterable);\n }\n else {\n return everyIterable(iterable);\n }\n async function everyIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (!await predicate(element, index))\n return false;\n index++;\n }\n return true;\n }\n async function everyAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (!await predicate(element, index))\n return false;\n index++;\n }\n return true;\n }\n}\nexports.everyAsync = everyAsync;\n//# sourceMappingURL=every-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.every = void 0;\nfunction every(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (!predicate(element, index))\n return false;\n index++;\n }\n return true;\n}\nexports.every = every;\n//# sourceMappingURL=every.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.findAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction findAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return findAsyncIterable(iterable);\n }\n else {\n return findIterable(iterable);\n }\n async function findIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index))\n return element;\n index++;\n }\n return undefined;\n }\n async function findAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index))\n return element;\n index++;\n }\n return undefined;\n }\n}\nexports.findAsync = findAsync;\n//# sourceMappingURL=find-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.find = void 0;\nfunction find(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index))\n return element;\n index++;\n }\n return undefined;\n}\nexports.find = find;\n//# sourceMappingURL=find.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.firstAsync = void 0;\nasync function firstAsync(iterable) {\n for await (const element of iterable) {\n return element;\n }\n return undefined;\n}\nexports.firstAsync = firstAsync;\n//# sourceMappingURL=first-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.first = void 0;\nfunction first(iterable) {\n for (const element of iterable) {\n return element;\n }\n return undefined;\n}\nexports.first = first;\n//# sourceMappingURL=first.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.includesAsync = void 0;\nasync function includesAsync(iterable, value) {\n for await (const element of iterable) {\n if (element === value)\n return true;\n }\n return false;\n}\nexports.includesAsync = includesAsync;\n//# sourceMappingURL=includes-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.includes = void 0;\nfunction includes(iterable, value) {\n for (const element of iterable) {\n if (element === value)\n return true;\n }\n return false;\n}\nexports.includes = includes;\n//# sourceMappingURL=includes.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.matchAsync = void 0;\nasync function matchAsync(iterable, sequence) {\n const sequenceLength = sequence.length;\n let matchCount = 0;\n for await (const element of iterable) {\n if (element === sequence[matchCount])\n matchCount++;\n if (matchCount === sequenceLength)\n return true;\n }\n return false;\n}\nexports.matchAsync = matchAsync;\n//# sourceMappingURL=match-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.match = void 0;\nfunction match(iterable, sequence) {\n const sequenceLength = sequence.length;\n let matchCount = 0;\n for (const element of iterable) {\n if (element === sequence[matchCount])\n matchCount++;\n if (matchCount === sequenceLength)\n return true;\n }\n return false;\n}\nexports.match = match;\n//# sourceMappingURL=match.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reduceAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction reduceAsync(iterable, fn, initialValue) {\n if ((0, types_1.isUndefined)(initialValue)) {\n return reduceAsyncWithoutInitialValue(iterable, fn);\n }\n else {\n return reduceAsyncWithInitialValue(iterable, fn, initialValue);\n }\n}\nexports.reduceAsync = reduceAsync;\nfunction reduceAsyncWithInitialValue(iterable, fn, initialValue) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return reduceAsyncIterable(iterable);\n }\n else {\n return reduceIterable(iterable);\n }\n async function reduceIterable(iterable) {\n let result = initialValue, index = 0;\n for (const currentValue of iterable) {\n result = await fn(result, currentValue, index++);\n }\n return result;\n }\n async function reduceAsyncIterable(iterable) {\n let result = initialValue, index = 0;\n for await (const currentValue of iterable) {\n result = await fn(result, currentValue, index++);\n }\n return result;\n }\n}\nfunction reduceAsyncWithoutInitialValue(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return reduceAsyncIterable(iterable);\n }\n else {\n return reduceIterable(iterable);\n }\n async function reduceAsyncIterable(iterable) {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n let result = await readInitialValue(iterator);\n let index = 1;\n let value;\n while ({ value, done } = await iterator.next(), !done) {\n result = await fn(result, value, index++);\n }\n return result;\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n async function readInitialValue(iterator) {\n const result = await iterator.next();\n if (result.done) {\n done = true;\n throw new Error('Reduce of empty iterable with no initial value');\n }\n return result.value;\n }\n }\n async function reduceIterable(iterable) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let result = readInitialValue(iterator);\n let index = 1;\n let value;\n while ({ value, done } = iterator.next(), !done) {\n result = await fn(result, value, index++);\n }\n return result;\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n function readInitialValue(iterator) {\n const result = iterator.next();\n if (result.done) {\n done = true;\n throw new Error('Reduce of empty iterable with no initial value');\n }\n return result.value;\n }\n }\n}\n//# sourceMappingURL=reduce-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reduce = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction reduce(iterable, fn, initialValue) {\n if ((0, types_1.isUndefined)(initialValue)) {\n return reduceWithoutInitialValue(iterable, fn);\n }\n else {\n return reduceWithInitialValue(iterable, fn, initialValue);\n }\n}\nexports.reduce = reduce;\nfunction reduceWithInitialValue(iterable, fn, initialValue) {\n let result = initialValue, index = 0;\n for (const currentValue of iterable) {\n result = fn(result, currentValue, index++);\n }\n return result;\n}\nfunction reduceWithoutInitialValue(iterable, fn) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let result = readInitialValue(iterator);\n let index = 1;\n let value;\n while ({ value, done } = iterator.next(), !done) {\n result = fn(result, value, index++);\n }\n return result;\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n function readInitialValue(iterator) {\n const result = iterator.next();\n if (result.done) {\n done = true;\n throw new Error('Reduce of empty iterable with no initial value');\n }\n return result.value;\n }\n}\n//# sourceMappingURL=reduce.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.someAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction someAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return someAsyncIterable(iterable);\n }\n else {\n return someIterable(iterable);\n }\n async function someIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index))\n return true;\n index++;\n }\n return false;\n }\n async function someAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index))\n return true;\n index++;\n }\n return false;\n }\n}\nexports.someAsync = someAsync;\n//# sourceMappingURL=some-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.some = void 0;\nfunction some(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index))\n return true;\n index++;\n }\n return false;\n}\nexports.some = some;\n//# sourceMappingURL=some.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lastAsync = void 0;\nasync function lastAsync(iterable) {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n let value;\n let result;\n while ({ value, done } = await iterator.next(), !done) {\n result = value;\n }\n return result;\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n}\nexports.lastAsync = lastAsync;\n//# sourceMappingURL=last-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.last = void 0;\nfunction last(iterable) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let value;\n let result;\n while ({ value, done } = iterator.next(), !done) {\n result = value;\n }\n return result;\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n}\nexports.last = last;\n//# sourceMappingURL=last.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toArrayAsync = void 0;\nconst consume_1 = require(\"./consume\");\nfunction toArrayAsync(iterable) {\n return (0, consume_1.consume)(iterable, async (iterable) => {\n const result = [];\n for await (const element of iterable) {\n result.push(element);\n }\n return result;\n });\n}\nexports.toArrayAsync = toArrayAsync;\n//# sourceMappingURL=to-array-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toArray = void 0;\nconst consume_1 = require(\"./consume\");\nfunction toArray(iterable) {\n return (0, consume_1.consume)(iterable, iterable => Array.from(iterable));\n}\nexports.toArray = toArray;\n//# sourceMappingURL=to-array.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toSetAsync = void 0;\nconst consume_1 = require(\"./consume\");\nfunction toSetAsync(iterable) {\n return (0, consume_1.consume)(iterable, async (iterable) => {\n const result = new Set();\n for await (const element of iterable) {\n result.add(element);\n }\n return result;\n });\n}\nexports.toSetAsync = toSetAsync;\n//# sourceMappingURL=to-set-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toSet = void 0;\nconst consume_1 = require(\"./consume\");\nfunction toSet(iterable) {\n return (0, consume_1.consume)(iterable, iterable => new Set(iterable));\n}\nexports.toSet = toSet;\n//# sourceMappingURL=to-set.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./consume\"), exports);\n__exportStar(require(\"./each-async\"), exports);\n__exportStar(require(\"./each\"), exports);\n__exportStar(require(\"./every-async\"), exports);\n__exportStar(require(\"./every\"), exports);\n__exportStar(require(\"./find-async\"), exports);\n__exportStar(require(\"./find\"), exports);\n__exportStar(require(\"./first-async\"), exports);\n__exportStar(require(\"./first\"), exports);\n__exportStar(require(\"./includes-async\"), exports);\n__exportStar(require(\"./includes\"), exports);\n__exportStar(require(\"./match-async\"), exports);\n__exportStar(require(\"./match\"), exports);\n__exportStar(require(\"./reduce-async\"), exports);\n__exportStar(require(\"./reduce\"), exports);\n__exportStar(require(\"./some-async\"), exports);\n__exportStar(require(\"./some\"), exports);\n__exportStar(require(\"./last-async\"), exports);\n__exportStar(require(\"./last\"), exports);\n__exportStar(require(\"./to-array-async\"), exports);\n__exportStar(require(\"./to-array\"), exports);\n__exportStar(require(\"./to-set-async\"), exports);\n__exportStar(require(\"./to-set\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./middleware\"), exports);\n__exportStar(require(\"./output\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.traverseErrorPrototypeChain = void 0;\nfunction* traverseErrorPrototypeChain(err) {\n let current = err;\n while ((current = Object.getPrototypeOf(current))) {\n yield current;\n if (current === Error.prototype)\n break;\n }\n}\nexports.traverseErrorPrototypeChain = traverseErrorPrototypeChain;\n//# sourceMappingURL=traverse-error-prototype-chain.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getErrorNames = void 0;\nconst types_1 = require(\"@blackglory/types\");\nconst traverse_error_prototype_chain_1 = require(\"./traverse-error-prototype-chain\");\nfunction* getErrorNames(err) {\n var _a;\n if ((0, types_1.isError)(err)) {\n for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {\n if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {\n yield prototype.constructor.name;\n }\n }\n }\n else {\n yield err.name;\n yield* err.ancestors;\n }\n}\nexports.getErrorNames = getErrorNames;\n//# sourceMappingURL=get-error-names.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isSerializableError = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction isSerializableError(val) {\n return (0, types_1.isObject)(val)\n && (0, types_1.isString)(val.name)\n && (0, types_1.isString)(val.message)\n && ((0, types_1.isString)(val.stack) || (0, types_1.isNull)(val.stack))\n && ((0, types_1.isArray)(val.ancestors) && val.ancestors.every(types_1.isString));\n}\nexports.isSerializableError = isSerializableError;\n//# sourceMappingURL=serializable-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CustomError = void 0;\nconst iterable_operator_1 = require(\"iterable-operator\");\nconst get_error_names_1 = require(\"./get-error-names\");\nconst types_1 = require(\"@blackglory/types\");\nconst serializable_error_1 = require(\"./serializable-error\");\nclass CustomError extends Error {\n get name() {\n var _a, _b;\n return (_b = (_a = (0, iterable_operator_1.first)((0, get_error_names_1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';\n }\n static [Symbol.hasInstance](instance) {\n var _a;\n if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {\n const reversedClassNames = [\n (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,\n ...(0, get_error_names_1.getErrorNames)(this.prototype)\n ].reverse();\n const reversedInstanceNames = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(instance)).reverse();\n return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);\n }\n else {\n return false;\n }\n }\n}\nexports.CustomError = CustomError;\n//# sourceMappingURL=custom-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AssertionError = void 0;\nconst custom_error_1 = require(\"./custom-error\");\nclass AssertionError extends custom_error_1.CustomError {\n}\nexports.AssertionError = AssertionError;\n//# sourceMappingURL=assertion-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.normalize = void 0;\nconst get_error_names_1 = require(\"./get-error-names\");\nconst iterable_operator_1 = require(\"iterable-operator\");\nfunction normalize(err) {\n var _a;\n const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));\n return {\n name,\n ancestors,\n message: err.message,\n stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null\n };\n}\nexports.normalize = normalize;\n//# sourceMappingURL=normalize.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.pass = void 0;\nfunction pass() { }\nexports.pass = pass;\n//# sourceMappingURL=pass.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./pass\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hydrate = void 0;\nconst pass_1 = require(\"@blackglory/pass\");\nfunction hydrate(err) {\n var _a;\n const errorNames = [err.name, ...err.ancestors]\n .slice(0, -1)\n .reverse();\n let errorConstructor = Error;\n for (const name of errorNames) {\n errorConstructor = createChildErrorConstructor(errorConstructor, name);\n }\n const result = new errorConstructor();\n result.name = err.name;\n result.message = err.message;\n result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;\n return result;\n}\nexports.hydrate = hydrate;\nfunction createChildErrorConstructor(parentErrorConstructor, name) {\n const constructor = function () { (0, pass_1.pass)(); };\n constructor.prototype = Object.create(parentErrorConstructor.prototype);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'name', { value: name });\n return constructor;\n}\n//# sourceMappingURL=hydrate.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assert = void 0;\nconst assertion_error_1 = require(\"./assertion-error\");\nfunction assert(condition, message) {\n if (!condition)\n throw new assertion_error_1.AssertionError(message);\n}\nexports.assert = assert;\n//# sourceMappingURL=assert.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./custom-error\"), exports);\n__exportStar(require(\"./assertion-error\"), exports);\n__exportStar(require(\"./serializable-error\"), exports);\n__exportStar(require(\"./normalize\"), exports);\n__exportStar(require(\"./hydrate\"), exports);\n__exportStar(require(\"./assert\"), exports);\n__exportStar(require(\"./get-error-names\"), exports);\n__exportStar(require(\"./traverse-error-prototype-chain\"), exports);\n//# sourceMappingURL=index.js.map","import { assert } from '@blackglory/errors'\nimport { first } from 'iterable-operator'\n\nexport class LRUMap<K, V> {\n #limit: number\n #map = new Map<K, V>()\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n get size() {\n return this.#map.size\n }\n\n constructor(limit: number) {\n assert(Number.isInteger(limit), 'The parameter limit must be an integer')\n assert(limit > 0, 'The parameter limit must be a positive value')\n\n this.#limit = limit\n }\n\n set(key: K, value: V): this {\n if (this.#map.has(key)) {\n this.updateItem(key, value)\n } else {\n if (this.#map.size === this.#limit) {\n this.#map.delete(this.getColdestKey()!)\n }\n this.#map.set(key, value)\n }\n return this\n }\n\n has(key: K): boolean {\n return this.#map.has(key)\n }\n\n get(key: K): V | undefined {\n if (!this.has(key)) return undefined\n\n const value = this.#map.get(key)!\n this.updateItem(key, value)\n return value\n }\n\n delete(key: K): boolean {\n return this.#map.delete(key)\n }\n\n clear(): void {\n this.#map.clear()\n }\n\n /**\n * Reinsert the item.\n */\n private updateItem(key: K, value: V): void {\n this.#map.delete(key)\n this.#map.set(key, value)\n }\n\n /**\n * Return the earliest key inserted in the Map\n */\n private getColdestKey(): K | undefined{\n return first(this.#map.keys())\n }\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.random = void 0;\nfunction random(min, max) {\n return Math.random() * (max - min) + min;\n}\nexports.random = random;\n//# sourceMappingURL=random.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.randomInt = void 0;\nfunction randomInt(min, max) {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min)) + min;\n}\nexports.randomInt = randomInt;\n//# sourceMappingURL=random-int.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.randomIntInclusive = void 0;\nfunction randomIntInclusive(min, max) {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min + 1)) + min;\n}\nexports.randomIntInclusive = randomIntInclusive;\n//# sourceMappingURL=random-int-inclusive.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./random\"), exports);\n__exportStar(require(\"./random-int\"), exports);\n__exportStar(require(\"./random-int-inclusive\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.calculateExponentialBackoffTimeout = void 0;\nconst extra_rand_1 = require(\"extra-rand\");\nfunction calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {\n const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);\n if (jitter) {\n return (0, extra_rand_1.randomIntInclusive)(0, timeout);\n }\n else {\n return timeout;\n }\n}\nexports.calculateExponentialBackoffTimeout = calculateExponentialBackoffTimeout;\n//# sourceMappingURL=exponential-backoff.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setTimeout = void 0;\nfunction setTimeout(timeout, cb) {\n const timer = globalThis.setTimeout(cb, timeout);\n return () => clearTimeout(timer);\n}\nexports.setTimeout = setTimeout;\n//# sourceMappingURL=set-timeout.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setSchedule = void 0;\nconst set_timeout_1 = require(\"./set-timeout\");\nfunction setSchedule(timestamp, cb) {\n const timeout = timestamp - Date.now();\n return (0, set_timeout_1.setTimeout)(timeout, cb);\n}\nexports.setSchedule = setSchedule;\n//# sourceMappingURL=set-schedule.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setInterval = void 0;\nfunction setInterval(timeout, cb) {\n const timer = globalThis.setInterval(cb, timeout);\n return () => clearInterval(timer);\n}\nexports.setInterval = setInterval;\n//# sourceMappingURL=set-interval.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setImmediate = void 0;\nconst set_timeout_1 = require(\"./set-timeout\");\nfunction setImmediate(cb) {\n if (globalThis.setImmediate) {\n const timer = globalThis.setImmediate(cb);\n return () => clearImmediate(timer);\n }\n else {\n return (0, set_timeout_1.setTimeout)(0, cb);\n }\n}\nexports.setImmediate = setImmediate;\n//# sourceMappingURL=set-immediate.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setTimeoutLoop = void 0;\nconst set_timeout_1 = require(\"./set-timeout\");\nfunction setTimeoutLoop(timeout, cb) {\n let isCancelled = false;\n let cancel = (0, set_timeout_1.setTimeout)(timeout, loop);\n return () => {\n isCancelled = true;\n cancel();\n };\n async function loop() {\n await cb();\n if (!isCancelled) {\n cancel = (0, set_timeout_1.setTimeout)(timeout, loop);\n }\n }\n}\nexports.setTimeoutLoop = setTimeoutLoop;\n//# sourceMappingURL=set-timeout-loop.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setDynamicTimeoutLoop = void 0;\nconst set_timeout_1 = require(\"./set-timeout\");\nfunction setDynamicTimeoutLoop(timeout, cb) {\n let isCancelled = false;\n let cancel = (0, set_timeout_1.setTimeout)(timeout, loop);\n return () => {\n isCancelled = true;\n cancel();\n };\n async function loop() {\n const start = Date.now();\n await cb();\n const elapsed = Date.now() - start;\n if (!isCancelled) {\n cancel = (0, set_timeout_1.setTimeout)(Math.max(timeout - elapsed, 0), loop);\n }\n }\n}\nexports.setDynamicTimeoutLoop = setDynamicTimeoutLoop;\n//# sourceMappingURL=set-dynamic-timeout-loop.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./exponential-backoff\"), exports);\n__exportStar(require(\"./set-timeout\"), exports);\n__exportStar(require(\"./set-schedule\"), exports);\n__exportStar(require(\"./set-interval\"), exports);\n__exportStar(require(\"./set-immediate\"), exports);\n__exportStar(require(\"./set-timeout-loop\"), exports);\n__exportStar(require(\"./set-dynamic-timeout-loop\"), exports);\n//# sourceMappingURL=index.js.map","import { setSchedule } from 'extra-timers'\n\nexport class ExpirableMap<K, V> {\n #map = new Map<K, V>()\n #cancelClearTimeout?: () => void\n /**\n * 按过期时间升序排列所有项目的元数据\n */ \n itemMetadataSortedByExpirationTime: Array<{ key: K; expirationTime: number }> = []\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n get size() {\n return this.#map.size\n }\n\n set(key: K, value: V, maxAge: number): this {\n this.#map.set(key, value)\n this.removeItemMetadata(key)\n this.addItemMetadata(key, Date.now() + maxAge)\n return this\n }\n\n has(key: K): boolean {\n return this.#map.has(key)\n }\n\n get(key: K): V | undefined {\n return this.#map.get(key)\n }\n\n delete(key: K): boolean {\n const exists = this.#map.delete(key)\n if (exists) {\n const index = this.itemMetadataSortedByExpirationTime.findIndex(x => x.key === key)\n this.itemMetadataSortedByExpirationTime.splice(index, 1)\n\n // 如果被删除的项目是第一个项目, 则需要重新规划过期回调\n if (index === 0) {\n this.rescheduleClearTimeout()\n }\n }\n return exists\n }\n\n clear(): void {\n this.#map.clear()\n this.#cancelClearTimeout?.()\n this.itemMetadataSortedByExpirationTime = []\n }\n\n private addItemMetadata(key: K, expirationTime: number) {\n for (let i = 0; i < this.itemMetadataSortedByExpirationTime.length; i++) {\n const item = this.itemMetadataSortedByExpirationTime[i]\n if (expirationTime < item.expirationTime) {\n this.itemMetadataSortedByExpirationTime.splice(i, 0, { key, expirationTime })\n\n // 如果本次插入导致原先的第一个项目不再是低一个项目, 则需要重新规划过期回调\n if (i === 0) {\n this.rescheduleClearTimeout()\n }\n return\n }\n }\n\n // 如果代码运行到此处, 意味着数组要么为空, 要么新项目过期时间大于数组内的所有项目, 故直接插入到数组尾端.\n this.itemMetadataSortedByExpirationTime.push({ key, expirationTime })\n // 如果新插入的项目是唯一而项目, 则需要重新规划过期回调\n if (this.itemMetadataSortedByExpirationTime.length === 1) {\n this.rescheduleClearTimeout()\n }\n }\n\n private removeItemMetadata(key: K) {\n const index = this.itemMetadataSortedByExpirationTime.findIndex(x => x.key === key)\n if (index >= 0) {\n this.itemMetadataSortedByExpirationTime.splice(index, 1)\n\n // 如果被移除的是第一个项目, 则需要重新规划过期回调\n if (index === 0) {\n this.rescheduleClearTimeout()\n }\n }\n }\n\n private clearExpiredItems(timestamp: number) {\n const indexOfFirstUnexpired = this.itemMetadataSortedByExpirationTime.findIndex(\n x => x.expirationTime > timestamp\n )\n const expiredItemKeys =\n indexOfFirstUnexpired >= 0\n ? this.itemMetadataSortedByExpirationTime.splice(0, indexOfFirstUnexpired)\n : this.itemMetadataSortedByExpirationTime.splice(0, this.itemMetadataSortedByExpirationTime.length)\n expiredItemKeys.forEach(x => this.#map.delete(x.key))\n }\n\n private rescheduleClearTimeout() {\n this.#cancelClearTimeout?.()\n\n if (this.itemMetadataSortedByExpirationTime.length > 0) {\n const item = this.itemMetadataSortedByExpirationTime[0]\n if (Number.isFinite(item.expirationTime)) {\n const cancel = setSchedule(item.expirationTime, () => {\n this.clearExpiredItems(Date.now())\n this.rescheduleClearTimeout()\n })\n this.#cancelClearTimeout = () => {\n cancel()\n this.#cancelClearTimeout = undefined\n }\n }\n }\n }\n}\n","import { assert } from '@blackglory/errors'\nimport { first } from 'iterable-operator'\nimport { setSchedule } from 'extra-timers'\n\n/**\n * TLRUMap = LRUMap + ExpirableMap\n */\nexport class TLRUMap<K, V> {\n #limit: number\n #map = new Map<K, V>()\n #cancelClearTimeout?: () => void\n /**\n * 按过期时间升序排列所有项目的元数据\n */ \n itemMetadataSortedByExpirationTime: Array<{ key: K; expirationTime: number }> = []\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n get size() {\n return this.#map.size\n }\n\n constructor(limit: number) {\n assert(Number.isInteger(limit), 'The parameter limit must be an integer')\n assert(limit > 0, 'The parameter limit must be a positive value')\n\n this.#limit = limit\n }\n\n set(key: K, value: V, maxAge: number): this {\n if (this.#map.has(key)) {\n this.updateItem(key, value)\n this.removeItemMetadata(key)\n this.addItemMetadata(key, Date.now() + maxAge)\n } else {\n if (this.#map.size === this.#limit) {\n this.#map.delete(this.getColdestKey()!)\n }\n this.#map.set(key, value)\n this.addItemMetadata(key, Date.now() + maxAge)\n }\n return this\n }\n\n has(key: K): boolean {\n return this.#map.has(key)\n }\n\n get(key: K): V | undefined {\n if (this.has(key)) {\n const value = this.#map.get(key)!\n this.updateItem(key, value)\n return value\n } else {\n return undefined\n }\n }\n\n delete(key: K): boolean {\n const result = this.#map.delete(key)\n if (result) {\n const index = this.itemMetadataSortedByExpirationTime.findIndex(x => x.key === key)\n this.itemMetadataSortedByExpirationTime.splice(index, 1)\n\n // 如果被删除的项目是第一个项目, 则需要重新规划过期回调\n if (index === 0) {\n this.rescheduleClearTimeout()\n }\n }\n return result\n }\n\n clear(): void {\n this.#map.clear()\n this.#cancelClearTimeout?.()\n this.itemMetadataSortedByExpirationTime = []\n }\n\n /**\n * 重新插入项目, 这会使项目置于#map迭代器的末端.\n */\n private updateItem(key: K, value: V): void {\n this.#map.delete(key)\n this.#map.set(key, value)\n }\n\n private addItemMetadata(key: K, expirationTime: number) {\n for (let i = 0; i < this.itemMetadataSortedByExpirationTime.length; i++) {\n const item = this.itemMetadataSortedByExpirationTime[i]\n if (expirationTime < item.expirationTime) {\n this.itemMetadataSortedByExpirationTime.splice(i, 0, { key, expirationTime })\n\n // 如果本次插入导致原先的第一个项目不再是低一个项目, 则需要重新规划过期回调\n if (i === 0) {\n this.rescheduleClearTimeout()\n }\n return\n }\n }\n\n // 如果代码运行到此处, 意味着数组要么为空, 要么新项目过期时间大于数组内的所有项目, 故直接插入到数组尾端.\n this.itemMetadataSortedByExpirationTime.push({ key, expirationTime })\n // 如果新插入的项目是唯一而项目, 则需要重新规划过期回调\n if (this.itemMetadataSortedByExpirationTime.length === 1) {\n this.rescheduleClearTimeout()\n }\n }\n\n private removeItemMetadata(key: K) {\n const index = this.itemMetadataSortedByExpirationTime.findIndex(x => x.key === key)\n if (index >= 0) {\n this.itemMetadataSortedByExpirationTime.splice(index, 1)\n\n // 如果被移除的是第一个项目, 则需要重新规划过期回调\n if (index === 0) {\n this.rescheduleClearTimeout()\n }\n }\n }\n\n private clearExpiredItems(timestamp: number) {\n const indexOfFirstUnexpiredItem = this.itemMetadataSortedByExpirationTime.findIndex(\n x => x.expirationTime > timestamp\n )\n const expiredItemKeys =\n indexOfFirstUnexpiredItem >= 0\n ? this.itemMetadataSortedByExpirationTime.splice(0, indexOfFirstUnexpiredItem)\n : this.itemMetadataSortedByExpirationTime.splice(0, this.itemMetadataSortedByExpirationTime.length)\n expiredItemKeys.forEach(x => this.#map.delete(x.key))\n }\n\n private rescheduleClearTimeout() {\n this.#cancelClearTimeout?.()\n\n if (this.itemMetadataSortedByExpirationTime.length > 0) {\n const item = this.itemMetadataSortedByExpirationTime[0]\n if (Number.isFinite(item.expirationTime)) {\n const cancel = setSchedule(item.expirationTime, () => {\n this.clearExpiredItems(Date.now())\n this.rescheduleClearTimeout()\n })\n this.#cancelClearTimeout = () => {\n cancel()\n this.#cancelClearTimeout = undefined\n }\n }\n }\n }\n\n /**\n * Return the earliest key inserted in the Map\n */\n private getColdestKey(): K | undefined {\n return first(this.#map.keys())\n }\n}\n","import { zip, toArray } from 'iterable-operator'\nimport { UnpackedIterable } from 'justypes'\n\nclass TrieNode<T, U> {\n children = new Map<T, TrieNode<T, U>>()\n\n constructor(public value?: U) {}\n}\n\nexport class TrieMap<K extends Iterable<T>, V, T = UnpackedIterable<K>> {\n #root = new TrieNode<T, V>()\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n set(key: K, value: V): this {\n let node = this.#root\n for (const part of key) {\n if (!node.children.has(part)) {\n node.children.set(part, new TrieNode<T, V>())\n }\n node = node.children.get(part)!\n }\n\n node.value = value\n return this\n }\n\n has(key: K): boolean {\n let node = this.#root\n for (const part of key) {\n if (node.children.has(part)) {\n node = node.children.get(part)!\n } else {\n return false\n }\n }\n\n return node.value !== undefined\n }\n\n get(key: K): V | undefined {\n let node = this.#root\n for (const part of key) {\n if (node.children.has(part)) {\n node = node.children.get(part)!\n } else {\n return undefined\n }\n }\n\n return node.value\n }\n\n delete(key: K): boolean {\n const parentNodes: TrieNode<T, V>[] = []\n let node = this.#root\n for (const part of key) {\n if (node.children.has(part)) {\n parentNodes.push(node)\n node = node.children.get(part)!\n } else {\n return false\n }\n }\n\n delete node.value\n\n // 如果节点没有后缀, 则代表这是末端节点, 往前删除其前缀\n if (node.children.size === 0) {\n for (const [part, parentNode] of toArray(zip(key, parentNodes)).reverse()) {\n parentNode.children.delete(part)\n if (parentNode.children.size !== 0) break\n }\n }\n return true\n }\n}\n","import { CustomError } from '@blackglory/errors'\n\nexport type IFiniteStateMachineSchema<State extends string, Event extends string> =\n Record<State, Partial<Record<Event, State>>>\n\nexport class FiniteStateMachine<State extends string, Event extends string> {\n #state: State\n get state(): State {\n return this.#state\n }\n\n constructor(\n protected schema: IFiniteStateMachineSchema<State, Event>\n , initialState: State\n ) {\n this.#state = initialState\n }\n\n matches(state: State): boolean {\n return this.#state === state\n }\n\n can(event: Event): boolean {\n return event in this.schema[this.state]\n }\n\n /**\n * @throws {BadEventError}\n */\n send(event: Event): void {\n if (this.can(event)) {\n this.#state = this.schema[this.state][event]!\n } else {\n throw new BadEventError(this.state, event)\n }\n }\n}\n\nexport class BadEventError extends CustomError {\n constructor(state: string, event: string) {\n super(`State ${state} cannot react to event ${event}`)\n }\n}\n","export function isFunction(value) {\n return typeof value === 'function';\n}\n//# sourceMappingURL=isFunction.js.map","export function createErrorClass(createImpl) {\n var _super = function (instance) {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n var ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n//# sourceMappingURL=createErrorClass.js.map","import { createErrorClass } from './createErrorClass';\nexport var UnsubscriptionError = createErrorClass(function (_super) {\n return function UnsubscriptionErrorImpl(errors) {\n _super(this);\n this.message = errors\n ? errors.length + \" errors occurred during unsubscription:\\n\" + errors.map(function (err, i) { return i + 1 + \") \" + err.toString(); }).join('\\n ')\n : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n };\n});\n//# sourceMappingURL=UnsubscriptionError.js.map","export function arrRemove(arr, item) {\n if (arr) {\n var index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n}\n//# sourceMappingURL=arrRemove.js.map","import { __read, __spreadArray, __values } from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { arrRemove } from './util/arrRemove';\nvar Subscription = (function () {\n function Subscription(initialTeardown) {\n this.initialTeardown = initialTeardown;\n this.closed = false;\n this._parentage = null;\n this._teardowns = null;\n }\n Subscription.prototype.unsubscribe = function () {\n var e_1, _a, e_2, _b;\n var errors;\n if (!this.closed) {\n this.closed = true;\n var _parentage = this._parentage;\n if (_parentage) {\n this._parentage = null;\n if (Array.isArray(_parentage)) {\n try {\n for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {\n var parent_1 = _parentage_1_1.value;\n parent_1.remove(this);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n else {\n _parentage.remove(this);\n }\n }\n var initialTeardown = this.initialTeardown;\n if (isFunction(initialTeardown)) {\n try {\n initialTeardown();\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? e.errors : [e];\n }\n }\n var _teardowns = this._teardowns;\n if (_teardowns) {\n this._teardowns = null;\n try {\n for (var _teardowns_1 = __values(_teardowns), _teardowns_1_1 = _teardowns_1.next(); !_teardowns_1_1.done; _teardowns_1_1 = _teardowns_1.next()) {\n var teardown_1 = _teardowns_1_1.value;\n try {\n execTeardown(teardown_1);\n }\n catch (err) {\n errors = errors !== null && errors !== void 0 ? errors : [];\n if (err instanceof UnsubscriptionError) {\n errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));\n }\n else {\n errors.push(err);\n }\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_teardowns_1_1 && !_teardowns_1_1.done && (_b = _teardowns_1.return)) _b.call(_teardowns_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n };\n Subscription.prototype.add = function (teardown) {\n var _a;\n if (teardown && teardown !== this) {\n if (this.closed) {\n execTeardown(teardown);\n }\n else {\n if (teardown instanceof Subscription) {\n if (teardown.closed || teardown._hasParent(this)) {\n return;\n }\n teardown._addParent(this);\n }\n (this._teardowns = (_a = this._teardowns) !== null && _a !== void 0 ? _a : []).push(teardown);\n }\n }\n };\n Subscription.prototype._hasParent = function (parent) {\n var _parentage = this._parentage;\n return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n };\n Subscription.prototype._addParent = function (parent) {\n var _parentage = this._parentage;\n this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n };\n Subscription.prototype._removeParent = function (parent) {\n var _parentage = this._parentage;\n if (_parentage === parent) {\n this._parentage = null;\n }\n else if (Array.isArray(_parentage)) {\n arrRemove(_parentage, parent);\n }\n };\n Subscription.prototype.remove = function (teardown) {\n var _teardowns = this._teardowns;\n _teardowns && arrRemove(_teardowns, teardown);\n if (teardown instanceof Subscription) {\n teardown._removeParent(this);\n }\n };\n Subscription.EMPTY = (function () {\n var empty = new Subscription();\n empty.closed = true;\n return empty;\n })();\n return Subscription;\n}());\nexport { Subscription };\nexport var EMPTY_SUBSCRIPTION = Subscription.EMPTY;\nexport function isSubscription(value) {\n return (value instanceof Subscription ||\n (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));\n}\nfunction execTeardown(teardown) {\n if (isFunction(teardown)) {\n teardown();\n }\n else {\n teardown.unsubscribe();\n }\n}\n//# sourceMappingURL=Subscription.js.map","export var config = {\n onUnhandledError: null,\n onStoppedNotification: null,\n Promise: undefined,\n useDeprecatedSynchronousErrorHandling: false,\n useDeprecatedNextContext: false,\n};\n//# sourceMappingURL=config.js.map","import { __read, __spreadArray } from \"tslib\";\nexport var timeoutProvider = {\n setTimeout: function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var delegate = timeoutProvider.delegate;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) || setTimeout).apply(void 0, __spreadArray([], __read(args)));\n },\n clearTimeout: function (handle) {\n var delegate = timeoutProvider.delegate;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);\n },\n delegate: undefined,\n};\n//# sourceMappingURL=timeoutProvider.js.map","export function noop() { }\n//# sourceMappingURL=noop.js.map","import { config } from '../config';\nvar context = null;\nexport function errorContext(cb) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n var isRoot = !context;\n if (isRoot) {\n context = { errorThrown: false, error: null };\n }\n cb();\n if (isRoot) {\n var _a = context, errorThrown = _a.errorThrown, error = _a.error;\n context = null;\n if (errorThrown) {\n throw error;\n }\n }\n }\n else {\n cb();\n }\n}\nexport function captureError(err) {\n if (config.useDeprecatedSynchronousErrorHandling && context) {\n context.errorThrown = true;\n context.error = err;\n }\n}\n//# sourceMappingURL=errorContext.js.map","import { __extends } from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\nvar Subscriber = (function (_super) {\n __extends(Subscriber, _super);\n function Subscriber(destination) {\n var _this = _super.call(this) || this;\n _this.isStopped = false;\n if (destination) {\n _this.destination = destination;\n if (isSubscription(destination)) {\n destination.add(_this);\n }\n }\n else {\n _this.destination = EMPTY_OBSERVER;\n }\n return _this;\n }\n Subscriber.create = function (next, error, complete) {\n return new SafeSubscriber(next, error, complete);\n };\n Subscriber.prototype.next = function (value) {\n if (this.isStopped) {\n handleStoppedNotification(nextNotification(value), this);\n }\n else {\n this._next(value);\n }\n };\n Subscriber.prototype.error = function (err) {\n if (this.isStopped) {\n handleStoppedNotification(errorNotification(err), this);\n }\n else {\n this.isStopped = true;\n this._error(err);\n }\n };\n Subscriber.prototype.complete = function () {\n if (this.isStopped) {\n handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n }\n else {\n this.isStopped = true;\n this._complete();\n }\n };\n Subscriber.prototype.unsubscribe = function () {\n if (!this.closed) {\n this.isStopped = true;\n _super.prototype.unsubscribe.call(this);\n this.destination = null;\n }\n };\n Subscriber.prototype._next = function (value) {\n this.destination.next(value);\n };\n Subscriber.prototype._error = function (err) {\n try {\n this.destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n };\n Subscriber.prototype._complete = function () {\n try {\n this.destination.complete();\n }\n finally {\n this.unsubscribe();\n }\n };\n return Subscriber;\n}(Subscription));\nexport { Subscriber };\nvar _bind = Function.prototype.bind;\nfunction bind(fn, thisArg) {\n return _bind.call(fn, thisArg);\n}\nvar ConsumerObserver = (function () {\n function ConsumerObserver(partialObserver) {\n this.partialObserver = partialObserver;\n }\n ConsumerObserver.prototype.next = function (value) {\n var partialObserver = this.partialObserver;\n if (partialObserver.next) {\n try {\n partialObserver.next(value);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n };\n ConsumerObserver.prototype.error = function (err) {\n var partialObserver = this.partialObserver;\n if (partialObserver.error) {\n try {\n partialObserver.error(err);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n else {\n handleUnhandledError(err);\n }\n };\n ConsumerObserver.prototype.complete = function () {\n var partialObserver = this.partialObserver;\n if (partialObserver.complete) {\n try {\n partialObserver.complete();\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n };\n return ConsumerObserver;\n}());\nvar SafeSubscriber = (function (_super) {\n __extends(SafeSubscriber, _super);\n function SafeSubscriber(observerOrNext, error, complete) {\n var _this = _super.call(this) || this;\n var partialObserver;\n if (isFunction(observerOrNext) || !observerOrNext) {\n partialObserver = {\n next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,\n error: error !== null && error !== void 0 ? error : undefined,\n complete: complete !== null && complete !== void 0 ? complete : undefined,\n };\n }\n else {\n var context_1;\n if (_this && config.useDeprecatedNextContext) {\n context_1 = Object.create(observerOrNext);\n context_1.unsubscribe = function () { return _this.unsubscribe(); };\n partialObserver = {\n next: observerOrNext.next && bind(observerOrNext.next, context_1),\n error: observerOrNext.error && bind(observerOrNext.error, context_1),\n complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),\n };\n }\n else {\n partialObserver = observerOrNext;\n }\n }\n _this.destination = new ConsumerObserver(partialObserver);\n return _this;\n }\n return SafeSubscriber;\n}(Subscriber));\nexport { SafeSubscriber };\nfunction handleUnhandledError(error) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n captureError(error);\n }\n else {\n reportUnhandledError(error);\n }\n}\nfunction defaultErrorHandler(err) {\n throw err;\n}\nfunction handleStoppedNotification(notification, subscriber) {\n var onStoppedNotification = config.onStoppedNotification;\n onStoppedNotification && timeoutProvider.setTimeout(function () { return onStoppedNotification(notification, subscriber); });\n}\nexport var EMPTY_OBSERVER = {\n closed: true,\n next: noop,\n error: defaultErrorHandler,\n complete: noop,\n};\n//# sourceMappingURL=Subscriber.js.map","import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\nexport function reportUnhandledError(err) {\n timeoutProvider.setTimeout(function () {\n var onUnhandledError = config.onUnhandledError;\n if (onUnhandledError) {\n onUnhandledError(err);\n }\n else {\n throw err;\n }\n });\n}\n//# sourceMappingURL=reportUnhandledError.js.map","export var observable = (function () { return (typeof Symbol === 'function' && Symbol.observable) || '@@observable'; })();\n//# sourceMappingURL=observable.js.map","export function identity(x) {\n return x;\n}\n//# sourceMappingURL=identity.js.map","import { identity } from './identity';\nexport function pipe() {\n var fns = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n fns[_i] = arguments[_i];\n }\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce(function (prev, fn) { return fn(prev); }, input);\n };\n}\n//# sourceMappingURL=pipe.js.map","import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nvar Observable = (function () {\n function Observable(subscribe) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n Observable.prototype.lift = function (operator) {\n var observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n };\n Observable.prototype.subscribe = function (observerOrNext, error, complete) {\n var _this = this;\n var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n errorContext(function () {\n var _a = _this, operator = _a.operator, source = _a.source;\n subscriber.add(operator\n ?\n operator.call(subscriber, source)\n : source\n ?\n _this._subscribe(subscriber)\n :\n _this._trySubscribe(subscriber));\n });\n return subscriber;\n };\n Observable.prototype._trySubscribe = function (sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n sink.error(err);\n }\n };\n Observable.prototype.forEach = function (next, promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var subscriber = new SafeSubscriber({\n next: function (value) {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve,\n });\n _this.subscribe(subscriber);\n });\n };\n Observable.prototype._subscribe = function (subscriber) {\n var _a;\n return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n };\n Observable.prototype[Symbol_observable] = function () {\n return this;\n };\n Observable.prototype.pipe = function () {\n var operations = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n operations[_i] = arguments[_i];\n }\n return pipeFromArray(operations)(this);\n };\n Observable.prototype.toPromise = function (promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var value;\n _this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); });\n });\n };\n Observable.create = function (subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n}());\nexport { Observable };\nfunction getPromiseCtor(promiseCtor) {\n var _a;\n return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n//# sourceMappingURL=Observable.js.map","import { createErrorClass } from './createErrorClass';\nexport var ObjectUnsubscribedError = createErrorClass(function (_super) {\n return function ObjectUnsubscribedErrorImpl() {\n _super(this);\n this.name = 'ObjectUnsubscribedError';\n this.message = 'object unsubscribed';\n };\n});\n//# sourceMappingURL=ObjectUnsubscribedError.js.map","import { __extends, __values } from \"tslib\";\nimport { Observable } from './Observable';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\nvar Subject = (function (_super) {\n __extends(Subject, _super);\n function Subject() {\n var _this = _super.call(this) || this;\n _this.closed = false;\n _this.observers = [];\n _this.isStopped = false;\n _this.hasError = false;\n _this.thrownError = null;\n return _this;\n }\n Subject.prototype.lift = function (operator) {\n var subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n };\n Subject.prototype._throwIfClosed = function () {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n };\n Subject.prototype.next = function (value) {\n var _this = this;\n errorContext(function () {\n var e_1, _a;\n _this._throwIfClosed();\n if (!_this.isStopped) {\n var copy = _this.observers.slice();\n try {\n for (var copy_1 = __values(copy), copy_1_1 = copy_1.next(); !copy_1_1.done; copy_1_1 = copy_1.next()) {\n var observer = copy_1_1.value;\n observer.next(value);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (copy_1_1 && !copy_1_1.done && (_a = copy_1.return)) _a.call(copy_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n });\n };\n Subject.prototype.error = function (err) {\n var _this = this;\n errorContext(function () {\n _this._throwIfClosed();\n if (!_this.isStopped) {\n _this.hasError = _this.isStopped = true;\n _this.thrownError = err;\n var observers = _this.observers;\n while (observers.length) {\n observers.shift().error(err);\n }\n }\n });\n };\n Subject.prototype.complete = function () {\n var _this = this;\n errorContext(function () {\n _this._throwIfClosed();\n if (!_this.isStopped) {\n _this.isStopped = true;\n var observers = _this.observers;\n while (observers.length) {\n observers.shift().complete();\n }\n }\n });\n };\n Subject.prototype.unsubscribe = function () {\n this.isStopped = this.closed = true;\n this.observers = null;\n };\n Object.defineProperty(Subject.prototype, \"observed\", {\n get: function () {\n var _a;\n return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;\n },\n enumerable: false,\n configurable: true\n });\n Subject.prototype._trySubscribe = function (subscriber) {\n this._throwIfClosed();\n return _super.prototype._trySubscribe.call(this, subscriber);\n };\n Subject.prototype._subscribe = function (subscriber) {\n this._throwIfClosed();\n this._checkFinalizedStatuses(subscriber);\n return this._innerSubscribe(subscriber);\n };\n Subject.prototype._innerSubscribe = function (subscriber) {\n var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;\n return hasError || isStopped\n ? EMPTY_SUBSCRIPTION\n : (observers.push(subscriber), new Subscription(function () { return arrRemove(observers, subscriber); }));\n };\n Subject.prototype._checkFinalizedStatuses = function (subscriber) {\n var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;\n if (hasError) {\n subscriber.error(thrownError);\n }\n else if (isStopped) {\n subscriber.complete();\n }\n };\n Subject.prototype.asObservable = function () {\n var observable = new Observable();\n observable.source = this;\n return observable;\n };\n Subject.create = function (destination, source) {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n}(Observable));\nexport { Subject };\nvar AnonymousSubject = (function (_super) {\n __extends(AnonymousSubject, _super);\n function AnonymousSubject(destination, source) {\n var _this = _super.call(this) || this;\n _this.destination = destination;\n _this.source = source;\n return _this;\n }\n AnonymousSubject.prototype.next = function (value) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);\n };\n AnonymousSubject.prototype.error = function (err) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);\n };\n AnonymousSubject.prototype.complete = function () {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);\n };\n AnonymousSubject.prototype._subscribe = function (subscriber) {\n var _a, _b;\n return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;\n };\n return AnonymousSubject;\n}(Subject));\nexport { AnonymousSubject };\n//# sourceMappingURL=Subject.js.map","export class Box<T> {\n #value: T\n\n constructor(value: T) {\n this.#value = value\n }\n\n set(value: T): void {\n this.#value = value\n }\n\n get(): T {\n return this.#value\n }\n}\n","import { FiniteStateMachine } from './finite-state-machine'\nimport { Subject, Observable } from 'rxjs'\nimport { isEmptyObject } from '@blackglory/types'\n\nexport interface IFiniteStateMachineStateChange<\n State extends string\n, Event extends string\n> {\n event: Event\n oldState: State\n newState: State\n}\n\nexport class ObservableFiniteStateMachine<\n State extends string\n, Event extends string\n> extends FiniteStateMachine<State, Event> {\n private stateChanges = new Subject<IFiniteStateMachineStateChange<State, Event>>()\n\n observeStateChanges(): Observable<IFiniteStateMachineStateChange<State, Event>> {\n return this.stateChanges\n }\n\n /**\n * @throws {BadEventError}\n */\n send(event: Event): void {\n const oldState = this.state\n super.send(event)\n const newState = this.state\n\n this.stateChanges.next({ event, oldState, newState })\n if (isEmptyObject(this.schema[newState])) {\n this.stateChanges.complete()\n }\n }\n}\n\nexport { BadEventError } from './finite-state-machine'\n","import { Cons } from 'justypes'\nexport { Cons } from 'justypes'\n\nexport function convertConsToArray<T>([value, next]: Cons<T>): T[] {\n if (next === null) return [value]\n return [value, ...convertConsToArray(next)]\n}\n\nexport function convertArrayToCons<T>([value, ...next]: T[]): Cons<T> {\n return [value, next.length ? convertArrayToCons(next) : null]\n}\n"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__extends","TypeError","String","__","this","constructor","create","__values","o","s","Symbol","iterator","m","i","length","next","value","done","__read","n","r","e","ar","push","error","__spreadArray","to","from","pack","arguments","l","slice","concat","__classPrivateFieldGet","receiver","state","kind","f","has","get","__classPrivateFieldSet","set","Emitter","[object Object]","_Emitter_map","Map","toStringTag","name","event","handler","Set","add","handlers","delete","size","forEach","cb","HashMap","hash","_HashMap_map","key","clear","HashSet","_HashSet_map","values","Queue","_Queue_items","items","shift","item","index","indexOf","splice","fn","__createBinding","k","k2","undefined","defineProperty","enumerable","__exportStar","exports","require$$0","CustomError","Error","custom_error_1","ExpectedError","AssertionError","err","_a","message","stack","expected_error_1","condition","assertion_error_1","require$$1","require$$2","require$$3","require$$4","require$$5","go_1","errors_1","iterable","assert","Number","isInteger","go","async","buffer","element","isArray","val","isNull","isUndefined","null_1","undefined_1","isAsyncIterable","isntNull","isntUndefined","asyncIterator","isBigInt","isBoolean","isString","string_1","isChar","isDate","Date","_enum","includes","isError","isFalsy","isFunction","isIterable","funcProto","Function","objectProto","funcToString","toString","objectCtorString","objectToString","getPrototype","func","transform","arg","overArg","getPrototypeOf","lodash_isplainobject","isObjectLike","result","isHostObject","proto","Ctor","__importDefault","mod","__esModule","default","lodash_isplainobject_1","isObject","isPlainObject","keys","isNumber","array_1","object_1","number_1","isJsonRpcId","isJsonRpcParams","isJsonRpcNotification","jsonrpc","method","id","params","isJsonRpcRequest","isJsonRpcSuccess","isJsonRpcError","code","data","isJsonRpcErrorObject","JSON","stringify","isntJson","str","URL","require$$6","require$$7","require$$8","require$$9","require$$10","require$$11","require$$12","require$$13","require$$14","require$$15","require$$16","require$$17","require$$18","types_1","predicate","chunkByAsyncIterable","chunkByIterable","otherIterables","iter","utils_1","count","copyAsyncIterable","return","toArrayAsync","copyIterable","arr","dropUntilAsyncIterable","dropUntilIterable","filterAsyncIterable","filterIterable","isFiniteIterable","isntChar","level","flatten","flattenByAsyncIterable","flattenByIterable","flatten_by_async_1","depth","Infinity","flattenByAsync","_","flatten_deep_async_1","flattenDeepAsync","flatten_by_1","flattenBy","flatten_deep_1","flattenDeep","mapAsyncIterable","mapIterable","times","process","env","NODE_ENV","console","warn","warnInfiniteLoop","cache","start","end","separator","splitByAsyncIterable","splitByIterable","takeUntilAsyncIterable","takeUntilIterable","tapAsyncIterable","tapIterable","transformer","bucket","uniqByAsyncIterable","uniqByIterable","Kind","iterables","_b","_c","_d","iterators","map","Async","Sync","dones","temp","undoneIterators","filter","zipWithSize","x","require$$19","require$$20","require$$21","require$$22","require$$23","require$$24","require$$25","require$$26","require$$27","require$$28","require$$29","require$$30","require$$31","require$$32","require$$33","require$$34","require$$35","require$$36","require$$37","require$$38","require$$39","require$$40","require$$41","require$$42","require$$43","require$$44","require$$45","require$$46","consumer","eachAsyncIterable","eachIterable","everyAsyncIterable","everyIterable","findAsyncIterable","findIterable","sequence","sequenceLength","matchCount","initialValue","reduceAsyncIterable","reduceIterable","readInitialValue","reduceAsyncWithoutInitialValue","currentValue","reduceAsyncWithInitialValue","reduceWithoutInitialValue","reduceWithInitialValue","someAsyncIterable","someIterable","consume_1","consume","current","traverse_error_prototype_chain_1","traverseErrorPrototypeChain","ancestors","every","iterable_operator_1","get_error_names_1","serializable_error_1","first","getErrorNames","hasInstance","instance","isSerializableError","reversedClassNames","reverse","reversedInstanceNames","toArray","pass_1","createChildErrorConstructor","parentErrorConstructor","pass","errorNames","errorConstructor","LRUMap","limit","_LRUMap_limit","_LRUMap_map","updateItem","getColdestKey","min","max","Math","random","ceil","floor","extra_rand_1","baseTimeout","retries","maxTimeout","factor","jitter","timeout","randomIntInclusive","timer","globalThis","setTimeout","clearTimeout","set_timeout_1","timestamp","now","setInterval","clearInterval","setImmediate","clearImmediate","isCancelled","cancel","loop","elapsed","ExpirableMap","_ExpirableMap_map","_ExpirableMap_cancelClearTimeout","maxAge","removeItemMetadata","addItemMetadata","exists","itemMetadataSortedByExpirationTime","findIndex","rescheduleClearTimeout","expirationTime","indexOfFirstUnexpired","isFinite","setSchedule","clearExpiredItems","TLRUMap","_TLRUMap_limit","_TLRUMap_map","_TLRUMap_cancelClearTimeout","indexOfFirstUnexpiredItem","TrieNode","TrieMap","_TrieMap_root","node","part","children","parentNodes","parentNode","zip","FiniteStateMachine","schema","initialState","_FiniteStateMachine_state","can","BadEventError","super","createErrorClass","createImpl","ctorFunc","UnsubscriptionError","_super","errors","join","arrRemove","Subscription","initialTeardown","closed","_parentage","_teardowns","empty","unsubscribe","e_1","e_2","_parentage_1","_parentage_1_1","remove","e_1_1","_teardowns_1","_teardowns_1_1","teardown_1","execTeardown","e_2_1","teardown","_hasParent","_addParent","parent","_removeParent","EMPTY","EMPTY_SUBSCRIPTION","isSubscription","config","onUnhandledError","onStoppedNotification","Promise","useDeprecatedSynchronousErrorHandling","useDeprecatedNextContext","timeoutProvider","args","_i","delegate","apply","handle","noop","context","errorContext","isRoot","errorThrown","Subscriber","destination","_this","isStopped","EMPTY_OBSERVER","complete","SafeSubscriber","_next","_error","_complete","_bind","bind","thisArg","ConsumerObserver","partialObserver","handleUnhandledError","observerOrNext","context_1","observable","identity","pipeFromArray","fns","input","reduce","prev","Observable","subscribe","_subscribe","lift","operator","source","subscriber","isObserver","_trySubscribe","sink","promiseCtor","getPromiseCtor","resolve","reject","Symbol_observable","pipe","operations","toPromise","ObjectUnsubscribedError","Subject","observers","hasError","thrownError","subject","AnonymousSubject","_throwIfClosed","copy","copy_1","copy_1_1","configurable","_checkFinalizedStatuses","_innerSubscribe","asObservable","_Box_value","stateChanges","oldState","send","newState","isEmptyObject","convertArrayToCons","convertConsToArray"],"mappings":";;;;;;;;;;;;;;oFAgBA,cAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOC,OAAOK,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,MAC3EN,EAAGC,IAGrB,SAASS,EAAUV,EAAGC,GACzB,GAAiB,mBAANA,GAA0B,OAANA,EAC3B,MAAM,IAAIU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,MAAM2d,EAAWvgB,KAAK+B,MACtBwX,MAAMiH,KAAK5d,GACX,MAAM6d,EAAWzgB,KAAK+B,MAEtB/B,KAAKsgB,aAAa3f,KAAK,CAAEiC,MAAAA,EAAO2d,SAAAA,EAAUE,SAAAA,IACtCC,gBAAc1gB,KAAKkZ,OAAOuH,KAC5BzgB,KAAKsgB,aAAatD,+ECzBR2D,GAAuB/f,KAAUD,IAC/C,MAAO,CAACC,EAAOD,EAAKD,OAASigB,EAAmBhgB,GAAQ,qCAN1CigB,GAAuBhgB,EAAOD,IAC5C,OAAa,OAATA,EAAsB,CAACC,GACpB,CAACA,KAAUggB,EAAmBjgB"}
1
+ {"version":3,"file":"index.umd.min.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/emitter.ts","../../src/hash-map.ts","../../src/hash-set.ts","../../src/queue.ts","../../node_modules/@blackglory/errors/node_modules/@blackglory/go/lib/es2018/go.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/go/lib/es2018/index.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/errors/lib/es2018/custom-error.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/errors/lib/es2018/expected-error.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/errors/lib/es2018/assertion-error.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/errors/lib/es2018/normalize.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/errors/lib/es2018/refute.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/errors/lib/es2018/assert.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/errors/lib/es2018/index.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/chunk-async.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/array.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/null.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/undefined.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/async-iterable.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/bigint.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/boolean.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/string.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/char.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/date.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/enum.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/error.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/falsy.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/function.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/iterable.js","../../node_modules/lodash.isplainobject/index.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/object.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/number.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/json-rpc.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/json.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/url.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/types/lib/es2018/index.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/chunk-by-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/chunk-by.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/chunk.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/concat-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/concat.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/utils.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/drop-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/drop-right-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/drop-right.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/drop-until-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/drop-until.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/drop.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/filter-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/filter.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/flatten-by-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/flatten-deep-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/flatten-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/flatten-by.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/flatten-deep.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/flatten.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/map-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/map.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/repeat-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/repeat.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/slice-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/slice.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/split-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/split-by-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/split-by.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/split.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/take-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/take-right-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/take-right.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/take-until-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/take-until.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/take.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/tap-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/tap.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/to-async-iterable.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/transform-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/transform.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/uniq-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/uniq-by-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/uniq-by.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/uniq.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/zip-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/zip.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/middleware/index.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/consume.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/each-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/each.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/every-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/every.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/find-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/find.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/first-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/first.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/includes-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/includes.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/match-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/match.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/reduce-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/reduce.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/some-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/some.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/last-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/last.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/to-array-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/to-array.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/to-set-async.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/to-set.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/output/index.js","../../node_modules/@blackglory/errors/node_modules/iterable-operator/lib/es2018/index.js","../../node_modules/@blackglory/errors/lib/es2018/traverse-error-prototype-chain.js","../../node_modules/@blackglory/errors/lib/es2018/get-error-names.js","../../node_modules/@blackglory/errors/lib/es2018/serializable-error.js","../../node_modules/@blackglory/errors/lib/es2018/custom-error.js","../../node_modules/@blackglory/errors/lib/es2018/assertion-error.js","../../node_modules/@blackglory/errors/lib/es2018/normalize.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/pass/lib/es2018/pass.js","../../node_modules/@blackglory/errors/node_modules/@blackglory/pass/lib/es2018/index.js","../../node_modules/@blackglory/errors/lib/es2018/hydrate.js","../../node_modules/@blackglory/errors/lib/es2018/assert.js","../../node_modules/@blackglory/errors/lib/es2018/index.js","../../node_modules/iterable-operator/node_modules/@blackglory/go/lib/es2018/go.js","../../node_modules/iterable-operator/node_modules/@blackglory/go/lib/es2018/index.js","../../node_modules/iterable-operator/lib/es2018/middleware/chunk-async.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/array.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/null.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/undefined.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/async-iterable.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/bigint.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/boolean.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/string.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/char.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/date.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/enum.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/error.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/falsy.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/function.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/iterable.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/object.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/number.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/json-rpc.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/json.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/url.js","../../node_modules/iterable-operator/node_modules/@blackglory/types/lib/es2018/index.js","../../node_modules/iterable-operator/lib/es2018/middleware/chunk-by-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/chunk-by.js","../../node_modules/iterable-operator/lib/es2018/middleware/chunk.js","../../node_modules/iterable-operator/lib/es2018/middleware/concat-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/concat.js","../../node_modules/iterable-operator/lib/es2018/utils.js","../../node_modules/iterable-operator/lib/es2018/middleware/drop-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/drop-right-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/drop-right.js","../../node_modules/iterable-operator/lib/es2018/middleware/drop-until-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/drop-until.js","../../node_modules/iterable-operator/lib/es2018/middleware/drop.js","../../node_modules/iterable-operator/lib/es2018/middleware/filter-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/filter.js","../../node_modules/iterable-operator/lib/es2018/middleware/flatten-by-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/flatten-deep-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/flatten-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/flatten-by.js","../../node_modules/iterable-operator/lib/es2018/middleware/flatten-deep.js","../../node_modules/iterable-operator/lib/es2018/middleware/flatten.js","../../node_modules/iterable-operator/lib/es2018/middleware/map-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/map.js","../../node_modules/iterable-operator/lib/es2018/middleware/repeat-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/repeat.js","../../node_modules/iterable-operator/lib/es2018/middleware/slice-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/slice.js","../../node_modules/iterable-operator/lib/es2018/middleware/split-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/split-by-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/split-by.js","../../node_modules/iterable-operator/lib/es2018/middleware/split.js","../../node_modules/iterable-operator/lib/es2018/middleware/take-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/take-right-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/take-right.js","../../node_modules/iterable-operator/lib/es2018/middleware/take-until-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/take-until.js","../../node_modules/iterable-operator/lib/es2018/middleware/take.js","../../node_modules/iterable-operator/lib/es2018/middleware/tap-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/tap.js","../../node_modules/iterable-operator/lib/es2018/middleware/to-async-iterable.js","../../node_modules/iterable-operator/lib/es2018/middleware/transform-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/transform.js","../../node_modules/iterable-operator/lib/es2018/middleware/uniq-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/uniq-by-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/uniq-by.js","../../node_modules/iterable-operator/lib/es2018/middleware/uniq.js","../../node_modules/iterable-operator/lib/es2018/middleware/zip-async.js","../../node_modules/iterable-operator/lib/es2018/middleware/zip.js","../../node_modules/iterable-operator/lib/es2018/middleware/index.js","../../node_modules/iterable-operator/lib/es2018/output/consume.js","../../node_modules/iterable-operator/lib/es2018/output/each-async.js","../../node_modules/iterable-operator/lib/es2018/output/each.js","../../node_modules/iterable-operator/lib/es2018/output/every-async.js","../../node_modules/iterable-operator/lib/es2018/output/every.js","../../node_modules/iterable-operator/lib/es2018/output/find-async.js","../../node_modules/iterable-operator/lib/es2018/output/find.js","../../node_modules/iterable-operator/lib/es2018/output/first-async.js","../../node_modules/iterable-operator/lib/es2018/output/first.js","../../node_modules/iterable-operator/lib/es2018/output/includes-async.js","../../node_modules/iterable-operator/lib/es2018/output/includes.js","../../node_modules/iterable-operator/lib/es2018/output/match-async.js","../../node_modules/iterable-operator/lib/es2018/output/match.js","../../node_modules/iterable-operator/lib/es2018/output/reduce-async.js","../../node_modules/iterable-operator/lib/es2018/output/reduce.js","../../node_modules/iterable-operator/lib/es2018/output/some-async.js","../../node_modules/iterable-operator/lib/es2018/output/some.js","../../node_modules/iterable-operator/lib/es2018/output/last-async.js","../../node_modules/iterable-operator/lib/es2018/output/last.js","../../node_modules/iterable-operator/lib/es2018/output/to-array-async.js","../../node_modules/iterable-operator/lib/es2018/output/to-array.js","../../node_modules/iterable-operator/lib/es2018/output/to-set-async.js","../../node_modules/iterable-operator/lib/es2018/output/to-set.js","../../node_modules/iterable-operator/lib/es2018/output/index.js","../../node_modules/iterable-operator/lib/es2018/index.js","../../src/lru-map.ts","../../node_modules/extra-rand/lib/es2018/random.js","../../node_modules/extra-rand/lib/es2018/random-int.js","../../node_modules/extra-rand/lib/es2018/random-int-inclusive.js","../../node_modules/extra-rand/lib/es2018/index.js","../../node_modules/extra-timers/lib/es2018/exponential-backoff.js","../../node_modules/extra-timers/lib/es2018/set-timeout.js","../../node_modules/extra-timers/lib/es2018/set-schedule.js","../../node_modules/extra-timers/lib/es2018/set-interval.js","../../node_modules/extra-timers/lib/es2018/set-immediate.js","../../node_modules/extra-timers/lib/es2018/set-timeout-loop.js","../../node_modules/extra-timers/lib/es2018/set-dynamic-timeout-loop.js","../../node_modules/extra-timers/lib/es2018/index.js","../../src/expirable-map.ts","../../src/tlru-map.ts","../../src/trie-map.ts","../../src/finite-state-machine.ts","../../node_modules/rxjs/dist/esm5/internal/util/isFunction.js","../../node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js","../../node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js","../../node_modules/rxjs/dist/esm5/internal/util/arrRemove.js","../../node_modules/rxjs/dist/esm5/internal/Subscription.js","../../node_modules/rxjs/dist/esm5/internal/config.js","../../node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js","../../node_modules/rxjs/dist/esm5/internal/util/noop.js","../../node_modules/rxjs/dist/esm5/internal/util/errorContext.js","../../node_modules/rxjs/dist/esm5/internal/Subscriber.js","../../node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js","../../node_modules/rxjs/dist/esm5/internal/symbol/observable.js","../../node_modules/rxjs/dist/esm5/internal/util/identity.js","../../node_modules/rxjs/dist/esm5/internal/util/pipe.js","../../node_modules/rxjs/dist/esm5/internal/Observable.js","../../node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js","../../node_modules/rxjs/dist/esm5/internal/Subject.js","../../node_modules/@blackglory/types/lib/es2018/array.js","../../node_modules/@blackglory/types/lib/es2018/null.js","../../node_modules/@blackglory/types/lib/es2018/undefined.js","../../node_modules/@blackglory/types/lib/es2018/function.js","../../node_modules/@blackglory/types/lib/es2018/async-iterable.js","../../node_modules/@blackglory/types/lib/es2018/bigint.js","../../node_modules/@blackglory/types/lib/es2018/boolean.js","../../node_modules/@blackglory/types/lib/es2018/string.js","../../node_modules/@blackglory/types/lib/es2018/char.js","../../node_modules/@blackglory/types/lib/es2018/date.js","../../node_modules/@blackglory/types/lib/es2018/enum.js","../../node_modules/@blackglory/types/lib/es2018/error.js","../../node_modules/@blackglory/types/lib/es2018/falsy.js","../../node_modules/@blackglory/types/lib/es2018/iterable.js","../../node_modules/@blackglory/types/lib/es2018/number.js","../../node_modules/@blackglory/types/lib/es2018/object.js","../../node_modules/@blackglory/types/lib/es2018/json.js","../../node_modules/@blackglory/types/lib/es2018/promise.js","../../node_modules/@blackglory/types/lib/es2018/url.js","../../node_modules/@blackglory/types/lib/es2018/index.js","../../src/box.ts","../../src/observable-finite-state-machine.ts","../../src/cons.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n 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;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n 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); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","type Handler<T> = (value: T) => void\n\nexport class Emitter<T> {\n #map = new Map<string, Set<Handler<T>>>()\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n /**\n * The same handler will only be registered once.\n */\n on(event: string, handler: Handler<T>): void {\n if (!this.#map.has(event)) {\n this.#map.set(event, new Set())\n }\n\n const set = this.#map.get(event)!\n set.add(handler)\n }\n\n off(event: string, handler: Handler<T>): void {\n if (!this.#map.has(event)) return\n\n const handlers = this.#map.get(event)!\n handlers.delete(handler)\n if (handlers.size === 0) {\n this.#map.delete(event)\n }\n }\n\n emit(event: string, value: T): void {\n if (!this.#map.has(event)) return\n\n const set = this.#map.get(event)!\n set.forEach(cb => cb(value))\n }\n}\n","export class HashMap<K, V, H = unknown> {\n #map = new Map<H, V>()\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n get size() {\n return this.#map.size\n }\n\n constructor(private hash: (key: K) => H) {}\n\n set(key: K, value: V): this {\n this.#map.set(this.hash(key), value)\n return this\n }\n\n has(key: K): boolean {\n return this.#map.has(this.hash(key))\n }\n\n get(key: K): V | undefined {\n return this.#map.get(this.hash(key))\n }\n\n delete(key: K): boolean {\n return this.#map.delete(this.hash(key))\n }\n\n clear(): void {\n this.#map.clear()\n }\n}\n","export class HashSet<V, H = unknown> implements Iterable<V> {\n #map = new Map<H, V>()\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n get size() {\n return this.#map.size\n }\n\n [Symbol.iterator]() {\n return this.#map.values()\n }\n\n constructor(private hash: (value: V) => H) {}\n\n add(value: V): this {\n this.#map.set(this.hash(value), value)\n return this\n }\n\n delete(value: V): boolean {\n return this.#map.delete(this.hash(value))\n }\n\n has(value: V): boolean {\n return this.#map.has(this.hash(value))\n }\n\n clear(): void {\n this.#map.clear()\n }\n\n values(): Iterable<V> {\n return this.#map.values()\n }\n}\n","export class Queue<T> {\n #items: T[] = []\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n get size(): number {\n return this.#items.length\n }\n\n empty(): void {\n this.#items.length = 0\n }\n\n enqueue(...items: T[]): void {\n this.#items.push(...items)\n }\n\n dequeue(): T | undefined {\n return this.#items.shift()\n }\n\n remove(item: T): void {\n let index: number\n while ((index = this.#items.indexOf(item)) >= 0) {\n this.#items.splice(index, 1)\n }\n }\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.go = void 0;\nfunction go(fn) {\n return fn();\n}\nexports.go = go;\n//# sourceMappingURL=go.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./go\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CustomError = void 0;\nclass CustomError extends Error {\n get name() {\n return this.constructor.name;\n }\n}\nexports.CustomError = CustomError;\n//# sourceMappingURL=custom-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ExpectedError = void 0;\nconst custom_error_1 = require(\"./custom-error\");\nclass ExpectedError extends custom_error_1.CustomError {\n}\nexports.ExpectedError = ExpectedError;\n//# sourceMappingURL=expected-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AssertionError = void 0;\nconst custom_error_1 = require(\"./custom-error\");\nclass AssertionError extends custom_error_1.CustomError {\n}\nexports.AssertionError = AssertionError;\n//# sourceMappingURL=assertion-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.normalize = void 0;\nfunction normalize(err) {\n var _a;\n return {\n name: err.name,\n message: err.message,\n stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null\n };\n}\nexports.normalize = normalize;\n//# sourceMappingURL=normalize.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.refute = void 0;\nconst expected_error_1 = require(\"./expected-error\");\nfunction refute(condition, message) {\n if (condition)\n throw new expected_error_1.ExpectedError(message);\n}\nexports.refute = refute;\n//# sourceMappingURL=refute.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assert = void 0;\nconst assertion_error_1 = require(\"./assertion-error\");\nfunction assert(condition, message) {\n if (!condition)\n throw new assertion_error_1.AssertionError(message);\n}\nexports.assert = assert;\n//# sourceMappingURL=assert.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./custom-error\"), exports);\n__exportStar(require(\"./expected-error\"), exports);\n__exportStar(require(\"./assertion-error\"), exports);\n__exportStar(require(\"./normalize\"), exports);\n__exportStar(require(\"./refute\"), exports);\n__exportStar(require(\"./assert\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.chunkAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction chunkAsync(iterable, size) {\n (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');\n (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');\n return (0, go_1.go)(async function* () {\n let buffer = [];\n for await (const element of iterable) {\n buffer.push(element);\n if (buffer.length >= size) {\n yield buffer;\n buffer = [];\n }\n }\n if (buffer.length)\n yield buffer;\n });\n}\nexports.chunkAsync = chunkAsync;\n//# sourceMappingURL=chunk-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntEmptyArray = exports.isEmptyArray = exports.isntArray = exports.isArray = void 0;\nfunction isArray(val) {\n return Array.isArray(val);\n}\nexports.isArray = isArray;\nfunction isntArray(val) {\n return !isArray(val);\n}\nexports.isntArray = isntArray;\nfunction isEmptyArray(val) {\n return val.length === 0;\n}\nexports.isEmptyArray = isEmptyArray;\nfunction isntEmptyArray(val) {\n return val.length !== 0;\n}\nexports.isntEmptyArray = isntEmptyArray;\n//# sourceMappingURL=array.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntNull = exports.isNull = void 0;\nfunction isNull(val) {\n return val === null;\n}\nexports.isNull = isNull;\nfunction isntNull(val) {\n return !isNull(val);\n}\nexports.isntNull = isntNull;\n//# sourceMappingURL=null.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntUndefined = exports.isUndefined = void 0;\nfunction isUndefined(val) {\n return val === undefined;\n}\nexports.isUndefined = isUndefined;\nfunction isntUndefined(val) {\n return !isUndefined(val);\n}\nexports.isntUndefined = isntUndefined;\n//# sourceMappingURL=undefined.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntAsyncIterable = exports.isAsyncIterable = void 0;\nconst null_1 = require(\"./null\");\nconst undefined_1 = require(\"./undefined\");\nfunction isAsyncIterable(val) {\n return (0, null_1.isntNull)(val)\n && (0, undefined_1.isntUndefined)(val)\n && typeof val[Symbol.asyncIterator] === 'function';\n}\nexports.isAsyncIterable = isAsyncIterable;\nfunction isntAsyncIterable(val) {\n return !isAsyncIterable(val);\n}\nexports.isntAsyncIterable = isntAsyncIterable;\n//# sourceMappingURL=async-iterable.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntBigInt = exports.isBigInt = void 0;\nfunction isBigInt(val) {\n return typeof val === 'bigint';\n}\nexports.isBigInt = isBigInt;\nfunction isntBigInt(val) {\n return !isBigInt(val);\n}\nexports.isntBigInt = isntBigInt;\n//# sourceMappingURL=bigint.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntBoolean = exports.isBoolean = void 0;\nfunction isBoolean(val) {\n return typeof val === 'boolean';\n}\nexports.isBoolean = isBoolean;\nfunction isntBoolean(val) {\n return !isBoolean(val);\n}\nexports.isntBoolean = isntBoolean;\n//# sourceMappingURL=boolean.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntString = exports.isString = void 0;\nfunction isString(val) {\n return typeof val === 'string';\n}\nexports.isString = isString;\nfunction isntString(val) {\n return !isString(val);\n}\nexports.isntString = isntString;\n//# sourceMappingURL=string.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntChar = exports.isChar = void 0;\nconst string_1 = require(\"./string\");\nfunction isChar(val) {\n return (0, string_1.isString)(val)\n && val.length === 1;\n}\nexports.isChar = isChar;\nfunction isntChar(val) {\n return !isChar(val);\n}\nexports.isntChar = isntChar;\n//# sourceMappingURL=char.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntDate = exports.isDate = void 0;\nfunction isDate(val) {\n return val instanceof Date;\n}\nexports.isDate = isDate;\nfunction isntDate(val) {\n return !isDate(val);\n}\nexports.isntDate = isntDate;\n//# sourceMappingURL=date.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.inEnum = void 0;\nfunction inEnum(val, _enum) {\n return Object.values(_enum).includes(val);\n}\nexports.inEnum = inEnum;\n//# sourceMappingURL=enum.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntError = exports.isError = void 0;\nfunction isError(val) {\n return val instanceof Error;\n}\nexports.isError = isError;\nfunction isntError(val) {\n return !isError(val);\n}\nexports.isntError = isntError;\n//# sourceMappingURL=error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntFalsy = exports.isFalsy = void 0;\nfunction isFalsy(val) {\n return !val;\n}\nexports.isFalsy = isFalsy;\nfunction isntFalsy(val) {\n return !isFalsy(val);\n}\nexports.isntFalsy = isntFalsy;\n//# sourceMappingURL=falsy.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntFunction = exports.isFunction = void 0;\nfunction isFunction(val) {\n return typeof val === 'function';\n}\nexports.isFunction = isFunction;\nfunction isntFunction(val) {\n return !isFunction(val);\n}\nexports.isntFunction = isntFunction;\n//# sourceMappingURL=function.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntIterable = exports.isIterable = void 0;\nconst null_1 = require(\"./null\");\nconst undefined_1 = require(\"./undefined\");\nfunction isIterable(val) {\n return (0, null_1.isntNull)(val)\n && (0, undefined_1.isntUndefined)(val)\n && typeof val[Symbol.iterator] === 'function';\n}\nexports.isIterable = isIterable;\nfunction isntIterable(val) {\n return !isIterable(val);\n}\nexports.isntIterable = isntIterable;\n//# sourceMappingURL=iterable.js.map","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n // Many host objects are `Object` objects that can coerce to strings\n // despite having improperly defined `toString` methods.\n var result = false;\n if (value != null && typeof value.toString != 'function') {\n try {\n result = !!(value + '');\n } catch (e) {}\n }\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) ||\n objectToString.call(value) != objectTag || isHostObject(value)) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return (typeof Ctor == 'function' &&\n Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);\n}\n\nmodule.exports = isPlainObject;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntEmptyObject = exports.isEmptyObject = exports.isntPlainObject = exports.isPlainObject = exports.isntObject = exports.isObject = void 0;\nconst lodash_isplainobject_1 = __importDefault(require(\"lodash.isplainobject\"));\nfunction isObject(val) {\n return val !== null\n && typeof val === 'object';\n}\nexports.isObject = isObject;\nfunction isntObject(val) {\n return !isObject(val);\n}\nexports.isntObject = isntObject;\nfunction isPlainObject(val) {\n return (0, lodash_isplainobject_1.default)(val);\n}\nexports.isPlainObject = isPlainObject;\nfunction isntPlainObject(val) {\n return !isPlainObject(val);\n}\nexports.isntPlainObject = isntPlainObject;\nfunction isEmptyObject(val) {\n return Object.keys(val).length === 0;\n}\nexports.isEmptyObject = isEmptyObject;\nfunction isntEmptyObject(val) {\n return Object.keys(val).length !== 0;\n}\nexports.isntEmptyObject = isntEmptyObject;\n//# sourceMappingURL=object.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntNumber = exports.isNumber = void 0;\nfunction isNumber(val) {\n return typeof val === 'number';\n}\nexports.isNumber = isNumber;\nfunction isntNumber(val) {\n return !isNumber(val);\n}\nexports.isntNumber = isntNumber;\n//# sourceMappingURL=number.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntJsonRpcError = exports.isJsonRpcError = exports.isntJsonRpcSuccess = exports.isJsonRpcSuccess = exports.isntJsonRpcRequest = exports.isJsonRpcRequest = exports.isntJsonRpcNotification = exports.isJsonRpcNotification = void 0;\nconst array_1 = require(\"./array\");\nconst object_1 = require(\"./object\");\nconst string_1 = require(\"./string\");\nconst number_1 = require(\"./number\");\nconst undefined_1 = require(\"./undefined\");\nfunction isJsonRpcId(val) {\n return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);\n}\nfunction isJsonRpcParams(val) {\n return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);\n}\nfunction isJsonRpcNotification(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, string_1.isString)(val.jsonrpc)\n && (0, string_1.isString)(val.method)\n && (0, undefined_1.isUndefined)(val.id)\n && isJsonRpcParams(val.params);\n}\nexports.isJsonRpcNotification = isJsonRpcNotification;\nfunction isntJsonRpcNotification(val) {\n return !isJsonRpcNotification(val);\n}\nexports.isntJsonRpcNotification = isntJsonRpcNotification;\nfunction isJsonRpcRequest(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, string_1.isString)(val.jsonrpc)\n && (0, string_1.isString)(val.method)\n && isJsonRpcId(val.id)\n && isJsonRpcParams(val.params);\n}\nexports.isJsonRpcRequest = isJsonRpcRequest;\nfunction isntJsonRpcRequest(val) {\n return !isJsonRpcRequest(val);\n}\nexports.isntJsonRpcRequest = isntJsonRpcRequest;\nfunction isJsonRpcSuccess(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, string_1.isString)(val.jsonrpc)\n && (0, string_1.isString)(val.id)\n && 'result' in val;\n}\nexports.isJsonRpcSuccess = isJsonRpcSuccess;\nfunction isntJsonRpcSuccess(val) {\n return !isJsonRpcSuccess(val);\n}\nexports.isntJsonRpcSuccess = isntJsonRpcSuccess;\nfunction isJsonRpcError(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, string_1.isString)(val.jsonrpc)\n && isJsonRpcId(val.id)\n && isJsonRpcErrorObject(val.error);\n}\nexports.isJsonRpcError = isJsonRpcError;\nfunction isntJsonRpcError(val) {\n return !isJsonRpcError(val);\n}\nexports.isntJsonRpcError = isntJsonRpcError;\nfunction isJsonRpcErrorObject(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, number_1.isNumber)(val.code)\n && (0, string_1.isString)(val.message)\n && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));\n}\n//# sourceMappingURL=json-rpc.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntJson = exports.isJson = void 0;\nfunction isJson(val) {\n try {\n JSON.stringify(val);\n return true;\n }\n catch (_a) {\n return false;\n }\n}\nexports.isJson = isJson;\nfunction isntJson(val) {\n return !isntJson(val);\n}\nexports.isntJson = isntJson;\n//# sourceMappingURL=json.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isAbsoluteURL = void 0;\nfunction isAbsoluteURL(str) {\n try {\n new URL(str);\n return true;\n }\n catch (_a) {\n return false;\n }\n}\nexports.isAbsoluteURL = isAbsoluteURL;\n//# sourceMappingURL=url.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./array\"), exports);\n__exportStar(require(\"./async-iterable\"), exports);\n__exportStar(require(\"./bigint\"), exports);\n__exportStar(require(\"./boolean\"), exports);\n__exportStar(require(\"./char\"), exports);\n__exportStar(require(\"./date\"), exports);\n__exportStar(require(\"./enum\"), exports);\n__exportStar(require(\"./error\"), exports);\n__exportStar(require(\"./falsy\"), exports);\n__exportStar(require(\"./function\"), exports);\n__exportStar(require(\"./iterable\"), exports);\n__exportStar(require(\"./json-rpc\"), exports);\n__exportStar(require(\"./json\"), exports);\n__exportStar(require(\"./null\"), exports);\n__exportStar(require(\"./number\"), exports);\n__exportStar(require(\"./object\"), exports);\n__exportStar(require(\"./string\"), exports);\n__exportStar(require(\"./undefined\"), exports);\n__exportStar(require(\"./url\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.chunkByAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction chunkByAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return chunkByAsyncIterable(iterable);\n }\n else {\n return chunkByIterable(iterable);\n }\n async function* chunkByAsyncIterable(iterable) {\n let buffer = [];\n let index = 0;\n for await (const element of iterable) {\n buffer.push(element);\n if (await predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n index++;\n }\n if (buffer.length)\n yield buffer;\n }\n async function* chunkByIterable(iterable) {\n let buffer = [];\n let index = 0;\n for (const element of iterable) {\n buffer.push(element);\n if (await predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n index++;\n }\n if (buffer.length)\n yield buffer;\n }\n}\nexports.chunkByAsync = chunkByAsync;\n//# sourceMappingURL=chunk-by-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.chunkBy = void 0;\nfunction* chunkBy(iterable, predicate) {\n let buffer = [];\n let index = 0;\n for (const element of iterable) {\n buffer.push(element);\n if (predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n index++;\n }\n if (buffer.length)\n yield buffer;\n}\nexports.chunkBy = chunkBy;\n//# sourceMappingURL=chunk-by.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.chunk = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction chunk(iterable, size) {\n (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');\n (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');\n return (0, go_1.go)(function* () {\n let buffer = [];\n for (const element of iterable) {\n buffer.push(element);\n if (buffer.length >= size) {\n yield buffer;\n buffer = [];\n }\n }\n if (buffer.length)\n yield buffer;\n });\n}\nexports.chunk = chunk;\n//# sourceMappingURL=chunk.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.concatAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nconst go_1 = require(\"@blackglory/go\");\nfunction concatAsync(iterable, ...otherIterables) {\n return (0, go_1.go)(async function* () {\n for (const iter of [iterable, ...otherIterables]) {\n if ((0, types_1.isAsyncIterable)(iter)) {\n for await (const element of iter) {\n yield element;\n }\n }\n else {\n for (const element of iter) {\n yield element;\n }\n }\n }\n });\n}\nexports.concatAsync = concatAsync;\n//# sourceMappingURL=concat-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.concat = void 0;\nconst go_1 = require(\"@blackglory/go\");\nfunction concat(iterable, ...otherIterables) {\n return (0, go_1.go)(function* () {\n for (const iter of [iterable, ...otherIterables]) {\n yield* iter;\n }\n });\n}\nexports.concat = concat;\n//# sourceMappingURL=concat.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.copyIterable = exports.copyAsyncIterable = void 0;\nasync function* copyAsyncIterable(iterable) {\n for await (const element of iterable) {\n yield element;\n }\n}\nexports.copyAsyncIterable = copyAsyncIterable;\nfunction* copyIterable(iterable) {\n for (const element of iterable) {\n yield element;\n }\n}\nexports.copyIterable = copyIterable;\n//# sourceMappingURL=utils.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst utils_1 = require(\"../utils\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction dropAsync(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n if (count === 0)\n return (0, utils_1.copyAsyncIterable)(iterable);\n return (0, go_1.go)(async function* () {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n let value;\n while ({ value, done } = await iterator.next(), !done) {\n if (count <= 0)\n break;\n count--;\n }\n while (!done) {\n yield value;\n ({ value, done } = await iterator.next());\n }\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n });\n}\nexports.dropAsync = dropAsync;\n//# sourceMappingURL=drop-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropRightAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst utils_1 = require(\"../utils\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction dropRightAsync(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n if (count === 0)\n return (0, utils_1.copyAsyncIterable)(iterable);\n return (0, go_1.go)(async function* () {\n const arr = await toArrayAsync(iterable);\n const result = arr.slice(0, -count);\n for (const value of result) {\n yield value;\n }\n });\n}\nexports.dropRightAsync = dropRightAsync;\nasync function toArrayAsync(iterable) {\n const result = [];\n for await (const element of iterable) {\n result.push(element);\n }\n return result;\n}\n//# sourceMappingURL=drop-right-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropRight = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst utils_1 = require(\"../utils\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction dropRight(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n if (count === 0)\n return (0, utils_1.copyIterable)(iterable);\n return (0, go_1.go)(function* () {\n const arr = Array.from(iterable);\n yield* arr.slice(0, -count);\n });\n}\nexports.dropRight = dropRight;\n//# sourceMappingURL=drop-right.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropUntilAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction dropUntilAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return dropUntilAsyncIterable(iterable);\n }\n else {\n return dropUntilIterable(iterable);\n }\n async function* dropUntilAsyncIterable(iterable) {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n let index = 0;\n let value;\n while ({ value, done } = await iterator.next(), !done) {\n if (await predicate(value, index++))\n break;\n }\n while (!done) {\n yield value;\n ({ value, done } = await iterator.next());\n }\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n }\n async function* dropUntilIterable(iterable) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let index = 0;\n let value;\n while ({ value, done } = iterator.next(), !done) {\n if (await predicate(value, index++))\n break;\n }\n while (!done) {\n yield value;\n ({ value, done } = iterator.next());\n }\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n }\n}\nexports.dropUntilAsync = dropUntilAsync;\n//# sourceMappingURL=drop-until-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropUntil = void 0;\nfunction* dropUntil(iterable, predicate) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let index = 0;\n let value;\n while ({ value, done } = iterator.next(), !done) {\n if (predicate(value, index++))\n break;\n }\n while (!done) {\n yield value;\n ({ value, done } = iterator.next());\n }\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n}\nexports.dropUntil = dropUntil;\n//# sourceMappingURL=drop-until.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.drop = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst utils_1 = require(\"../utils\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction drop(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n if (count === 0)\n return (0, utils_1.copyIterable)(iterable);\n return (0, go_1.go)(function* () {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let value;\n while ({ value, done } = iterator.next(), !done) {\n if (count <= 0)\n break;\n count--;\n }\n while (!done) {\n yield value;\n ({ value, done } = iterator.next());\n }\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n });\n}\nexports.drop = drop;\n//# sourceMappingURL=drop.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.filterAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction filterAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return filterAsyncIterable(iterable);\n }\n else {\n return filterIterable(iterable);\n }\n async function* filterAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index))\n yield element;\n index++;\n }\n }\n async function* filterIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index))\n yield element;\n index++;\n }\n }\n}\nexports.filterAsync = filterAsync;\n//# sourceMappingURL=filter-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.filter = void 0;\nfunction* filter(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index))\n yield element;\n index++;\n }\n}\nexports.filter = filter;\n//# sourceMappingURL=filter.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenByAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction flattenByAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return flattenByAsyncIterable(iterable);\n }\n else {\n return flattenByIterable(iterable);\n }\n async function* flattenByAsyncIterable(iterable) {\n const level = 1;\n for await (const element of iterable) {\n if (isFiniteIterable(element) && await predicate(element, level)) {\n yield* flatten(element, level + 1);\n }\n else {\n yield element;\n }\n }\n }\n function flattenByIterable(iterable) {\n return flatten(iterable, 1);\n }\n async function* flatten(iterable, level) {\n for (const element of iterable) {\n if (isFiniteIterable(element) && await predicate(element, level)) {\n yield* flatten(element, level + 1);\n }\n else {\n yield element;\n }\n }\n }\n}\nexports.flattenByAsync = flattenByAsync;\nfunction isFiniteIterable(val) {\n return (0, types_1.isIterable)(val) && (0, types_1.isntChar)(val);\n}\n//# sourceMappingURL=flatten-by-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenDeepAsync = void 0;\nconst flatten_by_async_1 = require(\"./flatten-by-async\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction flattenDeepAsync(iterable, depth = Infinity) {\n (0, errors_1.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');\n (0, errors_1.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');\n return (0, flatten_by_async_1.flattenByAsync)(iterable, (_, level) => level <= depth);\n}\nexports.flattenDeepAsync = flattenDeepAsync;\n//# sourceMappingURL=flatten-deep-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenAsync = void 0;\nconst flatten_deep_async_1 = require(\"./flatten-deep-async\");\nfunction flattenAsync(iterable) {\n return (0, flatten_deep_async_1.flattenDeepAsync)(iterable, 1);\n}\nexports.flattenAsync = flattenAsync;\n//# sourceMappingURL=flatten-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenBy = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction flattenBy(iterable, predicate) {\n return flatten(iterable, 1);\n function* flatten(iterable, level) {\n for (const element of iterable) {\n if (isFiniteIterable(element) && predicate(element, level)) {\n yield* flatten(element, level + 1);\n }\n else {\n yield element;\n }\n }\n }\n}\nexports.flattenBy = flattenBy;\nfunction isFiniteIterable(val) {\n return (0, types_1.isIterable)(val) && (0, types_1.isntChar)(val);\n}\n//# sourceMappingURL=flatten-by.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenDeep = void 0;\nconst flatten_by_1 = require(\"./flatten-by\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction flattenDeep(iterable, depth = Infinity) {\n (0, errors_1.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');\n (0, errors_1.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');\n return (0, flatten_by_1.flattenBy)(iterable, (_, level) => level <= depth);\n}\nexports.flattenDeep = flattenDeep;\n//# sourceMappingURL=flatten-deep.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flatten = void 0;\nconst flatten_deep_1 = require(\"./flatten-deep\");\nfunction flatten(iterable) {\n return (0, flatten_deep_1.flattenDeep)(iterable, 1);\n}\nexports.flatten = flatten;\n//# sourceMappingURL=flatten.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.mapAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction mapAsync(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return mapAsyncIterable(iterable);\n }\n else {\n return mapIterable(iterable);\n }\n async function* mapAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n yield await fn(element, index);\n index++;\n }\n }\n async function* mapIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n yield await fn(element, index);\n index++;\n }\n }\n}\nexports.mapAsync = mapAsync;\n//# sourceMappingURL=map-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.map = void 0;\nfunction* map(iterable, fn) {\n let index = 0;\n for (const element of iterable) {\n yield fn(element, index);\n index++;\n }\n}\nexports.map = map;\n//# sourceMappingURL=map.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.repeatAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction repeatAsync(iterable, times) {\n (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');\n (0, errors_1.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');\n if (times === Infinity)\n warnInfiniteLoop();\n return (0, go_1.go)(async function* () {\n const cache = [];\n if (times > 0) {\n for await (const element of iterable) {\n yield element;\n cache.push(element);\n }\n times--;\n }\n while (times > 0) {\n yield* cache;\n times--;\n }\n });\n}\nexports.repeatAsync = repeatAsync;\nfunction warnInfiniteLoop() {\n if (isProduction())\n return;\n console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');\n}\nfunction isProduction() {\n return process.env.NODE_ENV === 'production';\n}\n//# sourceMappingURL=repeat-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.repeat = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction repeat(iterable, times) {\n (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');\n (0, errors_1.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');\n if (times === Infinity)\n warnInfiniteLoop();\n return (0, go_1.go)(function* () {\n const cache = [];\n if (times > 0) {\n for (const element of iterable) {\n yield element;\n cache.push(element);\n }\n times--;\n }\n while (times > 0) {\n yield* cache;\n times--;\n }\n });\n}\nexports.repeat = repeat;\nfunction warnInfiniteLoop() {\n if (isProduction())\n return;\n console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');\n}\nfunction isProduction() {\n return process.env.NODE_ENV === 'production';\n}\n//# sourceMappingURL=repeat.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sliceAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction sliceAsync(iterable, start, end = Infinity) {\n (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');\n (0, errors_1.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');\n (0, errors_1.assert)(Number.isInteger(end), 'The parameter end must be an integer');\n (0, errors_1.assert)(end >= start, 'The parameter end must be greater than or equal to start');\n return (0, go_1.go)(async function* () {\n let index = 0;\n for await (const element of iterable) {\n if (index >= end)\n break;\n if (index >= start)\n yield element;\n index++;\n }\n });\n}\nexports.sliceAsync = sliceAsync;\n//# sourceMappingURL=slice-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.slice = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction slice(iterable, start, end = Infinity) {\n (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');\n (0, errors_1.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');\n (0, errors_1.assert)(Number.isInteger(end), 'The parameter end must be an integer');\n (0, errors_1.assert)(end >= start, 'The parameter end must be greater than or equal to start');\n return (0, go_1.go)(function* () {\n let index = 0;\n for (const element of iterable) {\n if (index >= end)\n break;\n if (index >= start)\n yield element;\n index++;\n }\n });\n}\nexports.slice = slice;\n//# sourceMappingURL=slice.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.splitAsync = void 0;\nasync function* splitAsync(iterable, separator) {\n let buffer = [];\n for await (const element of iterable) {\n if (element === separator) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n }\n yield buffer;\n}\nexports.splitAsync = splitAsync;\n//# sourceMappingURL=split-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.splitByAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction splitByAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return splitByAsyncIterable(iterable);\n }\n else {\n return splitByIterable(iterable);\n }\n async function* splitByIterable(iterable) {\n let buffer = [];\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n index++;\n }\n yield buffer;\n }\n async function* splitByAsyncIterable(iterable) {\n let buffer = [];\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n index++;\n }\n yield buffer;\n }\n}\nexports.splitByAsync = splitByAsync;\n//# sourceMappingURL=split-by-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.splitBy = void 0;\nfunction* splitBy(iterable, predicate) {\n let buffer = [];\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n index++;\n }\n yield buffer;\n}\nexports.splitBy = splitBy;\n//# sourceMappingURL=split-by.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.split = void 0;\nfunction* split(iterable, separator) {\n let buffer = [];\n for (const element of iterable) {\n if (element === separator) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n }\n yield buffer;\n}\nexports.split = split;\n//# sourceMappingURL=split.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction takeAsync(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n return (0, go_1.go)(async function* () {\n if (count === 0)\n return;\n for await (const element of iterable) {\n yield element;\n count--;\n if (count === 0)\n break;\n }\n });\n}\nexports.takeAsync = takeAsync;\n//# sourceMappingURL=take-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeRightAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction takeRightAsync(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n return (0, go_1.go)(async function* () {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n const buffer = [];\n let value;\n while ({ value, done } = await iterator.next(), !done) {\n buffer.push(value);\n if (buffer.length > count)\n buffer.shift();\n }\n yield* buffer;\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n });\n}\nexports.takeRightAsync = takeRightAsync;\n//# sourceMappingURL=take-right-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeRight = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction takeRight(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n return (0, go_1.go)(function* () {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n const buffer = [];\n let value;\n while ({ value, done } = iterator.next(), !done) {\n buffer.push(value);\n if (buffer.length > count)\n buffer.shift();\n }\n yield* buffer;\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n });\n}\nexports.takeRight = takeRight;\n//# sourceMappingURL=take-right.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeUntilAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction takeUntilAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return takeUntilAsyncIterable(iterable);\n }\n else {\n return takeUntilIterable(iterable);\n }\n async function* takeUntilAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index))\n break;\n yield element;\n index++;\n }\n }\n async function* takeUntilIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index))\n break;\n yield element;\n index++;\n }\n }\n}\nexports.takeUntilAsync = takeUntilAsync;\n//# sourceMappingURL=take-until-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeUntil = void 0;\nfunction* takeUntil(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index))\n break;\n yield element;\n index++;\n }\n}\nexports.takeUntil = takeUntil;\n//# sourceMappingURL=take-until.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.take = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction take(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n return (0, go_1.go)(function* () {\n if (count === 0)\n return;\n for (const element of iterable) {\n yield element;\n count--;\n if (count === 0)\n break;\n }\n });\n}\nexports.take = take;\n//# sourceMappingURL=take.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.tapAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction tapAsync(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return tapAsyncIterable(iterable);\n }\n else {\n return tapIterable(iterable);\n }\n async function* tapIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n await fn(element, index);\n yield element;\n index++;\n }\n }\n async function* tapAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n await fn(element, index);\n yield element;\n index++;\n }\n }\n}\nexports.tapAsync = tapAsync;\n//# sourceMappingURL=tap-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.tap = void 0;\nfunction* tap(iterable, fn) {\n let index = 0;\n for (const element of iterable) {\n fn(element, index);\n yield element;\n index++;\n }\n}\nexports.tap = tap;\n//# sourceMappingURL=tap.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toAsyncIterable = void 0;\nasync function* toAsyncIterable(iterable) {\n for (const value of iterable) {\n yield value;\n }\n}\nexports.toAsyncIterable = toAsyncIterable;\n//# sourceMappingURL=to-async-iterable.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.transformAsync = void 0;\nasync function* transformAsync(iterable, transformer) {\n yield* transformer(iterable);\n}\nexports.transformAsync = transformAsync;\n//# sourceMappingURL=transform-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.transform = void 0;\nfunction* transform(iterable, transformer) {\n yield* transformer(iterable);\n}\nexports.transform = transform;\n//# sourceMappingURL=transform.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uniqAsync = void 0;\nasync function* uniqAsync(iterable) {\n const bucket = new Set();\n for await (const element of iterable) {\n if (!bucket.has(element)) {\n yield element;\n bucket.add(element);\n }\n }\n}\nexports.uniqAsync = uniqAsync;\n//# sourceMappingURL=uniq-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uniqByAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction uniqByAsync(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return uniqByAsyncIterable(iterable);\n }\n else {\n return uniqByIterable(iterable);\n }\n async function* uniqByAsyncIterable(iterable) {\n const bucket = new Set();\n let index = 0;\n for await (const element of iterable) {\n const result = await fn(element, index);\n if (!bucket.has(result)) {\n yield element;\n bucket.add(result);\n }\n index++;\n }\n }\n async function* uniqByIterable(iterable) {\n const bucket = new Set();\n let index = 0;\n for (const element of iterable) {\n const result = await fn(element, index);\n if (!bucket.has(result)) {\n yield element;\n bucket.add(result);\n }\n index++;\n }\n }\n}\nexports.uniqByAsync = uniqByAsync;\n//# sourceMappingURL=uniq-by-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uniqBy = void 0;\nfunction* uniqBy(iterable, fn) {\n const bucket = new Set();\n let index = 0;\n for (const element of iterable) {\n const result = fn(element, index);\n if (!bucket.has(result)) {\n yield element;\n bucket.add(result);\n }\n index++;\n }\n}\nexports.uniqBy = uniqBy;\n//# sourceMappingURL=uniq-by.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uniq = void 0;\nfunction* uniq(iterable) {\n const bucket = new Set();\n for (const element of iterable) {\n if (!bucket.has(element)) {\n yield element;\n bucket.add(element);\n }\n }\n}\nexports.uniq = uniq;\n//# sourceMappingURL=uniq.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.zipAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nvar Kind;\n(function (Kind) {\n Kind[Kind[\"Sync\"] = 0] = \"Sync\";\n Kind[Kind[\"Async\"] = 1] = \"Async\";\n})(Kind || (Kind = {}));\nfunction zipAsync(iterable, ...otherIterables) {\n return zipWithSize(iterable, ...otherIterables);\n}\nexports.zipAsync = zipAsync;\nasync function* zipWithSize(...iterables) {\n var _a, _b, _c, _d;\n const length = iterables.length;\n const iterators = iterables.map(iterable => {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return [Kind.Async, iterable[Symbol.asyncIterator]()];\n }\n else {\n return [Kind.Sync, iterable[Symbol.iterator]()];\n }\n });\n const dones = iterators.map(() => false);\n try {\n while (true) {\n const result = new Array(length);\n for (let i = 0; i < length; i++) {\n const [kind, iterator] = iterators[i];\n let temp;\n if (kind === Kind.Async) {\n temp = await iterator.next();\n }\n else {\n temp = iterator.next();\n }\n if (temp.done) {\n dones[i] = true;\n return;\n }\n result[i] = temp.value;\n }\n yield result;\n }\n }\n finally {\n const undoneIterators = iterators.filter((_, i) => !dones[i]);\n for (const [kind, iterator] of undoneIterators) {\n if (kind === Kind.Async) {\n await ((_b = (_a = iterator).return) === null || _b === void 0 ? void 0 : _b.call(_a));\n }\n else {\n (_d = (_c = iterator).return) === null || _d === void 0 ? void 0 : _d.call(_c);\n }\n }\n }\n}\n//# sourceMappingURL=zip-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.zip = void 0;\nfunction zip(iterable, ...otherIterables) {\n return zipWithSize(iterable, ...otherIterables);\n}\nexports.zip = zip;\nfunction* zipWithSize(...iterables) {\n const length = iterables.length;\n const iterators = iterables.map(iterable => iterable[Symbol.iterator]());\n const dones = iterators.map(() => false);\n try {\n while (true) {\n const result = new Array(length);\n for (let i = 0; i < length; i++) {\n const { value, done } = iterators[i].next();\n if (done) {\n dones[i] = true;\n return;\n }\n result[i] = value;\n }\n yield result;\n }\n }\n finally {\n const undoneIterators = iterators.filter((_, i) => !dones[i]);\n undoneIterators.forEach(x => { var _a; return (_a = x.return) === null || _a === void 0 ? void 0 : _a.call(x); });\n }\n}\n//# sourceMappingURL=zip.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./chunk-async\"), exports);\n__exportStar(require(\"./chunk-by-async\"), exports);\n__exportStar(require(\"./chunk-by\"), exports);\n__exportStar(require(\"./chunk\"), exports);\n__exportStar(require(\"./concat-async\"), exports);\n__exportStar(require(\"./concat\"), exports);\n__exportStar(require(\"./drop-async\"), exports);\n__exportStar(require(\"./drop-right-async\"), exports);\n__exportStar(require(\"./drop-right\"), exports);\n__exportStar(require(\"./drop-until-async\"), exports);\n__exportStar(require(\"./drop-until\"), exports);\n__exportStar(require(\"./drop\"), exports);\n__exportStar(require(\"./filter-async\"), exports);\n__exportStar(require(\"./filter\"), exports);\n__exportStar(require(\"./flatten-async\"), exports);\n__exportStar(require(\"./flatten-by-async\"), exports);\n__exportStar(require(\"./flatten-by\"), exports);\n__exportStar(require(\"./flatten-deep-async\"), exports);\n__exportStar(require(\"./flatten-deep\"), exports);\n__exportStar(require(\"./flatten\"), exports);\n__exportStar(require(\"./map-async\"), exports);\n__exportStar(require(\"./map\"), exports);\n__exportStar(require(\"./repeat-async\"), exports);\n__exportStar(require(\"./repeat\"), exports);\n__exportStar(require(\"./slice-async\"), exports);\n__exportStar(require(\"./slice\"), exports);\n__exportStar(require(\"./split-async\"), exports);\n__exportStar(require(\"./split-by-async\"), exports);\n__exportStar(require(\"./split-by\"), exports);\n__exportStar(require(\"./split\"), exports);\n__exportStar(require(\"./take-async\"), exports);\n__exportStar(require(\"./take-right-async\"), exports);\n__exportStar(require(\"./take-right\"), exports);\n__exportStar(require(\"./take-until-async\"), exports);\n__exportStar(require(\"./take-until\"), exports);\n__exportStar(require(\"./take\"), exports);\n__exportStar(require(\"./tap-async\"), exports);\n__exportStar(require(\"./tap\"), exports);\n__exportStar(require(\"./to-async-iterable\"), exports);\n__exportStar(require(\"./transform-async\"), exports);\n__exportStar(require(\"./transform\"), exports);\n__exportStar(require(\"./uniq-async\"), exports);\n__exportStar(require(\"./uniq-by-async\"), exports);\n__exportStar(require(\"./uniq-by\"), exports);\n__exportStar(require(\"./uniq\"), exports);\n__exportStar(require(\"./zip-async\"), exports);\n__exportStar(require(\"./zip\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.consume = void 0;\nfunction consume(iterable, consumer) {\n return consumer(iterable);\n}\nexports.consume = consume;\n//# sourceMappingURL=consume.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.eachAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction eachAsync(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return eachAsyncIterable(iterable);\n }\n else {\n return eachIterable(iterable);\n }\n async function eachAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n await fn(element, index);\n index++;\n }\n }\n async function eachIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n await fn(element, index);\n index++;\n }\n }\n}\nexports.eachAsync = eachAsync;\n//# sourceMappingURL=each-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.each = void 0;\nfunction each(iterable, fn) {\n let index = 0;\n for (const element of iterable) {\n fn(element, index);\n index++;\n }\n}\nexports.each = each;\n//# sourceMappingURL=each.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.everyAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction everyAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return everyAsyncIterable(iterable);\n }\n else {\n return everyIterable(iterable);\n }\n async function everyIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (!await predicate(element, index))\n return false;\n index++;\n }\n return true;\n }\n async function everyAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (!await predicate(element, index))\n return false;\n index++;\n }\n return true;\n }\n}\nexports.everyAsync = everyAsync;\n//# sourceMappingURL=every-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.every = void 0;\nfunction every(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (!predicate(element, index))\n return false;\n index++;\n }\n return true;\n}\nexports.every = every;\n//# sourceMappingURL=every.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.findAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction findAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return findAsyncIterable(iterable);\n }\n else {\n return findIterable(iterable);\n }\n async function findIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index))\n return element;\n index++;\n }\n return undefined;\n }\n async function findAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index))\n return element;\n index++;\n }\n return undefined;\n }\n}\nexports.findAsync = findAsync;\n//# sourceMappingURL=find-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.find = void 0;\nfunction find(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index))\n return element;\n index++;\n }\n return undefined;\n}\nexports.find = find;\n//# sourceMappingURL=find.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.firstAsync = void 0;\nasync function firstAsync(iterable) {\n for await (const element of iterable) {\n return element;\n }\n return undefined;\n}\nexports.firstAsync = firstAsync;\n//# sourceMappingURL=first-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.first = void 0;\nfunction first(iterable) {\n for (const element of iterable) {\n return element;\n }\n return undefined;\n}\nexports.first = first;\n//# sourceMappingURL=first.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.includesAsync = void 0;\nasync function includesAsync(iterable, value) {\n for await (const element of iterable) {\n if (element === value)\n return true;\n }\n return false;\n}\nexports.includesAsync = includesAsync;\n//# sourceMappingURL=includes-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.includes = void 0;\nfunction includes(iterable, value) {\n for (const element of iterable) {\n if (element === value)\n return true;\n }\n return false;\n}\nexports.includes = includes;\n//# sourceMappingURL=includes.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.matchAsync = void 0;\nasync function matchAsync(iterable, sequence) {\n const sequenceLength = sequence.length;\n let matchCount = 0;\n for await (const element of iterable) {\n if (element === sequence[matchCount])\n matchCount++;\n if (matchCount === sequenceLength)\n return true;\n }\n return false;\n}\nexports.matchAsync = matchAsync;\n//# sourceMappingURL=match-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.match = void 0;\nfunction match(iterable, sequence) {\n const sequenceLength = sequence.length;\n let matchCount = 0;\n for (const element of iterable) {\n if (element === sequence[matchCount])\n matchCount++;\n if (matchCount === sequenceLength)\n return true;\n }\n return false;\n}\nexports.match = match;\n//# sourceMappingURL=match.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reduceAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction reduceAsync(iterable, fn, initialValue) {\n if ((0, types_1.isUndefined)(initialValue)) {\n return reduceAsyncWithoutInitialValue(iterable, fn);\n }\n else {\n return reduceAsyncWithInitialValue(iterable, fn, initialValue);\n }\n}\nexports.reduceAsync = reduceAsync;\nfunction reduceAsyncWithInitialValue(iterable, fn, initialValue) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return reduceAsyncIterable(iterable);\n }\n else {\n return reduceIterable(iterable);\n }\n async function reduceIterable(iterable) {\n let result = initialValue, index = 0;\n for (const currentValue of iterable) {\n result = await fn(result, currentValue, index++);\n }\n return result;\n }\n async function reduceAsyncIterable(iterable) {\n let result = initialValue, index = 0;\n for await (const currentValue of iterable) {\n result = await fn(result, currentValue, index++);\n }\n return result;\n }\n}\nfunction reduceAsyncWithoutInitialValue(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return reduceAsyncIterable(iterable);\n }\n else {\n return reduceIterable(iterable);\n }\n async function reduceAsyncIterable(iterable) {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n let result = await readInitialValue(iterator);\n let index = 1;\n let value;\n while ({ value, done } = await iterator.next(), !done) {\n result = await fn(result, value, index++);\n }\n return result;\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n async function readInitialValue(iterator) {\n const result = await iterator.next();\n if (result.done) {\n done = true;\n throw new Error('Reduce of empty iterable with no initial value');\n }\n return result.value;\n }\n }\n async function reduceIterable(iterable) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let result = readInitialValue(iterator);\n let index = 1;\n let value;\n while ({ value, done } = iterator.next(), !done) {\n result = await fn(result, value, index++);\n }\n return result;\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n function readInitialValue(iterator) {\n const result = iterator.next();\n if (result.done) {\n done = true;\n throw new Error('Reduce of empty iterable with no initial value');\n }\n return result.value;\n }\n }\n}\n//# sourceMappingURL=reduce-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reduce = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction reduce(iterable, fn, initialValue) {\n if ((0, types_1.isUndefined)(initialValue)) {\n return reduceWithoutInitialValue(iterable, fn);\n }\n else {\n return reduceWithInitialValue(iterable, fn, initialValue);\n }\n}\nexports.reduce = reduce;\nfunction reduceWithInitialValue(iterable, fn, initialValue) {\n let result = initialValue, index = 0;\n for (const currentValue of iterable) {\n result = fn(result, currentValue, index++);\n }\n return result;\n}\nfunction reduceWithoutInitialValue(iterable, fn) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let result = readInitialValue(iterator);\n let index = 1;\n let value;\n while ({ value, done } = iterator.next(), !done) {\n result = fn(result, value, index++);\n }\n return result;\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n function readInitialValue(iterator) {\n const result = iterator.next();\n if (result.done) {\n done = true;\n throw new Error('Reduce of empty iterable with no initial value');\n }\n return result.value;\n }\n}\n//# sourceMappingURL=reduce.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.someAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction someAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return someAsyncIterable(iterable);\n }\n else {\n return someIterable(iterable);\n }\n async function someIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index))\n return true;\n index++;\n }\n return false;\n }\n async function someAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index))\n return true;\n index++;\n }\n return false;\n }\n}\nexports.someAsync = someAsync;\n//# sourceMappingURL=some-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.some = void 0;\nfunction some(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index))\n return true;\n index++;\n }\n return false;\n}\nexports.some = some;\n//# sourceMappingURL=some.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lastAsync = void 0;\nasync function lastAsync(iterable) {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n let value;\n let result;\n while ({ value, done } = await iterator.next(), !done) {\n result = value;\n }\n return result;\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n}\nexports.lastAsync = lastAsync;\n//# sourceMappingURL=last-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.last = void 0;\nfunction last(iterable) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let value;\n let result;\n while ({ value, done } = iterator.next(), !done) {\n result = value;\n }\n return result;\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n}\nexports.last = last;\n//# sourceMappingURL=last.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toArrayAsync = void 0;\nconst consume_1 = require(\"./consume\");\nfunction toArrayAsync(iterable) {\n return (0, consume_1.consume)(iterable, async (iterable) => {\n const result = [];\n for await (const element of iterable) {\n result.push(element);\n }\n return result;\n });\n}\nexports.toArrayAsync = toArrayAsync;\n//# sourceMappingURL=to-array-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toArray = void 0;\nconst consume_1 = require(\"./consume\");\nfunction toArray(iterable) {\n return (0, consume_1.consume)(iterable, iterable => Array.from(iterable));\n}\nexports.toArray = toArray;\n//# sourceMappingURL=to-array.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toSetAsync = void 0;\nconst consume_1 = require(\"./consume\");\nfunction toSetAsync(iterable) {\n return (0, consume_1.consume)(iterable, async (iterable) => {\n const result = new Set();\n for await (const element of iterable) {\n result.add(element);\n }\n return result;\n });\n}\nexports.toSetAsync = toSetAsync;\n//# sourceMappingURL=to-set-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toSet = void 0;\nconst consume_1 = require(\"./consume\");\nfunction toSet(iterable) {\n return (0, consume_1.consume)(iterable, iterable => new Set(iterable));\n}\nexports.toSet = toSet;\n//# sourceMappingURL=to-set.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./consume\"), exports);\n__exportStar(require(\"./each-async\"), exports);\n__exportStar(require(\"./each\"), exports);\n__exportStar(require(\"./every-async\"), exports);\n__exportStar(require(\"./every\"), exports);\n__exportStar(require(\"./find-async\"), exports);\n__exportStar(require(\"./find\"), exports);\n__exportStar(require(\"./first-async\"), exports);\n__exportStar(require(\"./first\"), exports);\n__exportStar(require(\"./includes-async\"), exports);\n__exportStar(require(\"./includes\"), exports);\n__exportStar(require(\"./match-async\"), exports);\n__exportStar(require(\"./match\"), exports);\n__exportStar(require(\"./reduce-async\"), exports);\n__exportStar(require(\"./reduce\"), exports);\n__exportStar(require(\"./some-async\"), exports);\n__exportStar(require(\"./some\"), exports);\n__exportStar(require(\"./last-async\"), exports);\n__exportStar(require(\"./last\"), exports);\n__exportStar(require(\"./to-array-async\"), exports);\n__exportStar(require(\"./to-array\"), exports);\n__exportStar(require(\"./to-set-async\"), exports);\n__exportStar(require(\"./to-set\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./middleware\"), exports);\n__exportStar(require(\"./output\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.traverseErrorPrototypeChain = void 0;\nfunction* traverseErrorPrototypeChain(err) {\n let current = err;\n while ((current = Object.getPrototypeOf(current))) {\n yield current;\n if (current === Error.prototype)\n break;\n }\n}\nexports.traverseErrorPrototypeChain = traverseErrorPrototypeChain;\n//# sourceMappingURL=traverse-error-prototype-chain.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getErrorNames = void 0;\nconst types_1 = require(\"@blackglory/types\");\nconst traverse_error_prototype_chain_1 = require(\"./traverse-error-prototype-chain\");\nfunction* getErrorNames(err) {\n var _a;\n if ((0, types_1.isError)(err)) {\n for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {\n if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {\n yield prototype.constructor.name;\n }\n }\n }\n else {\n yield err.name;\n yield* err.ancestors;\n }\n}\nexports.getErrorNames = getErrorNames;\n//# sourceMappingURL=get-error-names.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isSerializableError = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction isSerializableError(val) {\n return (0, types_1.isObject)(val)\n && (0, types_1.isString)(val.name)\n && (0, types_1.isString)(val.message)\n && ((0, types_1.isString)(val.stack) || (0, types_1.isNull)(val.stack))\n && ((0, types_1.isArray)(val.ancestors) && val.ancestors.every(types_1.isString));\n}\nexports.isSerializableError = isSerializableError;\n//# sourceMappingURL=serializable-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CustomError = void 0;\nconst iterable_operator_1 = require(\"iterable-operator\");\nconst get_error_names_1 = require(\"./get-error-names\");\nconst types_1 = require(\"@blackglory/types\");\nconst serializable_error_1 = require(\"./serializable-error\");\nclass CustomError extends Error {\n get name() {\n var _a, _b;\n return (_b = (_a = (0, iterable_operator_1.first)((0, get_error_names_1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';\n }\n static [Symbol.hasInstance](instance) {\n var _a;\n if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {\n const reversedClassNames = [\n (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,\n ...(0, get_error_names_1.getErrorNames)(this.prototype)\n ].reverse();\n const reversedInstanceNames = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(instance)).reverse();\n return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);\n }\n else {\n return false;\n }\n }\n}\nexports.CustomError = CustomError;\n//# sourceMappingURL=custom-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AssertionError = void 0;\nconst custom_error_1 = require(\"./custom-error\");\nclass AssertionError extends custom_error_1.CustomError {\n}\nexports.AssertionError = AssertionError;\n//# sourceMappingURL=assertion-error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.normalize = void 0;\nconst get_error_names_1 = require(\"./get-error-names\");\nconst iterable_operator_1 = require(\"iterable-operator\");\nfunction normalize(err) {\n var _a;\n const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));\n return {\n name,\n ancestors,\n message: err.message,\n stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null\n };\n}\nexports.normalize = normalize;\n//# sourceMappingURL=normalize.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.pass = void 0;\nfunction pass() { }\nexports.pass = pass;\n//# sourceMappingURL=pass.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./pass\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hydrate = void 0;\nconst pass_1 = require(\"@blackglory/pass\");\nfunction hydrate(err) {\n var _a;\n const errorNames = [err.name, ...err.ancestors]\n .slice(0, -1)\n .reverse();\n let errorConstructor = Error;\n for (const name of errorNames) {\n errorConstructor = createChildErrorConstructor(errorConstructor, name);\n }\n const result = new errorConstructor();\n result.name = err.name;\n result.message = err.message;\n result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;\n return result;\n}\nexports.hydrate = hydrate;\nfunction createChildErrorConstructor(parentErrorConstructor, name) {\n const constructor = function () { (0, pass_1.pass)(); };\n constructor.prototype = Object.create(parentErrorConstructor.prototype);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'name', { value: name });\n return constructor;\n}\n//# sourceMappingURL=hydrate.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assert = void 0;\nconst assertion_error_1 = require(\"./assertion-error\");\nfunction assert(condition, message) {\n if (!condition)\n throw new assertion_error_1.AssertionError(message);\n}\nexports.assert = assert;\n//# sourceMappingURL=assert.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./custom-error\"), exports);\n__exportStar(require(\"./assertion-error\"), exports);\n__exportStar(require(\"./serializable-error\"), exports);\n__exportStar(require(\"./normalize\"), exports);\n__exportStar(require(\"./hydrate\"), exports);\n__exportStar(require(\"./assert\"), exports);\n__exportStar(require(\"./get-error-names\"), exports);\n__exportStar(require(\"./traverse-error-prototype-chain\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.go = void 0;\nfunction go(fn) {\n return fn();\n}\nexports.go = go;\n//# sourceMappingURL=go.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./go\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.chunkAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction chunkAsync(iterable, size) {\n (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');\n (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');\n return (0, go_1.go)(async function* () {\n let buffer = [];\n for await (const element of iterable) {\n buffer.push(element);\n if (buffer.length >= size) {\n yield buffer;\n buffer = [];\n }\n }\n if (buffer.length)\n yield buffer;\n });\n}\nexports.chunkAsync = chunkAsync;\n//# sourceMappingURL=chunk-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntEmptyArray = exports.isEmptyArray = exports.isntArray = exports.isArray = void 0;\nfunction isArray(val) {\n return Array.isArray(val);\n}\nexports.isArray = isArray;\nfunction isntArray(val) {\n return !isArray(val);\n}\nexports.isntArray = isntArray;\nfunction isEmptyArray(val) {\n return val.length === 0;\n}\nexports.isEmptyArray = isEmptyArray;\nfunction isntEmptyArray(val) {\n return val.length !== 0;\n}\nexports.isntEmptyArray = isntEmptyArray;\n//# sourceMappingURL=array.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntNull = exports.isNull = void 0;\nfunction isNull(val) {\n return val === null;\n}\nexports.isNull = isNull;\nfunction isntNull(val) {\n return !isNull(val);\n}\nexports.isntNull = isntNull;\n//# sourceMappingURL=null.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntUndefined = exports.isUndefined = void 0;\nfunction isUndefined(val) {\n return val === undefined;\n}\nexports.isUndefined = isUndefined;\nfunction isntUndefined(val) {\n return !isUndefined(val);\n}\nexports.isntUndefined = isntUndefined;\n//# sourceMappingURL=undefined.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntAsyncIterable = exports.isAsyncIterable = void 0;\nconst null_1 = require(\"./null\");\nconst undefined_1 = require(\"./undefined\");\nfunction isAsyncIterable(val) {\n return (0, null_1.isntNull)(val)\n && (0, undefined_1.isntUndefined)(val)\n && typeof val[Symbol.asyncIterator] === 'function';\n}\nexports.isAsyncIterable = isAsyncIterable;\nfunction isntAsyncIterable(val) {\n return !isAsyncIterable(val);\n}\nexports.isntAsyncIterable = isntAsyncIterable;\n//# sourceMappingURL=async-iterable.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntBigInt = exports.isBigInt = void 0;\nfunction isBigInt(val) {\n return typeof val === 'bigint';\n}\nexports.isBigInt = isBigInt;\nfunction isntBigInt(val) {\n return !isBigInt(val);\n}\nexports.isntBigInt = isntBigInt;\n//# sourceMappingURL=bigint.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntBoolean = exports.isBoolean = void 0;\nfunction isBoolean(val) {\n return typeof val === 'boolean';\n}\nexports.isBoolean = isBoolean;\nfunction isntBoolean(val) {\n return !isBoolean(val);\n}\nexports.isntBoolean = isntBoolean;\n//# sourceMappingURL=boolean.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntString = exports.isString = void 0;\nfunction isString(val) {\n return typeof val === 'string';\n}\nexports.isString = isString;\nfunction isntString(val) {\n return !isString(val);\n}\nexports.isntString = isntString;\n//# sourceMappingURL=string.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntChar = exports.isChar = void 0;\nconst string_1 = require(\"./string\");\nfunction isChar(val) {\n return (0, string_1.isString)(val)\n && val.length === 1;\n}\nexports.isChar = isChar;\nfunction isntChar(val) {\n return !isChar(val);\n}\nexports.isntChar = isntChar;\n//# sourceMappingURL=char.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntDate = exports.isDate = void 0;\nfunction isDate(val) {\n return val instanceof Date;\n}\nexports.isDate = isDate;\nfunction isntDate(val) {\n return !isDate(val);\n}\nexports.isntDate = isntDate;\n//# sourceMappingURL=date.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.inEnum = void 0;\nfunction inEnum(val, _enum) {\n return Object.values(_enum).includes(val);\n}\nexports.inEnum = inEnum;\n//# sourceMappingURL=enum.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntError = exports.isError = void 0;\nfunction isError(val) {\n return val instanceof Error;\n}\nexports.isError = isError;\nfunction isntError(val) {\n return !isError(val);\n}\nexports.isntError = isntError;\n//# sourceMappingURL=error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntFalsy = exports.isFalsy = void 0;\nfunction isFalsy(val) {\n return !val;\n}\nexports.isFalsy = isFalsy;\nfunction isntFalsy(val) {\n return !isFalsy(val);\n}\nexports.isntFalsy = isntFalsy;\n//# sourceMappingURL=falsy.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntFunction = exports.isFunction = void 0;\nfunction isFunction(val) {\n return typeof val === 'function';\n}\nexports.isFunction = isFunction;\nfunction isntFunction(val) {\n return !isFunction(val);\n}\nexports.isntFunction = isntFunction;\n//# sourceMappingURL=function.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntIterable = exports.isIterable = void 0;\nconst null_1 = require(\"./null\");\nconst undefined_1 = require(\"./undefined\");\nfunction isIterable(val) {\n return (0, null_1.isntNull)(val)\n && (0, undefined_1.isntUndefined)(val)\n && typeof val[Symbol.iterator] === 'function';\n}\nexports.isIterable = isIterable;\nfunction isntIterable(val) {\n return !isIterable(val);\n}\nexports.isntIterable = isntIterable;\n//# sourceMappingURL=iterable.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntEmptyObject = exports.isEmptyObject = exports.isntPlainObject = exports.isPlainObject = exports.isntObject = exports.isObject = void 0;\nconst lodash_isplainobject_1 = __importDefault(require(\"lodash.isplainobject\"));\nfunction isObject(val) {\n return val !== null\n && typeof val === 'object';\n}\nexports.isObject = isObject;\nfunction isntObject(val) {\n return !isObject(val);\n}\nexports.isntObject = isntObject;\nfunction isPlainObject(val) {\n return (0, lodash_isplainobject_1.default)(val);\n}\nexports.isPlainObject = isPlainObject;\nfunction isntPlainObject(val) {\n return !isPlainObject(val);\n}\nexports.isntPlainObject = isntPlainObject;\nfunction isEmptyObject(val) {\n return Object.keys(val).length === 0;\n}\nexports.isEmptyObject = isEmptyObject;\nfunction isntEmptyObject(val) {\n return Object.keys(val).length !== 0;\n}\nexports.isntEmptyObject = isntEmptyObject;\n//# sourceMappingURL=object.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntNumber = exports.isNumber = void 0;\nfunction isNumber(val) {\n return typeof val === 'number';\n}\nexports.isNumber = isNumber;\nfunction isntNumber(val) {\n return !isNumber(val);\n}\nexports.isntNumber = isntNumber;\n//# sourceMappingURL=number.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntJsonRpcError = exports.isJsonRpcError = exports.isntJsonRpcSuccess = exports.isJsonRpcSuccess = exports.isntJsonRpcRequest = exports.isJsonRpcRequest = exports.isntJsonRpcNotification = exports.isJsonRpcNotification = void 0;\nconst array_1 = require(\"./array\");\nconst object_1 = require(\"./object\");\nconst string_1 = require(\"./string\");\nconst number_1 = require(\"./number\");\nconst undefined_1 = require(\"./undefined\");\nfunction isJsonRpcId(val) {\n return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);\n}\nfunction isJsonRpcParams(val) {\n return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);\n}\nfunction isJsonRpcNotification(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, string_1.isString)(val.jsonrpc)\n && (0, string_1.isString)(val.method)\n && (0, undefined_1.isUndefined)(val.id)\n && isJsonRpcParams(val.params);\n}\nexports.isJsonRpcNotification = isJsonRpcNotification;\nfunction isntJsonRpcNotification(val) {\n return !isJsonRpcNotification(val);\n}\nexports.isntJsonRpcNotification = isntJsonRpcNotification;\nfunction isJsonRpcRequest(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, string_1.isString)(val.jsonrpc)\n && (0, string_1.isString)(val.method)\n && isJsonRpcId(val.id)\n && isJsonRpcParams(val.params);\n}\nexports.isJsonRpcRequest = isJsonRpcRequest;\nfunction isntJsonRpcRequest(val) {\n return !isJsonRpcRequest(val);\n}\nexports.isntJsonRpcRequest = isntJsonRpcRequest;\nfunction isJsonRpcSuccess(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, string_1.isString)(val.jsonrpc)\n && (0, string_1.isString)(val.id)\n && 'result' in val;\n}\nexports.isJsonRpcSuccess = isJsonRpcSuccess;\nfunction isntJsonRpcSuccess(val) {\n return !isJsonRpcSuccess(val);\n}\nexports.isntJsonRpcSuccess = isntJsonRpcSuccess;\nfunction isJsonRpcError(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, string_1.isString)(val.jsonrpc)\n && isJsonRpcId(val.id)\n && isJsonRpcErrorObject(val.error);\n}\nexports.isJsonRpcError = isJsonRpcError;\nfunction isntJsonRpcError(val) {\n return !isJsonRpcError(val);\n}\nexports.isntJsonRpcError = isntJsonRpcError;\nfunction isJsonRpcErrorObject(val) {\n return (0, object_1.isPlainObject)(val)\n && (0, number_1.isNumber)(val.code)\n && (0, string_1.isString)(val.message)\n && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));\n}\n//# sourceMappingURL=json-rpc.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntJson = exports.isJson = void 0;\nfunction isJson(val) {\n try {\n JSON.stringify(val);\n return true;\n }\n catch (_a) {\n return false;\n }\n}\nexports.isJson = isJson;\nfunction isntJson(val) {\n return !isntJson(val);\n}\nexports.isntJson = isntJson;\n//# sourceMappingURL=json.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isAbsoluteURL = void 0;\nfunction isAbsoluteURL(str) {\n try {\n new URL(str);\n return true;\n }\n catch (_a) {\n return false;\n }\n}\nexports.isAbsoluteURL = isAbsoluteURL;\n//# sourceMappingURL=url.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./array\"), exports);\n__exportStar(require(\"./async-iterable\"), exports);\n__exportStar(require(\"./bigint\"), exports);\n__exportStar(require(\"./boolean\"), exports);\n__exportStar(require(\"./char\"), exports);\n__exportStar(require(\"./date\"), exports);\n__exportStar(require(\"./enum\"), exports);\n__exportStar(require(\"./error\"), exports);\n__exportStar(require(\"./falsy\"), exports);\n__exportStar(require(\"./function\"), exports);\n__exportStar(require(\"./iterable\"), exports);\n__exportStar(require(\"./json-rpc\"), exports);\n__exportStar(require(\"./json\"), exports);\n__exportStar(require(\"./null\"), exports);\n__exportStar(require(\"./number\"), exports);\n__exportStar(require(\"./object\"), exports);\n__exportStar(require(\"./string\"), exports);\n__exportStar(require(\"./undefined\"), exports);\n__exportStar(require(\"./url\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.chunkByAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction chunkByAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return chunkByAsyncIterable(iterable);\n }\n else {\n return chunkByIterable(iterable);\n }\n async function* chunkByAsyncIterable(iterable) {\n let buffer = [];\n let index = 0;\n for await (const element of iterable) {\n buffer.push(element);\n if (await predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n index++;\n }\n if (buffer.length)\n yield buffer;\n }\n async function* chunkByIterable(iterable) {\n let buffer = [];\n let index = 0;\n for (const element of iterable) {\n buffer.push(element);\n if (await predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n index++;\n }\n if (buffer.length)\n yield buffer;\n }\n}\nexports.chunkByAsync = chunkByAsync;\n//# sourceMappingURL=chunk-by-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.chunkBy = void 0;\nfunction* chunkBy(iterable, predicate) {\n let buffer = [];\n let index = 0;\n for (const element of iterable) {\n buffer.push(element);\n if (predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n index++;\n }\n if (buffer.length)\n yield buffer;\n}\nexports.chunkBy = chunkBy;\n//# sourceMappingURL=chunk-by.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.chunk = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction chunk(iterable, size) {\n (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');\n (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');\n return (0, go_1.go)(function* () {\n let buffer = [];\n for (const element of iterable) {\n buffer.push(element);\n if (buffer.length >= size) {\n yield buffer;\n buffer = [];\n }\n }\n if (buffer.length)\n yield buffer;\n });\n}\nexports.chunk = chunk;\n//# sourceMappingURL=chunk.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.concatAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nconst go_1 = require(\"@blackglory/go\");\nfunction concatAsync(iterable, ...otherIterables) {\n return (0, go_1.go)(async function* () {\n for (const iter of [iterable, ...otherIterables]) {\n if ((0, types_1.isAsyncIterable)(iter)) {\n for await (const element of iter) {\n yield element;\n }\n }\n else {\n for (const element of iter) {\n yield element;\n }\n }\n }\n });\n}\nexports.concatAsync = concatAsync;\n//# sourceMappingURL=concat-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.concat = void 0;\nconst go_1 = require(\"@blackglory/go\");\nfunction concat(iterable, ...otherIterables) {\n return (0, go_1.go)(function* () {\n for (const iter of [iterable, ...otherIterables]) {\n yield* iter;\n }\n });\n}\nexports.concat = concat;\n//# sourceMappingURL=concat.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.copyIterable = exports.copyAsyncIterable = void 0;\nasync function* copyAsyncIterable(iterable) {\n for await (const element of iterable) {\n yield element;\n }\n}\nexports.copyAsyncIterable = copyAsyncIterable;\nfunction* copyIterable(iterable) {\n for (const element of iterable) {\n yield element;\n }\n}\nexports.copyIterable = copyIterable;\n//# sourceMappingURL=utils.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst utils_1 = require(\"../utils\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction dropAsync(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n if (count === 0)\n return (0, utils_1.copyAsyncIterable)(iterable);\n return (0, go_1.go)(async function* () {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n let value;\n while ({ value, done } = await iterator.next(), !done) {\n if (count <= 0)\n break;\n count--;\n }\n while (!done) {\n yield value;\n ({ value, done } = await iterator.next());\n }\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n });\n}\nexports.dropAsync = dropAsync;\n//# sourceMappingURL=drop-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropRightAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst utils_1 = require(\"../utils\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction dropRightAsync(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n if (count === 0)\n return (0, utils_1.copyAsyncIterable)(iterable);\n return (0, go_1.go)(async function* () {\n const arr = await toArrayAsync(iterable);\n const result = arr.slice(0, -count);\n for (const value of result) {\n yield value;\n }\n });\n}\nexports.dropRightAsync = dropRightAsync;\nasync function toArrayAsync(iterable) {\n const result = [];\n for await (const element of iterable) {\n result.push(element);\n }\n return result;\n}\n//# sourceMappingURL=drop-right-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropRight = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst utils_1 = require(\"../utils\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction dropRight(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n if (count === 0)\n return (0, utils_1.copyIterable)(iterable);\n return (0, go_1.go)(function* () {\n const arr = Array.from(iterable);\n yield* arr.slice(0, -count);\n });\n}\nexports.dropRight = dropRight;\n//# sourceMappingURL=drop-right.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropUntilAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction dropUntilAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return dropUntilAsyncIterable(iterable);\n }\n else {\n return dropUntilIterable(iterable);\n }\n async function* dropUntilAsyncIterable(iterable) {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n let index = 0;\n let value;\n while ({ value, done } = await iterator.next(), !done) {\n if (await predicate(value, index++))\n break;\n }\n while (!done) {\n yield value;\n ({ value, done } = await iterator.next());\n }\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n }\n async function* dropUntilIterable(iterable) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let index = 0;\n let value;\n while ({ value, done } = iterator.next(), !done) {\n if (await predicate(value, index++))\n break;\n }\n while (!done) {\n yield value;\n ({ value, done } = iterator.next());\n }\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n }\n}\nexports.dropUntilAsync = dropUntilAsync;\n//# sourceMappingURL=drop-until-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.dropUntil = void 0;\nfunction* dropUntil(iterable, predicate) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let index = 0;\n let value;\n while ({ value, done } = iterator.next(), !done) {\n if (predicate(value, index++))\n break;\n }\n while (!done) {\n yield value;\n ({ value, done } = iterator.next());\n }\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n}\nexports.dropUntil = dropUntil;\n//# sourceMappingURL=drop-until.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.drop = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst utils_1 = require(\"../utils\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction drop(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n if (count === 0)\n return (0, utils_1.copyIterable)(iterable);\n return (0, go_1.go)(function* () {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let value;\n while ({ value, done } = iterator.next(), !done) {\n if (count <= 0)\n break;\n count--;\n }\n while (!done) {\n yield value;\n ({ value, done } = iterator.next());\n }\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n });\n}\nexports.drop = drop;\n//# sourceMappingURL=drop.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.filterAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction filterAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return filterAsyncIterable(iterable);\n }\n else {\n return filterIterable(iterable);\n }\n async function* filterAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index))\n yield element;\n index++;\n }\n }\n async function* filterIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index))\n yield element;\n index++;\n }\n }\n}\nexports.filterAsync = filterAsync;\n//# sourceMappingURL=filter-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.filter = void 0;\nfunction* filter(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index))\n yield element;\n index++;\n }\n}\nexports.filter = filter;\n//# sourceMappingURL=filter.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenByAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction flattenByAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return flattenByAsyncIterable(iterable);\n }\n else {\n return flattenByIterable(iterable);\n }\n async function* flattenByAsyncIterable(iterable) {\n const level = 1;\n for await (const element of iterable) {\n if (isFiniteIterable(element) && await predicate(element, level)) {\n yield* flatten(element, level + 1);\n }\n else {\n yield element;\n }\n }\n }\n function flattenByIterable(iterable) {\n return flatten(iterable, 1);\n }\n async function* flatten(iterable, level) {\n for (const element of iterable) {\n if (isFiniteIterable(element) && await predicate(element, level)) {\n yield* flatten(element, level + 1);\n }\n else {\n yield element;\n }\n }\n }\n}\nexports.flattenByAsync = flattenByAsync;\nfunction isFiniteIterable(val) {\n return (0, types_1.isIterable)(val) && (0, types_1.isntChar)(val);\n}\n//# sourceMappingURL=flatten-by-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenDeepAsync = void 0;\nconst flatten_by_async_1 = require(\"./flatten-by-async\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction flattenDeepAsync(iterable, depth = Infinity) {\n (0, errors_1.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');\n (0, errors_1.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');\n return (0, flatten_by_async_1.flattenByAsync)(iterable, (_, level) => level <= depth);\n}\nexports.flattenDeepAsync = flattenDeepAsync;\n//# sourceMappingURL=flatten-deep-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenAsync = void 0;\nconst flatten_deep_async_1 = require(\"./flatten-deep-async\");\nfunction flattenAsync(iterable) {\n return (0, flatten_deep_async_1.flattenDeepAsync)(iterable, 1);\n}\nexports.flattenAsync = flattenAsync;\n//# sourceMappingURL=flatten-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenBy = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction flattenBy(iterable, predicate) {\n return flatten(iterable, 1);\n function* flatten(iterable, level) {\n for (const element of iterable) {\n if (isFiniteIterable(element) && predicate(element, level)) {\n yield* flatten(element, level + 1);\n }\n else {\n yield element;\n }\n }\n }\n}\nexports.flattenBy = flattenBy;\nfunction isFiniteIterable(val) {\n return (0, types_1.isIterable)(val) && (0, types_1.isntChar)(val);\n}\n//# sourceMappingURL=flatten-by.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flattenDeep = void 0;\nconst flatten_by_1 = require(\"./flatten-by\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction flattenDeep(iterable, depth = Infinity) {\n (0, errors_1.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');\n (0, errors_1.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');\n return (0, flatten_by_1.flattenBy)(iterable, (_, level) => level <= depth);\n}\nexports.flattenDeep = flattenDeep;\n//# sourceMappingURL=flatten-deep.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.flatten = void 0;\nconst flatten_deep_1 = require(\"./flatten-deep\");\nfunction flatten(iterable) {\n return (0, flatten_deep_1.flattenDeep)(iterable, 1);\n}\nexports.flatten = flatten;\n//# sourceMappingURL=flatten.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.mapAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction mapAsync(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return mapAsyncIterable(iterable);\n }\n else {\n return mapIterable(iterable);\n }\n async function* mapAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n yield await fn(element, index);\n index++;\n }\n }\n async function* mapIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n yield await fn(element, index);\n index++;\n }\n }\n}\nexports.mapAsync = mapAsync;\n//# sourceMappingURL=map-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.map = void 0;\nfunction* map(iterable, fn) {\n let index = 0;\n for (const element of iterable) {\n yield fn(element, index);\n index++;\n }\n}\nexports.map = map;\n//# sourceMappingURL=map.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.repeatAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction repeatAsync(iterable, times) {\n (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');\n (0, errors_1.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');\n if (times === Infinity)\n warnInfiniteLoop();\n return (0, go_1.go)(async function* () {\n const cache = [];\n if (times > 0) {\n for await (const element of iterable) {\n yield element;\n cache.push(element);\n }\n times--;\n }\n while (times > 0) {\n yield* cache;\n times--;\n }\n });\n}\nexports.repeatAsync = repeatAsync;\nfunction warnInfiniteLoop() {\n if (isProduction())\n return;\n console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');\n}\nfunction isProduction() {\n return process.env.NODE_ENV === 'production';\n}\n//# sourceMappingURL=repeat-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.repeat = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction repeat(iterable, times) {\n (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');\n (0, errors_1.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');\n if (times === Infinity)\n warnInfiniteLoop();\n return (0, go_1.go)(function* () {\n const cache = [];\n if (times > 0) {\n for (const element of iterable) {\n yield element;\n cache.push(element);\n }\n times--;\n }\n while (times > 0) {\n yield* cache;\n times--;\n }\n });\n}\nexports.repeat = repeat;\nfunction warnInfiniteLoop() {\n if (isProduction())\n return;\n console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');\n}\nfunction isProduction() {\n return process.env.NODE_ENV === 'production';\n}\n//# sourceMappingURL=repeat.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sliceAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction sliceAsync(iterable, start, end = Infinity) {\n (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');\n (0, errors_1.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');\n (0, errors_1.assert)(Number.isInteger(end), 'The parameter end must be an integer');\n (0, errors_1.assert)(end >= start, 'The parameter end must be greater than or equal to start');\n return (0, go_1.go)(async function* () {\n let index = 0;\n for await (const element of iterable) {\n if (index >= end)\n break;\n if (index >= start)\n yield element;\n index++;\n }\n });\n}\nexports.sliceAsync = sliceAsync;\n//# sourceMappingURL=slice-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.slice = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction slice(iterable, start, end = Infinity) {\n (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');\n (0, errors_1.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');\n (0, errors_1.assert)(Number.isInteger(end), 'The parameter end must be an integer');\n (0, errors_1.assert)(end >= start, 'The parameter end must be greater than or equal to start');\n return (0, go_1.go)(function* () {\n let index = 0;\n for (const element of iterable) {\n if (index >= end)\n break;\n if (index >= start)\n yield element;\n index++;\n }\n });\n}\nexports.slice = slice;\n//# sourceMappingURL=slice.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.splitAsync = void 0;\nasync function* splitAsync(iterable, separator) {\n let buffer = [];\n for await (const element of iterable) {\n if (element === separator) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n }\n yield buffer;\n}\nexports.splitAsync = splitAsync;\n//# sourceMappingURL=split-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.splitByAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction splitByAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return splitByAsyncIterable(iterable);\n }\n else {\n return splitByIterable(iterable);\n }\n async function* splitByIterable(iterable) {\n let buffer = [];\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n index++;\n }\n yield buffer;\n }\n async function* splitByAsyncIterable(iterable) {\n let buffer = [];\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n index++;\n }\n yield buffer;\n }\n}\nexports.splitByAsync = splitByAsync;\n//# sourceMappingURL=split-by-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.splitBy = void 0;\nfunction* splitBy(iterable, predicate) {\n let buffer = [];\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index)) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n index++;\n }\n yield buffer;\n}\nexports.splitBy = splitBy;\n//# sourceMappingURL=split-by.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.split = void 0;\nfunction* split(iterable, separator) {\n let buffer = [];\n for (const element of iterable) {\n if (element === separator) {\n yield buffer;\n buffer = [];\n }\n else {\n buffer.push(element);\n }\n }\n yield buffer;\n}\nexports.split = split;\n//# sourceMappingURL=split.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction takeAsync(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n return (0, go_1.go)(async function* () {\n if (count === 0)\n return;\n for await (const element of iterable) {\n yield element;\n count--;\n if (count === 0)\n break;\n }\n });\n}\nexports.takeAsync = takeAsync;\n//# sourceMappingURL=take-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeRightAsync = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction takeRightAsync(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n return (0, go_1.go)(async function* () {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n const buffer = [];\n let value;\n while ({ value, done } = await iterator.next(), !done) {\n buffer.push(value);\n if (buffer.length > count)\n buffer.shift();\n }\n yield* buffer;\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n });\n}\nexports.takeRightAsync = takeRightAsync;\n//# sourceMappingURL=take-right-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeRight = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction takeRight(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n return (0, go_1.go)(function* () {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n const buffer = [];\n let value;\n while ({ value, done } = iterator.next(), !done) {\n buffer.push(value);\n if (buffer.length > count)\n buffer.shift();\n }\n yield* buffer;\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n });\n}\nexports.takeRight = takeRight;\n//# sourceMappingURL=take-right.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeUntilAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction takeUntilAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return takeUntilAsyncIterable(iterable);\n }\n else {\n return takeUntilIterable(iterable);\n }\n async function* takeUntilAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index))\n break;\n yield element;\n index++;\n }\n }\n async function* takeUntilIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index))\n break;\n yield element;\n index++;\n }\n }\n}\nexports.takeUntilAsync = takeUntilAsync;\n//# sourceMappingURL=take-until-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.takeUntil = void 0;\nfunction* takeUntil(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index))\n break;\n yield element;\n index++;\n }\n}\nexports.takeUntil = takeUntil;\n//# sourceMappingURL=take-until.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.take = void 0;\nconst go_1 = require(\"@blackglory/go\");\nconst errors_1 = require(\"@blackglory/errors\");\nfunction take(iterable, count) {\n (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');\n (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');\n return (0, go_1.go)(function* () {\n if (count === 0)\n return;\n for (const element of iterable) {\n yield element;\n count--;\n if (count === 0)\n break;\n }\n });\n}\nexports.take = take;\n//# sourceMappingURL=take.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.tapAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction tapAsync(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return tapAsyncIterable(iterable);\n }\n else {\n return tapIterable(iterable);\n }\n async function* tapIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n await fn(element, index);\n yield element;\n index++;\n }\n }\n async function* tapAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n await fn(element, index);\n yield element;\n index++;\n }\n }\n}\nexports.tapAsync = tapAsync;\n//# sourceMappingURL=tap-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.tap = void 0;\nfunction* tap(iterable, fn) {\n let index = 0;\n for (const element of iterable) {\n fn(element, index);\n yield element;\n index++;\n }\n}\nexports.tap = tap;\n//# sourceMappingURL=tap.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toAsyncIterable = void 0;\nasync function* toAsyncIterable(iterable) {\n for (const value of iterable) {\n yield value;\n }\n}\nexports.toAsyncIterable = toAsyncIterable;\n//# sourceMappingURL=to-async-iterable.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.transformAsync = void 0;\nasync function* transformAsync(iterable, transformer) {\n yield* transformer(iterable);\n}\nexports.transformAsync = transformAsync;\n//# sourceMappingURL=transform-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.transform = void 0;\nfunction* transform(iterable, transformer) {\n yield* transformer(iterable);\n}\nexports.transform = transform;\n//# sourceMappingURL=transform.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uniqAsync = void 0;\nasync function* uniqAsync(iterable) {\n const bucket = new Set();\n for await (const element of iterable) {\n if (!bucket.has(element)) {\n yield element;\n bucket.add(element);\n }\n }\n}\nexports.uniqAsync = uniqAsync;\n//# sourceMappingURL=uniq-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uniqByAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction uniqByAsync(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return uniqByAsyncIterable(iterable);\n }\n else {\n return uniqByIterable(iterable);\n }\n async function* uniqByAsyncIterable(iterable) {\n const bucket = new Set();\n let index = 0;\n for await (const element of iterable) {\n const result = await fn(element, index);\n if (!bucket.has(result)) {\n yield element;\n bucket.add(result);\n }\n index++;\n }\n }\n async function* uniqByIterable(iterable) {\n const bucket = new Set();\n let index = 0;\n for (const element of iterable) {\n const result = await fn(element, index);\n if (!bucket.has(result)) {\n yield element;\n bucket.add(result);\n }\n index++;\n }\n }\n}\nexports.uniqByAsync = uniqByAsync;\n//# sourceMappingURL=uniq-by-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uniqBy = void 0;\nfunction* uniqBy(iterable, fn) {\n const bucket = new Set();\n let index = 0;\n for (const element of iterable) {\n const result = fn(element, index);\n if (!bucket.has(result)) {\n yield element;\n bucket.add(result);\n }\n index++;\n }\n}\nexports.uniqBy = uniqBy;\n//# sourceMappingURL=uniq-by.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uniq = void 0;\nfunction* uniq(iterable) {\n const bucket = new Set();\n for (const element of iterable) {\n if (!bucket.has(element)) {\n yield element;\n bucket.add(element);\n }\n }\n}\nexports.uniq = uniq;\n//# sourceMappingURL=uniq.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.zipAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nvar Kind;\n(function (Kind) {\n Kind[Kind[\"Sync\"] = 0] = \"Sync\";\n Kind[Kind[\"Async\"] = 1] = \"Async\";\n})(Kind || (Kind = {}));\nfunction zipAsync(iterable, ...otherIterables) {\n return zipWithSize(iterable, ...otherIterables);\n}\nexports.zipAsync = zipAsync;\nasync function* zipWithSize(...iterables) {\n var _a, _b, _c, _d;\n const length = iterables.length;\n const iterators = iterables.map(iterable => {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return [Kind.Async, iterable[Symbol.asyncIterator]()];\n }\n else {\n return [Kind.Sync, iterable[Symbol.iterator]()];\n }\n });\n const dones = iterators.map(() => false);\n try {\n while (true) {\n const result = new Array(length);\n for (let i = 0; i < length; i++) {\n const [kind, iterator] = iterators[i];\n let temp;\n if (kind === Kind.Async) {\n temp = await iterator.next();\n }\n else {\n temp = iterator.next();\n }\n if (temp.done) {\n dones[i] = true;\n return;\n }\n result[i] = temp.value;\n }\n yield result;\n }\n }\n finally {\n const undoneIterators = iterators.filter((_, i) => !dones[i]);\n for (const [kind, iterator] of undoneIterators) {\n if (kind === Kind.Async) {\n await ((_b = (_a = iterator).return) === null || _b === void 0 ? void 0 : _b.call(_a));\n }\n else {\n (_d = (_c = iterator).return) === null || _d === void 0 ? void 0 : _d.call(_c);\n }\n }\n }\n}\n//# sourceMappingURL=zip-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.zip = void 0;\nfunction zip(iterable, ...otherIterables) {\n return zipWithSize(iterable, ...otherIterables);\n}\nexports.zip = zip;\nfunction* zipWithSize(...iterables) {\n const length = iterables.length;\n const iterators = iterables.map(iterable => iterable[Symbol.iterator]());\n const dones = iterators.map(() => false);\n try {\n while (true) {\n const result = new Array(length);\n for (let i = 0; i < length; i++) {\n const { value, done } = iterators[i].next();\n if (done) {\n dones[i] = true;\n return;\n }\n result[i] = value;\n }\n yield result;\n }\n }\n finally {\n const undoneIterators = iterators.filter((_, i) => !dones[i]);\n undoneIterators.forEach(x => { var _a; return (_a = x.return) === null || _a === void 0 ? void 0 : _a.call(x); });\n }\n}\n//# sourceMappingURL=zip.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./chunk-async\"), exports);\n__exportStar(require(\"./chunk-by-async\"), exports);\n__exportStar(require(\"./chunk-by\"), exports);\n__exportStar(require(\"./chunk\"), exports);\n__exportStar(require(\"./concat-async\"), exports);\n__exportStar(require(\"./concat\"), exports);\n__exportStar(require(\"./drop-async\"), exports);\n__exportStar(require(\"./drop-right-async\"), exports);\n__exportStar(require(\"./drop-right\"), exports);\n__exportStar(require(\"./drop-until-async\"), exports);\n__exportStar(require(\"./drop-until\"), exports);\n__exportStar(require(\"./drop\"), exports);\n__exportStar(require(\"./filter-async\"), exports);\n__exportStar(require(\"./filter\"), exports);\n__exportStar(require(\"./flatten-async\"), exports);\n__exportStar(require(\"./flatten-by-async\"), exports);\n__exportStar(require(\"./flatten-by\"), exports);\n__exportStar(require(\"./flatten-deep-async\"), exports);\n__exportStar(require(\"./flatten-deep\"), exports);\n__exportStar(require(\"./flatten\"), exports);\n__exportStar(require(\"./map-async\"), exports);\n__exportStar(require(\"./map\"), exports);\n__exportStar(require(\"./repeat-async\"), exports);\n__exportStar(require(\"./repeat\"), exports);\n__exportStar(require(\"./slice-async\"), exports);\n__exportStar(require(\"./slice\"), exports);\n__exportStar(require(\"./split-async\"), exports);\n__exportStar(require(\"./split-by-async\"), exports);\n__exportStar(require(\"./split-by\"), exports);\n__exportStar(require(\"./split\"), exports);\n__exportStar(require(\"./take-async\"), exports);\n__exportStar(require(\"./take-right-async\"), exports);\n__exportStar(require(\"./take-right\"), exports);\n__exportStar(require(\"./take-until-async\"), exports);\n__exportStar(require(\"./take-until\"), exports);\n__exportStar(require(\"./take\"), exports);\n__exportStar(require(\"./tap-async\"), exports);\n__exportStar(require(\"./tap\"), exports);\n__exportStar(require(\"./to-async-iterable\"), exports);\n__exportStar(require(\"./transform-async\"), exports);\n__exportStar(require(\"./transform\"), exports);\n__exportStar(require(\"./uniq-async\"), exports);\n__exportStar(require(\"./uniq-by-async\"), exports);\n__exportStar(require(\"./uniq-by\"), exports);\n__exportStar(require(\"./uniq\"), exports);\n__exportStar(require(\"./zip-async\"), exports);\n__exportStar(require(\"./zip\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.consume = void 0;\nfunction consume(iterable, consumer) {\n return consumer(iterable);\n}\nexports.consume = consume;\n//# sourceMappingURL=consume.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.eachAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction eachAsync(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return eachAsyncIterable(iterable);\n }\n else {\n return eachIterable(iterable);\n }\n async function eachAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n await fn(element, index);\n index++;\n }\n }\n async function eachIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n await fn(element, index);\n index++;\n }\n }\n}\nexports.eachAsync = eachAsync;\n//# sourceMappingURL=each-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.each = void 0;\nfunction each(iterable, fn) {\n let index = 0;\n for (const element of iterable) {\n fn(element, index);\n index++;\n }\n}\nexports.each = each;\n//# sourceMappingURL=each.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.everyAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction everyAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return everyAsyncIterable(iterable);\n }\n else {\n return everyIterable(iterable);\n }\n async function everyIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (!await predicate(element, index))\n return false;\n index++;\n }\n return true;\n }\n async function everyAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (!await predicate(element, index))\n return false;\n index++;\n }\n return true;\n }\n}\nexports.everyAsync = everyAsync;\n//# sourceMappingURL=every-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.every = void 0;\nfunction every(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (!predicate(element, index))\n return false;\n index++;\n }\n return true;\n}\nexports.every = every;\n//# sourceMappingURL=every.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.findAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction findAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return findAsyncIterable(iterable);\n }\n else {\n return findIterable(iterable);\n }\n async function findIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index))\n return element;\n index++;\n }\n return undefined;\n }\n async function findAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index))\n return element;\n index++;\n }\n return undefined;\n }\n}\nexports.findAsync = findAsync;\n//# sourceMappingURL=find-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.find = void 0;\nfunction find(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index))\n return element;\n index++;\n }\n return undefined;\n}\nexports.find = find;\n//# sourceMappingURL=find.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.firstAsync = void 0;\nasync function firstAsync(iterable) {\n for await (const element of iterable) {\n return element;\n }\n return undefined;\n}\nexports.firstAsync = firstAsync;\n//# sourceMappingURL=first-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.first = void 0;\nfunction first(iterable) {\n for (const element of iterable) {\n return element;\n }\n return undefined;\n}\nexports.first = first;\n//# sourceMappingURL=first.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.includesAsync = void 0;\nasync function includesAsync(iterable, value) {\n for await (const element of iterable) {\n if (element === value)\n return true;\n }\n return false;\n}\nexports.includesAsync = includesAsync;\n//# sourceMappingURL=includes-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.includes = void 0;\nfunction includes(iterable, value) {\n for (const element of iterable) {\n if (element === value)\n return true;\n }\n return false;\n}\nexports.includes = includes;\n//# sourceMappingURL=includes.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.matchAsync = void 0;\nasync function matchAsync(iterable, sequence) {\n const sequenceLength = sequence.length;\n let matchCount = 0;\n for await (const element of iterable) {\n if (element === sequence[matchCount])\n matchCount++;\n if (matchCount === sequenceLength)\n return true;\n }\n return false;\n}\nexports.matchAsync = matchAsync;\n//# sourceMappingURL=match-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.match = void 0;\nfunction match(iterable, sequence) {\n const sequenceLength = sequence.length;\n let matchCount = 0;\n for (const element of iterable) {\n if (element === sequence[matchCount])\n matchCount++;\n if (matchCount === sequenceLength)\n return true;\n }\n return false;\n}\nexports.match = match;\n//# sourceMappingURL=match.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reduceAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction reduceAsync(iterable, fn, initialValue) {\n if ((0, types_1.isUndefined)(initialValue)) {\n return reduceAsyncWithoutInitialValue(iterable, fn);\n }\n else {\n return reduceAsyncWithInitialValue(iterable, fn, initialValue);\n }\n}\nexports.reduceAsync = reduceAsync;\nfunction reduceAsyncWithInitialValue(iterable, fn, initialValue) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return reduceAsyncIterable(iterable);\n }\n else {\n return reduceIterable(iterable);\n }\n async function reduceIterable(iterable) {\n let result = initialValue, index = 0;\n for (const currentValue of iterable) {\n result = await fn(result, currentValue, index++);\n }\n return result;\n }\n async function reduceAsyncIterable(iterable) {\n let result = initialValue, index = 0;\n for await (const currentValue of iterable) {\n result = await fn(result, currentValue, index++);\n }\n return result;\n }\n}\nfunction reduceAsyncWithoutInitialValue(iterable, fn) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return reduceAsyncIterable(iterable);\n }\n else {\n return reduceIterable(iterable);\n }\n async function reduceAsyncIterable(iterable) {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n let result = await readInitialValue(iterator);\n let index = 1;\n let value;\n while ({ value, done } = await iterator.next(), !done) {\n result = await fn(result, value, index++);\n }\n return result;\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n async function readInitialValue(iterator) {\n const result = await iterator.next();\n if (result.done) {\n done = true;\n throw new Error('Reduce of empty iterable with no initial value');\n }\n return result.value;\n }\n }\n async function reduceIterable(iterable) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let result = readInitialValue(iterator);\n let index = 1;\n let value;\n while ({ value, done } = iterator.next(), !done) {\n result = await fn(result, value, index++);\n }\n return result;\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n function readInitialValue(iterator) {\n const result = iterator.next();\n if (result.done) {\n done = true;\n throw new Error('Reduce of empty iterable with no initial value');\n }\n return result.value;\n }\n }\n}\n//# sourceMappingURL=reduce-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reduce = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction reduce(iterable, fn, initialValue) {\n if ((0, types_1.isUndefined)(initialValue)) {\n return reduceWithoutInitialValue(iterable, fn);\n }\n else {\n return reduceWithInitialValue(iterable, fn, initialValue);\n }\n}\nexports.reduce = reduce;\nfunction reduceWithInitialValue(iterable, fn, initialValue) {\n let result = initialValue, index = 0;\n for (const currentValue of iterable) {\n result = fn(result, currentValue, index++);\n }\n return result;\n}\nfunction reduceWithoutInitialValue(iterable, fn) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let result = readInitialValue(iterator);\n let index = 1;\n let value;\n while ({ value, done } = iterator.next(), !done) {\n result = fn(result, value, index++);\n }\n return result;\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n function readInitialValue(iterator) {\n const result = iterator.next();\n if (result.done) {\n done = true;\n throw new Error('Reduce of empty iterable with no initial value');\n }\n return result.value;\n }\n}\n//# sourceMappingURL=reduce.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.someAsync = void 0;\nconst types_1 = require(\"@blackglory/types\");\nfunction someAsync(iterable, predicate) {\n if ((0, types_1.isAsyncIterable)(iterable)) {\n return someAsyncIterable(iterable);\n }\n else {\n return someIterable(iterable);\n }\n async function someIterable(iterable) {\n let index = 0;\n for (const element of iterable) {\n if (await predicate(element, index))\n return true;\n index++;\n }\n return false;\n }\n async function someAsyncIterable(iterable) {\n let index = 0;\n for await (const element of iterable) {\n if (await predicate(element, index))\n return true;\n index++;\n }\n return false;\n }\n}\nexports.someAsync = someAsync;\n//# sourceMappingURL=some-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.some = void 0;\nfunction some(iterable, predicate) {\n let index = 0;\n for (const element of iterable) {\n if (predicate(element, index))\n return true;\n index++;\n }\n return false;\n}\nexports.some = some;\n//# sourceMappingURL=some.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lastAsync = void 0;\nasync function lastAsync(iterable) {\n var _a;\n const iterator = iterable[Symbol.asyncIterator]();\n let done;\n try {\n let value;\n let result;\n while ({ value, done } = await iterator.next(), !done) {\n result = value;\n }\n return result;\n }\n finally {\n if (!done)\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n }\n}\nexports.lastAsync = lastAsync;\n//# sourceMappingURL=last-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.last = void 0;\nfunction last(iterable) {\n var _a;\n const iterator = iterable[Symbol.iterator]();\n let done;\n try {\n let value;\n let result;\n while ({ value, done } = iterator.next(), !done) {\n result = value;\n }\n return result;\n }\n finally {\n if (!done)\n (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);\n }\n}\nexports.last = last;\n//# sourceMappingURL=last.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toArrayAsync = void 0;\nconst consume_1 = require(\"./consume\");\nfunction toArrayAsync(iterable) {\n return (0, consume_1.consume)(iterable, async (iterable) => {\n const result = [];\n for await (const element of iterable) {\n result.push(element);\n }\n return result;\n });\n}\nexports.toArrayAsync = toArrayAsync;\n//# sourceMappingURL=to-array-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toArray = void 0;\nconst consume_1 = require(\"./consume\");\nfunction toArray(iterable) {\n return (0, consume_1.consume)(iterable, iterable => Array.from(iterable));\n}\nexports.toArray = toArray;\n//# sourceMappingURL=to-array.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toSetAsync = void 0;\nconst consume_1 = require(\"./consume\");\nfunction toSetAsync(iterable) {\n return (0, consume_1.consume)(iterable, async (iterable) => {\n const result = new Set();\n for await (const element of iterable) {\n result.add(element);\n }\n return result;\n });\n}\nexports.toSetAsync = toSetAsync;\n//# sourceMappingURL=to-set-async.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toSet = void 0;\nconst consume_1 = require(\"./consume\");\nfunction toSet(iterable) {\n return (0, consume_1.consume)(iterable, iterable => new Set(iterable));\n}\nexports.toSet = toSet;\n//# sourceMappingURL=to-set.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./consume\"), exports);\n__exportStar(require(\"./each-async\"), exports);\n__exportStar(require(\"./each\"), exports);\n__exportStar(require(\"./every-async\"), exports);\n__exportStar(require(\"./every\"), exports);\n__exportStar(require(\"./find-async\"), exports);\n__exportStar(require(\"./find\"), exports);\n__exportStar(require(\"./first-async\"), exports);\n__exportStar(require(\"./first\"), exports);\n__exportStar(require(\"./includes-async\"), exports);\n__exportStar(require(\"./includes\"), exports);\n__exportStar(require(\"./match-async\"), exports);\n__exportStar(require(\"./match\"), exports);\n__exportStar(require(\"./reduce-async\"), exports);\n__exportStar(require(\"./reduce\"), exports);\n__exportStar(require(\"./some-async\"), exports);\n__exportStar(require(\"./some\"), exports);\n__exportStar(require(\"./last-async\"), exports);\n__exportStar(require(\"./last\"), exports);\n__exportStar(require(\"./to-array-async\"), exports);\n__exportStar(require(\"./to-array\"), exports);\n__exportStar(require(\"./to-set-async\"), exports);\n__exportStar(require(\"./to-set\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./middleware\"), exports);\n__exportStar(require(\"./output\"), exports);\n//# sourceMappingURL=index.js.map","import { assert } from '@blackglory/errors'\nimport { first } from 'iterable-operator'\n\nexport class LRUMap<K, V> {\n #limit: number\n #map = new Map<K, V>()\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n get size() {\n return this.#map.size\n }\n\n constructor(limit: number) {\n assert(Number.isInteger(limit), 'The parameter limit must be an integer')\n assert(limit > 0, 'The parameter limit must be a positive value')\n\n this.#limit = limit\n }\n\n set(key: K, value: V): this {\n if (this.#map.has(key)) {\n this.updateItem(key, value)\n } else {\n if (this.#map.size === this.#limit) {\n this.#map.delete(this.getColdestKey()!)\n }\n this.#map.set(key, value)\n }\n return this\n }\n\n has(key: K): boolean {\n return this.#map.has(key)\n }\n\n get(key: K): V | undefined {\n if (!this.has(key)) return undefined\n\n const value = this.#map.get(key)!\n this.updateItem(key, value)\n return value\n }\n\n delete(key: K): boolean {\n return this.#map.delete(key)\n }\n\n clear(): void {\n this.#map.clear()\n }\n\n /**\n * Reinsert the item.\n */\n private updateItem(key: K, value: V): void {\n this.#map.delete(key)\n this.#map.set(key, value)\n }\n\n /**\n * Return the earliest key inserted in the Map\n */\n private getColdestKey(): K | undefined{\n return first(this.#map.keys())\n }\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.random = void 0;\nfunction random(min, max) {\n return Math.random() * (max - min) + min;\n}\nexports.random = random;\n//# sourceMappingURL=random.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.randomInt = void 0;\nfunction randomInt(min, max) {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min)) + min;\n}\nexports.randomInt = randomInt;\n//# sourceMappingURL=random-int.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.randomIntInclusive = void 0;\nfunction randomIntInclusive(min, max) {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min + 1)) + min;\n}\nexports.randomIntInclusive = randomIntInclusive;\n//# sourceMappingURL=random-int-inclusive.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./random\"), exports);\n__exportStar(require(\"./random-int\"), exports);\n__exportStar(require(\"./random-int-inclusive\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.calculateExponentialBackoffTimeout = void 0;\nconst extra_rand_1 = require(\"extra-rand\");\nfunction calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {\n const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);\n if (jitter) {\n return (0, extra_rand_1.randomIntInclusive)(0, timeout);\n }\n else {\n return timeout;\n }\n}\nexports.calculateExponentialBackoffTimeout = calculateExponentialBackoffTimeout;\n//# sourceMappingURL=exponential-backoff.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setTimeout = void 0;\nfunction setTimeout(timeout, cb) {\n const timer = globalThis.setTimeout(cb, timeout);\n return () => clearTimeout(timer);\n}\nexports.setTimeout = setTimeout;\n//# sourceMappingURL=set-timeout.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setSchedule = void 0;\nconst set_timeout_1 = require(\"./set-timeout\");\nfunction setSchedule(timestamp, cb) {\n const timeout = timestamp - Date.now();\n return (0, set_timeout_1.setTimeout)(timeout, cb);\n}\nexports.setSchedule = setSchedule;\n//# sourceMappingURL=set-schedule.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setInterval = void 0;\nfunction setInterval(timeout, cb) {\n const timer = globalThis.setInterval(cb, timeout);\n return () => clearInterval(timer);\n}\nexports.setInterval = setInterval;\n//# sourceMappingURL=set-interval.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setImmediate = void 0;\nconst set_timeout_1 = require(\"./set-timeout\");\nfunction setImmediate(cb) {\n if (globalThis.setImmediate) {\n const timer = globalThis.setImmediate(cb);\n return () => clearImmediate(timer);\n }\n else {\n return (0, set_timeout_1.setTimeout)(0, cb);\n }\n}\nexports.setImmediate = setImmediate;\n//# sourceMappingURL=set-immediate.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setTimeoutLoop = void 0;\nconst set_timeout_1 = require(\"./set-timeout\");\nfunction setTimeoutLoop(timeout, cb) {\n let isCancelled = false;\n let cancel = (0, set_timeout_1.setTimeout)(timeout, loop);\n return () => {\n isCancelled = true;\n cancel();\n };\n async function loop() {\n await cb();\n if (!isCancelled) {\n cancel = (0, set_timeout_1.setTimeout)(timeout, loop);\n }\n }\n}\nexports.setTimeoutLoop = setTimeoutLoop;\n//# sourceMappingURL=set-timeout-loop.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setDynamicTimeoutLoop = void 0;\nconst set_timeout_1 = require(\"./set-timeout\");\nfunction setDynamicTimeoutLoop(timeout, cb) {\n let isCancelled = false;\n let cancel = (0, set_timeout_1.setTimeout)(timeout, loop);\n return () => {\n isCancelled = true;\n cancel();\n };\n async function loop() {\n const start = Date.now();\n await cb();\n const elapsed = Date.now() - start;\n if (!isCancelled) {\n cancel = (0, set_timeout_1.setTimeout)(Math.max(timeout - elapsed, 0), loop);\n }\n }\n}\nexports.setDynamicTimeoutLoop = setDynamicTimeoutLoop;\n//# sourceMappingURL=set-dynamic-timeout-loop.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./exponential-backoff\"), exports);\n__exportStar(require(\"./set-timeout\"), exports);\n__exportStar(require(\"./set-schedule\"), exports);\n__exportStar(require(\"./set-interval\"), exports);\n__exportStar(require(\"./set-immediate\"), exports);\n__exportStar(require(\"./set-timeout-loop\"), exports);\n__exportStar(require(\"./set-dynamic-timeout-loop\"), exports);\n//# sourceMappingURL=index.js.map","import { setSchedule } from 'extra-timers'\n\nexport class ExpirableMap<K, V> {\n #map = new Map<K, V>()\n #cancelClearTimeout?: () => void\n /**\n * 按过期时间升序排列所有项目的元数据\n */ \n itemMetadataSortedByExpirationTime: Array<{ key: K; expirationTime: number }> = []\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n get size() {\n return this.#map.size\n }\n\n set(key: K, value: V, maxAge: number): this {\n this.#map.set(key, value)\n this.removeItemMetadata(key)\n this.addItemMetadata(key, Date.now() + maxAge)\n return this\n }\n\n has(key: K): boolean {\n return this.#map.has(key)\n }\n\n get(key: K): V | undefined {\n return this.#map.get(key)\n }\n\n delete(key: K): boolean {\n const exists = this.#map.delete(key)\n if (exists) {\n const index = this.itemMetadataSortedByExpirationTime.findIndex(x => x.key === key)\n this.itemMetadataSortedByExpirationTime.splice(index, 1)\n\n // 如果被删除的项目是第一个项目, 则需要重新规划过期回调\n if (index === 0) {\n this.rescheduleClearTimeout()\n }\n }\n return exists\n }\n\n clear(): void {\n this.#map.clear()\n this.#cancelClearTimeout?.()\n this.itemMetadataSortedByExpirationTime = []\n }\n\n private addItemMetadata(key: K, expirationTime: number) {\n for (let i = 0; i < this.itemMetadataSortedByExpirationTime.length; i++) {\n const item = this.itemMetadataSortedByExpirationTime[i]\n if (expirationTime < item.expirationTime) {\n this.itemMetadataSortedByExpirationTime.splice(i, 0, { key, expirationTime })\n\n // 如果本次插入导致原先的第一个项目不再是低一个项目, 则需要重新规划过期回调\n if (i === 0) {\n this.rescheduleClearTimeout()\n }\n return\n }\n }\n\n // 如果代码运行到此处, 意味着数组要么为空, 要么新项目过期时间大于数组内的所有项目, 故直接插入到数组尾端.\n this.itemMetadataSortedByExpirationTime.push({ key, expirationTime })\n // 如果新插入的项目是唯一而项目, 则需要重新规划过期回调\n if (this.itemMetadataSortedByExpirationTime.length === 1) {\n this.rescheduleClearTimeout()\n }\n }\n\n private removeItemMetadata(key: K) {\n const index = this.itemMetadataSortedByExpirationTime.findIndex(x => x.key === key)\n if (index >= 0) {\n this.itemMetadataSortedByExpirationTime.splice(index, 1)\n\n // 如果被移除的是第一个项目, 则需要重新规划过期回调\n if (index === 0) {\n this.rescheduleClearTimeout()\n }\n }\n }\n\n private clearExpiredItems(timestamp: number) {\n const indexOfFirstUnexpired = this.itemMetadataSortedByExpirationTime.findIndex(\n x => x.expirationTime > timestamp\n )\n const expiredItemKeys =\n indexOfFirstUnexpired >= 0\n ? this.itemMetadataSortedByExpirationTime.splice(0, indexOfFirstUnexpired)\n : this.itemMetadataSortedByExpirationTime.splice(0, this.itemMetadataSortedByExpirationTime.length)\n expiredItemKeys.forEach(x => this.#map.delete(x.key))\n }\n\n private rescheduleClearTimeout() {\n this.#cancelClearTimeout?.()\n\n if (this.itemMetadataSortedByExpirationTime.length > 0) {\n const item = this.itemMetadataSortedByExpirationTime[0]\n if (Number.isFinite(item.expirationTime)) {\n const cancel = setSchedule(item.expirationTime, () => {\n this.clearExpiredItems(Date.now())\n this.rescheduleClearTimeout()\n })\n this.#cancelClearTimeout = () => {\n cancel()\n this.#cancelClearTimeout = undefined\n }\n }\n }\n }\n}\n","import { assert } from '@blackglory/errors'\nimport { first } from 'iterable-operator'\nimport { setSchedule } from 'extra-timers'\n\n/**\n * TLRUMap = LRUMap + ExpirableMap\n */\nexport class TLRUMap<K, V> {\n #limit: number\n #map = new Map<K, V>()\n #cancelClearTimeout?: () => void\n /**\n * 按过期时间升序排列所有项目的元数据\n */ \n itemMetadataSortedByExpirationTime: Array<{ key: K; expirationTime: number }> = []\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n get size() {\n return this.#map.size\n }\n\n constructor(limit: number) {\n assert(Number.isInteger(limit), 'The parameter limit must be an integer')\n assert(limit > 0, 'The parameter limit must be a positive value')\n\n this.#limit = limit\n }\n\n set(key: K, value: V, maxAge: number): this {\n if (this.#map.has(key)) {\n this.updateItem(key, value)\n this.removeItemMetadata(key)\n this.addItemMetadata(key, Date.now() + maxAge)\n } else {\n if (this.#map.size === this.#limit) {\n this.#map.delete(this.getColdestKey()!)\n }\n this.#map.set(key, value)\n this.addItemMetadata(key, Date.now() + maxAge)\n }\n return this\n }\n\n has(key: K): boolean {\n return this.#map.has(key)\n }\n\n get(key: K): V | undefined {\n if (this.has(key)) {\n const value = this.#map.get(key)!\n this.updateItem(key, value)\n return value\n } else {\n return undefined\n }\n }\n\n delete(key: K): boolean {\n const result = this.#map.delete(key)\n if (result) {\n const index = this.itemMetadataSortedByExpirationTime.findIndex(x => x.key === key)\n this.itemMetadataSortedByExpirationTime.splice(index, 1)\n\n // 如果被删除的项目是第一个项目, 则需要重新规划过期回调\n if (index === 0) {\n this.rescheduleClearTimeout()\n }\n }\n return result\n }\n\n clear(): void {\n this.#map.clear()\n this.#cancelClearTimeout?.()\n this.itemMetadataSortedByExpirationTime = []\n }\n\n /**\n * 重新插入项目, 这会使项目置于#map迭代器的末端.\n */\n private updateItem(key: K, value: V): void {\n this.#map.delete(key)\n this.#map.set(key, value)\n }\n\n private addItemMetadata(key: K, expirationTime: number) {\n for (let i = 0; i < this.itemMetadataSortedByExpirationTime.length; i++) {\n const item = this.itemMetadataSortedByExpirationTime[i]\n if (expirationTime < item.expirationTime) {\n this.itemMetadataSortedByExpirationTime.splice(i, 0, { key, expirationTime })\n\n // 如果本次插入导致原先的第一个项目不再是低一个项目, 则需要重新规划过期回调\n if (i === 0) {\n this.rescheduleClearTimeout()\n }\n return\n }\n }\n\n // 如果代码运行到此处, 意味着数组要么为空, 要么新项目过期时间大于数组内的所有项目, 故直接插入到数组尾端.\n this.itemMetadataSortedByExpirationTime.push({ key, expirationTime })\n // 如果新插入的项目是唯一而项目, 则需要重新规划过期回调\n if (this.itemMetadataSortedByExpirationTime.length === 1) {\n this.rescheduleClearTimeout()\n }\n }\n\n private removeItemMetadata(key: K) {\n const index = this.itemMetadataSortedByExpirationTime.findIndex(x => x.key === key)\n if (index >= 0) {\n this.itemMetadataSortedByExpirationTime.splice(index, 1)\n\n // 如果被移除的是第一个项目, 则需要重新规划过期回调\n if (index === 0) {\n this.rescheduleClearTimeout()\n }\n }\n }\n\n private clearExpiredItems(timestamp: number) {\n const indexOfFirstUnexpiredItem = this.itemMetadataSortedByExpirationTime.findIndex(\n x => x.expirationTime > timestamp\n )\n const expiredItemKeys =\n indexOfFirstUnexpiredItem >= 0\n ? this.itemMetadataSortedByExpirationTime.splice(0, indexOfFirstUnexpiredItem)\n : this.itemMetadataSortedByExpirationTime.splice(0, this.itemMetadataSortedByExpirationTime.length)\n expiredItemKeys.forEach(x => this.#map.delete(x.key))\n }\n\n private rescheduleClearTimeout() {\n this.#cancelClearTimeout?.()\n\n if (this.itemMetadataSortedByExpirationTime.length > 0) {\n const item = this.itemMetadataSortedByExpirationTime[0]\n if (Number.isFinite(item.expirationTime)) {\n const cancel = setSchedule(item.expirationTime, () => {\n this.clearExpiredItems(Date.now())\n this.rescheduleClearTimeout()\n })\n this.#cancelClearTimeout = () => {\n cancel()\n this.#cancelClearTimeout = undefined\n }\n }\n }\n }\n\n /**\n * Return the earliest key inserted in the Map\n */\n private getColdestKey(): K | undefined {\n return first(this.#map.keys())\n }\n}\n","import { zip, toArray } from 'iterable-operator'\nimport { UnpackedIterable } from 'justypes'\n\nclass TrieNode<T, U> {\n children = new Map<T, TrieNode<T, U>>()\n\n constructor(public value?: U) {}\n}\n\nexport class TrieMap<K extends Iterable<T>, V, T = UnpackedIterable<K>> {\n #root = new TrieNode<T, V>()\n\n get [Symbol.toStringTag]() {\n return this.constructor.name\n }\n\n set(key: K, value: V): this {\n let node = this.#root\n for (const part of key) {\n if (!node.children.has(part)) {\n node.children.set(part, new TrieNode<T, V>())\n }\n node = node.children.get(part)!\n }\n\n node.value = value\n return this\n }\n\n has(key: K): boolean {\n let node = this.#root\n for (const part of key) {\n if (node.children.has(part)) {\n node = node.children.get(part)!\n } else {\n return false\n }\n }\n\n return node.value !== undefined\n }\n\n get(key: K): V | undefined {\n let node = this.#root\n for (const part of key) {\n if (node.children.has(part)) {\n node = node.children.get(part)!\n } else {\n return undefined\n }\n }\n\n return node.value\n }\n\n delete(key: K): boolean {\n const parentNodes: TrieNode<T, V>[] = []\n let node = this.#root\n for (const part of key) {\n if (node.children.has(part)) {\n parentNodes.push(node)\n node = node.children.get(part)!\n } else {\n return false\n }\n }\n\n delete node.value\n\n // 如果节点没有后缀, 则代表这是末端节点, 往前删除其前缀\n if (node.children.size === 0) {\n for (const [part, parentNode] of toArray(zip(key, parentNodes)).reverse()) {\n parentNode.children.delete(part)\n if (parentNode.children.size !== 0) break\n }\n }\n return true\n }\n}\n","import { CustomError } from '@blackglory/errors'\n\nexport type IFiniteStateMachineSchema<State extends string, Event extends string> =\n Record<State, Partial<Record<Event, State>>>\n\nexport class FiniteStateMachine<State extends string, Event extends string> {\n #state: State\n get state(): State {\n return this.#state\n }\n\n constructor(\n protected schema: IFiniteStateMachineSchema<State, Event>\n , initialState: State\n ) {\n this.#state = initialState\n }\n\n matches(state: State): boolean {\n return this.#state === state\n }\n\n can(event: Event): boolean {\n return event in this.schema[this.state]\n }\n\n /**\n * @throws {BadEventError}\n */\n send(event: Event): void {\n if (this.can(event)) {\n this.#state = this.schema[this.state][event]!\n } else {\n throw new BadEventError(this.state, event)\n }\n }\n}\n\nexport class BadEventError extends CustomError {\n constructor(state: string, event: string) {\n super(`State ${state} cannot react to event ${event}`)\n }\n}\n","export function isFunction(value) {\n return typeof value === 'function';\n}\n//# sourceMappingURL=isFunction.js.map","export function createErrorClass(createImpl) {\n var _super = function (instance) {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n var ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n//# sourceMappingURL=createErrorClass.js.map","import { createErrorClass } from './createErrorClass';\nexport var UnsubscriptionError = createErrorClass(function (_super) {\n return function UnsubscriptionErrorImpl(errors) {\n _super(this);\n this.message = errors\n ? errors.length + \" errors occurred during unsubscription:\\n\" + errors.map(function (err, i) { return i + 1 + \") \" + err.toString(); }).join('\\n ')\n : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n };\n});\n//# sourceMappingURL=UnsubscriptionError.js.map","export function arrRemove(arr, item) {\n if (arr) {\n var index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n}\n//# sourceMappingURL=arrRemove.js.map","import { __read, __spreadArray, __values } from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { arrRemove } from './util/arrRemove';\nvar Subscription = (function () {\n function Subscription(initialTeardown) {\n this.initialTeardown = initialTeardown;\n this.closed = false;\n this._parentage = null;\n this._finalizers = null;\n }\n Subscription.prototype.unsubscribe = function () {\n var e_1, _a, e_2, _b;\n var errors;\n if (!this.closed) {\n this.closed = true;\n var _parentage = this._parentage;\n if (_parentage) {\n this._parentage = null;\n if (Array.isArray(_parentage)) {\n try {\n for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {\n var parent_1 = _parentage_1_1.value;\n parent_1.remove(this);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n else {\n _parentage.remove(this);\n }\n }\n var initialFinalizer = this.initialTeardown;\n if (isFunction(initialFinalizer)) {\n try {\n initialFinalizer();\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? e.errors : [e];\n }\n }\n var _finalizers = this._finalizers;\n if (_finalizers) {\n this._finalizers = null;\n try {\n for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {\n var finalizer = _finalizers_1_1.value;\n try {\n execFinalizer(finalizer);\n }\n catch (err) {\n errors = errors !== null && errors !== void 0 ? errors : [];\n if (err instanceof UnsubscriptionError) {\n errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));\n }\n else {\n errors.push(err);\n }\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n };\n Subscription.prototype.add = function (teardown) {\n var _a;\n if (teardown && teardown !== this) {\n if (this.closed) {\n execFinalizer(teardown);\n }\n else {\n if (teardown instanceof Subscription) {\n if (teardown.closed || teardown._hasParent(this)) {\n return;\n }\n teardown._addParent(this);\n }\n (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);\n }\n }\n };\n Subscription.prototype._hasParent = function (parent) {\n var _parentage = this._parentage;\n return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n };\n Subscription.prototype._addParent = function (parent) {\n var _parentage = this._parentage;\n this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n };\n Subscription.prototype._removeParent = function (parent) {\n var _parentage = this._parentage;\n if (_parentage === parent) {\n this._parentage = null;\n }\n else if (Array.isArray(_parentage)) {\n arrRemove(_parentage, parent);\n }\n };\n Subscription.prototype.remove = function (teardown) {\n var _finalizers = this._finalizers;\n _finalizers && arrRemove(_finalizers, teardown);\n if (teardown instanceof Subscription) {\n teardown._removeParent(this);\n }\n };\n Subscription.EMPTY = (function () {\n var empty = new Subscription();\n empty.closed = true;\n return empty;\n })();\n return Subscription;\n}());\nexport { Subscription };\nexport var EMPTY_SUBSCRIPTION = Subscription.EMPTY;\nexport function isSubscription(value) {\n return (value instanceof Subscription ||\n (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));\n}\nfunction execFinalizer(finalizer) {\n if (isFunction(finalizer)) {\n finalizer();\n }\n else {\n finalizer.unsubscribe();\n }\n}\n//# sourceMappingURL=Subscription.js.map","export var config = {\n onUnhandledError: null,\n onStoppedNotification: null,\n Promise: undefined,\n useDeprecatedSynchronousErrorHandling: false,\n useDeprecatedNextContext: false,\n};\n//# sourceMappingURL=config.js.map","import { __read, __spreadArray } from \"tslib\";\nexport var timeoutProvider = {\n setTimeout: function (handler, timeout) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n var delegate = timeoutProvider.delegate;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {\n return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args)));\n }\n return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));\n },\n clearTimeout: function (handle) {\n var delegate = timeoutProvider.delegate;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);\n },\n delegate: undefined,\n};\n//# sourceMappingURL=timeoutProvider.js.map","export function noop() { }\n//# sourceMappingURL=noop.js.map","import { config } from '../config';\nvar context = null;\nexport function errorContext(cb) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n var isRoot = !context;\n if (isRoot) {\n context = { errorThrown: false, error: null };\n }\n cb();\n if (isRoot) {\n var _a = context, errorThrown = _a.errorThrown, error = _a.error;\n context = null;\n if (errorThrown) {\n throw error;\n }\n }\n }\n else {\n cb();\n }\n}\nexport function captureError(err) {\n if (config.useDeprecatedSynchronousErrorHandling && context) {\n context.errorThrown = true;\n context.error = err;\n }\n}\n//# sourceMappingURL=errorContext.js.map","import { __extends } from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\nvar Subscriber = (function (_super) {\n __extends(Subscriber, _super);\n function Subscriber(destination) {\n var _this = _super.call(this) || this;\n _this.isStopped = false;\n if (destination) {\n _this.destination = destination;\n if (isSubscription(destination)) {\n destination.add(_this);\n }\n }\n else {\n _this.destination = EMPTY_OBSERVER;\n }\n return _this;\n }\n Subscriber.create = function (next, error, complete) {\n return new SafeSubscriber(next, error, complete);\n };\n Subscriber.prototype.next = function (value) {\n if (this.isStopped) {\n handleStoppedNotification(nextNotification(value), this);\n }\n else {\n this._next(value);\n }\n };\n Subscriber.prototype.error = function (err) {\n if (this.isStopped) {\n handleStoppedNotification(errorNotification(err), this);\n }\n else {\n this.isStopped = true;\n this._error(err);\n }\n };\n Subscriber.prototype.complete = function () {\n if (this.isStopped) {\n handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n }\n else {\n this.isStopped = true;\n this._complete();\n }\n };\n Subscriber.prototype.unsubscribe = function () {\n if (!this.closed) {\n this.isStopped = true;\n _super.prototype.unsubscribe.call(this);\n this.destination = null;\n }\n };\n Subscriber.prototype._next = function (value) {\n this.destination.next(value);\n };\n Subscriber.prototype._error = function (err) {\n try {\n this.destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n };\n Subscriber.prototype._complete = function () {\n try {\n this.destination.complete();\n }\n finally {\n this.unsubscribe();\n }\n };\n return Subscriber;\n}(Subscription));\nexport { Subscriber };\nvar _bind = Function.prototype.bind;\nfunction bind(fn, thisArg) {\n return _bind.call(fn, thisArg);\n}\nvar ConsumerObserver = (function () {\n function ConsumerObserver(partialObserver) {\n this.partialObserver = partialObserver;\n }\n ConsumerObserver.prototype.next = function (value) {\n var partialObserver = this.partialObserver;\n if (partialObserver.next) {\n try {\n partialObserver.next(value);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n };\n ConsumerObserver.prototype.error = function (err) {\n var partialObserver = this.partialObserver;\n if (partialObserver.error) {\n try {\n partialObserver.error(err);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n else {\n handleUnhandledError(err);\n }\n };\n ConsumerObserver.prototype.complete = function () {\n var partialObserver = this.partialObserver;\n if (partialObserver.complete) {\n try {\n partialObserver.complete();\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n };\n return ConsumerObserver;\n}());\nvar SafeSubscriber = (function (_super) {\n __extends(SafeSubscriber, _super);\n function SafeSubscriber(observerOrNext, error, complete) {\n var _this = _super.call(this) || this;\n var partialObserver;\n if (isFunction(observerOrNext) || !observerOrNext) {\n partialObserver = {\n next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,\n error: error !== null && error !== void 0 ? error : undefined,\n complete: complete !== null && complete !== void 0 ? complete : undefined,\n };\n }\n else {\n var context_1;\n if (_this && config.useDeprecatedNextContext) {\n context_1 = Object.create(observerOrNext);\n context_1.unsubscribe = function () { return _this.unsubscribe(); };\n partialObserver = {\n next: observerOrNext.next && bind(observerOrNext.next, context_1),\n error: observerOrNext.error && bind(observerOrNext.error, context_1),\n complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),\n };\n }\n else {\n partialObserver = observerOrNext;\n }\n }\n _this.destination = new ConsumerObserver(partialObserver);\n return _this;\n }\n return SafeSubscriber;\n}(Subscriber));\nexport { SafeSubscriber };\nfunction handleUnhandledError(error) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n captureError(error);\n }\n else {\n reportUnhandledError(error);\n }\n}\nfunction defaultErrorHandler(err) {\n throw err;\n}\nfunction handleStoppedNotification(notification, subscriber) {\n var onStoppedNotification = config.onStoppedNotification;\n onStoppedNotification && timeoutProvider.setTimeout(function () { return onStoppedNotification(notification, subscriber); });\n}\nexport var EMPTY_OBSERVER = {\n closed: true,\n next: noop,\n error: defaultErrorHandler,\n complete: noop,\n};\n//# sourceMappingURL=Subscriber.js.map","import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\nexport function reportUnhandledError(err) {\n timeoutProvider.setTimeout(function () {\n var onUnhandledError = config.onUnhandledError;\n if (onUnhandledError) {\n onUnhandledError(err);\n }\n else {\n throw err;\n }\n });\n}\n//# sourceMappingURL=reportUnhandledError.js.map","export var observable = (function () { return (typeof Symbol === 'function' && Symbol.observable) || '@@observable'; })();\n//# sourceMappingURL=observable.js.map","export function identity(x) {\n return x;\n}\n//# sourceMappingURL=identity.js.map","import { identity } from './identity';\nexport function pipe() {\n var fns = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n fns[_i] = arguments[_i];\n }\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce(function (prev, fn) { return fn(prev); }, input);\n };\n}\n//# sourceMappingURL=pipe.js.map","import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nvar Observable = (function () {\n function Observable(subscribe) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n Observable.prototype.lift = function (operator) {\n var observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n };\n Observable.prototype.subscribe = function (observerOrNext, error, complete) {\n var _this = this;\n var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n errorContext(function () {\n var _a = _this, operator = _a.operator, source = _a.source;\n subscriber.add(operator\n ?\n operator.call(subscriber, source)\n : source\n ?\n _this._subscribe(subscriber)\n :\n _this._trySubscribe(subscriber));\n });\n return subscriber;\n };\n Observable.prototype._trySubscribe = function (sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n sink.error(err);\n }\n };\n Observable.prototype.forEach = function (next, promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var subscriber = new SafeSubscriber({\n next: function (value) {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve,\n });\n _this.subscribe(subscriber);\n });\n };\n Observable.prototype._subscribe = function (subscriber) {\n var _a;\n return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n };\n Observable.prototype[Symbol_observable] = function () {\n return this;\n };\n Observable.prototype.pipe = function () {\n var operations = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n operations[_i] = arguments[_i];\n }\n return pipeFromArray(operations)(this);\n };\n Observable.prototype.toPromise = function (promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var value;\n _this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); });\n });\n };\n Observable.create = function (subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n}());\nexport { Observable };\nfunction getPromiseCtor(promiseCtor) {\n var _a;\n return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n//# sourceMappingURL=Observable.js.map","import { createErrorClass } from './createErrorClass';\nexport var ObjectUnsubscribedError = createErrorClass(function (_super) {\n return function ObjectUnsubscribedErrorImpl() {\n _super(this);\n this.name = 'ObjectUnsubscribedError';\n this.message = 'object unsubscribed';\n };\n});\n//# sourceMappingURL=ObjectUnsubscribedError.js.map","import { __extends, __values } from \"tslib\";\nimport { Observable } from './Observable';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\nvar Subject = (function (_super) {\n __extends(Subject, _super);\n function Subject() {\n var _this = _super.call(this) || this;\n _this.closed = false;\n _this.currentObservers = null;\n _this.observers = [];\n _this.isStopped = false;\n _this.hasError = false;\n _this.thrownError = null;\n return _this;\n }\n Subject.prototype.lift = function (operator) {\n var subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n };\n Subject.prototype._throwIfClosed = function () {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n };\n Subject.prototype.next = function (value) {\n var _this = this;\n errorContext(function () {\n var e_1, _a;\n _this._throwIfClosed();\n if (!_this.isStopped) {\n if (!_this.currentObservers) {\n _this.currentObservers = Array.from(_this.observers);\n }\n try {\n for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {\n var observer = _c.value;\n observer.next(value);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n });\n };\n Subject.prototype.error = function (err) {\n var _this = this;\n errorContext(function () {\n _this._throwIfClosed();\n if (!_this.isStopped) {\n _this.hasError = _this.isStopped = true;\n _this.thrownError = err;\n var observers = _this.observers;\n while (observers.length) {\n observers.shift().error(err);\n }\n }\n });\n };\n Subject.prototype.complete = function () {\n var _this = this;\n errorContext(function () {\n _this._throwIfClosed();\n if (!_this.isStopped) {\n _this.isStopped = true;\n var observers = _this.observers;\n while (observers.length) {\n observers.shift().complete();\n }\n }\n });\n };\n Subject.prototype.unsubscribe = function () {\n this.isStopped = this.closed = true;\n this.observers = this.currentObservers = null;\n };\n Object.defineProperty(Subject.prototype, \"observed\", {\n get: function () {\n var _a;\n return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;\n },\n enumerable: false,\n configurable: true\n });\n Subject.prototype._trySubscribe = function (subscriber) {\n this._throwIfClosed();\n return _super.prototype._trySubscribe.call(this, subscriber);\n };\n Subject.prototype._subscribe = function (subscriber) {\n this._throwIfClosed();\n this._checkFinalizedStatuses(subscriber);\n return this._innerSubscribe(subscriber);\n };\n Subject.prototype._innerSubscribe = function (subscriber) {\n var _this = this;\n var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;\n if (hasError || isStopped) {\n return EMPTY_SUBSCRIPTION;\n }\n this.currentObservers = null;\n observers.push(subscriber);\n return new Subscription(function () {\n _this.currentObservers = null;\n arrRemove(observers, subscriber);\n });\n };\n Subject.prototype._checkFinalizedStatuses = function (subscriber) {\n var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;\n if (hasError) {\n subscriber.error(thrownError);\n }\n else if (isStopped) {\n subscriber.complete();\n }\n };\n Subject.prototype.asObservable = function () {\n var observable = new Observable();\n observable.source = this;\n return observable;\n };\n Subject.create = function (destination, source) {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n}(Observable));\nexport { Subject };\nvar AnonymousSubject = (function (_super) {\n __extends(AnonymousSubject, _super);\n function AnonymousSubject(destination, source) {\n var _this = _super.call(this) || this;\n _this.destination = destination;\n _this.source = source;\n return _this;\n }\n AnonymousSubject.prototype.next = function (value) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);\n };\n AnonymousSubject.prototype.error = function (err) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);\n };\n AnonymousSubject.prototype.complete = function () {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);\n };\n AnonymousSubject.prototype._subscribe = function (subscriber) {\n var _a, _b;\n return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;\n };\n return AnonymousSubject;\n}(Subject));\nexport { AnonymousSubject };\n//# sourceMappingURL=Subject.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntEmptyArray = exports.isEmptyArray = exports.isntArray = exports.isArray = void 0;\nfunction isArray(val) {\n return Array.isArray(val);\n}\nexports.isArray = isArray;\nfunction isntArray(val) {\n return !isArray(val);\n}\nexports.isntArray = isntArray;\nfunction isEmptyArray(val) {\n return val.length === 0;\n}\nexports.isEmptyArray = isEmptyArray;\nfunction isntEmptyArray(val) {\n return val.length !== 0;\n}\nexports.isntEmptyArray = isntEmptyArray;\n//# sourceMappingURL=array.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntNull = exports.isNull = void 0;\nfunction isNull(val) {\n return val === null;\n}\nexports.isNull = isNull;\nfunction isntNull(val) {\n return !isNull(val);\n}\nexports.isntNull = isntNull;\n//# sourceMappingURL=null.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntUndefined = exports.isUndefined = void 0;\nfunction isUndefined(val) {\n return val === undefined;\n}\nexports.isUndefined = isUndefined;\nfunction isntUndefined(val) {\n return !isUndefined(val);\n}\nexports.isntUndefined = isntUndefined;\n//# sourceMappingURL=undefined.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntFunction = exports.isFunction = void 0;\nfunction isFunction(val) {\n return typeof val === 'function';\n}\nexports.isFunction = isFunction;\nfunction isntFunction(val) {\n return !isFunction(val);\n}\nexports.isntFunction = isntFunction;\n//# sourceMappingURL=function.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntAsyncIterable = exports.isAsyncIterable = void 0;\nconst null_1 = require(\"./null\");\nconst undefined_1 = require(\"./undefined\");\nconst function_1 = require(\"./function\");\nfunction isAsyncIterable(val) {\n return (0, null_1.isntNull)(val)\n && (0, undefined_1.isntUndefined)(val)\n && (0, function_1.isFunction)(val[Symbol.asyncIterator]);\n}\nexports.isAsyncIterable = isAsyncIterable;\nfunction isntAsyncIterable(val) {\n return !isAsyncIterable(val);\n}\nexports.isntAsyncIterable = isntAsyncIterable;\n//# sourceMappingURL=async-iterable.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntBigInt = exports.isBigInt = void 0;\nfunction isBigInt(val) {\n return typeof val === 'bigint';\n}\nexports.isBigInt = isBigInt;\nfunction isntBigInt(val) {\n return !isBigInt(val);\n}\nexports.isntBigInt = isntBigInt;\n//# sourceMappingURL=bigint.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntBoolean = exports.isBoolean = void 0;\nfunction isBoolean(val) {\n return typeof val === 'boolean';\n}\nexports.isBoolean = isBoolean;\nfunction isntBoolean(val) {\n return !isBoolean(val);\n}\nexports.isntBoolean = isntBoolean;\n//# sourceMappingURL=boolean.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntString = exports.isString = void 0;\nfunction isString(val) {\n return typeof val === 'string';\n}\nexports.isString = isString;\nfunction isntString(val) {\n return !isString(val);\n}\nexports.isntString = isntString;\n//# sourceMappingURL=string.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntChar = exports.isChar = void 0;\nconst string_1 = require(\"./string\");\nfunction isChar(val) {\n return (0, string_1.isString)(val)\n && val.length === 1;\n}\nexports.isChar = isChar;\nfunction isntChar(val) {\n return !isChar(val);\n}\nexports.isntChar = isntChar;\n//# sourceMappingURL=char.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntDate = exports.isDate = void 0;\nfunction isDate(val) {\n return val instanceof Date;\n}\nexports.isDate = isDate;\nfunction isntDate(val) {\n return !isDate(val);\n}\nexports.isntDate = isntDate;\n//# sourceMappingURL=date.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.inEnum = void 0;\nfunction inEnum(val, _enum) {\n return Object.values(_enum).includes(val);\n}\nexports.inEnum = inEnum;\n//# sourceMappingURL=enum.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntError = exports.isError = void 0;\nfunction isError(val) {\n return val instanceof Error;\n}\nexports.isError = isError;\nfunction isntError(val) {\n return !isError(val);\n}\nexports.isntError = isntError;\n//# sourceMappingURL=error.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntFalsy = exports.isFalsy = void 0;\nfunction isFalsy(val) {\n return !val;\n}\nexports.isFalsy = isFalsy;\nfunction isntFalsy(val) {\n return !isFalsy(val);\n}\nexports.isntFalsy = isntFalsy;\n//# sourceMappingURL=falsy.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntIterable = exports.isIterable = void 0;\nconst null_1 = require(\"./null\");\nconst undefined_1 = require(\"./undefined\");\nconst function_1 = require(\"./function\");\nfunction isIterable(val) {\n return (0, null_1.isntNull)(val)\n && (0, undefined_1.isntUndefined)(val)\n && (0, function_1.isFunction)(val[Symbol.iterator]);\n}\nexports.isIterable = isIterable;\nfunction isntIterable(val) {\n return !isIterable(val);\n}\nexports.isntIterable = isntIterable;\n//# sourceMappingURL=iterable.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntNumber = exports.isNumber = void 0;\nfunction isNumber(val) {\n return typeof val === 'number';\n}\nexports.isNumber = isNumber;\nfunction isntNumber(val) {\n return !isNumber(val);\n}\nexports.isntNumber = isntNumber;\n//# sourceMappingURL=number.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntEmptyObject = exports.isEmptyObject = exports.isntPlainObject = exports.isPlainObject = exports.isntObject = exports.isObject = void 0;\nconst lodash_isplainobject_1 = __importDefault(require(\"lodash.isplainobject\"));\nfunction isObject(val) {\n return val !== null\n && typeof val === 'object';\n}\nexports.isObject = isObject;\nfunction isntObject(val) {\n return !isObject(val);\n}\nexports.isntObject = isntObject;\nfunction isPlainObject(val) {\n return (0, lodash_isplainobject_1.default)(val);\n}\nexports.isPlainObject = isPlainObject;\nfunction isntPlainObject(val) {\n return !isPlainObject(val);\n}\nexports.isntPlainObject = isntPlainObject;\nfunction isEmptyObject(val) {\n return Object.keys(val).length === 0;\n}\nexports.isEmptyObject = isEmptyObject;\nfunction isntEmptyObject(val) {\n return Object.keys(val).length !== 0;\n}\nexports.isntEmptyObject = isntEmptyObject;\n//# sourceMappingURL=object.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isntJsonable = exports.isJsonable = exports.isntJson = exports.isJson = void 0;\nconst null_1 = require(\"./null\");\nconst boolean_1 = require(\"./boolean\");\nconst string_1 = require(\"./string\");\nconst number_1 = require(\"./number\");\nconst array_1 = require(\"./array\");\nconst object_1 = require(\"./object\");\nfunction isJson(val) {\n return (0, null_1.isNull)(val)\n || (0, boolean_1.isBoolean)(val)\n || (0, string_1.isString)(val)\n || (0, number_1.isNumber)(val)\n || ((0, array_1.isArray)(val) && val.every(isJson))\n || ((0, object_1.isPlainObject)(val) && Object.values(val).every(isJson));\n}\nexports.isJson = isJson;\nfunction isntJson(val) {\n return !isJson(val);\n}\nexports.isntJson = isntJson;\nfunction isJsonable(val) {\n try {\n JSON.stringify(val);\n return true;\n }\n catch (_a) {\n return false;\n }\n}\nexports.isJsonable = isJsonable;\nfunction isntJsonable(val) {\n return !isntJsonable(val);\n}\nexports.isntJsonable = isntJsonable;\n//# sourceMappingURL=json.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isPromiseLike = exports.isntPromiseLike = exports.isntPromise = exports.isPromise = void 0;\nconst object_1 = require(\"./object\");\nconst function_1 = require(\"./function\");\nfunction isPromise(val) {\n return val instanceof Promise;\n}\nexports.isPromise = isPromise;\nfunction isntPromise(val) {\n return !isPromise(val);\n}\nexports.isntPromise = isntPromise;\nfunction isntPromiseLike(val) {\n return !isPromiseLike(val);\n}\nexports.isntPromiseLike = isntPromiseLike;\nfunction isPromiseLike(val) {\n return (0, object_1.isObject)(val)\n && (0, function_1.isFunction)(val.then);\n}\nexports.isPromiseLike = isPromiseLike;\n//# sourceMappingURL=promise.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isAbsoluteURL = void 0;\nfunction isAbsoluteURL(str) {\n try {\n new URL(str);\n return true;\n }\n catch (_a) {\n return false;\n }\n}\nexports.isAbsoluteURL = isAbsoluteURL;\n//# sourceMappingURL=url.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./array\"), exports);\n__exportStar(require(\"./async-iterable\"), exports);\n__exportStar(require(\"./bigint\"), exports);\n__exportStar(require(\"./boolean\"), exports);\n__exportStar(require(\"./char\"), exports);\n__exportStar(require(\"./date\"), exports);\n__exportStar(require(\"./enum\"), exports);\n__exportStar(require(\"./error\"), exports);\n__exportStar(require(\"./falsy\"), exports);\n__exportStar(require(\"./function\"), exports);\n__exportStar(require(\"./iterable\"), exports);\n__exportStar(require(\"./json\"), exports);\n__exportStar(require(\"./null\"), exports);\n__exportStar(require(\"./number\"), exports);\n__exportStar(require(\"./object\"), exports);\n__exportStar(require(\"./promise\"), exports);\n__exportStar(require(\"./string\"), exports);\n__exportStar(require(\"./undefined\"), exports);\n__exportStar(require(\"./url\"), exports);\n//# sourceMappingURL=index.js.map","export class Box<T> {\n #value: T\n\n constructor(value: T) {\n this.#value = value\n }\n\n set(value: T): void {\n this.#value = value\n }\n\n get(): T {\n return this.#value\n }\n}\n","import { FiniteStateMachine } from './finite-state-machine'\nimport { Subject, Observable } from 'rxjs'\nimport { isEmptyObject } from '@blackglory/types'\n\nexport interface IFiniteStateMachineStateChange<\n State extends string\n, Event extends string\n> {\n event: Event\n oldState: State\n newState: State\n}\n\nexport class ObservableFiniteStateMachine<\n State extends string\n, Event extends string\n> extends FiniteStateMachine<State, Event> {\n private stateChanges = new Subject<IFiniteStateMachineStateChange<State, Event>>()\n\n observeStateChanges(): Observable<IFiniteStateMachineStateChange<State, Event>> {\n return this.stateChanges\n }\n\n /**\n * @throws {BadEventError}\n */\n send(event: Event): void {\n const oldState = this.state\n super.send(event)\n const newState = this.state\n\n this.stateChanges.next({ event, oldState, newState })\n if (isEmptyObject(this.schema[newState])) {\n this.stateChanges.complete()\n }\n }\n}\n\nexport { BadEventError } from './finite-state-machine'\n","import { Cons } from 'justypes'\nexport { Cons } from 'justypes'\n\nexport function convertConsToArray<T>([value, next]: Cons<T>): T[] {\n if (next === null) return [value]\n return [value, ...convertConsToArray(next)]\n}\n\nexport function convertArrayToCons<T>([value, ...next]: T[]): Cons<T> {\n return [value, next.length ? convertArrayToCons(next) : null]\n}\n"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__extends","TypeError","String","__","this","constructor","create","__values","o","s","Symbol","iterator","m","i","length","next","value","done","__read","n","r","e","ar","push","error","__spreadArray","to","from","pack","arguments","l","slice","concat","__classPrivateFieldGet","receiver","state","kind","f","has","get","__classPrivateFieldSet","set","Emitter","[object Object]","_Emitter_map","Map","WeakMap","toStringTag","name","event","handler","Set","add","handlers","delete","size","forEach","cb","HashMap","hash","_HashMap_map","key","clear","HashSet","_HashSet_map","values","Queue","_Queue_items","items","shift","item","index","indexOf","splice","go_1","go","go$3","fn","__createBinding","k","k2","undefined","defineProperty","enumerable","__exportStar","exports","require$$0","CustomError","Error","customError","ExpectedError","custom_error_1","expectedError","assertionError","AssertionError","assertionError$1","normalize_1","normalize","normalize$3","err","_a","message","stack","refute_1","expected_error_1","refute$1","refute","condition","assert_1","assertion_error_1","assert$3","assert","require$$1","require$$2","require$$3","require$$4","require$$5","chunkAsync_1","chunkAsync","errors_1","chunkAsync$3","iterable","Number","isInteger","async","buffer","element","isArray","val","array","isntEmptyArray","isEmptyArray","isntArray","array$2","isNull","_null$2","isntNull","isUndefined","_undefined$2","isntUndefined","asyncIterable$2","isntAsyncIterable","null_1","undefined_1","isAsyncIterable","asyncIterator","isBigInt","bigint$2","isntBigInt","isBoolean","boolean$2","isntBoolean","isString","string$2","isntString","char$2","isntChar","string_1","isChar","isDate","Date","date$2","isntDate","_enum","inEnum","_enum$2","includes","isError","error$2","isntError","isFalsy","falsy$2","isntFalsy","isFunction","_function$2","isntFunction","iterable$2","isntIterable","isIterable","funcProto","Function","objectProto","funcToString","toString","objectCtorString","objectToString","getPrototype","func","transform","arg","overArg","getPrototypeOf","lodash_isplainobject","isObjectLike","result","isHostObject","proto","Ctor","__importDefault","mod","__esModule","default","object","isntEmptyObject","isEmptyObject","isntPlainObject","isPlainObject","isObject","lodash_isplainobject_1","object$2","isntObject","keys","isNumber","number$2","isntNumber","jsonRpc","isntJsonRpcError","isntJsonRpcSuccess","isJsonRpcSuccess","isJsonRpcRequest","isntJsonRpcNotification","array_1","object_1","number_1","isJsonRpcId","isJsonRpcParams","isJsonRpcNotification","jsonrpc","method","id","params","isJsonRpcError","code","data","isJsonRpcErrorObject","jsonRpc$1","isntJsonRpcRequest","json$2","isntJson","isJson","JSON","stringify","url","isAbsoluteURL","url$2","str","URL","require$$6","require$$7","require$$8","require$$9","require$$10","require$$11","require$$12","require$$13","require$$14","require$$15","require$$16","require$$17","require$$18","chunkByAsync_1","chunkByAsync","types_1","chunkByAsync$3","predicate","chunkByAsyncIterable","chunkByIterable","chunkBy_1","chunkBy","chunkBy$3","chunk_1","chunk$3","chunk","concatAsync_1","concatAsync$3","concatAsync","otherIterables","iter","concat_1","concat$3","utils$1","copyIterable","copyAsyncIterable","dropAsync_1","dropAsync","utils_1","dropAsync$3","count","return","dropRightAsync_1","dropRightAsync","toArrayAsync","dropRight_1","dropRight$3","dropRight","arr","dropUntilAsync_1","dropUntilAsync$3","dropUntilAsync","dropUntilAsyncIterable","dropUntilIterable","dropUntil_1","dropUntil","dropUntil$3","drop_1","drop$3","drop","filterAsync_1","filterAsync$3","filterAsync","filterAsyncIterable","filterIterable","filter_1","filter","filter$3","flattenByAsync_1","isFiniteIterable","flattenByAsync","level","flatten","flattenByAsyncIterable","flattenByIterable","flattenDeepAsync_1","flattenDeepAsync","flatten_by_async_1","flattenDeepAsync$3","depth","Infinity","_","flattenAsync_1","flattenAsync","flatten_deep_async_1","flattenAsync$3","flattenBy_1","flattenBy","flattenDeep_1","flatten_by_1","flattenDeep$3","flattenDeep","flatten_1","flatten_deep_1","flatten$3","mapAsync_1","mapAsync$3","mapAsync","mapAsyncIterable","mapIterable","map_1","map","map$3","repeatAsync_1","repeatAsync","times","process","env","NODE_ENV","console","warn","warnInfiniteLoop","cache","repeat_1","repeat","sliceAsync_1","sliceAsync$3","sliceAsync","start","end","slice_1","slice$3","splitAsync_1","splitAsync","splitAsync$3","separator","splitByAsync_1","splitByAsync$3","splitByAsync","splitByAsyncIterable","splitByIterable","splitBy_1","splitBy","splitBy$3","split_1","split","split$3","takeAsync_1","takeAsync$3","takeAsync","takeRightAsync_1","takeRightAsync$3","takeRightAsync","takeRight_1","takeRight$3","takeRight","takeUntilAsync_1","takeUntilAsync$3","takeUntilAsync","takeUntilAsyncIterable","takeUntilIterable","takeUntil_1","takeUntil","takeUntil$3","take_1","take$3","take","tapAsync_1","tapAsync$3","tapAsync","tapAsyncIterable","tapIterable","tap_1","tap","tap$3","toAsyncIterable_1","toAsyncIterable","toAsyncIterable$3","transformAsync_1","transformAsync","transformAsync$3","transformer","transform_1","transform$3","uniqAsync_1","uniqAsync","uniqAsync$3","bucket","uniqByAsync_1","uniqByAsync$3","uniqByAsync","uniqByAsyncIterable","uniqByIterable","uniqBy_1","uniqBy","uniqBy$3","uniq_1","uniq","uniq$3","zipAsync_1","Kind","zipAsync","iterables","_b","_c","_d","iterators","Async","Sync","dones","temp","undoneIterators","zipWithSize","zip_1","zip","x","require$$19","require$$20","require$$21","require$$22","require$$23","require$$24","require$$25","require$$26","require$$27","require$$28","require$$29","require$$30","require$$31","require$$32","require$$33","require$$34","require$$35","require$$36","require$$37","require$$38","require$$39","require$$40","require$$41","require$$42","require$$43","require$$44","require$$45","require$$46","consume_1","consume","consume$3","consumer","eachAsync_1","eachAsync$3","eachAsync","eachAsyncIterable","eachIterable","each_1","each","each$3","everyAsync_1","everyAsync$3","everyAsync","everyAsyncIterable","everyIterable","every_1","every","every$3","findAsync_1","findAsync$3","findAsync","findAsyncIterable","findIterable","find_1","find","find$3","firstAsync_1","firstAsync","firstAsync$3","first_1","first","first$3","includesAsync_1","includesAsync","includesAsync$3","includes_1","includes$3","matchAsync_1","matchAsync","matchAsync$3","sequence","sequenceLength","matchCount","match_1","match","match$3","reduceAsync_1","reduceAsync","initialValue","reduceAsyncIterable","reduceIterable","readInitialValue","reduceAsyncWithoutInitialValue","currentValue","reduceAsyncWithInitialValue","reduce_1","reduce","reduceWithoutInitialValue","reduceWithInitialValue","someAsync_1","someAsync$3","someAsync","someAsyncIterable","someIterable","some_1","some","some$3","lastAsync_1","lastAsync","lastAsync$3","last_1","last","last$3","toArrayAsync_1","toArrayAsync$4","toArray_1","toArray$3","toArray","toSetAsync_1","toSetAsync$3","toSetAsync","toSet_1","toSet$3","toSet","traverseErrorPrototypeChain_1","traverseErrorPrototypeChain","traverseErrorPrototypeChain$1","current","getErrorNames_1","getErrorNames","traverse_error_prototype_chain_1","getErrorNames$1","ancestors","isSerializableError","serializableError","iterable_operator_1","get_error_names_1","serializable_error_1","hasInstance","instance","reversedClassNames","reverse","reversedInstanceNames","customError$1","normalize$1","pass_1","pass","pass$1","hydrate_1","hydrate","createChildErrorConstructor","parentErrorConstructor","errorNames","errorConstructor","assert$1","go$1","chunkAsync$1","array$1","_null$1","_undefined$1","asyncIterable$1","bigint$1","boolean$1","string$1","char$1","date$1","_enum$1","error$1","falsy$1","_function$1","iterable$1","object$1","number$1","json$1","url$1","chunkByAsync$1","chunkBy$1","chunk$1","concatAsync$1","concat$1","utils","dropAsync$1","dropRight$1","dropUntilAsync$1","dropUntil$1","drop$1","filterAsync$1","filter$1","flattenDeepAsync$1","flattenAsync$1","flattenDeep$1","flatten$1","mapAsync$1","map$1","sliceAsync$1","slice$1","splitAsync$1","splitByAsync$1","splitBy$1","split$1","takeAsync$1","takeRightAsync$1","takeRight$1","takeUntilAsync$1","takeUntil$1","take$1","tapAsync$1","tap$1","toAsyncIterable$1","transformAsync$1","transform$1","uniqAsync$1","uniqByAsync$1","uniqBy$1","uniq$1","consume$1","eachAsync$1","each$1","everyAsync$1","every$1","findAsync$1","find$1","firstAsync$1","first$1","includesAsync$1","includes$1","matchAsync$1","match$1","someAsync$1","some$1","lastAsync$1","last$1","toArrayAsync$1","toArray$1","toSetAsync$1","toSet$1","LRUMap","limit","_LRUMap_limit","_LRUMap_map","updateItem","getColdestKey","random_1","random","random$1","min","max","Math","randomInt_1","randomInt","randomInt$1","ceil","floor","randomIntInclusive_1","randomIntInclusive","randomIntInclusive$1","exponentialBackoff","calculateExponentialBackoffTimeout","extra_rand_1","baseTimeout","retries","maxTimeout","factor","jitter","timeout","setTimeout_1","setTimeout","setTimeout$2","timer","globalThis","clearTimeout","setSchedule_1","set_timeout_1","setSchedule$1","setSchedule","timestamp","now","setInterval_1","setInterval","setInterval$1","clearInterval","setImmediate_1","setImmediate$1","setImmediate","clearImmediate","setTimeoutLoop_1","setTimeoutLoop$1","setTimeoutLoop","isCancelled","cancel","loop","setDynamicTimeoutLoop_1","setDynamicTimeoutLoop$1","setDynamicTimeoutLoop","elapsed","ExpirableMap","_ExpirableMap_map","_ExpirableMap_cancelClearTimeout","itemMetadataSortedByExpirationTime","maxAge","removeItemMetadata","addItemMetadata","exists","findIndex","rescheduleClearTimeout","expirationTime","indexOfFirstUnexpired","isFinite","clearExpiredItems","TLRUMap","_TLRUMap_limit","_TLRUMap_map","_TLRUMap_cancelClearTimeout","indexOfFirstUnexpiredItem","TrieNode","children","TrieMap","_TrieMap_root","node","part","parentNodes","parentNode","FiniteStateMachine","schema","initialState","_FiniteStateMachine_state","can","BadEventError","super","createErrorClass","createImpl","ctorFunc","UnsubscriptionError","_super","errors","join","arrRemove","Subscription","initialTeardown","closed","_parentage","_finalizers","empty","unsubscribe","e_1","e_2","_parentage_1","_parentage_1_1","remove","e_1_1","initialFinalizer","_finalizers_1","_finalizers_1_1","finalizer","execFinalizer","e_2_1","teardown","_hasParent","_addParent","parent","_removeParent","EMPTY","EMPTY_SUBSCRIPTION","isSubscription","config","onUnhandledError","onStoppedNotification","Promise","useDeprecatedSynchronousErrorHandling","useDeprecatedNextContext","timeoutProvider","args","_i","delegate","apply","handle","noop","context","errorContext","isRoot","errorThrown","Subscriber","destination","_this","isStopped","EMPTY_OBSERVER","complete","SafeSubscriber","_next","_error","_complete","_bind","bind","thisArg","ConsumerObserver","partialObserver","handleUnhandledError","observerOrNext","context_1","observable","identity","pipeFromArray","fns","input","prev","Observable","subscribe","_subscribe","lift","operator","source","subscriber","isObserver","_trySubscribe","sink","promiseCtor","getPromiseCtor","resolve","reject","Symbol_observable","pipe","operations","toPromise","ObjectUnsubscribedError","Subject","currentObservers","observers","hasError","thrownError","subject","AnonymousSubject","_throwIfClosed","configurable","_checkFinalizedStatuses","_innerSubscribe","asObservable","_null","_undefined","_function","asyncIterable","function_1","bigint","boolean","string","char","date","falsy","number","json","isntJsonable","isJsonable","boolean_1","promise","isPromiseLike","isntPromiseLike","isntPromise","isPromise","then","_Box_value","stateChanges","oldState","send","newState","convertArrayToCons","convertConsToArray"],"mappings":";;;;;;;;;;;;;;oFAgBA,cAAIA,EAAgB,SAASC,EAAGC,GAI5B,OA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