@ledgerhq/live-cli 24.26.0-nightly.2 → 24.26.0-nightly.3
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/lib/cli.js +1527 -1502
- package/package.json +3 -2
package/lib/cli.js
CHANGED
|
@@ -268561,11 +268561,501 @@ var require_secp256k18 = __commonJS({
|
|
|
268561
268561
|
}
|
|
268562
268562
|
});
|
|
268563
268563
|
|
|
268564
|
-
// ../../node_modules/.pnpm/
|
|
268564
|
+
// ../../node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js
|
|
268565
|
+
var require_isarray = __commonJS({
|
|
268566
|
+
"../../node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js"(exports2, module2) {
|
|
268567
|
+
"use strict";
|
|
268568
|
+
var toString16 = {}.toString;
|
|
268569
|
+
module2.exports = Array.isArray || function(arr) {
|
|
268570
|
+
return toString16.call(arr) == "[object Array]";
|
|
268571
|
+
};
|
|
268572
|
+
}
|
|
268573
|
+
});
|
|
268574
|
+
|
|
268575
|
+
// ../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js
|
|
268576
|
+
var require_call_bound = __commonJS({
|
|
268577
|
+
"../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports2, module2) {
|
|
268578
|
+
"use strict";
|
|
268579
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
268580
|
+
var callBindBasic = require_call_bind_apply_helpers();
|
|
268581
|
+
var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
|
|
268582
|
+
module2.exports = function callBoundIntrinsic(name2, allowMissing) {
|
|
268583
|
+
var intrinsic = (
|
|
268584
|
+
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
268585
|
+
GetIntrinsic(name2, !!allowMissing)
|
|
268586
|
+
);
|
|
268587
|
+
if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
|
|
268588
|
+
return callBindBasic(
|
|
268589
|
+
/** @type {const} */
|
|
268590
|
+
[intrinsic]
|
|
268591
|
+
);
|
|
268592
|
+
}
|
|
268593
|
+
return intrinsic;
|
|
268594
|
+
};
|
|
268595
|
+
}
|
|
268596
|
+
});
|
|
268597
|
+
|
|
268598
|
+
// ../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js
|
|
268599
|
+
var require_is_callable = __commonJS({
|
|
268600
|
+
"../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js"(exports2, module2) {
|
|
268601
|
+
"use strict";
|
|
268602
|
+
var fnToStr2 = Function.prototype.toString;
|
|
268603
|
+
var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
|
|
268604
|
+
var badArrayLike;
|
|
268605
|
+
var isCallableMarker;
|
|
268606
|
+
if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") {
|
|
268607
|
+
try {
|
|
268608
|
+
badArrayLike = Object.defineProperty({}, "length", {
|
|
268609
|
+
get: function() {
|
|
268610
|
+
throw isCallableMarker;
|
|
268611
|
+
}
|
|
268612
|
+
});
|
|
268613
|
+
isCallableMarker = {};
|
|
268614
|
+
reflectApply(function() {
|
|
268615
|
+
throw 42;
|
|
268616
|
+
}, null, badArrayLike);
|
|
268617
|
+
} catch (_15) {
|
|
268618
|
+
if (_15 !== isCallableMarker) {
|
|
268619
|
+
reflectApply = null;
|
|
268620
|
+
}
|
|
268621
|
+
}
|
|
268622
|
+
} else {
|
|
268623
|
+
reflectApply = null;
|
|
268624
|
+
}
|
|
268625
|
+
var constructorRegex = /^\s*class\b/;
|
|
268626
|
+
var isES6ClassFn = function isES6ClassFunction(value5) {
|
|
268627
|
+
try {
|
|
268628
|
+
var fnStr = fnToStr2.call(value5);
|
|
268629
|
+
return constructorRegex.test(fnStr);
|
|
268630
|
+
} catch (e36) {
|
|
268631
|
+
return false;
|
|
268632
|
+
}
|
|
268633
|
+
};
|
|
268634
|
+
var tryFunctionObject = function tryFunctionToStr(value5) {
|
|
268635
|
+
try {
|
|
268636
|
+
if (isES6ClassFn(value5)) {
|
|
268637
|
+
return false;
|
|
268638
|
+
}
|
|
268639
|
+
fnToStr2.call(value5);
|
|
268640
|
+
return true;
|
|
268641
|
+
} catch (e36) {
|
|
268642
|
+
return false;
|
|
268643
|
+
}
|
|
268644
|
+
};
|
|
268645
|
+
var toStr2 = Object.prototype.toString;
|
|
268646
|
+
var objectClass = "[object Object]";
|
|
268647
|
+
var fnClass = "[object Function]";
|
|
268648
|
+
var genClass = "[object GeneratorFunction]";
|
|
268649
|
+
var ddaClass = "[object HTMLAllCollection]";
|
|
268650
|
+
var ddaClass2 = "[object HTML document.all class]";
|
|
268651
|
+
var ddaClass3 = "[object HTMLCollection]";
|
|
268652
|
+
var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
|
|
268653
|
+
var isIE68 = !(0 in [,]);
|
|
268654
|
+
var isDDA = function isDocumentDotAll() {
|
|
268655
|
+
return false;
|
|
268656
|
+
};
|
|
268657
|
+
if (typeof document === "object") {
|
|
268658
|
+
all8 = document.all;
|
|
268659
|
+
if (toStr2.call(all8) === toStr2.call(document.all)) {
|
|
268660
|
+
isDDA = function isDocumentDotAll(value5) {
|
|
268661
|
+
if ((isIE68 || !value5) && (typeof value5 === "undefined" || typeof value5 === "object")) {
|
|
268662
|
+
try {
|
|
268663
|
+
var str = toStr2.call(value5);
|
|
268664
|
+
return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value5("") == null;
|
|
268665
|
+
} catch (e36) {
|
|
268666
|
+
}
|
|
268667
|
+
}
|
|
268668
|
+
return false;
|
|
268669
|
+
};
|
|
268670
|
+
}
|
|
268671
|
+
}
|
|
268672
|
+
var all8;
|
|
268673
|
+
module2.exports = reflectApply ? function isCallable(value5) {
|
|
268674
|
+
if (isDDA(value5)) {
|
|
268675
|
+
return true;
|
|
268676
|
+
}
|
|
268677
|
+
if (!value5) {
|
|
268678
|
+
return false;
|
|
268679
|
+
}
|
|
268680
|
+
if (typeof value5 !== "function" && typeof value5 !== "object") {
|
|
268681
|
+
return false;
|
|
268682
|
+
}
|
|
268683
|
+
try {
|
|
268684
|
+
reflectApply(value5, null, badArrayLike);
|
|
268685
|
+
} catch (e36) {
|
|
268686
|
+
if (e36 !== isCallableMarker) {
|
|
268687
|
+
return false;
|
|
268688
|
+
}
|
|
268689
|
+
}
|
|
268690
|
+
return !isES6ClassFn(value5) && tryFunctionObject(value5);
|
|
268691
|
+
} : function isCallable(value5) {
|
|
268692
|
+
if (isDDA(value5)) {
|
|
268693
|
+
return true;
|
|
268694
|
+
}
|
|
268695
|
+
if (!value5) {
|
|
268696
|
+
return false;
|
|
268697
|
+
}
|
|
268698
|
+
if (typeof value5 !== "function" && typeof value5 !== "object") {
|
|
268699
|
+
return false;
|
|
268700
|
+
}
|
|
268701
|
+
if (hasToStringTag) {
|
|
268702
|
+
return tryFunctionObject(value5);
|
|
268703
|
+
}
|
|
268704
|
+
if (isES6ClassFn(value5)) {
|
|
268705
|
+
return false;
|
|
268706
|
+
}
|
|
268707
|
+
var strClass = toStr2.call(value5);
|
|
268708
|
+
if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
|
|
268709
|
+
return false;
|
|
268710
|
+
}
|
|
268711
|
+
return tryFunctionObject(value5);
|
|
268712
|
+
};
|
|
268713
|
+
}
|
|
268714
|
+
});
|
|
268715
|
+
|
|
268716
|
+
// ../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js
|
|
268717
|
+
var require_for_each = __commonJS({
|
|
268718
|
+
"../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js"(exports2, module2) {
|
|
268719
|
+
"use strict";
|
|
268720
|
+
var isCallable = require_is_callable();
|
|
268721
|
+
var toStr2 = Object.prototype.toString;
|
|
268722
|
+
var hasOwnProperty11 = Object.prototype.hasOwnProperty;
|
|
268723
|
+
var forEachArray = function forEachArray2(array5, iterator2, receiver2) {
|
|
268724
|
+
for (var i54 = 0, len = array5.length; i54 < len; i54++) {
|
|
268725
|
+
if (hasOwnProperty11.call(array5, i54)) {
|
|
268726
|
+
if (receiver2 == null) {
|
|
268727
|
+
iterator2(array5[i54], i54, array5);
|
|
268728
|
+
} else {
|
|
268729
|
+
iterator2.call(receiver2, array5[i54], i54, array5);
|
|
268730
|
+
}
|
|
268731
|
+
}
|
|
268732
|
+
}
|
|
268733
|
+
};
|
|
268734
|
+
var forEachString = function forEachString2(string5, iterator2, receiver2) {
|
|
268735
|
+
for (var i54 = 0, len = string5.length; i54 < len; i54++) {
|
|
268736
|
+
if (receiver2 == null) {
|
|
268737
|
+
iterator2(string5.charAt(i54), i54, string5);
|
|
268738
|
+
} else {
|
|
268739
|
+
iterator2.call(receiver2, string5.charAt(i54), i54, string5);
|
|
268740
|
+
}
|
|
268741
|
+
}
|
|
268742
|
+
};
|
|
268743
|
+
var forEachObject = function forEachObject2(object7, iterator2, receiver2) {
|
|
268744
|
+
for (var k17 in object7) {
|
|
268745
|
+
if (hasOwnProperty11.call(object7, k17)) {
|
|
268746
|
+
if (receiver2 == null) {
|
|
268747
|
+
iterator2(object7[k17], k17, object7);
|
|
268748
|
+
} else {
|
|
268749
|
+
iterator2.call(receiver2, object7[k17], k17, object7);
|
|
268750
|
+
}
|
|
268751
|
+
}
|
|
268752
|
+
}
|
|
268753
|
+
};
|
|
268754
|
+
function isArray6(x23) {
|
|
268755
|
+
return toStr2.call(x23) === "[object Array]";
|
|
268756
|
+
}
|
|
268757
|
+
module2.exports = function forEach4(list2, iterator2, thisArg) {
|
|
268758
|
+
if (!isCallable(iterator2)) {
|
|
268759
|
+
throw new TypeError("iterator must be a function");
|
|
268760
|
+
}
|
|
268761
|
+
var receiver2;
|
|
268762
|
+
if (arguments.length >= 3) {
|
|
268763
|
+
receiver2 = thisArg;
|
|
268764
|
+
}
|
|
268765
|
+
if (isArray6(list2)) {
|
|
268766
|
+
forEachArray(list2, iterator2, receiver2);
|
|
268767
|
+
} else if (typeof list2 === "string") {
|
|
268768
|
+
forEachString(list2, iterator2, receiver2);
|
|
268769
|
+
} else {
|
|
268770
|
+
forEachObject(list2, iterator2, receiver2);
|
|
268771
|
+
}
|
|
268772
|
+
};
|
|
268773
|
+
}
|
|
268774
|
+
});
|
|
268775
|
+
|
|
268776
|
+
// ../../node_modules/.pnpm/possible-typed-array-names@1.0.0/node_modules/possible-typed-array-names/index.js
|
|
268777
|
+
var require_possible_typed_array_names = __commonJS({
|
|
268778
|
+
"../../node_modules/.pnpm/possible-typed-array-names@1.0.0/node_modules/possible-typed-array-names/index.js"(exports2, module2) {
|
|
268779
|
+
"use strict";
|
|
268780
|
+
module2.exports = [
|
|
268781
|
+
"Float32Array",
|
|
268782
|
+
"Float64Array",
|
|
268783
|
+
"Int8Array",
|
|
268784
|
+
"Int16Array",
|
|
268785
|
+
"Int32Array",
|
|
268786
|
+
"Uint8Array",
|
|
268787
|
+
"Uint8ClampedArray",
|
|
268788
|
+
"Uint16Array",
|
|
268789
|
+
"Uint32Array",
|
|
268790
|
+
"BigInt64Array",
|
|
268791
|
+
"BigUint64Array"
|
|
268792
|
+
];
|
|
268793
|
+
}
|
|
268794
|
+
});
|
|
268795
|
+
|
|
268796
|
+
// ../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js
|
|
268797
|
+
var require_available_typed_arrays = __commonJS({
|
|
268798
|
+
"../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js"(exports2, module2) {
|
|
268799
|
+
"use strict";
|
|
268800
|
+
var possibleNames = require_possible_typed_array_names();
|
|
268801
|
+
var g49 = typeof globalThis === "undefined" ? global : globalThis;
|
|
268802
|
+
module2.exports = function availableTypedArrays() {
|
|
268803
|
+
var out = [];
|
|
268804
|
+
for (var i54 = 0; i54 < possibleNames.length; i54++) {
|
|
268805
|
+
if (typeof g49[possibleNames[i54]] === "function") {
|
|
268806
|
+
out[out.length] = possibleNames[i54];
|
|
268807
|
+
}
|
|
268808
|
+
}
|
|
268809
|
+
return out;
|
|
268810
|
+
};
|
|
268811
|
+
}
|
|
268812
|
+
});
|
|
268813
|
+
|
|
268814
|
+
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js
|
|
268815
|
+
var require_applyBind = __commonJS({
|
|
268816
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js"(exports2, module2) {
|
|
268817
|
+
"use strict";
|
|
268818
|
+
var bind4 = require_function_bind();
|
|
268819
|
+
var $apply = require_functionApply();
|
|
268820
|
+
var actualApply = require_actualApply();
|
|
268821
|
+
module2.exports = function applyBind() {
|
|
268822
|
+
return actualApply(bind4, $apply, arguments);
|
|
268823
|
+
};
|
|
268824
|
+
}
|
|
268825
|
+
});
|
|
268826
|
+
|
|
268827
|
+
// ../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js
|
|
268828
|
+
var require_call_bind2 = __commonJS({
|
|
268829
|
+
"../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js"(exports2, module2) {
|
|
268830
|
+
"use strict";
|
|
268831
|
+
var setFunctionLength = require_set_function_length();
|
|
268832
|
+
var $defineProperty = require_es_define_property();
|
|
268833
|
+
var callBindBasic = require_call_bind_apply_helpers();
|
|
268834
|
+
var applyBind = require_applyBind();
|
|
268835
|
+
module2.exports = function callBind(originalFunction) {
|
|
268836
|
+
var func = callBindBasic(arguments);
|
|
268837
|
+
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
268838
|
+
return setFunctionLength(
|
|
268839
|
+
func,
|
|
268840
|
+
1 + (adjustedLength > 0 ? adjustedLength : 0),
|
|
268841
|
+
true
|
|
268842
|
+
);
|
|
268843
|
+
};
|
|
268844
|
+
if ($defineProperty) {
|
|
268845
|
+
$defineProperty(module2.exports, "apply", { value: applyBind });
|
|
268846
|
+
} else {
|
|
268847
|
+
module2.exports.apply = applyBind;
|
|
268848
|
+
}
|
|
268849
|
+
}
|
|
268850
|
+
});
|
|
268851
|
+
|
|
268852
|
+
// ../../node_modules/.pnpm/which-typed-array@1.1.19/node_modules/which-typed-array/index.js
|
|
268853
|
+
var require_which_typed_array = __commonJS({
|
|
268854
|
+
"../../node_modules/.pnpm/which-typed-array@1.1.19/node_modules/which-typed-array/index.js"(exports2, module2) {
|
|
268855
|
+
"use strict";
|
|
268856
|
+
var forEach4 = require_for_each();
|
|
268857
|
+
var availableTypedArrays = require_available_typed_arrays();
|
|
268858
|
+
var callBind = require_call_bind2();
|
|
268859
|
+
var callBound = require_call_bound();
|
|
268860
|
+
var gOPD = require_gopd();
|
|
268861
|
+
var getProto = require_get_proto();
|
|
268862
|
+
var $toString = callBound("Object.prototype.toString");
|
|
268863
|
+
var hasToStringTag = require_shams2()();
|
|
268864
|
+
var g49 = typeof globalThis === "undefined" ? global : globalThis;
|
|
268865
|
+
var typedArrays = availableTypedArrays();
|
|
268866
|
+
var $slice = callBound("String.prototype.slice");
|
|
268867
|
+
var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array5, value5) {
|
|
268868
|
+
for (var i54 = 0; i54 < array5.length; i54 += 1) {
|
|
268869
|
+
if (array5[i54] === value5) {
|
|
268870
|
+
return i54;
|
|
268871
|
+
}
|
|
268872
|
+
}
|
|
268873
|
+
return -1;
|
|
268874
|
+
};
|
|
268875
|
+
var cache10 = { __proto__: null };
|
|
268876
|
+
if (hasToStringTag && gOPD && getProto) {
|
|
268877
|
+
forEach4(typedArrays, function(typedArray) {
|
|
268878
|
+
var arr = new g49[typedArray]();
|
|
268879
|
+
if (Symbol.toStringTag in arr && getProto) {
|
|
268880
|
+
var proto39 = getProto(arr);
|
|
268881
|
+
var descriptor = gOPD(proto39, Symbol.toStringTag);
|
|
268882
|
+
if (!descriptor && proto39) {
|
|
268883
|
+
var superProto = getProto(proto39);
|
|
268884
|
+
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
268885
|
+
}
|
|
268886
|
+
cache10["$" + typedArray] = callBind(descriptor.get);
|
|
268887
|
+
}
|
|
268888
|
+
});
|
|
268889
|
+
} else {
|
|
268890
|
+
forEach4(typedArrays, function(typedArray) {
|
|
268891
|
+
var arr = new g49[typedArray]();
|
|
268892
|
+
var fn4 = arr.slice || arr.set;
|
|
268893
|
+
if (fn4) {
|
|
268894
|
+
cache10[
|
|
268895
|
+
/** @type {`$${import('.').TypedArrayName}`} */
|
|
268896
|
+
"$" + typedArray
|
|
268897
|
+
] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */
|
|
268898
|
+
// @ts-expect-error TODO FIXME
|
|
268899
|
+
callBind(fn4);
|
|
268900
|
+
}
|
|
268901
|
+
});
|
|
268902
|
+
}
|
|
268903
|
+
var tryTypedArrays = function tryAllTypedArrays(value5) {
|
|
268904
|
+
var found = false;
|
|
268905
|
+
forEach4(
|
|
268906
|
+
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
|
|
268907
|
+
cache10,
|
|
268908
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
268909
|
+
function(getter, typedArray) {
|
|
268910
|
+
if (!found) {
|
|
268911
|
+
try {
|
|
268912
|
+
if ("$" + getter(value5) === typedArray) {
|
|
268913
|
+
found = /** @type {import('.').TypedArrayName} */
|
|
268914
|
+
$slice(typedArray, 1);
|
|
268915
|
+
}
|
|
268916
|
+
} catch (e36) {
|
|
268917
|
+
}
|
|
268918
|
+
}
|
|
268919
|
+
}
|
|
268920
|
+
);
|
|
268921
|
+
return found;
|
|
268922
|
+
};
|
|
268923
|
+
var trySlices = function tryAllSlices(value5) {
|
|
268924
|
+
var found = false;
|
|
268925
|
+
forEach4(
|
|
268926
|
+
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
|
|
268927
|
+
cache10,
|
|
268928
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
268929
|
+
function(getter, name2) {
|
|
268930
|
+
if (!found) {
|
|
268931
|
+
try {
|
|
268932
|
+
getter(value5);
|
|
268933
|
+
found = /** @type {import('.').TypedArrayName} */
|
|
268934
|
+
$slice(name2, 1);
|
|
268935
|
+
} catch (e36) {
|
|
268936
|
+
}
|
|
268937
|
+
}
|
|
268938
|
+
}
|
|
268939
|
+
);
|
|
268940
|
+
return found;
|
|
268941
|
+
};
|
|
268942
|
+
module2.exports = function whichTypedArray(value5) {
|
|
268943
|
+
if (!value5 || typeof value5 !== "object") {
|
|
268944
|
+
return false;
|
|
268945
|
+
}
|
|
268946
|
+
if (!hasToStringTag) {
|
|
268947
|
+
var tag = $slice($toString(value5), 8, -1);
|
|
268948
|
+
if ($indexOf(typedArrays, tag) > -1) {
|
|
268949
|
+
return tag;
|
|
268950
|
+
}
|
|
268951
|
+
if (tag !== "Object") {
|
|
268952
|
+
return false;
|
|
268953
|
+
}
|
|
268954
|
+
return trySlices(value5);
|
|
268955
|
+
}
|
|
268956
|
+
if (!gOPD) {
|
|
268957
|
+
return null;
|
|
268958
|
+
}
|
|
268959
|
+
return tryTypedArrays(value5);
|
|
268960
|
+
};
|
|
268961
|
+
}
|
|
268962
|
+
});
|
|
268963
|
+
|
|
268964
|
+
// ../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js
|
|
268965
|
+
var require_is_typed_array = __commonJS({
|
|
268966
|
+
"../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js"(exports2, module2) {
|
|
268967
|
+
"use strict";
|
|
268968
|
+
var whichTypedArray = require_which_typed_array();
|
|
268969
|
+
module2.exports = function isTypedArray4(value5) {
|
|
268970
|
+
return !!whichTypedArray(value5);
|
|
268971
|
+
};
|
|
268972
|
+
}
|
|
268973
|
+
});
|
|
268974
|
+
|
|
268975
|
+
// ../../node_modules/.pnpm/typed-array-buffer@1.0.3/node_modules/typed-array-buffer/index.js
|
|
268976
|
+
var require_typed_array_buffer = __commonJS({
|
|
268977
|
+
"../../node_modules/.pnpm/typed-array-buffer@1.0.3/node_modules/typed-array-buffer/index.js"(exports2, module2) {
|
|
268978
|
+
"use strict";
|
|
268979
|
+
var $TypeError = require_type();
|
|
268980
|
+
var callBound = require_call_bound();
|
|
268981
|
+
var $typedArrayBuffer = callBound("TypedArray.prototype.buffer", true);
|
|
268982
|
+
var isTypedArray4 = require_is_typed_array();
|
|
268983
|
+
module2.exports = $typedArrayBuffer || function typedArrayBuffer(x23) {
|
|
268984
|
+
if (!isTypedArray4(x23)) {
|
|
268985
|
+
throw new $TypeError("Not a Typed Array");
|
|
268986
|
+
}
|
|
268987
|
+
return x23.buffer;
|
|
268988
|
+
};
|
|
268989
|
+
}
|
|
268990
|
+
});
|
|
268991
|
+
|
|
268992
|
+
// ../../node_modules/.pnpm/to-buffer@1.2.1/node_modules/to-buffer/index.js
|
|
268993
|
+
var require_to_buffer2 = __commonJS({
|
|
268994
|
+
"../../node_modules/.pnpm/to-buffer@1.2.1/node_modules/to-buffer/index.js"(exports2, module2) {
|
|
268995
|
+
"use strict";
|
|
268996
|
+
var Buffer8 = require_safe_buffer().Buffer;
|
|
268997
|
+
var isArray6 = require_isarray();
|
|
268998
|
+
var typedArrayBuffer = require_typed_array_buffer();
|
|
268999
|
+
var isView2 = ArrayBuffer.isView || function isView3(obj2) {
|
|
269000
|
+
try {
|
|
269001
|
+
typedArrayBuffer(obj2);
|
|
269002
|
+
return true;
|
|
269003
|
+
} catch (e36) {
|
|
269004
|
+
return false;
|
|
269005
|
+
}
|
|
269006
|
+
};
|
|
269007
|
+
var useUint8Array = typeof Uint8Array !== "undefined";
|
|
269008
|
+
var useArrayBuffer = typeof ArrayBuffer !== "undefined" && typeof Uint8Array !== "undefined";
|
|
269009
|
+
var useFromArrayBuffer = useArrayBuffer && (Buffer8.prototype instanceof Uint8Array || Buffer8.TYPED_ARRAY_SUPPORT);
|
|
269010
|
+
module2.exports = function toBuffer3(data12, encoding) {
|
|
269011
|
+
if (data12 instanceof Buffer8) {
|
|
269012
|
+
return data12;
|
|
269013
|
+
}
|
|
269014
|
+
if (typeof data12 === "string") {
|
|
269015
|
+
return Buffer8.from(data12, encoding);
|
|
269016
|
+
}
|
|
269017
|
+
if (useArrayBuffer && isView2(data12)) {
|
|
269018
|
+
if (data12.byteLength === 0) {
|
|
269019
|
+
return Buffer8.alloc(0);
|
|
269020
|
+
}
|
|
269021
|
+
if (useFromArrayBuffer) {
|
|
269022
|
+
var res = Buffer8.from(data12.buffer, data12.byteOffset, data12.byteLength);
|
|
269023
|
+
if (res.byteLength === data12.byteLength) {
|
|
269024
|
+
return res;
|
|
269025
|
+
}
|
|
269026
|
+
}
|
|
269027
|
+
var uint8 = data12 instanceof Uint8Array ? data12 : new Uint8Array(data12.buffer, data12.byteOffset, data12.byteLength);
|
|
269028
|
+
var result2 = Buffer8.from(uint8);
|
|
269029
|
+
if (result2.length === data12.byteLength) {
|
|
269030
|
+
return result2;
|
|
269031
|
+
}
|
|
269032
|
+
}
|
|
269033
|
+
if (useUint8Array && data12 instanceof Uint8Array) {
|
|
269034
|
+
return Buffer8.from(data12);
|
|
269035
|
+
}
|
|
269036
|
+
var isArr = isArray6(data12);
|
|
269037
|
+
if (isArr) {
|
|
269038
|
+
for (var i54 = 0; i54 < data12.length; i54 += 1) {
|
|
269039
|
+
var x23 = data12[i54];
|
|
269040
|
+
if (typeof x23 !== "number" || x23 < 0 || x23 > 255 || ~~x23 !== x23) {
|
|
269041
|
+
throw new RangeError("Array items must be numbers in the range 0-255.");
|
|
269042
|
+
}
|
|
269043
|
+
}
|
|
269044
|
+
}
|
|
269045
|
+
if (isArr || Buffer8.isBuffer(data12) && data12.constructor && typeof data12.constructor.isBuffer === "function" && data12.constructor.isBuffer(data12)) {
|
|
269046
|
+
return Buffer8.from(data12);
|
|
269047
|
+
}
|
|
269048
|
+
throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.');
|
|
269049
|
+
};
|
|
269050
|
+
}
|
|
269051
|
+
});
|
|
269052
|
+
|
|
269053
|
+
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/hash.js
|
|
268565
269054
|
var require_hash6 = __commonJS({
|
|
268566
|
-
"../../node_modules/.pnpm/sha.js@2.4.
|
|
269055
|
+
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/hash.js"(exports2, module2) {
|
|
268567
269056
|
"use strict";
|
|
268568
269057
|
var Buffer8 = require_safe_buffer().Buffer;
|
|
269058
|
+
var toBuffer3 = require_to_buffer2();
|
|
268569
269059
|
function Hash4(blockSize, finalSize) {
|
|
268570
269060
|
this._block = Buffer8.alloc(blockSize);
|
|
268571
269061
|
this._finalSize = finalSize;
|
|
@@ -268573,10 +269063,7 @@ var require_hash6 = __commonJS({
|
|
|
268573
269063
|
this._len = 0;
|
|
268574
269064
|
}
|
|
268575
269065
|
Hash4.prototype.update = function(data12, enc) {
|
|
268576
|
-
|
|
268577
|
-
enc = enc || "utf8";
|
|
268578
|
-
data12 = Buffer8.from(data12, enc);
|
|
268579
|
-
}
|
|
269066
|
+
data12 = toBuffer3(data12, enc || "utf8");
|
|
268580
269067
|
var block2 = this._block;
|
|
268581
269068
|
var blockSize = this._blockSize;
|
|
268582
269069
|
var length2 = data12.length;
|
|
@@ -268624,9 +269111,9 @@ var require_hash6 = __commonJS({
|
|
|
268624
269111
|
}
|
|
268625
269112
|
});
|
|
268626
269113
|
|
|
268627
|
-
// ../../node_modules/.pnpm/sha.js@2.4.
|
|
269114
|
+
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha.js
|
|
268628
269115
|
var require_sha4 = __commonJS({
|
|
268629
|
-
"../../node_modules/.pnpm/sha.js@2.4.
|
|
269116
|
+
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha.js"(exports2, module2) {
|
|
268630
269117
|
"use strict";
|
|
268631
269118
|
var inherits4 = require_inherits();
|
|
268632
269119
|
var Hash4 = require_hash6();
|
|
@@ -268659,26 +269146,30 @@ var require_sha4 = __commonJS({
|
|
|
268659
269146
|
return num << 30 | num >>> 2;
|
|
268660
269147
|
}
|
|
268661
269148
|
function ft3(s48, b20, c60, d57) {
|
|
268662
|
-
if (s48 === 0)
|
|
269149
|
+
if (s48 === 0) {
|
|
268663
269150
|
return b20 & c60 | ~b20 & d57;
|
|
268664
|
-
|
|
269151
|
+
}
|
|
269152
|
+
if (s48 === 2) {
|
|
268665
269153
|
return b20 & c60 | b20 & d57 | c60 & d57;
|
|
269154
|
+
}
|
|
268666
269155
|
return b20 ^ c60 ^ d57;
|
|
268667
269156
|
}
|
|
268668
269157
|
Sha.prototype._update = function(M12) {
|
|
268669
|
-
var
|
|
269158
|
+
var w14 = this._w;
|
|
268670
269159
|
var a65 = this._a | 0;
|
|
268671
269160
|
var b20 = this._b | 0;
|
|
268672
269161
|
var c60 = this._c | 0;
|
|
268673
269162
|
var d57 = this._d | 0;
|
|
268674
269163
|
var e36 = this._e | 0;
|
|
268675
|
-
for (var i54 = 0; i54 < 16; ++i54)
|
|
268676
|
-
|
|
268677
|
-
|
|
268678
|
-
|
|
269164
|
+
for (var i54 = 0; i54 < 16; ++i54) {
|
|
269165
|
+
w14[i54] = M12.readInt32BE(i54 * 4);
|
|
269166
|
+
}
|
|
269167
|
+
for (; i54 < 80; ++i54) {
|
|
269168
|
+
w14[i54] = w14[i54 - 3] ^ w14[i54 - 8] ^ w14[i54 - 14] ^ w14[i54 - 16];
|
|
269169
|
+
}
|
|
268679
269170
|
for (var j9 = 0; j9 < 80; ++j9) {
|
|
268680
269171
|
var s48 = ~~(j9 / 20);
|
|
268681
|
-
var t46 = rotl52(a65) + ft3(s48, b20, c60, d57) + e36 +
|
|
269172
|
+
var t46 = rotl52(a65) + ft3(s48, b20, c60, d57) + e36 + w14[j9] + K10[s48] | 0;
|
|
268682
269173
|
e36 = d57;
|
|
268683
269174
|
d57 = c60;
|
|
268684
269175
|
c60 = rotl30(b20);
|
|
@@ -268704,9 +269195,9 @@ var require_sha4 = __commonJS({
|
|
|
268704
269195
|
}
|
|
268705
269196
|
});
|
|
268706
269197
|
|
|
268707
|
-
// ../../node_modules/.pnpm/sha.js@2.4.
|
|
269198
|
+
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha1.js
|
|
268708
269199
|
var require_sha1 = __commonJS({
|
|
268709
|
-
"../../node_modules/.pnpm/sha.js@2.4.
|
|
269200
|
+
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha1.js"(exports2, module2) {
|
|
268710
269201
|
"use strict";
|
|
268711
269202
|
var inherits4 = require_inherits();
|
|
268712
269203
|
var Hash4 = require_hash6();
|
|
@@ -268742,26 +269233,30 @@ var require_sha1 = __commonJS({
|
|
|
268742
269233
|
return num << 30 | num >>> 2;
|
|
268743
269234
|
}
|
|
268744
269235
|
function ft3(s48, b20, c60, d57) {
|
|
268745
|
-
if (s48 === 0)
|
|
269236
|
+
if (s48 === 0) {
|
|
268746
269237
|
return b20 & c60 | ~b20 & d57;
|
|
268747
|
-
|
|
269238
|
+
}
|
|
269239
|
+
if (s48 === 2) {
|
|
268748
269240
|
return b20 & c60 | b20 & d57 | c60 & d57;
|
|
269241
|
+
}
|
|
268749
269242
|
return b20 ^ c60 ^ d57;
|
|
268750
269243
|
}
|
|
268751
269244
|
Sha1.prototype._update = function(M12) {
|
|
268752
|
-
var
|
|
269245
|
+
var w14 = this._w;
|
|
268753
269246
|
var a65 = this._a | 0;
|
|
268754
269247
|
var b20 = this._b | 0;
|
|
268755
269248
|
var c60 = this._c | 0;
|
|
268756
269249
|
var d57 = this._d | 0;
|
|
268757
269250
|
var e36 = this._e | 0;
|
|
268758
|
-
for (var i54 = 0; i54 < 16; ++i54)
|
|
268759
|
-
|
|
268760
|
-
|
|
268761
|
-
|
|
269251
|
+
for (var i54 = 0; i54 < 16; ++i54) {
|
|
269252
|
+
w14[i54] = M12.readInt32BE(i54 * 4);
|
|
269253
|
+
}
|
|
269254
|
+
for (; i54 < 80; ++i54) {
|
|
269255
|
+
w14[i54] = rotl1(w14[i54 - 3] ^ w14[i54 - 8] ^ w14[i54 - 14] ^ w14[i54 - 16]);
|
|
269256
|
+
}
|
|
268762
269257
|
for (var j9 = 0; j9 < 80; ++j9) {
|
|
268763
269258
|
var s48 = ~~(j9 / 20);
|
|
268764
|
-
var t46 = rotl52(a65) + ft3(s48, b20, c60, d57) + e36 +
|
|
269259
|
+
var t46 = rotl52(a65) + ft3(s48, b20, c60, d57) + e36 + w14[j9] + K10[s48] | 0;
|
|
268765
269260
|
e36 = d57;
|
|
268766
269261
|
d57 = c60;
|
|
268767
269262
|
c60 = rotl30(b20);
|
|
@@ -268787,9 +269282,9 @@ var require_sha1 = __commonJS({
|
|
|
268787
269282
|
}
|
|
268788
269283
|
});
|
|
268789
269284
|
|
|
268790
|
-
// ../../node_modules/.pnpm/sha.js@2.4.
|
|
269285
|
+
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha256.js
|
|
268791
269286
|
var require_sha2569 = __commonJS({
|
|
268792
|
-
"../../node_modules/.pnpm/sha.js@2.4.
|
|
269287
|
+
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha256.js"(exports2, module2) {
|
|
268793
269288
|
"use strict";
|
|
268794
269289
|
var inherits4 = require_inherits();
|
|
268795
269290
|
var Hash4 = require_hash6();
|
|
@@ -268897,7 +269392,7 @@ var require_sha2569 = __commonJS({
|
|
|
268897
269392
|
return (x23 >>> 17 | x23 << 15) ^ (x23 >>> 19 | x23 << 13) ^ x23 >>> 10;
|
|
268898
269393
|
}
|
|
268899
269394
|
Sha2562.prototype._update = function(M12) {
|
|
268900
|
-
var
|
|
269395
|
+
var w14 = this._w;
|
|
268901
269396
|
var a65 = this._a | 0;
|
|
268902
269397
|
var b20 = this._b | 0;
|
|
268903
269398
|
var c60 = this._c | 0;
|
|
@@ -268906,12 +269401,14 @@ var require_sha2569 = __commonJS({
|
|
|
268906
269401
|
var f49 = this._f | 0;
|
|
268907
269402
|
var g49 = this._g | 0;
|
|
268908
269403
|
var h33 = this._h | 0;
|
|
268909
|
-
for (var i54 = 0; i54 < 16; ++i54)
|
|
268910
|
-
|
|
268911
|
-
|
|
268912
|
-
|
|
269404
|
+
for (var i54 = 0; i54 < 16; ++i54) {
|
|
269405
|
+
w14[i54] = M12.readInt32BE(i54 * 4);
|
|
269406
|
+
}
|
|
269407
|
+
for (; i54 < 64; ++i54) {
|
|
269408
|
+
w14[i54] = gamma1(w14[i54 - 2]) + w14[i54 - 7] + gamma0(w14[i54 - 15]) + w14[i54 - 16] | 0;
|
|
269409
|
+
}
|
|
268913
269410
|
for (var j9 = 0; j9 < 64; ++j9) {
|
|
268914
|
-
var T110 = h33 + sigma1(e36) + ch(e36, f49, g49) + K10[j9] +
|
|
269411
|
+
var T110 = h33 + sigma1(e36) + ch(e36, f49, g49) + K10[j9] + w14[j9] | 0;
|
|
268915
269412
|
var T28 = sigma0(a65) + maj(a65, b20, c60) | 0;
|
|
268916
269413
|
h33 = g49;
|
|
268917
269414
|
g49 = f49;
|
|
@@ -268947,9 +269444,9 @@ var require_sha2569 = __commonJS({
|
|
|
268947
269444
|
}
|
|
268948
269445
|
});
|
|
268949
269446
|
|
|
268950
|
-
// ../../node_modules/.pnpm/sha.js@2.4.
|
|
269447
|
+
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha224.js
|
|
268951
269448
|
var require_sha2242 = __commonJS({
|
|
268952
|
-
"../../node_modules/.pnpm/sha.js@2.4.
|
|
269449
|
+
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha224.js"(exports2, module2) {
|
|
268953
269450
|
"use strict";
|
|
268954
269451
|
var inherits4 = require_inherits();
|
|
268955
269452
|
var Sha2562 = require_sha2569();
|
|
@@ -268988,9 +269485,9 @@ var require_sha2242 = __commonJS({
|
|
|
268988
269485
|
}
|
|
268989
269486
|
});
|
|
268990
269487
|
|
|
268991
|
-
// ../../node_modules/.pnpm/sha.js@2.4.
|
|
269488
|
+
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha512.js
|
|
268992
269489
|
var require_sha5125 = __commonJS({
|
|
268993
|
-
"../../node_modules/.pnpm/sha.js@2.4.
|
|
269490
|
+
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha512.js"(exports2, module2) {
|
|
268994
269491
|
"use strict";
|
|
268995
269492
|
var inherits4 = require_inherits();
|
|
268996
269493
|
var Hash4 = require_hash6();
|
|
@@ -269211,7 +269708,7 @@ var require_sha5125 = __commonJS({
|
|
|
269211
269708
|
return a65 >>> 0 < b20 >>> 0 ? 1 : 0;
|
|
269212
269709
|
}
|
|
269213
269710
|
Sha512.prototype._update = function(M12) {
|
|
269214
|
-
var
|
|
269711
|
+
var w14 = this._w;
|
|
269215
269712
|
var ah = this._ah | 0;
|
|
269216
269713
|
var bh = this._bh | 0;
|
|
269217
269714
|
var ch = this._ch | 0;
|
|
@@ -269229,34 +269726,34 @@ var require_sha5125 = __commonJS({
|
|
|
269229
269726
|
var gl = this._gl | 0;
|
|
269230
269727
|
var hl = this._hl | 0;
|
|
269231
269728
|
for (var i54 = 0; i54 < 32; i54 += 2) {
|
|
269232
|
-
|
|
269233
|
-
|
|
269729
|
+
w14[i54] = M12.readInt32BE(i54 * 4);
|
|
269730
|
+
w14[i54 + 1] = M12.readInt32BE(i54 * 4 + 4);
|
|
269234
269731
|
}
|
|
269235
269732
|
for (; i54 < 160; i54 += 2) {
|
|
269236
|
-
var xh =
|
|
269237
|
-
var xl =
|
|
269733
|
+
var xh = w14[i54 - 15 * 2];
|
|
269734
|
+
var xl = w14[i54 - 15 * 2 + 1];
|
|
269238
269735
|
var gamma0 = Gamma0(xh, xl);
|
|
269239
269736
|
var gamma0l = Gamma0l(xl, xh);
|
|
269240
|
-
xh =
|
|
269241
|
-
xl =
|
|
269737
|
+
xh = w14[i54 - 2 * 2];
|
|
269738
|
+
xl = w14[i54 - 2 * 2 + 1];
|
|
269242
269739
|
var gamma1 = Gamma1(xh, xl);
|
|
269243
269740
|
var gamma1l = Gamma1l(xl, xh);
|
|
269244
|
-
var Wi7h =
|
|
269245
|
-
var Wi7l =
|
|
269246
|
-
var Wi16h =
|
|
269247
|
-
var Wi16l =
|
|
269741
|
+
var Wi7h = w14[i54 - 7 * 2];
|
|
269742
|
+
var Wi7l = w14[i54 - 7 * 2 + 1];
|
|
269743
|
+
var Wi16h = w14[i54 - 16 * 2];
|
|
269744
|
+
var Wi16l = w14[i54 - 16 * 2 + 1];
|
|
269248
269745
|
var Wil = gamma0l + Wi7l | 0;
|
|
269249
269746
|
var Wih = gamma0 + Wi7h + getCarry(Wil, gamma0l) | 0;
|
|
269250
269747
|
Wil = Wil + gamma1l | 0;
|
|
269251
269748
|
Wih = Wih + gamma1 + getCarry(Wil, gamma1l) | 0;
|
|
269252
269749
|
Wil = Wil + Wi16l | 0;
|
|
269253
269750
|
Wih = Wih + Wi16h + getCarry(Wil, Wi16l) | 0;
|
|
269254
|
-
|
|
269255
|
-
|
|
269751
|
+
w14[i54] = Wih;
|
|
269752
|
+
w14[i54 + 1] = Wil;
|
|
269256
269753
|
}
|
|
269257
269754
|
for (var j9 = 0; j9 < 160; j9 += 2) {
|
|
269258
|
-
Wih =
|
|
269259
|
-
Wil =
|
|
269755
|
+
Wih = w14[j9];
|
|
269756
|
+
Wil = w14[j9 + 1];
|
|
269260
269757
|
var majh = maj(ah, bh, ch);
|
|
269261
269758
|
var majl = maj(al, bl, cl);
|
|
269262
269759
|
var sigma0h = sigma0(ah, al);
|
|
@@ -269331,9 +269828,9 @@ var require_sha5125 = __commonJS({
|
|
|
269331
269828
|
}
|
|
269332
269829
|
});
|
|
269333
269830
|
|
|
269334
|
-
// ../../node_modules/.pnpm/sha.js@2.4.
|
|
269831
|
+
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha384.js
|
|
269335
269832
|
var require_sha384 = __commonJS({
|
|
269336
|
-
"../../node_modules/.pnpm/sha.js@2.4.
|
|
269833
|
+
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha384.js"(exports2, module2) {
|
|
269337
269834
|
"use strict";
|
|
269338
269835
|
var inherits4 = require_inherits();
|
|
269339
269836
|
var SHA5123 = require_sha5125();
|
|
@@ -269383,23 +269880,24 @@ var require_sha384 = __commonJS({
|
|
|
269383
269880
|
}
|
|
269384
269881
|
});
|
|
269385
269882
|
|
|
269386
|
-
// ../../node_modules/.pnpm/sha.js@2.4.
|
|
269883
|
+
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/index.js
|
|
269387
269884
|
var require_sha5 = __commonJS({
|
|
269388
|
-
"../../node_modules/.pnpm/sha.js@2.4.
|
|
269885
|
+
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/index.js"(exports2, module2) {
|
|
269389
269886
|
"use strict";
|
|
269390
|
-
|
|
269391
|
-
|
|
269392
|
-
var Algorithm =
|
|
269393
|
-
if (!Algorithm)
|
|
269394
|
-
throw new Error(
|
|
269887
|
+
module2.exports = function SHA(algorithm2) {
|
|
269888
|
+
var alg = algorithm2.toLowerCase();
|
|
269889
|
+
var Algorithm = module2.exports[alg];
|
|
269890
|
+
if (!Algorithm) {
|
|
269891
|
+
throw new Error(alg + " is not supported (we accept pull requests)");
|
|
269892
|
+
}
|
|
269395
269893
|
return new Algorithm();
|
|
269396
269894
|
};
|
|
269397
|
-
|
|
269398
|
-
|
|
269399
|
-
|
|
269400
|
-
|
|
269401
|
-
|
|
269402
|
-
|
|
269895
|
+
module2.exports.sha = require_sha4();
|
|
269896
|
+
module2.exports.sha1 = require_sha1();
|
|
269897
|
+
module2.exports.sha224 = require_sha2242();
|
|
269898
|
+
module2.exports.sha256 = require_sha2569();
|
|
269899
|
+
module2.exports.sha384 = require_sha384();
|
|
269900
|
+
module2.exports.sha512 = require_sha5125();
|
|
269403
269901
|
}
|
|
269404
269902
|
});
|
|
269405
269903
|
|
|
@@ -279497,13 +279995,855 @@ var require_key4 = __commonJS({
|
|
|
279497
279995
|
}
|
|
279498
279996
|
});
|
|
279499
279997
|
|
|
279500
|
-
// ../../node_modules/.pnpm
|
|
279998
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/hash.js
|
|
279501
279999
|
var require_hash7 = __commonJS({
|
|
280000
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/hash.js"(exports2, module2) {
|
|
280001
|
+
"use strict";
|
|
280002
|
+
var Buffer8 = require_safe_buffer().Buffer;
|
|
280003
|
+
function Hash4(blockSize, finalSize) {
|
|
280004
|
+
this._block = Buffer8.alloc(blockSize);
|
|
280005
|
+
this._finalSize = finalSize;
|
|
280006
|
+
this._blockSize = blockSize;
|
|
280007
|
+
this._len = 0;
|
|
280008
|
+
}
|
|
280009
|
+
Hash4.prototype.update = function(data12, enc) {
|
|
280010
|
+
if (typeof data12 === "string") {
|
|
280011
|
+
enc = enc || "utf8";
|
|
280012
|
+
data12 = Buffer8.from(data12, enc);
|
|
280013
|
+
}
|
|
280014
|
+
var block2 = this._block;
|
|
280015
|
+
var blockSize = this._blockSize;
|
|
280016
|
+
var length2 = data12.length;
|
|
280017
|
+
var accum = this._len;
|
|
280018
|
+
for (var offset2 = 0; offset2 < length2; ) {
|
|
280019
|
+
var assigned = accum % blockSize;
|
|
280020
|
+
var remainder = Math.min(length2 - offset2, blockSize - assigned);
|
|
280021
|
+
for (var i54 = 0; i54 < remainder; i54++) {
|
|
280022
|
+
block2[assigned + i54] = data12[offset2 + i54];
|
|
280023
|
+
}
|
|
280024
|
+
accum += remainder;
|
|
280025
|
+
offset2 += remainder;
|
|
280026
|
+
if (accum % blockSize === 0) {
|
|
280027
|
+
this._update(block2);
|
|
280028
|
+
}
|
|
280029
|
+
}
|
|
280030
|
+
this._len += length2;
|
|
280031
|
+
return this;
|
|
280032
|
+
};
|
|
280033
|
+
Hash4.prototype.digest = function(enc) {
|
|
280034
|
+
var rem = this._len % this._blockSize;
|
|
280035
|
+
this._block[rem] = 128;
|
|
280036
|
+
this._block.fill(0, rem + 1);
|
|
280037
|
+
if (rem >= this._finalSize) {
|
|
280038
|
+
this._update(this._block);
|
|
280039
|
+
this._block.fill(0);
|
|
280040
|
+
}
|
|
280041
|
+
var bits2 = this._len * 8;
|
|
280042
|
+
if (bits2 <= 4294967295) {
|
|
280043
|
+
this._block.writeUInt32BE(bits2, this._blockSize - 4);
|
|
280044
|
+
} else {
|
|
280045
|
+
var lowBits = (bits2 & 4294967295) >>> 0;
|
|
280046
|
+
var highBits = (bits2 - lowBits) / 4294967296;
|
|
280047
|
+
this._block.writeUInt32BE(highBits, this._blockSize - 8);
|
|
280048
|
+
this._block.writeUInt32BE(lowBits, this._blockSize - 4);
|
|
280049
|
+
}
|
|
280050
|
+
this._update(this._block);
|
|
280051
|
+
var hash10 = this._hash();
|
|
280052
|
+
return enc ? hash10.toString(enc) : hash10;
|
|
280053
|
+
};
|
|
280054
|
+
Hash4.prototype._update = function() {
|
|
280055
|
+
throw new Error("_update must be implemented by subclass");
|
|
280056
|
+
};
|
|
280057
|
+
module2.exports = Hash4;
|
|
280058
|
+
}
|
|
280059
|
+
});
|
|
280060
|
+
|
|
280061
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha.js
|
|
280062
|
+
var require_sha7 = __commonJS({
|
|
280063
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha.js"(exports2, module2) {
|
|
280064
|
+
"use strict";
|
|
280065
|
+
var inherits4 = require_inherits();
|
|
280066
|
+
var Hash4 = require_hash7();
|
|
280067
|
+
var Buffer8 = require_safe_buffer().Buffer;
|
|
280068
|
+
var K10 = [
|
|
280069
|
+
1518500249,
|
|
280070
|
+
1859775393,
|
|
280071
|
+
2400959708 | 0,
|
|
280072
|
+
3395469782 | 0
|
|
280073
|
+
];
|
|
280074
|
+
var W11 = new Array(80);
|
|
280075
|
+
function Sha() {
|
|
280076
|
+
this.init();
|
|
280077
|
+
this._w = W11;
|
|
280078
|
+
Hash4.call(this, 64, 56);
|
|
280079
|
+
}
|
|
280080
|
+
inherits4(Sha, Hash4);
|
|
280081
|
+
Sha.prototype.init = function() {
|
|
280082
|
+
this._a = 1732584193;
|
|
280083
|
+
this._b = 4023233417;
|
|
280084
|
+
this._c = 2562383102;
|
|
280085
|
+
this._d = 271733878;
|
|
280086
|
+
this._e = 3285377520;
|
|
280087
|
+
return this;
|
|
280088
|
+
};
|
|
280089
|
+
function rotl52(num) {
|
|
280090
|
+
return num << 5 | num >>> 27;
|
|
280091
|
+
}
|
|
280092
|
+
function rotl30(num) {
|
|
280093
|
+
return num << 30 | num >>> 2;
|
|
280094
|
+
}
|
|
280095
|
+
function ft3(s48, b20, c60, d57) {
|
|
280096
|
+
if (s48 === 0)
|
|
280097
|
+
return b20 & c60 | ~b20 & d57;
|
|
280098
|
+
if (s48 === 2)
|
|
280099
|
+
return b20 & c60 | b20 & d57 | c60 & d57;
|
|
280100
|
+
return b20 ^ c60 ^ d57;
|
|
280101
|
+
}
|
|
280102
|
+
Sha.prototype._update = function(M12) {
|
|
280103
|
+
var W12 = this._w;
|
|
280104
|
+
var a65 = this._a | 0;
|
|
280105
|
+
var b20 = this._b | 0;
|
|
280106
|
+
var c60 = this._c | 0;
|
|
280107
|
+
var d57 = this._d | 0;
|
|
280108
|
+
var e36 = this._e | 0;
|
|
280109
|
+
for (var i54 = 0; i54 < 16; ++i54)
|
|
280110
|
+
W12[i54] = M12.readInt32BE(i54 * 4);
|
|
280111
|
+
for (; i54 < 80; ++i54)
|
|
280112
|
+
W12[i54] = W12[i54 - 3] ^ W12[i54 - 8] ^ W12[i54 - 14] ^ W12[i54 - 16];
|
|
280113
|
+
for (var j9 = 0; j9 < 80; ++j9) {
|
|
280114
|
+
var s48 = ~~(j9 / 20);
|
|
280115
|
+
var t46 = rotl52(a65) + ft3(s48, b20, c60, d57) + e36 + W12[j9] + K10[s48] | 0;
|
|
280116
|
+
e36 = d57;
|
|
280117
|
+
d57 = c60;
|
|
280118
|
+
c60 = rotl30(b20);
|
|
280119
|
+
b20 = a65;
|
|
280120
|
+
a65 = t46;
|
|
280121
|
+
}
|
|
280122
|
+
this._a = a65 + this._a | 0;
|
|
280123
|
+
this._b = b20 + this._b | 0;
|
|
280124
|
+
this._c = c60 + this._c | 0;
|
|
280125
|
+
this._d = d57 + this._d | 0;
|
|
280126
|
+
this._e = e36 + this._e | 0;
|
|
280127
|
+
};
|
|
280128
|
+
Sha.prototype._hash = function() {
|
|
280129
|
+
var H12 = Buffer8.allocUnsafe(20);
|
|
280130
|
+
H12.writeInt32BE(this._a | 0, 0);
|
|
280131
|
+
H12.writeInt32BE(this._b | 0, 4);
|
|
280132
|
+
H12.writeInt32BE(this._c | 0, 8);
|
|
280133
|
+
H12.writeInt32BE(this._d | 0, 12);
|
|
280134
|
+
H12.writeInt32BE(this._e | 0, 16);
|
|
280135
|
+
return H12;
|
|
280136
|
+
};
|
|
280137
|
+
module2.exports = Sha;
|
|
280138
|
+
}
|
|
280139
|
+
});
|
|
280140
|
+
|
|
280141
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha1.js
|
|
280142
|
+
var require_sha13 = __commonJS({
|
|
280143
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha1.js"(exports2, module2) {
|
|
280144
|
+
"use strict";
|
|
280145
|
+
var inherits4 = require_inherits();
|
|
280146
|
+
var Hash4 = require_hash7();
|
|
280147
|
+
var Buffer8 = require_safe_buffer().Buffer;
|
|
280148
|
+
var K10 = [
|
|
280149
|
+
1518500249,
|
|
280150
|
+
1859775393,
|
|
280151
|
+
2400959708 | 0,
|
|
280152
|
+
3395469782 | 0
|
|
280153
|
+
];
|
|
280154
|
+
var W11 = new Array(80);
|
|
280155
|
+
function Sha1() {
|
|
280156
|
+
this.init();
|
|
280157
|
+
this._w = W11;
|
|
280158
|
+
Hash4.call(this, 64, 56);
|
|
280159
|
+
}
|
|
280160
|
+
inherits4(Sha1, Hash4);
|
|
280161
|
+
Sha1.prototype.init = function() {
|
|
280162
|
+
this._a = 1732584193;
|
|
280163
|
+
this._b = 4023233417;
|
|
280164
|
+
this._c = 2562383102;
|
|
280165
|
+
this._d = 271733878;
|
|
280166
|
+
this._e = 3285377520;
|
|
280167
|
+
return this;
|
|
280168
|
+
};
|
|
280169
|
+
function rotl1(num) {
|
|
280170
|
+
return num << 1 | num >>> 31;
|
|
280171
|
+
}
|
|
280172
|
+
function rotl52(num) {
|
|
280173
|
+
return num << 5 | num >>> 27;
|
|
280174
|
+
}
|
|
280175
|
+
function rotl30(num) {
|
|
280176
|
+
return num << 30 | num >>> 2;
|
|
280177
|
+
}
|
|
280178
|
+
function ft3(s48, b20, c60, d57) {
|
|
280179
|
+
if (s48 === 0)
|
|
280180
|
+
return b20 & c60 | ~b20 & d57;
|
|
280181
|
+
if (s48 === 2)
|
|
280182
|
+
return b20 & c60 | b20 & d57 | c60 & d57;
|
|
280183
|
+
return b20 ^ c60 ^ d57;
|
|
280184
|
+
}
|
|
280185
|
+
Sha1.prototype._update = function(M12) {
|
|
280186
|
+
var W12 = this._w;
|
|
280187
|
+
var a65 = this._a | 0;
|
|
280188
|
+
var b20 = this._b | 0;
|
|
280189
|
+
var c60 = this._c | 0;
|
|
280190
|
+
var d57 = this._d | 0;
|
|
280191
|
+
var e36 = this._e | 0;
|
|
280192
|
+
for (var i54 = 0; i54 < 16; ++i54)
|
|
280193
|
+
W12[i54] = M12.readInt32BE(i54 * 4);
|
|
280194
|
+
for (; i54 < 80; ++i54)
|
|
280195
|
+
W12[i54] = rotl1(W12[i54 - 3] ^ W12[i54 - 8] ^ W12[i54 - 14] ^ W12[i54 - 16]);
|
|
280196
|
+
for (var j9 = 0; j9 < 80; ++j9) {
|
|
280197
|
+
var s48 = ~~(j9 / 20);
|
|
280198
|
+
var t46 = rotl52(a65) + ft3(s48, b20, c60, d57) + e36 + W12[j9] + K10[s48] | 0;
|
|
280199
|
+
e36 = d57;
|
|
280200
|
+
d57 = c60;
|
|
280201
|
+
c60 = rotl30(b20);
|
|
280202
|
+
b20 = a65;
|
|
280203
|
+
a65 = t46;
|
|
280204
|
+
}
|
|
280205
|
+
this._a = a65 + this._a | 0;
|
|
280206
|
+
this._b = b20 + this._b | 0;
|
|
280207
|
+
this._c = c60 + this._c | 0;
|
|
280208
|
+
this._d = d57 + this._d | 0;
|
|
280209
|
+
this._e = e36 + this._e | 0;
|
|
280210
|
+
};
|
|
280211
|
+
Sha1.prototype._hash = function() {
|
|
280212
|
+
var H12 = Buffer8.allocUnsafe(20);
|
|
280213
|
+
H12.writeInt32BE(this._a | 0, 0);
|
|
280214
|
+
H12.writeInt32BE(this._b | 0, 4);
|
|
280215
|
+
H12.writeInt32BE(this._c | 0, 8);
|
|
280216
|
+
H12.writeInt32BE(this._d | 0, 12);
|
|
280217
|
+
H12.writeInt32BE(this._e | 0, 16);
|
|
280218
|
+
return H12;
|
|
280219
|
+
};
|
|
280220
|
+
module2.exports = Sha1;
|
|
280221
|
+
}
|
|
280222
|
+
});
|
|
280223
|
+
|
|
280224
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha256.js
|
|
280225
|
+
var require_sha25610 = __commonJS({
|
|
280226
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha256.js"(exports2, module2) {
|
|
280227
|
+
"use strict";
|
|
280228
|
+
var inherits4 = require_inherits();
|
|
280229
|
+
var Hash4 = require_hash7();
|
|
280230
|
+
var Buffer8 = require_safe_buffer().Buffer;
|
|
280231
|
+
var K10 = [
|
|
280232
|
+
1116352408,
|
|
280233
|
+
1899447441,
|
|
280234
|
+
3049323471,
|
|
280235
|
+
3921009573,
|
|
280236
|
+
961987163,
|
|
280237
|
+
1508970993,
|
|
280238
|
+
2453635748,
|
|
280239
|
+
2870763221,
|
|
280240
|
+
3624381080,
|
|
280241
|
+
310598401,
|
|
280242
|
+
607225278,
|
|
280243
|
+
1426881987,
|
|
280244
|
+
1925078388,
|
|
280245
|
+
2162078206,
|
|
280246
|
+
2614888103,
|
|
280247
|
+
3248222580,
|
|
280248
|
+
3835390401,
|
|
280249
|
+
4022224774,
|
|
280250
|
+
264347078,
|
|
280251
|
+
604807628,
|
|
280252
|
+
770255983,
|
|
280253
|
+
1249150122,
|
|
280254
|
+
1555081692,
|
|
280255
|
+
1996064986,
|
|
280256
|
+
2554220882,
|
|
280257
|
+
2821834349,
|
|
280258
|
+
2952996808,
|
|
280259
|
+
3210313671,
|
|
280260
|
+
3336571891,
|
|
280261
|
+
3584528711,
|
|
280262
|
+
113926993,
|
|
280263
|
+
338241895,
|
|
280264
|
+
666307205,
|
|
280265
|
+
773529912,
|
|
280266
|
+
1294757372,
|
|
280267
|
+
1396182291,
|
|
280268
|
+
1695183700,
|
|
280269
|
+
1986661051,
|
|
280270
|
+
2177026350,
|
|
280271
|
+
2456956037,
|
|
280272
|
+
2730485921,
|
|
280273
|
+
2820302411,
|
|
280274
|
+
3259730800,
|
|
280275
|
+
3345764771,
|
|
280276
|
+
3516065817,
|
|
280277
|
+
3600352804,
|
|
280278
|
+
4094571909,
|
|
280279
|
+
275423344,
|
|
280280
|
+
430227734,
|
|
280281
|
+
506948616,
|
|
280282
|
+
659060556,
|
|
280283
|
+
883997877,
|
|
280284
|
+
958139571,
|
|
280285
|
+
1322822218,
|
|
280286
|
+
1537002063,
|
|
280287
|
+
1747873779,
|
|
280288
|
+
1955562222,
|
|
280289
|
+
2024104815,
|
|
280290
|
+
2227730452,
|
|
280291
|
+
2361852424,
|
|
280292
|
+
2428436474,
|
|
280293
|
+
2756734187,
|
|
280294
|
+
3204031479,
|
|
280295
|
+
3329325298
|
|
280296
|
+
];
|
|
280297
|
+
var W11 = new Array(64);
|
|
280298
|
+
function Sha2562() {
|
|
280299
|
+
this.init();
|
|
280300
|
+
this._w = W11;
|
|
280301
|
+
Hash4.call(this, 64, 56);
|
|
280302
|
+
}
|
|
280303
|
+
inherits4(Sha2562, Hash4);
|
|
280304
|
+
Sha2562.prototype.init = function() {
|
|
280305
|
+
this._a = 1779033703;
|
|
280306
|
+
this._b = 3144134277;
|
|
280307
|
+
this._c = 1013904242;
|
|
280308
|
+
this._d = 2773480762;
|
|
280309
|
+
this._e = 1359893119;
|
|
280310
|
+
this._f = 2600822924;
|
|
280311
|
+
this._g = 528734635;
|
|
280312
|
+
this._h = 1541459225;
|
|
280313
|
+
return this;
|
|
280314
|
+
};
|
|
280315
|
+
function ch(x23, y40, z10) {
|
|
280316
|
+
return z10 ^ x23 & (y40 ^ z10);
|
|
280317
|
+
}
|
|
280318
|
+
function maj(x23, y40, z10) {
|
|
280319
|
+
return x23 & y40 | z10 & (x23 | y40);
|
|
280320
|
+
}
|
|
280321
|
+
function sigma0(x23) {
|
|
280322
|
+
return (x23 >>> 2 | x23 << 30) ^ (x23 >>> 13 | x23 << 19) ^ (x23 >>> 22 | x23 << 10);
|
|
280323
|
+
}
|
|
280324
|
+
function sigma1(x23) {
|
|
280325
|
+
return (x23 >>> 6 | x23 << 26) ^ (x23 >>> 11 | x23 << 21) ^ (x23 >>> 25 | x23 << 7);
|
|
280326
|
+
}
|
|
280327
|
+
function gamma0(x23) {
|
|
280328
|
+
return (x23 >>> 7 | x23 << 25) ^ (x23 >>> 18 | x23 << 14) ^ x23 >>> 3;
|
|
280329
|
+
}
|
|
280330
|
+
function gamma1(x23) {
|
|
280331
|
+
return (x23 >>> 17 | x23 << 15) ^ (x23 >>> 19 | x23 << 13) ^ x23 >>> 10;
|
|
280332
|
+
}
|
|
280333
|
+
Sha2562.prototype._update = function(M12) {
|
|
280334
|
+
var W12 = this._w;
|
|
280335
|
+
var a65 = this._a | 0;
|
|
280336
|
+
var b20 = this._b | 0;
|
|
280337
|
+
var c60 = this._c | 0;
|
|
280338
|
+
var d57 = this._d | 0;
|
|
280339
|
+
var e36 = this._e | 0;
|
|
280340
|
+
var f49 = this._f | 0;
|
|
280341
|
+
var g49 = this._g | 0;
|
|
280342
|
+
var h33 = this._h | 0;
|
|
280343
|
+
for (var i54 = 0; i54 < 16; ++i54)
|
|
280344
|
+
W12[i54] = M12.readInt32BE(i54 * 4);
|
|
280345
|
+
for (; i54 < 64; ++i54)
|
|
280346
|
+
W12[i54] = gamma1(W12[i54 - 2]) + W12[i54 - 7] + gamma0(W12[i54 - 15]) + W12[i54 - 16] | 0;
|
|
280347
|
+
for (var j9 = 0; j9 < 64; ++j9) {
|
|
280348
|
+
var T110 = h33 + sigma1(e36) + ch(e36, f49, g49) + K10[j9] + W12[j9] | 0;
|
|
280349
|
+
var T28 = sigma0(a65) + maj(a65, b20, c60) | 0;
|
|
280350
|
+
h33 = g49;
|
|
280351
|
+
g49 = f49;
|
|
280352
|
+
f49 = e36;
|
|
280353
|
+
e36 = d57 + T110 | 0;
|
|
280354
|
+
d57 = c60;
|
|
280355
|
+
c60 = b20;
|
|
280356
|
+
b20 = a65;
|
|
280357
|
+
a65 = T110 + T28 | 0;
|
|
280358
|
+
}
|
|
280359
|
+
this._a = a65 + this._a | 0;
|
|
280360
|
+
this._b = b20 + this._b | 0;
|
|
280361
|
+
this._c = c60 + this._c | 0;
|
|
280362
|
+
this._d = d57 + this._d | 0;
|
|
280363
|
+
this._e = e36 + this._e | 0;
|
|
280364
|
+
this._f = f49 + this._f | 0;
|
|
280365
|
+
this._g = g49 + this._g | 0;
|
|
280366
|
+
this._h = h33 + this._h | 0;
|
|
280367
|
+
};
|
|
280368
|
+
Sha2562.prototype._hash = function() {
|
|
280369
|
+
var H12 = Buffer8.allocUnsafe(32);
|
|
280370
|
+
H12.writeInt32BE(this._a, 0);
|
|
280371
|
+
H12.writeInt32BE(this._b, 4);
|
|
280372
|
+
H12.writeInt32BE(this._c, 8);
|
|
280373
|
+
H12.writeInt32BE(this._d, 12);
|
|
280374
|
+
H12.writeInt32BE(this._e, 16);
|
|
280375
|
+
H12.writeInt32BE(this._f, 20);
|
|
280376
|
+
H12.writeInt32BE(this._g, 24);
|
|
280377
|
+
H12.writeInt32BE(this._h, 28);
|
|
280378
|
+
return H12;
|
|
280379
|
+
};
|
|
280380
|
+
module2.exports = Sha2562;
|
|
280381
|
+
}
|
|
280382
|
+
});
|
|
280383
|
+
|
|
280384
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha224.js
|
|
280385
|
+
var require_sha2243 = __commonJS({
|
|
280386
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha224.js"(exports2, module2) {
|
|
280387
|
+
"use strict";
|
|
280388
|
+
var inherits4 = require_inherits();
|
|
280389
|
+
var Sha2562 = require_sha25610();
|
|
280390
|
+
var Hash4 = require_hash7();
|
|
280391
|
+
var Buffer8 = require_safe_buffer().Buffer;
|
|
280392
|
+
var W11 = new Array(64);
|
|
280393
|
+
function Sha224() {
|
|
280394
|
+
this.init();
|
|
280395
|
+
this._w = W11;
|
|
280396
|
+
Hash4.call(this, 64, 56);
|
|
280397
|
+
}
|
|
280398
|
+
inherits4(Sha224, Sha2562);
|
|
280399
|
+
Sha224.prototype.init = function() {
|
|
280400
|
+
this._a = 3238371032;
|
|
280401
|
+
this._b = 914150663;
|
|
280402
|
+
this._c = 812702999;
|
|
280403
|
+
this._d = 4144912697;
|
|
280404
|
+
this._e = 4290775857;
|
|
280405
|
+
this._f = 1750603025;
|
|
280406
|
+
this._g = 1694076839;
|
|
280407
|
+
this._h = 3204075428;
|
|
280408
|
+
return this;
|
|
280409
|
+
};
|
|
280410
|
+
Sha224.prototype._hash = function() {
|
|
280411
|
+
var H12 = Buffer8.allocUnsafe(28);
|
|
280412
|
+
H12.writeInt32BE(this._a, 0);
|
|
280413
|
+
H12.writeInt32BE(this._b, 4);
|
|
280414
|
+
H12.writeInt32BE(this._c, 8);
|
|
280415
|
+
H12.writeInt32BE(this._d, 12);
|
|
280416
|
+
H12.writeInt32BE(this._e, 16);
|
|
280417
|
+
H12.writeInt32BE(this._f, 20);
|
|
280418
|
+
H12.writeInt32BE(this._g, 24);
|
|
280419
|
+
return H12;
|
|
280420
|
+
};
|
|
280421
|
+
module2.exports = Sha224;
|
|
280422
|
+
}
|
|
280423
|
+
});
|
|
280424
|
+
|
|
280425
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha512.js
|
|
280426
|
+
var require_sha5127 = __commonJS({
|
|
280427
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha512.js"(exports2, module2) {
|
|
280428
|
+
"use strict";
|
|
280429
|
+
var inherits4 = require_inherits();
|
|
280430
|
+
var Hash4 = require_hash7();
|
|
280431
|
+
var Buffer8 = require_safe_buffer().Buffer;
|
|
280432
|
+
var K10 = [
|
|
280433
|
+
1116352408,
|
|
280434
|
+
3609767458,
|
|
280435
|
+
1899447441,
|
|
280436
|
+
602891725,
|
|
280437
|
+
3049323471,
|
|
280438
|
+
3964484399,
|
|
280439
|
+
3921009573,
|
|
280440
|
+
2173295548,
|
|
280441
|
+
961987163,
|
|
280442
|
+
4081628472,
|
|
280443
|
+
1508970993,
|
|
280444
|
+
3053834265,
|
|
280445
|
+
2453635748,
|
|
280446
|
+
2937671579,
|
|
280447
|
+
2870763221,
|
|
280448
|
+
3664609560,
|
|
280449
|
+
3624381080,
|
|
280450
|
+
2734883394,
|
|
280451
|
+
310598401,
|
|
280452
|
+
1164996542,
|
|
280453
|
+
607225278,
|
|
280454
|
+
1323610764,
|
|
280455
|
+
1426881987,
|
|
280456
|
+
3590304994,
|
|
280457
|
+
1925078388,
|
|
280458
|
+
4068182383,
|
|
280459
|
+
2162078206,
|
|
280460
|
+
991336113,
|
|
280461
|
+
2614888103,
|
|
280462
|
+
633803317,
|
|
280463
|
+
3248222580,
|
|
280464
|
+
3479774868,
|
|
280465
|
+
3835390401,
|
|
280466
|
+
2666613458,
|
|
280467
|
+
4022224774,
|
|
280468
|
+
944711139,
|
|
280469
|
+
264347078,
|
|
280470
|
+
2341262773,
|
|
280471
|
+
604807628,
|
|
280472
|
+
2007800933,
|
|
280473
|
+
770255983,
|
|
280474
|
+
1495990901,
|
|
280475
|
+
1249150122,
|
|
280476
|
+
1856431235,
|
|
280477
|
+
1555081692,
|
|
280478
|
+
3175218132,
|
|
280479
|
+
1996064986,
|
|
280480
|
+
2198950837,
|
|
280481
|
+
2554220882,
|
|
280482
|
+
3999719339,
|
|
280483
|
+
2821834349,
|
|
280484
|
+
766784016,
|
|
280485
|
+
2952996808,
|
|
280486
|
+
2566594879,
|
|
280487
|
+
3210313671,
|
|
280488
|
+
3203337956,
|
|
280489
|
+
3336571891,
|
|
280490
|
+
1034457026,
|
|
280491
|
+
3584528711,
|
|
280492
|
+
2466948901,
|
|
280493
|
+
113926993,
|
|
280494
|
+
3758326383,
|
|
280495
|
+
338241895,
|
|
280496
|
+
168717936,
|
|
280497
|
+
666307205,
|
|
280498
|
+
1188179964,
|
|
280499
|
+
773529912,
|
|
280500
|
+
1546045734,
|
|
280501
|
+
1294757372,
|
|
280502
|
+
1522805485,
|
|
280503
|
+
1396182291,
|
|
280504
|
+
2643833823,
|
|
280505
|
+
1695183700,
|
|
280506
|
+
2343527390,
|
|
280507
|
+
1986661051,
|
|
280508
|
+
1014477480,
|
|
280509
|
+
2177026350,
|
|
280510
|
+
1206759142,
|
|
280511
|
+
2456956037,
|
|
280512
|
+
344077627,
|
|
280513
|
+
2730485921,
|
|
280514
|
+
1290863460,
|
|
280515
|
+
2820302411,
|
|
280516
|
+
3158454273,
|
|
280517
|
+
3259730800,
|
|
280518
|
+
3505952657,
|
|
280519
|
+
3345764771,
|
|
280520
|
+
106217008,
|
|
280521
|
+
3516065817,
|
|
280522
|
+
3606008344,
|
|
280523
|
+
3600352804,
|
|
280524
|
+
1432725776,
|
|
280525
|
+
4094571909,
|
|
280526
|
+
1467031594,
|
|
280527
|
+
275423344,
|
|
280528
|
+
851169720,
|
|
280529
|
+
430227734,
|
|
280530
|
+
3100823752,
|
|
280531
|
+
506948616,
|
|
280532
|
+
1363258195,
|
|
280533
|
+
659060556,
|
|
280534
|
+
3750685593,
|
|
280535
|
+
883997877,
|
|
280536
|
+
3785050280,
|
|
280537
|
+
958139571,
|
|
280538
|
+
3318307427,
|
|
280539
|
+
1322822218,
|
|
280540
|
+
3812723403,
|
|
280541
|
+
1537002063,
|
|
280542
|
+
2003034995,
|
|
280543
|
+
1747873779,
|
|
280544
|
+
3602036899,
|
|
280545
|
+
1955562222,
|
|
280546
|
+
1575990012,
|
|
280547
|
+
2024104815,
|
|
280548
|
+
1125592928,
|
|
280549
|
+
2227730452,
|
|
280550
|
+
2716904306,
|
|
280551
|
+
2361852424,
|
|
280552
|
+
442776044,
|
|
280553
|
+
2428436474,
|
|
280554
|
+
593698344,
|
|
280555
|
+
2756734187,
|
|
280556
|
+
3733110249,
|
|
280557
|
+
3204031479,
|
|
280558
|
+
2999351573,
|
|
280559
|
+
3329325298,
|
|
280560
|
+
3815920427,
|
|
280561
|
+
3391569614,
|
|
280562
|
+
3928383900,
|
|
280563
|
+
3515267271,
|
|
280564
|
+
566280711,
|
|
280565
|
+
3940187606,
|
|
280566
|
+
3454069534,
|
|
280567
|
+
4118630271,
|
|
280568
|
+
4000239992,
|
|
280569
|
+
116418474,
|
|
280570
|
+
1914138554,
|
|
280571
|
+
174292421,
|
|
280572
|
+
2731055270,
|
|
280573
|
+
289380356,
|
|
280574
|
+
3203993006,
|
|
280575
|
+
460393269,
|
|
280576
|
+
320620315,
|
|
280577
|
+
685471733,
|
|
280578
|
+
587496836,
|
|
280579
|
+
852142971,
|
|
280580
|
+
1086792851,
|
|
280581
|
+
1017036298,
|
|
280582
|
+
365543100,
|
|
280583
|
+
1126000580,
|
|
280584
|
+
2618297676,
|
|
280585
|
+
1288033470,
|
|
280586
|
+
3409855158,
|
|
280587
|
+
1501505948,
|
|
280588
|
+
4234509866,
|
|
280589
|
+
1607167915,
|
|
280590
|
+
987167468,
|
|
280591
|
+
1816402316,
|
|
280592
|
+
1246189591
|
|
280593
|
+
];
|
|
280594
|
+
var W11 = new Array(160);
|
|
280595
|
+
function Sha512() {
|
|
280596
|
+
this.init();
|
|
280597
|
+
this._w = W11;
|
|
280598
|
+
Hash4.call(this, 128, 112);
|
|
280599
|
+
}
|
|
280600
|
+
inherits4(Sha512, Hash4);
|
|
280601
|
+
Sha512.prototype.init = function() {
|
|
280602
|
+
this._ah = 1779033703;
|
|
280603
|
+
this._bh = 3144134277;
|
|
280604
|
+
this._ch = 1013904242;
|
|
280605
|
+
this._dh = 2773480762;
|
|
280606
|
+
this._eh = 1359893119;
|
|
280607
|
+
this._fh = 2600822924;
|
|
280608
|
+
this._gh = 528734635;
|
|
280609
|
+
this._hh = 1541459225;
|
|
280610
|
+
this._al = 4089235720;
|
|
280611
|
+
this._bl = 2227873595;
|
|
280612
|
+
this._cl = 4271175723;
|
|
280613
|
+
this._dl = 1595750129;
|
|
280614
|
+
this._el = 2917565137;
|
|
280615
|
+
this._fl = 725511199;
|
|
280616
|
+
this._gl = 4215389547;
|
|
280617
|
+
this._hl = 327033209;
|
|
280618
|
+
return this;
|
|
280619
|
+
};
|
|
280620
|
+
function Ch(x23, y40, z10) {
|
|
280621
|
+
return z10 ^ x23 & (y40 ^ z10);
|
|
280622
|
+
}
|
|
280623
|
+
function maj(x23, y40, z10) {
|
|
280624
|
+
return x23 & y40 | z10 & (x23 | y40);
|
|
280625
|
+
}
|
|
280626
|
+
function sigma0(x23, xl) {
|
|
280627
|
+
return (x23 >>> 28 | xl << 4) ^ (xl >>> 2 | x23 << 30) ^ (xl >>> 7 | x23 << 25);
|
|
280628
|
+
}
|
|
280629
|
+
function sigma1(x23, xl) {
|
|
280630
|
+
return (x23 >>> 14 | xl << 18) ^ (x23 >>> 18 | xl << 14) ^ (xl >>> 9 | x23 << 23);
|
|
280631
|
+
}
|
|
280632
|
+
function Gamma0(x23, xl) {
|
|
280633
|
+
return (x23 >>> 1 | xl << 31) ^ (x23 >>> 8 | xl << 24) ^ x23 >>> 7;
|
|
280634
|
+
}
|
|
280635
|
+
function Gamma0l(x23, xl) {
|
|
280636
|
+
return (x23 >>> 1 | xl << 31) ^ (x23 >>> 8 | xl << 24) ^ (x23 >>> 7 | xl << 25);
|
|
280637
|
+
}
|
|
280638
|
+
function Gamma1(x23, xl) {
|
|
280639
|
+
return (x23 >>> 19 | xl << 13) ^ (xl >>> 29 | x23 << 3) ^ x23 >>> 6;
|
|
280640
|
+
}
|
|
280641
|
+
function Gamma1l(x23, xl) {
|
|
280642
|
+
return (x23 >>> 19 | xl << 13) ^ (xl >>> 29 | x23 << 3) ^ (x23 >>> 6 | xl << 26);
|
|
280643
|
+
}
|
|
280644
|
+
function getCarry(a65, b20) {
|
|
280645
|
+
return a65 >>> 0 < b20 >>> 0 ? 1 : 0;
|
|
280646
|
+
}
|
|
280647
|
+
Sha512.prototype._update = function(M12) {
|
|
280648
|
+
var W12 = this._w;
|
|
280649
|
+
var ah = this._ah | 0;
|
|
280650
|
+
var bh = this._bh | 0;
|
|
280651
|
+
var ch = this._ch | 0;
|
|
280652
|
+
var dh = this._dh | 0;
|
|
280653
|
+
var eh = this._eh | 0;
|
|
280654
|
+
var fh = this._fh | 0;
|
|
280655
|
+
var gh = this._gh | 0;
|
|
280656
|
+
var hh = this._hh | 0;
|
|
280657
|
+
var al = this._al | 0;
|
|
280658
|
+
var bl = this._bl | 0;
|
|
280659
|
+
var cl = this._cl | 0;
|
|
280660
|
+
var dl = this._dl | 0;
|
|
280661
|
+
var el = this._el | 0;
|
|
280662
|
+
var fl2 = this._fl | 0;
|
|
280663
|
+
var gl = this._gl | 0;
|
|
280664
|
+
var hl = this._hl | 0;
|
|
280665
|
+
for (var i54 = 0; i54 < 32; i54 += 2) {
|
|
280666
|
+
W12[i54] = M12.readInt32BE(i54 * 4);
|
|
280667
|
+
W12[i54 + 1] = M12.readInt32BE(i54 * 4 + 4);
|
|
280668
|
+
}
|
|
280669
|
+
for (; i54 < 160; i54 += 2) {
|
|
280670
|
+
var xh = W12[i54 - 15 * 2];
|
|
280671
|
+
var xl = W12[i54 - 15 * 2 + 1];
|
|
280672
|
+
var gamma0 = Gamma0(xh, xl);
|
|
280673
|
+
var gamma0l = Gamma0l(xl, xh);
|
|
280674
|
+
xh = W12[i54 - 2 * 2];
|
|
280675
|
+
xl = W12[i54 - 2 * 2 + 1];
|
|
280676
|
+
var gamma1 = Gamma1(xh, xl);
|
|
280677
|
+
var gamma1l = Gamma1l(xl, xh);
|
|
280678
|
+
var Wi7h = W12[i54 - 7 * 2];
|
|
280679
|
+
var Wi7l = W12[i54 - 7 * 2 + 1];
|
|
280680
|
+
var Wi16h = W12[i54 - 16 * 2];
|
|
280681
|
+
var Wi16l = W12[i54 - 16 * 2 + 1];
|
|
280682
|
+
var Wil = gamma0l + Wi7l | 0;
|
|
280683
|
+
var Wih = gamma0 + Wi7h + getCarry(Wil, gamma0l) | 0;
|
|
280684
|
+
Wil = Wil + gamma1l | 0;
|
|
280685
|
+
Wih = Wih + gamma1 + getCarry(Wil, gamma1l) | 0;
|
|
280686
|
+
Wil = Wil + Wi16l | 0;
|
|
280687
|
+
Wih = Wih + Wi16h + getCarry(Wil, Wi16l) | 0;
|
|
280688
|
+
W12[i54] = Wih;
|
|
280689
|
+
W12[i54 + 1] = Wil;
|
|
280690
|
+
}
|
|
280691
|
+
for (var j9 = 0; j9 < 160; j9 += 2) {
|
|
280692
|
+
Wih = W12[j9];
|
|
280693
|
+
Wil = W12[j9 + 1];
|
|
280694
|
+
var majh = maj(ah, bh, ch);
|
|
280695
|
+
var majl = maj(al, bl, cl);
|
|
280696
|
+
var sigma0h = sigma0(ah, al);
|
|
280697
|
+
var sigma0l = sigma0(al, ah);
|
|
280698
|
+
var sigma1h = sigma1(eh, el);
|
|
280699
|
+
var sigma1l = sigma1(el, eh);
|
|
280700
|
+
var Kih = K10[j9];
|
|
280701
|
+
var Kil = K10[j9 + 1];
|
|
280702
|
+
var chh = Ch(eh, fh, gh);
|
|
280703
|
+
var chl = Ch(el, fl2, gl);
|
|
280704
|
+
var t1l = hl + sigma1l | 0;
|
|
280705
|
+
var t1h = hh + sigma1h + getCarry(t1l, hl) | 0;
|
|
280706
|
+
t1l = t1l + chl | 0;
|
|
280707
|
+
t1h = t1h + chh + getCarry(t1l, chl) | 0;
|
|
280708
|
+
t1l = t1l + Kil | 0;
|
|
280709
|
+
t1h = t1h + Kih + getCarry(t1l, Kil) | 0;
|
|
280710
|
+
t1l = t1l + Wil | 0;
|
|
280711
|
+
t1h = t1h + Wih + getCarry(t1l, Wil) | 0;
|
|
280712
|
+
var t2l = sigma0l + majl | 0;
|
|
280713
|
+
var t2h = sigma0h + majh + getCarry(t2l, sigma0l) | 0;
|
|
280714
|
+
hh = gh;
|
|
280715
|
+
hl = gl;
|
|
280716
|
+
gh = fh;
|
|
280717
|
+
gl = fl2;
|
|
280718
|
+
fh = eh;
|
|
280719
|
+
fl2 = el;
|
|
280720
|
+
el = dl + t1l | 0;
|
|
280721
|
+
eh = dh + t1h + getCarry(el, dl) | 0;
|
|
280722
|
+
dh = ch;
|
|
280723
|
+
dl = cl;
|
|
280724
|
+
ch = bh;
|
|
280725
|
+
cl = bl;
|
|
280726
|
+
bh = ah;
|
|
280727
|
+
bl = al;
|
|
280728
|
+
al = t1l + t2l | 0;
|
|
280729
|
+
ah = t1h + t2h + getCarry(al, t1l) | 0;
|
|
280730
|
+
}
|
|
280731
|
+
this._al = this._al + al | 0;
|
|
280732
|
+
this._bl = this._bl + bl | 0;
|
|
280733
|
+
this._cl = this._cl + cl | 0;
|
|
280734
|
+
this._dl = this._dl + dl | 0;
|
|
280735
|
+
this._el = this._el + el | 0;
|
|
280736
|
+
this._fl = this._fl + fl2 | 0;
|
|
280737
|
+
this._gl = this._gl + gl | 0;
|
|
280738
|
+
this._hl = this._hl + hl | 0;
|
|
280739
|
+
this._ah = this._ah + ah + getCarry(this._al, al) | 0;
|
|
280740
|
+
this._bh = this._bh + bh + getCarry(this._bl, bl) | 0;
|
|
280741
|
+
this._ch = this._ch + ch + getCarry(this._cl, cl) | 0;
|
|
280742
|
+
this._dh = this._dh + dh + getCarry(this._dl, dl) | 0;
|
|
280743
|
+
this._eh = this._eh + eh + getCarry(this._el, el) | 0;
|
|
280744
|
+
this._fh = this._fh + fh + getCarry(this._fl, fl2) | 0;
|
|
280745
|
+
this._gh = this._gh + gh + getCarry(this._gl, gl) | 0;
|
|
280746
|
+
this._hh = this._hh + hh + getCarry(this._hl, hl) | 0;
|
|
280747
|
+
};
|
|
280748
|
+
Sha512.prototype._hash = function() {
|
|
280749
|
+
var H12 = Buffer8.allocUnsafe(64);
|
|
280750
|
+
function writeInt64BE(h33, l70, offset2) {
|
|
280751
|
+
H12.writeInt32BE(h33, offset2);
|
|
280752
|
+
H12.writeInt32BE(l70, offset2 + 4);
|
|
280753
|
+
}
|
|
280754
|
+
writeInt64BE(this._ah, this._al, 0);
|
|
280755
|
+
writeInt64BE(this._bh, this._bl, 8);
|
|
280756
|
+
writeInt64BE(this._ch, this._cl, 16);
|
|
280757
|
+
writeInt64BE(this._dh, this._dl, 24);
|
|
280758
|
+
writeInt64BE(this._eh, this._el, 32);
|
|
280759
|
+
writeInt64BE(this._fh, this._fl, 40);
|
|
280760
|
+
writeInt64BE(this._gh, this._gl, 48);
|
|
280761
|
+
writeInt64BE(this._hh, this._hl, 56);
|
|
280762
|
+
return H12;
|
|
280763
|
+
};
|
|
280764
|
+
module2.exports = Sha512;
|
|
280765
|
+
}
|
|
280766
|
+
});
|
|
280767
|
+
|
|
280768
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha384.js
|
|
280769
|
+
var require_sha3843 = __commonJS({
|
|
280770
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha384.js"(exports2, module2) {
|
|
280771
|
+
"use strict";
|
|
280772
|
+
var inherits4 = require_inherits();
|
|
280773
|
+
var SHA5123 = require_sha5127();
|
|
280774
|
+
var Hash4 = require_hash7();
|
|
280775
|
+
var Buffer8 = require_safe_buffer().Buffer;
|
|
280776
|
+
var W11 = new Array(160);
|
|
280777
|
+
function Sha384() {
|
|
280778
|
+
this.init();
|
|
280779
|
+
this._w = W11;
|
|
280780
|
+
Hash4.call(this, 128, 112);
|
|
280781
|
+
}
|
|
280782
|
+
inherits4(Sha384, SHA5123);
|
|
280783
|
+
Sha384.prototype.init = function() {
|
|
280784
|
+
this._ah = 3418070365;
|
|
280785
|
+
this._bh = 1654270250;
|
|
280786
|
+
this._ch = 2438529370;
|
|
280787
|
+
this._dh = 355462360;
|
|
280788
|
+
this._eh = 1731405415;
|
|
280789
|
+
this._fh = 2394180231;
|
|
280790
|
+
this._gh = 3675008525;
|
|
280791
|
+
this._hh = 1203062813;
|
|
280792
|
+
this._al = 3238371032;
|
|
280793
|
+
this._bl = 914150663;
|
|
280794
|
+
this._cl = 812702999;
|
|
280795
|
+
this._dl = 4144912697;
|
|
280796
|
+
this._el = 4290775857;
|
|
280797
|
+
this._fl = 1750603025;
|
|
280798
|
+
this._gl = 1694076839;
|
|
280799
|
+
this._hl = 3204075428;
|
|
280800
|
+
return this;
|
|
280801
|
+
};
|
|
280802
|
+
Sha384.prototype._hash = function() {
|
|
280803
|
+
var H12 = Buffer8.allocUnsafe(48);
|
|
280804
|
+
function writeInt64BE(h33, l70, offset2) {
|
|
280805
|
+
H12.writeInt32BE(h33, offset2);
|
|
280806
|
+
H12.writeInt32BE(l70, offset2 + 4);
|
|
280807
|
+
}
|
|
280808
|
+
writeInt64BE(this._ah, this._al, 0);
|
|
280809
|
+
writeInt64BE(this._bh, this._bl, 8);
|
|
280810
|
+
writeInt64BE(this._ch, this._cl, 16);
|
|
280811
|
+
writeInt64BE(this._dh, this._dl, 24);
|
|
280812
|
+
writeInt64BE(this._eh, this._el, 32);
|
|
280813
|
+
writeInt64BE(this._fh, this._fl, 40);
|
|
280814
|
+
return H12;
|
|
280815
|
+
};
|
|
280816
|
+
module2.exports = Sha384;
|
|
280817
|
+
}
|
|
280818
|
+
});
|
|
280819
|
+
|
|
280820
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/index.js
|
|
280821
|
+
var require_sha8 = __commonJS({
|
|
280822
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/index.js"(exports2, module2) {
|
|
280823
|
+
"use strict";
|
|
280824
|
+
var exports2 = module2.exports = function SHA(algorithm2) {
|
|
280825
|
+
algorithm2 = algorithm2.toLowerCase();
|
|
280826
|
+
var Algorithm = exports2[algorithm2];
|
|
280827
|
+
if (!Algorithm)
|
|
280828
|
+
throw new Error(algorithm2 + " is not supported (we accept pull requests)");
|
|
280829
|
+
return new Algorithm();
|
|
280830
|
+
};
|
|
280831
|
+
exports2.sha = require_sha7();
|
|
280832
|
+
exports2.sha1 = require_sha13();
|
|
280833
|
+
exports2.sha224 = require_sha2243();
|
|
280834
|
+
exports2.sha256 = require_sha25610();
|
|
280835
|
+
exports2.sha384 = require_sha3843();
|
|
280836
|
+
exports2.sha512 = require_sha5127();
|
|
280837
|
+
}
|
|
280838
|
+
});
|
|
280839
|
+
|
|
280840
|
+
// ../../node_modules/.pnpm/@keplr-wallet+crypto@0.9.10/node_modules/@keplr-wallet/crypto/build/hash.js
|
|
280841
|
+
var require_hash8 = __commonJS({
|
|
279502
280842
|
"../../node_modules/.pnpm/@keplr-wallet+crypto@0.9.10/node_modules/@keplr-wallet/crypto/build/hash.js"(exports2) {
|
|
279503
280843
|
"use strict";
|
|
279504
280844
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
279505
280845
|
exports2.Hash = void 0;
|
|
279506
|
-
var sha_js_1 =
|
|
280846
|
+
var sha_js_1 = require_sha8();
|
|
279507
280847
|
var Hash4 = class {
|
|
279508
280848
|
static sha256(data12) {
|
|
279509
280849
|
return new Uint8Array(new sha_js_1.sha256().update(data12).digest());
|
|
@@ -279539,7 +280879,7 @@ var require_build7 = __commonJS({
|
|
|
279539
280879
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
279540
280880
|
__exportStar(require_mnemonic2(), exports2);
|
|
279541
280881
|
__exportStar(require_key4(), exports2);
|
|
279542
|
-
__exportStar(
|
|
280882
|
+
__exportStar(require_hash8(), exports2);
|
|
279543
280883
|
}
|
|
279544
280884
|
});
|
|
279545
280885
|
|
|
@@ -282339,7 +283679,7 @@ var require_utils25 = __commonJS({
|
|
|
282339
283679
|
});
|
|
282340
283680
|
|
|
282341
283681
|
// ../../node_modules/.pnpm/@cosmjs+crypto@0.31.3/node_modules/@cosmjs/crypto/build/sha.js
|
|
282342
|
-
var
|
|
283682
|
+
var require_sha9 = __commonJS({
|
|
282343
283683
|
"../../node_modules/.pnpm/@cosmjs+crypto@0.31.3/node_modules/@cosmjs/crypto/build/sha.js"(exports2) {
|
|
282344
283684
|
"use strict";
|
|
282345
283685
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -282400,7 +283740,7 @@ var require_bip392 = __commonJS({
|
|
|
282400
283740
|
exports2.Bip39 = exports2.EnglishMnemonic = exports2.mnemonicToEntropy = exports2.entropyToMnemonic = void 0;
|
|
282401
283741
|
var encoding_1 = require_build9();
|
|
282402
283742
|
var pbkdf2_1 = require_pbkdf24();
|
|
282403
|
-
var sha_1 =
|
|
283743
|
+
var sha_1 = require_sha9();
|
|
282404
283744
|
var wordlist26 = [
|
|
282405
283745
|
"abandon",
|
|
282406
283746
|
"ability",
|
|
@@ -293032,7 +294372,7 @@ var require_slip102 = __commonJS({
|
|
|
293032
294372
|
var bn_js_1 = __importDefault(require_bn2());
|
|
293033
294373
|
var elliptic_12 = __importDefault(require_elliptic());
|
|
293034
294374
|
var hmac_1 = require_hmac7();
|
|
293035
|
-
var sha_1 =
|
|
294375
|
+
var sha_1 = require_sha9();
|
|
293036
294376
|
var Slip10Curve;
|
|
293037
294377
|
(function(Slip10Curve2) {
|
|
293038
294378
|
Slip10Curve2["Secp256k1"] = "Bitcoin seed";
|
|
@@ -293249,7 +294589,7 @@ var require_build12 = __commonJS({
|
|
|
293249
294589
|
Object.defineProperty(exports2, "Secp256k1Signature", { enumerable: true, get: function() {
|
|
293250
294590
|
return secp256k1signature_1.Secp256k1Signature;
|
|
293251
294591
|
} });
|
|
293252
|
-
var sha_1 =
|
|
294592
|
+
var sha_1 = require_sha9();
|
|
293253
294593
|
Object.defineProperty(exports2, "Sha256", { enumerable: true, get: function() {
|
|
293254
294594
|
return sha_1.Sha256;
|
|
293255
294595
|
} });
|
|
@@ -350623,7 +351963,7 @@ var require_tokens = __commonJS({
|
|
|
350623
351963
|
});
|
|
350624
351964
|
|
|
350625
351965
|
// ../../node_modules/.pnpm/@multiversx+sdk-core@13.17.1_bignumber.js@9.1.2_protobufjs@7.3.2/node_modules/@multiversx/sdk-core/out/hash.js
|
|
350626
|
-
var
|
|
351966
|
+
var require_hash9 = __commonJS({
|
|
350627
351967
|
"../../node_modules/.pnpm/@multiversx+sdk-core@13.17.1_bignumber.js@9.1.2_protobufjs@7.3.2/node_modules/@multiversx/sdk-core/out/hash.js"(exports2) {
|
|
350628
351968
|
"use strict";
|
|
350629
351969
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o41, m61, k17, k22) {
|
|
@@ -352750,7 +354090,7 @@ var require_transaction3 = __commonJS({
|
|
|
352750
354090
|
var address_1 = require_address11();
|
|
352751
354091
|
var constants_1 = require_constants19();
|
|
352752
354092
|
var transactionsConverter_1 = require_transactionsConverter();
|
|
352753
|
-
var hash_1 =
|
|
354093
|
+
var hash_1 = require_hash9();
|
|
352754
354094
|
var networkParams_1 = require_networkParams();
|
|
352755
354095
|
var signature_1 = require_signature9();
|
|
352756
354096
|
var transactionComputer_1 = require_transactionComputer();
|
|
@@ -361609,7 +362949,7 @@ var require_u644 = __commonJS({
|
|
|
361609
362949
|
});
|
|
361610
362950
|
|
|
361611
362951
|
// ../../node_modules/.pnpm/@noble+hashes@1.3.0/node_modules/@noble/hashes/sha512.js
|
|
361612
|
-
var
|
|
362952
|
+
var require_sha5128 = __commonJS({
|
|
361613
362953
|
"../../node_modules/.pnpm/@noble+hashes@1.3.0/node_modules/@noble/hashes/sha512.js"(exports2) {
|
|
361614
362954
|
"use strict";
|
|
361615
362955
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -363497,7 +364837,7 @@ var require_userKeys = __commonJS({
|
|
|
363497
364837
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
363498
364838
|
exports2.UserPublicKey = exports2.UserSecretKey = exports2.USER_PUBKEY_LENGTH = exports2.USER_SEED_LENGTH = void 0;
|
|
363499
364839
|
var ed = __importStar(require_lib3());
|
|
363500
|
-
var sha512_1 =
|
|
364840
|
+
var sha512_1 = require_sha5128();
|
|
363501
364841
|
var address_1 = require_address11();
|
|
363502
364842
|
var assertions_1 = require_assertions();
|
|
363503
364843
|
var pem_1 = require_pem3();
|
|
@@ -367039,7 +368379,7 @@ var require_u645 = __commonJS({
|
|
|
367039
368379
|
});
|
|
367040
368380
|
|
|
367041
368381
|
// ../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/sha512.js
|
|
367042
|
-
var
|
|
368382
|
+
var require_sha5129 = __commonJS({
|
|
367043
368383
|
"../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/sha512.js"(exports2) {
|
|
367044
368384
|
"use strict";
|
|
367045
368385
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -368678,7 +370018,7 @@ var require_ed255192 = __commonJS({
|
|
|
368678
370018
|
"use strict";
|
|
368679
370019
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
368680
370020
|
exports2.hash_to_ristretto255 = exports2.hashToRistretto255 = exports2.RistrettoPoint = exports2.encodeToCurve = exports2.hashToCurve = exports2.edwardsToMontgomeryPriv = exports2.edwardsToMontgomery = exports2.edwardsToMontgomeryPub = exports2.x25519 = exports2.ed25519ph = exports2.ed25519ctx = exports2.ed25519 = exports2.ED25519_TORSION_SUBGROUP = void 0;
|
|
368681
|
-
var sha512_1 =
|
|
370021
|
+
var sha512_1 = require_sha5129();
|
|
368682
370022
|
var utils_12 = require_utils35();
|
|
368683
370023
|
var edwards_js_1 = require_edwards2();
|
|
368684
370024
|
var montgomery_js_1 = require_montgomery();
|
|
@@ -403248,7 +404588,7 @@ var require_ripemd1604 = __commonJS({
|
|
|
403248
404588
|
});
|
|
403249
404589
|
|
|
403250
404590
|
// ../../node_modules/.pnpm/@noble+hashes@1.1.5/node_modules/@noble/hashes/sha256.js
|
|
403251
|
-
var
|
|
404591
|
+
var require_sha25611 = __commonJS({
|
|
403252
404592
|
"../../node_modules/.pnpm/@noble+hashes@1.1.5/node_modules/@noble/hashes/sha256.js"(exports2) {
|
|
403253
404593
|
"use strict";
|
|
403254
404594
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -403501,7 +404841,7 @@ var require_u646 = __commonJS({
|
|
|
403501
404841
|
});
|
|
403502
404842
|
|
|
403503
404843
|
// ../../node_modules/.pnpm/@noble+hashes@1.1.5/node_modules/@noble/hashes/sha512.js
|
|
403504
|
-
var
|
|
404844
|
+
var require_sha51210 = __commonJS({
|
|
403505
404845
|
"../../node_modules/.pnpm/@noble+hashes@1.1.5/node_modules/@noble/hashes/sha512.js"(exports2) {
|
|
403506
404846
|
"use strict";
|
|
403507
404847
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -405366,7 +406706,7 @@ var require_keys3 = __commonJS({
|
|
|
405366
406706
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
405367
406707
|
exports2.publicKeyToAddress = exports2.privateKeyToString = exports2.getPublicKey = exports2.signMessageHashRsv = exports2.signWithKey = exports2.makeRandomPrivKey = exports2.createStacksPrivateKey = exports2.deserializePublicKey = exports2.uncompressPublicKey = exports2.compressPublicKey = exports2.pubKeyfromPrivKey = exports2.serializePublicKey = exports2.publicKeyToString = exports2.isCompressed = exports2.publicKeyFromBytes = exports2.publicKeyFromSignatureRsv = exports2.publicKeyFromSignatureVrs = exports2.createStacksPublicKey = exports2.getAddressFromPublicKey = exports2.getAddressFromPrivateKey = void 0;
|
|
405368
406708
|
var hmac_1 = require_hmac8();
|
|
405369
|
-
var sha256_1 =
|
|
406709
|
+
var sha256_1 = require_sha25611();
|
|
405370
406710
|
var secp256k1_1 = require_lib4();
|
|
405371
406711
|
var common_1 = (init_esm4(), __toCommonJS(esm_exports4));
|
|
405372
406712
|
var c32check_1 = require_lib58();
|
|
@@ -406637,8 +407977,8 @@ var require_utils41 = __commonJS({
|
|
|
406637
407977
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
406638
407978
|
exports2.validateTxId = exports2.validateStacksAddress = exports2.parseReadOnlyResponse = exports2.hexToCV = exports2.cvToHex = exports2.isClarityName = exports2.hashP2WSH = exports2.hashP2SH = exports2.hashP2WPKH = exports2.hashP2PKH = exports2.txidFromBytes = exports2.txidFromData = exports2.hash160 = exports2.omit = exports2.cloneDeep = exports2.exceedsMaxLengthBytes = exports2.rightPadHexToLength = exports2.leftPadHexToLength = exports2.leftPadHex = exports2.randomBytes = exports2.verifySignature = void 0;
|
|
406639
407979
|
var ripemd160_1 = require_ripemd1604();
|
|
406640
|
-
var sha256_1 =
|
|
406641
|
-
var sha512_1 =
|
|
407980
|
+
var sha256_1 = require_sha25611();
|
|
407981
|
+
var sha512_1 = require_sha51210();
|
|
406642
407982
|
var secp256k1_1 = require_lib4();
|
|
406643
407983
|
var common_1 = (init_esm4(), __toCommonJS(esm_exports4));
|
|
406644
407984
|
var c32check_1 = require_lib58();
|
|
@@ -409160,7 +410500,7 @@ var require_structuredDataSignature = __commonJS({
|
|
|
409160
410500
|
"use strict";
|
|
409161
410501
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
409162
410502
|
exports2.signStructuredData = exports2.decodeStructuredDataSignature = exports2.encodeStructuredData = exports2.hashStructuredData = exports2.STRUCTURED_DATA_PREFIX = void 0;
|
|
409163
|
-
var sha256_1 =
|
|
410503
|
+
var sha256_1 = require_sha25611();
|
|
409164
410504
|
var common_1 = (init_esm4(), __toCommonJS(esm_exports4));
|
|
409165
410505
|
var clarity_1 = require_clarity();
|
|
409166
410506
|
var constants_1 = require_constants27();
|
|
@@ -453939,7 +455279,7 @@ var init_decodeFunctionData = __esm({
|
|
|
453939
455279
|
});
|
|
453940
455280
|
|
|
453941
455281
|
// ../../node_modules/.pnpm/fast-sha256@1.3.0/node_modules/fast-sha256/sha256.js
|
|
453942
|
-
var
|
|
455282
|
+
var require_sha25612 = __commonJS({
|
|
453943
455283
|
"../../node_modules/.pnpm/fast-sha256@1.3.0/node_modules/fast-sha256/sha256.js"(exports2, module2) {
|
|
453944
455284
|
"use strict";
|
|
453945
455285
|
(function(root4, factory) {
|
|
@@ -464431,1346 +465771,6 @@ var require_jsxdr = __commonJS({
|
|
|
464431
465771
|
}
|
|
464432
465772
|
});
|
|
464433
465773
|
|
|
464434
|
-
// ../../node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js
|
|
464435
|
-
var require_isarray = __commonJS({
|
|
464436
|
-
"../../node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js"(exports2, module2) {
|
|
464437
|
-
"use strict";
|
|
464438
|
-
var toString16 = {}.toString;
|
|
464439
|
-
module2.exports = Array.isArray || function(arr) {
|
|
464440
|
-
return toString16.call(arr) == "[object Array]";
|
|
464441
|
-
};
|
|
464442
|
-
}
|
|
464443
|
-
});
|
|
464444
|
-
|
|
464445
|
-
// ../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js
|
|
464446
|
-
var require_call_bound = __commonJS({
|
|
464447
|
-
"../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports2, module2) {
|
|
464448
|
-
"use strict";
|
|
464449
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
464450
|
-
var callBindBasic = require_call_bind_apply_helpers();
|
|
464451
|
-
var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
|
|
464452
|
-
module2.exports = function callBoundIntrinsic(name2, allowMissing) {
|
|
464453
|
-
var intrinsic = (
|
|
464454
|
-
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
464455
|
-
GetIntrinsic(name2, !!allowMissing)
|
|
464456
|
-
);
|
|
464457
|
-
if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
|
|
464458
|
-
return callBindBasic(
|
|
464459
|
-
/** @type {const} */
|
|
464460
|
-
[intrinsic]
|
|
464461
|
-
);
|
|
464462
|
-
}
|
|
464463
|
-
return intrinsic;
|
|
464464
|
-
};
|
|
464465
|
-
}
|
|
464466
|
-
});
|
|
464467
|
-
|
|
464468
|
-
// ../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js
|
|
464469
|
-
var require_is_callable = __commonJS({
|
|
464470
|
-
"../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js"(exports2, module2) {
|
|
464471
|
-
"use strict";
|
|
464472
|
-
var fnToStr2 = Function.prototype.toString;
|
|
464473
|
-
var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
|
|
464474
|
-
var badArrayLike;
|
|
464475
|
-
var isCallableMarker;
|
|
464476
|
-
if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") {
|
|
464477
|
-
try {
|
|
464478
|
-
badArrayLike = Object.defineProperty({}, "length", {
|
|
464479
|
-
get: function() {
|
|
464480
|
-
throw isCallableMarker;
|
|
464481
|
-
}
|
|
464482
|
-
});
|
|
464483
|
-
isCallableMarker = {};
|
|
464484
|
-
reflectApply(function() {
|
|
464485
|
-
throw 42;
|
|
464486
|
-
}, null, badArrayLike);
|
|
464487
|
-
} catch (_15) {
|
|
464488
|
-
if (_15 !== isCallableMarker) {
|
|
464489
|
-
reflectApply = null;
|
|
464490
|
-
}
|
|
464491
|
-
}
|
|
464492
|
-
} else {
|
|
464493
|
-
reflectApply = null;
|
|
464494
|
-
}
|
|
464495
|
-
var constructorRegex = /^\s*class\b/;
|
|
464496
|
-
var isES6ClassFn = function isES6ClassFunction(value5) {
|
|
464497
|
-
try {
|
|
464498
|
-
var fnStr = fnToStr2.call(value5);
|
|
464499
|
-
return constructorRegex.test(fnStr);
|
|
464500
|
-
} catch (e36) {
|
|
464501
|
-
return false;
|
|
464502
|
-
}
|
|
464503
|
-
};
|
|
464504
|
-
var tryFunctionObject = function tryFunctionToStr(value5) {
|
|
464505
|
-
try {
|
|
464506
|
-
if (isES6ClassFn(value5)) {
|
|
464507
|
-
return false;
|
|
464508
|
-
}
|
|
464509
|
-
fnToStr2.call(value5);
|
|
464510
|
-
return true;
|
|
464511
|
-
} catch (e36) {
|
|
464512
|
-
return false;
|
|
464513
|
-
}
|
|
464514
|
-
};
|
|
464515
|
-
var toStr2 = Object.prototype.toString;
|
|
464516
|
-
var objectClass = "[object Object]";
|
|
464517
|
-
var fnClass = "[object Function]";
|
|
464518
|
-
var genClass = "[object GeneratorFunction]";
|
|
464519
|
-
var ddaClass = "[object HTMLAllCollection]";
|
|
464520
|
-
var ddaClass2 = "[object HTML document.all class]";
|
|
464521
|
-
var ddaClass3 = "[object HTMLCollection]";
|
|
464522
|
-
var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
|
|
464523
|
-
var isIE68 = !(0 in [,]);
|
|
464524
|
-
var isDDA = function isDocumentDotAll() {
|
|
464525
|
-
return false;
|
|
464526
|
-
};
|
|
464527
|
-
if (typeof document === "object") {
|
|
464528
|
-
all8 = document.all;
|
|
464529
|
-
if (toStr2.call(all8) === toStr2.call(document.all)) {
|
|
464530
|
-
isDDA = function isDocumentDotAll(value5) {
|
|
464531
|
-
if ((isIE68 || !value5) && (typeof value5 === "undefined" || typeof value5 === "object")) {
|
|
464532
|
-
try {
|
|
464533
|
-
var str = toStr2.call(value5);
|
|
464534
|
-
return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value5("") == null;
|
|
464535
|
-
} catch (e36) {
|
|
464536
|
-
}
|
|
464537
|
-
}
|
|
464538
|
-
return false;
|
|
464539
|
-
};
|
|
464540
|
-
}
|
|
464541
|
-
}
|
|
464542
|
-
var all8;
|
|
464543
|
-
module2.exports = reflectApply ? function isCallable(value5) {
|
|
464544
|
-
if (isDDA(value5)) {
|
|
464545
|
-
return true;
|
|
464546
|
-
}
|
|
464547
|
-
if (!value5) {
|
|
464548
|
-
return false;
|
|
464549
|
-
}
|
|
464550
|
-
if (typeof value5 !== "function" && typeof value5 !== "object") {
|
|
464551
|
-
return false;
|
|
464552
|
-
}
|
|
464553
|
-
try {
|
|
464554
|
-
reflectApply(value5, null, badArrayLike);
|
|
464555
|
-
} catch (e36) {
|
|
464556
|
-
if (e36 !== isCallableMarker) {
|
|
464557
|
-
return false;
|
|
464558
|
-
}
|
|
464559
|
-
}
|
|
464560
|
-
return !isES6ClassFn(value5) && tryFunctionObject(value5);
|
|
464561
|
-
} : function isCallable(value5) {
|
|
464562
|
-
if (isDDA(value5)) {
|
|
464563
|
-
return true;
|
|
464564
|
-
}
|
|
464565
|
-
if (!value5) {
|
|
464566
|
-
return false;
|
|
464567
|
-
}
|
|
464568
|
-
if (typeof value5 !== "function" && typeof value5 !== "object") {
|
|
464569
|
-
return false;
|
|
464570
|
-
}
|
|
464571
|
-
if (hasToStringTag) {
|
|
464572
|
-
return tryFunctionObject(value5);
|
|
464573
|
-
}
|
|
464574
|
-
if (isES6ClassFn(value5)) {
|
|
464575
|
-
return false;
|
|
464576
|
-
}
|
|
464577
|
-
var strClass = toStr2.call(value5);
|
|
464578
|
-
if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
|
|
464579
|
-
return false;
|
|
464580
|
-
}
|
|
464581
|
-
return tryFunctionObject(value5);
|
|
464582
|
-
};
|
|
464583
|
-
}
|
|
464584
|
-
});
|
|
464585
|
-
|
|
464586
|
-
// ../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js
|
|
464587
|
-
var require_for_each = __commonJS({
|
|
464588
|
-
"../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js"(exports2, module2) {
|
|
464589
|
-
"use strict";
|
|
464590
|
-
var isCallable = require_is_callable();
|
|
464591
|
-
var toStr2 = Object.prototype.toString;
|
|
464592
|
-
var hasOwnProperty11 = Object.prototype.hasOwnProperty;
|
|
464593
|
-
var forEachArray = function forEachArray2(array5, iterator2, receiver2) {
|
|
464594
|
-
for (var i54 = 0, len = array5.length; i54 < len; i54++) {
|
|
464595
|
-
if (hasOwnProperty11.call(array5, i54)) {
|
|
464596
|
-
if (receiver2 == null) {
|
|
464597
|
-
iterator2(array5[i54], i54, array5);
|
|
464598
|
-
} else {
|
|
464599
|
-
iterator2.call(receiver2, array5[i54], i54, array5);
|
|
464600
|
-
}
|
|
464601
|
-
}
|
|
464602
|
-
}
|
|
464603
|
-
};
|
|
464604
|
-
var forEachString = function forEachString2(string5, iterator2, receiver2) {
|
|
464605
|
-
for (var i54 = 0, len = string5.length; i54 < len; i54++) {
|
|
464606
|
-
if (receiver2 == null) {
|
|
464607
|
-
iterator2(string5.charAt(i54), i54, string5);
|
|
464608
|
-
} else {
|
|
464609
|
-
iterator2.call(receiver2, string5.charAt(i54), i54, string5);
|
|
464610
|
-
}
|
|
464611
|
-
}
|
|
464612
|
-
};
|
|
464613
|
-
var forEachObject = function forEachObject2(object7, iterator2, receiver2) {
|
|
464614
|
-
for (var k17 in object7) {
|
|
464615
|
-
if (hasOwnProperty11.call(object7, k17)) {
|
|
464616
|
-
if (receiver2 == null) {
|
|
464617
|
-
iterator2(object7[k17], k17, object7);
|
|
464618
|
-
} else {
|
|
464619
|
-
iterator2.call(receiver2, object7[k17], k17, object7);
|
|
464620
|
-
}
|
|
464621
|
-
}
|
|
464622
|
-
}
|
|
464623
|
-
};
|
|
464624
|
-
function isArray6(x23) {
|
|
464625
|
-
return toStr2.call(x23) === "[object Array]";
|
|
464626
|
-
}
|
|
464627
|
-
module2.exports = function forEach4(list2, iterator2, thisArg) {
|
|
464628
|
-
if (!isCallable(iterator2)) {
|
|
464629
|
-
throw new TypeError("iterator must be a function");
|
|
464630
|
-
}
|
|
464631
|
-
var receiver2;
|
|
464632
|
-
if (arguments.length >= 3) {
|
|
464633
|
-
receiver2 = thisArg;
|
|
464634
|
-
}
|
|
464635
|
-
if (isArray6(list2)) {
|
|
464636
|
-
forEachArray(list2, iterator2, receiver2);
|
|
464637
|
-
} else if (typeof list2 === "string") {
|
|
464638
|
-
forEachString(list2, iterator2, receiver2);
|
|
464639
|
-
} else {
|
|
464640
|
-
forEachObject(list2, iterator2, receiver2);
|
|
464641
|
-
}
|
|
464642
|
-
};
|
|
464643
|
-
}
|
|
464644
|
-
});
|
|
464645
|
-
|
|
464646
|
-
// ../../node_modules/.pnpm/possible-typed-array-names@1.0.0/node_modules/possible-typed-array-names/index.js
|
|
464647
|
-
var require_possible_typed_array_names = __commonJS({
|
|
464648
|
-
"../../node_modules/.pnpm/possible-typed-array-names@1.0.0/node_modules/possible-typed-array-names/index.js"(exports2, module2) {
|
|
464649
|
-
"use strict";
|
|
464650
|
-
module2.exports = [
|
|
464651
|
-
"Float32Array",
|
|
464652
|
-
"Float64Array",
|
|
464653
|
-
"Int8Array",
|
|
464654
|
-
"Int16Array",
|
|
464655
|
-
"Int32Array",
|
|
464656
|
-
"Uint8Array",
|
|
464657
|
-
"Uint8ClampedArray",
|
|
464658
|
-
"Uint16Array",
|
|
464659
|
-
"Uint32Array",
|
|
464660
|
-
"BigInt64Array",
|
|
464661
|
-
"BigUint64Array"
|
|
464662
|
-
];
|
|
464663
|
-
}
|
|
464664
|
-
});
|
|
464665
|
-
|
|
464666
|
-
// ../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js
|
|
464667
|
-
var require_available_typed_arrays = __commonJS({
|
|
464668
|
-
"../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js"(exports2, module2) {
|
|
464669
|
-
"use strict";
|
|
464670
|
-
var possibleNames = require_possible_typed_array_names();
|
|
464671
|
-
var g49 = typeof globalThis === "undefined" ? global : globalThis;
|
|
464672
|
-
module2.exports = function availableTypedArrays() {
|
|
464673
|
-
var out = [];
|
|
464674
|
-
for (var i54 = 0; i54 < possibleNames.length; i54++) {
|
|
464675
|
-
if (typeof g49[possibleNames[i54]] === "function") {
|
|
464676
|
-
out[out.length] = possibleNames[i54];
|
|
464677
|
-
}
|
|
464678
|
-
}
|
|
464679
|
-
return out;
|
|
464680
|
-
};
|
|
464681
|
-
}
|
|
464682
|
-
});
|
|
464683
|
-
|
|
464684
|
-
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js
|
|
464685
|
-
var require_applyBind = __commonJS({
|
|
464686
|
-
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js"(exports2, module2) {
|
|
464687
|
-
"use strict";
|
|
464688
|
-
var bind4 = require_function_bind();
|
|
464689
|
-
var $apply = require_functionApply();
|
|
464690
|
-
var actualApply = require_actualApply();
|
|
464691
|
-
module2.exports = function applyBind() {
|
|
464692
|
-
return actualApply(bind4, $apply, arguments);
|
|
464693
|
-
};
|
|
464694
|
-
}
|
|
464695
|
-
});
|
|
464696
|
-
|
|
464697
|
-
// ../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js
|
|
464698
|
-
var require_call_bind2 = __commonJS({
|
|
464699
|
-
"../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js"(exports2, module2) {
|
|
464700
|
-
"use strict";
|
|
464701
|
-
var setFunctionLength = require_set_function_length();
|
|
464702
|
-
var $defineProperty = require_es_define_property();
|
|
464703
|
-
var callBindBasic = require_call_bind_apply_helpers();
|
|
464704
|
-
var applyBind = require_applyBind();
|
|
464705
|
-
module2.exports = function callBind(originalFunction) {
|
|
464706
|
-
var func = callBindBasic(arguments);
|
|
464707
|
-
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
464708
|
-
return setFunctionLength(
|
|
464709
|
-
func,
|
|
464710
|
-
1 + (adjustedLength > 0 ? adjustedLength : 0),
|
|
464711
|
-
true
|
|
464712
|
-
);
|
|
464713
|
-
};
|
|
464714
|
-
if ($defineProperty) {
|
|
464715
|
-
$defineProperty(module2.exports, "apply", { value: applyBind });
|
|
464716
|
-
} else {
|
|
464717
|
-
module2.exports.apply = applyBind;
|
|
464718
|
-
}
|
|
464719
|
-
}
|
|
464720
|
-
});
|
|
464721
|
-
|
|
464722
|
-
// ../../node_modules/.pnpm/which-typed-array@1.1.19/node_modules/which-typed-array/index.js
|
|
464723
|
-
var require_which_typed_array = __commonJS({
|
|
464724
|
-
"../../node_modules/.pnpm/which-typed-array@1.1.19/node_modules/which-typed-array/index.js"(exports2, module2) {
|
|
464725
|
-
"use strict";
|
|
464726
|
-
var forEach4 = require_for_each();
|
|
464727
|
-
var availableTypedArrays = require_available_typed_arrays();
|
|
464728
|
-
var callBind = require_call_bind2();
|
|
464729
|
-
var callBound = require_call_bound();
|
|
464730
|
-
var gOPD = require_gopd();
|
|
464731
|
-
var getProto = require_get_proto();
|
|
464732
|
-
var $toString = callBound("Object.prototype.toString");
|
|
464733
|
-
var hasToStringTag = require_shams2()();
|
|
464734
|
-
var g49 = typeof globalThis === "undefined" ? global : globalThis;
|
|
464735
|
-
var typedArrays = availableTypedArrays();
|
|
464736
|
-
var $slice = callBound("String.prototype.slice");
|
|
464737
|
-
var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array5, value5) {
|
|
464738
|
-
for (var i54 = 0; i54 < array5.length; i54 += 1) {
|
|
464739
|
-
if (array5[i54] === value5) {
|
|
464740
|
-
return i54;
|
|
464741
|
-
}
|
|
464742
|
-
}
|
|
464743
|
-
return -1;
|
|
464744
|
-
};
|
|
464745
|
-
var cache10 = { __proto__: null };
|
|
464746
|
-
if (hasToStringTag && gOPD && getProto) {
|
|
464747
|
-
forEach4(typedArrays, function(typedArray) {
|
|
464748
|
-
var arr = new g49[typedArray]();
|
|
464749
|
-
if (Symbol.toStringTag in arr && getProto) {
|
|
464750
|
-
var proto39 = getProto(arr);
|
|
464751
|
-
var descriptor = gOPD(proto39, Symbol.toStringTag);
|
|
464752
|
-
if (!descriptor && proto39) {
|
|
464753
|
-
var superProto = getProto(proto39);
|
|
464754
|
-
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
464755
|
-
}
|
|
464756
|
-
cache10["$" + typedArray] = callBind(descriptor.get);
|
|
464757
|
-
}
|
|
464758
|
-
});
|
|
464759
|
-
} else {
|
|
464760
|
-
forEach4(typedArrays, function(typedArray) {
|
|
464761
|
-
var arr = new g49[typedArray]();
|
|
464762
|
-
var fn4 = arr.slice || arr.set;
|
|
464763
|
-
if (fn4) {
|
|
464764
|
-
cache10[
|
|
464765
|
-
/** @type {`$${import('.').TypedArrayName}`} */
|
|
464766
|
-
"$" + typedArray
|
|
464767
|
-
] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */
|
|
464768
|
-
// @ts-expect-error TODO FIXME
|
|
464769
|
-
callBind(fn4);
|
|
464770
|
-
}
|
|
464771
|
-
});
|
|
464772
|
-
}
|
|
464773
|
-
var tryTypedArrays = function tryAllTypedArrays(value5) {
|
|
464774
|
-
var found = false;
|
|
464775
|
-
forEach4(
|
|
464776
|
-
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
|
|
464777
|
-
cache10,
|
|
464778
|
-
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
464779
|
-
function(getter, typedArray) {
|
|
464780
|
-
if (!found) {
|
|
464781
|
-
try {
|
|
464782
|
-
if ("$" + getter(value5) === typedArray) {
|
|
464783
|
-
found = /** @type {import('.').TypedArrayName} */
|
|
464784
|
-
$slice(typedArray, 1);
|
|
464785
|
-
}
|
|
464786
|
-
} catch (e36) {
|
|
464787
|
-
}
|
|
464788
|
-
}
|
|
464789
|
-
}
|
|
464790
|
-
);
|
|
464791
|
-
return found;
|
|
464792
|
-
};
|
|
464793
|
-
var trySlices = function tryAllSlices(value5) {
|
|
464794
|
-
var found = false;
|
|
464795
|
-
forEach4(
|
|
464796
|
-
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
|
|
464797
|
-
cache10,
|
|
464798
|
-
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
464799
|
-
function(getter, name2) {
|
|
464800
|
-
if (!found) {
|
|
464801
|
-
try {
|
|
464802
|
-
getter(value5);
|
|
464803
|
-
found = /** @type {import('.').TypedArrayName} */
|
|
464804
|
-
$slice(name2, 1);
|
|
464805
|
-
} catch (e36) {
|
|
464806
|
-
}
|
|
464807
|
-
}
|
|
464808
|
-
}
|
|
464809
|
-
);
|
|
464810
|
-
return found;
|
|
464811
|
-
};
|
|
464812
|
-
module2.exports = function whichTypedArray(value5) {
|
|
464813
|
-
if (!value5 || typeof value5 !== "object") {
|
|
464814
|
-
return false;
|
|
464815
|
-
}
|
|
464816
|
-
if (!hasToStringTag) {
|
|
464817
|
-
var tag = $slice($toString(value5), 8, -1);
|
|
464818
|
-
if ($indexOf(typedArrays, tag) > -1) {
|
|
464819
|
-
return tag;
|
|
464820
|
-
}
|
|
464821
|
-
if (tag !== "Object") {
|
|
464822
|
-
return false;
|
|
464823
|
-
}
|
|
464824
|
-
return trySlices(value5);
|
|
464825
|
-
}
|
|
464826
|
-
if (!gOPD) {
|
|
464827
|
-
return null;
|
|
464828
|
-
}
|
|
464829
|
-
return tryTypedArrays(value5);
|
|
464830
|
-
};
|
|
464831
|
-
}
|
|
464832
|
-
});
|
|
464833
|
-
|
|
464834
|
-
// ../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js
|
|
464835
|
-
var require_is_typed_array = __commonJS({
|
|
464836
|
-
"../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js"(exports2, module2) {
|
|
464837
|
-
"use strict";
|
|
464838
|
-
var whichTypedArray = require_which_typed_array();
|
|
464839
|
-
module2.exports = function isTypedArray4(value5) {
|
|
464840
|
-
return !!whichTypedArray(value5);
|
|
464841
|
-
};
|
|
464842
|
-
}
|
|
464843
|
-
});
|
|
464844
|
-
|
|
464845
|
-
// ../../node_modules/.pnpm/typed-array-buffer@1.0.3/node_modules/typed-array-buffer/index.js
|
|
464846
|
-
var require_typed_array_buffer = __commonJS({
|
|
464847
|
-
"../../node_modules/.pnpm/typed-array-buffer@1.0.3/node_modules/typed-array-buffer/index.js"(exports2, module2) {
|
|
464848
|
-
"use strict";
|
|
464849
|
-
var $TypeError = require_type();
|
|
464850
|
-
var callBound = require_call_bound();
|
|
464851
|
-
var $typedArrayBuffer = callBound("TypedArray.prototype.buffer", true);
|
|
464852
|
-
var isTypedArray4 = require_is_typed_array();
|
|
464853
|
-
module2.exports = $typedArrayBuffer || function typedArrayBuffer(x23) {
|
|
464854
|
-
if (!isTypedArray4(x23)) {
|
|
464855
|
-
throw new $TypeError("Not a Typed Array");
|
|
464856
|
-
}
|
|
464857
|
-
return x23.buffer;
|
|
464858
|
-
};
|
|
464859
|
-
}
|
|
464860
|
-
});
|
|
464861
|
-
|
|
464862
|
-
// ../../node_modules/.pnpm/to-buffer@1.2.1/node_modules/to-buffer/index.js
|
|
464863
|
-
var require_to_buffer2 = __commonJS({
|
|
464864
|
-
"../../node_modules/.pnpm/to-buffer@1.2.1/node_modules/to-buffer/index.js"(exports2, module2) {
|
|
464865
|
-
"use strict";
|
|
464866
|
-
var Buffer8 = require_safe_buffer().Buffer;
|
|
464867
|
-
var isArray6 = require_isarray();
|
|
464868
|
-
var typedArrayBuffer = require_typed_array_buffer();
|
|
464869
|
-
var isView2 = ArrayBuffer.isView || function isView3(obj2) {
|
|
464870
|
-
try {
|
|
464871
|
-
typedArrayBuffer(obj2);
|
|
464872
|
-
return true;
|
|
464873
|
-
} catch (e36) {
|
|
464874
|
-
return false;
|
|
464875
|
-
}
|
|
464876
|
-
};
|
|
464877
|
-
var useUint8Array = typeof Uint8Array !== "undefined";
|
|
464878
|
-
var useArrayBuffer = typeof ArrayBuffer !== "undefined" && typeof Uint8Array !== "undefined";
|
|
464879
|
-
var useFromArrayBuffer = useArrayBuffer && (Buffer8.prototype instanceof Uint8Array || Buffer8.TYPED_ARRAY_SUPPORT);
|
|
464880
|
-
module2.exports = function toBuffer3(data12, encoding) {
|
|
464881
|
-
if (data12 instanceof Buffer8) {
|
|
464882
|
-
return data12;
|
|
464883
|
-
}
|
|
464884
|
-
if (typeof data12 === "string") {
|
|
464885
|
-
return Buffer8.from(data12, encoding);
|
|
464886
|
-
}
|
|
464887
|
-
if (useArrayBuffer && isView2(data12)) {
|
|
464888
|
-
if (data12.byteLength === 0) {
|
|
464889
|
-
return Buffer8.alloc(0);
|
|
464890
|
-
}
|
|
464891
|
-
if (useFromArrayBuffer) {
|
|
464892
|
-
var res = Buffer8.from(data12.buffer, data12.byteOffset, data12.byteLength);
|
|
464893
|
-
if (res.byteLength === data12.byteLength) {
|
|
464894
|
-
return res;
|
|
464895
|
-
}
|
|
464896
|
-
}
|
|
464897
|
-
var uint8 = data12 instanceof Uint8Array ? data12 : new Uint8Array(data12.buffer, data12.byteOffset, data12.byteLength);
|
|
464898
|
-
var result2 = Buffer8.from(uint8);
|
|
464899
|
-
if (result2.length === data12.byteLength) {
|
|
464900
|
-
return result2;
|
|
464901
|
-
}
|
|
464902
|
-
}
|
|
464903
|
-
if (useUint8Array && data12 instanceof Uint8Array) {
|
|
464904
|
-
return Buffer8.from(data12);
|
|
464905
|
-
}
|
|
464906
|
-
var isArr = isArray6(data12);
|
|
464907
|
-
if (isArr) {
|
|
464908
|
-
for (var i54 = 0; i54 < data12.length; i54 += 1) {
|
|
464909
|
-
var x23 = data12[i54];
|
|
464910
|
-
if (typeof x23 !== "number" || x23 < 0 || x23 > 255 || ~~x23 !== x23) {
|
|
464911
|
-
throw new RangeError("Array items must be numbers in the range 0-255.");
|
|
464912
|
-
}
|
|
464913
|
-
}
|
|
464914
|
-
}
|
|
464915
|
-
if (isArr || Buffer8.isBuffer(data12) && data12.constructor && typeof data12.constructor.isBuffer === "function" && data12.constructor.isBuffer(data12)) {
|
|
464916
|
-
return Buffer8.from(data12);
|
|
464917
|
-
}
|
|
464918
|
-
throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.');
|
|
464919
|
-
};
|
|
464920
|
-
}
|
|
464921
|
-
});
|
|
464922
|
-
|
|
464923
|
-
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/hash.js
|
|
464924
|
-
var require_hash9 = __commonJS({
|
|
464925
|
-
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/hash.js"(exports2, module2) {
|
|
464926
|
-
"use strict";
|
|
464927
|
-
var Buffer8 = require_safe_buffer().Buffer;
|
|
464928
|
-
var toBuffer3 = require_to_buffer2();
|
|
464929
|
-
function Hash4(blockSize, finalSize) {
|
|
464930
|
-
this._block = Buffer8.alloc(blockSize);
|
|
464931
|
-
this._finalSize = finalSize;
|
|
464932
|
-
this._blockSize = blockSize;
|
|
464933
|
-
this._len = 0;
|
|
464934
|
-
}
|
|
464935
|
-
Hash4.prototype.update = function(data12, enc) {
|
|
464936
|
-
data12 = toBuffer3(data12, enc || "utf8");
|
|
464937
|
-
var block2 = this._block;
|
|
464938
|
-
var blockSize = this._blockSize;
|
|
464939
|
-
var length2 = data12.length;
|
|
464940
|
-
var accum = this._len;
|
|
464941
|
-
for (var offset2 = 0; offset2 < length2; ) {
|
|
464942
|
-
var assigned = accum % blockSize;
|
|
464943
|
-
var remainder = Math.min(length2 - offset2, blockSize - assigned);
|
|
464944
|
-
for (var i54 = 0; i54 < remainder; i54++) {
|
|
464945
|
-
block2[assigned + i54] = data12[offset2 + i54];
|
|
464946
|
-
}
|
|
464947
|
-
accum += remainder;
|
|
464948
|
-
offset2 += remainder;
|
|
464949
|
-
if (accum % blockSize === 0) {
|
|
464950
|
-
this._update(block2);
|
|
464951
|
-
}
|
|
464952
|
-
}
|
|
464953
|
-
this._len += length2;
|
|
464954
|
-
return this;
|
|
464955
|
-
};
|
|
464956
|
-
Hash4.prototype.digest = function(enc) {
|
|
464957
|
-
var rem = this._len % this._blockSize;
|
|
464958
|
-
this._block[rem] = 128;
|
|
464959
|
-
this._block.fill(0, rem + 1);
|
|
464960
|
-
if (rem >= this._finalSize) {
|
|
464961
|
-
this._update(this._block);
|
|
464962
|
-
this._block.fill(0);
|
|
464963
|
-
}
|
|
464964
|
-
var bits2 = this._len * 8;
|
|
464965
|
-
if (bits2 <= 4294967295) {
|
|
464966
|
-
this._block.writeUInt32BE(bits2, this._blockSize - 4);
|
|
464967
|
-
} else {
|
|
464968
|
-
var lowBits = (bits2 & 4294967295) >>> 0;
|
|
464969
|
-
var highBits = (bits2 - lowBits) / 4294967296;
|
|
464970
|
-
this._block.writeUInt32BE(highBits, this._blockSize - 8);
|
|
464971
|
-
this._block.writeUInt32BE(lowBits, this._blockSize - 4);
|
|
464972
|
-
}
|
|
464973
|
-
this._update(this._block);
|
|
464974
|
-
var hash10 = this._hash();
|
|
464975
|
-
return enc ? hash10.toString(enc) : hash10;
|
|
464976
|
-
};
|
|
464977
|
-
Hash4.prototype._update = function() {
|
|
464978
|
-
throw new Error("_update must be implemented by subclass");
|
|
464979
|
-
};
|
|
464980
|
-
module2.exports = Hash4;
|
|
464981
|
-
}
|
|
464982
|
-
});
|
|
464983
|
-
|
|
464984
|
-
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha.js
|
|
464985
|
-
var require_sha8 = __commonJS({
|
|
464986
|
-
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha.js"(exports2, module2) {
|
|
464987
|
-
"use strict";
|
|
464988
|
-
var inherits4 = require_inherits();
|
|
464989
|
-
var Hash4 = require_hash9();
|
|
464990
|
-
var Buffer8 = require_safe_buffer().Buffer;
|
|
464991
|
-
var K10 = [
|
|
464992
|
-
1518500249,
|
|
464993
|
-
1859775393,
|
|
464994
|
-
2400959708 | 0,
|
|
464995
|
-
3395469782 | 0
|
|
464996
|
-
];
|
|
464997
|
-
var W11 = new Array(80);
|
|
464998
|
-
function Sha() {
|
|
464999
|
-
this.init();
|
|
465000
|
-
this._w = W11;
|
|
465001
|
-
Hash4.call(this, 64, 56);
|
|
465002
|
-
}
|
|
465003
|
-
inherits4(Sha, Hash4);
|
|
465004
|
-
Sha.prototype.init = function() {
|
|
465005
|
-
this._a = 1732584193;
|
|
465006
|
-
this._b = 4023233417;
|
|
465007
|
-
this._c = 2562383102;
|
|
465008
|
-
this._d = 271733878;
|
|
465009
|
-
this._e = 3285377520;
|
|
465010
|
-
return this;
|
|
465011
|
-
};
|
|
465012
|
-
function rotl52(num) {
|
|
465013
|
-
return num << 5 | num >>> 27;
|
|
465014
|
-
}
|
|
465015
|
-
function rotl30(num) {
|
|
465016
|
-
return num << 30 | num >>> 2;
|
|
465017
|
-
}
|
|
465018
|
-
function ft3(s48, b20, c60, d57) {
|
|
465019
|
-
if (s48 === 0) {
|
|
465020
|
-
return b20 & c60 | ~b20 & d57;
|
|
465021
|
-
}
|
|
465022
|
-
if (s48 === 2) {
|
|
465023
|
-
return b20 & c60 | b20 & d57 | c60 & d57;
|
|
465024
|
-
}
|
|
465025
|
-
return b20 ^ c60 ^ d57;
|
|
465026
|
-
}
|
|
465027
|
-
Sha.prototype._update = function(M12) {
|
|
465028
|
-
var w14 = this._w;
|
|
465029
|
-
var a65 = this._a | 0;
|
|
465030
|
-
var b20 = this._b | 0;
|
|
465031
|
-
var c60 = this._c | 0;
|
|
465032
|
-
var d57 = this._d | 0;
|
|
465033
|
-
var e36 = this._e | 0;
|
|
465034
|
-
for (var i54 = 0; i54 < 16; ++i54) {
|
|
465035
|
-
w14[i54] = M12.readInt32BE(i54 * 4);
|
|
465036
|
-
}
|
|
465037
|
-
for (; i54 < 80; ++i54) {
|
|
465038
|
-
w14[i54] = w14[i54 - 3] ^ w14[i54 - 8] ^ w14[i54 - 14] ^ w14[i54 - 16];
|
|
465039
|
-
}
|
|
465040
|
-
for (var j9 = 0; j9 < 80; ++j9) {
|
|
465041
|
-
var s48 = ~~(j9 / 20);
|
|
465042
|
-
var t46 = rotl52(a65) + ft3(s48, b20, c60, d57) + e36 + w14[j9] + K10[s48] | 0;
|
|
465043
|
-
e36 = d57;
|
|
465044
|
-
d57 = c60;
|
|
465045
|
-
c60 = rotl30(b20);
|
|
465046
|
-
b20 = a65;
|
|
465047
|
-
a65 = t46;
|
|
465048
|
-
}
|
|
465049
|
-
this._a = a65 + this._a | 0;
|
|
465050
|
-
this._b = b20 + this._b | 0;
|
|
465051
|
-
this._c = c60 + this._c | 0;
|
|
465052
|
-
this._d = d57 + this._d | 0;
|
|
465053
|
-
this._e = e36 + this._e | 0;
|
|
465054
|
-
};
|
|
465055
|
-
Sha.prototype._hash = function() {
|
|
465056
|
-
var H12 = Buffer8.allocUnsafe(20);
|
|
465057
|
-
H12.writeInt32BE(this._a | 0, 0);
|
|
465058
|
-
H12.writeInt32BE(this._b | 0, 4);
|
|
465059
|
-
H12.writeInt32BE(this._c | 0, 8);
|
|
465060
|
-
H12.writeInt32BE(this._d | 0, 12);
|
|
465061
|
-
H12.writeInt32BE(this._e | 0, 16);
|
|
465062
|
-
return H12;
|
|
465063
|
-
};
|
|
465064
|
-
module2.exports = Sha;
|
|
465065
|
-
}
|
|
465066
|
-
});
|
|
465067
|
-
|
|
465068
|
-
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha1.js
|
|
465069
|
-
var require_sha13 = __commonJS({
|
|
465070
|
-
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha1.js"(exports2, module2) {
|
|
465071
|
-
"use strict";
|
|
465072
|
-
var inherits4 = require_inherits();
|
|
465073
|
-
var Hash4 = require_hash9();
|
|
465074
|
-
var Buffer8 = require_safe_buffer().Buffer;
|
|
465075
|
-
var K10 = [
|
|
465076
|
-
1518500249,
|
|
465077
|
-
1859775393,
|
|
465078
|
-
2400959708 | 0,
|
|
465079
|
-
3395469782 | 0
|
|
465080
|
-
];
|
|
465081
|
-
var W11 = new Array(80);
|
|
465082
|
-
function Sha1() {
|
|
465083
|
-
this.init();
|
|
465084
|
-
this._w = W11;
|
|
465085
|
-
Hash4.call(this, 64, 56);
|
|
465086
|
-
}
|
|
465087
|
-
inherits4(Sha1, Hash4);
|
|
465088
|
-
Sha1.prototype.init = function() {
|
|
465089
|
-
this._a = 1732584193;
|
|
465090
|
-
this._b = 4023233417;
|
|
465091
|
-
this._c = 2562383102;
|
|
465092
|
-
this._d = 271733878;
|
|
465093
|
-
this._e = 3285377520;
|
|
465094
|
-
return this;
|
|
465095
|
-
};
|
|
465096
|
-
function rotl1(num) {
|
|
465097
|
-
return num << 1 | num >>> 31;
|
|
465098
|
-
}
|
|
465099
|
-
function rotl52(num) {
|
|
465100
|
-
return num << 5 | num >>> 27;
|
|
465101
|
-
}
|
|
465102
|
-
function rotl30(num) {
|
|
465103
|
-
return num << 30 | num >>> 2;
|
|
465104
|
-
}
|
|
465105
|
-
function ft3(s48, b20, c60, d57) {
|
|
465106
|
-
if (s48 === 0) {
|
|
465107
|
-
return b20 & c60 | ~b20 & d57;
|
|
465108
|
-
}
|
|
465109
|
-
if (s48 === 2) {
|
|
465110
|
-
return b20 & c60 | b20 & d57 | c60 & d57;
|
|
465111
|
-
}
|
|
465112
|
-
return b20 ^ c60 ^ d57;
|
|
465113
|
-
}
|
|
465114
|
-
Sha1.prototype._update = function(M12) {
|
|
465115
|
-
var w14 = this._w;
|
|
465116
|
-
var a65 = this._a | 0;
|
|
465117
|
-
var b20 = this._b | 0;
|
|
465118
|
-
var c60 = this._c | 0;
|
|
465119
|
-
var d57 = this._d | 0;
|
|
465120
|
-
var e36 = this._e | 0;
|
|
465121
|
-
for (var i54 = 0; i54 < 16; ++i54) {
|
|
465122
|
-
w14[i54] = M12.readInt32BE(i54 * 4);
|
|
465123
|
-
}
|
|
465124
|
-
for (; i54 < 80; ++i54) {
|
|
465125
|
-
w14[i54] = rotl1(w14[i54 - 3] ^ w14[i54 - 8] ^ w14[i54 - 14] ^ w14[i54 - 16]);
|
|
465126
|
-
}
|
|
465127
|
-
for (var j9 = 0; j9 < 80; ++j9) {
|
|
465128
|
-
var s48 = ~~(j9 / 20);
|
|
465129
|
-
var t46 = rotl52(a65) + ft3(s48, b20, c60, d57) + e36 + w14[j9] + K10[s48] | 0;
|
|
465130
|
-
e36 = d57;
|
|
465131
|
-
d57 = c60;
|
|
465132
|
-
c60 = rotl30(b20);
|
|
465133
|
-
b20 = a65;
|
|
465134
|
-
a65 = t46;
|
|
465135
|
-
}
|
|
465136
|
-
this._a = a65 + this._a | 0;
|
|
465137
|
-
this._b = b20 + this._b | 0;
|
|
465138
|
-
this._c = c60 + this._c | 0;
|
|
465139
|
-
this._d = d57 + this._d | 0;
|
|
465140
|
-
this._e = e36 + this._e | 0;
|
|
465141
|
-
};
|
|
465142
|
-
Sha1.prototype._hash = function() {
|
|
465143
|
-
var H12 = Buffer8.allocUnsafe(20);
|
|
465144
|
-
H12.writeInt32BE(this._a | 0, 0);
|
|
465145
|
-
H12.writeInt32BE(this._b | 0, 4);
|
|
465146
|
-
H12.writeInt32BE(this._c | 0, 8);
|
|
465147
|
-
H12.writeInt32BE(this._d | 0, 12);
|
|
465148
|
-
H12.writeInt32BE(this._e | 0, 16);
|
|
465149
|
-
return H12;
|
|
465150
|
-
};
|
|
465151
|
-
module2.exports = Sha1;
|
|
465152
|
-
}
|
|
465153
|
-
});
|
|
465154
|
-
|
|
465155
|
-
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha256.js
|
|
465156
|
-
var require_sha25612 = __commonJS({
|
|
465157
|
-
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha256.js"(exports2, module2) {
|
|
465158
|
-
"use strict";
|
|
465159
|
-
var inherits4 = require_inherits();
|
|
465160
|
-
var Hash4 = require_hash9();
|
|
465161
|
-
var Buffer8 = require_safe_buffer().Buffer;
|
|
465162
|
-
var K10 = [
|
|
465163
|
-
1116352408,
|
|
465164
|
-
1899447441,
|
|
465165
|
-
3049323471,
|
|
465166
|
-
3921009573,
|
|
465167
|
-
961987163,
|
|
465168
|
-
1508970993,
|
|
465169
|
-
2453635748,
|
|
465170
|
-
2870763221,
|
|
465171
|
-
3624381080,
|
|
465172
|
-
310598401,
|
|
465173
|
-
607225278,
|
|
465174
|
-
1426881987,
|
|
465175
|
-
1925078388,
|
|
465176
|
-
2162078206,
|
|
465177
|
-
2614888103,
|
|
465178
|
-
3248222580,
|
|
465179
|
-
3835390401,
|
|
465180
|
-
4022224774,
|
|
465181
|
-
264347078,
|
|
465182
|
-
604807628,
|
|
465183
|
-
770255983,
|
|
465184
|
-
1249150122,
|
|
465185
|
-
1555081692,
|
|
465186
|
-
1996064986,
|
|
465187
|
-
2554220882,
|
|
465188
|
-
2821834349,
|
|
465189
|
-
2952996808,
|
|
465190
|
-
3210313671,
|
|
465191
|
-
3336571891,
|
|
465192
|
-
3584528711,
|
|
465193
|
-
113926993,
|
|
465194
|
-
338241895,
|
|
465195
|
-
666307205,
|
|
465196
|
-
773529912,
|
|
465197
|
-
1294757372,
|
|
465198
|
-
1396182291,
|
|
465199
|
-
1695183700,
|
|
465200
|
-
1986661051,
|
|
465201
|
-
2177026350,
|
|
465202
|
-
2456956037,
|
|
465203
|
-
2730485921,
|
|
465204
|
-
2820302411,
|
|
465205
|
-
3259730800,
|
|
465206
|
-
3345764771,
|
|
465207
|
-
3516065817,
|
|
465208
|
-
3600352804,
|
|
465209
|
-
4094571909,
|
|
465210
|
-
275423344,
|
|
465211
|
-
430227734,
|
|
465212
|
-
506948616,
|
|
465213
|
-
659060556,
|
|
465214
|
-
883997877,
|
|
465215
|
-
958139571,
|
|
465216
|
-
1322822218,
|
|
465217
|
-
1537002063,
|
|
465218
|
-
1747873779,
|
|
465219
|
-
1955562222,
|
|
465220
|
-
2024104815,
|
|
465221
|
-
2227730452,
|
|
465222
|
-
2361852424,
|
|
465223
|
-
2428436474,
|
|
465224
|
-
2756734187,
|
|
465225
|
-
3204031479,
|
|
465226
|
-
3329325298
|
|
465227
|
-
];
|
|
465228
|
-
var W11 = new Array(64);
|
|
465229
|
-
function Sha2562() {
|
|
465230
|
-
this.init();
|
|
465231
|
-
this._w = W11;
|
|
465232
|
-
Hash4.call(this, 64, 56);
|
|
465233
|
-
}
|
|
465234
|
-
inherits4(Sha2562, Hash4);
|
|
465235
|
-
Sha2562.prototype.init = function() {
|
|
465236
|
-
this._a = 1779033703;
|
|
465237
|
-
this._b = 3144134277;
|
|
465238
|
-
this._c = 1013904242;
|
|
465239
|
-
this._d = 2773480762;
|
|
465240
|
-
this._e = 1359893119;
|
|
465241
|
-
this._f = 2600822924;
|
|
465242
|
-
this._g = 528734635;
|
|
465243
|
-
this._h = 1541459225;
|
|
465244
|
-
return this;
|
|
465245
|
-
};
|
|
465246
|
-
function ch(x23, y40, z10) {
|
|
465247
|
-
return z10 ^ x23 & (y40 ^ z10);
|
|
465248
|
-
}
|
|
465249
|
-
function maj(x23, y40, z10) {
|
|
465250
|
-
return x23 & y40 | z10 & (x23 | y40);
|
|
465251
|
-
}
|
|
465252
|
-
function sigma0(x23) {
|
|
465253
|
-
return (x23 >>> 2 | x23 << 30) ^ (x23 >>> 13 | x23 << 19) ^ (x23 >>> 22 | x23 << 10);
|
|
465254
|
-
}
|
|
465255
|
-
function sigma1(x23) {
|
|
465256
|
-
return (x23 >>> 6 | x23 << 26) ^ (x23 >>> 11 | x23 << 21) ^ (x23 >>> 25 | x23 << 7);
|
|
465257
|
-
}
|
|
465258
|
-
function gamma0(x23) {
|
|
465259
|
-
return (x23 >>> 7 | x23 << 25) ^ (x23 >>> 18 | x23 << 14) ^ x23 >>> 3;
|
|
465260
|
-
}
|
|
465261
|
-
function gamma1(x23) {
|
|
465262
|
-
return (x23 >>> 17 | x23 << 15) ^ (x23 >>> 19 | x23 << 13) ^ x23 >>> 10;
|
|
465263
|
-
}
|
|
465264
|
-
Sha2562.prototype._update = function(M12) {
|
|
465265
|
-
var w14 = this._w;
|
|
465266
|
-
var a65 = this._a | 0;
|
|
465267
|
-
var b20 = this._b | 0;
|
|
465268
|
-
var c60 = this._c | 0;
|
|
465269
|
-
var d57 = this._d | 0;
|
|
465270
|
-
var e36 = this._e | 0;
|
|
465271
|
-
var f49 = this._f | 0;
|
|
465272
|
-
var g49 = this._g | 0;
|
|
465273
|
-
var h33 = this._h | 0;
|
|
465274
|
-
for (var i54 = 0; i54 < 16; ++i54) {
|
|
465275
|
-
w14[i54] = M12.readInt32BE(i54 * 4);
|
|
465276
|
-
}
|
|
465277
|
-
for (; i54 < 64; ++i54) {
|
|
465278
|
-
w14[i54] = gamma1(w14[i54 - 2]) + w14[i54 - 7] + gamma0(w14[i54 - 15]) + w14[i54 - 16] | 0;
|
|
465279
|
-
}
|
|
465280
|
-
for (var j9 = 0; j9 < 64; ++j9) {
|
|
465281
|
-
var T110 = h33 + sigma1(e36) + ch(e36, f49, g49) + K10[j9] + w14[j9] | 0;
|
|
465282
|
-
var T28 = sigma0(a65) + maj(a65, b20, c60) | 0;
|
|
465283
|
-
h33 = g49;
|
|
465284
|
-
g49 = f49;
|
|
465285
|
-
f49 = e36;
|
|
465286
|
-
e36 = d57 + T110 | 0;
|
|
465287
|
-
d57 = c60;
|
|
465288
|
-
c60 = b20;
|
|
465289
|
-
b20 = a65;
|
|
465290
|
-
a65 = T110 + T28 | 0;
|
|
465291
|
-
}
|
|
465292
|
-
this._a = a65 + this._a | 0;
|
|
465293
|
-
this._b = b20 + this._b | 0;
|
|
465294
|
-
this._c = c60 + this._c | 0;
|
|
465295
|
-
this._d = d57 + this._d | 0;
|
|
465296
|
-
this._e = e36 + this._e | 0;
|
|
465297
|
-
this._f = f49 + this._f | 0;
|
|
465298
|
-
this._g = g49 + this._g | 0;
|
|
465299
|
-
this._h = h33 + this._h | 0;
|
|
465300
|
-
};
|
|
465301
|
-
Sha2562.prototype._hash = function() {
|
|
465302
|
-
var H12 = Buffer8.allocUnsafe(32);
|
|
465303
|
-
H12.writeInt32BE(this._a, 0);
|
|
465304
|
-
H12.writeInt32BE(this._b, 4);
|
|
465305
|
-
H12.writeInt32BE(this._c, 8);
|
|
465306
|
-
H12.writeInt32BE(this._d, 12);
|
|
465307
|
-
H12.writeInt32BE(this._e, 16);
|
|
465308
|
-
H12.writeInt32BE(this._f, 20);
|
|
465309
|
-
H12.writeInt32BE(this._g, 24);
|
|
465310
|
-
H12.writeInt32BE(this._h, 28);
|
|
465311
|
-
return H12;
|
|
465312
|
-
};
|
|
465313
|
-
module2.exports = Sha2562;
|
|
465314
|
-
}
|
|
465315
|
-
});
|
|
465316
|
-
|
|
465317
|
-
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha224.js
|
|
465318
|
-
var require_sha2243 = __commonJS({
|
|
465319
|
-
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha224.js"(exports2, module2) {
|
|
465320
|
-
"use strict";
|
|
465321
|
-
var inherits4 = require_inherits();
|
|
465322
|
-
var Sha2562 = require_sha25612();
|
|
465323
|
-
var Hash4 = require_hash9();
|
|
465324
|
-
var Buffer8 = require_safe_buffer().Buffer;
|
|
465325
|
-
var W11 = new Array(64);
|
|
465326
|
-
function Sha224() {
|
|
465327
|
-
this.init();
|
|
465328
|
-
this._w = W11;
|
|
465329
|
-
Hash4.call(this, 64, 56);
|
|
465330
|
-
}
|
|
465331
|
-
inherits4(Sha224, Sha2562);
|
|
465332
|
-
Sha224.prototype.init = function() {
|
|
465333
|
-
this._a = 3238371032;
|
|
465334
|
-
this._b = 914150663;
|
|
465335
|
-
this._c = 812702999;
|
|
465336
|
-
this._d = 4144912697;
|
|
465337
|
-
this._e = 4290775857;
|
|
465338
|
-
this._f = 1750603025;
|
|
465339
|
-
this._g = 1694076839;
|
|
465340
|
-
this._h = 3204075428;
|
|
465341
|
-
return this;
|
|
465342
|
-
};
|
|
465343
|
-
Sha224.prototype._hash = function() {
|
|
465344
|
-
var H12 = Buffer8.allocUnsafe(28);
|
|
465345
|
-
H12.writeInt32BE(this._a, 0);
|
|
465346
|
-
H12.writeInt32BE(this._b, 4);
|
|
465347
|
-
H12.writeInt32BE(this._c, 8);
|
|
465348
|
-
H12.writeInt32BE(this._d, 12);
|
|
465349
|
-
H12.writeInt32BE(this._e, 16);
|
|
465350
|
-
H12.writeInt32BE(this._f, 20);
|
|
465351
|
-
H12.writeInt32BE(this._g, 24);
|
|
465352
|
-
return H12;
|
|
465353
|
-
};
|
|
465354
|
-
module2.exports = Sha224;
|
|
465355
|
-
}
|
|
465356
|
-
});
|
|
465357
|
-
|
|
465358
|
-
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha512.js
|
|
465359
|
-
var require_sha51210 = __commonJS({
|
|
465360
|
-
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha512.js"(exports2, module2) {
|
|
465361
|
-
"use strict";
|
|
465362
|
-
var inherits4 = require_inherits();
|
|
465363
|
-
var Hash4 = require_hash9();
|
|
465364
|
-
var Buffer8 = require_safe_buffer().Buffer;
|
|
465365
|
-
var K10 = [
|
|
465366
|
-
1116352408,
|
|
465367
|
-
3609767458,
|
|
465368
|
-
1899447441,
|
|
465369
|
-
602891725,
|
|
465370
|
-
3049323471,
|
|
465371
|
-
3964484399,
|
|
465372
|
-
3921009573,
|
|
465373
|
-
2173295548,
|
|
465374
|
-
961987163,
|
|
465375
|
-
4081628472,
|
|
465376
|
-
1508970993,
|
|
465377
|
-
3053834265,
|
|
465378
|
-
2453635748,
|
|
465379
|
-
2937671579,
|
|
465380
|
-
2870763221,
|
|
465381
|
-
3664609560,
|
|
465382
|
-
3624381080,
|
|
465383
|
-
2734883394,
|
|
465384
|
-
310598401,
|
|
465385
|
-
1164996542,
|
|
465386
|
-
607225278,
|
|
465387
|
-
1323610764,
|
|
465388
|
-
1426881987,
|
|
465389
|
-
3590304994,
|
|
465390
|
-
1925078388,
|
|
465391
|
-
4068182383,
|
|
465392
|
-
2162078206,
|
|
465393
|
-
991336113,
|
|
465394
|
-
2614888103,
|
|
465395
|
-
633803317,
|
|
465396
|
-
3248222580,
|
|
465397
|
-
3479774868,
|
|
465398
|
-
3835390401,
|
|
465399
|
-
2666613458,
|
|
465400
|
-
4022224774,
|
|
465401
|
-
944711139,
|
|
465402
|
-
264347078,
|
|
465403
|
-
2341262773,
|
|
465404
|
-
604807628,
|
|
465405
|
-
2007800933,
|
|
465406
|
-
770255983,
|
|
465407
|
-
1495990901,
|
|
465408
|
-
1249150122,
|
|
465409
|
-
1856431235,
|
|
465410
|
-
1555081692,
|
|
465411
|
-
3175218132,
|
|
465412
|
-
1996064986,
|
|
465413
|
-
2198950837,
|
|
465414
|
-
2554220882,
|
|
465415
|
-
3999719339,
|
|
465416
|
-
2821834349,
|
|
465417
|
-
766784016,
|
|
465418
|
-
2952996808,
|
|
465419
|
-
2566594879,
|
|
465420
|
-
3210313671,
|
|
465421
|
-
3203337956,
|
|
465422
|
-
3336571891,
|
|
465423
|
-
1034457026,
|
|
465424
|
-
3584528711,
|
|
465425
|
-
2466948901,
|
|
465426
|
-
113926993,
|
|
465427
|
-
3758326383,
|
|
465428
|
-
338241895,
|
|
465429
|
-
168717936,
|
|
465430
|
-
666307205,
|
|
465431
|
-
1188179964,
|
|
465432
|
-
773529912,
|
|
465433
|
-
1546045734,
|
|
465434
|
-
1294757372,
|
|
465435
|
-
1522805485,
|
|
465436
|
-
1396182291,
|
|
465437
|
-
2643833823,
|
|
465438
|
-
1695183700,
|
|
465439
|
-
2343527390,
|
|
465440
|
-
1986661051,
|
|
465441
|
-
1014477480,
|
|
465442
|
-
2177026350,
|
|
465443
|
-
1206759142,
|
|
465444
|
-
2456956037,
|
|
465445
|
-
344077627,
|
|
465446
|
-
2730485921,
|
|
465447
|
-
1290863460,
|
|
465448
|
-
2820302411,
|
|
465449
|
-
3158454273,
|
|
465450
|
-
3259730800,
|
|
465451
|
-
3505952657,
|
|
465452
|
-
3345764771,
|
|
465453
|
-
106217008,
|
|
465454
|
-
3516065817,
|
|
465455
|
-
3606008344,
|
|
465456
|
-
3600352804,
|
|
465457
|
-
1432725776,
|
|
465458
|
-
4094571909,
|
|
465459
|
-
1467031594,
|
|
465460
|
-
275423344,
|
|
465461
|
-
851169720,
|
|
465462
|
-
430227734,
|
|
465463
|
-
3100823752,
|
|
465464
|
-
506948616,
|
|
465465
|
-
1363258195,
|
|
465466
|
-
659060556,
|
|
465467
|
-
3750685593,
|
|
465468
|
-
883997877,
|
|
465469
|
-
3785050280,
|
|
465470
|
-
958139571,
|
|
465471
|
-
3318307427,
|
|
465472
|
-
1322822218,
|
|
465473
|
-
3812723403,
|
|
465474
|
-
1537002063,
|
|
465475
|
-
2003034995,
|
|
465476
|
-
1747873779,
|
|
465477
|
-
3602036899,
|
|
465478
|
-
1955562222,
|
|
465479
|
-
1575990012,
|
|
465480
|
-
2024104815,
|
|
465481
|
-
1125592928,
|
|
465482
|
-
2227730452,
|
|
465483
|
-
2716904306,
|
|
465484
|
-
2361852424,
|
|
465485
|
-
442776044,
|
|
465486
|
-
2428436474,
|
|
465487
|
-
593698344,
|
|
465488
|
-
2756734187,
|
|
465489
|
-
3733110249,
|
|
465490
|
-
3204031479,
|
|
465491
|
-
2999351573,
|
|
465492
|
-
3329325298,
|
|
465493
|
-
3815920427,
|
|
465494
|
-
3391569614,
|
|
465495
|
-
3928383900,
|
|
465496
|
-
3515267271,
|
|
465497
|
-
566280711,
|
|
465498
|
-
3940187606,
|
|
465499
|
-
3454069534,
|
|
465500
|
-
4118630271,
|
|
465501
|
-
4000239992,
|
|
465502
|
-
116418474,
|
|
465503
|
-
1914138554,
|
|
465504
|
-
174292421,
|
|
465505
|
-
2731055270,
|
|
465506
|
-
289380356,
|
|
465507
|
-
3203993006,
|
|
465508
|
-
460393269,
|
|
465509
|
-
320620315,
|
|
465510
|
-
685471733,
|
|
465511
|
-
587496836,
|
|
465512
|
-
852142971,
|
|
465513
|
-
1086792851,
|
|
465514
|
-
1017036298,
|
|
465515
|
-
365543100,
|
|
465516
|
-
1126000580,
|
|
465517
|
-
2618297676,
|
|
465518
|
-
1288033470,
|
|
465519
|
-
3409855158,
|
|
465520
|
-
1501505948,
|
|
465521
|
-
4234509866,
|
|
465522
|
-
1607167915,
|
|
465523
|
-
987167468,
|
|
465524
|
-
1816402316,
|
|
465525
|
-
1246189591
|
|
465526
|
-
];
|
|
465527
|
-
var W11 = new Array(160);
|
|
465528
|
-
function Sha512() {
|
|
465529
|
-
this.init();
|
|
465530
|
-
this._w = W11;
|
|
465531
|
-
Hash4.call(this, 128, 112);
|
|
465532
|
-
}
|
|
465533
|
-
inherits4(Sha512, Hash4);
|
|
465534
|
-
Sha512.prototype.init = function() {
|
|
465535
|
-
this._ah = 1779033703;
|
|
465536
|
-
this._bh = 3144134277;
|
|
465537
|
-
this._ch = 1013904242;
|
|
465538
|
-
this._dh = 2773480762;
|
|
465539
|
-
this._eh = 1359893119;
|
|
465540
|
-
this._fh = 2600822924;
|
|
465541
|
-
this._gh = 528734635;
|
|
465542
|
-
this._hh = 1541459225;
|
|
465543
|
-
this._al = 4089235720;
|
|
465544
|
-
this._bl = 2227873595;
|
|
465545
|
-
this._cl = 4271175723;
|
|
465546
|
-
this._dl = 1595750129;
|
|
465547
|
-
this._el = 2917565137;
|
|
465548
|
-
this._fl = 725511199;
|
|
465549
|
-
this._gl = 4215389547;
|
|
465550
|
-
this._hl = 327033209;
|
|
465551
|
-
return this;
|
|
465552
|
-
};
|
|
465553
|
-
function Ch(x23, y40, z10) {
|
|
465554
|
-
return z10 ^ x23 & (y40 ^ z10);
|
|
465555
|
-
}
|
|
465556
|
-
function maj(x23, y40, z10) {
|
|
465557
|
-
return x23 & y40 | z10 & (x23 | y40);
|
|
465558
|
-
}
|
|
465559
|
-
function sigma0(x23, xl) {
|
|
465560
|
-
return (x23 >>> 28 | xl << 4) ^ (xl >>> 2 | x23 << 30) ^ (xl >>> 7 | x23 << 25);
|
|
465561
|
-
}
|
|
465562
|
-
function sigma1(x23, xl) {
|
|
465563
|
-
return (x23 >>> 14 | xl << 18) ^ (x23 >>> 18 | xl << 14) ^ (xl >>> 9 | x23 << 23);
|
|
465564
|
-
}
|
|
465565
|
-
function Gamma0(x23, xl) {
|
|
465566
|
-
return (x23 >>> 1 | xl << 31) ^ (x23 >>> 8 | xl << 24) ^ x23 >>> 7;
|
|
465567
|
-
}
|
|
465568
|
-
function Gamma0l(x23, xl) {
|
|
465569
|
-
return (x23 >>> 1 | xl << 31) ^ (x23 >>> 8 | xl << 24) ^ (x23 >>> 7 | xl << 25);
|
|
465570
|
-
}
|
|
465571
|
-
function Gamma1(x23, xl) {
|
|
465572
|
-
return (x23 >>> 19 | xl << 13) ^ (xl >>> 29 | x23 << 3) ^ x23 >>> 6;
|
|
465573
|
-
}
|
|
465574
|
-
function Gamma1l(x23, xl) {
|
|
465575
|
-
return (x23 >>> 19 | xl << 13) ^ (xl >>> 29 | x23 << 3) ^ (x23 >>> 6 | xl << 26);
|
|
465576
|
-
}
|
|
465577
|
-
function getCarry(a65, b20) {
|
|
465578
|
-
return a65 >>> 0 < b20 >>> 0 ? 1 : 0;
|
|
465579
|
-
}
|
|
465580
|
-
Sha512.prototype._update = function(M12) {
|
|
465581
|
-
var w14 = this._w;
|
|
465582
|
-
var ah = this._ah | 0;
|
|
465583
|
-
var bh = this._bh | 0;
|
|
465584
|
-
var ch = this._ch | 0;
|
|
465585
|
-
var dh = this._dh | 0;
|
|
465586
|
-
var eh = this._eh | 0;
|
|
465587
|
-
var fh = this._fh | 0;
|
|
465588
|
-
var gh = this._gh | 0;
|
|
465589
|
-
var hh = this._hh | 0;
|
|
465590
|
-
var al = this._al | 0;
|
|
465591
|
-
var bl = this._bl | 0;
|
|
465592
|
-
var cl = this._cl | 0;
|
|
465593
|
-
var dl = this._dl | 0;
|
|
465594
|
-
var el = this._el | 0;
|
|
465595
|
-
var fl2 = this._fl | 0;
|
|
465596
|
-
var gl = this._gl | 0;
|
|
465597
|
-
var hl = this._hl | 0;
|
|
465598
|
-
for (var i54 = 0; i54 < 32; i54 += 2) {
|
|
465599
|
-
w14[i54] = M12.readInt32BE(i54 * 4);
|
|
465600
|
-
w14[i54 + 1] = M12.readInt32BE(i54 * 4 + 4);
|
|
465601
|
-
}
|
|
465602
|
-
for (; i54 < 160; i54 += 2) {
|
|
465603
|
-
var xh = w14[i54 - 15 * 2];
|
|
465604
|
-
var xl = w14[i54 - 15 * 2 + 1];
|
|
465605
|
-
var gamma0 = Gamma0(xh, xl);
|
|
465606
|
-
var gamma0l = Gamma0l(xl, xh);
|
|
465607
|
-
xh = w14[i54 - 2 * 2];
|
|
465608
|
-
xl = w14[i54 - 2 * 2 + 1];
|
|
465609
|
-
var gamma1 = Gamma1(xh, xl);
|
|
465610
|
-
var gamma1l = Gamma1l(xl, xh);
|
|
465611
|
-
var Wi7h = w14[i54 - 7 * 2];
|
|
465612
|
-
var Wi7l = w14[i54 - 7 * 2 + 1];
|
|
465613
|
-
var Wi16h = w14[i54 - 16 * 2];
|
|
465614
|
-
var Wi16l = w14[i54 - 16 * 2 + 1];
|
|
465615
|
-
var Wil = gamma0l + Wi7l | 0;
|
|
465616
|
-
var Wih = gamma0 + Wi7h + getCarry(Wil, gamma0l) | 0;
|
|
465617
|
-
Wil = Wil + gamma1l | 0;
|
|
465618
|
-
Wih = Wih + gamma1 + getCarry(Wil, gamma1l) | 0;
|
|
465619
|
-
Wil = Wil + Wi16l | 0;
|
|
465620
|
-
Wih = Wih + Wi16h + getCarry(Wil, Wi16l) | 0;
|
|
465621
|
-
w14[i54] = Wih;
|
|
465622
|
-
w14[i54 + 1] = Wil;
|
|
465623
|
-
}
|
|
465624
|
-
for (var j9 = 0; j9 < 160; j9 += 2) {
|
|
465625
|
-
Wih = w14[j9];
|
|
465626
|
-
Wil = w14[j9 + 1];
|
|
465627
|
-
var majh = maj(ah, bh, ch);
|
|
465628
|
-
var majl = maj(al, bl, cl);
|
|
465629
|
-
var sigma0h = sigma0(ah, al);
|
|
465630
|
-
var sigma0l = sigma0(al, ah);
|
|
465631
|
-
var sigma1h = sigma1(eh, el);
|
|
465632
|
-
var sigma1l = sigma1(el, eh);
|
|
465633
|
-
var Kih = K10[j9];
|
|
465634
|
-
var Kil = K10[j9 + 1];
|
|
465635
|
-
var chh = Ch(eh, fh, gh);
|
|
465636
|
-
var chl = Ch(el, fl2, gl);
|
|
465637
|
-
var t1l = hl + sigma1l | 0;
|
|
465638
|
-
var t1h = hh + sigma1h + getCarry(t1l, hl) | 0;
|
|
465639
|
-
t1l = t1l + chl | 0;
|
|
465640
|
-
t1h = t1h + chh + getCarry(t1l, chl) | 0;
|
|
465641
|
-
t1l = t1l + Kil | 0;
|
|
465642
|
-
t1h = t1h + Kih + getCarry(t1l, Kil) | 0;
|
|
465643
|
-
t1l = t1l + Wil | 0;
|
|
465644
|
-
t1h = t1h + Wih + getCarry(t1l, Wil) | 0;
|
|
465645
|
-
var t2l = sigma0l + majl | 0;
|
|
465646
|
-
var t2h = sigma0h + majh + getCarry(t2l, sigma0l) | 0;
|
|
465647
|
-
hh = gh;
|
|
465648
|
-
hl = gl;
|
|
465649
|
-
gh = fh;
|
|
465650
|
-
gl = fl2;
|
|
465651
|
-
fh = eh;
|
|
465652
|
-
fl2 = el;
|
|
465653
|
-
el = dl + t1l | 0;
|
|
465654
|
-
eh = dh + t1h + getCarry(el, dl) | 0;
|
|
465655
|
-
dh = ch;
|
|
465656
|
-
dl = cl;
|
|
465657
|
-
ch = bh;
|
|
465658
|
-
cl = bl;
|
|
465659
|
-
bh = ah;
|
|
465660
|
-
bl = al;
|
|
465661
|
-
al = t1l + t2l | 0;
|
|
465662
|
-
ah = t1h + t2h + getCarry(al, t1l) | 0;
|
|
465663
|
-
}
|
|
465664
|
-
this._al = this._al + al | 0;
|
|
465665
|
-
this._bl = this._bl + bl | 0;
|
|
465666
|
-
this._cl = this._cl + cl | 0;
|
|
465667
|
-
this._dl = this._dl + dl | 0;
|
|
465668
|
-
this._el = this._el + el | 0;
|
|
465669
|
-
this._fl = this._fl + fl2 | 0;
|
|
465670
|
-
this._gl = this._gl + gl | 0;
|
|
465671
|
-
this._hl = this._hl + hl | 0;
|
|
465672
|
-
this._ah = this._ah + ah + getCarry(this._al, al) | 0;
|
|
465673
|
-
this._bh = this._bh + bh + getCarry(this._bl, bl) | 0;
|
|
465674
|
-
this._ch = this._ch + ch + getCarry(this._cl, cl) | 0;
|
|
465675
|
-
this._dh = this._dh + dh + getCarry(this._dl, dl) | 0;
|
|
465676
|
-
this._eh = this._eh + eh + getCarry(this._el, el) | 0;
|
|
465677
|
-
this._fh = this._fh + fh + getCarry(this._fl, fl2) | 0;
|
|
465678
|
-
this._gh = this._gh + gh + getCarry(this._gl, gl) | 0;
|
|
465679
|
-
this._hh = this._hh + hh + getCarry(this._hl, hl) | 0;
|
|
465680
|
-
};
|
|
465681
|
-
Sha512.prototype._hash = function() {
|
|
465682
|
-
var H12 = Buffer8.allocUnsafe(64);
|
|
465683
|
-
function writeInt64BE(h33, l70, offset2) {
|
|
465684
|
-
H12.writeInt32BE(h33, offset2);
|
|
465685
|
-
H12.writeInt32BE(l70, offset2 + 4);
|
|
465686
|
-
}
|
|
465687
|
-
writeInt64BE(this._ah, this._al, 0);
|
|
465688
|
-
writeInt64BE(this._bh, this._bl, 8);
|
|
465689
|
-
writeInt64BE(this._ch, this._cl, 16);
|
|
465690
|
-
writeInt64BE(this._dh, this._dl, 24);
|
|
465691
|
-
writeInt64BE(this._eh, this._el, 32);
|
|
465692
|
-
writeInt64BE(this._fh, this._fl, 40);
|
|
465693
|
-
writeInt64BE(this._gh, this._gl, 48);
|
|
465694
|
-
writeInt64BE(this._hh, this._hl, 56);
|
|
465695
|
-
return H12;
|
|
465696
|
-
};
|
|
465697
|
-
module2.exports = Sha512;
|
|
465698
|
-
}
|
|
465699
|
-
});
|
|
465700
|
-
|
|
465701
|
-
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha384.js
|
|
465702
|
-
var require_sha3843 = __commonJS({
|
|
465703
|
-
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha384.js"(exports2, module2) {
|
|
465704
|
-
"use strict";
|
|
465705
|
-
var inherits4 = require_inherits();
|
|
465706
|
-
var SHA5123 = require_sha51210();
|
|
465707
|
-
var Hash4 = require_hash9();
|
|
465708
|
-
var Buffer8 = require_safe_buffer().Buffer;
|
|
465709
|
-
var W11 = new Array(160);
|
|
465710
|
-
function Sha384() {
|
|
465711
|
-
this.init();
|
|
465712
|
-
this._w = W11;
|
|
465713
|
-
Hash4.call(this, 128, 112);
|
|
465714
|
-
}
|
|
465715
|
-
inherits4(Sha384, SHA5123);
|
|
465716
|
-
Sha384.prototype.init = function() {
|
|
465717
|
-
this._ah = 3418070365;
|
|
465718
|
-
this._bh = 1654270250;
|
|
465719
|
-
this._ch = 2438529370;
|
|
465720
|
-
this._dh = 355462360;
|
|
465721
|
-
this._eh = 1731405415;
|
|
465722
|
-
this._fh = 2394180231;
|
|
465723
|
-
this._gh = 3675008525;
|
|
465724
|
-
this._hh = 1203062813;
|
|
465725
|
-
this._al = 3238371032;
|
|
465726
|
-
this._bl = 914150663;
|
|
465727
|
-
this._cl = 812702999;
|
|
465728
|
-
this._dl = 4144912697;
|
|
465729
|
-
this._el = 4290775857;
|
|
465730
|
-
this._fl = 1750603025;
|
|
465731
|
-
this._gl = 1694076839;
|
|
465732
|
-
this._hl = 3204075428;
|
|
465733
|
-
return this;
|
|
465734
|
-
};
|
|
465735
|
-
Sha384.prototype._hash = function() {
|
|
465736
|
-
var H12 = Buffer8.allocUnsafe(48);
|
|
465737
|
-
function writeInt64BE(h33, l70, offset2) {
|
|
465738
|
-
H12.writeInt32BE(h33, offset2);
|
|
465739
|
-
H12.writeInt32BE(l70, offset2 + 4);
|
|
465740
|
-
}
|
|
465741
|
-
writeInt64BE(this._ah, this._al, 0);
|
|
465742
|
-
writeInt64BE(this._bh, this._bl, 8);
|
|
465743
|
-
writeInt64BE(this._ch, this._cl, 16);
|
|
465744
|
-
writeInt64BE(this._dh, this._dl, 24);
|
|
465745
|
-
writeInt64BE(this._eh, this._el, 32);
|
|
465746
|
-
writeInt64BE(this._fh, this._fl, 40);
|
|
465747
|
-
return H12;
|
|
465748
|
-
};
|
|
465749
|
-
module2.exports = Sha384;
|
|
465750
|
-
}
|
|
465751
|
-
});
|
|
465752
|
-
|
|
465753
|
-
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/index.js
|
|
465754
|
-
var require_sha9 = __commonJS({
|
|
465755
|
-
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/index.js"(exports2, module2) {
|
|
465756
|
-
"use strict";
|
|
465757
|
-
module2.exports = function SHA(algorithm2) {
|
|
465758
|
-
var alg = algorithm2.toLowerCase();
|
|
465759
|
-
var Algorithm = module2.exports[alg];
|
|
465760
|
-
if (!Algorithm) {
|
|
465761
|
-
throw new Error(alg + " is not supported (we accept pull requests)");
|
|
465762
|
-
}
|
|
465763
|
-
return new Algorithm();
|
|
465764
|
-
};
|
|
465765
|
-
module2.exports.sha = require_sha8();
|
|
465766
|
-
module2.exports.sha1 = require_sha13();
|
|
465767
|
-
module2.exports.sha224 = require_sha2243();
|
|
465768
|
-
module2.exports.sha256 = require_sha25612();
|
|
465769
|
-
module2.exports.sha384 = require_sha3843();
|
|
465770
|
-
module2.exports.sha512 = require_sha51210();
|
|
465771
|
-
}
|
|
465772
|
-
});
|
|
465773
|
-
|
|
465774
465774
|
// ../../node_modules/.pnpm/@stellar+stellar-base@14.0.0/node_modules/@stellar/stellar-base/lib/hashing.js
|
|
465775
465775
|
var require_hashing = __commonJS({
|
|
465776
465776
|
"../../node_modules/.pnpm/@stellar+stellar-base@14.0.0/node_modules/@stellar/stellar-base/lib/hashing.js"(exports2) {
|
|
@@ -465779,7 +465779,7 @@ var require_hashing = __commonJS({
|
|
|
465779
465779
|
value: true
|
|
465780
465780
|
});
|
|
465781
465781
|
exports2.hash = hash10;
|
|
465782
|
-
var _sha =
|
|
465782
|
+
var _sha = require_sha5();
|
|
465783
465783
|
function hash10(data12) {
|
|
465784
465784
|
var hasher = new _sha.sha256();
|
|
465785
465785
|
hasher.update(data12, "utf8");
|
|
@@ -515714,7 +515714,7 @@ var require_hashPublicKey = __commonJS({
|
|
|
515714
515714
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
515715
515715
|
exports2.hashPublicKey = hashPublicKey2;
|
|
515716
515716
|
var ripemd160_1 = __importDefault(require_ripemd160());
|
|
515717
|
-
var sha_js_1 = __importDefault(
|
|
515717
|
+
var sha_js_1 = __importDefault(require_sha8());
|
|
515718
515718
|
function hashPublicKey2(buffer2) {
|
|
515719
515719
|
return new ripemd160_1.default().update((0, sha_js_1.default)("sha256").update(buffer2).digest()).digest();
|
|
515720
515720
|
}
|
|
@@ -517561,7 +517561,7 @@ var require_getTrustedInputBIP143 = __commonJS({
|
|
|
517561
517561
|
};
|
|
517562
517562
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
517563
517563
|
exports2.getTrustedInputBIP143 = getTrustedInputBIP1432;
|
|
517564
|
-
var sha_js_1 = __importDefault(
|
|
517564
|
+
var sha_js_1 = __importDefault(require_sha8());
|
|
517565
517565
|
var serializeTransaction_1 = require_serializeTransaction();
|
|
517566
517566
|
function getTrustedInputBIP1432(transport, indexLookup, transaction, additionals = []) {
|
|
517567
517567
|
if (!transaction) {
|
|
@@ -518187,7 +518187,7 @@ var require_AcreBtcOld = __commonJS({
|
|
|
518187
518187
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
518188
518188
|
var bs58_1 = __importDefault(require_bs58());
|
|
518189
518189
|
var ripemd160_1 = __importDefault(require_ripemd160());
|
|
518190
|
-
var sha_js_1 = __importDefault(
|
|
518190
|
+
var sha_js_1 = __importDefault(require_sha8());
|
|
518191
518191
|
var createTransaction_1 = require_createTransaction();
|
|
518192
518192
|
var getWalletPublicKey_1 = require_getWalletPublicKey();
|
|
518193
518193
|
var bip32_1 = require_bip325();
|
|
@@ -519537,7 +519537,7 @@ var require_package7 = __commonJS({
|
|
|
519537
519537
|
module2.exports = {
|
|
519538
519538
|
name: "@ledgerhq/live-common",
|
|
519539
519539
|
description: "Common ground for the Ledger Live apps",
|
|
519540
|
-
version: "34.51.0-nightly.
|
|
519540
|
+
version: "34.51.0-nightly.3",
|
|
519541
519541
|
repository: {
|
|
519542
519542
|
type: "git",
|
|
519543
519543
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -519834,12 +519834,12 @@ var require_package7 = __commonJS({
|
|
|
519834
519834
|
long: "^4.0.0",
|
|
519835
519835
|
mkdirp: "1.0.4",
|
|
519836
519836
|
nock: "^13.0.5",
|
|
519837
|
-
react: "
|
|
519838
|
-
"react-dom": "
|
|
519837
|
+
react: "catalog:",
|
|
519838
|
+
"react-dom": "catalog:",
|
|
519839
519839
|
"react-native": "0.77.2",
|
|
519840
519840
|
"react-native-svg": "15.11.2",
|
|
519841
519841
|
"react-redux": "^7.2.9",
|
|
519842
|
-
"react-test-renderer": "
|
|
519842
|
+
"react-test-renderer": "catalog:",
|
|
519843
519843
|
"redux-actions": "2.6.5",
|
|
519844
519844
|
timemachine: "^0.3.2",
|
|
519845
519845
|
"ts-jest": "^29.1.1",
|
|
@@ -519874,7 +519874,7 @@ var require_package8 = __commonJS({
|
|
|
519874
519874
|
"package.json"(exports2, module2) {
|
|
519875
519875
|
module2.exports = {
|
|
519876
519876
|
name: "@ledgerhq/live-cli",
|
|
519877
|
-
version: "24.26.0-nightly.
|
|
519877
|
+
version: "24.26.0-nightly.3",
|
|
519878
519878
|
description: "ledger-live CLI version",
|
|
519879
519879
|
repository: {
|
|
519880
519880
|
type: "git",
|
|
@@ -519940,8 +519940,8 @@ var require_package8 = __commonJS({
|
|
|
519940
519940
|
pako: "2.1.0",
|
|
519941
519941
|
"purify-ts": "2.1.0",
|
|
519942
519942
|
"qrcode-terminal": "0.12.0",
|
|
519943
|
-
react: "
|
|
519944
|
-
"react-dom": "
|
|
519943
|
+
react: "catalog:",
|
|
519944
|
+
"react-dom": "catalog:",
|
|
519945
519945
|
rxjs: "7.8.1",
|
|
519946
519946
|
usb: "*",
|
|
519947
519947
|
winston: "3.13.0",
|
|
@@ -519964,7 +519964,8 @@ var require_package8 = __commonJS({
|
|
|
519964
519964
|
"@types/qrcode-terminal": "0.12.2",
|
|
519965
519965
|
"@types/ws": "8.5.10",
|
|
519966
519966
|
"ts-node": "10.9.2",
|
|
519967
|
-
tsup: "7.3.0"
|
|
519967
|
+
tsup: "7.3.0",
|
|
519968
|
+
yaml: "2.8.1"
|
|
519968
519969
|
},
|
|
519969
519970
|
publishConfig: {
|
|
519970
519971
|
directory: "dist"
|
|
@@ -525061,6 +525062,11 @@ var envDefinitions = {
|
|
|
525061
525062
|
parser: stringParser,
|
|
525062
525063
|
desc: "(dev feature) seed to be used by speculos (device simulator)"
|
|
525063
525064
|
},
|
|
525065
|
+
PROVIDER_SESSION_ID_ENDPOINT: {
|
|
525066
|
+
def: "https://buy.api.live.ledger.com/session",
|
|
525067
|
+
parser: stringParser,
|
|
525068
|
+
desc: "Request provider session id"
|
|
525069
|
+
},
|
|
525064
525070
|
SHOW_LEGACY_NEW_ACCOUNT: {
|
|
525065
525071
|
def: false,
|
|
525066
525072
|
parser: boolParser,
|
|
@@ -530549,8 +530555,6 @@ function getCryptoCurrencyById(id7) {
|
|
|
530549
530555
|
}
|
|
530550
530556
|
|
|
530551
530557
|
// ../../libs/ledgerjs/packages/cryptoassets/lib-es/legacy/legacy-state.js
|
|
530552
|
-
var tokensByTicker = {};
|
|
530553
|
-
var tokensByAddress = {};
|
|
530554
530558
|
var tokensArray = [];
|
|
530555
530559
|
var tokensArrayWithDelisted = [];
|
|
530556
530560
|
var tokensByCryptoCurrency = {};
|
|
@@ -530716,13 +530720,14 @@ function convertAptCoinTokens(token) {
|
|
|
530716
530720
|
function convertAptFaTokens(token) {
|
|
530717
530721
|
return convertAptosTokens("fungible_asset", token);
|
|
530718
530722
|
}
|
|
530719
|
-
function convertSuiTokens([id7, name2, ticker, address3, decimals]) {
|
|
530723
|
+
function convertSuiTokens([id7, name2, ticker, address3, decimals, ledgerSignature]) {
|
|
530720
530724
|
return {
|
|
530721
530725
|
type: "TokenCurrency",
|
|
530722
530726
|
id: id7,
|
|
530723
530727
|
contractAddress: address3,
|
|
530724
530728
|
parentCurrency: getCryptoCurrencyById("sui"),
|
|
530725
530729
|
name: name2,
|
|
530730
|
+
ledgerSignature,
|
|
530726
530731
|
tokenType: "sui",
|
|
530727
530732
|
ticker,
|
|
530728
530733
|
disableCountervalue: false,
|
|
@@ -530842,12 +530847,10 @@ function removeTokenFromRecord(record4, key2) {
|
|
|
530842
530847
|
delete record4[key2];
|
|
530843
530848
|
}
|
|
530844
530849
|
function removeTokenFromAllLists(token) {
|
|
530845
|
-
const { id: id7, contractAddress, parentCurrency
|
|
530850
|
+
const { id: id7, contractAddress, parentCurrency } = token;
|
|
530846
530851
|
const lowCaseContract = contractAddress.toLowerCase();
|
|
530847
530852
|
removeTokenFromRecord(tokensById, id7);
|
|
530848
530853
|
removeTokenFromRecord(tokensByCurrencyAddress, parentCurrency.id + ":" + lowCaseContract);
|
|
530849
|
-
removeTokenFromRecord(tokensByAddress, lowCaseContract);
|
|
530850
|
-
removeTokenFromRecord(tokensByTicker, ticker);
|
|
530851
530854
|
removeTokenFromArray(tokensArray, id7);
|
|
530852
530855
|
removeTokenFromArray(tokensArrayWithDelisted, id7);
|
|
530853
530856
|
removeTokenFromArray(tokensByCryptoCurrency[parentCurrency.id], id7);
|
|
@@ -530860,7 +530863,7 @@ function addTokens(list2) {
|
|
|
530860
530863
|
const tokenHash = createTokenHash(token);
|
|
530861
530864
|
if (tokenListHashes.has(tokenHash))
|
|
530862
530865
|
return;
|
|
530863
|
-
const { id: id7, contractAddress, parentCurrency, delisted
|
|
530866
|
+
const { id: id7, contractAddress, parentCurrency, delisted } = token;
|
|
530864
530867
|
if (tokensById[id7])
|
|
530865
530868
|
removeTokenFromAllLists(token);
|
|
530866
530869
|
const lowCaseContract = contractAddress.toLowerCase();
|
|
@@ -530868,10 +530871,6 @@ function addTokens(list2) {
|
|
|
530868
530871
|
tokensArray.push(token);
|
|
530869
530872
|
tokensArrayWithDelisted.push(token);
|
|
530870
530873
|
tokensById[id7] = token;
|
|
530871
|
-
if (!tokensByTicker[ticker]) {
|
|
530872
|
-
tokensByTicker[ticker] = token;
|
|
530873
|
-
}
|
|
530874
|
-
tokensByAddress[lowCaseContract] = token;
|
|
530875
530874
|
tokensByCurrencyAddress[parentCurrency.id + ":" + lowCaseContract] = token;
|
|
530876
530875
|
if (!(parentCurrency.id in tokensByCryptoCurrency)) {
|
|
530877
530876
|
tokensByCryptoCurrency[parentCurrency.id] = [];
|
|
@@ -531043,6 +531042,9 @@ var apt_fungible_asset_default2 = apt_fungible_asset_default;
|
|
|
531043
531042
|
// ../../libs/ledgerjs/packages/cryptoassets/lib-es/data/sui.json
|
|
531044
531043
|
var sui_default = [["sui/coin/aaa_cat_0xd976fda9a9786cda1a36dee360013d775a5e5f206f8e20f84fad3385e99eeb2d::aaa::aaa", "aaa cat", "AAA", "0xd976fda9a9786cda1a36dee360013d775a5e5f206f8e20f84fad3385e99eeb2d::aaa::AAA", 6], ["sui/coin/afsui_0xf325ce1300e8dac124071d3152c5c5ee6174914f8bc2161e88329cf579246efc::afsui::afsui", "afSUI", "AFSUI", "0xf325ce1300e8dac124071d3152c5c5ee6174914f8bc2161e88329cf579246efc::afsui::AFSUI", 9], ["sui/coin/agent_s_0xea65bb5a79ff34ca83e2995f9ff6edd0887b08da9b45bf2e31f930d3efb82866::s::s", "Agent S", "S", "0xea65bb5a79ff34ca83e2995f9ff6edd0887b08da9b45bf2e31f930d3efb82866::s::S", 9], ["sui/coin/alphafi_staked_sui_0xd1b72982e40348d069bb1ff701e634c117bb5f741f44dff91e472d3b01461e55::stsui::stsui", "AlphaFi Staked SUI", "stSUI", "0xd1b72982e40348d069bb1ff701e634c117bb5f741f44dff91e472d3b01461e55::stsui::STSUI", 9], ["sui/coin/alpha_token_0xfe3afec26c59e874f3c1d60b8203cb3852d2bb2aa415df9548b8d688e6683f93::alpha::alpha", "ALPHA Token", "ALPHA", "0xfe3afec26c59e874f3c1d60b8203cb3852d2bb2aa415df9548b8d688e6683f93::alpha::ALPHA", 9], ["sui/coin/ausd_0x2053d08c1e2bd02791056171aab0fd12bd7cd7efad2ab8f6b9c8902f14df2ff2::ausd::ausd", "AUSD", "AUSD", "0x2053d08c1e2bd02791056171aab0fd12bd7cd7efad2ab8f6b9c8902f14df2ff2::ausd::AUSD", 6], ["sui/coin/axol_0xae00e078a46616bf6e1e6fb673d18dcd2aa31319a07c9bc92f6063363f597b4e::axol::axol", "AXOL", "AXOL", "0xae00e078a46616bf6e1e6fb673d18dcd2aa31319a07c9bc92f6063363f597b4e::AXOL::AXOL", 9], ["sui/coin/blub_0xfa7ac3951fdca92c5200d468d31a365eb03b2be9936fde615e69f0c1274ad3a0::blub::blub", "BLUB", "BLUB", "0xfa7ac3951fdca92c5200d468d31a365eb03b2be9936fde615e69f0c1274ad3a0::BLUB::BLUB", 2], ["sui/coin/bluefin_0xe1b45a0e641b9955a20aa0ad1c1f4ad86aad8afb07296d4085e349a50e90bdca::blue::blue", "Bluefin", "BLUE", "0xe1b45a0e641b9955a20aa0ad1c1f4ad86aad8afb07296d4085e349a50e90bdca::blue::BLUE", 9], ["sui/coin/bucket_token_0xbc858cb910b9914bee64fff0f9b38855355a040c49155a17b265d9086d256545::but::but", "Bucket Token", "BUT", "0xbc858cb910b9914bee64fff0f9b38855355a040c49155a17b265d9086d256545::but::BUT", 9], ["sui/coin/bucket_usd_0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::buck::buck", "Bucket USD", "BUCK", "0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::buck::BUCK", 9], ["sui/coin/cetus_token_0x06864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b::cetus::cetus", "Cetus Token", "CETUS", "0x06864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b::cetus::CETUS", 9], ["sui/coin/deepbook_token_0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::deep", "DeepBook Token", "DEEP", "0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::DEEP", 6], ["sui/coin/delorean_0x4c981f3ff786cdb9e514da897ab8a953647dae2ace9679e8358eec1e3e8871ac::dmc::dmc", "DeLorean", "DMC", "0x4c981f3ff786cdb9e514da897ab8a953647dae2ace9679e8358eec1e3e8871ac::dmc::DMC", 9], ["sui/coin/eth_by_sui_bridge_0xd0e89b2af5e4910726fbcd8b8dd37bb79b29e5f83f7491bca830e94f7f226d29::eth::eth", "ETH by Sui Bridge", "ETH", "0xd0e89b2af5e4910726fbcd8b8dd37bb79b29e5f83f7491bca830e94f7f226d29::eth::ETH", 8], ["sui/coin/first_digital_usd_0xf16e6b723f242ec745dfd7634ad072c42d5c1d9ac9d62a39c381303eaa57693a::fdusd::fdusd", "First Digital USD", "FDUSD", "0xf16e6b723f242ec745dfd7634ad072c42d5c1d9ac9d62a39c381303eaa57693a::fdusd::FDUSD", 6], ["sui/coin/flowx_0x6dae8ca14311574fdfe555524ea48558e3d1360d1607d1c7f98af867e3b7976c::flx::flx", "FlowX", "FLX", "0x6dae8ca14311574fdfe555524ea48558e3d1360d1607d1c7f98af867e3b7976c::flx::FLX", 8], ["sui/coin/fud_0x76cb819b01abed502bee8a702b4c2d547532c12f25001c9dea795a5e631c26f1::fud::fud", "FUD", "FUD", "0x76cb819b01abed502bee8a702b4c2d547532c12f25001c9dea795a5e631c26f1::fud::FUD", 5], ["sui/coin/hasui_0xbde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d::hasui::hasui", "haSUI", "haSUI", "0xbde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d::hasui::HASUI", 9], ["sui/coin/lofi_0xf22da9a24ad027cccb5f2d496cbe91de953d363513db08a3a734d361c7c17503::lofi::lofi", "LOFI", "LOFI", "0xf22da9a24ad027cccb5f2d496cbe91de953d363513db08a3a734d361c7c17503::LOFI::LOFI", 9], ["sui/coin/memefi_0x506a6fc25f1c7d52ceb06ea44a3114c9380f8e2029b4356019822f248b49e411::memefi::memefi", "MEMEFI", "MEMEFI", "0x506a6fc25f1c7d52ceb06ea44a3114c9380f8e2029b4356019822f248b49e411::memefi::MEMEFI", 9], ["sui/coin/miu_0x32a976482bf4154961bf20bfa3567a80122fdf8e8f8b28d752b609d8640f7846::miu::miu", "MIU", "MIU", "0x32a976482bf4154961bf20bfa3567a80122fdf8e8f8b28d752b609d8640f7846::miu::MIU", 3], ["sui/coin/mochi_0xa26788cb462ae9242d9483bdbe5a82188ba0eaeae3c5e9237d30cbcb83ce7a88::mochi::mochi", "Mochi", "MOCHI", "0xa26788cb462ae9242d9483bdbe5a82188ba0eaeae3c5e9237d30cbcb83ce7a88::mochi::MOCHI", 6], ["sui/coin/msend_series_1_0xda097d57ae887fbd002fb5847dd0ab47ae7e1b183fd36832a51182c52257e1bc::msend_series_1::msend_series_1", "mSEND Series 1", "mSEND", "0xda097d57ae887fbd002fb5847dd0ab47ae7e1b183fd36832a51182c52257e1bc::msend_series_1::MSEND_SERIES_1", 6], ["sui/coin/musd_0xe44df51c0b21a27ab915fa1fe2ca610cd3eaa6d9666fe5e62b988bf7f0bd8722::musd::musd", "mUSD", "mUSD", "0xe44df51c0b21a27ab915fa1fe2ca610cd3eaa6d9666fe5e62b988bf7f0bd8722::musd::MUSD", 9], ["sui/coin/navx_token_0xa99b8952d4f7d947ea77fe0ecdcc9e5fc0bcab2841d6e2a5aa00c3044e5544b5::navx::navx", "NAVX Token", "NAVX", "0xa99b8952d4f7d947ea77fe0ecdcc9e5fc0bcab2841d6e2a5aa00c3044e5544b5::navx::NAVX", 9], ["sui/coin/ocean_token_0xa8816d3a6e3136e86bc2873b1f94a15cadc8af2703c075f2d546c2ae367f4df9::ocean::ocean", "Ocean Token", "OCEAN", "0xa8816d3a6e3136e86bc2873b1f94a15cadc8af2703c075f2d546c2ae367f4df9::ocean::OCEAN", 9], ["sui/coin/ondo_us_dollar_yield_0x960b531667636f39e85867775f52f6b1f220a058c4de786905bdf761e06a56bb::usdy::usdy", "Ondo US Dollar Yield", "USDY", "0x960b531667636f39e85867775f52f6b1f220a058c4de786905bdf761e06a56bb::usdy::USDY", 6], ["sui/coin/pepe_on_sui_0x288710173f12f677ac38b0c2b764a0fea8108cb5e32059c3dd8f650d65e2cb25::pepe::pepe", "Pepe on Sui", "PEPE", "0x288710173f12f677ac38b0c2b764a0fea8108cb5e32059c3dd8f650d65e2cb25::pepe::PEPE", 2], ["sui/coin/pyth_network_0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::coin", "Pyth Network", "PYTH", "0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN", 6], ["sui/coin/scallop_0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6::sca::sca", "Scallop", "SCA", "0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6::sca::SCA", 9], ["sui/coin/send_0xb45fcfcc2cc07ce0702cc2d229621e046c906ef14d9b25e8e4d25f6e8763fef7::send::send", "SEND", "SEND", "0xb45fcfcc2cc07ce0702cc2d229621e046c906ef14d9b25e8e4d25f6e8763fef7::send::SEND", 6], ["sui/coin/spring_sui_0x83556891f4a0f233ce7b05cfe7f957d4020492a34f5405b2cb9377d060bef4bf::spring_sui::spring_sui", "Spring SUI", "sSUI", "0x83556891f4a0f233ce7b05cfe7f957d4020492a34f5405b2cb9377d060bef4bf::spring_sui::SPRING_SUI", 9], ["sui/coin/sudeng_0x8993129d72e733985f7f1a00396cbd055bad6f817fee36576ce483c8bbb8b87b::sudeng::sudeng", "sudeng", "HIPPO", "0x8993129d72e733985f7f1a00396cbd055bad6f817fee36576ce483c8bbb8b87b::sudeng::SUDENG", 9], ["sui/coin/suiai_0xbc732bc5f1e9a9f4bdf4c0672ee538dbf56c161afe04ff1de2176efabdf41f92::suai::suai", "SuiAI", "SUAI", "0xbc732bc5f1e9a9f4bdf4c0672ee538dbf56c161afe04ff1de2176efabdf41f92::suai::SUAI", 6], ["sui/coin/suins_token_0x5145494a5f5100e645e4b0aa950fa6b68f614e8c59e17bc5ded3495123a79178::ns::ns", "SuiNS Token", "NS", "0x5145494a5f5100e645e4b0aa950fa6b68f614e8c59e17bc5ded3495123a79178::ns::NS", 6], ["sui/coin/suiusdt_0x375f70cf2ae4c00bf37117d0c85a2c71545e6ee05c4a5c7d282cd66a4504b068::usdt::usdt", "suiUSDT", "suiUSDT", "0x375f70cf2ae4c00bf37117d0c85a2c71545e6ee05c4a5c7d282cd66a4504b068::usdt::USDT", 6], ["sui/coin/tardi_0x4cf08813756dfa7519cb480a1a1a3472b5b4ec067592a8bee0f826808d218158::tardi::tardi", "Tardi", "TARDI", "0x4cf08813756dfa7519cb480a1a1a3472b5b4ec067592a8bee0f826808d218158::tardi::TARDI", 9], ["sui/coin/tether_usd_0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::coin", "Tether USD", "USDT", "0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN", 6], ["sui/coin/tubbi_0x06106c04a586f0f003fcdf7fb33564f373680ddcc1beb716fd22e2952e227eb3::tubbi::tubbi", "TUBBI", "TUBBI", "0x06106c04a586f0f003fcdf7fb33564f373680ddcc1beb716fd22e2952e227eb3::tubbi::TUBBI", 9], ["sui/coin/turbos_0x5d1f47ea69bb0de31c313d7acf89b890dbb8991ea8e03c6c355171f84bb1ba4a::turbos::turbos", "Turbos", "TURBOS", "0x5d1f47ea69bb0de31c313d7acf89b890dbb8991ea8e03c6c355171f84bb1ba4a::turbos::TURBOS", 9], ["sui/coin/usdc_0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::usdc", "USDC", "USDC", "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC", 6], ["sui/coin/usd_coin_0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::coin", "USD Coin", "USDC", "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN", 6], ["sui/coin/volo_staked_sui_0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::cert", "Volo Staked SUI", "vSUI", "0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT", 9], ["sui/coin/wal_token_0x356a26eb9e012a68958082340d4c4116e7f55615cf27affcff209cf0ae544f59::wal::wal", "WAL Token", "WAL", "0x356a26eb9e012a68958082340d4c4116e7f55615cf27affcff209cf0ae544f59::wal::WAL", 9], ["sui/coin/wewe_0xb5b603827d1bfb2859200fd332d5e139ccac2598f0625de153a87cf78954e0c4::wewe::wewe", "WEWE", "WEWE", "0xb5b603827d1bfb2859200fd332d5e139ccac2598f0625de153a87cf78954e0c4::wewe::WEWE", 9], ["sui/coin/win_0xe6b9e1033c72084ad01db37c77778ca53b9c4ebb263f28ffbfed39f4d5fd5057::win::win", "Win", "WIN", "0xe6b9e1033c72084ad01db37c77778ca53b9c4ebb263f28ffbfed39f4d5fd5057::win::WIN", 9], ["sui/coin/wrapped_bitcoin_0xaafb102dd0902f5055cadecd687fb5b71ca82ef0e0285d90afde828ec58ca96b::btc::btc", "Wrapped Bitcoin", "wBTC", "0xaafb102dd0902f5055cadecd687fb5b71ca82ef0e0285d90afde828ec58ca96b::btc::BTC", 8], ["sui/coin/wrapped_btc_0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::coin", "Wrapped BTC", "WBTC", "0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN", 8], ["sui/coin/wrapped_ether_0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::coin", "Wrapped Ether", "WETH", "0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN", 8], ["sui/coin/wrapped_sol_0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::coin", "Wrapped SOL", "SOL", "0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN", 8]];
|
|
531045
531044
|
|
|
531045
|
+
// ../../libs/ledgerjs/packages/cryptoassets/lib-es/data/sui-hash.json
|
|
531046
|
+
var sui_hash_default = 'W/"c00ae51f7230953d527f501fb6d97c915b83d092"';
|
|
531047
|
+
|
|
531046
531048
|
// ../../libs/ledgerjs/packages/cryptoassets/lib-es/data/sui.js
|
|
531047
531049
|
var sui_default2 = sui_default;
|
|
531048
531050
|
|
|
@@ -531077,20 +531079,9 @@ function initializeLegacyTokens(addTokens2) {
|
|
|
531077
531079
|
|
|
531078
531080
|
// ../../libs/ledgerjs/packages/cryptoassets/lib-es/tokens.js
|
|
531079
531081
|
initializeLegacyTokens(addTokens);
|
|
531080
|
-
function findTokenByTicker(ticker) {
|
|
531081
|
-
return tokensByTicker[ticker];
|
|
531082
|
-
}
|
|
531083
531082
|
function findTokenById(id7) {
|
|
531084
531083
|
return tokensById[id7];
|
|
531085
531084
|
}
|
|
531086
|
-
var deprecatedDisplayed = false;
|
|
531087
|
-
function findTokenByAddress(address3) {
|
|
531088
|
-
if (!deprecatedDisplayed) {
|
|
531089
|
-
deprecatedDisplayed = true;
|
|
531090
|
-
console.warn("findTokenByAddress is deprecated. use findTokenByAddressInCurrency");
|
|
531091
|
-
}
|
|
531092
|
-
return tokensByAddress[address3.toLowerCase()];
|
|
531093
|
-
}
|
|
531094
531085
|
function findTokenByAddressInCurrency(address3, currencyId) {
|
|
531095
531086
|
return tokensByCurrencyAddress[currencyId + ":" + address3.toLowerCase()];
|
|
531096
531087
|
}
|
|
@@ -536404,20 +536395,8 @@ var Prando = (
|
|
|
536404
536395
|
);
|
|
536405
536396
|
var Prando_es_default = Prando;
|
|
536406
536397
|
|
|
536407
|
-
// ../../libs/coin-framework/lib-es/crypto-assets/index.js
|
|
536408
|
-
var cryptoAssetsStore = void 0;
|
|
536409
|
-
function setCryptoAssetsStore(store5) {
|
|
536410
|
-
cryptoAssetsStore = store5;
|
|
536411
|
-
}
|
|
536412
|
-
function getCryptoAssetsStore() {
|
|
536413
|
-
if (!cryptoAssetsStore) {
|
|
536414
|
-
throw new Error("CryptoAssetsStore is not set. Please call setCryptoAssetsStore first.");
|
|
536415
|
-
}
|
|
536416
|
-
return cryptoAssetsStore;
|
|
536417
|
-
}
|
|
536418
|
-
|
|
536419
536398
|
// ../../libs/live-countervalues/lib-es/findCurrencyByTicker.js
|
|
536420
|
-
var findCurrencyByTicker = (ticker) => findCryptoCurrencyByTicker(ticker) || findFiatCurrencyByTicker(ticker)
|
|
536399
|
+
var findCurrencyByTicker = (ticker) => findCryptoCurrencyByTicker(ticker) || findFiatCurrencyByTicker(ticker);
|
|
536421
536400
|
|
|
536422
536401
|
// ../../libs/live-countervalues/lib-es/api/api.mock.js
|
|
536423
536402
|
var DAY2 = 24 * 60 * 60 * 1e3;
|
|
@@ -543601,6 +543580,18 @@ function walletDerivation({ currency: currency24, derivationMode, derivateAddres
|
|
|
543601
543580
|
}));
|
|
543602
543581
|
}
|
|
543603
543582
|
|
|
543583
|
+
// ../../libs/coin-framework/lib-es/crypto-assets/index.js
|
|
543584
|
+
var cryptoAssetsStore = void 0;
|
|
543585
|
+
function setCryptoAssetsStore(store5) {
|
|
543586
|
+
cryptoAssetsStore = store5;
|
|
543587
|
+
}
|
|
543588
|
+
function getCryptoAssetsStore() {
|
|
543589
|
+
if (!cryptoAssetsStore) {
|
|
543590
|
+
throw new Error("CryptoAssetsStore is not set. Please call setCryptoAssetsStore first.");
|
|
543591
|
+
}
|
|
543592
|
+
return cryptoAssetsStore;
|
|
543593
|
+
}
|
|
543594
|
+
|
|
543604
543595
|
// ../../libs/coin-framework/lib-es/account/accountId.js
|
|
543605
543596
|
function ensureNoColon(value5, ctx) {
|
|
543606
543597
|
(0, import_invariant3.default)(!value5.includes(":"), "AccountId '%s' component must not use colon", ctx);
|
|
@@ -627014,7 +627005,7 @@ var fetchERC20Tokens = async (currency24) => {
|
|
|
627014
627005
|
if (!chainId)
|
|
627015
627006
|
return null;
|
|
627016
627007
|
const embeddedHash = hashes[chainId];
|
|
627017
|
-
const
|
|
627008
|
+
const latestCALHash2 = getCALHash(currency24);
|
|
627018
627009
|
try {
|
|
627019
627010
|
const { tokens: tokens10, hash: hash10 } = await fetchTokensFromCALService({
|
|
627020
627011
|
chainId,
|
|
@@ -627028,7 +627019,7 @@ var fetchERC20Tokens = async (currency24) => {
|
|
|
627028
627019
|
"live_signature",
|
|
627029
627020
|
"contract_address",
|
|
627030
627021
|
"delisted"
|
|
627031
|
-
],
|
|
627022
|
+
], latestCALHash2 || embeddedHash);
|
|
627032
627023
|
setCALHash(currency24, hash10 || "");
|
|
627033
627024
|
return tokens10.map((token) => {
|
|
627034
627025
|
const [, , tokenIdentifier] = token.id.split("/");
|
|
@@ -627046,8 +627037,8 @@ var fetchERC20Tokens = async (currency24) => {
|
|
|
627046
627037
|
});
|
|
627047
627038
|
} catch (e36) {
|
|
627048
627039
|
if (e36 instanceof AxiosError2 && e36.response?.status === 304) {
|
|
627049
|
-
log2("evm/preload", `laoding existing fallback tokens for ${chainId} with hash ${
|
|
627050
|
-
if (!
|
|
627040
|
+
log2("evm/preload", `laoding existing fallback tokens for ${chainId} with hash ${latestCALHash2 || embeddedHash}`);
|
|
627041
|
+
if (!latestCALHash2) {
|
|
627051
627042
|
const embeddedTokens = tokens8[chainId];
|
|
627052
627043
|
setCALHash(currency24, embeddedHash);
|
|
627053
627044
|
return embeddedTokens;
|
|
@@ -660660,11 +660651,9 @@ var EthAppPleaseEnableContractData4 = createCustomErrorClass("EthAppPleaseEnable
|
|
|
660660
660651
|
|
|
660661
660652
|
// ../../libs/ledger-live-common/lib-es/bridge/crypto-assets/index.js
|
|
660662
660653
|
var legacyStore = {
|
|
660663
|
-
findTokenByAddress,
|
|
660664
660654
|
getTokenById,
|
|
660665
660655
|
findTokenById,
|
|
660666
|
-
findTokenByAddressInCurrency
|
|
660667
|
-
findTokenByTicker
|
|
660656
|
+
findTokenByAddressInCurrency
|
|
660668
660657
|
};
|
|
660669
660658
|
var cryptoAssetsStore2 = void 0;
|
|
660670
660659
|
function getCryptoAssetsStore3() {
|
|
@@ -775589,8 +775578,8 @@ function setShouldSkipTokenLoading2(skip2) {
|
|
|
775589
775578
|
}
|
|
775590
775579
|
var PRELOAD_MAX_AGE6 = 15 * 60 * 1e3;
|
|
775591
775580
|
var fetchSPLTokens = async (currency24) => {
|
|
775592
|
-
const
|
|
775593
|
-
const calHash =
|
|
775581
|
+
const latestCALHash2 = getCALHash2(currency24);
|
|
775582
|
+
const calHash = latestCALHash2 || spl_hash_default;
|
|
775594
775583
|
try {
|
|
775595
775584
|
const { tokens: tokens10, hash: hash10 } = await fetchTokensFromCALService({ blockchain_name: "solana" }, ["id", "network", "name", "ticker", "contract_address", "decimals"], calHash);
|
|
775596
775585
|
const splTokens = tokens10.map((token) => [
|
|
@@ -775609,8 +775598,8 @@ var fetchSPLTokens = async (currency24) => {
|
|
|
775609
775598
|
return splTokens;
|
|
775610
775599
|
} catch (e36) {
|
|
775611
775600
|
if (e36 instanceof AxiosError2 && e36.response?.status === 304) {
|
|
775612
|
-
log2("solana/preload", `loading existing fallback tokens for solana with hash ${
|
|
775613
|
-
if (!
|
|
775601
|
+
log2("solana/preload", `loading existing fallback tokens for solana with hash ${latestCALHash2 || spl_hash_default}`);
|
|
775602
|
+
if (!latestCALHash2) {
|
|
775614
775603
|
setCALHash2(currency24, spl_hash_default);
|
|
775615
775604
|
if (!shouldSkipTokenLoading2) {
|
|
775616
775605
|
addTokens(spl_default2.map(convertSplTokens));
|
|
@@ -777836,7 +777825,7 @@ function inferTransactions17(transactions3, opts) {
|
|
|
777836
777825
|
if (account3.type !== "Account") {
|
|
777837
777826
|
throw new Error("expected main account");
|
|
777838
777827
|
}
|
|
777839
|
-
const tokenCurrency = getCryptoAssetsStore4().
|
|
777828
|
+
const tokenCurrency = getCryptoAssetsStore4().findTokenById(token);
|
|
777840
777829
|
if (!tokenCurrency) {
|
|
777841
777830
|
throw new Error(`token <${token}> not found`);
|
|
777842
777831
|
}
|
|
@@ -778468,9 +778457,9 @@ var SWAP_DATA_CDN = {
|
|
|
778468
778457
|
needsKYC: false,
|
|
778469
778458
|
useInExchangeApp: false,
|
|
778470
778459
|
displayName: "1inch",
|
|
778471
|
-
termsOfUseUrl: "https://1inch.
|
|
778472
|
-
supportUrl: "https://help.1inch.
|
|
778473
|
-
mainUrl: "https://1inch.
|
|
778460
|
+
termsOfUseUrl: "https://1inch.com/assets/Widget_1inch.com_Terms_of_Use.pdf",
|
|
778461
|
+
supportUrl: "https://help.1inch.com/en/",
|
|
778462
|
+
mainUrl: "https://1inch.com/"
|
|
778474
778463
|
},
|
|
778475
778464
|
paraswap: {
|
|
778476
778465
|
type: "DEX",
|
|
@@ -821507,9 +821496,40 @@ init_lib_es2();
|
|
|
821507
821496
|
var import_rxjs147 = require("rxjs");
|
|
821508
821497
|
init_lib_es2();
|
|
821509
821498
|
var PRELOAD_MAX_AGE7 = 30 * 60 * 1e3;
|
|
821510
|
-
var currentPreloadedData3 = { validators: [] };
|
|
821499
|
+
var currentPreloadedData3 = { validators: [], tokens: [] };
|
|
821500
|
+
var latestCALHash = "";
|
|
821501
|
+
var fetchSuiTokens = async () => {
|
|
821502
|
+
const embeddedHash = sui_hash_default;
|
|
821503
|
+
try {
|
|
821504
|
+
const { tokens: tokens10, hash: hash10 } = await fetchTokensFromCALService({
|
|
821505
|
+
blockchain_name: "sui"
|
|
821506
|
+
}, ["id", "name", "ticker", "contract_address", "decimals", "live_signature"], latestCALHash || embeddedHash);
|
|
821507
|
+
latestCALHash = hash10 || "";
|
|
821508
|
+
return tokens10.map((token) => {
|
|
821509
|
+
return [
|
|
821510
|
+
token.id,
|
|
821511
|
+
token.name,
|
|
821512
|
+
token.ticker.toUpperCase(),
|
|
821513
|
+
token.contract_address,
|
|
821514
|
+
token.decimals,
|
|
821515
|
+
token.live_signature
|
|
821516
|
+
];
|
|
821517
|
+
});
|
|
821518
|
+
} catch (e36) {
|
|
821519
|
+
if (e36 instanceof AxiosError2 && e36.response?.status === 304) {
|
|
821520
|
+
log2("sui/preload", `loading existing fallback tokens for sui with hash ${latestCALHash || embeddedHash}`);
|
|
821521
|
+
if (!latestCALHash) {
|
|
821522
|
+
latestCALHash = embeddedHash;
|
|
821523
|
+
return sui_default2;
|
|
821524
|
+
}
|
|
821525
|
+
return [];
|
|
821526
|
+
}
|
|
821527
|
+
log2("sui/preload", "failure to retrieve tokens for sui", e36);
|
|
821528
|
+
return [];
|
|
821529
|
+
}
|
|
821530
|
+
};
|
|
821511
821531
|
function fromHydratePreloadData5(data12) {
|
|
821512
|
-
return { validators: data12?.validators ?? [] };
|
|
821532
|
+
return { validators: data12?.validators ?? [], tokens: data12?.tokens ?? [] };
|
|
821513
821533
|
}
|
|
821514
821534
|
var updates6 = new import_rxjs147.Subject();
|
|
821515
821535
|
function setSuiPreloadData(data12) {
|
|
@@ -821521,10 +821541,17 @@ function setSuiPreloadData(data12) {
|
|
|
821521
821541
|
var getPreloadStrategy7 = () => ({
|
|
821522
821542
|
preloadMaxAge: PRELOAD_MAX_AGE7
|
|
821523
821543
|
});
|
|
821544
|
+
var shouldSkipTokenLoading3 = false;
|
|
821524
821545
|
var preload8 = async () => {
|
|
821525
|
-
const validators7 = await getValidators6();
|
|
821526
821546
|
log2("sui/preload", "preloading sui data...");
|
|
821527
|
-
|
|
821547
|
+
const validators7 = await getValidators6();
|
|
821548
|
+
let tokens10 = [];
|
|
821549
|
+
if (!shouldSkipTokenLoading3) {
|
|
821550
|
+
tokens10 = await fetchSuiTokens();
|
|
821551
|
+
log2("sui/preload", "preload " + tokens10.length + " tokens");
|
|
821552
|
+
addTokens(tokens10.map(convertSuiTokens));
|
|
821553
|
+
}
|
|
821554
|
+
return { validators: validators7, tokens: tokens10 };
|
|
821528
821555
|
};
|
|
821529
821556
|
var hydrate10 = (data12) => {
|
|
821530
821557
|
const hydrated = fromHydratePreloadData5(data12);
|
|
@@ -823302,7 +823329,7 @@ function createBridges23(signerContext4, coinConfig19) {
|
|
|
823302
823329
|
}
|
|
823303
823330
|
|
|
823304
823331
|
// ../../node_modules/.pnpm/@mysten+ledgerjs-hw-app-sui@0.6.0/node_modules/@mysten/ledgerjs-hw-app-sui/dist/esm/Sui.js
|
|
823305
|
-
var import_fast_sha256 = __toESM(
|
|
823332
|
+
var import_fast_sha256 = __toESM(require_sha25612(), 1);
|
|
823306
823333
|
var __typeError9 = (msg) => {
|
|
823307
823334
|
throw TypeError(msg);
|
|
823308
823335
|
};
|
|
@@ -860099,11 +860126,9 @@ function closeAllDevices() {
|
|
|
860099
860126
|
closeAllSpeculosDevices();
|
|
860100
860127
|
}
|
|
860101
860128
|
var legacyStore2 = {
|
|
860102
|
-
findTokenByAddress,
|
|
860103
860129
|
getTokenById,
|
|
860104
860130
|
findTokenById,
|
|
860105
|
-
findTokenByAddressInCurrency
|
|
860106
|
-
findTokenByTicker
|
|
860131
|
+
findTokenByAddressInCurrency
|
|
860107
860132
|
};
|
|
860108
860133
|
setCryptoAssetsStore(legacyStore2);
|
|
860109
860134
|
|
|
@@ -882316,7 +882341,7 @@ var mockGetExchangeRates = async (exchange, transaction, currencyTo) => {
|
|
|
882316
882341
|
providerType: "DEX",
|
|
882317
882342
|
expirationDate: /* @__PURE__ */ new Date(),
|
|
882318
882343
|
tradeMethod: "float",
|
|
882319
|
-
providerURL: `https://
|
|
882344
|
+
providerURL: `https://1inch.com/swap/#/1/unified/swap/eth/usdt&sourceTokenAmount=${transaction.amount}`
|
|
882320
882345
|
}
|
|
882321
882346
|
];
|
|
882322
882347
|
};
|
|
@@ -882422,9 +882447,9 @@ var DEFAULT_SWAP_PROVIDERS = {
|
|
|
882422
882447
|
type: "DEX",
|
|
882423
882448
|
needsKYC: false,
|
|
882424
882449
|
needsBearerToken: false,
|
|
882425
|
-
termsOfUseUrl: "https://1inch.
|
|
882426
|
-
supportUrl: "https://help.1inch.
|
|
882427
|
-
mainUrl: "https://1inch.
|
|
882450
|
+
termsOfUseUrl: "https://1inch.com/assets/Widget_1inch.com_Terms_of_Use.pdf",
|
|
882451
|
+
supportUrl: "https://help.1inch.com/en/",
|
|
882452
|
+
mainUrl: "https://1inch.com/"
|
|
882428
882453
|
},
|
|
882429
882454
|
paraswap: {
|
|
882430
882455
|
type: "DEX",
|