dbnexus 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +1815 -379
- package/dist/cli.js +1 -1
- package/dist/web/assets/{index-DoAn-9yR.js → index-Dc1NWltv.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +1 -2
package/dist/api.js
CHANGED
|
@@ -104937,392 +104937,1821 @@ var require_passport = __commonJS({
|
|
|
104937
104937
|
}
|
|
104938
104938
|
});
|
|
104939
104939
|
|
|
104940
|
-
// node_modules/.pnpm/
|
|
104941
|
-
var
|
|
104942
|
-
"node_modules/.pnpm/
|
|
104943
|
-
|
|
104944
|
-
|
|
104945
|
-
|
|
104946
|
-
|
|
104947
|
-
|
|
104948
|
-
|
|
104949
|
-
|
|
104950
|
-
|
|
104951
|
-
|
|
104952
|
-
|
|
104953
|
-
|
|
104954
|
-
|
|
104955
|
-
|
|
104956
|
-
|
|
104957
|
-
|
|
104958
|
-
|
|
104959
|
-
|
|
104960
|
-
|
|
104961
|
-
|
|
104962
|
-
|
|
104963
|
-
|
|
104964
|
-
|
|
104965
|
-
|
|
104940
|
+
// node_modules/.pnpm/bcryptjs@2.4.3/node_modules/bcryptjs/dist/bcrypt.js
|
|
104941
|
+
var require_bcrypt = __commonJS({
|
|
104942
|
+
"node_modules/.pnpm/bcryptjs@2.4.3/node_modules/bcryptjs/dist/bcrypt.js"(exports2, module2) {
|
|
104943
|
+
(function(global2, factory) {
|
|
104944
|
+
if (typeof define === "function" && define["amd"])
|
|
104945
|
+
define([], factory);
|
|
104946
|
+
else if (typeof __require === "function" && typeof module2 === "object" && module2 && module2["exports"])
|
|
104947
|
+
module2["exports"] = factory();
|
|
104948
|
+
else
|
|
104949
|
+
(global2["dcodeIO"] = global2["dcodeIO"] || {})["bcrypt"] = factory();
|
|
104950
|
+
})(exports2, function() {
|
|
104951
|
+
"use strict";
|
|
104952
|
+
var bcrypt2 = {};
|
|
104953
|
+
var randomFallback = null;
|
|
104954
|
+
function random(len) {
|
|
104955
|
+
if (typeof module2 !== "undefined" && module2 && module2["exports"])
|
|
104956
|
+
try {
|
|
104957
|
+
return __require("crypto")["randomBytes"](len);
|
|
104958
|
+
} catch (e) {
|
|
104959
|
+
}
|
|
104960
|
+
try {
|
|
104961
|
+
var a;
|
|
104962
|
+
(self["crypto"] || self["msCrypto"])["getRandomValues"](a = new Uint32Array(len));
|
|
104963
|
+
return Array.prototype.slice.call(a);
|
|
104964
|
+
} catch (e) {
|
|
104965
|
+
}
|
|
104966
|
+
if (!randomFallback)
|
|
104967
|
+
throw Error("Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative");
|
|
104968
|
+
return randomFallback(len);
|
|
104966
104969
|
}
|
|
104967
|
-
|
|
104968
|
-
var release = getFirst(path5.join(dir, "build/Release"), matchBuild);
|
|
104969
|
-
if (release) return release;
|
|
104970
|
-
var debug = getFirst(path5.join(dir, "build/Debug"), matchBuild);
|
|
104971
|
-
if (debug) return debug;
|
|
104972
|
-
}
|
|
104973
|
-
var prebuild = resolve(dir);
|
|
104974
|
-
if (prebuild) return prebuild;
|
|
104975
|
-
var nearby = resolve(path5.dirname(process.execPath));
|
|
104976
|
-
if (nearby) return nearby;
|
|
104977
|
-
var target = [
|
|
104978
|
-
"platform=" + platform2,
|
|
104979
|
-
"arch=" + arch,
|
|
104980
|
-
"runtime=" + runtime,
|
|
104981
|
-
"abi=" + abi,
|
|
104982
|
-
"uv=" + uv,
|
|
104983
|
-
armv ? "armv=" + armv : "",
|
|
104984
|
-
"libc=" + libc,
|
|
104985
|
-
"node=" + process.versions.node,
|
|
104986
|
-
process.versions.electron ? "electron=" + process.versions.electron : "",
|
|
104987
|
-
typeof __webpack_require__ === "function" ? "webpack=true" : ""
|
|
104988
|
-
// eslint-disable-line
|
|
104989
|
-
].filter(Boolean).join(" ");
|
|
104990
|
-
throw new Error("No native build was found for " + target + "\n loaded from: " + dir + "\n");
|
|
104991
|
-
function resolve(dir2) {
|
|
104992
|
-
var tuples = readdirSync2(path5.join(dir2, "prebuilds")).map(parseTuple);
|
|
104993
|
-
var tuple = tuples.filter(matchTuple(platform2, arch)).sort(compareTuples)[0];
|
|
104994
|
-
if (!tuple) return;
|
|
104995
|
-
var prebuilds = path5.join(dir2, "prebuilds", tuple.name);
|
|
104996
|
-
var parsed = readdirSync2(prebuilds).map(parseTags);
|
|
104997
|
-
var candidates = parsed.filter(matchTags(runtime, abi));
|
|
104998
|
-
var winner = candidates.sort(compareTags(runtime))[0];
|
|
104999
|
-
if (winner) return path5.join(prebuilds, winner.file);
|
|
105000
|
-
}
|
|
105001
|
-
};
|
|
105002
|
-
function readdirSync2(dir) {
|
|
104970
|
+
var randomAvailable = false;
|
|
105003
104971
|
try {
|
|
105004
|
-
|
|
105005
|
-
|
|
105006
|
-
|
|
104972
|
+
random(1);
|
|
104973
|
+
randomAvailable = true;
|
|
104974
|
+
} catch (e) {
|
|
105007
104975
|
}
|
|
105008
|
-
|
|
105009
|
-
|
|
105010
|
-
|
|
105011
|
-
return files[0] && path5.join(dir, files[0]);
|
|
105012
|
-
}
|
|
105013
|
-
function matchBuild(name) {
|
|
105014
|
-
return /\.node$/.test(name);
|
|
105015
|
-
}
|
|
105016
|
-
function parseTuple(name) {
|
|
105017
|
-
var arr = name.split("-");
|
|
105018
|
-
if (arr.length !== 2) return;
|
|
105019
|
-
var platform3 = arr[0];
|
|
105020
|
-
var architectures = arr[1].split("+");
|
|
105021
|
-
if (!platform3) return;
|
|
105022
|
-
if (!architectures.length) return;
|
|
105023
|
-
if (!architectures.every(Boolean)) return;
|
|
105024
|
-
return { name, platform: platform3, architectures };
|
|
105025
|
-
}
|
|
105026
|
-
function matchTuple(platform3, arch2) {
|
|
105027
|
-
return function(tuple) {
|
|
105028
|
-
if (tuple == null) return false;
|
|
105029
|
-
if (tuple.platform !== platform3) return false;
|
|
105030
|
-
return tuple.architectures.includes(arch2);
|
|
104976
|
+
randomFallback = null;
|
|
104977
|
+
bcrypt2.setRandomFallback = function(random2) {
|
|
104978
|
+
randomFallback = random2;
|
|
105031
104979
|
};
|
|
105032
|
-
|
|
105033
|
-
|
|
105034
|
-
|
|
105035
|
-
|
|
105036
|
-
|
|
105037
|
-
|
|
105038
|
-
|
|
105039
|
-
|
|
105040
|
-
|
|
105041
|
-
|
|
105042
|
-
|
|
105043
|
-
|
|
105044
|
-
|
|
105045
|
-
|
|
105046
|
-
|
|
105047
|
-
|
|
105048
|
-
|
|
105049
|
-
|
|
105050
|
-
|
|
105051
|
-
|
|
105052
|
-
|
|
105053
|
-
|
|
105054
|
-
|
|
105055
|
-
|
|
105056
|
-
|
|
104980
|
+
bcrypt2.genSaltSync = function(rounds, seed_length) {
|
|
104981
|
+
rounds = rounds || GENSALT_DEFAULT_LOG2_ROUNDS;
|
|
104982
|
+
if (typeof rounds !== "number")
|
|
104983
|
+
throw Error("Illegal arguments: " + typeof rounds + ", " + typeof seed_length);
|
|
104984
|
+
if (rounds < 4)
|
|
104985
|
+
rounds = 4;
|
|
104986
|
+
else if (rounds > 31)
|
|
104987
|
+
rounds = 31;
|
|
104988
|
+
var salt = [];
|
|
104989
|
+
salt.push("$2a$");
|
|
104990
|
+
if (rounds < 10)
|
|
104991
|
+
salt.push("0");
|
|
104992
|
+
salt.push(rounds.toString());
|
|
104993
|
+
salt.push("$");
|
|
104994
|
+
salt.push(base64_encode(random(BCRYPT_SALT_LEN), BCRYPT_SALT_LEN));
|
|
104995
|
+
return salt.join("");
|
|
104996
|
+
};
|
|
104997
|
+
bcrypt2.genSalt = function(rounds, seed_length, callback) {
|
|
104998
|
+
if (typeof seed_length === "function")
|
|
104999
|
+
callback = seed_length, seed_length = void 0;
|
|
105000
|
+
if (typeof rounds === "function")
|
|
105001
|
+
callback = rounds, rounds = void 0;
|
|
105002
|
+
if (typeof rounds === "undefined")
|
|
105003
|
+
rounds = GENSALT_DEFAULT_LOG2_ROUNDS;
|
|
105004
|
+
else if (typeof rounds !== "number")
|
|
105005
|
+
throw Error("illegal arguments: " + typeof rounds);
|
|
105006
|
+
function _async(callback2) {
|
|
105007
|
+
nextTick(function() {
|
|
105008
|
+
try {
|
|
105009
|
+
callback2(null, bcrypt2.genSaltSync(rounds));
|
|
105010
|
+
} catch (err) {
|
|
105011
|
+
callback2(err);
|
|
105012
|
+
}
|
|
105013
|
+
});
|
|
105057
105014
|
}
|
|
105058
|
-
|
|
105059
|
-
|
|
105060
|
-
|
|
105061
|
-
|
|
105062
|
-
|
|
105063
|
-
|
|
105064
|
-
|
|
105065
|
-
|
|
105066
|
-
|
|
105067
|
-
|
|
105068
|
-
|
|
105069
|
-
|
|
105070
|
-
|
|
105015
|
+
if (callback) {
|
|
105016
|
+
if (typeof callback !== "function")
|
|
105017
|
+
throw Error("Illegal callback: " + typeof callback);
|
|
105018
|
+
_async(callback);
|
|
105019
|
+
} else
|
|
105020
|
+
return new Promise(function(resolve, reject) {
|
|
105021
|
+
_async(function(err, res) {
|
|
105022
|
+
if (err) {
|
|
105023
|
+
reject(err);
|
|
105024
|
+
return;
|
|
105025
|
+
}
|
|
105026
|
+
resolve(res);
|
|
105027
|
+
});
|
|
105028
|
+
});
|
|
105071
105029
|
};
|
|
105072
|
-
|
|
105073
|
-
|
|
105074
|
-
|
|
105075
|
-
|
|
105076
|
-
|
|
105077
|
-
|
|
105078
|
-
|
|
105079
|
-
|
|
105080
|
-
|
|
105081
|
-
|
|
105082
|
-
|
|
105083
|
-
|
|
105084
|
-
|
|
105085
|
-
|
|
105030
|
+
bcrypt2.hashSync = function(s, salt) {
|
|
105031
|
+
if (typeof salt === "undefined")
|
|
105032
|
+
salt = GENSALT_DEFAULT_LOG2_ROUNDS;
|
|
105033
|
+
if (typeof salt === "number")
|
|
105034
|
+
salt = bcrypt2.genSaltSync(salt);
|
|
105035
|
+
if (typeof s !== "string" || typeof salt !== "string")
|
|
105036
|
+
throw Error("Illegal arguments: " + typeof s + ", " + typeof salt);
|
|
105037
|
+
return _hash(s, salt);
|
|
105038
|
+
};
|
|
105039
|
+
bcrypt2.hash = function(s, salt, callback, progressCallback) {
|
|
105040
|
+
function _async(callback2) {
|
|
105041
|
+
if (typeof s === "string" && typeof salt === "number")
|
|
105042
|
+
bcrypt2.genSalt(salt, function(err, salt2) {
|
|
105043
|
+
_hash(s, salt2, callback2, progressCallback);
|
|
105044
|
+
});
|
|
105045
|
+
else if (typeof s === "string" && typeof salt === "string")
|
|
105046
|
+
_hash(s, salt, callback2, progressCallback);
|
|
105047
|
+
else
|
|
105048
|
+
nextTick(callback2.bind(this, Error("Illegal arguments: " + typeof s + ", " + typeof salt)));
|
|
105086
105049
|
}
|
|
105050
|
+
if (callback) {
|
|
105051
|
+
if (typeof callback !== "function")
|
|
105052
|
+
throw Error("Illegal callback: " + typeof callback);
|
|
105053
|
+
_async(callback);
|
|
105054
|
+
} else
|
|
105055
|
+
return new Promise(function(resolve, reject) {
|
|
105056
|
+
_async(function(err, res) {
|
|
105057
|
+
if (err) {
|
|
105058
|
+
reject(err);
|
|
105059
|
+
return;
|
|
105060
|
+
}
|
|
105061
|
+
resolve(res);
|
|
105062
|
+
});
|
|
105063
|
+
});
|
|
105087
105064
|
};
|
|
105088
|
-
|
|
105089
|
-
|
|
105090
|
-
|
|
105091
|
-
|
|
105092
|
-
|
|
105093
|
-
|
|
105094
|
-
|
|
105095
|
-
|
|
105096
|
-
|
|
105097
|
-
|
|
105098
|
-
|
|
105099
|
-
}
|
|
105100
|
-
load.parseTags = parseTags;
|
|
105101
|
-
load.matchTags = matchTags;
|
|
105102
|
-
load.compareTags = compareTags;
|
|
105103
|
-
load.parseTuple = parseTuple;
|
|
105104
|
-
load.matchTuple = matchTuple;
|
|
105105
|
-
load.compareTuples = compareTuples;
|
|
105106
|
-
}
|
|
105107
|
-
});
|
|
105108
|
-
|
|
105109
|
-
// node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/index.js
|
|
105110
|
-
var require_node_gyp_build2 = __commonJS({
|
|
105111
|
-
"node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/index.js"(exports2, module2) {
|
|
105112
|
-
var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
|
|
105113
|
-
if (typeof runtimeRequire.addon === "function") {
|
|
105114
|
-
module2.exports = runtimeRequire.addon.bind(runtimeRequire);
|
|
105115
|
-
} else {
|
|
105116
|
-
module2.exports = require_node_gyp_build();
|
|
105117
|
-
}
|
|
105118
|
-
}
|
|
105119
|
-
});
|
|
105120
|
-
|
|
105121
|
-
// node_modules/.pnpm/bcrypt@6.0.0/node_modules/bcrypt/promises.js
|
|
105122
|
-
var require_promises = __commonJS({
|
|
105123
|
-
"node_modules/.pnpm/bcrypt@6.0.0/node_modules/bcrypt/promises.js"(exports2, module2) {
|
|
105124
|
-
var Promise2 = global.Promise;
|
|
105125
|
-
function promise(fn, context, args) {
|
|
105126
|
-
if (!Array.isArray(args)) {
|
|
105127
|
-
args = Array.prototype.slice.call(args);
|
|
105128
|
-
}
|
|
105129
|
-
if (typeof fn !== "function") {
|
|
105130
|
-
return Promise2.reject(new Error("fn must be a function"));
|
|
105065
|
+
function safeStringCompare(known, unknown) {
|
|
105066
|
+
var right = 0, wrong = 0;
|
|
105067
|
+
for (var i = 0, k = known.length; i < k; ++i) {
|
|
105068
|
+
if (known.charCodeAt(i) === unknown.charCodeAt(i))
|
|
105069
|
+
++right;
|
|
105070
|
+
else
|
|
105071
|
+
++wrong;
|
|
105072
|
+
}
|
|
105073
|
+
if (right < 0)
|
|
105074
|
+
return false;
|
|
105075
|
+
return wrong === 0;
|
|
105131
105076
|
}
|
|
105132
|
-
|
|
105133
|
-
|
|
105134
|
-
|
|
105135
|
-
|
|
105136
|
-
|
|
105137
|
-
|
|
105077
|
+
bcrypt2.compareSync = function(s, hash2) {
|
|
105078
|
+
if (typeof s !== "string" || typeof hash2 !== "string")
|
|
105079
|
+
throw Error("Illegal arguments: " + typeof s + ", " + typeof hash2);
|
|
105080
|
+
if (hash2.length !== 60)
|
|
105081
|
+
return false;
|
|
105082
|
+
return safeStringCompare(bcrypt2.hashSync(s, hash2.substr(0, hash2.length - 31)), hash2);
|
|
105083
|
+
};
|
|
105084
|
+
bcrypt2.compare = function(s, hash2, callback, progressCallback) {
|
|
105085
|
+
function _async(callback2) {
|
|
105086
|
+
if (typeof s !== "string" || typeof hash2 !== "string") {
|
|
105087
|
+
nextTick(callback2.bind(this, Error("Illegal arguments: " + typeof s + ", " + typeof hash2)));
|
|
105088
|
+
return;
|
|
105138
105089
|
}
|
|
105139
|
-
|
|
105140
|
-
|
|
105141
|
-
|
|
105142
|
-
|
|
105143
|
-
|
|
105144
|
-
|
|
105145
|
-
|
|
105146
|
-
|
|
105147
|
-
|
|
105148
|
-
|
|
105149
|
-
module2.exports = {
|
|
105150
|
-
promise,
|
|
105151
|
-
reject,
|
|
105152
|
-
use
|
|
105153
|
-
};
|
|
105154
|
-
}
|
|
105155
|
-
});
|
|
105156
|
-
|
|
105157
|
-
// node_modules/.pnpm/bcrypt@6.0.0/node_modules/bcrypt/bcrypt.js
|
|
105158
|
-
var require_bcrypt = __commonJS({
|
|
105159
|
-
"node_modules/.pnpm/bcrypt@6.0.0/node_modules/bcrypt/bcrypt.js"(exports2, module2) {
|
|
105160
|
-
var path5 = __require("path");
|
|
105161
|
-
var bindings = require_node_gyp_build2()(path5.resolve(__dirname));
|
|
105162
|
-
var crypto3 = __require("crypto");
|
|
105163
|
-
var promises = require_promises();
|
|
105164
|
-
function genSaltSync(rounds, minor) {
|
|
105165
|
-
if (!rounds) {
|
|
105166
|
-
rounds = 10;
|
|
105167
|
-
} else if (typeof rounds !== "number") {
|
|
105168
|
-
throw new Error("rounds must be a number");
|
|
105169
|
-
}
|
|
105170
|
-
if (!minor) {
|
|
105171
|
-
minor = "b";
|
|
105172
|
-
} else if (minor !== "b" && minor !== "a") {
|
|
105173
|
-
throw new Error('minor must be either "a" or "b"');
|
|
105174
|
-
}
|
|
105175
|
-
return bindings.gen_salt_sync(minor, rounds, crypto3.randomBytes(16));
|
|
105176
|
-
}
|
|
105177
|
-
function genSalt(rounds, minor, cb) {
|
|
105178
|
-
let error;
|
|
105179
|
-
if (typeof arguments[0] === "function") {
|
|
105180
|
-
cb = arguments[0];
|
|
105181
|
-
rounds = 10;
|
|
105182
|
-
minor = "b";
|
|
105183
|
-
} else if (typeof arguments[1] === "function") {
|
|
105184
|
-
cb = arguments[1];
|
|
105185
|
-
minor = "b";
|
|
105186
|
-
}
|
|
105187
|
-
if (!cb) {
|
|
105188
|
-
return promises.promise(genSalt, this, [rounds, minor]);
|
|
105189
|
-
}
|
|
105190
|
-
if (!rounds) {
|
|
105191
|
-
rounds = 10;
|
|
105192
|
-
} else if (typeof rounds !== "number") {
|
|
105193
|
-
error = new Error("rounds must be a number");
|
|
105194
|
-
return process.nextTick(function() {
|
|
105195
|
-
cb(error);
|
|
105196
|
-
});
|
|
105197
|
-
}
|
|
105198
|
-
if (!minor) {
|
|
105199
|
-
minor = "b";
|
|
105200
|
-
} else if (minor !== "b" && minor !== "a") {
|
|
105201
|
-
error = new Error('minor must be either "a" or "b"');
|
|
105202
|
-
return process.nextTick(function() {
|
|
105203
|
-
cb(error);
|
|
105204
|
-
});
|
|
105205
|
-
}
|
|
105206
|
-
crypto3.randomBytes(16, function(error2, randomBytes2) {
|
|
105207
|
-
if (error2) {
|
|
105208
|
-
cb(error2);
|
|
105209
|
-
return;
|
|
105090
|
+
if (hash2.length !== 60) {
|
|
105091
|
+
nextTick(callback2.bind(this, null, false));
|
|
105092
|
+
return;
|
|
105093
|
+
}
|
|
105094
|
+
bcrypt2.hash(s, hash2.substr(0, 29), function(err, comp) {
|
|
105095
|
+
if (err)
|
|
105096
|
+
callback2(err);
|
|
105097
|
+
else
|
|
105098
|
+
callback2(null, safeStringCompare(comp, hash2));
|
|
105099
|
+
}, progressCallback);
|
|
105210
105100
|
}
|
|
105211
|
-
|
|
105212
|
-
|
|
105213
|
-
|
|
105214
|
-
|
|
105215
|
-
|
|
105216
|
-
|
|
105217
|
-
|
|
105218
|
-
|
|
105219
|
-
|
|
105220
|
-
|
|
105221
|
-
|
|
105222
|
-
|
|
105223
|
-
|
|
105224
|
-
|
|
105225
|
-
|
|
105226
|
-
|
|
105227
|
-
|
|
105228
|
-
|
|
105229
|
-
|
|
105230
|
-
|
|
105231
|
-
|
|
105232
|
-
|
|
105233
|
-
|
|
105234
|
-
|
|
105235
|
-
|
|
105236
|
-
return
|
|
105237
|
-
|
|
105238
|
-
|
|
105239
|
-
|
|
105240
|
-
|
|
105241
|
-
|
|
105242
|
-
|
|
105243
|
-
|
|
105244
|
-
|
|
105245
|
-
|
|
105246
|
-
if (data == null || salt == null) {
|
|
105247
|
-
error = new Error("data and salt arguments required");
|
|
105248
|
-
return process.nextTick(function() {
|
|
105249
|
-
cb(error);
|
|
105250
|
-
});
|
|
105251
|
-
}
|
|
105252
|
-
if (!(typeof data === "string" || data instanceof Buffer) || typeof salt !== "string" && typeof salt !== "number") {
|
|
105253
|
-
error = new Error("data must be a string or Buffer and salt must either be a salt string or a number of rounds");
|
|
105254
|
-
return process.nextTick(function() {
|
|
105255
|
-
cb(error);
|
|
105256
|
-
});
|
|
105257
|
-
}
|
|
105258
|
-
if (typeof salt === "number") {
|
|
105259
|
-
return module2.exports.genSalt(salt, function(err, salt2) {
|
|
105260
|
-
return bindings.encrypt(data, salt2, cb);
|
|
105261
|
-
});
|
|
105262
|
-
}
|
|
105263
|
-
return bindings.encrypt(data, salt, cb);
|
|
105264
|
-
}
|
|
105265
|
-
function compareSync(data, hash3) {
|
|
105266
|
-
if (data == null || hash3 == null) {
|
|
105267
|
-
throw new Error("data and hash arguments required");
|
|
105268
|
-
}
|
|
105269
|
-
if (!(typeof data === "string" || data instanceof Buffer) || typeof hash3 !== "string") {
|
|
105270
|
-
throw new Error("data must be a string or Buffer and hash must be a string");
|
|
105271
|
-
}
|
|
105272
|
-
return bindings.compare_sync(data, hash3);
|
|
105273
|
-
}
|
|
105274
|
-
function compare2(data, hash3, cb) {
|
|
105275
|
-
let error;
|
|
105276
|
-
if (typeof data === "function") {
|
|
105277
|
-
error = new Error("data and hash arguments required");
|
|
105278
|
-
return process.nextTick(function() {
|
|
105279
|
-
data(error);
|
|
105280
|
-
});
|
|
105281
|
-
}
|
|
105282
|
-
if (typeof hash3 === "function") {
|
|
105283
|
-
error = new Error("data and hash arguments required");
|
|
105284
|
-
return process.nextTick(function() {
|
|
105285
|
-
hash3(error);
|
|
105286
|
-
});
|
|
105287
|
-
}
|
|
105288
|
-
if (cb && typeof cb !== "function") {
|
|
105289
|
-
return promises.reject(new Error("cb must be a function or null to return a Promise"));
|
|
105290
|
-
}
|
|
105291
|
-
if (!cb) {
|
|
105292
|
-
return promises.promise(compare2, this, [data, hash3]);
|
|
105293
|
-
}
|
|
105294
|
-
if (data == null || hash3 == null) {
|
|
105295
|
-
error = new Error("data and hash arguments required");
|
|
105296
|
-
return process.nextTick(function() {
|
|
105297
|
-
cb(error);
|
|
105298
|
-
});
|
|
105299
|
-
}
|
|
105300
|
-
if (!(typeof data === "string" || data instanceof Buffer) || typeof hash3 !== "string") {
|
|
105301
|
-
error = new Error("data and hash must be strings");
|
|
105302
|
-
return process.nextTick(function() {
|
|
105303
|
-
cb(error);
|
|
105101
|
+
if (callback) {
|
|
105102
|
+
if (typeof callback !== "function")
|
|
105103
|
+
throw Error("Illegal callback: " + typeof callback);
|
|
105104
|
+
_async(callback);
|
|
105105
|
+
} else
|
|
105106
|
+
return new Promise(function(resolve, reject) {
|
|
105107
|
+
_async(function(err, res) {
|
|
105108
|
+
if (err) {
|
|
105109
|
+
reject(err);
|
|
105110
|
+
return;
|
|
105111
|
+
}
|
|
105112
|
+
resolve(res);
|
|
105113
|
+
});
|
|
105114
|
+
});
|
|
105115
|
+
};
|
|
105116
|
+
bcrypt2.getRounds = function(hash2) {
|
|
105117
|
+
if (typeof hash2 !== "string")
|
|
105118
|
+
throw Error("Illegal arguments: " + typeof hash2);
|
|
105119
|
+
return parseInt(hash2.split("$")[2], 10);
|
|
105120
|
+
};
|
|
105121
|
+
bcrypt2.getSalt = function(hash2) {
|
|
105122
|
+
if (typeof hash2 !== "string")
|
|
105123
|
+
throw Error("Illegal arguments: " + typeof hash2);
|
|
105124
|
+
if (hash2.length !== 60)
|
|
105125
|
+
throw Error("Illegal hash length: " + hash2.length + " != 60");
|
|
105126
|
+
return hash2.substring(0, 29);
|
|
105127
|
+
};
|
|
105128
|
+
var nextTick = typeof process !== "undefined" && process && typeof process.nextTick === "function" ? typeof setImmediate === "function" ? setImmediate : process.nextTick : setTimeout;
|
|
105129
|
+
function stringToBytes(str) {
|
|
105130
|
+
var out = [], i = 0;
|
|
105131
|
+
utfx.encodeUTF16toUTF8(function() {
|
|
105132
|
+
if (i >= str.length) return null;
|
|
105133
|
+
return str.charCodeAt(i++);
|
|
105134
|
+
}, function(b) {
|
|
105135
|
+
out.push(b);
|
|
105304
105136
|
});
|
|
105137
|
+
return out;
|
|
105138
|
+
}
|
|
105139
|
+
var BASE64_CODE = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split("");
|
|
105140
|
+
var BASE64_INDEX = [
|
|
105141
|
+
-1,
|
|
105142
|
+
-1,
|
|
105143
|
+
-1,
|
|
105144
|
+
-1,
|
|
105145
|
+
-1,
|
|
105146
|
+
-1,
|
|
105147
|
+
-1,
|
|
105148
|
+
-1,
|
|
105149
|
+
-1,
|
|
105150
|
+
-1,
|
|
105151
|
+
-1,
|
|
105152
|
+
-1,
|
|
105153
|
+
-1,
|
|
105154
|
+
-1,
|
|
105155
|
+
-1,
|
|
105156
|
+
-1,
|
|
105157
|
+
-1,
|
|
105158
|
+
-1,
|
|
105159
|
+
-1,
|
|
105160
|
+
-1,
|
|
105161
|
+
-1,
|
|
105162
|
+
-1,
|
|
105163
|
+
-1,
|
|
105164
|
+
-1,
|
|
105165
|
+
-1,
|
|
105166
|
+
-1,
|
|
105167
|
+
-1,
|
|
105168
|
+
-1,
|
|
105169
|
+
-1,
|
|
105170
|
+
-1,
|
|
105171
|
+
-1,
|
|
105172
|
+
-1,
|
|
105173
|
+
-1,
|
|
105174
|
+
-1,
|
|
105175
|
+
-1,
|
|
105176
|
+
-1,
|
|
105177
|
+
-1,
|
|
105178
|
+
-1,
|
|
105179
|
+
-1,
|
|
105180
|
+
-1,
|
|
105181
|
+
-1,
|
|
105182
|
+
-1,
|
|
105183
|
+
-1,
|
|
105184
|
+
-1,
|
|
105185
|
+
-1,
|
|
105186
|
+
-1,
|
|
105187
|
+
0,
|
|
105188
|
+
1,
|
|
105189
|
+
54,
|
|
105190
|
+
55,
|
|
105191
|
+
56,
|
|
105192
|
+
57,
|
|
105193
|
+
58,
|
|
105194
|
+
59,
|
|
105195
|
+
60,
|
|
105196
|
+
61,
|
|
105197
|
+
62,
|
|
105198
|
+
63,
|
|
105199
|
+
-1,
|
|
105200
|
+
-1,
|
|
105201
|
+
-1,
|
|
105202
|
+
-1,
|
|
105203
|
+
-1,
|
|
105204
|
+
-1,
|
|
105205
|
+
-1,
|
|
105206
|
+
2,
|
|
105207
|
+
3,
|
|
105208
|
+
4,
|
|
105209
|
+
5,
|
|
105210
|
+
6,
|
|
105211
|
+
7,
|
|
105212
|
+
8,
|
|
105213
|
+
9,
|
|
105214
|
+
10,
|
|
105215
|
+
11,
|
|
105216
|
+
12,
|
|
105217
|
+
13,
|
|
105218
|
+
14,
|
|
105219
|
+
15,
|
|
105220
|
+
16,
|
|
105221
|
+
17,
|
|
105222
|
+
18,
|
|
105223
|
+
19,
|
|
105224
|
+
20,
|
|
105225
|
+
21,
|
|
105226
|
+
22,
|
|
105227
|
+
23,
|
|
105228
|
+
24,
|
|
105229
|
+
25,
|
|
105230
|
+
26,
|
|
105231
|
+
27,
|
|
105232
|
+
-1,
|
|
105233
|
+
-1,
|
|
105234
|
+
-1,
|
|
105235
|
+
-1,
|
|
105236
|
+
-1,
|
|
105237
|
+
-1,
|
|
105238
|
+
28,
|
|
105239
|
+
29,
|
|
105240
|
+
30,
|
|
105241
|
+
31,
|
|
105242
|
+
32,
|
|
105243
|
+
33,
|
|
105244
|
+
34,
|
|
105245
|
+
35,
|
|
105246
|
+
36,
|
|
105247
|
+
37,
|
|
105248
|
+
38,
|
|
105249
|
+
39,
|
|
105250
|
+
40,
|
|
105251
|
+
41,
|
|
105252
|
+
42,
|
|
105253
|
+
43,
|
|
105254
|
+
44,
|
|
105255
|
+
45,
|
|
105256
|
+
46,
|
|
105257
|
+
47,
|
|
105258
|
+
48,
|
|
105259
|
+
49,
|
|
105260
|
+
50,
|
|
105261
|
+
51,
|
|
105262
|
+
52,
|
|
105263
|
+
53,
|
|
105264
|
+
-1,
|
|
105265
|
+
-1,
|
|
105266
|
+
-1,
|
|
105267
|
+
-1,
|
|
105268
|
+
-1
|
|
105269
|
+
];
|
|
105270
|
+
var stringFromCharCode = String.fromCharCode;
|
|
105271
|
+
function base64_encode(b, len) {
|
|
105272
|
+
var off = 0, rs = [], c1, c2;
|
|
105273
|
+
if (len <= 0 || len > b.length)
|
|
105274
|
+
throw Error("Illegal len: " + len);
|
|
105275
|
+
while (off < len) {
|
|
105276
|
+
c1 = b[off++] & 255;
|
|
105277
|
+
rs.push(BASE64_CODE[c1 >> 2 & 63]);
|
|
105278
|
+
c1 = (c1 & 3) << 4;
|
|
105279
|
+
if (off >= len) {
|
|
105280
|
+
rs.push(BASE64_CODE[c1 & 63]);
|
|
105281
|
+
break;
|
|
105282
|
+
}
|
|
105283
|
+
c2 = b[off++] & 255;
|
|
105284
|
+
c1 |= c2 >> 4 & 15;
|
|
105285
|
+
rs.push(BASE64_CODE[c1 & 63]);
|
|
105286
|
+
c1 = (c2 & 15) << 2;
|
|
105287
|
+
if (off >= len) {
|
|
105288
|
+
rs.push(BASE64_CODE[c1 & 63]);
|
|
105289
|
+
break;
|
|
105290
|
+
}
|
|
105291
|
+
c2 = b[off++] & 255;
|
|
105292
|
+
c1 |= c2 >> 6 & 3;
|
|
105293
|
+
rs.push(BASE64_CODE[c1 & 63]);
|
|
105294
|
+
rs.push(BASE64_CODE[c2 & 63]);
|
|
105295
|
+
}
|
|
105296
|
+
return rs.join("");
|
|
105297
|
+
}
|
|
105298
|
+
function base64_decode(s, len) {
|
|
105299
|
+
var off = 0, slen = s.length, olen = 0, rs = [], c1, c2, c3, c4, o, code;
|
|
105300
|
+
if (len <= 0)
|
|
105301
|
+
throw Error("Illegal len: " + len);
|
|
105302
|
+
while (off < slen - 1 && olen < len) {
|
|
105303
|
+
code = s.charCodeAt(off++);
|
|
105304
|
+
c1 = code < BASE64_INDEX.length ? BASE64_INDEX[code] : -1;
|
|
105305
|
+
code = s.charCodeAt(off++);
|
|
105306
|
+
c2 = code < BASE64_INDEX.length ? BASE64_INDEX[code] : -1;
|
|
105307
|
+
if (c1 == -1 || c2 == -1)
|
|
105308
|
+
break;
|
|
105309
|
+
o = c1 << 2 >>> 0;
|
|
105310
|
+
o |= (c2 & 48) >> 4;
|
|
105311
|
+
rs.push(stringFromCharCode(o));
|
|
105312
|
+
if (++olen >= len || off >= slen)
|
|
105313
|
+
break;
|
|
105314
|
+
code = s.charCodeAt(off++);
|
|
105315
|
+
c3 = code < BASE64_INDEX.length ? BASE64_INDEX[code] : -1;
|
|
105316
|
+
if (c3 == -1)
|
|
105317
|
+
break;
|
|
105318
|
+
o = (c2 & 15) << 4 >>> 0;
|
|
105319
|
+
o |= (c3 & 60) >> 2;
|
|
105320
|
+
rs.push(stringFromCharCode(o));
|
|
105321
|
+
if (++olen >= len || off >= slen)
|
|
105322
|
+
break;
|
|
105323
|
+
code = s.charCodeAt(off++);
|
|
105324
|
+
c4 = code < BASE64_INDEX.length ? BASE64_INDEX[code] : -1;
|
|
105325
|
+
o = (c3 & 3) << 6 >>> 0;
|
|
105326
|
+
o |= c4;
|
|
105327
|
+
rs.push(stringFromCharCode(o));
|
|
105328
|
+
++olen;
|
|
105329
|
+
}
|
|
105330
|
+
var res = [];
|
|
105331
|
+
for (off = 0; off < olen; off++)
|
|
105332
|
+
res.push(rs[off].charCodeAt(0));
|
|
105333
|
+
return res;
|
|
105305
105334
|
}
|
|
105306
|
-
|
|
105307
|
-
|
|
105308
|
-
|
|
105309
|
-
|
|
105310
|
-
|
|
105335
|
+
var utfx = (function() {
|
|
105336
|
+
"use strict";
|
|
105337
|
+
var utfx2 = {};
|
|
105338
|
+
utfx2.MAX_CODEPOINT = 1114111;
|
|
105339
|
+
utfx2.encodeUTF8 = function(src, dst) {
|
|
105340
|
+
var cp = null;
|
|
105341
|
+
if (typeof src === "number")
|
|
105342
|
+
cp = src, src = function() {
|
|
105343
|
+
return null;
|
|
105344
|
+
};
|
|
105345
|
+
while (cp !== null || (cp = src()) !== null) {
|
|
105346
|
+
if (cp < 128)
|
|
105347
|
+
dst(cp & 127);
|
|
105348
|
+
else if (cp < 2048)
|
|
105349
|
+
dst(cp >> 6 & 31 | 192), dst(cp & 63 | 128);
|
|
105350
|
+
else if (cp < 65536)
|
|
105351
|
+
dst(cp >> 12 & 15 | 224), dst(cp >> 6 & 63 | 128), dst(cp & 63 | 128);
|
|
105352
|
+
else
|
|
105353
|
+
dst(cp >> 18 & 7 | 240), dst(cp >> 12 & 63 | 128), dst(cp >> 6 & 63 | 128), dst(cp & 63 | 128);
|
|
105354
|
+
cp = null;
|
|
105355
|
+
}
|
|
105356
|
+
};
|
|
105357
|
+
utfx2.decodeUTF8 = function(src, dst) {
|
|
105358
|
+
var a, b, c, d, fail = function(b2) {
|
|
105359
|
+
b2 = b2.slice(0, b2.indexOf(null));
|
|
105360
|
+
var err = Error(b2.toString());
|
|
105361
|
+
err.name = "TruncatedError";
|
|
105362
|
+
err["bytes"] = b2;
|
|
105363
|
+
throw err;
|
|
105364
|
+
};
|
|
105365
|
+
while ((a = src()) !== null) {
|
|
105366
|
+
if ((a & 128) === 0)
|
|
105367
|
+
dst(a);
|
|
105368
|
+
else if ((a & 224) === 192)
|
|
105369
|
+
(b = src()) === null && fail([a, b]), dst((a & 31) << 6 | b & 63);
|
|
105370
|
+
else if ((a & 240) === 224)
|
|
105371
|
+
((b = src()) === null || (c = src()) === null) && fail([a, b, c]), dst((a & 15) << 12 | (b & 63) << 6 | c & 63);
|
|
105372
|
+
else if ((a & 248) === 240)
|
|
105373
|
+
((b = src()) === null || (c = src()) === null || (d = src()) === null) && fail([a, b, c, d]), dst((a & 7) << 18 | (b & 63) << 12 | (c & 63) << 6 | d & 63);
|
|
105374
|
+
else throw RangeError("Illegal starting byte: " + a);
|
|
105375
|
+
}
|
|
105376
|
+
};
|
|
105377
|
+
utfx2.UTF16toUTF8 = function(src, dst) {
|
|
105378
|
+
var c1, c2 = null;
|
|
105379
|
+
while (true) {
|
|
105380
|
+
if ((c1 = c2 !== null ? c2 : src()) === null)
|
|
105381
|
+
break;
|
|
105382
|
+
if (c1 >= 55296 && c1 <= 57343) {
|
|
105383
|
+
if ((c2 = src()) !== null) {
|
|
105384
|
+
if (c2 >= 56320 && c2 <= 57343) {
|
|
105385
|
+
dst((c1 - 55296) * 1024 + c2 - 56320 + 65536);
|
|
105386
|
+
c2 = null;
|
|
105387
|
+
continue;
|
|
105388
|
+
}
|
|
105389
|
+
}
|
|
105390
|
+
}
|
|
105391
|
+
dst(c1);
|
|
105392
|
+
}
|
|
105393
|
+
if (c2 !== null) dst(c2);
|
|
105394
|
+
};
|
|
105395
|
+
utfx2.UTF8toUTF16 = function(src, dst) {
|
|
105396
|
+
var cp = null;
|
|
105397
|
+
if (typeof src === "number")
|
|
105398
|
+
cp = src, src = function() {
|
|
105399
|
+
return null;
|
|
105400
|
+
};
|
|
105401
|
+
while (cp !== null || (cp = src()) !== null) {
|
|
105402
|
+
if (cp <= 65535)
|
|
105403
|
+
dst(cp);
|
|
105404
|
+
else
|
|
105405
|
+
cp -= 65536, dst((cp >> 10) + 55296), dst(cp % 1024 + 56320);
|
|
105406
|
+
cp = null;
|
|
105407
|
+
}
|
|
105408
|
+
};
|
|
105409
|
+
utfx2.encodeUTF16toUTF8 = function(src, dst) {
|
|
105410
|
+
utfx2.UTF16toUTF8(src, function(cp) {
|
|
105411
|
+
utfx2.encodeUTF8(cp, dst);
|
|
105412
|
+
});
|
|
105413
|
+
};
|
|
105414
|
+
utfx2.decodeUTF8toUTF16 = function(src, dst) {
|
|
105415
|
+
utfx2.decodeUTF8(src, function(cp) {
|
|
105416
|
+
utfx2.UTF8toUTF16(cp, dst);
|
|
105417
|
+
});
|
|
105418
|
+
};
|
|
105419
|
+
utfx2.calculateCodePoint = function(cp) {
|
|
105420
|
+
return cp < 128 ? 1 : cp < 2048 ? 2 : cp < 65536 ? 3 : 4;
|
|
105421
|
+
};
|
|
105422
|
+
utfx2.calculateUTF8 = function(src) {
|
|
105423
|
+
var cp, l = 0;
|
|
105424
|
+
while ((cp = src()) !== null)
|
|
105425
|
+
l += utfx2.calculateCodePoint(cp);
|
|
105426
|
+
return l;
|
|
105427
|
+
};
|
|
105428
|
+
utfx2.calculateUTF16asUTF8 = function(src) {
|
|
105429
|
+
var n = 0, l = 0;
|
|
105430
|
+
utfx2.UTF16toUTF8(src, function(cp) {
|
|
105431
|
+
++n;
|
|
105432
|
+
l += utfx2.calculateCodePoint(cp);
|
|
105433
|
+
});
|
|
105434
|
+
return [n, l];
|
|
105435
|
+
};
|
|
105436
|
+
return utfx2;
|
|
105437
|
+
})();
|
|
105438
|
+
Date.now = Date.now || function() {
|
|
105439
|
+
return +/* @__PURE__ */ new Date();
|
|
105440
|
+
};
|
|
105441
|
+
var BCRYPT_SALT_LEN = 16;
|
|
105442
|
+
var GENSALT_DEFAULT_LOG2_ROUNDS = 10;
|
|
105443
|
+
var BLOWFISH_NUM_ROUNDS = 16;
|
|
105444
|
+
var MAX_EXECUTION_TIME = 100;
|
|
105445
|
+
var P_ORIG = [
|
|
105446
|
+
608135816,
|
|
105447
|
+
2242054355,
|
|
105448
|
+
320440878,
|
|
105449
|
+
57701188,
|
|
105450
|
+
2752067618,
|
|
105451
|
+
698298832,
|
|
105452
|
+
137296536,
|
|
105453
|
+
3964562569,
|
|
105454
|
+
1160258022,
|
|
105455
|
+
953160567,
|
|
105456
|
+
3193202383,
|
|
105457
|
+
887688300,
|
|
105458
|
+
3232508343,
|
|
105459
|
+
3380367581,
|
|
105460
|
+
1065670069,
|
|
105461
|
+
3041331479,
|
|
105462
|
+
2450970073,
|
|
105463
|
+
2306472731
|
|
105464
|
+
];
|
|
105465
|
+
var S_ORIG = [
|
|
105466
|
+
3509652390,
|
|
105467
|
+
2564797868,
|
|
105468
|
+
805139163,
|
|
105469
|
+
3491422135,
|
|
105470
|
+
3101798381,
|
|
105471
|
+
1780907670,
|
|
105472
|
+
3128725573,
|
|
105473
|
+
4046225305,
|
|
105474
|
+
614570311,
|
|
105475
|
+
3012652279,
|
|
105476
|
+
134345442,
|
|
105477
|
+
2240740374,
|
|
105478
|
+
1667834072,
|
|
105479
|
+
1901547113,
|
|
105480
|
+
2757295779,
|
|
105481
|
+
4103290238,
|
|
105482
|
+
227898511,
|
|
105483
|
+
1921955416,
|
|
105484
|
+
1904987480,
|
|
105485
|
+
2182433518,
|
|
105486
|
+
2069144605,
|
|
105487
|
+
3260701109,
|
|
105488
|
+
2620446009,
|
|
105489
|
+
720527379,
|
|
105490
|
+
3318853667,
|
|
105491
|
+
677414384,
|
|
105492
|
+
3393288472,
|
|
105493
|
+
3101374703,
|
|
105494
|
+
2390351024,
|
|
105495
|
+
1614419982,
|
|
105496
|
+
1822297739,
|
|
105497
|
+
2954791486,
|
|
105498
|
+
3608508353,
|
|
105499
|
+
3174124327,
|
|
105500
|
+
2024746970,
|
|
105501
|
+
1432378464,
|
|
105502
|
+
3864339955,
|
|
105503
|
+
2857741204,
|
|
105504
|
+
1464375394,
|
|
105505
|
+
1676153920,
|
|
105506
|
+
1439316330,
|
|
105507
|
+
715854006,
|
|
105508
|
+
3033291828,
|
|
105509
|
+
289532110,
|
|
105510
|
+
2706671279,
|
|
105511
|
+
2087905683,
|
|
105512
|
+
3018724369,
|
|
105513
|
+
1668267050,
|
|
105514
|
+
732546397,
|
|
105515
|
+
1947742710,
|
|
105516
|
+
3462151702,
|
|
105517
|
+
2609353502,
|
|
105518
|
+
2950085171,
|
|
105519
|
+
1814351708,
|
|
105520
|
+
2050118529,
|
|
105521
|
+
680887927,
|
|
105522
|
+
999245976,
|
|
105523
|
+
1800124847,
|
|
105524
|
+
3300911131,
|
|
105525
|
+
1713906067,
|
|
105526
|
+
1641548236,
|
|
105527
|
+
4213287313,
|
|
105528
|
+
1216130144,
|
|
105529
|
+
1575780402,
|
|
105530
|
+
4018429277,
|
|
105531
|
+
3917837745,
|
|
105532
|
+
3693486850,
|
|
105533
|
+
3949271944,
|
|
105534
|
+
596196993,
|
|
105535
|
+
3549867205,
|
|
105536
|
+
258830323,
|
|
105537
|
+
2213823033,
|
|
105538
|
+
772490370,
|
|
105539
|
+
2760122372,
|
|
105540
|
+
1774776394,
|
|
105541
|
+
2652871518,
|
|
105542
|
+
566650946,
|
|
105543
|
+
4142492826,
|
|
105544
|
+
1728879713,
|
|
105545
|
+
2882767088,
|
|
105546
|
+
1783734482,
|
|
105547
|
+
3629395816,
|
|
105548
|
+
2517608232,
|
|
105549
|
+
2874225571,
|
|
105550
|
+
1861159788,
|
|
105551
|
+
326777828,
|
|
105552
|
+
3124490320,
|
|
105553
|
+
2130389656,
|
|
105554
|
+
2716951837,
|
|
105555
|
+
967770486,
|
|
105556
|
+
1724537150,
|
|
105557
|
+
2185432712,
|
|
105558
|
+
2364442137,
|
|
105559
|
+
1164943284,
|
|
105560
|
+
2105845187,
|
|
105561
|
+
998989502,
|
|
105562
|
+
3765401048,
|
|
105563
|
+
2244026483,
|
|
105564
|
+
1075463327,
|
|
105565
|
+
1455516326,
|
|
105566
|
+
1322494562,
|
|
105567
|
+
910128902,
|
|
105568
|
+
469688178,
|
|
105569
|
+
1117454909,
|
|
105570
|
+
936433444,
|
|
105571
|
+
3490320968,
|
|
105572
|
+
3675253459,
|
|
105573
|
+
1240580251,
|
|
105574
|
+
122909385,
|
|
105575
|
+
2157517691,
|
|
105576
|
+
634681816,
|
|
105577
|
+
4142456567,
|
|
105578
|
+
3825094682,
|
|
105579
|
+
3061402683,
|
|
105580
|
+
2540495037,
|
|
105581
|
+
79693498,
|
|
105582
|
+
3249098678,
|
|
105583
|
+
1084186820,
|
|
105584
|
+
1583128258,
|
|
105585
|
+
426386531,
|
|
105586
|
+
1761308591,
|
|
105587
|
+
1047286709,
|
|
105588
|
+
322548459,
|
|
105589
|
+
995290223,
|
|
105590
|
+
1845252383,
|
|
105591
|
+
2603652396,
|
|
105592
|
+
3431023940,
|
|
105593
|
+
2942221577,
|
|
105594
|
+
3202600964,
|
|
105595
|
+
3727903485,
|
|
105596
|
+
1712269319,
|
|
105597
|
+
422464435,
|
|
105598
|
+
3234572375,
|
|
105599
|
+
1170764815,
|
|
105600
|
+
3523960633,
|
|
105601
|
+
3117677531,
|
|
105602
|
+
1434042557,
|
|
105603
|
+
442511882,
|
|
105604
|
+
3600875718,
|
|
105605
|
+
1076654713,
|
|
105606
|
+
1738483198,
|
|
105607
|
+
4213154764,
|
|
105608
|
+
2393238008,
|
|
105609
|
+
3677496056,
|
|
105610
|
+
1014306527,
|
|
105611
|
+
4251020053,
|
|
105612
|
+
793779912,
|
|
105613
|
+
2902807211,
|
|
105614
|
+
842905082,
|
|
105615
|
+
4246964064,
|
|
105616
|
+
1395751752,
|
|
105617
|
+
1040244610,
|
|
105618
|
+
2656851899,
|
|
105619
|
+
3396308128,
|
|
105620
|
+
445077038,
|
|
105621
|
+
3742853595,
|
|
105622
|
+
3577915638,
|
|
105623
|
+
679411651,
|
|
105624
|
+
2892444358,
|
|
105625
|
+
2354009459,
|
|
105626
|
+
1767581616,
|
|
105627
|
+
3150600392,
|
|
105628
|
+
3791627101,
|
|
105629
|
+
3102740896,
|
|
105630
|
+
284835224,
|
|
105631
|
+
4246832056,
|
|
105632
|
+
1258075500,
|
|
105633
|
+
768725851,
|
|
105634
|
+
2589189241,
|
|
105635
|
+
3069724005,
|
|
105636
|
+
3532540348,
|
|
105637
|
+
1274779536,
|
|
105638
|
+
3789419226,
|
|
105639
|
+
2764799539,
|
|
105640
|
+
1660621633,
|
|
105641
|
+
3471099624,
|
|
105642
|
+
4011903706,
|
|
105643
|
+
913787905,
|
|
105644
|
+
3497959166,
|
|
105645
|
+
737222580,
|
|
105646
|
+
2514213453,
|
|
105647
|
+
2928710040,
|
|
105648
|
+
3937242737,
|
|
105649
|
+
1804850592,
|
|
105650
|
+
3499020752,
|
|
105651
|
+
2949064160,
|
|
105652
|
+
2386320175,
|
|
105653
|
+
2390070455,
|
|
105654
|
+
2415321851,
|
|
105655
|
+
4061277028,
|
|
105656
|
+
2290661394,
|
|
105657
|
+
2416832540,
|
|
105658
|
+
1336762016,
|
|
105659
|
+
1754252060,
|
|
105660
|
+
3520065937,
|
|
105661
|
+
3014181293,
|
|
105662
|
+
791618072,
|
|
105663
|
+
3188594551,
|
|
105664
|
+
3933548030,
|
|
105665
|
+
2332172193,
|
|
105666
|
+
3852520463,
|
|
105667
|
+
3043980520,
|
|
105668
|
+
413987798,
|
|
105669
|
+
3465142937,
|
|
105670
|
+
3030929376,
|
|
105671
|
+
4245938359,
|
|
105672
|
+
2093235073,
|
|
105673
|
+
3534596313,
|
|
105674
|
+
375366246,
|
|
105675
|
+
2157278981,
|
|
105676
|
+
2479649556,
|
|
105677
|
+
555357303,
|
|
105678
|
+
3870105701,
|
|
105679
|
+
2008414854,
|
|
105680
|
+
3344188149,
|
|
105681
|
+
4221384143,
|
|
105682
|
+
3956125452,
|
|
105683
|
+
2067696032,
|
|
105684
|
+
3594591187,
|
|
105685
|
+
2921233993,
|
|
105686
|
+
2428461,
|
|
105687
|
+
544322398,
|
|
105688
|
+
577241275,
|
|
105689
|
+
1471733935,
|
|
105690
|
+
610547355,
|
|
105691
|
+
4027169054,
|
|
105692
|
+
1432588573,
|
|
105693
|
+
1507829418,
|
|
105694
|
+
2025931657,
|
|
105695
|
+
3646575487,
|
|
105696
|
+
545086370,
|
|
105697
|
+
48609733,
|
|
105698
|
+
2200306550,
|
|
105699
|
+
1653985193,
|
|
105700
|
+
298326376,
|
|
105701
|
+
1316178497,
|
|
105702
|
+
3007786442,
|
|
105703
|
+
2064951626,
|
|
105704
|
+
458293330,
|
|
105705
|
+
2589141269,
|
|
105706
|
+
3591329599,
|
|
105707
|
+
3164325604,
|
|
105708
|
+
727753846,
|
|
105709
|
+
2179363840,
|
|
105710
|
+
146436021,
|
|
105711
|
+
1461446943,
|
|
105712
|
+
4069977195,
|
|
105713
|
+
705550613,
|
|
105714
|
+
3059967265,
|
|
105715
|
+
3887724982,
|
|
105716
|
+
4281599278,
|
|
105717
|
+
3313849956,
|
|
105718
|
+
1404054877,
|
|
105719
|
+
2845806497,
|
|
105720
|
+
146425753,
|
|
105721
|
+
1854211946,
|
|
105722
|
+
1266315497,
|
|
105723
|
+
3048417604,
|
|
105724
|
+
3681880366,
|
|
105725
|
+
3289982499,
|
|
105726
|
+
290971e4,
|
|
105727
|
+
1235738493,
|
|
105728
|
+
2632868024,
|
|
105729
|
+
2414719590,
|
|
105730
|
+
3970600049,
|
|
105731
|
+
1771706367,
|
|
105732
|
+
1449415276,
|
|
105733
|
+
3266420449,
|
|
105734
|
+
422970021,
|
|
105735
|
+
1963543593,
|
|
105736
|
+
2690192192,
|
|
105737
|
+
3826793022,
|
|
105738
|
+
1062508698,
|
|
105739
|
+
1531092325,
|
|
105740
|
+
1804592342,
|
|
105741
|
+
2583117782,
|
|
105742
|
+
2714934279,
|
|
105743
|
+
4024971509,
|
|
105744
|
+
1294809318,
|
|
105745
|
+
4028980673,
|
|
105746
|
+
1289560198,
|
|
105747
|
+
2221992742,
|
|
105748
|
+
1669523910,
|
|
105749
|
+
35572830,
|
|
105750
|
+
157838143,
|
|
105751
|
+
1052438473,
|
|
105752
|
+
1016535060,
|
|
105753
|
+
1802137761,
|
|
105754
|
+
1753167236,
|
|
105755
|
+
1386275462,
|
|
105756
|
+
3080475397,
|
|
105757
|
+
2857371447,
|
|
105758
|
+
1040679964,
|
|
105759
|
+
2145300060,
|
|
105760
|
+
2390574316,
|
|
105761
|
+
1461121720,
|
|
105762
|
+
2956646967,
|
|
105763
|
+
4031777805,
|
|
105764
|
+
4028374788,
|
|
105765
|
+
33600511,
|
|
105766
|
+
2920084762,
|
|
105767
|
+
1018524850,
|
|
105768
|
+
629373528,
|
|
105769
|
+
3691585981,
|
|
105770
|
+
3515945977,
|
|
105771
|
+
2091462646,
|
|
105772
|
+
2486323059,
|
|
105773
|
+
586499841,
|
|
105774
|
+
988145025,
|
|
105775
|
+
935516892,
|
|
105776
|
+
3367335476,
|
|
105777
|
+
2599673255,
|
|
105778
|
+
2839830854,
|
|
105779
|
+
265290510,
|
|
105780
|
+
3972581182,
|
|
105781
|
+
2759138881,
|
|
105782
|
+
3795373465,
|
|
105783
|
+
1005194799,
|
|
105784
|
+
847297441,
|
|
105785
|
+
406762289,
|
|
105786
|
+
1314163512,
|
|
105787
|
+
1332590856,
|
|
105788
|
+
1866599683,
|
|
105789
|
+
4127851711,
|
|
105790
|
+
750260880,
|
|
105791
|
+
613907577,
|
|
105792
|
+
1450815602,
|
|
105793
|
+
3165620655,
|
|
105794
|
+
3734664991,
|
|
105795
|
+
3650291728,
|
|
105796
|
+
3012275730,
|
|
105797
|
+
3704569646,
|
|
105798
|
+
1427272223,
|
|
105799
|
+
778793252,
|
|
105800
|
+
1343938022,
|
|
105801
|
+
2676280711,
|
|
105802
|
+
2052605720,
|
|
105803
|
+
1946737175,
|
|
105804
|
+
3164576444,
|
|
105805
|
+
3914038668,
|
|
105806
|
+
3967478842,
|
|
105807
|
+
3682934266,
|
|
105808
|
+
1661551462,
|
|
105809
|
+
3294938066,
|
|
105810
|
+
4011595847,
|
|
105811
|
+
840292616,
|
|
105812
|
+
3712170807,
|
|
105813
|
+
616741398,
|
|
105814
|
+
312560963,
|
|
105815
|
+
711312465,
|
|
105816
|
+
1351876610,
|
|
105817
|
+
322626781,
|
|
105818
|
+
1910503582,
|
|
105819
|
+
271666773,
|
|
105820
|
+
2175563734,
|
|
105821
|
+
1594956187,
|
|
105822
|
+
70604529,
|
|
105823
|
+
3617834859,
|
|
105824
|
+
1007753275,
|
|
105825
|
+
1495573769,
|
|
105826
|
+
4069517037,
|
|
105827
|
+
2549218298,
|
|
105828
|
+
2663038764,
|
|
105829
|
+
504708206,
|
|
105830
|
+
2263041392,
|
|
105831
|
+
3941167025,
|
|
105832
|
+
2249088522,
|
|
105833
|
+
1514023603,
|
|
105834
|
+
1998579484,
|
|
105835
|
+
1312622330,
|
|
105836
|
+
694541497,
|
|
105837
|
+
2582060303,
|
|
105838
|
+
2151582166,
|
|
105839
|
+
1382467621,
|
|
105840
|
+
776784248,
|
|
105841
|
+
2618340202,
|
|
105842
|
+
3323268794,
|
|
105843
|
+
2497899128,
|
|
105844
|
+
2784771155,
|
|
105845
|
+
503983604,
|
|
105846
|
+
4076293799,
|
|
105847
|
+
907881277,
|
|
105848
|
+
423175695,
|
|
105849
|
+
432175456,
|
|
105850
|
+
1378068232,
|
|
105851
|
+
4145222326,
|
|
105852
|
+
3954048622,
|
|
105853
|
+
3938656102,
|
|
105854
|
+
3820766613,
|
|
105855
|
+
2793130115,
|
|
105856
|
+
2977904593,
|
|
105857
|
+
26017576,
|
|
105858
|
+
3274890735,
|
|
105859
|
+
3194772133,
|
|
105860
|
+
1700274565,
|
|
105861
|
+
1756076034,
|
|
105862
|
+
4006520079,
|
|
105863
|
+
3677328699,
|
|
105864
|
+
720338349,
|
|
105865
|
+
1533947780,
|
|
105866
|
+
354530856,
|
|
105867
|
+
688349552,
|
|
105868
|
+
3973924725,
|
|
105869
|
+
1637815568,
|
|
105870
|
+
332179504,
|
|
105871
|
+
3949051286,
|
|
105872
|
+
53804574,
|
|
105873
|
+
2852348879,
|
|
105874
|
+
3044236432,
|
|
105875
|
+
1282449977,
|
|
105876
|
+
3583942155,
|
|
105877
|
+
3416972820,
|
|
105878
|
+
4006381244,
|
|
105879
|
+
1617046695,
|
|
105880
|
+
2628476075,
|
|
105881
|
+
3002303598,
|
|
105882
|
+
1686838959,
|
|
105883
|
+
431878346,
|
|
105884
|
+
2686675385,
|
|
105885
|
+
1700445008,
|
|
105886
|
+
1080580658,
|
|
105887
|
+
1009431731,
|
|
105888
|
+
832498133,
|
|
105889
|
+
3223435511,
|
|
105890
|
+
2605976345,
|
|
105891
|
+
2271191193,
|
|
105892
|
+
2516031870,
|
|
105893
|
+
1648197032,
|
|
105894
|
+
4164389018,
|
|
105895
|
+
2548247927,
|
|
105896
|
+
300782431,
|
|
105897
|
+
375919233,
|
|
105898
|
+
238389289,
|
|
105899
|
+
3353747414,
|
|
105900
|
+
2531188641,
|
|
105901
|
+
2019080857,
|
|
105902
|
+
1475708069,
|
|
105903
|
+
455242339,
|
|
105904
|
+
2609103871,
|
|
105905
|
+
448939670,
|
|
105906
|
+
3451063019,
|
|
105907
|
+
1395535956,
|
|
105908
|
+
2413381860,
|
|
105909
|
+
1841049896,
|
|
105910
|
+
1491858159,
|
|
105911
|
+
885456874,
|
|
105912
|
+
4264095073,
|
|
105913
|
+
4001119347,
|
|
105914
|
+
1565136089,
|
|
105915
|
+
3898914787,
|
|
105916
|
+
1108368660,
|
|
105917
|
+
540939232,
|
|
105918
|
+
1173283510,
|
|
105919
|
+
2745871338,
|
|
105920
|
+
3681308437,
|
|
105921
|
+
4207628240,
|
|
105922
|
+
3343053890,
|
|
105923
|
+
4016749493,
|
|
105924
|
+
1699691293,
|
|
105925
|
+
1103962373,
|
|
105926
|
+
3625875870,
|
|
105927
|
+
2256883143,
|
|
105928
|
+
3830138730,
|
|
105929
|
+
1031889488,
|
|
105930
|
+
3479347698,
|
|
105931
|
+
1535977030,
|
|
105932
|
+
4236805024,
|
|
105933
|
+
3251091107,
|
|
105934
|
+
2132092099,
|
|
105935
|
+
1774941330,
|
|
105936
|
+
1199868427,
|
|
105937
|
+
1452454533,
|
|
105938
|
+
157007616,
|
|
105939
|
+
2904115357,
|
|
105940
|
+
342012276,
|
|
105941
|
+
595725824,
|
|
105942
|
+
1480756522,
|
|
105943
|
+
206960106,
|
|
105944
|
+
497939518,
|
|
105945
|
+
591360097,
|
|
105946
|
+
863170706,
|
|
105947
|
+
2375253569,
|
|
105948
|
+
3596610801,
|
|
105949
|
+
1814182875,
|
|
105950
|
+
2094937945,
|
|
105951
|
+
3421402208,
|
|
105952
|
+
1082520231,
|
|
105953
|
+
3463918190,
|
|
105954
|
+
2785509508,
|
|
105955
|
+
435703966,
|
|
105956
|
+
3908032597,
|
|
105957
|
+
1641649973,
|
|
105958
|
+
2842273706,
|
|
105959
|
+
3305899714,
|
|
105960
|
+
1510255612,
|
|
105961
|
+
2148256476,
|
|
105962
|
+
2655287854,
|
|
105963
|
+
3276092548,
|
|
105964
|
+
4258621189,
|
|
105965
|
+
236887753,
|
|
105966
|
+
3681803219,
|
|
105967
|
+
274041037,
|
|
105968
|
+
1734335097,
|
|
105969
|
+
3815195456,
|
|
105970
|
+
3317970021,
|
|
105971
|
+
1899903192,
|
|
105972
|
+
1026095262,
|
|
105973
|
+
4050517792,
|
|
105974
|
+
356393447,
|
|
105975
|
+
2410691914,
|
|
105976
|
+
3873677099,
|
|
105977
|
+
3682840055,
|
|
105978
|
+
3913112168,
|
|
105979
|
+
2491498743,
|
|
105980
|
+
4132185628,
|
|
105981
|
+
2489919796,
|
|
105982
|
+
1091903735,
|
|
105983
|
+
1979897079,
|
|
105984
|
+
3170134830,
|
|
105985
|
+
3567386728,
|
|
105986
|
+
3557303409,
|
|
105987
|
+
857797738,
|
|
105988
|
+
1136121015,
|
|
105989
|
+
1342202287,
|
|
105990
|
+
507115054,
|
|
105991
|
+
2535736646,
|
|
105992
|
+
337727348,
|
|
105993
|
+
3213592640,
|
|
105994
|
+
1301675037,
|
|
105995
|
+
2528481711,
|
|
105996
|
+
1895095763,
|
|
105997
|
+
1721773893,
|
|
105998
|
+
3216771564,
|
|
105999
|
+
62756741,
|
|
106000
|
+
2142006736,
|
|
106001
|
+
835421444,
|
|
106002
|
+
2531993523,
|
|
106003
|
+
1442658625,
|
|
106004
|
+
3659876326,
|
|
106005
|
+
2882144922,
|
|
106006
|
+
676362277,
|
|
106007
|
+
1392781812,
|
|
106008
|
+
170690266,
|
|
106009
|
+
3921047035,
|
|
106010
|
+
1759253602,
|
|
106011
|
+
3611846912,
|
|
106012
|
+
1745797284,
|
|
106013
|
+
664899054,
|
|
106014
|
+
1329594018,
|
|
106015
|
+
3901205900,
|
|
106016
|
+
3045908486,
|
|
106017
|
+
2062866102,
|
|
106018
|
+
2865634940,
|
|
106019
|
+
3543621612,
|
|
106020
|
+
3464012697,
|
|
106021
|
+
1080764994,
|
|
106022
|
+
553557557,
|
|
106023
|
+
3656615353,
|
|
106024
|
+
3996768171,
|
|
106025
|
+
991055499,
|
|
106026
|
+
499776247,
|
|
106027
|
+
1265440854,
|
|
106028
|
+
648242737,
|
|
106029
|
+
3940784050,
|
|
106030
|
+
980351604,
|
|
106031
|
+
3713745714,
|
|
106032
|
+
1749149687,
|
|
106033
|
+
3396870395,
|
|
106034
|
+
4211799374,
|
|
106035
|
+
3640570775,
|
|
106036
|
+
1161844396,
|
|
106037
|
+
3125318951,
|
|
106038
|
+
1431517754,
|
|
106039
|
+
545492359,
|
|
106040
|
+
4268468663,
|
|
106041
|
+
3499529547,
|
|
106042
|
+
1437099964,
|
|
106043
|
+
2702547544,
|
|
106044
|
+
3433638243,
|
|
106045
|
+
2581715763,
|
|
106046
|
+
2787789398,
|
|
106047
|
+
1060185593,
|
|
106048
|
+
1593081372,
|
|
106049
|
+
2418618748,
|
|
106050
|
+
4260947970,
|
|
106051
|
+
69676912,
|
|
106052
|
+
2159744348,
|
|
106053
|
+
86519011,
|
|
106054
|
+
2512459080,
|
|
106055
|
+
3838209314,
|
|
106056
|
+
1220612927,
|
|
106057
|
+
3339683548,
|
|
106058
|
+
133810670,
|
|
106059
|
+
1090789135,
|
|
106060
|
+
1078426020,
|
|
106061
|
+
1569222167,
|
|
106062
|
+
845107691,
|
|
106063
|
+
3583754449,
|
|
106064
|
+
4072456591,
|
|
106065
|
+
1091646820,
|
|
106066
|
+
628848692,
|
|
106067
|
+
1613405280,
|
|
106068
|
+
3757631651,
|
|
106069
|
+
526609435,
|
|
106070
|
+
236106946,
|
|
106071
|
+
48312990,
|
|
106072
|
+
2942717905,
|
|
106073
|
+
3402727701,
|
|
106074
|
+
1797494240,
|
|
106075
|
+
859738849,
|
|
106076
|
+
992217954,
|
|
106077
|
+
4005476642,
|
|
106078
|
+
2243076622,
|
|
106079
|
+
3870952857,
|
|
106080
|
+
3732016268,
|
|
106081
|
+
765654824,
|
|
106082
|
+
3490871365,
|
|
106083
|
+
2511836413,
|
|
106084
|
+
1685915746,
|
|
106085
|
+
3888969200,
|
|
106086
|
+
1414112111,
|
|
106087
|
+
2273134842,
|
|
106088
|
+
3281911079,
|
|
106089
|
+
4080962846,
|
|
106090
|
+
172450625,
|
|
106091
|
+
2569994100,
|
|
106092
|
+
980381355,
|
|
106093
|
+
4109958455,
|
|
106094
|
+
2819808352,
|
|
106095
|
+
2716589560,
|
|
106096
|
+
2568741196,
|
|
106097
|
+
3681446669,
|
|
106098
|
+
3329971472,
|
|
106099
|
+
1835478071,
|
|
106100
|
+
660984891,
|
|
106101
|
+
3704678404,
|
|
106102
|
+
4045999559,
|
|
106103
|
+
3422617507,
|
|
106104
|
+
3040415634,
|
|
106105
|
+
1762651403,
|
|
106106
|
+
1719377915,
|
|
106107
|
+
3470491036,
|
|
106108
|
+
2693910283,
|
|
106109
|
+
3642056355,
|
|
106110
|
+
3138596744,
|
|
106111
|
+
1364962596,
|
|
106112
|
+
2073328063,
|
|
106113
|
+
1983633131,
|
|
106114
|
+
926494387,
|
|
106115
|
+
3423689081,
|
|
106116
|
+
2150032023,
|
|
106117
|
+
4096667949,
|
|
106118
|
+
1749200295,
|
|
106119
|
+
3328846651,
|
|
106120
|
+
309677260,
|
|
106121
|
+
2016342300,
|
|
106122
|
+
1779581495,
|
|
106123
|
+
3079819751,
|
|
106124
|
+
111262694,
|
|
106125
|
+
1274766160,
|
|
106126
|
+
443224088,
|
|
106127
|
+
298511866,
|
|
106128
|
+
1025883608,
|
|
106129
|
+
3806446537,
|
|
106130
|
+
1145181785,
|
|
106131
|
+
168956806,
|
|
106132
|
+
3641502830,
|
|
106133
|
+
3584813610,
|
|
106134
|
+
1689216846,
|
|
106135
|
+
3666258015,
|
|
106136
|
+
3200248200,
|
|
106137
|
+
1692713982,
|
|
106138
|
+
2646376535,
|
|
106139
|
+
4042768518,
|
|
106140
|
+
1618508792,
|
|
106141
|
+
1610833997,
|
|
106142
|
+
3523052358,
|
|
106143
|
+
4130873264,
|
|
106144
|
+
2001055236,
|
|
106145
|
+
3610705100,
|
|
106146
|
+
2202168115,
|
|
106147
|
+
4028541809,
|
|
106148
|
+
2961195399,
|
|
106149
|
+
1006657119,
|
|
106150
|
+
2006996926,
|
|
106151
|
+
3186142756,
|
|
106152
|
+
1430667929,
|
|
106153
|
+
3210227297,
|
|
106154
|
+
1314452623,
|
|
106155
|
+
4074634658,
|
|
106156
|
+
4101304120,
|
|
106157
|
+
2273951170,
|
|
106158
|
+
1399257539,
|
|
106159
|
+
3367210612,
|
|
106160
|
+
3027628629,
|
|
106161
|
+
1190975929,
|
|
106162
|
+
2062231137,
|
|
106163
|
+
2333990788,
|
|
106164
|
+
2221543033,
|
|
106165
|
+
2438960610,
|
|
106166
|
+
1181637006,
|
|
106167
|
+
548689776,
|
|
106168
|
+
2362791313,
|
|
106169
|
+
3372408396,
|
|
106170
|
+
3104550113,
|
|
106171
|
+
3145860560,
|
|
106172
|
+
296247880,
|
|
106173
|
+
1970579870,
|
|
106174
|
+
3078560182,
|
|
106175
|
+
3769228297,
|
|
106176
|
+
1714227617,
|
|
106177
|
+
3291629107,
|
|
106178
|
+
3898220290,
|
|
106179
|
+
166772364,
|
|
106180
|
+
1251581989,
|
|
106181
|
+
493813264,
|
|
106182
|
+
448347421,
|
|
106183
|
+
195405023,
|
|
106184
|
+
2709975567,
|
|
106185
|
+
677966185,
|
|
106186
|
+
3703036547,
|
|
106187
|
+
1463355134,
|
|
106188
|
+
2715995803,
|
|
106189
|
+
1338867538,
|
|
106190
|
+
1343315457,
|
|
106191
|
+
2802222074,
|
|
106192
|
+
2684532164,
|
|
106193
|
+
233230375,
|
|
106194
|
+
2599980071,
|
|
106195
|
+
2000651841,
|
|
106196
|
+
3277868038,
|
|
106197
|
+
1638401717,
|
|
106198
|
+
4028070440,
|
|
106199
|
+
3237316320,
|
|
106200
|
+
6314154,
|
|
106201
|
+
819756386,
|
|
106202
|
+
300326615,
|
|
106203
|
+
590932579,
|
|
106204
|
+
1405279636,
|
|
106205
|
+
3267499572,
|
|
106206
|
+
3150704214,
|
|
106207
|
+
2428286686,
|
|
106208
|
+
3959192993,
|
|
106209
|
+
3461946742,
|
|
106210
|
+
1862657033,
|
|
106211
|
+
1266418056,
|
|
106212
|
+
963775037,
|
|
106213
|
+
2089974820,
|
|
106214
|
+
2263052895,
|
|
106215
|
+
1917689273,
|
|
106216
|
+
448879540,
|
|
106217
|
+
3550394620,
|
|
106218
|
+
3981727096,
|
|
106219
|
+
150775221,
|
|
106220
|
+
3627908307,
|
|
106221
|
+
1303187396,
|
|
106222
|
+
508620638,
|
|
106223
|
+
2975983352,
|
|
106224
|
+
2726630617,
|
|
106225
|
+
1817252668,
|
|
106226
|
+
1876281319,
|
|
106227
|
+
1457606340,
|
|
106228
|
+
908771278,
|
|
106229
|
+
3720792119,
|
|
106230
|
+
3617206836,
|
|
106231
|
+
2455994898,
|
|
106232
|
+
1729034894,
|
|
106233
|
+
1080033504,
|
|
106234
|
+
976866871,
|
|
106235
|
+
3556439503,
|
|
106236
|
+
2881648439,
|
|
106237
|
+
1522871579,
|
|
106238
|
+
1555064734,
|
|
106239
|
+
1336096578,
|
|
106240
|
+
3548522304,
|
|
106241
|
+
2579274686,
|
|
106242
|
+
3574697629,
|
|
106243
|
+
3205460757,
|
|
106244
|
+
3593280638,
|
|
106245
|
+
3338716283,
|
|
106246
|
+
3079412587,
|
|
106247
|
+
564236357,
|
|
106248
|
+
2993598910,
|
|
106249
|
+
1781952180,
|
|
106250
|
+
1464380207,
|
|
106251
|
+
3163844217,
|
|
106252
|
+
3332601554,
|
|
106253
|
+
1699332808,
|
|
106254
|
+
1393555694,
|
|
106255
|
+
1183702653,
|
|
106256
|
+
3581086237,
|
|
106257
|
+
1288719814,
|
|
106258
|
+
691649499,
|
|
106259
|
+
2847557200,
|
|
106260
|
+
2895455976,
|
|
106261
|
+
3193889540,
|
|
106262
|
+
2717570544,
|
|
106263
|
+
1781354906,
|
|
106264
|
+
1676643554,
|
|
106265
|
+
2592534050,
|
|
106266
|
+
3230253752,
|
|
106267
|
+
1126444790,
|
|
106268
|
+
2770207658,
|
|
106269
|
+
2633158820,
|
|
106270
|
+
2210423226,
|
|
106271
|
+
2615765581,
|
|
106272
|
+
2414155088,
|
|
106273
|
+
3127139286,
|
|
106274
|
+
673620729,
|
|
106275
|
+
2805611233,
|
|
106276
|
+
1269405062,
|
|
106277
|
+
4015350505,
|
|
106278
|
+
3341807571,
|
|
106279
|
+
4149409754,
|
|
106280
|
+
1057255273,
|
|
106281
|
+
2012875353,
|
|
106282
|
+
2162469141,
|
|
106283
|
+
2276492801,
|
|
106284
|
+
2601117357,
|
|
106285
|
+
993977747,
|
|
106286
|
+
3918593370,
|
|
106287
|
+
2654263191,
|
|
106288
|
+
753973209,
|
|
106289
|
+
36408145,
|
|
106290
|
+
2530585658,
|
|
106291
|
+
25011837,
|
|
106292
|
+
3520020182,
|
|
106293
|
+
2088578344,
|
|
106294
|
+
530523599,
|
|
106295
|
+
2918365339,
|
|
106296
|
+
1524020338,
|
|
106297
|
+
1518925132,
|
|
106298
|
+
3760827505,
|
|
106299
|
+
3759777254,
|
|
106300
|
+
1202760957,
|
|
106301
|
+
3985898139,
|
|
106302
|
+
3906192525,
|
|
106303
|
+
674977740,
|
|
106304
|
+
4174734889,
|
|
106305
|
+
2031300136,
|
|
106306
|
+
2019492241,
|
|
106307
|
+
3983892565,
|
|
106308
|
+
4153806404,
|
|
106309
|
+
3822280332,
|
|
106310
|
+
352677332,
|
|
106311
|
+
2297720250,
|
|
106312
|
+
60907813,
|
|
106313
|
+
90501309,
|
|
106314
|
+
3286998549,
|
|
106315
|
+
1016092578,
|
|
106316
|
+
2535922412,
|
|
106317
|
+
2839152426,
|
|
106318
|
+
457141659,
|
|
106319
|
+
509813237,
|
|
106320
|
+
4120667899,
|
|
106321
|
+
652014361,
|
|
106322
|
+
1966332200,
|
|
106323
|
+
2975202805,
|
|
106324
|
+
55981186,
|
|
106325
|
+
2327461051,
|
|
106326
|
+
676427537,
|
|
106327
|
+
3255491064,
|
|
106328
|
+
2882294119,
|
|
106329
|
+
3433927263,
|
|
106330
|
+
1307055953,
|
|
106331
|
+
942726286,
|
|
106332
|
+
933058658,
|
|
106333
|
+
2468411793,
|
|
106334
|
+
3933900994,
|
|
106335
|
+
4215176142,
|
|
106336
|
+
1361170020,
|
|
106337
|
+
2001714738,
|
|
106338
|
+
2830558078,
|
|
106339
|
+
3274259782,
|
|
106340
|
+
1222529897,
|
|
106341
|
+
1679025792,
|
|
106342
|
+
2729314320,
|
|
106343
|
+
3714953764,
|
|
106344
|
+
1770335741,
|
|
106345
|
+
151462246,
|
|
106346
|
+
3013232138,
|
|
106347
|
+
1682292957,
|
|
106348
|
+
1483529935,
|
|
106349
|
+
471910574,
|
|
106350
|
+
1539241949,
|
|
106351
|
+
458788160,
|
|
106352
|
+
3436315007,
|
|
106353
|
+
1807016891,
|
|
106354
|
+
3718408830,
|
|
106355
|
+
978976581,
|
|
106356
|
+
1043663428,
|
|
106357
|
+
3165965781,
|
|
106358
|
+
1927990952,
|
|
106359
|
+
4200891579,
|
|
106360
|
+
2372276910,
|
|
106361
|
+
3208408903,
|
|
106362
|
+
3533431907,
|
|
106363
|
+
1412390302,
|
|
106364
|
+
2931980059,
|
|
106365
|
+
4132332400,
|
|
106366
|
+
1947078029,
|
|
106367
|
+
3881505623,
|
|
106368
|
+
4168226417,
|
|
106369
|
+
2941484381,
|
|
106370
|
+
1077988104,
|
|
106371
|
+
1320477388,
|
|
106372
|
+
886195818,
|
|
106373
|
+
18198404,
|
|
106374
|
+
3786409e3,
|
|
106375
|
+
2509781533,
|
|
106376
|
+
112762804,
|
|
106377
|
+
3463356488,
|
|
106378
|
+
1866414978,
|
|
106379
|
+
891333506,
|
|
106380
|
+
18488651,
|
|
106381
|
+
661792760,
|
|
106382
|
+
1628790961,
|
|
106383
|
+
3885187036,
|
|
106384
|
+
3141171499,
|
|
106385
|
+
876946877,
|
|
106386
|
+
2693282273,
|
|
106387
|
+
1372485963,
|
|
106388
|
+
791857591,
|
|
106389
|
+
2686433993,
|
|
106390
|
+
3759982718,
|
|
106391
|
+
3167212022,
|
|
106392
|
+
3472953795,
|
|
106393
|
+
2716379847,
|
|
106394
|
+
445679433,
|
|
106395
|
+
3561995674,
|
|
106396
|
+
3504004811,
|
|
106397
|
+
3574258232,
|
|
106398
|
+
54117162,
|
|
106399
|
+
3331405415,
|
|
106400
|
+
2381918588,
|
|
106401
|
+
3769707343,
|
|
106402
|
+
4154350007,
|
|
106403
|
+
1140177722,
|
|
106404
|
+
4074052095,
|
|
106405
|
+
668550556,
|
|
106406
|
+
3214352940,
|
|
106407
|
+
367459370,
|
|
106408
|
+
261225585,
|
|
106409
|
+
2610173221,
|
|
106410
|
+
4209349473,
|
|
106411
|
+
3468074219,
|
|
106412
|
+
3265815641,
|
|
106413
|
+
314222801,
|
|
106414
|
+
3066103646,
|
|
106415
|
+
3808782860,
|
|
106416
|
+
282218597,
|
|
106417
|
+
3406013506,
|
|
106418
|
+
3773591054,
|
|
106419
|
+
379116347,
|
|
106420
|
+
1285071038,
|
|
106421
|
+
846784868,
|
|
106422
|
+
2669647154,
|
|
106423
|
+
3771962079,
|
|
106424
|
+
3550491691,
|
|
106425
|
+
2305946142,
|
|
106426
|
+
453669953,
|
|
106427
|
+
1268987020,
|
|
106428
|
+
3317592352,
|
|
106429
|
+
3279303384,
|
|
106430
|
+
3744833421,
|
|
106431
|
+
2610507566,
|
|
106432
|
+
3859509063,
|
|
106433
|
+
266596637,
|
|
106434
|
+
3847019092,
|
|
106435
|
+
517658769,
|
|
106436
|
+
3462560207,
|
|
106437
|
+
3443424879,
|
|
106438
|
+
370717030,
|
|
106439
|
+
4247526661,
|
|
106440
|
+
2224018117,
|
|
106441
|
+
4143653529,
|
|
106442
|
+
4112773975,
|
|
106443
|
+
2788324899,
|
|
106444
|
+
2477274417,
|
|
106445
|
+
1456262402,
|
|
106446
|
+
2901442914,
|
|
106447
|
+
1517677493,
|
|
106448
|
+
1846949527,
|
|
106449
|
+
2295493580,
|
|
106450
|
+
3734397586,
|
|
106451
|
+
2176403920,
|
|
106452
|
+
1280348187,
|
|
106453
|
+
1908823572,
|
|
106454
|
+
3871786941,
|
|
106455
|
+
846861322,
|
|
106456
|
+
1172426758,
|
|
106457
|
+
3287448474,
|
|
106458
|
+
3383383037,
|
|
106459
|
+
1655181056,
|
|
106460
|
+
3139813346,
|
|
106461
|
+
901632758,
|
|
106462
|
+
1897031941,
|
|
106463
|
+
2986607138,
|
|
106464
|
+
3066810236,
|
|
106465
|
+
3447102507,
|
|
106466
|
+
1393639104,
|
|
106467
|
+
373351379,
|
|
106468
|
+
950779232,
|
|
106469
|
+
625454576,
|
|
106470
|
+
3124240540,
|
|
106471
|
+
4148612726,
|
|
106472
|
+
2007998917,
|
|
106473
|
+
544563296,
|
|
106474
|
+
2244738638,
|
|
106475
|
+
2330496472,
|
|
106476
|
+
2058025392,
|
|
106477
|
+
1291430526,
|
|
106478
|
+
424198748,
|
|
106479
|
+
50039436,
|
|
106480
|
+
29584100,
|
|
106481
|
+
3605783033,
|
|
106482
|
+
2429876329,
|
|
106483
|
+
2791104160,
|
|
106484
|
+
1057563949,
|
|
106485
|
+
3255363231,
|
|
106486
|
+
3075367218,
|
|
106487
|
+
3463963227,
|
|
106488
|
+
1469046755,
|
|
106489
|
+
985887462
|
|
106490
|
+
];
|
|
106491
|
+
var C_ORIG = [
|
|
106492
|
+
1332899944,
|
|
106493
|
+
1700884034,
|
|
106494
|
+
1701343084,
|
|
106495
|
+
1684370003,
|
|
106496
|
+
1668446532,
|
|
106497
|
+
1869963892
|
|
106498
|
+
];
|
|
106499
|
+
function _encipher(lr, off, P, S) {
|
|
106500
|
+
var n, l = lr[off], r = lr[off + 1];
|
|
106501
|
+
l ^= P[0];
|
|
106502
|
+
n = S[l >>> 24];
|
|
106503
|
+
n += S[256 | l >> 16 & 255];
|
|
106504
|
+
n ^= S[512 | l >> 8 & 255];
|
|
106505
|
+
n += S[768 | l & 255];
|
|
106506
|
+
r ^= n ^ P[1];
|
|
106507
|
+
n = S[r >>> 24];
|
|
106508
|
+
n += S[256 | r >> 16 & 255];
|
|
106509
|
+
n ^= S[512 | r >> 8 & 255];
|
|
106510
|
+
n += S[768 | r & 255];
|
|
106511
|
+
l ^= n ^ P[2];
|
|
106512
|
+
n = S[l >>> 24];
|
|
106513
|
+
n += S[256 | l >> 16 & 255];
|
|
106514
|
+
n ^= S[512 | l >> 8 & 255];
|
|
106515
|
+
n += S[768 | l & 255];
|
|
106516
|
+
r ^= n ^ P[3];
|
|
106517
|
+
n = S[r >>> 24];
|
|
106518
|
+
n += S[256 | r >> 16 & 255];
|
|
106519
|
+
n ^= S[512 | r >> 8 & 255];
|
|
106520
|
+
n += S[768 | r & 255];
|
|
106521
|
+
l ^= n ^ P[4];
|
|
106522
|
+
n = S[l >>> 24];
|
|
106523
|
+
n += S[256 | l >> 16 & 255];
|
|
106524
|
+
n ^= S[512 | l >> 8 & 255];
|
|
106525
|
+
n += S[768 | l & 255];
|
|
106526
|
+
r ^= n ^ P[5];
|
|
106527
|
+
n = S[r >>> 24];
|
|
106528
|
+
n += S[256 | r >> 16 & 255];
|
|
106529
|
+
n ^= S[512 | r >> 8 & 255];
|
|
106530
|
+
n += S[768 | r & 255];
|
|
106531
|
+
l ^= n ^ P[6];
|
|
106532
|
+
n = S[l >>> 24];
|
|
106533
|
+
n += S[256 | l >> 16 & 255];
|
|
106534
|
+
n ^= S[512 | l >> 8 & 255];
|
|
106535
|
+
n += S[768 | l & 255];
|
|
106536
|
+
r ^= n ^ P[7];
|
|
106537
|
+
n = S[r >>> 24];
|
|
106538
|
+
n += S[256 | r >> 16 & 255];
|
|
106539
|
+
n ^= S[512 | r >> 8 & 255];
|
|
106540
|
+
n += S[768 | r & 255];
|
|
106541
|
+
l ^= n ^ P[8];
|
|
106542
|
+
n = S[l >>> 24];
|
|
106543
|
+
n += S[256 | l >> 16 & 255];
|
|
106544
|
+
n ^= S[512 | l >> 8 & 255];
|
|
106545
|
+
n += S[768 | l & 255];
|
|
106546
|
+
r ^= n ^ P[9];
|
|
106547
|
+
n = S[r >>> 24];
|
|
106548
|
+
n += S[256 | r >> 16 & 255];
|
|
106549
|
+
n ^= S[512 | r >> 8 & 255];
|
|
106550
|
+
n += S[768 | r & 255];
|
|
106551
|
+
l ^= n ^ P[10];
|
|
106552
|
+
n = S[l >>> 24];
|
|
106553
|
+
n += S[256 | l >> 16 & 255];
|
|
106554
|
+
n ^= S[512 | l >> 8 & 255];
|
|
106555
|
+
n += S[768 | l & 255];
|
|
106556
|
+
r ^= n ^ P[11];
|
|
106557
|
+
n = S[r >>> 24];
|
|
106558
|
+
n += S[256 | r >> 16 & 255];
|
|
106559
|
+
n ^= S[512 | r >> 8 & 255];
|
|
106560
|
+
n += S[768 | r & 255];
|
|
106561
|
+
l ^= n ^ P[12];
|
|
106562
|
+
n = S[l >>> 24];
|
|
106563
|
+
n += S[256 | l >> 16 & 255];
|
|
106564
|
+
n ^= S[512 | l >> 8 & 255];
|
|
106565
|
+
n += S[768 | l & 255];
|
|
106566
|
+
r ^= n ^ P[13];
|
|
106567
|
+
n = S[r >>> 24];
|
|
106568
|
+
n += S[256 | r >> 16 & 255];
|
|
106569
|
+
n ^= S[512 | r >> 8 & 255];
|
|
106570
|
+
n += S[768 | r & 255];
|
|
106571
|
+
l ^= n ^ P[14];
|
|
106572
|
+
n = S[l >>> 24];
|
|
106573
|
+
n += S[256 | l >> 16 & 255];
|
|
106574
|
+
n ^= S[512 | l >> 8 & 255];
|
|
106575
|
+
n += S[768 | l & 255];
|
|
106576
|
+
r ^= n ^ P[15];
|
|
106577
|
+
n = S[r >>> 24];
|
|
106578
|
+
n += S[256 | r >> 16 & 255];
|
|
106579
|
+
n ^= S[512 | r >> 8 & 255];
|
|
106580
|
+
n += S[768 | r & 255];
|
|
106581
|
+
l ^= n ^ P[16];
|
|
106582
|
+
lr[off] = r ^ P[BLOWFISH_NUM_ROUNDS + 1];
|
|
106583
|
+
lr[off + 1] = l;
|
|
106584
|
+
return lr;
|
|
106585
|
+
}
|
|
106586
|
+
function _streamtoword(data, offp) {
|
|
106587
|
+
for (var i = 0, word = 0; i < 4; ++i)
|
|
106588
|
+
word = word << 8 | data[offp] & 255, offp = (offp + 1) % data.length;
|
|
106589
|
+
return { key: word, offp };
|
|
106590
|
+
}
|
|
106591
|
+
function _key(key, P, S) {
|
|
106592
|
+
var offset = 0, lr = [0, 0], plen = P.length, slen = S.length, sw;
|
|
106593
|
+
for (var i = 0; i < plen; i++)
|
|
106594
|
+
sw = _streamtoword(key, offset), offset = sw.offp, P[i] = P[i] ^ sw.key;
|
|
106595
|
+
for (i = 0; i < plen; i += 2)
|
|
106596
|
+
lr = _encipher(lr, 0, P, S), P[i] = lr[0], P[i + 1] = lr[1];
|
|
106597
|
+
for (i = 0; i < slen; i += 2)
|
|
106598
|
+
lr = _encipher(lr, 0, P, S), S[i] = lr[0], S[i + 1] = lr[1];
|
|
106599
|
+
}
|
|
106600
|
+
function _ekskey(data, key, P, S) {
|
|
106601
|
+
var offp = 0, lr = [0, 0], plen = P.length, slen = S.length, sw;
|
|
106602
|
+
for (var i = 0; i < plen; i++)
|
|
106603
|
+
sw = _streamtoword(key, offp), offp = sw.offp, P[i] = P[i] ^ sw.key;
|
|
106604
|
+
offp = 0;
|
|
106605
|
+
for (i = 0; i < plen; i += 2)
|
|
106606
|
+
sw = _streamtoword(data, offp), offp = sw.offp, lr[0] ^= sw.key, sw = _streamtoword(data, offp), offp = sw.offp, lr[1] ^= sw.key, lr = _encipher(lr, 0, P, S), P[i] = lr[0], P[i + 1] = lr[1];
|
|
106607
|
+
for (i = 0; i < slen; i += 2)
|
|
106608
|
+
sw = _streamtoword(data, offp), offp = sw.offp, lr[0] ^= sw.key, sw = _streamtoword(data, offp), offp = sw.offp, lr[1] ^= sw.key, lr = _encipher(lr, 0, P, S), S[i] = lr[0], S[i + 1] = lr[1];
|
|
106609
|
+
}
|
|
106610
|
+
function _crypt(b, salt, rounds, callback, progressCallback) {
|
|
106611
|
+
var cdata = C_ORIG.slice(), clen = cdata.length, err;
|
|
106612
|
+
if (rounds < 4 || rounds > 31) {
|
|
106613
|
+
err = Error("Illegal number of rounds (4-31): " + rounds);
|
|
106614
|
+
if (callback) {
|
|
106615
|
+
nextTick(callback.bind(this, err));
|
|
106616
|
+
return;
|
|
106617
|
+
} else
|
|
106618
|
+
throw err;
|
|
106619
|
+
}
|
|
106620
|
+
if (salt.length !== BCRYPT_SALT_LEN) {
|
|
106621
|
+
err = Error("Illegal salt length: " + salt.length + " != " + BCRYPT_SALT_LEN);
|
|
106622
|
+
if (callback) {
|
|
106623
|
+
nextTick(callback.bind(this, err));
|
|
106624
|
+
return;
|
|
106625
|
+
} else
|
|
106626
|
+
throw err;
|
|
106627
|
+
}
|
|
106628
|
+
rounds = 1 << rounds >>> 0;
|
|
106629
|
+
var P, S, i = 0, j;
|
|
106630
|
+
if (Int32Array) {
|
|
106631
|
+
P = new Int32Array(P_ORIG);
|
|
106632
|
+
S = new Int32Array(S_ORIG);
|
|
106633
|
+
} else {
|
|
106634
|
+
P = P_ORIG.slice();
|
|
106635
|
+
S = S_ORIG.slice();
|
|
106636
|
+
}
|
|
106637
|
+
_ekskey(salt, b, P, S);
|
|
106638
|
+
function next() {
|
|
106639
|
+
if (progressCallback)
|
|
106640
|
+
progressCallback(i / rounds);
|
|
106641
|
+
if (i < rounds) {
|
|
106642
|
+
var start = Date.now();
|
|
106643
|
+
for (; i < rounds; ) {
|
|
106644
|
+
i = i + 1;
|
|
106645
|
+
_key(b, P, S);
|
|
106646
|
+
_key(salt, P, S);
|
|
106647
|
+
if (Date.now() - start > MAX_EXECUTION_TIME)
|
|
106648
|
+
break;
|
|
106649
|
+
}
|
|
106650
|
+
} else {
|
|
106651
|
+
for (i = 0; i < 64; i++)
|
|
106652
|
+
for (j = 0; j < clen >> 1; j++)
|
|
106653
|
+
_encipher(cdata, j << 1, P, S);
|
|
106654
|
+
var ret = [];
|
|
106655
|
+
for (i = 0; i < clen; i++)
|
|
106656
|
+
ret.push((cdata[i] >> 24 & 255) >>> 0), ret.push((cdata[i] >> 16 & 255) >>> 0), ret.push((cdata[i] >> 8 & 255) >>> 0), ret.push((cdata[i] & 255) >>> 0);
|
|
106657
|
+
if (callback) {
|
|
106658
|
+
callback(null, ret);
|
|
106659
|
+
return;
|
|
106660
|
+
} else
|
|
106661
|
+
return ret;
|
|
106662
|
+
}
|
|
106663
|
+
if (callback)
|
|
106664
|
+
nextTick(next);
|
|
106665
|
+
}
|
|
106666
|
+
if (typeof callback !== "undefined") {
|
|
106667
|
+
next();
|
|
106668
|
+
} else {
|
|
106669
|
+
var res;
|
|
106670
|
+
while (true)
|
|
106671
|
+
if (typeof (res = next()) !== "undefined")
|
|
106672
|
+
return res || [];
|
|
106673
|
+
}
|
|
105311
106674
|
}
|
|
105312
|
-
|
|
105313
|
-
|
|
106675
|
+
function _hash(s, salt, callback, progressCallback) {
|
|
106676
|
+
var err;
|
|
106677
|
+
if (typeof s !== "string" || typeof salt !== "string") {
|
|
106678
|
+
err = Error("Invalid string / salt: Not a string");
|
|
106679
|
+
if (callback) {
|
|
106680
|
+
nextTick(callback.bind(this, err));
|
|
106681
|
+
return;
|
|
106682
|
+
} else
|
|
106683
|
+
throw err;
|
|
106684
|
+
}
|
|
106685
|
+
var minor, offset;
|
|
106686
|
+
if (salt.charAt(0) !== "$" || salt.charAt(1) !== "2") {
|
|
106687
|
+
err = Error("Invalid salt version: " + salt.substring(0, 2));
|
|
106688
|
+
if (callback) {
|
|
106689
|
+
nextTick(callback.bind(this, err));
|
|
106690
|
+
return;
|
|
106691
|
+
} else
|
|
106692
|
+
throw err;
|
|
106693
|
+
}
|
|
106694
|
+
if (salt.charAt(2) === "$")
|
|
106695
|
+
minor = String.fromCharCode(0), offset = 3;
|
|
106696
|
+
else {
|
|
106697
|
+
minor = salt.charAt(2);
|
|
106698
|
+
if (minor !== "a" && minor !== "b" && minor !== "y" || salt.charAt(3) !== "$") {
|
|
106699
|
+
err = Error("Invalid salt revision: " + salt.substring(2, 4));
|
|
106700
|
+
if (callback) {
|
|
106701
|
+
nextTick(callback.bind(this, err));
|
|
106702
|
+
return;
|
|
106703
|
+
} else
|
|
106704
|
+
throw err;
|
|
106705
|
+
}
|
|
106706
|
+
offset = 4;
|
|
106707
|
+
}
|
|
106708
|
+
if (salt.charAt(offset + 2) > "$") {
|
|
106709
|
+
err = Error("Missing salt rounds");
|
|
106710
|
+
if (callback) {
|
|
106711
|
+
nextTick(callback.bind(this, err));
|
|
106712
|
+
return;
|
|
106713
|
+
} else
|
|
106714
|
+
throw err;
|
|
106715
|
+
}
|
|
106716
|
+
var r1 = parseInt(salt.substring(offset, offset + 1), 10) * 10, r2 = parseInt(salt.substring(offset + 1, offset + 2), 10), rounds = r1 + r2, real_salt = salt.substring(offset + 3, offset + 25);
|
|
106717
|
+
s += minor >= "a" ? "\0" : "";
|
|
106718
|
+
var passwordb = stringToBytes(s), saltb = base64_decode(real_salt, BCRYPT_SALT_LEN);
|
|
106719
|
+
function finish(bytes) {
|
|
106720
|
+
var res = [];
|
|
106721
|
+
res.push("$2");
|
|
106722
|
+
if (minor >= "a")
|
|
106723
|
+
res.push(minor);
|
|
106724
|
+
res.push("$");
|
|
106725
|
+
if (rounds < 10)
|
|
106726
|
+
res.push("0");
|
|
106727
|
+
res.push(rounds.toString());
|
|
106728
|
+
res.push("$");
|
|
106729
|
+
res.push(base64_encode(saltb, saltb.length));
|
|
106730
|
+
res.push(base64_encode(bytes, C_ORIG.length * 4 - 1));
|
|
106731
|
+
return res.join("");
|
|
106732
|
+
}
|
|
106733
|
+
if (typeof callback == "undefined")
|
|
106734
|
+
return finish(_crypt(passwordb, saltb, rounds));
|
|
106735
|
+
else {
|
|
106736
|
+
_crypt(passwordb, saltb, rounds, function(err2, bytes) {
|
|
106737
|
+
if (err2)
|
|
106738
|
+
callback(err2, null);
|
|
106739
|
+
else
|
|
106740
|
+
callback(null, finish(bytes));
|
|
106741
|
+
}, progressCallback);
|
|
106742
|
+
}
|
|
105314
106743
|
}
|
|
105315
|
-
|
|
105316
|
-
|
|
105317
|
-
|
|
105318
|
-
|
|
105319
|
-
|
|
105320
|
-
|
|
105321
|
-
|
|
105322
|
-
|
|
105323
|
-
|
|
105324
|
-
|
|
105325
|
-
|
|
106744
|
+
bcrypt2.encodeBase64 = base64_encode;
|
|
106745
|
+
bcrypt2.decodeBase64 = base64_decode;
|
|
106746
|
+
return bcrypt2;
|
|
106747
|
+
});
|
|
106748
|
+
}
|
|
106749
|
+
});
|
|
106750
|
+
|
|
106751
|
+
// node_modules/.pnpm/bcryptjs@2.4.3/node_modules/bcryptjs/index.js
|
|
106752
|
+
var require_bcryptjs = __commonJS({
|
|
106753
|
+
"node_modules/.pnpm/bcryptjs@2.4.3/node_modules/bcryptjs/index.js"(exports2, module2) {
|
|
106754
|
+
module2.exports = require_bcrypt();
|
|
105326
106755
|
}
|
|
105327
106756
|
});
|
|
105328
106757
|
|
|
@@ -117148,7 +118577,7 @@ var import_common36 = __toESM(require_common(), 1);
|
|
|
117148
118577
|
// apps/api/dist/auth/auth.service.js
|
|
117149
118578
|
var import_common35 = __toESM(require_common(), 1);
|
|
117150
118579
|
var import_jwt = __toESM(require_jwt(), 1);
|
|
117151
|
-
var bcrypt = __toESM(
|
|
118580
|
+
var bcrypt = __toESM(require_bcryptjs(), 1);
|
|
117152
118581
|
import { createHash as createHash2 } from "crypto";
|
|
117153
118582
|
var __decorate56 = function(decorators, target, key, desc) {
|
|
117154
118583
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -118127,7 +119556,7 @@ var __decorate74 = function(decorators, target, key, desc) {
|
|
|
118127
119556
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
118128
119557
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
118129
119558
|
};
|
|
118130
|
-
var
|
|
119559
|
+
var __dirname = fileURLToPath(new URL(".", import.meta.url));
|
|
118131
119560
|
var AppModule = class AppModule2 {
|
|
118132
119561
|
};
|
|
118133
119562
|
AppModule = __decorate74([
|
|
@@ -118136,7 +119565,7 @@ AppModule = __decorate74([
|
|
|
118136
119565
|
// Serve static files from web build in production
|
|
118137
119566
|
...true ? [
|
|
118138
119567
|
import_serve_static.ServeStaticModule.forRoot({
|
|
118139
|
-
rootPath: join4(
|
|
119568
|
+
rootPath: join4(__dirname, "..", "..", "..", "web", "dist"),
|
|
118140
119569
|
exclude: ["/api*"]
|
|
118141
119570
|
})
|
|
118142
119571
|
] : [],
|
|
@@ -118173,7 +119602,7 @@ import * as path4 from "node:path";
|
|
|
118173
119602
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
118174
119603
|
import * as fs6 from "node:fs";
|
|
118175
119604
|
var __filename = fileURLToPath2(import.meta.url);
|
|
118176
|
-
var
|
|
119605
|
+
var __dirname2 = path4.dirname(__filename);
|
|
118177
119606
|
async function bootstrap() {
|
|
118178
119607
|
const logger = new import_common49.Logger("Bootstrap");
|
|
118179
119608
|
const app = await import_core5.NestFactory.create(AppModule, {
|
|
@@ -118203,13 +119632,13 @@ async function bootstrap() {
|
|
|
118203
119632
|
app.setGlobalPrefix("api");
|
|
118204
119633
|
if (!isDev) {
|
|
118205
119634
|
const possiblePaths = [
|
|
118206
|
-
path4.join(
|
|
119635
|
+
path4.join(__dirname2, "web"),
|
|
118207
119636
|
// When installed globally (api.js and web/ are siblings)
|
|
118208
|
-
path4.join(
|
|
119637
|
+
path4.join(__dirname2, "..", "web"),
|
|
118209
119638
|
// Alternative: one level up
|
|
118210
|
-
path4.join(
|
|
119639
|
+
path4.join(__dirname2, "..", "..", "web", "dist"),
|
|
118211
119640
|
// When running from built CLI
|
|
118212
|
-
path4.join(
|
|
119641
|
+
path4.join(__dirname2, "..", "..", "..", "web", "dist"),
|
|
118213
119642
|
// Alternative structure
|
|
118214
119643
|
path4.join(process.cwd(), "dist", "web")
|
|
118215
119644
|
// When packaged
|
|
@@ -118595,4 +120024,11 @@ long/umd/index.js:
|
|
|
118595
120024
|
*
|
|
118596
120025
|
* SPDX-License-Identifier: Apache-2.0
|
|
118597
120026
|
*)
|
|
120027
|
+
|
|
120028
|
+
bcryptjs/dist/bcrypt.js:
|
|
120029
|
+
(**
|
|
120030
|
+
* @license bcrypt.js (c) 2013 Daniel Wirtz <dcode@dcode.io>
|
|
120031
|
+
* Released under the Apache License, Version 2.0
|
|
120032
|
+
* see: https://github.com/dcodeIO/bcrypt.js for details
|
|
120033
|
+
*)
|
|
118598
120034
|
*/
|