@ssv-labs/ssv-sdk 0.0.3 → 0.0.4
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.
- package/dist/api/subgraph/index.d.ts +2 -2
- package/dist/config/chains.d.ts +83 -1
- package/dist/libs/api/index.d.ts +1 -1
- package/dist/main.js +513 -544
- package/dist/main.mjs +514 -545
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as decodeOperatorPublicKey, M as MapCache, S as Symbol$1, e as eq, U as Uint8Array$1, g as getAllKeys, a as getTag, i as isBuffer, b as Stack, c as isTypedArray$1, f as isArray$1, h as isObjectLike$1, s as stringifyBigints, j as isUndefined$1, t as tryCatch$1, k as configArgsSchema, l as getClusterSnapshot$1, m as isKeySharesItem, n as createClusterId, o as createEmptyCluster, r as roundOperatorFee, p as bigintMax, q as ensureNoKeysharesErrors, u as ensureValidatorsUniqueness, v as validateConsistentOperatorPublicKeys, w as validateConsistentOperatorIds, x as sortNumbers, K as KeysharesValidationError, y as KeysharesValidationErrors } from "./config-DlwfpwZd.mjs";
|
|
2
|
-
import { decodeEventLog, encodeAbiParameters, parseAbiParameters, isAddressEqual, zeroAddress } from "viem";
|
|
2
|
+
import { defineChain as defineChain$1, decodeEventLog, encodeAbiParameters, parseAbiParameters, isAddressEqual, zeroAddress } from "viem";
|
|
3
3
|
import { SSVKeys, KeyShares, KeySharesItem } from "ssv-keys";
|
|
4
4
|
function getDefaultExportFromCjs$1(x) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -135,17 +135,17 @@ process.env = {};
|
|
|
135
135
|
process.argv = [];
|
|
136
136
|
process.version = "";
|
|
137
137
|
process.versions = {};
|
|
138
|
-
function noop() {
|
|
139
|
-
}
|
|
140
|
-
process.on = noop;
|
|
141
|
-
process.addListener = noop;
|
|
142
|
-
process.once = noop;
|
|
143
|
-
process.off = noop;
|
|
144
|
-
process.removeListener = noop;
|
|
145
|
-
process.removeAllListeners = noop;
|
|
146
|
-
process.emit = noop;
|
|
147
|
-
process.prependListener = noop;
|
|
148
|
-
process.prependOnceListener = noop;
|
|
138
|
+
function noop$2() {
|
|
139
|
+
}
|
|
140
|
+
process.on = noop$2;
|
|
141
|
+
process.addListener = noop$2;
|
|
142
|
+
process.once = noop$2;
|
|
143
|
+
process.off = noop$2;
|
|
144
|
+
process.removeListener = noop$2;
|
|
145
|
+
process.removeAllListeners = noop$2;
|
|
146
|
+
process.emit = noop$2;
|
|
147
|
+
process.prependListener = noop$2;
|
|
148
|
+
process.prependOnceListener = noop$2;
|
|
149
149
|
process.listeners = function(name2) {
|
|
150
150
|
return [];
|
|
151
151
|
};
|
|
@@ -943,7 +943,7 @@ var dist = {};
|
|
|
943
943
|
}
|
|
944
944
|
return -1;
|
|
945
945
|
}
|
|
946
|
-
Buffer3.prototype.includes = function
|
|
946
|
+
Buffer3.prototype.includes = function includes2(val, byteOffset, encoding) {
|
|
947
947
|
return this.indexOf(val, byteOffset, encoding) !== -1;
|
|
948
948
|
};
|
|
949
949
|
Buffer3.prototype.indexOf = function indexOf3(val, byteOffset, encoding) {
|
|
@@ -2555,7 +2555,7 @@ function EventEmitter() {
|
|
|
2555
2555
|
EventEmitter.init.call(this);
|
|
2556
2556
|
}
|
|
2557
2557
|
events.exports = EventEmitter;
|
|
2558
|
-
events.exports.once = once;
|
|
2558
|
+
events.exports.once = once$2;
|
|
2559
2559
|
EventEmitter.EventEmitter = EventEmitter;
|
|
2560
2560
|
EventEmitter.prototype._events = void 0;
|
|
2561
2561
|
EventEmitter.prototype._eventsCount = 0;
|
|
@@ -2849,7 +2849,7 @@ function unwrapListeners(arr) {
|
|
|
2849
2849
|
}
|
|
2850
2850
|
return ret;
|
|
2851
2851
|
}
|
|
2852
|
-
function once(emitter, name2) {
|
|
2852
|
+
function once$2(emitter, name2) {
|
|
2853
2853
|
return new Promise(function(resolve2, reject) {
|
|
2854
2854
|
function errorListener(err) {
|
|
2855
2855
|
emitter.removeListener(name2, resolver);
|
|
@@ -2891,14 +2891,7 @@ function eventTargetAgnosticAddListener(emitter, name2, listener, flags) {
|
|
|
2891
2891
|
}
|
|
2892
2892
|
}
|
|
2893
2893
|
var eventsExports = events.exports;
|
|
2894
|
-
var streamBrowser$1;
|
|
2895
|
-
var hasRequiredStreamBrowser;
|
|
2896
|
-
function requireStreamBrowser() {
|
|
2897
|
-
if (hasRequiredStreamBrowser) return streamBrowser$1;
|
|
2898
|
-
hasRequiredStreamBrowser = 1;
|
|
2899
|
-
streamBrowser$1 = eventsExports.EventEmitter;
|
|
2900
|
-
return streamBrowser$1;
|
|
2901
|
-
}
|
|
2894
|
+
var streamBrowser$1 = eventsExports.EventEmitter;
|
|
2902
2895
|
var util$3 = {};
|
|
2903
2896
|
var types$1 = {};
|
|
2904
2897
|
var shams$1 = function hasSymbols2() {
|
|
@@ -3053,10 +3046,10 @@ var implementation$1 = function bind2(that) {
|
|
|
3053
3046
|
};
|
|
3054
3047
|
var implementation = implementation$1;
|
|
3055
3048
|
var functionBind = Function.prototype.bind || implementation;
|
|
3056
|
-
var call = Function.prototype.call;
|
|
3049
|
+
var call$1 = Function.prototype.call;
|
|
3057
3050
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
3058
3051
|
var bind$1 = functionBind;
|
|
3059
|
-
var hasown = bind$1.call(call, $hasOwn);
|
|
3052
|
+
var hasown = bind$1.call(call$1, $hasOwn);
|
|
3060
3053
|
var undefined$1;
|
|
3061
3054
|
var $Error = esErrors;
|
|
3062
3055
|
var $EvalError = _eval;
|
|
@@ -4897,229 +4890,209 @@ function requireBuffer_list() {
|
|
|
4897
4890
|
}();
|
|
4898
4891
|
return buffer_list;
|
|
4899
4892
|
}
|
|
4900
|
-
|
|
4901
|
-
var
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
if (
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
if (!this._writableState) {
|
|
4914
|
-
process$1.nextTick(emitErrorNT2, this, err);
|
|
4915
|
-
} else if (!this._writableState.errorEmitted) {
|
|
4916
|
-
this._writableState.errorEmitted = true;
|
|
4917
|
-
process$1.nextTick(emitErrorNT2, this, err);
|
|
4918
|
-
}
|
|
4893
|
+
function destroy$1(err, cb) {
|
|
4894
|
+
var _this = this;
|
|
4895
|
+
var readableDestroyed = this._readableState && this._readableState.destroyed;
|
|
4896
|
+
var writableDestroyed = this._writableState && this._writableState.destroyed;
|
|
4897
|
+
if (readableDestroyed || writableDestroyed) {
|
|
4898
|
+
if (cb) {
|
|
4899
|
+
cb(err);
|
|
4900
|
+
} else if (err) {
|
|
4901
|
+
if (!this._writableState) {
|
|
4902
|
+
process$1.nextTick(emitErrorNT$1, this, err);
|
|
4903
|
+
} else if (!this._writableState.errorEmitted) {
|
|
4904
|
+
this._writableState.errorEmitted = true;
|
|
4905
|
+
process$1.nextTick(emitErrorNT$1, this, err);
|
|
4919
4906
|
}
|
|
4920
|
-
return this;
|
|
4921
4907
|
}
|
|
4922
|
-
if (this._readableState) {
|
|
4923
|
-
this._readableState.destroyed = true;
|
|
4924
|
-
}
|
|
4925
|
-
if (this._writableState) {
|
|
4926
|
-
this._writableState.destroyed = true;
|
|
4927
|
-
}
|
|
4928
|
-
this._destroy(err || null, function(err2) {
|
|
4929
|
-
if (!cb && err2) {
|
|
4930
|
-
if (!_this._writableState) {
|
|
4931
|
-
process$1.nextTick(emitErrorAndCloseNT, _this, err2);
|
|
4932
|
-
} else if (!_this._writableState.errorEmitted) {
|
|
4933
|
-
_this._writableState.errorEmitted = true;
|
|
4934
|
-
process$1.nextTick(emitErrorAndCloseNT, _this, err2);
|
|
4935
|
-
} else {
|
|
4936
|
-
process$1.nextTick(emitCloseNT, _this);
|
|
4937
|
-
}
|
|
4938
|
-
} else if (cb) {
|
|
4939
|
-
process$1.nextTick(emitCloseNT, _this);
|
|
4940
|
-
cb(err2);
|
|
4941
|
-
} else {
|
|
4942
|
-
process$1.nextTick(emitCloseNT, _this);
|
|
4943
|
-
}
|
|
4944
|
-
});
|
|
4945
4908
|
return this;
|
|
4946
4909
|
}
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
emitCloseNT(self2);
|
|
4950
|
-
}
|
|
4951
|
-
function emitCloseNT(self2) {
|
|
4952
|
-
if (self2._writableState && !self2._writableState.emitClose) return;
|
|
4953
|
-
if (self2._readableState && !self2._readableState.emitClose) return;
|
|
4954
|
-
self2.emit("close");
|
|
4955
|
-
}
|
|
4956
|
-
function undestroy2() {
|
|
4957
|
-
if (this._readableState) {
|
|
4958
|
-
this._readableState.destroyed = false;
|
|
4959
|
-
this._readableState.reading = false;
|
|
4960
|
-
this._readableState.ended = false;
|
|
4961
|
-
this._readableState.endEmitted = false;
|
|
4962
|
-
}
|
|
4963
|
-
if (this._writableState) {
|
|
4964
|
-
this._writableState.destroyed = false;
|
|
4965
|
-
this._writableState.ended = false;
|
|
4966
|
-
this._writableState.ending = false;
|
|
4967
|
-
this._writableState.finalCalled = false;
|
|
4968
|
-
this._writableState.prefinished = false;
|
|
4969
|
-
this._writableState.finished = false;
|
|
4970
|
-
this._writableState.errorEmitted = false;
|
|
4971
|
-
}
|
|
4972
|
-
}
|
|
4973
|
-
function emitErrorNT2(self2, err) {
|
|
4974
|
-
self2.emit("error", err);
|
|
4975
|
-
}
|
|
4976
|
-
function errorOrDestroy(stream, err) {
|
|
4977
|
-
var rState = stream._readableState;
|
|
4978
|
-
var wState = stream._writableState;
|
|
4979
|
-
if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);
|
|
4980
|
-
else stream.emit("error", err);
|
|
4981
|
-
}
|
|
4982
|
-
destroy_1$1 = {
|
|
4983
|
-
destroy: destroy2,
|
|
4984
|
-
undestroy: undestroy2,
|
|
4985
|
-
errorOrDestroy
|
|
4986
|
-
};
|
|
4987
|
-
return destroy_1$1;
|
|
4988
|
-
}
|
|
4989
|
-
var errorsBrowser = {};
|
|
4990
|
-
var hasRequiredErrorsBrowser;
|
|
4991
|
-
function requireErrorsBrowser() {
|
|
4992
|
-
if (hasRequiredErrorsBrowser) return errorsBrowser;
|
|
4993
|
-
hasRequiredErrorsBrowser = 1;
|
|
4994
|
-
function _inheritsLoose(subClass, superClass) {
|
|
4995
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
4996
|
-
subClass.prototype.constructor = subClass;
|
|
4997
|
-
subClass.__proto__ = superClass;
|
|
4998
|
-
}
|
|
4999
|
-
var codes = {};
|
|
5000
|
-
function createErrorType(code, message, Base2) {
|
|
5001
|
-
if (!Base2) {
|
|
5002
|
-
Base2 = Error;
|
|
5003
|
-
}
|
|
5004
|
-
function getMessage(arg1, arg2, arg3) {
|
|
5005
|
-
if (typeof message === "string") {
|
|
5006
|
-
return message;
|
|
5007
|
-
} else {
|
|
5008
|
-
return message(arg1, arg2, arg3);
|
|
5009
|
-
}
|
|
5010
|
-
}
|
|
5011
|
-
var NodeError = /* @__PURE__ */ function(_Base) {
|
|
5012
|
-
_inheritsLoose(NodeError2, _Base);
|
|
5013
|
-
function NodeError2(arg1, arg2, arg3) {
|
|
5014
|
-
return _Base.call(this, getMessage(arg1, arg2, arg3)) || this;
|
|
5015
|
-
}
|
|
5016
|
-
return NodeError2;
|
|
5017
|
-
}(Base2);
|
|
5018
|
-
NodeError.prototype.name = Base2.name;
|
|
5019
|
-
NodeError.prototype.code = code;
|
|
5020
|
-
codes[code] = NodeError;
|
|
4910
|
+
if (this._readableState) {
|
|
4911
|
+
this._readableState.destroyed = true;
|
|
5021
4912
|
}
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
4913
|
+
if (this._writableState) {
|
|
4914
|
+
this._writableState.destroyed = true;
|
|
4915
|
+
}
|
|
4916
|
+
this._destroy(err || null, function(err2) {
|
|
4917
|
+
if (!cb && err2) {
|
|
4918
|
+
if (!_this._writableState) {
|
|
4919
|
+
process$1.nextTick(emitErrorAndCloseNT, _this, err2);
|
|
4920
|
+
} else if (!_this._writableState.errorEmitted) {
|
|
4921
|
+
_this._writableState.errorEmitted = true;
|
|
4922
|
+
process$1.nextTick(emitErrorAndCloseNT, _this, err2);
|
|
5032
4923
|
} else {
|
|
5033
|
-
|
|
4924
|
+
process$1.nextTick(emitCloseNT, _this);
|
|
5034
4925
|
}
|
|
4926
|
+
} else if (cb) {
|
|
4927
|
+
process$1.nextTick(emitCloseNT, _this);
|
|
4928
|
+
cb(err2);
|
|
5035
4929
|
} else {
|
|
5036
|
-
|
|
4930
|
+
process$1.nextTick(emitCloseNT, _this);
|
|
5037
4931
|
}
|
|
4932
|
+
});
|
|
4933
|
+
return this;
|
|
4934
|
+
}
|
|
4935
|
+
function emitErrorAndCloseNT(self2, err) {
|
|
4936
|
+
emitErrorNT$1(self2, err);
|
|
4937
|
+
emitCloseNT(self2);
|
|
4938
|
+
}
|
|
4939
|
+
function emitCloseNT(self2) {
|
|
4940
|
+
if (self2._writableState && !self2._writableState.emitClose) return;
|
|
4941
|
+
if (self2._readableState && !self2._readableState.emitClose) return;
|
|
4942
|
+
self2.emit("close");
|
|
4943
|
+
}
|
|
4944
|
+
function undestroy$1() {
|
|
4945
|
+
if (this._readableState) {
|
|
4946
|
+
this._readableState.destroyed = false;
|
|
4947
|
+
this._readableState.reading = false;
|
|
4948
|
+
this._readableState.ended = false;
|
|
4949
|
+
this._readableState.endEmitted = false;
|
|
5038
4950
|
}
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
4951
|
+
if (this._writableState) {
|
|
4952
|
+
this._writableState.destroyed = false;
|
|
4953
|
+
this._writableState.ended = false;
|
|
4954
|
+
this._writableState.ending = false;
|
|
4955
|
+
this._writableState.finalCalled = false;
|
|
4956
|
+
this._writableState.prefinished = false;
|
|
4957
|
+
this._writableState.finished = false;
|
|
4958
|
+
this._writableState.errorEmitted = false;
|
|
5047
4959
|
}
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
4960
|
+
}
|
|
4961
|
+
function emitErrorNT$1(self2, err) {
|
|
4962
|
+
self2.emit("error", err);
|
|
4963
|
+
}
|
|
4964
|
+
function errorOrDestroy(stream, err) {
|
|
4965
|
+
var rState = stream._readableState;
|
|
4966
|
+
var wState = stream._writableState;
|
|
4967
|
+
if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);
|
|
4968
|
+
else stream.emit("error", err);
|
|
4969
|
+
}
|
|
4970
|
+
var destroy_1$1 = {
|
|
4971
|
+
destroy: destroy$1,
|
|
4972
|
+
undestroy: undestroy$1,
|
|
4973
|
+
errorOrDestroy
|
|
4974
|
+
};
|
|
4975
|
+
var errorsBrowser = {};
|
|
4976
|
+
function _inheritsLoose(subClass, superClass) {
|
|
4977
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
4978
|
+
subClass.prototype.constructor = subClass;
|
|
4979
|
+
subClass.__proto__ = superClass;
|
|
4980
|
+
}
|
|
4981
|
+
var codes = {};
|
|
4982
|
+
function createErrorType(code, message, Base2) {
|
|
4983
|
+
if (!Base2) {
|
|
4984
|
+
Base2 = Error;
|
|
4985
|
+
}
|
|
4986
|
+
function getMessage(arg1, arg2, arg3) {
|
|
4987
|
+
if (typeof message === "string") {
|
|
4988
|
+
return message;
|
|
5054
4989
|
} else {
|
|
5055
|
-
return
|
|
4990
|
+
return message(arg1, arg2, arg3);
|
|
5056
4991
|
}
|
|
5057
4992
|
}
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
var determiner;
|
|
5063
|
-
if (typeof expected === "string" && startsWith(expected, "not ")) {
|
|
5064
|
-
determiner = "must not be";
|
|
5065
|
-
expected = expected.replace(/^not /, "");
|
|
5066
|
-
} else {
|
|
5067
|
-
determiner = "must be";
|
|
4993
|
+
var NodeError = /* @__PURE__ */ function(_Base) {
|
|
4994
|
+
_inheritsLoose(NodeError2, _Base);
|
|
4995
|
+
function NodeError2(arg1, arg2, arg3) {
|
|
4996
|
+
return _Base.call(this, getMessage(arg1, arg2, arg3)) || this;
|
|
5068
4997
|
}
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
4998
|
+
return NodeError2;
|
|
4999
|
+
}(Base2);
|
|
5000
|
+
NodeError.prototype.name = Base2.name;
|
|
5001
|
+
NodeError.prototype.code = code;
|
|
5002
|
+
codes[code] = NodeError;
|
|
5003
|
+
}
|
|
5004
|
+
function oneOf(expected, thing) {
|
|
5005
|
+
if (Array.isArray(expected)) {
|
|
5006
|
+
var len = expected.length;
|
|
5007
|
+
expected = expected.map(function(i) {
|
|
5008
|
+
return String(i);
|
|
5009
|
+
});
|
|
5010
|
+
if (len > 2) {
|
|
5011
|
+
return "one of ".concat(thing, " ").concat(expected.slice(0, len - 1).join(", "), ", or ") + expected[len - 1];
|
|
5012
|
+
} else if (len === 2) {
|
|
5013
|
+
return "one of ".concat(thing, " ").concat(expected[0], " or ").concat(expected[1]);
|
|
5072
5014
|
} else {
|
|
5073
|
-
|
|
5074
|
-
msg = 'The "'.concat(name2, '" ').concat(type2, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
|
|
5015
|
+
return "of ".concat(thing, " ").concat(expected[0]);
|
|
5075
5016
|
}
|
|
5076
|
-
|
|
5077
|
-
return
|
|
5078
|
-
}
|
|
5079
|
-
createErrorType("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
|
|
5080
|
-
createErrorType("ERR_METHOD_NOT_IMPLEMENTED", function(name2) {
|
|
5081
|
-
return "The " + name2 + " method is not implemented";
|
|
5082
|
-
});
|
|
5083
|
-
createErrorType("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
|
|
5084
|
-
createErrorType("ERR_STREAM_DESTROYED", function(name2) {
|
|
5085
|
-
return "Cannot call " + name2 + " after a stream was destroyed";
|
|
5086
|
-
});
|
|
5087
|
-
createErrorType("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
|
|
5088
|
-
createErrorType("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
|
|
5089
|
-
createErrorType("ERR_STREAM_WRITE_AFTER_END", "write after end");
|
|
5090
|
-
createErrorType("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
|
|
5091
|
-
createErrorType("ERR_UNKNOWN_ENCODING", function(arg) {
|
|
5092
|
-
return "Unknown encoding: " + arg;
|
|
5093
|
-
}, TypeError);
|
|
5094
|
-
createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
5095
|
-
errorsBrowser.codes = codes;
|
|
5096
|
-
return errorsBrowser;
|
|
5097
|
-
}
|
|
5098
|
-
var state;
|
|
5099
|
-
var hasRequiredState;
|
|
5100
|
-
function requireState() {
|
|
5101
|
-
if (hasRequiredState) return state;
|
|
5102
|
-
hasRequiredState = 1;
|
|
5103
|
-
var ERR_INVALID_OPT_VALUE = requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;
|
|
5104
|
-
function highWaterMarkFrom(options2, isDuplex, duplexKey) {
|
|
5105
|
-
return options2.highWaterMark != null ? options2.highWaterMark : isDuplex ? options2[duplexKey] : null;
|
|
5106
|
-
}
|
|
5107
|
-
function getHighWaterMark(state2, options2, duplexKey, isDuplex) {
|
|
5108
|
-
var hwm = highWaterMarkFrom(options2, isDuplex, duplexKey);
|
|
5109
|
-
if (hwm != null) {
|
|
5110
|
-
if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
|
|
5111
|
-
var name2 = isDuplex ? duplexKey : "highWaterMark";
|
|
5112
|
-
throw new ERR_INVALID_OPT_VALUE(name2, hwm);
|
|
5113
|
-
}
|
|
5114
|
-
return Math.floor(hwm);
|
|
5115
|
-
}
|
|
5116
|
-
return state2.objectMode ? 16 : 16 * 1024;
|
|
5117
|
-
}
|
|
5118
|
-
state = {
|
|
5119
|
-
getHighWaterMark
|
|
5120
|
-
};
|
|
5121
|
-
return state;
|
|
5017
|
+
} else {
|
|
5018
|
+
return "of ".concat(thing, " ").concat(String(expected));
|
|
5019
|
+
}
|
|
5122
5020
|
}
|
|
5021
|
+
function startsWith(str, search, pos) {
|
|
5022
|
+
return str.substr(0, search.length) === search;
|
|
5023
|
+
}
|
|
5024
|
+
function endsWith(str, search, this_len) {
|
|
5025
|
+
if (this_len === void 0 || this_len > str.length) {
|
|
5026
|
+
this_len = str.length;
|
|
5027
|
+
}
|
|
5028
|
+
return str.substring(this_len - search.length, this_len) === search;
|
|
5029
|
+
}
|
|
5030
|
+
function includes(str, search, start) {
|
|
5031
|
+
if (typeof start !== "number") {
|
|
5032
|
+
start = 0;
|
|
5033
|
+
}
|
|
5034
|
+
if (start + search.length > str.length) {
|
|
5035
|
+
return false;
|
|
5036
|
+
} else {
|
|
5037
|
+
return str.indexOf(search, start) !== -1;
|
|
5038
|
+
}
|
|
5039
|
+
}
|
|
5040
|
+
createErrorType("ERR_INVALID_OPT_VALUE", function(name2, value) {
|
|
5041
|
+
return 'The value "' + value + '" is invalid for option "' + name2 + '"';
|
|
5042
|
+
}, TypeError);
|
|
5043
|
+
createErrorType("ERR_INVALID_ARG_TYPE", function(name2, expected, actual) {
|
|
5044
|
+
var determiner;
|
|
5045
|
+
if (typeof expected === "string" && startsWith(expected, "not ")) {
|
|
5046
|
+
determiner = "must not be";
|
|
5047
|
+
expected = expected.replace(/^not /, "");
|
|
5048
|
+
} else {
|
|
5049
|
+
determiner = "must be";
|
|
5050
|
+
}
|
|
5051
|
+
var msg;
|
|
5052
|
+
if (endsWith(name2, " argument")) {
|
|
5053
|
+
msg = "The ".concat(name2, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
|
|
5054
|
+
} else {
|
|
5055
|
+
var type2 = includes(name2, ".") ? "property" : "argument";
|
|
5056
|
+
msg = 'The "'.concat(name2, '" ').concat(type2, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
|
|
5057
|
+
}
|
|
5058
|
+
msg += ". Received type ".concat(typeof actual);
|
|
5059
|
+
return msg;
|
|
5060
|
+
}, TypeError);
|
|
5061
|
+
createErrorType("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
|
|
5062
|
+
createErrorType("ERR_METHOD_NOT_IMPLEMENTED", function(name2) {
|
|
5063
|
+
return "The " + name2 + " method is not implemented";
|
|
5064
|
+
});
|
|
5065
|
+
createErrorType("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
|
|
5066
|
+
createErrorType("ERR_STREAM_DESTROYED", function(name2) {
|
|
5067
|
+
return "Cannot call " + name2 + " after a stream was destroyed";
|
|
5068
|
+
});
|
|
5069
|
+
createErrorType("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
|
|
5070
|
+
createErrorType("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
|
|
5071
|
+
createErrorType("ERR_STREAM_WRITE_AFTER_END", "write after end");
|
|
5072
|
+
createErrorType("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
|
|
5073
|
+
createErrorType("ERR_UNKNOWN_ENCODING", function(arg) {
|
|
5074
|
+
return "Unknown encoding: " + arg;
|
|
5075
|
+
}, TypeError);
|
|
5076
|
+
createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
5077
|
+
errorsBrowser.codes = codes;
|
|
5078
|
+
var ERR_INVALID_OPT_VALUE = errorsBrowser.codes.ERR_INVALID_OPT_VALUE;
|
|
5079
|
+
function highWaterMarkFrom(options2, isDuplex, duplexKey) {
|
|
5080
|
+
return options2.highWaterMark != null ? options2.highWaterMark : isDuplex ? options2[duplexKey] : null;
|
|
5081
|
+
}
|
|
5082
|
+
function getHighWaterMark(state2, options2, duplexKey, isDuplex) {
|
|
5083
|
+
var hwm = highWaterMarkFrom(options2, isDuplex, duplexKey);
|
|
5084
|
+
if (hwm != null) {
|
|
5085
|
+
if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
|
|
5086
|
+
var name2 = isDuplex ? duplexKey : "highWaterMark";
|
|
5087
|
+
throw new ERR_INVALID_OPT_VALUE(name2, hwm);
|
|
5088
|
+
}
|
|
5089
|
+
return Math.floor(hwm);
|
|
5090
|
+
}
|
|
5091
|
+
return state2.objectMode ? 16 : 16 * 1024;
|
|
5092
|
+
}
|
|
5093
|
+
var state = {
|
|
5094
|
+
getHighWaterMark
|
|
5095
|
+
};
|
|
5123
5096
|
var browser$b = deprecate;
|
|
5124
5097
|
function deprecate(fn, msg) {
|
|
5125
5098
|
if (config$1("noDeprecation")) {
|
|
@@ -5170,7 +5143,7 @@ function require_stream_writable$1() {
|
|
|
5170
5143
|
var internalUtil = {
|
|
5171
5144
|
deprecate: browser$b
|
|
5172
5145
|
};
|
|
5173
|
-
var Stream2 =
|
|
5146
|
+
var Stream2 = streamBrowser$1;
|
|
5174
5147
|
var Buffer2 = dist.Buffer;
|
|
5175
5148
|
var OurUint8Array = (typeof commonjsGlobal !== "undefined" ? commonjsGlobal : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
|
|
5176
5149
|
};
|
|
@@ -5180,10 +5153,10 @@ function require_stream_writable$1() {
|
|
|
5180
5153
|
function _isUint8Array(obj) {
|
|
5181
5154
|
return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
|
|
5182
5155
|
}
|
|
5183
|
-
var destroyImpl =
|
|
5184
|
-
var _require =
|
|
5185
|
-
var _require$
|
|
5186
|
-
var
|
|
5156
|
+
var destroyImpl = destroy_1$1;
|
|
5157
|
+
var _require = state, getHighWaterMark2 = _require.getHighWaterMark;
|
|
5158
|
+
var _require$codes2 = errorsBrowser.codes, ERR_INVALID_ARG_TYPE = _require$codes2.ERR_INVALID_ARG_TYPE, ERR_METHOD_NOT_IMPLEMENTED2 = _require$codes2.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK2 = _require$codes2.ERR_MULTIPLE_CALLBACK, ERR_STREAM_CANNOT_PIPE = _require$codes2.ERR_STREAM_CANNOT_PIPE, ERR_STREAM_DESTROYED2 = _require$codes2.ERR_STREAM_DESTROYED, ERR_STREAM_NULL_VALUES = _require$codes2.ERR_STREAM_NULL_VALUES, ERR_STREAM_WRITE_AFTER_END = _require$codes2.ERR_STREAM_WRITE_AFTER_END, ERR_UNKNOWN_ENCODING = _require$codes2.ERR_UNKNOWN_ENCODING;
|
|
5159
|
+
var errorOrDestroy2 = destroyImpl.errorOrDestroy;
|
|
5187
5160
|
inherits_browserExports(Writable, Stream2);
|
|
5188
5161
|
function nop() {
|
|
5189
5162
|
}
|
|
@@ -5193,7 +5166,7 @@ function require_stream_writable$1() {
|
|
|
5193
5166
|
if (typeof isDuplex !== "boolean") isDuplex = stream instanceof Duplex2;
|
|
5194
5167
|
this.objectMode = !!options2.objectMode;
|
|
5195
5168
|
if (isDuplex) this.objectMode = this.objectMode || !!options2.writableObjectMode;
|
|
5196
|
-
this.highWaterMark =
|
|
5169
|
+
this.highWaterMark = getHighWaterMark2(this, options2, "writableHighWaterMark", isDuplex);
|
|
5197
5170
|
this.finalCalled = false;
|
|
5198
5171
|
this.needDrain = false;
|
|
5199
5172
|
this.ending = false;
|
|
@@ -5272,11 +5245,11 @@ function require_stream_writable$1() {
|
|
|
5272
5245
|
Stream2.call(this);
|
|
5273
5246
|
}
|
|
5274
5247
|
Writable.prototype.pipe = function() {
|
|
5275
|
-
|
|
5248
|
+
errorOrDestroy2(this, new ERR_STREAM_CANNOT_PIPE());
|
|
5276
5249
|
};
|
|
5277
5250
|
function writeAfterEnd(stream, cb) {
|
|
5278
5251
|
var er = new ERR_STREAM_WRITE_AFTER_END();
|
|
5279
|
-
|
|
5252
|
+
errorOrDestroy2(stream, er);
|
|
5280
5253
|
process$1.nextTick(cb, er);
|
|
5281
5254
|
}
|
|
5282
5255
|
function validChunk(stream, state2, chunk, cb) {
|
|
@@ -5287,7 +5260,7 @@ function require_stream_writable$1() {
|
|
|
5287
5260
|
er = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer"], chunk);
|
|
5288
5261
|
}
|
|
5289
5262
|
if (er) {
|
|
5290
|
-
|
|
5263
|
+
errorOrDestroy2(stream, er);
|
|
5291
5264
|
process$1.nextTick(cb, er);
|
|
5292
5265
|
return false;
|
|
5293
5266
|
}
|
|
@@ -5392,7 +5365,7 @@ function require_stream_writable$1() {
|
|
|
5392
5365
|
state2.writecb = cb;
|
|
5393
5366
|
state2.writing = true;
|
|
5394
5367
|
state2.sync = true;
|
|
5395
|
-
if (state2.destroyed) state2.onwrite(new
|
|
5368
|
+
if (state2.destroyed) state2.onwrite(new ERR_STREAM_DESTROYED2("write"));
|
|
5396
5369
|
else if (writev) stream._writev(chunk, state2.onwrite);
|
|
5397
5370
|
else stream._write(chunk, encoding, state2.onwrite);
|
|
5398
5371
|
state2.sync = false;
|
|
@@ -5403,11 +5376,11 @@ function require_stream_writable$1() {
|
|
|
5403
5376
|
process$1.nextTick(cb, er);
|
|
5404
5377
|
process$1.nextTick(finishMaybe, stream, state2);
|
|
5405
5378
|
stream._writableState.errorEmitted = true;
|
|
5406
|
-
|
|
5379
|
+
errorOrDestroy2(stream, er);
|
|
5407
5380
|
} else {
|
|
5408
5381
|
cb(er);
|
|
5409
5382
|
stream._writableState.errorEmitted = true;
|
|
5410
|
-
|
|
5383
|
+
errorOrDestroy2(stream, er);
|
|
5411
5384
|
finishMaybe(stream, state2);
|
|
5412
5385
|
}
|
|
5413
5386
|
}
|
|
@@ -5421,7 +5394,7 @@ function require_stream_writable$1() {
|
|
|
5421
5394
|
var state2 = stream._writableState;
|
|
5422
5395
|
var sync2 = state2.sync;
|
|
5423
5396
|
var cb = state2.writecb;
|
|
5424
|
-
if (typeof cb !== "function") throw new
|
|
5397
|
+
if (typeof cb !== "function") throw new ERR_MULTIPLE_CALLBACK2();
|
|
5425
5398
|
onwriteStateUpdate(state2);
|
|
5426
5399
|
if (er) onwriteError(stream, state2, sync2, er, cb);
|
|
5427
5400
|
else {
|
|
@@ -5494,7 +5467,7 @@ function require_stream_writable$1() {
|
|
|
5494
5467
|
state2.bufferProcessing = false;
|
|
5495
5468
|
}
|
|
5496
5469
|
Writable.prototype._write = function(chunk, encoding, cb) {
|
|
5497
|
-
cb(new
|
|
5470
|
+
cb(new ERR_METHOD_NOT_IMPLEMENTED2("_write()"));
|
|
5498
5471
|
};
|
|
5499
5472
|
Writable.prototype._writev = null;
|
|
5500
5473
|
Writable.prototype.end = function(chunk, encoding, cb) {
|
|
@@ -5531,7 +5504,7 @@ function require_stream_writable$1() {
|
|
|
5531
5504
|
stream._final(function(err) {
|
|
5532
5505
|
state2.pendingcb--;
|
|
5533
5506
|
if (err) {
|
|
5534
|
-
|
|
5507
|
+
errorOrDestroy2(stream, err);
|
|
5535
5508
|
}
|
|
5536
5509
|
state2.prefinished = true;
|
|
5537
5510
|
stream.emit("prefinish");
|
|
@@ -5935,95 +5908,88 @@ function simpleWrite(buf) {
|
|
|
5935
5908
|
function simpleEnd(buf) {
|
|
5936
5909
|
return buf && buf.length ? this.write(buf) : "";
|
|
5937
5910
|
}
|
|
5938
|
-
var
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
if (!
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
if (
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
stream.
|
|
6008
|
-
stream.
|
|
6009
|
-
|
|
6010
|
-
stream.
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
stream.removeListener("finish", onfinish);
|
|
6019
|
-
stream.removeListener("end", onend);
|
|
6020
|
-
stream.removeListener("error", onerror);
|
|
6021
|
-
stream.removeListener("close", onclose);
|
|
6022
|
-
};
|
|
6023
|
-
}
|
|
6024
|
-
endOfStream = eos;
|
|
6025
|
-
return endOfStream;
|
|
5911
|
+
var ERR_STREAM_PREMATURE_CLOSE = errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
5912
|
+
function once$1(callback) {
|
|
5913
|
+
var called = false;
|
|
5914
|
+
return function() {
|
|
5915
|
+
if (called) return;
|
|
5916
|
+
called = true;
|
|
5917
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5918
|
+
args[_key] = arguments[_key];
|
|
5919
|
+
}
|
|
5920
|
+
callback.apply(this, args);
|
|
5921
|
+
};
|
|
5922
|
+
}
|
|
5923
|
+
function noop$1() {
|
|
5924
|
+
}
|
|
5925
|
+
function isRequest$1(stream) {
|
|
5926
|
+
return stream.setHeader && typeof stream.abort === "function";
|
|
5927
|
+
}
|
|
5928
|
+
function eos$1(stream, opts, callback) {
|
|
5929
|
+
if (typeof opts === "function") return eos$1(stream, null, opts);
|
|
5930
|
+
if (!opts) opts = {};
|
|
5931
|
+
callback = once$1(callback || noop$1);
|
|
5932
|
+
var readable = opts.readable || opts.readable !== false && stream.readable;
|
|
5933
|
+
var writable = opts.writable || opts.writable !== false && stream.writable;
|
|
5934
|
+
var onlegacyfinish = function onlegacyfinish2() {
|
|
5935
|
+
if (!stream.writable) onfinish();
|
|
5936
|
+
};
|
|
5937
|
+
var writableEnded = stream._writableState && stream._writableState.finished;
|
|
5938
|
+
var onfinish = function onfinish2() {
|
|
5939
|
+
writable = false;
|
|
5940
|
+
writableEnded = true;
|
|
5941
|
+
if (!readable) callback.call(stream);
|
|
5942
|
+
};
|
|
5943
|
+
var readableEnded = stream._readableState && stream._readableState.endEmitted;
|
|
5944
|
+
var onend = function onend2() {
|
|
5945
|
+
readable = false;
|
|
5946
|
+
readableEnded = true;
|
|
5947
|
+
if (!writable) callback.call(stream);
|
|
5948
|
+
};
|
|
5949
|
+
var onerror = function onerror2(err) {
|
|
5950
|
+
callback.call(stream, err);
|
|
5951
|
+
};
|
|
5952
|
+
var onclose = function onclose2() {
|
|
5953
|
+
var err;
|
|
5954
|
+
if (readable && !readableEnded) {
|
|
5955
|
+
if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
|
|
5956
|
+
return callback.call(stream, err);
|
|
5957
|
+
}
|
|
5958
|
+
if (writable && !writableEnded) {
|
|
5959
|
+
if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
|
|
5960
|
+
return callback.call(stream, err);
|
|
5961
|
+
}
|
|
5962
|
+
};
|
|
5963
|
+
var onrequest = function onrequest2() {
|
|
5964
|
+
stream.req.on("finish", onfinish);
|
|
5965
|
+
};
|
|
5966
|
+
if (isRequest$1(stream)) {
|
|
5967
|
+
stream.on("complete", onfinish);
|
|
5968
|
+
stream.on("abort", onclose);
|
|
5969
|
+
if (stream.req) onrequest();
|
|
5970
|
+
else stream.on("request", onrequest);
|
|
5971
|
+
} else if (writable && !stream._writableState) {
|
|
5972
|
+
stream.on("end", onlegacyfinish);
|
|
5973
|
+
stream.on("close", onlegacyfinish);
|
|
5974
|
+
}
|
|
5975
|
+
stream.on("end", onend);
|
|
5976
|
+
stream.on("finish", onfinish);
|
|
5977
|
+
if (opts.error !== false) stream.on("error", onerror);
|
|
5978
|
+
stream.on("close", onclose);
|
|
5979
|
+
return function() {
|
|
5980
|
+
stream.removeListener("complete", onfinish);
|
|
5981
|
+
stream.removeListener("abort", onclose);
|
|
5982
|
+
stream.removeListener("request", onrequest);
|
|
5983
|
+
if (stream.req) stream.req.removeListener("finish", onfinish);
|
|
5984
|
+
stream.removeListener("end", onlegacyfinish);
|
|
5985
|
+
stream.removeListener("close", onlegacyfinish);
|
|
5986
|
+
stream.removeListener("finish", onfinish);
|
|
5987
|
+
stream.removeListener("end", onend);
|
|
5988
|
+
stream.removeListener("error", onerror);
|
|
5989
|
+
stream.removeListener("close", onclose);
|
|
5990
|
+
};
|
|
6026
5991
|
}
|
|
5992
|
+
var endOfStream = eos$1;
|
|
6027
5993
|
var async_iterator;
|
|
6028
5994
|
var hasRequiredAsync_iterator;
|
|
6029
5995
|
function requireAsync_iterator() {
|
|
@@ -6053,7 +6019,7 @@ function requireAsync_iterator() {
|
|
|
6053
6019
|
}
|
|
6054
6020
|
return (hint === "string" ? String : Number)(input);
|
|
6055
6021
|
}
|
|
6056
|
-
var finished =
|
|
6022
|
+
var finished = endOfStream;
|
|
6057
6023
|
var kLastResolve = Symbol("lastResolve");
|
|
6058
6024
|
var kLastReject = Symbol("lastReject");
|
|
6059
6025
|
var kError = Symbol("error");
|
|
@@ -6229,7 +6195,7 @@ function require_stream_readable$1() {
|
|
|
6229
6195
|
var EElistenerCount = function EElistenerCount2(emitter, type2) {
|
|
6230
6196
|
return emitter.listeners(type2).length;
|
|
6231
6197
|
};
|
|
6232
|
-
var Stream2 =
|
|
6198
|
+
var Stream2 = streamBrowser$1;
|
|
6233
6199
|
var Buffer2 = dist.Buffer;
|
|
6234
6200
|
var OurUint8Array = (typeof commonjsGlobal !== "undefined" ? commonjsGlobal : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
|
|
6235
6201
|
};
|
|
@@ -6248,14 +6214,14 @@ function require_stream_readable$1() {
|
|
|
6248
6214
|
};
|
|
6249
6215
|
}
|
|
6250
6216
|
var BufferList2 = requireBuffer_list();
|
|
6251
|
-
var destroyImpl =
|
|
6252
|
-
var _require =
|
|
6253
|
-
var _require$
|
|
6217
|
+
var destroyImpl = destroy_1$1;
|
|
6218
|
+
var _require = state, getHighWaterMark2 = _require.getHighWaterMark;
|
|
6219
|
+
var _require$codes2 = errorsBrowser.codes, ERR_INVALID_ARG_TYPE = _require$codes2.ERR_INVALID_ARG_TYPE, ERR_STREAM_PUSH_AFTER_EOF = _require$codes2.ERR_STREAM_PUSH_AFTER_EOF, ERR_METHOD_NOT_IMPLEMENTED2 = _require$codes2.ERR_METHOD_NOT_IMPLEMENTED, ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes2.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
6254
6220
|
var StringDecoder2;
|
|
6255
6221
|
var createReadableStreamAsyncIterator;
|
|
6256
6222
|
var from;
|
|
6257
6223
|
inherits_browserExports(Readable, Stream2);
|
|
6258
|
-
var
|
|
6224
|
+
var errorOrDestroy2 = destroyImpl.errorOrDestroy;
|
|
6259
6225
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
|
6260
6226
|
function prependListener2(emitter, event, fn) {
|
|
6261
6227
|
if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
|
|
@@ -6269,7 +6235,7 @@ function require_stream_readable$1() {
|
|
|
6269
6235
|
if (typeof isDuplex !== "boolean") isDuplex = stream instanceof Duplex2;
|
|
6270
6236
|
this.objectMode = !!options2.objectMode;
|
|
6271
6237
|
if (isDuplex) this.objectMode = this.objectMode || !!options2.readableObjectMode;
|
|
6272
|
-
this.highWaterMark =
|
|
6238
|
+
this.highWaterMark = getHighWaterMark2(this, options2, "readableHighWaterMark", isDuplex);
|
|
6273
6239
|
this.buffer = new BufferList2();
|
|
6274
6240
|
this.length = 0;
|
|
6275
6241
|
this.pipes = null;
|
|
@@ -6363,16 +6329,16 @@ function require_stream_readable$1() {
|
|
|
6363
6329
|
var er;
|
|
6364
6330
|
if (!skipChunkCheck) er = chunkInvalid(state2, chunk);
|
|
6365
6331
|
if (er) {
|
|
6366
|
-
|
|
6332
|
+
errorOrDestroy2(stream, er);
|
|
6367
6333
|
} else if (state2.objectMode || chunk && chunk.length > 0) {
|
|
6368
6334
|
if (typeof chunk !== "string" && !state2.objectMode && Object.getPrototypeOf(chunk) !== Buffer2.prototype) {
|
|
6369
6335
|
chunk = _uint8ArrayToBuffer(chunk);
|
|
6370
6336
|
}
|
|
6371
6337
|
if (addToFront) {
|
|
6372
|
-
if (state2.endEmitted)
|
|
6338
|
+
if (state2.endEmitted) errorOrDestroy2(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
|
|
6373
6339
|
else addChunk(stream, state2, chunk, true);
|
|
6374
6340
|
} else if (state2.ended) {
|
|
6375
|
-
|
|
6341
|
+
errorOrDestroy2(stream, new ERR_STREAM_PUSH_AFTER_EOF());
|
|
6376
6342
|
} else if (state2.destroyed) {
|
|
6377
6343
|
return false;
|
|
6378
6344
|
} else {
|
|
@@ -6570,7 +6536,7 @@ function require_stream_readable$1() {
|
|
|
6570
6536
|
state2.readingMore = false;
|
|
6571
6537
|
}
|
|
6572
6538
|
Readable.prototype._read = function(n) {
|
|
6573
|
-
|
|
6539
|
+
errorOrDestroy2(this, new ERR_METHOD_NOT_IMPLEMENTED2("_read()"));
|
|
6574
6540
|
};
|
|
6575
6541
|
Readable.prototype.pipe = function(dest, pipeOpts) {
|
|
6576
6542
|
var src = this;
|
|
@@ -6639,7 +6605,7 @@ function require_stream_readable$1() {
|
|
|
6639
6605
|
debug("onerror", er);
|
|
6640
6606
|
unpipe();
|
|
6641
6607
|
dest.removeListener("error", onerror);
|
|
6642
|
-
if (EElistenerCount(dest, "error") === 0)
|
|
6608
|
+
if (EElistenerCount(dest, "error") === 0) errorOrDestroy2(dest, er);
|
|
6643
6609
|
}
|
|
6644
6610
|
prependListener2(dest, "error", onerror);
|
|
6645
6611
|
function onclose() {
|
|
@@ -6945,213 +6911,192 @@ function require_stream_readable$1() {
|
|
|
6945
6911
|
}
|
|
6946
6912
|
return _stream_readable$1;
|
|
6947
6913
|
}
|
|
6948
|
-
var _stream_transform$1;
|
|
6949
|
-
var
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
var
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
var ts = this._transformState;
|
|
6959
|
-
ts.transforming = false;
|
|
6960
|
-
var cb = ts.writecb;
|
|
6961
|
-
if (cb === null) {
|
|
6962
|
-
return this.emit("error", new ERR_MULTIPLE_CALLBACK());
|
|
6963
|
-
}
|
|
6964
|
-
ts.writechunk = null;
|
|
6965
|
-
ts.writecb = null;
|
|
6966
|
-
if (data != null)
|
|
6967
|
-
this.push(data);
|
|
6968
|
-
cb(er);
|
|
6969
|
-
var rs = this._readableState;
|
|
6970
|
-
rs.reading = false;
|
|
6971
|
-
if (rs.needReadable || rs.length < rs.highWaterMark) {
|
|
6972
|
-
this._read(rs.highWaterMark);
|
|
6973
|
-
}
|
|
6974
|
-
}
|
|
6975
|
-
function Transform2(options2) {
|
|
6976
|
-
if (!(this instanceof Transform2)) return new Transform2(options2);
|
|
6977
|
-
Duplex2.call(this, options2);
|
|
6978
|
-
this._transformState = {
|
|
6979
|
-
afterTransform: afterTransform2.bind(this),
|
|
6980
|
-
needTransform: false,
|
|
6981
|
-
transforming: false,
|
|
6982
|
-
writecb: null,
|
|
6983
|
-
writechunk: null,
|
|
6984
|
-
writeencoding: null
|
|
6985
|
-
};
|
|
6986
|
-
this._readableState.needReadable = true;
|
|
6987
|
-
this._readableState.sync = false;
|
|
6988
|
-
if (options2) {
|
|
6989
|
-
if (typeof options2.transform === "function") this._transform = options2.transform;
|
|
6990
|
-
if (typeof options2.flush === "function") this._flush = options2.flush;
|
|
6991
|
-
}
|
|
6992
|
-
this.on("prefinish", prefinish2);
|
|
6914
|
+
var _stream_transform$1 = Transform$9;
|
|
6915
|
+
var _require$codes$1 = errorsBrowser.codes, ERR_METHOD_NOT_IMPLEMENTED = _require$codes$1.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK = _require$codes$1.ERR_MULTIPLE_CALLBACK, ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes$1.ERR_TRANSFORM_ALREADY_TRANSFORMING, ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes$1.ERR_TRANSFORM_WITH_LENGTH_0;
|
|
6916
|
+
var Duplex$1 = require_stream_duplex$1();
|
|
6917
|
+
inherits_browserExports(Transform$9, Duplex$1);
|
|
6918
|
+
function afterTransform$1(er, data) {
|
|
6919
|
+
var ts = this._transformState;
|
|
6920
|
+
ts.transforming = false;
|
|
6921
|
+
var cb = ts.writecb;
|
|
6922
|
+
if (cb === null) {
|
|
6923
|
+
return this.emit("error", new ERR_MULTIPLE_CALLBACK());
|
|
6993
6924
|
}
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
6925
|
+
ts.writechunk = null;
|
|
6926
|
+
ts.writecb = null;
|
|
6927
|
+
if (data != null)
|
|
6928
|
+
this.push(data);
|
|
6929
|
+
cb(er);
|
|
6930
|
+
var rs = this._readableState;
|
|
6931
|
+
rs.reading = false;
|
|
6932
|
+
if (rs.needReadable || rs.length < rs.highWaterMark) {
|
|
6933
|
+
this._read(rs.highWaterMark);
|
|
7003
6934
|
}
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
ts.writeencoding = encoding;
|
|
7016
|
-
if (!ts.transforming) {
|
|
7017
|
-
var rs = this._readableState;
|
|
7018
|
-
if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
|
|
7019
|
-
}
|
|
7020
|
-
};
|
|
7021
|
-
Transform2.prototype._read = function(n) {
|
|
7022
|
-
var ts = this._transformState;
|
|
7023
|
-
if (ts.writechunk !== null && !ts.transforming) {
|
|
7024
|
-
ts.transforming = true;
|
|
7025
|
-
this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
|
|
7026
|
-
} else {
|
|
7027
|
-
ts.needTransform = true;
|
|
7028
|
-
}
|
|
6935
|
+
}
|
|
6936
|
+
function Transform$9(options2) {
|
|
6937
|
+
if (!(this instanceof Transform$9)) return new Transform$9(options2);
|
|
6938
|
+
Duplex$1.call(this, options2);
|
|
6939
|
+
this._transformState = {
|
|
6940
|
+
afterTransform: afterTransform$1.bind(this),
|
|
6941
|
+
needTransform: false,
|
|
6942
|
+
transforming: false,
|
|
6943
|
+
writecb: null,
|
|
6944
|
+
writechunk: null,
|
|
6945
|
+
writeencoding: null
|
|
7029
6946
|
};
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
6947
|
+
this._readableState.needReadable = true;
|
|
6948
|
+
this._readableState.sync = false;
|
|
6949
|
+
if (options2) {
|
|
6950
|
+
if (typeof options2.transform === "function") this._transform = options2.transform;
|
|
6951
|
+
if (typeof options2.flush === "function") this._flush = options2.flush;
|
|
6952
|
+
}
|
|
6953
|
+
this.on("prefinish", prefinish$1);
|
|
6954
|
+
}
|
|
6955
|
+
function prefinish$1() {
|
|
6956
|
+
var _this = this;
|
|
6957
|
+
if (typeof this._flush === "function" && !this._readableState.destroyed) {
|
|
6958
|
+
this._flush(function(er, data) {
|
|
6959
|
+
done$1(_this, er, data);
|
|
7033
6960
|
});
|
|
7034
|
-
}
|
|
7035
|
-
|
|
7036
|
-
if (er) return stream.emit("error", er);
|
|
7037
|
-
if (data != null)
|
|
7038
|
-
stream.push(data);
|
|
7039
|
-
if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();
|
|
7040
|
-
if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();
|
|
7041
|
-
return stream.push(null);
|
|
7042
|
-
}
|
|
7043
|
-
return _stream_transform$1;
|
|
7044
|
-
}
|
|
7045
|
-
var _stream_passthrough$1;
|
|
7046
|
-
var hasRequired_stream_passthrough;
|
|
7047
|
-
function require_stream_passthrough() {
|
|
7048
|
-
if (hasRequired_stream_passthrough) return _stream_passthrough$1;
|
|
7049
|
-
hasRequired_stream_passthrough = 1;
|
|
7050
|
-
_stream_passthrough$1 = PassThrough2;
|
|
7051
|
-
var Transform2 = require_stream_transform();
|
|
7052
|
-
inherits_browserExports(PassThrough2, Transform2);
|
|
7053
|
-
function PassThrough2(options2) {
|
|
7054
|
-
if (!(this instanceof PassThrough2)) return new PassThrough2(options2);
|
|
7055
|
-
Transform2.call(this, options2);
|
|
7056
|
-
}
|
|
7057
|
-
PassThrough2.prototype._transform = function(chunk, encoding, cb) {
|
|
7058
|
-
cb(null, chunk);
|
|
7059
|
-
};
|
|
7060
|
-
return _stream_passthrough$1;
|
|
7061
|
-
}
|
|
7062
|
-
var pipeline_1;
|
|
7063
|
-
var hasRequiredPipeline;
|
|
7064
|
-
function requirePipeline() {
|
|
7065
|
-
if (hasRequiredPipeline) return pipeline_1;
|
|
7066
|
-
hasRequiredPipeline = 1;
|
|
7067
|
-
var eos;
|
|
7068
|
-
function once3(callback) {
|
|
7069
|
-
var called = false;
|
|
7070
|
-
return function() {
|
|
7071
|
-
if (called) return;
|
|
7072
|
-
called = true;
|
|
7073
|
-
callback.apply(void 0, arguments);
|
|
7074
|
-
};
|
|
6961
|
+
} else {
|
|
6962
|
+
done$1(this, null, null);
|
|
7075
6963
|
}
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
6964
|
+
}
|
|
6965
|
+
Transform$9.prototype.push = function(chunk, encoding) {
|
|
6966
|
+
this._transformState.needTransform = false;
|
|
6967
|
+
return Duplex$1.prototype.push.call(this, chunk, encoding);
|
|
6968
|
+
};
|
|
6969
|
+
Transform$9.prototype._transform = function(chunk, encoding, cb) {
|
|
6970
|
+
cb(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"));
|
|
6971
|
+
};
|
|
6972
|
+
Transform$9.prototype._write = function(chunk, encoding, cb) {
|
|
6973
|
+
var ts = this._transformState;
|
|
6974
|
+
ts.writecb = cb;
|
|
6975
|
+
ts.writechunk = chunk;
|
|
6976
|
+
ts.writeencoding = encoding;
|
|
6977
|
+
if (!ts.transforming) {
|
|
6978
|
+
var rs = this._readableState;
|
|
6979
|
+
if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
|
|
7079
6980
|
}
|
|
7080
|
-
|
|
7081
|
-
|
|
6981
|
+
};
|
|
6982
|
+
Transform$9.prototype._read = function(n) {
|
|
6983
|
+
var ts = this._transformState;
|
|
6984
|
+
if (ts.writechunk !== null && !ts.transforming) {
|
|
6985
|
+
ts.transforming = true;
|
|
6986
|
+
this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
|
|
6987
|
+
} else {
|
|
6988
|
+
ts.needTransform = true;
|
|
7082
6989
|
}
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
6990
|
+
};
|
|
6991
|
+
Transform$9.prototype._destroy = function(err, cb) {
|
|
6992
|
+
Duplex$1.prototype._destroy.call(this, err, function(err2) {
|
|
6993
|
+
cb(err2);
|
|
6994
|
+
});
|
|
6995
|
+
};
|
|
6996
|
+
function done$1(stream, er, data) {
|
|
6997
|
+
if (er) return stream.emit("error", er);
|
|
6998
|
+
if (data != null)
|
|
6999
|
+
stream.push(data);
|
|
7000
|
+
if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();
|
|
7001
|
+
if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();
|
|
7002
|
+
return stream.push(null);
|
|
7003
|
+
}
|
|
7004
|
+
var _stream_passthrough$1 = PassThrough$1;
|
|
7005
|
+
var Transform$8 = _stream_transform$1;
|
|
7006
|
+
inherits_browserExports(PassThrough$1, Transform$8);
|
|
7007
|
+
function PassThrough$1(options2) {
|
|
7008
|
+
if (!(this instanceof PassThrough$1)) return new PassThrough$1(options2);
|
|
7009
|
+
Transform$8.call(this, options2);
|
|
7010
|
+
}
|
|
7011
|
+
PassThrough$1.prototype._transform = function(chunk, encoding, cb) {
|
|
7012
|
+
cb(null, chunk);
|
|
7013
|
+
};
|
|
7014
|
+
var eos;
|
|
7015
|
+
function once(callback) {
|
|
7016
|
+
var called = false;
|
|
7017
|
+
return function() {
|
|
7018
|
+
if (called) return;
|
|
7019
|
+
called = true;
|
|
7020
|
+
callback.apply(void 0, arguments);
|
|
7021
|
+
};
|
|
7022
|
+
}
|
|
7023
|
+
var _require$codes = errorsBrowser.codes, ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS, ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
|
|
7024
|
+
function noop(err) {
|
|
7025
|
+
if (err) throw err;
|
|
7026
|
+
}
|
|
7027
|
+
function isRequest(stream) {
|
|
7028
|
+
return stream.setHeader && typeof stream.abort === "function";
|
|
7029
|
+
}
|
|
7030
|
+
function destroyer(stream, reading, writing, callback) {
|
|
7031
|
+
callback = once(callback);
|
|
7032
|
+
var closed = false;
|
|
7033
|
+
stream.on("close", function() {
|
|
7034
|
+
closed = true;
|
|
7035
|
+
});
|
|
7036
|
+
if (eos === void 0) eos = endOfStream;
|
|
7037
|
+
eos(stream, {
|
|
7038
|
+
readable: reading,
|
|
7039
|
+
writable: writing
|
|
7040
|
+
}, function(err) {
|
|
7041
|
+
if (err) return callback(err);
|
|
7042
|
+
closed = true;
|
|
7043
|
+
callback();
|
|
7044
|
+
});
|
|
7045
|
+
var destroyed = false;
|
|
7046
|
+
return function(err) {
|
|
7047
|
+
if (closed) return;
|
|
7048
|
+
if (destroyed) return;
|
|
7049
|
+
destroyed = true;
|
|
7050
|
+
if (isRequest(stream)) return stream.abort();
|
|
7051
|
+
if (typeof stream.destroy === "function") return stream.destroy();
|
|
7052
|
+
callback(err || new ERR_STREAM_DESTROYED("pipe"));
|
|
7053
|
+
};
|
|
7054
|
+
}
|
|
7055
|
+
function call(fn) {
|
|
7056
|
+
fn();
|
|
7057
|
+
}
|
|
7058
|
+
function pipe(from, to) {
|
|
7059
|
+
return from.pipe(to);
|
|
7060
|
+
}
|
|
7061
|
+
function popCallback(streams) {
|
|
7062
|
+
if (!streams.length) return noop;
|
|
7063
|
+
if (typeof streams[streams.length - 1] !== "function") return noop;
|
|
7064
|
+
return streams.pop();
|
|
7065
|
+
}
|
|
7066
|
+
function pipeline() {
|
|
7067
|
+
for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7068
|
+
streams[_key] = arguments[_key];
|
|
7069
|
+
}
|
|
7070
|
+
var callback = popCallback(streams);
|
|
7071
|
+
if (Array.isArray(streams[0])) streams = streams[0];
|
|
7072
|
+
if (streams.length < 2) {
|
|
7073
|
+
throw new ERR_MISSING_ARGS("streams");
|
|
7074
|
+
}
|
|
7075
|
+
var error2;
|
|
7076
|
+
var destroys = streams.map(function(stream, i) {
|
|
7077
|
+
var reading = i < streams.length - 1;
|
|
7078
|
+
var writing = i > 0;
|
|
7079
|
+
return destroyer(stream, reading, writing, function(err) {
|
|
7080
|
+
if (!error2) error2 = err;
|
|
7081
|
+
if (err) destroys.forEach(call);
|
|
7082
|
+
if (reading) return;
|
|
7083
|
+
destroys.forEach(call);
|
|
7084
|
+
callback(error2);
|
|
7139
7085
|
});
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
pipeline_1 = pipeline;
|
|
7143
|
-
return pipeline_1;
|
|
7086
|
+
});
|
|
7087
|
+
return streams.reduce(pipe);
|
|
7144
7088
|
}
|
|
7089
|
+
var pipeline_1 = pipeline;
|
|
7145
7090
|
(function(module, exports2) {
|
|
7146
7091
|
exports2 = module.exports = require_stream_readable$1();
|
|
7147
7092
|
exports2.Stream = exports2;
|
|
7148
7093
|
exports2.Readable = exports2;
|
|
7149
7094
|
exports2.Writable = require_stream_writable$1();
|
|
7150
7095
|
exports2.Duplex = require_stream_duplex$1();
|
|
7151
|
-
exports2.Transform =
|
|
7152
|
-
exports2.PassThrough =
|
|
7153
|
-
exports2.finished =
|
|
7154
|
-
exports2.pipeline =
|
|
7096
|
+
exports2.Transform = _stream_transform$1;
|
|
7097
|
+
exports2.PassThrough = _stream_passthrough$1;
|
|
7098
|
+
exports2.finished = endOfStream;
|
|
7099
|
+
exports2.pipeline = pipeline_1;
|
|
7155
7100
|
})(readableBrowser$1, readableBrowser$1.exports);
|
|
7156
7101
|
var readableBrowserExports$1 = readableBrowser$1.exports;
|
|
7157
7102
|
var Buffer$z = safeBufferExports$1.Buffer;
|
|
@@ -8562,10 +8507,10 @@ inherits$h(Stream, EE);
|
|
|
8562
8507
|
Stream.Readable = require_stream_readable$1();
|
|
8563
8508
|
Stream.Writable = require_stream_writable$1();
|
|
8564
8509
|
Stream.Duplex = require_stream_duplex$1();
|
|
8565
|
-
Stream.Transform =
|
|
8566
|
-
Stream.PassThrough =
|
|
8567
|
-
Stream.finished =
|
|
8568
|
-
Stream.pipeline =
|
|
8510
|
+
Stream.Transform = _stream_transform$1;
|
|
8511
|
+
Stream.PassThrough = _stream_passthrough$1;
|
|
8512
|
+
Stream.finished = endOfStream;
|
|
8513
|
+
Stream.pipeline = pipeline_1;
|
|
8569
8514
|
Stream.Stream = Stream;
|
|
8570
8515
|
function Stream() {
|
|
8571
8516
|
EE.call(this);
|
|
@@ -27177,7 +27122,7 @@ const GetValidatorDocument = { "kind": "Document", "definitions": [{ "kind": "Op
|
|
|
27177
27122
|
const GetClusterBalanceDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetClusterBalance" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "clusterId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "daoAddress" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "operatorIds" } }, "type": { "kind": "NonNullType", "type": { "kind": "ListType", "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "_meta" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "block" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "number" } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "daovalues" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "id" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "daoAddress" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "networkFee" } }, { "kind": "Field", "name": { "kind": "Name", "value": "networkFeeIndex" } }, { "kind": "Field", "name": { "kind": "Name", "value": "networkFeeIndexBlockNumber" } }, { "kind": "Field", "name": { "kind": "Name", "value": "liquidationThreshold" } }, { "kind": "Field", "name": { "kind": "Name", "value": "minimumLiquidationCollateral" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "operators" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "where" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "id_in" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "operatorIds" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "fee" } }, { "kind": "Field", "name": { "kind": "Name", "value": "feeIndex" } }, { "kind": "Field", "name": { "kind": "Name", "value": "feeIndexBlockNumber" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "cluster" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "id" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "clusterId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "validatorCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "networkFeeIndex" } }, { "kind": "Field", "name": { "kind": "Name", "value": "index" } }, { "kind": "Field", "name": { "kind": "Name", "value": "balance" } }] } }] } }] };
|
|
27178
27123
|
const getOwnerNonce = (client, args) => {
|
|
27179
27124
|
const document2 = typeof args.block === "number" ? GetOwnerNonceByBlockDocument : GetOwnerNonceDocument;
|
|
27180
|
-
return client.request(document2, args).then((r2) => r2.account?.nonce);
|
|
27125
|
+
return client.request(document2, args).then((r2) => r2.account?.nonce || "0").catch(() => "0");
|
|
27181
27126
|
};
|
|
27182
27127
|
const getClusterSnapshot = (client, args) => client.request(GetClusterSnapshotDocument, args).then((res) => res.cluster);
|
|
27183
27128
|
const getCluster = (client, args) => client.request(GetClusterDocument, args).then((res) => res.cluster);
|
|
@@ -27281,18 +27226,36 @@ const mainnet = /* @__PURE__ */ defineChain({
|
|
|
27281
27226
|
}
|
|
27282
27227
|
}
|
|
27283
27228
|
});
|
|
27229
|
+
const hoodi = defineChain$1({
|
|
27230
|
+
id: 560048,
|
|
27231
|
+
name: "Hoodi",
|
|
27232
|
+
rpcUrls: {
|
|
27233
|
+
default: {
|
|
27234
|
+
http: ["https://rpc.hoodi.ethpandaops.io"]
|
|
27235
|
+
}
|
|
27236
|
+
},
|
|
27237
|
+
nativeCurrency: {
|
|
27238
|
+
name: "Hoodi Ether",
|
|
27239
|
+
symbol: "ETH",
|
|
27240
|
+
decimals: 18
|
|
27241
|
+
},
|
|
27242
|
+
testnet: true
|
|
27243
|
+
});
|
|
27284
27244
|
const chains = {
|
|
27285
27245
|
mainnet,
|
|
27286
|
-
holesky
|
|
27246
|
+
holesky,
|
|
27247
|
+
hoodi
|
|
27287
27248
|
};
|
|
27288
27249
|
const chainIds = Object.values(chains).map((chain) => chain.id);
|
|
27289
27250
|
const graph_endpoints = {
|
|
27290
27251
|
[mainnet.id]: "https://api.studio.thegraph.com/query/71118/ssv-network-ethereum/version/latest",
|
|
27291
|
-
[holesky.id]: "https://api.studio.thegraph.com/query/71118/ssv-network-holesky/version/latest"
|
|
27252
|
+
[holesky.id]: "https://api.studio.thegraph.com/query/71118/ssv-network-holesky/version/latest",
|
|
27253
|
+
[hoodi.id]: "https://graph-node-hoodi.stage.ops.ssvlabsinternal.com/subgraphs/name/ssv-bapps-hoodi/graphql"
|
|
27292
27254
|
};
|
|
27293
27255
|
const rest_endpoints = {
|
|
27294
27256
|
[mainnet.id]: "https://api.ssv.network/api/v4/mainnet",
|
|
27295
|
-
[holesky.id]: "https://api.ssv.network/api/v4/holesky"
|
|
27257
|
+
[holesky.id]: "https://api.ssv.network/api/v4/holesky",
|
|
27258
|
+
[hoodi.id]: "https://api.stage.ops.ssvlabsinternal.com/api/v4/hoodi"
|
|
27296
27259
|
};
|
|
27297
27260
|
const contracts = {
|
|
27298
27261
|
[mainnet.id]: {
|
|
@@ -27304,6 +27267,11 @@ const contracts = {
|
|
|
27304
27267
|
setter: "0x38A4794cCEd47d3baf7370CcC43B560D3a1beEFA",
|
|
27305
27268
|
getter: "0x352A18AEe90cdcd825d1E37d9939dCA86C00e281",
|
|
27306
27269
|
token: "0xad45A78180961079BFaeEe349704F411dfF947C6"
|
|
27270
|
+
},
|
|
27271
|
+
[hoodi.id]: {
|
|
27272
|
+
setter: "0x58410Bef803ECd7E63B23664C586A6DB72DAf59c",
|
|
27273
|
+
getter: "0x5AdDb3f1529C5ec70D77400499eE4bbF328368fe",
|
|
27274
|
+
token: "0x9F5d4Ec84fC4785788aB44F9de973cF34F7A038e"
|
|
27307
27275
|
}
|
|
27308
27276
|
};
|
|
27309
27277
|
const MainnetV4GetterABI = [
|
|
@@ -36486,6 +36454,7 @@ export {
|
|
|
36486
36454
|
getValidators,
|
|
36487
36455
|
globals,
|
|
36488
36456
|
graph_endpoints,
|
|
36457
|
+
hoodi,
|
|
36489
36458
|
isConfig,
|
|
36490
36459
|
registerValidatorsByClusterSizeLimits,
|
|
36491
36460
|
rest_endpoints
|