@gct-paas/core 0.1.4-dev.3 → 0.1.4-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.cjs +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/controller/form/form.controller.mjs +1 -2
- package/es/controller/gct-form/gct-form.controller.mjs +1 -2
- package/es/global/gct/gct.d.ts +1 -1
- package/es/interface/controller/form/form.controller.mjs +1 -1
- package/es/interface/hooks/i-designer-hooks.mjs +1 -1
- package/es/interface/i-modal/i-modal.mjs +1 -1
- package/es/modules/api-service/api-manage.mjs +1 -1
- package/es/modules/api-service/api-service.interface.d.ts +2 -2
- package/es/modules/api-service/api-service.interface.mjs +2 -2
- package/es/modules/api-service/api-service.mjs +1 -1
- package/es/modules/api-service/index.mjs +2 -4
- package/es/modules/env-manager/env-manager.d.ts +1 -1
- package/es/modules/env-manager/env-manager.interface.d.ts +1 -1
- package/es/modules/platform-config/useBasicSetting.d.ts +2 -2
- package/es/modules/platform-config/useDeploySetting.d.ts +1 -1
- package/es/modules/platform-config/useLoginSetting.d.ts +1 -1
- package/es/modules/platform-config/useOrgSetting.d.ts +1 -1
- package/es/modules/platform-config/useSecuritySetting.d.ts +1 -1
- package/es/modules/platform-config/useThemeSetting.d.ts +1 -1
- package/es/modules/platform-config/useWatermarkSetting.d.ts +1 -1
- package/es/register/designer-register/designer-register.mjs +1 -2
- package/es/register/render-register/render-register.mjs +1 -2
- package/es/store/global-store.mjs +1 -1
- package/es/types/index.d.ts +2 -2
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +1 -1
- package/es/utils/plugin-static-resource/plugin-static-resource.mjs +1 -1
- package/es/utils/tools/tools.mjs +1 -2
- package/package.json +6 -8
- package/es/_virtual/_commonjs-dynamic-modules.mjs +0 -5
- package/es/_virtual/_commonjsHelpers.mjs +0 -44
- package/es/_virtual/aes.mjs +0 -3
- package/es/_virtual/blowfish.mjs +0 -3
- package/es/_virtual/cipher-core.mjs +0 -3
- package/es/_virtual/core.mjs +0 -3
- package/es/_virtual/enc-base64.mjs +0 -3
- package/es/_virtual/enc-base64url.mjs +0 -3
- package/es/_virtual/enc-utf16.mjs +0 -3
- package/es/_virtual/evpkdf.mjs +0 -3
- package/es/_virtual/format-hex.mjs +0 -3
- package/es/_virtual/hmac.mjs +0 -3
- package/es/_virtual/index.mjs +0 -7
- package/es/_virtual/index2.mjs +0 -7
- package/es/_virtual/index3.mjs +0 -3
- package/es/_virtual/lib-typedarrays.mjs +0 -3
- package/es/_virtual/md5.mjs +0 -3
- package/es/_virtual/mode-cfb.mjs +0 -3
- package/es/_virtual/mode-ctr-gladman.mjs +0 -3
- package/es/_virtual/mode-ctr.mjs +0 -3
- package/es/_virtual/mode-ecb.mjs +0 -3
- package/es/_virtual/mode-ofb.mjs +0 -3
- package/es/_virtual/pad-ansix923.mjs +0 -3
- package/es/_virtual/pad-iso10126.mjs +0 -3
- package/es/_virtual/pad-iso97971.mjs +0 -3
- package/es/_virtual/pad-nopadding.mjs +0 -3
- package/es/_virtual/pad-zeropadding.mjs +0 -3
- package/es/_virtual/pbkdf2.mjs +0 -3
- package/es/_virtual/rabbit-legacy.mjs +0 -3
- package/es/_virtual/rabbit.mjs +0 -3
- package/es/_virtual/rc4.mjs +0 -3
- package/es/_virtual/ripemd160.mjs +0 -3
- package/es/_virtual/sha1.mjs +0 -3
- package/es/_virtual/sha224.mjs +0 -3
- package/es/_virtual/sha256.mjs +0 -3
- package/es/_virtual/sha3.mjs +0 -3
- package/es/_virtual/sha384.mjs +0 -3
- package/es/_virtual/sha512.mjs +0 -3
- package/es/_virtual/tripledes.mjs +0 -3
- package/es/_virtual/x64-core.mjs +0 -3
- package/es/node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/index.mjs +0 -3
- package/es/node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/service/api-config.mjs +0 -8213
- package/es/node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/index.mjs +0 -3
- package/es/node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/service/api-config.mjs +0 -7156
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.mjs +0 -255
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.mjs +0 -492
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.mjs +0 -913
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.mjs +0 -824
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.mjs +0 -153
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.mjs +0 -165
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.mjs +0 -166
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.mjs +0 -153
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.mjs +0 -84
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.mjs +0 -160
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.mjs +0 -69
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.mjs +0 -93
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.mjs +0 -285
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.mjs +0 -98
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.mjs +0 -134
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.mjs +0 -76
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.mjs +0 -58
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.mjs +0 -72
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.mjs +0 -67
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.mjs +0 -62
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.mjs +0 -58
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.mjs +0 -48
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.mjs +0 -65
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.mjs +0 -164
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.mjs +0 -211
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.mjs +0 -213
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.mjs +0 -160
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.mjs +0 -284
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.mjs +0 -167
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.mjs +0 -98
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.mjs +0 -216
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.mjs +0 -344
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.mjs +0 -102
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.mjs +0 -344
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.mjs +0 -800
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.mjs +0 -321
- package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +0 -541
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/async-series-hook/async-series-hook.mjs +0 -73
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/index.mjs +0 -2
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/sync-series-hook/sync-series-hook.mjs +0 -100
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs +0 -2
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/array/array.mjs +0 -47
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/index.mjs +0 -5
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.mjs +0 -24
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs +0 -94
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event-emitter/qx-event-emitter.mjs +0 -146
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/type-util/type-util.mjs +0 -149
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs +0 -227
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import '../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
-
import { __module as encBase64$1 } from '../../../../../_virtual/enc-base64.mjs';
|
|
3
|
-
import { __require as requireCore } from './core.mjs';
|
|
4
|
-
|
|
5
|
-
var encBase64 = encBase64$1.exports;
|
|
6
|
-
|
|
7
|
-
var hasRequiredEncBase64;
|
|
8
|
-
|
|
9
|
-
function requireEncBase64 () {
|
|
10
|
-
if (hasRequiredEncBase64) return encBase64$1.exports;
|
|
11
|
-
hasRequiredEncBase64 = 1;
|
|
12
|
-
(function (module, exports) {
|
|
13
|
-
;(function (root, factory) {
|
|
14
|
-
if ('object' === "object") {
|
|
15
|
-
// CommonJS
|
|
16
|
-
module.exports = exports = factory(requireCore());
|
|
17
|
-
}
|
|
18
|
-
else if (typeof undefined === "function" && undefined.amd) {
|
|
19
|
-
// AMD
|
|
20
|
-
undefined(["./core"], factory);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
// Global (browser)
|
|
24
|
-
factory(root.CryptoJS);
|
|
25
|
-
}
|
|
26
|
-
}(encBase64, function (CryptoJS) {
|
|
27
|
-
|
|
28
|
-
(function () {
|
|
29
|
-
// Shortcuts
|
|
30
|
-
var C = CryptoJS;
|
|
31
|
-
var C_lib = C.lib;
|
|
32
|
-
var WordArray = C_lib.WordArray;
|
|
33
|
-
var C_enc = C.enc;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Base64 encoding strategy.
|
|
37
|
-
*/
|
|
38
|
-
var Base64 = C_enc.Base64 = {
|
|
39
|
-
/**
|
|
40
|
-
* Converts a word array to a Base64 string.
|
|
41
|
-
*
|
|
42
|
-
* @param {WordArray} wordArray The word array.
|
|
43
|
-
*
|
|
44
|
-
* @return {string} The Base64 string.
|
|
45
|
-
*
|
|
46
|
-
* @static
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
*
|
|
50
|
-
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
51
|
-
*/
|
|
52
|
-
stringify: function (wordArray) {
|
|
53
|
-
// Shortcuts
|
|
54
|
-
var words = wordArray.words;
|
|
55
|
-
var sigBytes = wordArray.sigBytes;
|
|
56
|
-
var map = this._map;
|
|
57
|
-
|
|
58
|
-
// Clamp excess bits
|
|
59
|
-
wordArray.clamp();
|
|
60
|
-
|
|
61
|
-
// Convert
|
|
62
|
-
var base64Chars = [];
|
|
63
|
-
for (var i = 0; i < sigBytes; i += 3) {
|
|
64
|
-
var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
|
|
65
|
-
var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;
|
|
66
|
-
var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;
|
|
67
|
-
|
|
68
|
-
var triplet = (byte1 << 16) | (byte2 << 8) | byte3;
|
|
69
|
-
|
|
70
|
-
for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {
|
|
71
|
-
base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// Add padding
|
|
76
|
-
var paddingChar = map.charAt(64);
|
|
77
|
-
if (paddingChar) {
|
|
78
|
-
while (base64Chars.length % 4) {
|
|
79
|
-
base64Chars.push(paddingChar);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return base64Chars.join('');
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Converts a Base64 string to a word array.
|
|
88
|
-
*
|
|
89
|
-
* @param {string} base64Str The Base64 string.
|
|
90
|
-
*
|
|
91
|
-
* @return {WordArray} The word array.
|
|
92
|
-
*
|
|
93
|
-
* @static
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
*
|
|
97
|
-
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
98
|
-
*/
|
|
99
|
-
parse: function (base64Str) {
|
|
100
|
-
// Shortcuts
|
|
101
|
-
var base64StrLength = base64Str.length;
|
|
102
|
-
var map = this._map;
|
|
103
|
-
var reverseMap = this._reverseMap;
|
|
104
|
-
|
|
105
|
-
if (!reverseMap) {
|
|
106
|
-
reverseMap = this._reverseMap = [];
|
|
107
|
-
for (var j = 0; j < map.length; j++) {
|
|
108
|
-
reverseMap[map.charCodeAt(j)] = j;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// Ignore padding
|
|
113
|
-
var paddingChar = map.charAt(64);
|
|
114
|
-
if (paddingChar) {
|
|
115
|
-
var paddingIndex = base64Str.indexOf(paddingChar);
|
|
116
|
-
if (paddingIndex !== -1) {
|
|
117
|
-
base64StrLength = paddingIndex;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Convert
|
|
122
|
-
return parseLoop(base64Str, base64StrLength, reverseMap);
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
function parseLoop(base64Str, base64StrLength, reverseMap) {
|
|
130
|
-
var words = [];
|
|
131
|
-
var nBytes = 0;
|
|
132
|
-
for (var i = 0; i < base64StrLength; i++) {
|
|
133
|
-
if (i % 4) {
|
|
134
|
-
var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);
|
|
135
|
-
var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);
|
|
136
|
-
var bitsCombined = bits1 | bits2;
|
|
137
|
-
words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);
|
|
138
|
-
nBytes++;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return WordArray.create(words, nBytes);
|
|
142
|
-
}
|
|
143
|
-
}());
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return CryptoJS.enc.Base64;
|
|
147
|
-
|
|
148
|
-
}));
|
|
149
|
-
} (encBase64$1, encBase64$1.exports));
|
|
150
|
-
return encBase64$1.exports;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export { requireEncBase64 as __require };
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import '../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
-
import { __module as encBase64url$1 } from '../../../../../_virtual/enc-base64url.mjs';
|
|
3
|
-
import { __require as requireCore } from './core.mjs';
|
|
4
|
-
|
|
5
|
-
var encBase64url = encBase64url$1.exports;
|
|
6
|
-
|
|
7
|
-
var hasRequiredEncBase64url;
|
|
8
|
-
|
|
9
|
-
function requireEncBase64url () {
|
|
10
|
-
if (hasRequiredEncBase64url) return encBase64url$1.exports;
|
|
11
|
-
hasRequiredEncBase64url = 1;
|
|
12
|
-
(function (module, exports) {
|
|
13
|
-
;(function (root, factory) {
|
|
14
|
-
if ('object' === "object") {
|
|
15
|
-
// CommonJS
|
|
16
|
-
module.exports = exports = factory(requireCore());
|
|
17
|
-
}
|
|
18
|
-
else if (typeof undefined === "function" && undefined.amd) {
|
|
19
|
-
// AMD
|
|
20
|
-
undefined(["./core"], factory);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
// Global (browser)
|
|
24
|
-
factory(root.CryptoJS);
|
|
25
|
-
}
|
|
26
|
-
}(encBase64url, function (CryptoJS) {
|
|
27
|
-
|
|
28
|
-
(function () {
|
|
29
|
-
// Shortcuts
|
|
30
|
-
var C = CryptoJS;
|
|
31
|
-
var C_lib = C.lib;
|
|
32
|
-
var WordArray = C_lib.WordArray;
|
|
33
|
-
var C_enc = C.enc;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Base64url encoding strategy.
|
|
37
|
-
*/
|
|
38
|
-
var Base64url = C_enc.Base64url = {
|
|
39
|
-
/**
|
|
40
|
-
* Converts a word array to a Base64url string.
|
|
41
|
-
*
|
|
42
|
-
* @param {WordArray} wordArray The word array.
|
|
43
|
-
*
|
|
44
|
-
* @param {boolean} urlSafe Whether to use url safe
|
|
45
|
-
*
|
|
46
|
-
* @return {string} The Base64url string.
|
|
47
|
-
*
|
|
48
|
-
* @static
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
*
|
|
52
|
-
* var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
|
|
53
|
-
*/
|
|
54
|
-
stringify: function (wordArray, urlSafe) {
|
|
55
|
-
if (urlSafe === undefined) {
|
|
56
|
-
urlSafe = true;
|
|
57
|
-
}
|
|
58
|
-
// Shortcuts
|
|
59
|
-
var words = wordArray.words;
|
|
60
|
-
var sigBytes = wordArray.sigBytes;
|
|
61
|
-
var map = urlSafe ? this._safe_map : this._map;
|
|
62
|
-
|
|
63
|
-
// Clamp excess bits
|
|
64
|
-
wordArray.clamp();
|
|
65
|
-
|
|
66
|
-
// Convert
|
|
67
|
-
var base64Chars = [];
|
|
68
|
-
for (var i = 0; i < sigBytes; i += 3) {
|
|
69
|
-
var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
|
|
70
|
-
var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;
|
|
71
|
-
var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;
|
|
72
|
-
|
|
73
|
-
var triplet = (byte1 << 16) | (byte2 << 8) | byte3;
|
|
74
|
-
|
|
75
|
-
for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {
|
|
76
|
-
base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Add padding
|
|
81
|
-
var paddingChar = map.charAt(64);
|
|
82
|
-
if (paddingChar) {
|
|
83
|
-
while (base64Chars.length % 4) {
|
|
84
|
-
base64Chars.push(paddingChar);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
return base64Chars.join('');
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Converts a Base64url string to a word array.
|
|
93
|
-
*
|
|
94
|
-
* @param {string} base64Str The Base64url string.
|
|
95
|
-
*
|
|
96
|
-
* @param {boolean} urlSafe Whether to use url safe
|
|
97
|
-
*
|
|
98
|
-
* @return {WordArray} The word array.
|
|
99
|
-
*
|
|
100
|
-
* @static
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
*
|
|
104
|
-
* var wordArray = CryptoJS.enc.Base64url.parse(base64String);
|
|
105
|
-
*/
|
|
106
|
-
parse: function (base64Str, urlSafe) {
|
|
107
|
-
if (urlSafe === undefined) {
|
|
108
|
-
urlSafe = true;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// Shortcuts
|
|
112
|
-
var base64StrLength = base64Str.length;
|
|
113
|
-
var map = urlSafe ? this._safe_map : this._map;
|
|
114
|
-
var reverseMap = this._reverseMap;
|
|
115
|
-
|
|
116
|
-
if (!reverseMap) {
|
|
117
|
-
reverseMap = this._reverseMap = [];
|
|
118
|
-
for (var j = 0; j < map.length; j++) {
|
|
119
|
-
reverseMap[map.charCodeAt(j)] = j;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Ignore padding
|
|
124
|
-
var paddingChar = map.charAt(64);
|
|
125
|
-
if (paddingChar) {
|
|
126
|
-
var paddingIndex = base64Str.indexOf(paddingChar);
|
|
127
|
-
if (paddingIndex !== -1) {
|
|
128
|
-
base64StrLength = paddingIndex;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// Convert
|
|
133
|
-
return parseLoop(base64Str, base64StrLength, reverseMap);
|
|
134
|
-
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
|
|
138
|
-
_safe_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_',
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
function parseLoop(base64Str, base64StrLength, reverseMap) {
|
|
142
|
-
var words = [];
|
|
143
|
-
var nBytes = 0;
|
|
144
|
-
for (var i = 0; i < base64StrLength; i++) {
|
|
145
|
-
if (i % 4) {
|
|
146
|
-
var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);
|
|
147
|
-
var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);
|
|
148
|
-
var bitsCombined = bits1 | bits2;
|
|
149
|
-
words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);
|
|
150
|
-
nBytes++;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
return WordArray.create(words, nBytes);
|
|
154
|
-
}
|
|
155
|
-
}());
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return CryptoJS.enc.Base64url;
|
|
159
|
-
|
|
160
|
-
}));
|
|
161
|
-
} (encBase64url$1, encBase64url$1.exports));
|
|
162
|
-
return encBase64url$1.exports;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export { requireEncBase64url as __require };
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import '../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
-
import { __module as encUtf16$1 } from '../../../../../_virtual/enc-utf16.mjs';
|
|
3
|
-
import { __require as requireCore } from './core.mjs';
|
|
4
|
-
|
|
5
|
-
var encUtf16 = encUtf16$1.exports;
|
|
6
|
-
|
|
7
|
-
var hasRequiredEncUtf16;
|
|
8
|
-
|
|
9
|
-
function requireEncUtf16 () {
|
|
10
|
-
if (hasRequiredEncUtf16) return encUtf16$1.exports;
|
|
11
|
-
hasRequiredEncUtf16 = 1;
|
|
12
|
-
(function (module, exports) {
|
|
13
|
-
;(function (root, factory) {
|
|
14
|
-
if ('object' === "object") {
|
|
15
|
-
// CommonJS
|
|
16
|
-
module.exports = exports = factory(requireCore());
|
|
17
|
-
}
|
|
18
|
-
else if (typeof undefined === "function" && undefined.amd) {
|
|
19
|
-
// AMD
|
|
20
|
-
undefined(["./core"], factory);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
// Global (browser)
|
|
24
|
-
factory(root.CryptoJS);
|
|
25
|
-
}
|
|
26
|
-
}(encUtf16, function (CryptoJS) {
|
|
27
|
-
|
|
28
|
-
(function () {
|
|
29
|
-
// Shortcuts
|
|
30
|
-
var C = CryptoJS;
|
|
31
|
-
var C_lib = C.lib;
|
|
32
|
-
var WordArray = C_lib.WordArray;
|
|
33
|
-
var C_enc = C.enc;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* UTF-16 BE encoding strategy.
|
|
37
|
-
*/
|
|
38
|
-
var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = {
|
|
39
|
-
/**
|
|
40
|
-
* Converts a word array to a UTF-16 BE string.
|
|
41
|
-
*
|
|
42
|
-
* @param {WordArray} wordArray The word array.
|
|
43
|
-
*
|
|
44
|
-
* @return {string} The UTF-16 BE string.
|
|
45
|
-
*
|
|
46
|
-
* @static
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
*
|
|
50
|
-
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
51
|
-
*/
|
|
52
|
-
stringify: function (wordArray) {
|
|
53
|
-
// Shortcuts
|
|
54
|
-
var words = wordArray.words;
|
|
55
|
-
var sigBytes = wordArray.sigBytes;
|
|
56
|
-
|
|
57
|
-
// Convert
|
|
58
|
-
var utf16Chars = [];
|
|
59
|
-
for (var i = 0; i < sigBytes; i += 2) {
|
|
60
|
-
var codePoint = (words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff;
|
|
61
|
-
utf16Chars.push(String.fromCharCode(codePoint));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return utf16Chars.join('');
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Converts a UTF-16 BE string to a word array.
|
|
69
|
-
*
|
|
70
|
-
* @param {string} utf16Str The UTF-16 BE string.
|
|
71
|
-
*
|
|
72
|
-
* @return {WordArray} The word array.
|
|
73
|
-
*
|
|
74
|
-
* @static
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
*
|
|
78
|
-
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
79
|
-
*/
|
|
80
|
-
parse: function (utf16Str) {
|
|
81
|
-
// Shortcut
|
|
82
|
-
var utf16StrLength = utf16Str.length;
|
|
83
|
-
|
|
84
|
-
// Convert
|
|
85
|
-
var words = [];
|
|
86
|
-
for (var i = 0; i < utf16StrLength; i++) {
|
|
87
|
-
words[i >>> 1] |= utf16Str.charCodeAt(i) << (16 - (i % 2) * 16);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return WordArray.create(words, utf16StrLength * 2);
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* UTF-16 LE encoding strategy.
|
|
96
|
-
*/
|
|
97
|
-
C_enc.Utf16LE = {
|
|
98
|
-
/**
|
|
99
|
-
* Converts a word array to a UTF-16 LE string.
|
|
100
|
-
*
|
|
101
|
-
* @param {WordArray} wordArray The word array.
|
|
102
|
-
*
|
|
103
|
-
* @return {string} The UTF-16 LE string.
|
|
104
|
-
*
|
|
105
|
-
* @static
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
*
|
|
109
|
-
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
110
|
-
*/
|
|
111
|
-
stringify: function (wordArray) {
|
|
112
|
-
// Shortcuts
|
|
113
|
-
var words = wordArray.words;
|
|
114
|
-
var sigBytes = wordArray.sigBytes;
|
|
115
|
-
|
|
116
|
-
// Convert
|
|
117
|
-
var utf16Chars = [];
|
|
118
|
-
for (var i = 0; i < sigBytes; i += 2) {
|
|
119
|
-
var codePoint = swapEndian((words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff);
|
|
120
|
-
utf16Chars.push(String.fromCharCode(codePoint));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return utf16Chars.join('');
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Converts a UTF-16 LE string to a word array.
|
|
128
|
-
*
|
|
129
|
-
* @param {string} utf16Str The UTF-16 LE string.
|
|
130
|
-
*
|
|
131
|
-
* @return {WordArray} The word array.
|
|
132
|
-
*
|
|
133
|
-
* @static
|
|
134
|
-
*
|
|
135
|
-
* @example
|
|
136
|
-
*
|
|
137
|
-
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
138
|
-
*/
|
|
139
|
-
parse: function (utf16Str) {
|
|
140
|
-
// Shortcut
|
|
141
|
-
var utf16StrLength = utf16Str.length;
|
|
142
|
-
|
|
143
|
-
// Convert
|
|
144
|
-
var words = [];
|
|
145
|
-
for (var i = 0; i < utf16StrLength; i++) {
|
|
146
|
-
words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << (16 - (i % 2) * 16));
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
return WordArray.create(words, utf16StrLength * 2);
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
function swapEndian(word) {
|
|
154
|
-
return ((word << 8) & 0xff00ff00) | ((word >>> 8) & 0x00ff00ff);
|
|
155
|
-
}
|
|
156
|
-
}());
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return CryptoJS.enc.Utf16;
|
|
160
|
-
|
|
161
|
-
}));
|
|
162
|
-
} (encUtf16$1, encUtf16$1.exports));
|
|
163
|
-
return encUtf16$1.exports;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export { requireEncUtf16 as __require };
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import '../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
-
import { __module as evpkdf$1 } from '../../../../../_virtual/evpkdf.mjs';
|
|
3
|
-
import { __require as requireCore } from './core.mjs';
|
|
4
|
-
import { __require as requireSha1 } from './sha1.mjs';
|
|
5
|
-
import { __require as requireHmac } from './hmac.mjs';
|
|
6
|
-
|
|
7
|
-
var evpkdf = evpkdf$1.exports;
|
|
8
|
-
|
|
9
|
-
var hasRequiredEvpkdf;
|
|
10
|
-
|
|
11
|
-
function requireEvpkdf () {
|
|
12
|
-
if (hasRequiredEvpkdf) return evpkdf$1.exports;
|
|
13
|
-
hasRequiredEvpkdf = 1;
|
|
14
|
-
(function (module, exports) {
|
|
15
|
-
;(function (root, factory, undef) {
|
|
16
|
-
if ('object' === "object") {
|
|
17
|
-
// CommonJS
|
|
18
|
-
module.exports = exports = factory(requireCore(), requireSha1(), requireHmac());
|
|
19
|
-
}
|
|
20
|
-
else if (typeof undefined === "function" && undefined.amd) {
|
|
21
|
-
// AMD
|
|
22
|
-
undefined(["./core", "./sha1", "./hmac"], factory);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
// Global (browser)
|
|
26
|
-
factory(root.CryptoJS);
|
|
27
|
-
}
|
|
28
|
-
}(evpkdf, function (CryptoJS) {
|
|
29
|
-
|
|
30
|
-
(function () {
|
|
31
|
-
// Shortcuts
|
|
32
|
-
var C = CryptoJS;
|
|
33
|
-
var C_lib = C.lib;
|
|
34
|
-
var Base = C_lib.Base;
|
|
35
|
-
var WordArray = C_lib.WordArray;
|
|
36
|
-
var C_algo = C.algo;
|
|
37
|
-
var MD5 = C_algo.MD5;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* This key derivation function is meant to conform with EVP_BytesToKey.
|
|
41
|
-
* www.openssl.org/docs/crypto/EVP_BytesToKey.html
|
|
42
|
-
*/
|
|
43
|
-
var EvpKDF = C_algo.EvpKDF = Base.extend({
|
|
44
|
-
/**
|
|
45
|
-
* Configuration options.
|
|
46
|
-
*
|
|
47
|
-
* @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
|
|
48
|
-
* @property {Hasher} hasher The hash algorithm to use. Default: MD5
|
|
49
|
-
* @property {number} iterations The number of iterations to perform. Default: 1
|
|
50
|
-
*/
|
|
51
|
-
cfg: Base.extend({
|
|
52
|
-
keySize: 128/32,
|
|
53
|
-
hasher: MD5,
|
|
54
|
-
iterations: 1
|
|
55
|
-
}),
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Initializes a newly created key derivation function.
|
|
59
|
-
*
|
|
60
|
-
* @param {Object} cfg (Optional) The configuration options to use for the derivation.
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
*
|
|
64
|
-
* var kdf = CryptoJS.algo.EvpKDF.create();
|
|
65
|
-
* var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
|
|
66
|
-
* var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
|
|
67
|
-
*/
|
|
68
|
-
init: function (cfg) {
|
|
69
|
-
this.cfg = this.cfg.extend(cfg);
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Derives a key from a password.
|
|
74
|
-
*
|
|
75
|
-
* @param {WordArray|string} password The password.
|
|
76
|
-
* @param {WordArray|string} salt A salt.
|
|
77
|
-
*
|
|
78
|
-
* @return {WordArray} The derived key.
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
*
|
|
82
|
-
* var key = kdf.compute(password, salt);
|
|
83
|
-
*/
|
|
84
|
-
compute: function (password, salt) {
|
|
85
|
-
var block;
|
|
86
|
-
|
|
87
|
-
// Shortcut
|
|
88
|
-
var cfg = this.cfg;
|
|
89
|
-
|
|
90
|
-
// Init hasher
|
|
91
|
-
var hasher = cfg.hasher.create();
|
|
92
|
-
|
|
93
|
-
// Initial values
|
|
94
|
-
var derivedKey = WordArray.create();
|
|
95
|
-
|
|
96
|
-
// Shortcuts
|
|
97
|
-
var derivedKeyWords = derivedKey.words;
|
|
98
|
-
var keySize = cfg.keySize;
|
|
99
|
-
var iterations = cfg.iterations;
|
|
100
|
-
|
|
101
|
-
// Generate key
|
|
102
|
-
while (derivedKeyWords.length < keySize) {
|
|
103
|
-
if (block) {
|
|
104
|
-
hasher.update(block);
|
|
105
|
-
}
|
|
106
|
-
block = hasher.update(password).finalize(salt);
|
|
107
|
-
hasher.reset();
|
|
108
|
-
|
|
109
|
-
// Iterations
|
|
110
|
-
for (var i = 1; i < iterations; i++) {
|
|
111
|
-
block = hasher.finalize(block);
|
|
112
|
-
hasher.reset();
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
derivedKey.concat(block);
|
|
116
|
-
}
|
|
117
|
-
derivedKey.sigBytes = keySize * 4;
|
|
118
|
-
|
|
119
|
-
return derivedKey;
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Derives a key from a password.
|
|
125
|
-
*
|
|
126
|
-
* @param {WordArray|string} password The password.
|
|
127
|
-
* @param {WordArray|string} salt A salt.
|
|
128
|
-
* @param {Object} cfg (Optional) The configuration options to use for this computation.
|
|
129
|
-
*
|
|
130
|
-
* @return {WordArray} The derived key.
|
|
131
|
-
*
|
|
132
|
-
* @static
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
*
|
|
136
|
-
* var key = CryptoJS.EvpKDF(password, salt);
|
|
137
|
-
* var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });
|
|
138
|
-
* var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });
|
|
139
|
-
*/
|
|
140
|
-
C.EvpKDF = function (password, salt, cfg) {
|
|
141
|
-
return EvpKDF.create(cfg).compute(password, salt);
|
|
142
|
-
};
|
|
143
|
-
}());
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return CryptoJS.EvpKDF;
|
|
147
|
-
|
|
148
|
-
}));
|
|
149
|
-
} (evpkdf$1, evpkdf$1.exports));
|
|
150
|
-
return evpkdf$1.exports;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export { requireEvpkdf as __require };
|