@hedystia/db 1.5.0 → 1.6.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/index.d.ts +3 -3
- package/index.js +1 -205
- package/package.json +4 -6
package/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export default class DataBase {
|
|
|
25
25
|
[key: string]: Table;
|
|
26
26
|
};
|
|
27
27
|
constructor(filePath: string, password: string);
|
|
28
|
-
createTable(tableName: string, columns
|
|
28
|
+
createTable(tableName: string, columns?: string[]): void;
|
|
29
29
|
createTableIfNotExists(tableName: string, columns: string[]): void;
|
|
30
30
|
deleteTable(tableName: string): void;
|
|
31
31
|
deleteTableIfExists(tableName: string): void;
|
|
@@ -39,10 +39,10 @@ export default class DataBase {
|
|
|
39
39
|
}, newData: {
|
|
40
40
|
[key: string]: any;
|
|
41
41
|
}): void;
|
|
42
|
-
select(tableName: string, query
|
|
42
|
+
select(tableName: string, query?: {
|
|
43
43
|
[key: string]: any;
|
|
44
44
|
}): unknown;
|
|
45
|
-
delete(tableName: string, query
|
|
45
|
+
delete(tableName: string, query?: {
|
|
46
46
|
[key: string]: any;
|
|
47
47
|
}): void;
|
|
48
48
|
private processQueue;
|
package/index.js
CHANGED
|
@@ -1,205 +1 @@
|
|
|
1
|
-
const fs = require("fs");
|
|
2
|
-
const cryptoJS = require("crypto-js");
|
|
3
|
-
|
|
4
|
-
const AES = cryptoJS.AES;
|
|
5
|
-
const enc = cryptoJS.enc;
|
|
6
|
-
|
|
7
|
-
const Database = class {
|
|
8
|
-
constructor(filePath, password) {
|
|
9
|
-
this.tables = {};
|
|
10
|
-
this.filePath = filePath || "./database.ht";
|
|
11
|
-
this.password = password;
|
|
12
|
-
this.queue = [];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
createTable(tableName, columns = []) {
|
|
16
|
-
this.readFromFile();
|
|
17
|
-
if (this.tables[tableName]) {
|
|
18
|
-
throw new Error(`Table "${tableName}" already exists.`);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
this.tables[tableName] = { columns, records: [] };
|
|
22
|
-
this.saveToFile();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
createTableIfNotExists(tableName, columns) {
|
|
26
|
-
this.readFromFile();
|
|
27
|
-
if (!this.tables[tableName]) {
|
|
28
|
-
this.tables[tableName] = { columns, records: [] };
|
|
29
|
-
this.saveToFile();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
deleteTable(tableName) {
|
|
34
|
-
this.readFromFile();
|
|
35
|
-
if (!this.tables[tableName]) {
|
|
36
|
-
throw new Error(`Table "${tableName}" does not exist.`);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
delete this.tables[tableName];
|
|
40
|
-
this.saveToFile();
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
deleteTableIfExists(tableName) {
|
|
44
|
-
this.readFromFile();
|
|
45
|
-
if (this.tables[tableName]) {
|
|
46
|
-
delete this.tables[tableName];
|
|
47
|
-
this.saveToFile();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
addColumn(tableName, column, defaultValue) {
|
|
52
|
-
this.readFromFile();
|
|
53
|
-
if (!this.tables[tableName]) {
|
|
54
|
-
throw new Error(`Table "${tableName}" does not exist.`);
|
|
55
|
-
}
|
|
56
|
-
if (this.tables[tableName].columns.includes(column)) {
|
|
57
|
-
throw new Error(`Column "${column}" already exists in table "${tableName}".`);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
this.tables[tableName].columns.push(column);
|
|
61
|
-
for (const record of this.tables[tableName].records) {
|
|
62
|
-
record[column] = defaultValue ?? null;
|
|
63
|
-
}
|
|
64
|
-
this.saveToFile();
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
deleteColumn(tableName, column) {
|
|
68
|
-
this.readFromFile();
|
|
69
|
-
if (!this.tables[tableName]) {
|
|
70
|
-
throw new Error(`Table "${tableName}" does not exist.`);
|
|
71
|
-
}
|
|
72
|
-
if (!this.tables[tableName].columns.includes(column)) {
|
|
73
|
-
throw new Error(`Column "${column}" does not exist in table "${tableName}".`);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
const columnIndex = this.tables[tableName].columns.indexOf(column);
|
|
77
|
-
this.tables[tableName].columns.splice(columnIndex, 1);
|
|
78
|
-
for (const record of this.tables[tableName].records) {
|
|
79
|
-
delete record[column];
|
|
80
|
-
}
|
|
81
|
-
this.saveToFile();
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
insert(tableName, record) {
|
|
85
|
-
this.queue.push({ method: "insert", table: tableName, record });
|
|
86
|
-
if (this.queue.length === 1) {
|
|
87
|
-
this.processQueue();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
update(tableName, query, newData) {
|
|
92
|
-
this.queue.push({ method: "update", table: tableName, query, newData });
|
|
93
|
-
if (this.queue.length === 1) {
|
|
94
|
-
this.processQueue();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
select(tableName, query = {}) {
|
|
99
|
-
this.readFromFile();
|
|
100
|
-
if (!this.tables[tableName]) {
|
|
101
|
-
throw new Error(`Table "${tableName}" does not exist.`);
|
|
102
|
-
}
|
|
103
|
-
return this.tables[tableName].records.filter((record) => Object.entries(query).every(([column, value]) => record[column] === value));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
delete(tableName, query = {}) {
|
|
107
|
-
this.queue.push({ method: "delete", table: tableName, query });
|
|
108
|
-
if (this.queue.length === 1) {
|
|
109
|
-
this.processQueue();
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
processQueue() {
|
|
114
|
-
const request = this.queue[0];
|
|
115
|
-
switch (request.method) {
|
|
116
|
-
case "insert":
|
|
117
|
-
this.insertTable(request.table, request.record);
|
|
118
|
-
break;
|
|
119
|
-
case "update":
|
|
120
|
-
this.updateTable(request.table, request.query, request.newData);
|
|
121
|
-
break;
|
|
122
|
-
case "delete":
|
|
123
|
-
this.deleteFromTable(request.table, request.query);
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
insertTable(tableName, record) {
|
|
129
|
-
this.readFromFile();
|
|
130
|
-
if (!this.tables[tableName]) {
|
|
131
|
-
throw new Error(`Table "${tableName}" does not exist.`);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
const table = this.tables[tableName];
|
|
135
|
-
const formattedRecord = table.columns.reduce((obj, column) => ({ ...obj, [column]: record[column] || null }), {});
|
|
136
|
-
table.records.push(formattedRecord);
|
|
137
|
-
this.saveToFile();
|
|
138
|
-
this.queue.shift();
|
|
139
|
-
if (this.queue.length > 0) {
|
|
140
|
-
this.processQueue();
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
updateTable(tableName, query, newData) {
|
|
145
|
-
this.readFromFile();
|
|
146
|
-
if (!this.tables[tableName]) {
|
|
147
|
-
throw new Error(`Table "${tableName}" does not exist.`);
|
|
148
|
-
}
|
|
149
|
-
const table = this.tables[tableName];
|
|
150
|
-
const updatedRecords = table.records.map((record) => {
|
|
151
|
-
Object.entries(newData).forEach(([column, value]) => {
|
|
152
|
-
if (table.columns.includes(column) && Object.entries(query).every(([qColumn, qValue]) => record[qColumn] === qValue)) {
|
|
153
|
-
record[column] = value;
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
return record;
|
|
157
|
-
});
|
|
158
|
-
table.records = updatedRecords;
|
|
159
|
-
this.saveToFile();
|
|
160
|
-
this.queue.shift();
|
|
161
|
-
if (this.queue.length > 0) {
|
|
162
|
-
this.processQueue();
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
deleteFromTable(tableName, query) {
|
|
167
|
-
this.readFromFile();
|
|
168
|
-
if (!this.tables[tableName]) {
|
|
169
|
-
throw new Error(`Table "${tableName}" does not exist.`);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
this.tables[tableName].records = this.tables[tableName].records.filter(
|
|
173
|
-
(record) => !Object.entries(query).every(([column, value]) => record[column] === value),
|
|
174
|
-
);
|
|
175
|
-
this.saveToFile();
|
|
176
|
-
this.queue.shift();
|
|
177
|
-
if (this.queue.length > 0) {
|
|
178
|
-
this.processQueue();
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
saveToFile() {
|
|
183
|
-
if (!this.filePath.endsWith(".ht")) {
|
|
184
|
-
throw new Error(`File path must include '.ht': ${this.filePath}`);
|
|
185
|
-
}
|
|
186
|
-
const data = JSON.stringify(this.tables);
|
|
187
|
-
const encrypted = AES.encrypt(data, this.password).toString();
|
|
188
|
-
fs.writeFileSync(this.filePath, encrypted);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
readFromFile() {
|
|
192
|
-
if (!fs.existsSync(this.filePath)) {
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
const encrypted = fs.readFileSync(this.filePath, "utf8");
|
|
196
|
-
const data = AES.decrypt(encrypted, this.password).toString(enc.Utf8);
|
|
197
|
-
try {
|
|
198
|
-
this.tables = JSON.parse(data);
|
|
199
|
-
} catch {
|
|
200
|
-
this.tables = {};
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
module.exports = Database;
|
|
1
|
+
const sQ=require("node:module");var fQ=Object.create,{defineProperty:K$,getPrototypeOf:dQ,getOwnPropertyNames:yQ}=Object,cQ=Object.prototype.hasOwnProperty,iQ=($,q,v)=>{v=null!=$?fQ(dQ($)):{};const R=!q&&$&&$.__esModule?v:K$(v,"default",{value:$,enumerable:!0});for(let I of yQ($))cQ.call(R,I)||K$(R,I,{get:()=>$[I],enumerable:!0});return R},S=($,q)=>()=>(q||$((q={exports:{}}).exports,q),q.exports),h=S((Rq,u$)=>{!function($,q){"object"==typeof Rq?u$.exports=Rq=q():"function"==typeof define&&define.amd?define([],q):$.CryptoJS=q()}(Rq,(function(){var $=$||function(q,v){var R;if("undefined"!=typeof window&&window.crypto&&(R=window.crypto),"undefined"!=typeof self&&self.crypto&&(R=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(R=globalThis.crypto),!R&&"undefined"!=typeof window&&window.msCrypto&&(R=window.msCrypto),!R&&"undefined"!=typeof global&&global.crypto&&(R=global.crypto),!R)try{R=require("crypto")}catch(Z){}var I=function(){if(R){if("function"==typeof R.getRandomValues)try{return R.getRandomValues(new Uint32Array(1))[0]}catch(Z){}if("function"==typeof R.randomBytes)try{return R.randomBytes(4).readInt32LE()}catch(Z){}}throw new Error("Native crypto module could not be used to get secure random number.")},O=Object.create||function(){function Z(){}return function(D){var L;return Z.prototype=D,L=new Z,Z.prototype=null,L}}(),T={},Q=T.lib={},F=Q.Base={extend:function(Z){var D=O(this);return Z&&D.mixIn(Z),D.hasOwnProperty("init")&&this.init!==D.init||(D.init=function(){D.$super.init.apply(this,arguments)}),D.init.prototype=D,D.$super=this,D},create:function(){var Z=this.extend();return Z.init.apply(Z,arguments),Z},init:function(){},mixIn:function(Z){for(var D in Z)Z.hasOwnProperty(D)&&(this[D]=Z[D]);Z.hasOwnProperty("toString")&&(this.toString=Z.toString)},clone:function(){return this.init.prototype.extend(this)}},U=Q.WordArray=F.extend({init:function(Z,D){Z=this.words=Z||[],this.sigBytes=D!=v?D:4*Z.length},toString:function(Z){return(Z||P).stringify(this)},concat:function(Z){var D=this.words,L=Z.words,j=this.sigBytes,K=Z.sigBytes;if(this.clamp(),j%4)for(var u=0;u<K;u++){var M=L[u>>>2]>>>24-u%4*8&255;D[j+u>>>2]|=M<<24-(j+u)%4*8}else for(var B=0;B<K;B+=4)D[j+B>>>2]=L[B>>>2];return this.sigBytes+=K,this},clamp:function(){var Z=this.words,D=this.sigBytes;Z[D>>>2]&=4294967295<<32-D%4*8,Z.length=q.ceil(D/4)},clone:function(){var Z=F.clone.call(this);return Z.words=this.words.slice(0),Z},random:function(Z){for(var D=[],L=0;L<Z;L+=4)D.push(I());return new U.init(D,Z)}}),Y=T.enc={},P=Y.Hex={stringify:function(Z){for(var{words:D,sigBytes:L}=Z,j=[],K=0;K<L;K++){var u=D[K>>>2]>>>24-K%4*8&255;j.push((u>>>4).toString(16)),j.push((15&u).toString(16))}return j.join("")},parse:function(Z){for(var D=Z.length,L=[],j=0;j<D;j+=2)L[j>>>3]|=parseInt(Z.substr(j,2),16)<<24-j%8*4;return new U.init(L,D/2)}},E=Y.Latin1={stringify:function(Z){for(var{words:D,sigBytes:L}=Z,j=[],K=0;K<L;K++){var u=D[K>>>2]>>>24-K%4*8&255;j.push(String.fromCharCode(u))}return j.join("")},parse:function(Z){for(var D=Z.length,L=[],j=0;j<D;j++)L[j>>>2]|=(255&Z.charCodeAt(j))<<24-j%4*8;return new U.init(L,D)}},N=Y.Utf8={stringify:function(Z){try{return decodeURIComponent(escape(E.stringify(Z)))}catch(D){throw new Error("Malformed UTF-8 data")}},parse:function(Z){return E.parse(unescape(encodeURIComponent(Z)))}},V=Q.BufferedBlockAlgorithm=F.extend({reset:function(){this._data=new U.init,this._nDataBytes=0},_append:function(Z){"string"==typeof Z&&(Z=N.parse(Z)),this._data.concat(Z),this._nDataBytes+=Z.sigBytes},_process:function(Z){var D,L=this._data,j=L.words,K=L.sigBytes,u=this.blockSize,M,B=K/(4*u),b=(B=Z?q.ceil(B):q.max((0|B)-this._minBufferSize,0))*u,m=q.min(4*b,K);if(b){for(var J=0;J<b;J+=u)this._doProcessBlock(j,J);D=j.splice(0,b),L.sigBytes-=m}return new U.init(D,m)},clone:function(){var Z=F.clone.call(this);return Z._data=this._data.clone(),Z},_minBufferSize:0}),z=Q.Hasher=V.extend({cfg:F.extend(),init:function(Z){this.cfg=this.cfg.extend(Z),this.reset()},reset:function(){V.reset.call(this),this._doReset()},update:function(Z){return this._append(Z),this._process(),this},finalize:function(Z){var D;return Z&&this._append(Z),this._doFinalize()},blockSize:16,_createHelper:function(Z){return function(D,L){return new Z.init(L).finalize(D)}},_createHmacHelper:function(Z){return function(D,L){return new G.HMAC.init(Z,L).finalize(D)}}}),G=T.algo={};return T}(Math);return $}))}),Oq=S((vq,T$)=>{!function($,q){"object"==typeof vq?T$.exports=vq=q(h()):"function"==typeof define&&define.amd?define(["./core"],q):q($.CryptoJS)}(vq,(function($){return R=(v=$).lib,I=R.Base,O=R.WordArray,T=v.x64={},Q=T.Word=I.extend({init:function(U,Y){this.high=U,this.low=Y}}),F=T.WordArray=I.extend({init:function(U,Y){U=this.words=U||[],this.sigBytes=Y!=q?Y:8*U.length},toX32:function(){for(var U=this.words,Y=U.length,P=[],E=0;E<Y;E++){var N=U[E];P.push(N.high),P.push(N.low)}return O.create(P,this.sigBytes)},clone:function(){for(var U=I.clone.call(this),Y=U.words=this.words.slice(0),P=Y.length,E=0;E<P;E++)Y[E]=Y[E].clone();return U}}),$;var q,v,R,I,O,T,Q,F}))}),I$=S((Lq,J$)=>{!function($,q){"object"==typeof Lq?J$.exports=Lq=q(h()):"function"==typeof define&&define.amd?define(["./core"],q):q($.CryptoJS)}(Lq,(function($){return function(){if("function"==typeof ArrayBuffer){var q,v,R=$.lib.WordArray,I=R.init,O;(R.init=function(T){if(T instanceof ArrayBuffer&&(T=new Uint8Array(T)),(T instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&T instanceof Uint8ClampedArray||T instanceof Int16Array||T instanceof Uint16Array||T instanceof Int32Array||T instanceof Uint32Array||T instanceof Float32Array||T instanceof Float64Array)&&(T=new Uint8Array(T.buffer,T.byteOffset,T.byteLength)),T instanceof Uint8Array){for(var Q=T.byteLength,F=[],U=0;U<Q;U++)F[U>>>2]|=T[U]<<24-U%4*8;I.call(this,F,Q)}else I.apply(this,arguments)}).prototype=R}}(),$.lib.WordArray}))}),w$=S((Kq,A$)=>{!function($,q){"object"==typeof Kq?A$.exports=Kq=q(h()):"function"==typeof define&&define.amd?define(["./core"],q):q($.CryptoJS)}(Kq,(function($){return function(){var q=$,v,R=q.lib.WordArray,I=q.enc,O=I.Utf16=I.Utf16BE={stringify:function(Q){for(var{words:F,sigBytes:U}=Q,Y=[],P=0;P<U;P+=2){var E=F[P>>>2]>>>16-P%4*8&65535;Y.push(String.fromCharCode(E))}return Y.join("")},parse:function(Q){for(var F=Q.length,U=[],Y=0;Y<F;Y++)U[Y>>>1]|=Q.charCodeAt(Y)<<16-Y%2*16;return R.create(U,2*F)}};function T(Q){return Q<<8&4278255360|Q>>>8&16711935}I.Utf16LE={stringify:function(Q){for(var{words:F,sigBytes:U}=Q,Y=[],P=0;P<U;P+=2){var E=T(F[P>>>2]>>>16-P%4*8&65535);Y.push(String.fromCharCode(E))}return Y.join("")},parse:function(Q){for(var F=Q.length,U=[],Y=0;Y<F;Y++)U[Y>>>1]|=T(Q.charCodeAt(Y)<<16-Y%2*16);return R.create(U,2*F)}}}(),$.enc.Utf16}))}),qq=S((uq,X$)=>{!function($,q){"object"==typeof uq?X$.exports=uq=q(h()):"function"==typeof define&&define.amd?define(["./core"],q):q($.CryptoJS)}(uq,(function($){return function(){var q=$,v,R=q.lib.WordArray,I,O=q.enc.Base64={stringify:function(Q){var{words:F,sigBytes:U}=Q,Y=this._map;Q.clamp();for(var P=[],E=0;E<U;E+=3)for(var N,V,z,G=(F[E>>>2]>>>24-E%4*8&255)<<16|(F[E+1>>>2]>>>24-(E+1)%4*8&255)<<8|F[E+2>>>2]>>>24-(E+2)%4*8&255,Z=0;Z<4&&E+.75*Z<U;Z++)P.push(Y.charAt(G>>>6*(3-Z)&63));var D=Y.charAt(64);if(D)for(;P.length%4;)P.push(D);return P.join("")},parse:function(Q){var F=Q.length,U=this._map,Y=this._reverseMap;if(!Y){Y=this._reverseMap=[];for(var P=0;P<U.length;P++)Y[U.charCodeAt(P)]=P}var E=U.charAt(64);if(E){var N=Q.indexOf(E);-1!==N&&(F=N)}return T(Q,F,Y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function T(Q,F,U){for(var Y=[],P=0,E=0;E<F;E++)if(E%4){var N,V,z=U[Q.charCodeAt(E-1)]<<E%4*2|U[Q.charCodeAt(E)]>>>6-E%4*2;Y[P>>>2]|=z<<24-P%4*8,P++}return R.create(Y,P)}}(),$.enc.Base64}))}),k$=S((Tq,H$)=>{!function($,q){"object"==typeof Tq?H$.exports=Tq=q(h()):"function"==typeof define&&define.amd?define(["./core"],q):q($.CryptoJS)}(Tq,(function($){return function(){var q=$,v,R=q.lib.WordArray,I,O=q.enc.Base64url={stringify:function(Q,F){void 0===F&&(F=!0);var{words:U,sigBytes:Y}=Q,P=F?this._safe_map:this._map;Q.clamp();for(var E=[],N=0;N<Y;N+=3)for(var V,z,G,Z=(U[N>>>2]>>>24-N%4*8&255)<<16|(U[N+1>>>2]>>>24-(N+1)%4*8&255)<<8|U[N+2>>>2]>>>24-(N+2)%4*8&255,D=0;D<4&&N+.75*D<Y;D++)E.push(P.charAt(Z>>>6*(3-D)&63));var L=P.charAt(64);if(L)for(;E.length%4;)E.push(L);return E.join("")},parse:function(Q,F){void 0===F&&(F=!0);var U=Q.length,Y=F?this._safe_map:this._map,P=this._reverseMap;if(!P){P=this._reverseMap=[];for(var E=0;E<Y.length;E++)P[Y.charCodeAt(E)]=E}var N=Y.charAt(64);if(N){var V=Q.indexOf(N);-1!==V&&(U=V)}return T(Q,U,P)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function T(Q,F,U){for(var Y=[],P=0,E=0;E<F;E++)if(E%4){var N,V,z=U[Q.charCodeAt(E-1)]<<E%4*2|U[Q.charCodeAt(E)]>>>6-E%4*2;Y[P>>>2]|=z<<24-P%4*8,P++}return R.create(Y,P)}}(),$.enc.Base64url}))}),$q=S((Jq,B$)=>{!function($,q){"object"==typeof Jq?B$.exports=Jq=q(h()):"function"==typeof define&&define.amd?define(["./core"],q):q($.CryptoJS)}(Jq,(function($){return function(q){var v=$,R=v.lib,I=R.WordArray,O=R.Hasher,T=v.algo,Q=[];!function(){for(var N=0;N<64;N++)Q[N]=4294967296*q.abs(q.sin(N+1))|0}();var F=T.MD5=O.extend({_doReset:function(){this._hash=new I.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(N,V){for(var z=0;z<16;z++){var G=V+z,Z=N[G];N[G]=16711935&(Z<<8|Z>>>24)|4278255360&(Z<<24|Z>>>8)}var D=this._hash.words,L=N[V+0],j=N[V+1],K=N[V+2],u=N[V+3],M=N[V+4],B=N[V+5],b=N[V+6],m=N[V+7],J=N[V+8],W=N[V+9],g=N[V+10],H=N[V+11],_=N[V+12],x=N[V+13],n=N[V+14],l=N[V+15],A=D[0],X=D[1],k=D[2],w=D[3];A=U(A,X,k,w,L,7,Q[0]),w=U(w,A,X,k,j,12,Q[1]),k=U(k,w,A,X,K,17,Q[2]),X=U(X,k,w,A,u,22,Q[3]),A=U(A,X,k,w,M,7,Q[4]),w=U(w,A,X,k,B,12,Q[5]),k=U(k,w,A,X,b,17,Q[6]),X=U(X,k,w,A,m,22,Q[7]),A=U(A,X,k,w,J,7,Q[8]),w=U(w,A,X,k,W,12,Q[9]),k=U(k,w,A,X,g,17,Q[10]),X=U(X,k,w,A,H,22,Q[11]),A=U(A,X,k,w,_,7,Q[12]),w=U(w,A,X,k,x,12,Q[13]),k=U(k,w,A,X,n,17,Q[14]),A=Y(A,X=U(X,k,w,A,l,22,Q[15]),k,w,j,5,Q[16]),w=Y(w,A,X,k,b,9,Q[17]),k=Y(k,w,A,X,H,14,Q[18]),X=Y(X,k,w,A,L,20,Q[19]),A=Y(A,X,k,w,B,5,Q[20]),w=Y(w,A,X,k,g,9,Q[21]),k=Y(k,w,A,X,l,14,Q[22]),X=Y(X,k,w,A,M,20,Q[23]),A=Y(A,X,k,w,W,5,Q[24]),w=Y(w,A,X,k,n,9,Q[25]),k=Y(k,w,A,X,u,14,Q[26]),X=Y(X,k,w,A,J,20,Q[27]),A=Y(A,X,k,w,x,5,Q[28]),w=Y(w,A,X,k,K,9,Q[29]),k=Y(k,w,A,X,m,14,Q[30]),A=P(A,X=Y(X,k,w,A,_,20,Q[31]),k,w,B,4,Q[32]),w=P(w,A,X,k,J,11,Q[33]),k=P(k,w,A,X,H,16,Q[34]),X=P(X,k,w,A,n,23,Q[35]),A=P(A,X,k,w,j,4,Q[36]),w=P(w,A,X,k,M,11,Q[37]),k=P(k,w,A,X,m,16,Q[38]),X=P(X,k,w,A,g,23,Q[39]),A=P(A,X,k,w,x,4,Q[40]),w=P(w,A,X,k,L,11,Q[41]),k=P(k,w,A,X,u,16,Q[42]),X=P(X,k,w,A,b,23,Q[43]),A=P(A,X,k,w,W,4,Q[44]),w=P(w,A,X,k,_,11,Q[45]),k=P(k,w,A,X,l,16,Q[46]),A=E(A,X=P(X,k,w,A,K,23,Q[47]),k,w,L,6,Q[48]),w=E(w,A,X,k,m,10,Q[49]),k=E(k,w,A,X,n,15,Q[50]),X=E(X,k,w,A,B,21,Q[51]),A=E(A,X,k,w,_,6,Q[52]),w=E(w,A,X,k,u,10,Q[53]),k=E(k,w,A,X,g,15,Q[54]),X=E(X,k,w,A,j,21,Q[55]),A=E(A,X,k,w,J,6,Q[56]),w=E(w,A,X,k,l,10,Q[57]),k=E(k,w,A,X,b,15,Q[58]),X=E(X,k,w,A,x,21,Q[59]),A=E(A,X,k,w,M,6,Q[60]),w=E(w,A,X,k,H,10,Q[61]),k=E(k,w,A,X,K,15,Q[62]),X=E(X,k,w,A,W,21,Q[63]),D[0]=D[0]+A|0,D[1]=D[1]+X|0,D[2]=D[2]+k|0,D[3]=D[3]+w|0},_doFinalize:function(){var N=this._data,V=N.words,z=8*this._nDataBytes,G=8*N.sigBytes;V[G>>>5]|=128<<24-G%32;var Z=q.floor(z/4294967296),D=z;V[15+(G+64>>>9<<4)]=16711935&(Z<<8|Z>>>24)|4278255360&(Z<<24|Z>>>8),V[14+(G+64>>>9<<4)]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),N.sigBytes=4*(V.length+1),this._process();for(var L=this._hash,j=L.words,K=0;K<4;K++){var u=j[K];j[K]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return L},clone:function(){var N=O.clone.call(this);return N._hash=this._hash.clone(),N}});function U(N,V,z,G,Z,D,L){var j=N+(V&z|~V&G)+Z+L;return(j<<D|j>>>32-D)+V}function Y(N,V,z,G,Z,D,L){var j=N+(V&G|z&~G)+Z+L;return(j<<D|j>>>32-D)+V}function P(N,V,z,G,Z,D,L){var j=N+(V^z^G)+Z+L;return(j<<D|j>>>32-D)+V}function E(N,V,z,G,Z,D,L){var j=N+(z^(V|~G))+Z+L;return(j<<D|j>>>32-D)+V}v.MD5=O._createHelper(F),v.HmacMD5=O._createHmacHelper(F)}(Math),$.MD5}))}),Z$=S((Iq,W$)=>{!function($,q){"object"==typeof Iq?W$.exports=Iq=q(h()):"function"==typeof define&&define.amd?define(["./core"],q):q($.CryptoJS)}(Iq,(function($){return v=(q=$).lib,R=v.WordArray,I=v.Hasher,O=q.algo,T=[],Q=O.SHA1=I.extend({_doReset:function(){this._hash=new R.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(F,U){for(var Y=this._hash.words,P=Y[0],E=Y[1],N=Y[2],V=Y[3],z=Y[4],G=0;G<80;G++){if(G<16)T[G]=0|F[U+G];else{var Z=T[G-3]^T[G-8]^T[G-14]^T[G-16];T[G]=Z<<1|Z>>>31}var D=(P<<5|P>>>27)+z+T[G];D+=G<20?1518500249+(E&N|~E&V):G<40?1859775393+(E^N^V):G<60?(E&N|E&V|N&V)-1894007588:(E^N^V)-899497514,z=V,V=N,N=E<<30|E>>>2,E=P,P=D}Y[0]=Y[0]+P|0,Y[1]=Y[1]+E|0,Y[2]=Y[2]+N|0,Y[3]=Y[3]+V|0,Y[4]=Y[4]+z|0},_doFinalize:function(){var F=this._data,U=F.words,Y=8*this._nDataBytes,P=8*F.sigBytes;return U[P>>>5]|=128<<24-P%32,U[14+(P+64>>>9<<4)]=Math.floor(Y/4294967296),U[15+(P+64>>>9<<4)]=Y,F.sigBytes=4*U.length,this._process(),this._hash},clone:function(){var F=I.clone.call(this);return F._hash=this._hash.clone(),F}}),q.SHA1=I._createHelper(Q),q.HmacSHA1=I._createHmacHelper(Q),$.SHA1;var q,v,R,I,O,T,Q}))}),wq=S((Aq,M$)=>{!function($,q){"object"==typeof Aq?M$.exports=Aq=q(h()):"function"==typeof define&&define.amd?define(["./core"],q):q($.CryptoJS)}(Aq,(function($){return function(q){var v=$,R=v.lib,I=R.WordArray,O=R.Hasher,T=v.algo,Q=[],F=[];!function(){function P(z){for(var G=q.sqrt(z),Z=2;Z<=G;Z++)if(!(z%Z))return!1;return!0}function E(z){return 4294967296*(z-(0|z))|0}for(var N=2,V=0;V<64;)P(N)&&(V<8&&(Q[V]=E(q.pow(N,.5))),F[V]=E(q.pow(N,.3333333333333333)),V++),N++}();var U=[],Y=T.SHA256=O.extend({_doReset:function(){this._hash=new I.init(Q.slice(0))},_doProcessBlock:function(P,E){for(var N=this._hash.words,V=N[0],z=N[1],G=N[2],Z=N[3],D=N[4],L=N[5],j=N[6],K=N[7],u=0;u<64;u++){if(u<16)U[u]=0|P[E+u];else{var M=U[u-15],B=(M<<25|M>>>7)^(M<<14|M>>>18)^M>>>3,b=U[u-2],m=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;U[u]=B+U[u-7]+m+U[u-16]}var J,W=V&z^V&G^z&G,g=(V<<30|V>>>2)^(V<<19|V>>>13)^(V<<10|V>>>22),H,_=K+((D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25))+(D&L^~D&j)+F[u]+U[u],x;K=j,j=L,L=D,D=Z+_|0,Z=G,G=z,z=V,V=_+(g+W)|0}N[0]=N[0]+V|0,N[1]=N[1]+z|0,N[2]=N[2]+G|0,N[3]=N[3]+Z|0,N[4]=N[4]+D|0,N[5]=N[5]+L|0,N[6]=N[6]+j|0,N[7]=N[7]+K|0},_doFinalize:function(){var P=this._data,E=P.words,N=8*this._nDataBytes,V=8*P.sigBytes;return E[V>>>5]|=128<<24-V%32,E[14+(V+64>>>9<<4)]=q.floor(N/4294967296),E[15+(V+64>>>9<<4)]=N,P.sigBytes=4*E.length,this._process(),this._hash},clone:function(){var P=O.clone.call(this);return P._hash=this._hash.clone(),P}});v.SHA256=O._createHelper(Y),v.HmacSHA256=O._createHmacHelper(Y)}(Math),$.SHA256}))}),g$=S((Xq,b$)=>{!function($,q,v){"object"==typeof Xq?b$.exports=Xq=q(h(),wq()):"function"==typeof define&&define.amd?define(["./core","./sha256"],q):q($.CryptoJS)}(Xq,(function($){return R=(q=$).lib.WordArray,I=q.algo,O=I.SHA256,T=I.SHA224=O.extend({_doReset:function(){this._hash=new R.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var Q=O._doFinalize.call(this);return Q.sigBytes-=4,Q}}),q.SHA224=O._createHelper(T),q.HmacSHA224=O._createHmacHelper(T),$.SHA224;var q,v,R,I,O,T}))}),Y$=S((Hq,m$)=>{!function($,q,v){"object"==typeof Hq?m$.exports=Hq=q(h(),Oq()):"function"==typeof define&&define.amd?define(["./core","./x64-core"],q):q($.CryptoJS)}(Hq,(function($){return function(){var q=$,v,R=q.lib.Hasher,I=q.x64,O=I.Word,T=I.WordArray,Q=q.algo;function F(){return O.create.apply(O,arguments)}var U=[F(1116352408,3609767458),F(1899447441,602891725),F(3049323471,3964484399),F(3921009573,2173295548),F(961987163,4081628472),F(1508970993,3053834265),F(2453635748,2937671579),F(2870763221,3664609560),F(3624381080,2734883394),F(310598401,1164996542),F(607225278,1323610764),F(1426881987,3590304994),F(1925078388,4068182383),F(2162078206,991336113),F(2614888103,633803317),F(3248222580,3479774868),F(3835390401,2666613458),F(4022224774,944711139),F(264347078,2341262773),F(604807628,2007800933),F(770255983,1495990901),F(1249150122,1856431235),F(1555081692,3175218132),F(1996064986,2198950837),F(2554220882,3999719339),F(2821834349,766784016),F(2952996808,2566594879),F(3210313671,3203337956),F(3336571891,1034457026),F(3584528711,2466948901),F(113926993,3758326383),F(338241895,168717936),F(666307205,1188179964),F(773529912,1546045734),F(1294757372,1522805485),F(1396182291,2643833823),F(1695183700,2343527390),F(1986661051,1014477480),F(2177026350,1206759142),F(2456956037,344077627),F(2730485921,1290863460),F(2820302411,3158454273),F(3259730800,3505952657),F(3345764771,106217008),F(3516065817,3606008344),F(3600352804,1432725776),F(4094571909,1467031594),F(275423344,851169720),F(430227734,3100823752),F(506948616,1363258195),F(659060556,3750685593),F(883997877,3785050280),F(958139571,3318307427),F(1322822218,3812723403),F(1537002063,2003034995),F(1747873779,3602036899),F(1955562222,1575990012),F(2024104815,1125592928),F(2227730452,2716904306),F(2361852424,442776044),F(2428436474,593698344),F(2756734187,3733110249),F(3204031479,2999351573),F(3329325298,3815920427),F(3391569614,3928383900),F(3515267271,566280711),F(3940187606,3454069534),F(4118630271,4000239992),F(116418474,1914138554),F(174292421,2731055270),F(289380356,3203993006),F(460393269,320620315),F(685471733,587496836),F(852142971,1086792851),F(1017036298,365543100),F(1126000580,2618297676),F(1288033470,3409855158),F(1501505948,4234509866),F(1607167915,987167468),F(1816402316,1246189591)],Y=[];!function(){for(var E=0;E<80;E++)Y[E]=F()}();var P=Q.SHA512=R.extend({_doReset:function(){this._hash=new T.init([new O.init(1779033703,4089235720),new O.init(3144134277,2227873595),new O.init(1013904242,4271175723),new O.init(2773480762,1595750129),new O.init(1359893119,2917565137),new O.init(2600822924,725511199),new O.init(528734635,4215389547),new O.init(1541459225,327033209)])},_doProcessBlock:function(E,N){for(var V=this._hash.words,z=V[0],G=V[1],Z=V[2],D=V[3],L=V[4],j=V[5],K=V[6],u=V[7],M=z.high,B=z.low,b=G.high,m=G.low,J=Z.high,W=Z.low,g=D.high,H=D.low,_=L.high,x=L.low,n=j.high,l=j.low,A=K.high,X=K.low,k=u.high,w=u.low,f=M,p=B,y=b,C=m,Eq=J,Qq=W,q$=g,Dq=H,o=_,c=x,jq=n,Fq=l,zq=A,Vq=X,$$=k,Nq=w,a=0;a<80;a++){var s,t,Gq=Y[a];if(a<16)t=Gq.high=0|E[N+2*a],s=Gq.low=0|E[N+2*a+1];else{var F$=Y[a-15],Zq=F$.high,Pq=F$.low,WQ=(Zq>>>1|Pq<<31)^(Zq>>>8|Pq<<24)^Zq>>>7,V$=(Pq>>>1|Zq<<31)^(Pq>>>8|Zq<<24)^(Pq>>>7|Zq<<25),N$=Y[a-2],Yq=N$.high,Uq=N$.low,MQ=(Yq>>>19|Uq<<13)^(Yq<<3|Uq>>>29)^Yq>>>6,P$=(Uq>>>19|Yq<<13)^(Uq<<3|Yq>>>29)^(Uq>>>6|Yq<<26),U$=Y[a-7],bQ=U$.high,gQ=U$.low,O$=Y[a-16],mQ=O$.high,j$=O$.low;t=(t=(t=WQ+bQ+((s=V$+gQ)>>>0<V$>>>0?1:0))+MQ+((s+=P$)>>>0<P$>>>0?1:0))+mQ+((s+=j$)>>>0<j$>>>0?1:0),Gq.high=t,Gq.low=s}var xQ=o&jq^~o&zq,z$=c&Fq^~c&Vq,_Q=f&y^f&Eq^y&Eq,nQ=p&C^p&Qq^C&Qq,CQ=(f>>>28|p<<4)^(f<<30|p>>>2)^(f<<25|p>>>7),G$=(p>>>28|f<<4)^(p<<30|f>>>2)^(p<<25|f>>>7),SQ=(o>>>14|c<<18)^(o>>>18|c<<14)^(o<<23|c>>>9),hQ=(c>>>14|o<<18)^(c>>>18|o<<14)^(c<<23|o>>>9),R$=U[a],lQ=R$.high,v$=R$.low,i,e=$$+SQ+((i=Nq+hQ)>>>0<Nq>>>0?1:0),i,e,i,e,i,e,L$=G$+nQ,pQ;$$=zq,Nq=Vq,zq=jq,Vq=Fq,jq=o,Fq=c,o=q$+(e=(e=(e=e+xQ+((i=i+z$)>>>0<z$>>>0?1:0))+lQ+((i=i+v$)>>>0<v$>>>0?1:0))+t+((i=i+s)>>>0<s>>>0?1:0))+((c=Dq+i|0)>>>0<Dq>>>0?1:0)|0,q$=Eq,Dq=Qq,Eq=y,Qq=C,y=f,C=p,f=e+(CQ+_Q+(L$>>>0<G$>>>0?1:0))+((p=i+L$|0)>>>0<i>>>0?1:0)|0}B=z.low=B+p,z.high=M+f+(B>>>0<p>>>0?1:0),m=G.low=m+C,G.high=b+y+(m>>>0<C>>>0?1:0),W=Z.low=W+Qq,Z.high=J+Eq+(W>>>0<Qq>>>0?1:0),H=D.low=H+Dq,D.high=g+q$+(H>>>0<Dq>>>0?1:0),x=L.low=x+c,L.high=_+o+(x>>>0<c>>>0?1:0),l=j.low=l+Fq,j.high=n+jq+(l>>>0<Fq>>>0?1:0),X=K.low=X+Vq,K.high=A+zq+(X>>>0<Vq>>>0?1:0),w=u.low=w+Nq,u.high=k+$$+(w>>>0<Nq>>>0?1:0)},_doFinalize:function(){var E=this._data,N=E.words,V=8*this._nDataBytes,z=8*E.sigBytes,G;return N[z>>>5]|=128<<24-z%32,N[30+(z+128>>>10<<5)]=Math.floor(V/4294967296),N[31+(z+128>>>10<<5)]=V,E.sigBytes=4*N.length,this._process(),this._hash.toX32()},clone:function(){var E=R.clone.call(this);return E._hash=this._hash.clone(),E},blockSize:32});q.SHA512=R._createHelper(P),q.HmacSHA512=R._createHmacHelper(P)}(),$.SHA512}))}),_$=S((kq,x$)=>{!function($,q,v){"object"==typeof kq?x$.exports=kq=q(h(),Oq(),Y$()):"function"==typeof define&&define.amd?define(["./core","./x64-core","./sha512"],q):q($.CryptoJS)}(kq,(function($){return v=(q=$).x64,R=v.Word,I=v.WordArray,O=q.algo,T=O.SHA512,Q=O.SHA384=T.extend({_doReset:function(){this._hash=new I.init([new R.init(3418070365,3238371032),new R.init(1654270250,914150663),new R.init(2438529370,812702999),new R.init(355462360,4144912697),new R.init(1731405415,4290775857),new R.init(2394180231,1750603025),new R.init(3675008525,1694076839),new R.init(1203062813,3204075428)])},_doFinalize:function(){var F=T._doFinalize.call(this);return F.sigBytes-=16,F}}),q.SHA384=T._createHelper(Q),q.HmacSHA384=T._createHmacHelper(Q),$.SHA384;var q,v,R,I,O,T,Q}))}),C$=S((Bq,n$)=>{!function($,q,v){"object"==typeof Bq?n$.exports=Bq=q(h(),Oq()):"function"==typeof define&&define.amd?define(["./core","./x64-core"],q):q($.CryptoJS)}(Bq,(function($){return function(q){var v=$,R=v.lib,I=R.WordArray,O=R.Hasher,T,Q=v.x64.Word,F=v.algo,U=[],Y=[],P=[];!function(){for(var V=1,z=0,G=0;G<24;G++){U[V+5*z]=(G+1)*(G+2)/2%64;var Z,D=(2*V+3*z)%5;V=z%5,z=D}for(var V=0;V<5;V++)for(var z=0;z<5;z++)Y[V+5*z]=z+(2*V+3*z)%5*5;for(var L=1,j=0;j<24;j++){for(var K=0,u=0,M=0;M<7;M++){if(1&L){var B=(1<<M)-1;B<32?u^=1<<B:K^=1<<B-32}128&L?L=L<<1^113:L<<=1}P[j]=Q.create(K,u)}}();var E=[];!function(){for(var V=0;V<25;V++)E[V]=Q.create()}();var N=F.SHA3=O.extend({cfg:O.cfg.extend({outputLength:512}),_doReset:function(){for(var V=this._state=[],z=0;z<25;z++)V[z]=new Q.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(V,z){for(var G=this._state,Z=this.blockSize/2,D=0;D<Z;D++){var L=V[z+2*D],j=V[z+2*D+1],K;L=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8),j=16711935&(j<<8|j>>>24)|4278255360&(j<<24|j>>>8),(K=G[D]).high^=j,K.low^=L}for(var u=0;u<24;u++){for(var M=0;M<5;M++){for(var B=0,b=0,m=0;m<5;m++){var K;B^=(K=G[M+5*m]).high,b^=K.low}var J=E[M];J.high=B,J.low=b}for(var M=0;M<5;M++)for(var W=E[(M+4)%5],g=E[(M+1)%5],H=g.high,_=g.low,B=W.high^(H<<1|_>>>31),b=W.low^(_<<1|H>>>31),m=0;m<5;m++){var K;(K=G[M+5*m]).high^=B,K.low^=b}for(var x=1;x<25;x++){var B,b,K,n=(K=G[x]).high,l=K.low,A=U[x];A<32?(B=n<<A|l>>>32-A,b=l<<A|n>>>32-A):(B=l<<A-32|n>>>64-A,b=n<<A-32|l>>>64-A);var X=E[Y[x]];X.high=B,X.low=b}var k=E[0],w=G[0];k.high=w.high,k.low=w.low;for(var M=0;M<5;M++)for(var m=0;m<5;m++){var x,K=G[x=M+5*m],f=E[x],p=E[(M+1)%5+5*m],y=E[(M+2)%5+5*m];K.high=f.high^~p.high&y.high,K.low=f.low^~p.low&y.low}var K=G[0],C=P[u];K.high^=C.high,K.low^=C.low}},_doFinalize:function(){var V=this._data,z=V.words,G=8*this._nDataBytes,Z=8*V.sigBytes,D=32*this.blockSize;z[Z>>>5]|=1<<24-Z%32,z[(q.ceil((Z+1)/D)*D>>>5)-1]|=128,V.sigBytes=4*z.length,this._process();for(var L=this._state,j=this.cfg.outputLength/8,K=j/8,u=[],M=0;M<K;M++){var B=L[M],b=B.high,m=B.low;b=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8),m=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),u.push(m),u.push(b)}return new I.init(u,j)},clone:function(){for(var V=O.clone.call(this),z=V._state=this._state.slice(0),G=0;G<25;G++)z[G]=z[G].clone();return V}});v.SHA3=O._createHelper(N),v.HmacSHA3=O._createHmacHelper(N)}(Math),$.SHA3}))}),h$=S((Wq,S$)=>{!function($,q){"object"==typeof Wq?S$.exports=Wq=q(h()):"function"==typeof define&&define.amd?define(["./core"],q):q($.CryptoJS)}(Wq,(function($){return function(q){var v=$,R=v.lib,I=R.WordArray,O=R.Hasher,T=v.algo,Q=I.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),F=I.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),U=I.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),Y=I.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),P=I.create([0,1518500249,1859775393,2400959708,2840853838]),E=I.create([1352829926,1548603684,1836072691,2053994217,0]),N=T.RIPEMD160=O.extend({_doReset:function(){this._hash=I.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(j,K){for(var u=0;u<16;u++){var M=K+u,B=j[M];j[M]=16711935&(B<<8|B>>>24)|4278255360&(B<<24|B>>>8)}var b=this._hash.words,m=P.words,J=E.words,W=Q.words,g=F.words,H=U.words,_=Y.words,x,n,l,A,X,k,w,f,p,y,C;k=x=b[0],w=n=b[1],f=l=b[2],p=A=b[3],y=X=b[4];for(var u=0;u<80;u+=1)C=x+j[K+W[u]]|0,C+=u<16?V(n,l,A)+m[0]:u<32?z(n,l,A)+m[1]:u<48?G(n,l,A)+m[2]:u<64?Z(n,l,A)+m[3]:D(n,l,A)+m[4],C=(C=L(C|=0,H[u]))+X|0,x=X,X=A,A=L(l,10),l=n,n=C,C=k+j[K+g[u]]|0,C+=u<16?D(w,f,p)+J[0]:u<32?Z(w,f,p)+J[1]:u<48?G(w,f,p)+J[2]:u<64?z(w,f,p)+J[3]:V(w,f,p)+J[4],C=(C=L(C|=0,_[u]))+y|0,k=y,y=p,p=L(f,10),f=w,w=C;C=b[1]+l+p|0,b[1]=b[2]+A+y|0,b[2]=b[3]+X+k|0,b[3]=b[4]+x+w|0,b[4]=b[0]+n+f|0,b[0]=C},_doFinalize:function(){var j=this._data,K=j.words,u=8*this._nDataBytes,M=8*j.sigBytes;K[M>>>5]|=128<<24-M%32,K[14+(M+64>>>9<<4)]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),j.sigBytes=4*(K.length+1),this._process();for(var B=this._hash,b=B.words,m=0;m<5;m++){var J=b[m];b[m]=16711935&(J<<8|J>>>24)|4278255360&(J<<24|J>>>8)}return B},clone:function(){var j=O.clone.call(this);return j._hash=this._hash.clone(),j}});function V(j,K,u){return j^K^u}function z(j,K,u){return j&K|~j&u}function G(j,K,u){return(j|~K)^u}function Z(j,K,u){return j&u|K&~u}function D(j,K,u){return j^(K|~u)}function L(j,K){return j<<K|j>>>32-K}v.RIPEMD160=O._createHelper(N),v.HmacRIPEMD160=O._createHmacHelper(N)}(Math),$.RIPEMD160}))}),bq=S((Mq,l$)=>{!function($,q){"object"==typeof Mq?l$.exports=Mq=q(h()):"function"==typeof define&&define.amd?define(["./core"],q):q($.CryptoJS)}(Mq,(function($){var q,v,R,I,O,T,Q;R=(q=$).lib.Base,O=q.enc.Utf8,Q=q.algo.HMAC=R.extend({init:function(F,U){F=this._hasher=new F.init,"string"==typeof U&&(U=O.parse(U));var Y=F.blockSize,P=4*Y;U.sigBytes>P&&(U=F.finalize(U)),U.clamp();for(var E=this._oKey=U.clone(),N=this._iKey=U.clone(),V=E.words,z=N.words,G=0;G<Y;G++)V[G]^=1549556828,z[G]^=909522486;E.sigBytes=N.sigBytes=P,this.reset()},reset:function(){var F=this._hasher;F.reset(),F.update(this._iKey)},update:function(F){return this._hasher.update(F),this},finalize:function(F){var U=this._hasher,Y=U.finalize(F),P;return U.reset(),U.finalize(this._oKey.clone().concat(Y))}})}))}),f$=S((gq,p$)=>{!function($,q,v){"object"==typeof gq?p$.exports=gq=q(h(),wq(),bq()):"function"==typeof define&&define.amd?define(["./core","./sha256","./hmac"],q):q($.CryptoJS)}(gq,(function($){return v=(q=$).lib,R=v.Base,I=v.WordArray,O=q.algo,T=O.SHA256,Q=O.HMAC,F=O.PBKDF2=R.extend({cfg:R.extend({keySize:4,hasher:T,iterations:25e4}),init:function(U){this.cfg=this.cfg.extend(U)},compute:function(U,Y){for(var P=this.cfg,E=Q.create(P.hasher,U),N=I.create(),V=I.create([1]),z=N.words,G=V.words,Z=P.keySize,D=P.iterations;z.length<Z;){var L=E.update(Y).finalize(V);E.reset();for(var j=L.words,K=j.length,u=L,M=1;M<D;M++){u=E.finalize(u),E.reset();for(var B=u.words,b=0;b<K;b++)j[b]^=B[b]}N.concat(L),G[0]++}return N.sigBytes=4*Z,N}}),q.PBKDF2=function(U,Y,P){return F.create(P).compute(U,Y)},$.PBKDF2;var q,v,R,I,O,T,Q,F}))}),r=S((mq,d$)=>{!function($,q,v){"object"==typeof mq?d$.exports=mq=q(h(),Z$(),bq()):"function"==typeof define&&define.amd?define(["./core","./sha1","./hmac"],q):q($.CryptoJS)}(mq,(function($){return v=(q=$).lib,R=v.Base,I=v.WordArray,O=q.algo,T=O.MD5,Q=O.EvpKDF=R.extend({cfg:R.extend({keySize:4,hasher:T,iterations:1}),init:function(F){this.cfg=this.cfg.extend(F)},compute:function(F,U){for(var Y,P=this.cfg,E=P.hasher.create(),N=I.create(),V=N.words,z=P.keySize,G=P.iterations;V.length<z;){Y&&E.update(Y),Y=E.update(F).finalize(U),E.reset();for(var Z=1;Z<G;Z++)Y=E.finalize(Y),E.reset();N.concat(Y)}return N.sigBytes=4*z,N}}),q.EvpKDF=function(F,U,Y){return Q.create(Y).compute(F,U)},$.EvpKDF;var q,v,R,I,O,T,Q}))}),d=S((xq,y$)=>{!function($,q,v){"object"==typeof xq?y$.exports=xq=q(h(),r()):"function"==typeof define&&define.amd?define(["./core","./evpkdf"],q):q($.CryptoJS)}(xq,(function($){var q,v,R,I,O,T,Q,F,U,Y,P,E,N,V,z,G,Z,D,L,j,K,u,M,B,b,m;$.lib.Cipher||(R=(v=$).lib,I=R.Base,O=R.WordArray,T=R.BufferedBlockAlgorithm,Q=v.enc,F=Q.Utf8,U=Q.Base64,P=v.algo.EvpKDF,E=R.Cipher=T.extend({cfg:I.extend(),createEncryptor:function(J,W){return this.create(this._ENC_XFORM_MODE,J,W)},createDecryptor:function(J,W){return this.create(this._DEC_XFORM_MODE,J,W)},init:function(J,W,g){this.cfg=this.cfg.extend(g),this._xformMode=J,this._key=W,this.reset()},reset:function(){T.reset.call(this),this._doReset()},process:function(J){return this._append(J),this._process()},finalize:function(J){var W;return J&&this._append(J),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function J(W){return"string"==typeof W?m:M}return function(W){return{encrypt:function(g,H,_){return J(H).encrypt(W,g,H,_)},decrypt:function(g,H,_){return J(H).decrypt(W,g,H,_)}}}}()}),N=R.StreamCipher=E.extend({_doFinalize:function(){var J;return this._process(!0)},blockSize:1}),V=v.mode={},z=R.BlockCipherMode=I.extend({createEncryptor:function(J,W){return this.Encryptor.create(J,W)},createDecryptor:function(J,W){return this.Decryptor.create(J,W)},init:function(J,W){this._cipher=J,this._iv=W}}),G=V.CBC=function(){var J=z.extend();function W(g,H,_){var x,n=this._iv;n?(x=n,this._iv=q):x=this._prevBlock;for(var l=0;l<_;l++)g[H+l]^=x[l]}return J.Encryptor=J.extend({processBlock:function(g,H){var _=this._cipher,x=_.blockSize;W.call(this,g,H,x),_.encryptBlock(g,H),this._prevBlock=g.slice(H,H+x)}}),J.Decryptor=J.extend({processBlock:function(g,H){var _=this._cipher,x=_.blockSize,n=g.slice(H,H+x);_.decryptBlock(g,H),W.call(this,g,H,x),this._prevBlock=n}}),J}(),D=(v.pad={}).Pkcs7={pad:function(J,W){for(var g=4*W,H=g-J.sigBytes%g,_=H<<24|H<<16|H<<8|H,x=[],n=0;n<H;n+=4)x.push(_);var l=O.create(x,H);J.concat(l)},unpad:function(J){var W=255&J.words[J.sigBytes-1>>>2];J.sigBytes-=W}},L=R.BlockCipher=E.extend({cfg:E.cfg.extend({mode:G,padding:D}),reset:function(){var J;E.reset.call(this);var W=this.cfg,g=W.iv,H=W.mode;this._xformMode==this._ENC_XFORM_MODE?J=H.createEncryptor:(J=H.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==J?this._mode.init(this,g&&g.words):(this._mode=J.call(H,this,g&&g.words),this._mode.__creator=J)},_doProcessBlock:function(J,W){this._mode.processBlock(J,W)},_doFinalize:function(){var J,W=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(W.pad(this._data,this.blockSize),J=this._process(!0)):(J=this._process(!0),W.unpad(J)),J},blockSize:4}),j=R.CipherParams=I.extend({init:function(J){this.mixIn(J)},toString:function(J){return(J||this.formatter).stringify(this)}}),u=(v.format={}).OpenSSL={stringify:function(J){var W,g=J.ciphertext,H=J.salt;return(W=H?O.create([1398893684,1701076831]).concat(H).concat(g):g).toString(U)},parse:function(J){var W,g=U.parse(J),H=g.words;return 1398893684==H[0]&&1701076831==H[1]&&(W=O.create(H.slice(2,4)),H.splice(0,4),g.sigBytes-=16),j.create({ciphertext:g,salt:W})}},M=R.SerializableCipher=I.extend({cfg:I.extend({format:u}),encrypt:function(J,W,g,H){H=this.cfg.extend(H);var _=J.createEncryptor(g,H),x=_.finalize(W),n=_.cfg;return j.create({ciphertext:x,key:g,iv:n.iv,algorithm:J,mode:n.mode,padding:n.padding,blockSize:J.blockSize,formatter:H.format})},decrypt:function(J,W,g,H){var _;return H=this.cfg.extend(H),W=this._parse(W,H.format),J.createDecryptor(g,H).finalize(W.ciphertext)},_parse:function(J,W){return"string"==typeof J?W.parse(J,this):J}}),b=(v.kdf={}).OpenSSL={execute:function(J,W,g,H,_){if(H||(H=O.random(8)),_)var x=P.create({keySize:W+g,hasher:_}).compute(J,H);else var x=P.create({keySize:W+g}).compute(J,H);var n=O.create(x.words.slice(W),4*g);return x.sigBytes=4*W,j.create({key:x,iv:n,salt:H})}},m=R.PasswordBasedCipher=M.extend({cfg:M.cfg.extend({kdf:b}),encrypt:function(J,W,g,H){var _=(H=this.cfg.extend(H)).kdf.execute(g,J.keySize,J.ivSize,H.salt,H.hasher);H.iv=_.iv;var x=M.encrypt.call(this,J,W,_.key,H);return x.mixIn(_),x},decrypt:function(J,W,g,H){H=this.cfg.extend(H),W=this._parse(W,H.format);var _=H.kdf.execute(g,J.keySize,J.ivSize,W.salt,H.hasher),x;return H.iv=_.iv,M.decrypt.call(this,J,W,_.key,H)}}))}))}),i$=S((_q,c$)=>{!function($,q,v){"object"==typeof _q?c$.exports=_q=q(h(),d()):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],q):q($.CryptoJS)}(_q,(function($){return $.mode.CFB=function(){var q=$.lib.BlockCipherMode.extend();function v(R,I,O,T){var Q,F=this._iv;F?(Q=F.slice(0),this._iv=void 0):Q=this._prevBlock,T.encryptBlock(Q,0);for(var U=0;U<O;U++)R[I+U]^=Q[U]}return q.Encryptor=q.extend({processBlock:function(R,I){var O=this._cipher,T=O.blockSize;v.call(this,R,I,T,O),this._prevBlock=R.slice(I,I+T)}}),q.Decryptor=q.extend({processBlock:function(R,I){var O=this._cipher,T=O.blockSize,Q=R.slice(I,I+T);v.call(this,R,I,T,O),this._prevBlock=Q}}),q}(),$.mode.CFB}))}),o$=S((nq,s$)=>{!function($,q,v){"object"==typeof nq?s$.exports=nq=q(h(),d()):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],q):q($.CryptoJS)}(nq,(function($){return $.mode.CTR=(q=$.lib.BlockCipherMode.extend(),v=q.Encryptor=q.extend({processBlock:function(R,I){var O=this._cipher,T=O.blockSize,Q=this._iv,F=this._counter;Q&&(F=this._counter=Q.slice(0),this._iv=void 0);var U=F.slice(0);O.encryptBlock(U,0),F[T-1]=F[T-1]+1|0;for(var Y=0;Y<T;Y++)R[I+Y]^=U[Y]}}),q.Decryptor=v,q),$.mode.CTR;var q,v}))}),r$=S((Cq,a$)=>{!function($,q,v){"object"==typeof Cq?a$.exports=Cq=q(h(),d()):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],q):q($.CryptoJS)}(Cq,(function($){return $.mode.CTRGladman=function(){var q=$.lib.BlockCipherMode.extend();function v(O){if(255==(O>>24&255)){var T=O>>16&255,Q=O>>8&255,F=255&O;255===T?(T=0,255===Q?(Q=0,255===F?F=0:++F):++Q):++T,O=0,O+=T<<16,O+=Q<<8,O+=F}else O+=1<<24;return O}function R(O){return 0===(O[0]=v(O[0]))&&(O[1]=v(O[1])),O}var I=q.Encryptor=q.extend({processBlock:function(O,T){var Q=this._cipher,F=Q.blockSize,U=this._iv,Y=this._counter;U&&(Y=this._counter=U.slice(0),this._iv=void 0),R(Y);var P=Y.slice(0);Q.encryptBlock(P,0);for(var E=0;E<F;E++)O[T+E]^=P[E]}});return q.Decryptor=I,q}(),$.mode.CTRGladman}))}),e$=S((Sq,t$)=>{!function($,q,v){"object"==typeof Sq?t$.exports=Sq=q(h(),d()):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],q):q($.CryptoJS)}(Sq,(function($){return $.mode.OFB=(q=$.lib.BlockCipherMode.extend(),v=q.Encryptor=q.extend({processBlock:function(R,I){var O=this._cipher,T=O.blockSize,Q=this._iv,F=this._keystream;Q&&(F=this._keystream=Q.slice(0),this._iv=void 0),O.encryptBlock(F,0);for(var U=0;U<T;U++)R[I+U]^=F[U]}}),q.Decryptor=v,q),$.mode.OFB;var q,v}))}),$Q=S((hq,qQ)=>{!function($,q,v){"object"==typeof hq?qQ.exports=hq=q(h(),d()):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],q):q($.CryptoJS)}(hq,(function($){return $.mode.ECB=((q=$.lib.BlockCipherMode.extend()).Encryptor=q.extend({processBlock:function(v,R){this._cipher.encryptBlock(v,R)}}),q.Decryptor=q.extend({processBlock:function(v,R){this._cipher.decryptBlock(v,R)}}),q),$.mode.ECB;var q}))}),ZQ=S((lq,QQ)=>{!function($,q,v){"object"==typeof lq?QQ.exports=lq=q(h(),d()):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],q):q($.CryptoJS)}(lq,(function($){return $.pad.AnsiX923={pad:function(q,v){var R=q.sigBytes,I=4*v,O=I-R%I,T=R+O-1;q.clamp(),q.words[T>>>2]|=O<<24-T%4*8,q.sigBytes+=O},unpad:function(q){var v=255&q.words[q.sigBytes-1>>>2];q.sigBytes-=v}},$.pad.Ansix923}))}),EQ=S((pq,YQ)=>{!function($,q,v){"object"==typeof pq?YQ.exports=pq=q(h(),d()):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],q):q($.CryptoJS)}(pq,(function($){return $.pad.Iso10126={pad:function(q,v){var R=4*v,I=R-q.sigBytes%R;q.concat($.lib.WordArray.random(I-1)).concat($.lib.WordArray.create([I<<24],1))},unpad:function(q){var v=255&q.words[q.sigBytes-1>>>2];q.sigBytes-=v}},$.pad.Iso10126}))}),FQ=S((fq,DQ)=>{!function($,q,v){"object"==typeof fq?DQ.exports=fq=q(h(),d()):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],q):q($.CryptoJS)}(fq,(function($){return $.pad.Iso97971={pad:function(q,v){q.concat($.lib.WordArray.create([2147483648],1)),$.pad.ZeroPadding.pad(q,v)},unpad:function(q){$.pad.ZeroPadding.unpad(q),q.sigBytes--}},$.pad.Iso97971}))}),NQ=S((dq,VQ)=>{!function($,q,v){"object"==typeof dq?VQ.exports=dq=q(h(),d()):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],q):q($.CryptoJS)}(dq,(function($){return $.pad.ZeroPadding={pad:function(q,v){var R=4*v;q.clamp(),q.sigBytes+=R-(q.sigBytes%R||R)},unpad:function(q){for(var v=q.words,R=q.sigBytes-1,R=q.sigBytes-1;R>=0;R--)if(v[R>>>2]>>>24-R%4*8&255){q.sigBytes=R+1;break}}},$.pad.ZeroPadding}))}),UQ=S((yq,PQ)=>{!function($,q,v){"object"==typeof yq?PQ.exports=yq=q(h(),d()):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],q):q($.CryptoJS)}(yq,(function($){return $.pad.NoPadding={pad:function(){},unpad:function(){}},$.pad.NoPadding}))}),jQ=S((cq,OQ)=>{!function($,q,v){"object"==typeof cq?OQ.exports=cq=q(h(),d()):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],q):q($.CryptoJS)}(cq,(function($){return I=(v=$).lib.CipherParams,T=v.enc.Hex,F=v.format.Hex={stringify:function(U){return U.ciphertext.toString(T)},parse:function(U){var Y=T.parse(U);return I.create({ciphertext:Y})}},$.format.Hex;var q,v,R,I,O,T,Q,F}))}),GQ=S((iq,zQ)=>{!function($,q,v){"object"==typeof iq?zQ.exports=iq=q(h(),qq(),$q(),r(),d()):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],q):q($.CryptoJS)}(iq,(function($){return function(){var q=$,v,R=q.lib.BlockCipher,I=q.algo,O=[],T=[],Q=[],F=[],U=[],Y=[],P=[],E=[],N=[],V=[];!function(){for(var Z=[],D=0;D<256;D++)Z[D]=D<128?D<<1:D<<1^283;for(var L=0,j=0,D=0;D<256;D++){var K=j^j<<1^j<<2^j<<3^j<<4;K=K>>>8^255&K^99,O[L]=K,T[K]=L;var u=Z[L],M=Z[u],B=Z[M],b=257*Z[K]^16843008*K;Q[L]=b<<24|b>>>8,F[L]=b<<16|b>>>16,U[L]=b<<8|b>>>24,Y[L]=b;var b=16843009*B^65537*M^257*u^16843008*L;P[K]=b<<24|b>>>8,E[K]=b<<16|b>>>16,N[K]=b<<8|b>>>24,V[K]=b,L?(L=u^Z[Z[Z[B^u]]],j^=Z[Z[j]]):L=j=1}}();var z=[0,1,2,4,8,16,32,64,128,27,54],G=I.AES=R.extend({_doReset:function(){var Z;if(!this._nRounds||this._keyPriorReset!==this._key){for(var D=this._keyPriorReset=this._key,L=D.words,j=D.sigBytes/4,K,u=4*((this._nRounds=j+6)+1),M=this._keySchedule=[],B=0;B<u;B++)B<j?M[B]=L[B]:(Z=M[B-1],B%j?j>6&&B%j==4&&(Z=O[Z>>>24]<<24|O[Z>>>16&255]<<16|O[Z>>>8&255]<<8|O[255&Z]):(Z=O[(Z=Z<<8|Z>>>24)>>>24]<<24|O[Z>>>16&255]<<16|O[Z>>>8&255]<<8|O[255&Z],Z^=z[B/j|0]<<24),M[B]=M[B-j]^Z);for(var b=this._invKeySchedule=[],m=0;m<u;m++){var B=u-m;if(m%4)var Z=M[B];else var Z=M[B-4];b[m]=m<4||B<=4?Z:P[O[Z>>>24]]^E[O[Z>>>16&255]]^N[O[Z>>>8&255]]^V[O[255&Z]]}}},encryptBlock:function(Z,D){this._doCryptBlock(Z,D,this._keySchedule,Q,F,U,Y,O)},decryptBlock:function(Z,D){var L=Z[D+1];Z[D+1]=Z[D+3],Z[D+3]=L,this._doCryptBlock(Z,D,this._invKeySchedule,P,E,N,V,T);var L=Z[D+1];Z[D+1]=Z[D+3],Z[D+3]=L},_doCryptBlock:function(Z,D,L,j,K,u,M,B){for(var b=this._nRounds,m=Z[D]^L[0],J=Z[D+1]^L[1],W=Z[D+2]^L[2],g=Z[D+3]^L[3],H=4,_=1;_<b;_++){var x=j[m>>>24]^K[J>>>16&255]^u[W>>>8&255]^M[255&g]^L[H++],n=j[J>>>24]^K[W>>>16&255]^u[g>>>8&255]^M[255&m]^L[H++],l=j[W>>>24]^K[g>>>16&255]^u[m>>>8&255]^M[255&J]^L[H++],A=j[g>>>24]^K[m>>>16&255]^u[J>>>8&255]^M[255&W]^L[H++];m=x,J=n,W=l,g=A}var x=(B[m>>>24]<<24|B[J>>>16&255]<<16|B[W>>>8&255]<<8|B[255&g])^L[H++],n=(B[J>>>24]<<24|B[W>>>16&255]<<16|B[g>>>8&255]<<8|B[255&m])^L[H++],l=(B[W>>>24]<<24|B[g>>>16&255]<<16|B[m>>>8&255]<<8|B[255&J])^L[H++],A=(B[g>>>24]<<24|B[m>>>16&255]<<16|B[J>>>8&255]<<8|B[255&W])^L[H++];Z[D]=x,Z[D+1]=n,Z[D+2]=l,Z[D+3]=A},keySize:8});q.AES=R._createHelper(G)}(),$.AES}))}),vQ=S((sq,RQ)=>{!function($,q,v){"object"==typeof sq?RQ.exports=sq=q(h(),qq(),$q(),r(),d()):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],q):q($.CryptoJS)}(sq,(function($){return function(){var q=$,v=q.lib,R=v.WordArray,I=v.BlockCipher,O=q.algo,T=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],Q=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],F=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],U=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],Y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],P=O.DES=I.extend({_doReset:function(){for(var z,G=this._key.words,Z=[],D=0;D<56;D++){var L=T[D]-1;Z[D]=G[L>>>5]>>>31-L%32&1}for(var j=this._subKeys=[],K=0;K<16;K++){for(var u=j[K]=[],M=F[K],D=0;D<24;D++)u[D/6|0]|=Z[(Q[D]-1+M)%28]<<31-D%6,u[4+(D/6|0)]|=Z[28+(Q[D+24]-1+M)%28]<<31-D%6;u[0]=u[0]<<1|u[0]>>>31;for(var D=1;D<7;D++)u[D]=u[D]>>>4*(D-1)+3;u[7]=u[7]<<5|u[7]>>>27}for(var B=this._invSubKeys=[],D=0;D<16;D++)B[D]=j[15-D]},encryptBlock:function(z,G){this._doCryptBlock(z,G,this._subKeys)},decryptBlock:function(z,G){this._doCryptBlock(z,G,this._invSubKeys)},_doCryptBlock:function(z,G,Z){this._lBlock=z[G],this._rBlock=z[G+1],E.call(this,4,252645135),E.call(this,16,65535),N.call(this,2,858993459),N.call(this,8,16711935),E.call(this,1,1431655765);for(var D=0;D<16;D++){for(var L=Z[D],j=this._lBlock,K=this._rBlock,u=0,M=0;M<8;M++)u|=U[M][((K^L[M])&Y[M])>>>0];this._lBlock=K,this._rBlock=j^u}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,E.call(this,1,1431655765),N.call(this,8,16711935),N.call(this,2,858993459),E.call(this,16,65535),E.call(this,4,252645135),z[G]=this._lBlock,z[G+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function E(z,G){var Z=(this._lBlock>>>z^this._rBlock)&G;this._rBlock^=Z,this._lBlock^=Z<<z}function N(z,G){var Z=(this._rBlock>>>z^this._lBlock)&G;this._lBlock^=Z,this._rBlock^=Z<<z}q.DES=I._createHelper(P);var V=O.TripleDES=I.extend({_doReset:function(){var z,G=this._key.words;if(2!==G.length&&4!==G.length&&G.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var Z=G.slice(0,2),D=G.length<4?G.slice(0,2):G.slice(2,4),L=G.length<6?G.slice(0,2):G.slice(4,6);this._des1=P.createEncryptor(R.create(Z)),this._des2=P.createEncryptor(R.create(D)),this._des3=P.createEncryptor(R.create(L))},encryptBlock:function(z,G){this._des1.encryptBlock(z,G),this._des2.decryptBlock(z,G),this._des3.encryptBlock(z,G)},decryptBlock:function(z,G){this._des3.decryptBlock(z,G),this._des2.encryptBlock(z,G),this._des1.decryptBlock(z,G)},keySize:6,ivSize:2,blockSize:2});q.TripleDES=I._createHelper(V)}(),$.TripleDES}))}),KQ=S((oq,LQ)=>{!function($,q,v){"object"==typeof oq?LQ.exports=oq=q(h(),qq(),$q(),r(),d()):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],q):q($.CryptoJS)}(oq,(function($){return function(){var q=$,v,R=q.lib.StreamCipher,I=q.algo,O=I.RC4=R.extend({_doReset:function(){for(var F=this._key,U=F.words,Y=F.sigBytes,P=this._S=[],E=0;E<256;E++)P[E]=E;for(var E=0,N=0;E<256;E++){var V=E%Y,z=U[V>>>2]>>>24-V%4*8&255;N=(N+P[E]+z)%256;var G=P[E];P[E]=P[N],P[N]=G}this._i=this._j=0},_doProcessBlock:function(F,U){F[U]^=T.call(this)},keySize:8,ivSize:0});function T(){for(var F=this._S,U=this._i,Y=this._j,P=0,E=0;E<4;E++){Y=(Y+F[U=(U+1)%256])%256;var N=F[U];F[U]=F[Y],F[Y]=N,P|=F[(F[U]+F[Y])%256]<<24-8*E}return this._i=U,this._j=Y,P}q.RC4=R._createHelper(O);var Q=I.RC4Drop=O.extend({cfg:O.cfg.extend({drop:192}),_doReset:function(){O._doReset.call(this);for(var F=this.cfg.drop;F>0;F--)T.call(this)}});q.RC4Drop=R._createHelper(Q)}(),$.RC4}))}),TQ=S((aq,uQ)=>{!function($,q,v){"object"==typeof aq?uQ.exports=aq=q(h(),qq(),$q(),r(),d()):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],q):q($.CryptoJS)}(aq,(function($){return function(){var q=$,v,R=q.lib.StreamCipher,I=q.algo,O=[],T=[],Q=[],F=I.Rabbit=R.extend({_doReset:function(){for(var Y=this._key.words,P=this.cfg.iv,E=0;E<4;E++)Y[E]=16711935&(Y[E]<<8|Y[E]>>>24)|4278255360&(Y[E]<<24|Y[E]>>>8);var N=this._X=[Y[0],Y[3]<<16|Y[2]>>>16,Y[1],Y[0]<<16|Y[3]>>>16,Y[2],Y[1]<<16|Y[0]>>>16,Y[3],Y[2]<<16|Y[1]>>>16],V=this._C=[Y[2]<<16|Y[2]>>>16,4294901760&Y[0]|65535&Y[1],Y[3]<<16|Y[3]>>>16,4294901760&Y[1]|65535&Y[2],Y[0]<<16|Y[0]>>>16,4294901760&Y[2]|65535&Y[3],Y[1]<<16|Y[1]>>>16,4294901760&Y[3]|65535&Y[0]];this._b=0;for(var E=0;E<4;E++)U.call(this);for(var E=0;E<8;E++)V[E]^=N[E+4&7];if(P){var z=P.words,G=z[0],Z=z[1],D=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8),L=16711935&(Z<<8|Z>>>24)|4278255360&(Z<<24|Z>>>8),j=D>>>16|4294901760&L,K=L<<16|65535&D;V[0]^=D,V[1]^=j,V[2]^=L,V[3]^=K,V[4]^=D,V[5]^=j,V[6]^=L,V[7]^=K;for(var E=0;E<4;E++)U.call(this)}},_doProcessBlock:function(Y,P){var E=this._X;U.call(this),O[0]=E[0]^E[5]>>>16^E[3]<<16,O[1]=E[2]^E[7]>>>16^E[5]<<16,O[2]=E[4]^E[1]>>>16^E[7]<<16,O[3]=E[6]^E[3]>>>16^E[1]<<16;for(var N=0;N<4;N++)O[N]=16711935&(O[N]<<8|O[N]>>>24)|4278255360&(O[N]<<24|O[N]>>>8),Y[P+N]^=O[N]},blockSize:4,ivSize:2});function U(){for(var Y=this._X,P=this._C,E=0;E<8;E++)T[E]=P[E];P[0]=P[0]+1295307597+this._b|0,P[1]=P[1]+3545052371+(P[0]>>>0<T[0]>>>0?1:0)|0,P[2]=P[2]+886263092+(P[1]>>>0<T[1]>>>0?1:0)|0,P[3]=P[3]+1295307597+(P[2]>>>0<T[2]>>>0?1:0)|0,P[4]=P[4]+3545052371+(P[3]>>>0<T[3]>>>0?1:0)|0,P[5]=P[5]+886263092+(P[4]>>>0<T[4]>>>0?1:0)|0,P[6]=P[6]+1295307597+(P[5]>>>0<T[5]>>>0?1:0)|0,P[7]=P[7]+3545052371+(P[6]>>>0<T[6]>>>0?1:0)|0,this._b=P[7]>>>0<T[7]>>>0?1:0;for(var E=0;E<8;E++){var N=Y[E]+P[E],V=65535&N,z=N>>>16,G=((V*V>>>17)+V*z>>>15)+z*z,Z=((4294901760&N)*N|0)+((65535&N)*N|0);Q[E]=G^Z}Y[0]=Q[0]+(Q[7]<<16|Q[7]>>>16)+(Q[6]<<16|Q[6]>>>16)|0,Y[1]=Q[1]+(Q[0]<<8|Q[0]>>>24)+Q[7]|0,Y[2]=Q[2]+(Q[1]<<16|Q[1]>>>16)+(Q[0]<<16|Q[0]>>>16)|0,Y[3]=Q[3]+(Q[2]<<8|Q[2]>>>24)+Q[1]|0,Y[4]=Q[4]+(Q[3]<<16|Q[3]>>>16)+(Q[2]<<16|Q[2]>>>16)|0,Y[5]=Q[5]+(Q[4]<<8|Q[4]>>>24)+Q[3]|0,Y[6]=Q[6]+(Q[5]<<16|Q[5]>>>16)+(Q[4]<<16|Q[4]>>>16)|0,Y[7]=Q[7]+(Q[6]<<8|Q[6]>>>24)+Q[5]|0}q.Rabbit=R._createHelper(F)}(),$.Rabbit}))}),IQ=S((rq,JQ)=>{!function($,q,v){"object"==typeof rq?JQ.exports=rq=q(h(),qq(),$q(),r(),d()):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],q):q($.CryptoJS)}(rq,(function($){return function(){var q=$,v,R=q.lib.StreamCipher,I=q.algo,O=[],T=[],Q=[],F=I.RabbitLegacy=R.extend({_doReset:function(){var Y=this._key.words,P=this.cfg.iv,E=this._X=[Y[0],Y[3]<<16|Y[2]>>>16,Y[1],Y[0]<<16|Y[3]>>>16,Y[2],Y[1]<<16|Y[0]>>>16,Y[3],Y[2]<<16|Y[1]>>>16],N=this._C=[Y[2]<<16|Y[2]>>>16,4294901760&Y[0]|65535&Y[1],Y[3]<<16|Y[3]>>>16,4294901760&Y[1]|65535&Y[2],Y[0]<<16|Y[0]>>>16,4294901760&Y[2]|65535&Y[3],Y[1]<<16|Y[1]>>>16,4294901760&Y[3]|65535&Y[0]];this._b=0;for(var V=0;V<4;V++)U.call(this);for(var V=0;V<8;V++)N[V]^=E[V+4&7];if(P){var z=P.words,G=z[0],Z=z[1],D=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8),L=16711935&(Z<<8|Z>>>24)|4278255360&(Z<<24|Z>>>8),j=D>>>16|4294901760&L,K=L<<16|65535&D;N[0]^=D,N[1]^=j,N[2]^=L,N[3]^=K,N[4]^=D,N[5]^=j,N[6]^=L,N[7]^=K;for(var V=0;V<4;V++)U.call(this)}},_doProcessBlock:function(Y,P){var E=this._X;U.call(this),O[0]=E[0]^E[5]>>>16^E[3]<<16,O[1]=E[2]^E[7]>>>16^E[5]<<16,O[2]=E[4]^E[1]>>>16^E[7]<<16,O[3]=E[6]^E[3]>>>16^E[1]<<16;for(var N=0;N<4;N++)O[N]=16711935&(O[N]<<8|O[N]>>>24)|4278255360&(O[N]<<24|O[N]>>>8),Y[P+N]^=O[N]},blockSize:4,ivSize:2});function U(){for(var Y=this._X,P=this._C,E=0;E<8;E++)T[E]=P[E];P[0]=P[0]+1295307597+this._b|0,P[1]=P[1]+3545052371+(P[0]>>>0<T[0]>>>0?1:0)|0,P[2]=P[2]+886263092+(P[1]>>>0<T[1]>>>0?1:0)|0,P[3]=P[3]+1295307597+(P[2]>>>0<T[2]>>>0?1:0)|0,P[4]=P[4]+3545052371+(P[3]>>>0<T[3]>>>0?1:0)|0,P[5]=P[5]+886263092+(P[4]>>>0<T[4]>>>0?1:0)|0,P[6]=P[6]+1295307597+(P[5]>>>0<T[5]>>>0?1:0)|0,P[7]=P[7]+3545052371+(P[6]>>>0<T[6]>>>0?1:0)|0,this._b=P[7]>>>0<T[7]>>>0?1:0;for(var E=0;E<8;E++){var N=Y[E]+P[E],V=65535&N,z=N>>>16,G=((V*V>>>17)+V*z>>>15)+z*z,Z=((4294901760&N)*N|0)+((65535&N)*N|0);Q[E]=G^Z}Y[0]=Q[0]+(Q[7]<<16|Q[7]>>>16)+(Q[6]<<16|Q[6]>>>16)|0,Y[1]=Q[1]+(Q[0]<<8|Q[0]>>>24)+Q[7]|0,Y[2]=Q[2]+(Q[1]<<16|Q[1]>>>16)+(Q[0]<<16|Q[0]>>>16)|0,Y[3]=Q[3]+(Q[2]<<8|Q[2]>>>24)+Q[1]|0,Y[4]=Q[4]+(Q[3]<<16|Q[3]>>>16)+(Q[2]<<16|Q[2]>>>16)|0,Y[5]=Q[5]+(Q[4]<<8|Q[4]>>>24)+Q[3]|0,Y[6]=Q[6]+(Q[5]<<16|Q[5]>>>16)+(Q[4]<<16|Q[4]>>>16)|0,Y[7]=Q[7]+(Q[6]<<8|Q[6]>>>24)+Q[5]|0}q.RabbitLegacy=R._createHelper(F)}(),$.RabbitLegacy}))}),wQ=S((tq,AQ)=>{!function($,q,v){"object"==typeof tq?AQ.exports=tq=q(h(),qq(),$q(),r(),d()):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],q):q($.CryptoJS)}(tq,(function($){return function(){var q=$,v,R=q.lib.BlockCipher,I=q.algo;const O=16,T=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],Q=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var F={pbox:[],sbox:[]};function U(V,z){let G=z>>24&255,Z=z>>16&255,D=z>>8&255,L=255&z,j=V.sbox[0][G]+V.sbox[1][Z];return j^=V.sbox[2][D],j+=V.sbox[3][L],j}function Y(V,z,G){let Z=z,D=G,L;for(let j=0;j<O;++j)Z^=V.pbox[j],D=U(V,Z)^D,L=Z,Z=D,D=L;return L=Z,Z=D,D=L,D^=V.pbox[O],Z^=V.pbox[17],{left:Z,right:D}}function P(V,z,G){let Z=z,D=G,L;for(let j=17;j>1;--j)Z^=V.pbox[j],D=U(V,Z)^D,L=Z,Z=D,D=L;return L=Z,Z=D,D=L,D^=V.pbox[1],Z^=V.pbox[0],{left:Z,right:D}}function E(V,z,G){for(let K=0;K<4;K++){V.sbox[K]=[];for(let u=0;u<256;u++)V.sbox[K][u]=Q[K][u]}let Z=0;for(let K=0;K<18;K++)V.pbox[K]=T[K]^z[Z],Z++,Z>=G&&(Z=0);let D=0,L=0,j=0;for(let K=0;K<18;K+=2)j=Y(V,D,L),D=j.left,L=j.right,V.pbox[K]=D,V.pbox[K+1]=L;for(let K=0;K<4;K++)for(let u=0;u<256;u+=2)j=Y(V,D,L),D=j.left,L=j.right,V.sbox[K][u]=D,V.sbox[K][u+1]=L;return!0}var N=I.Blowfish=R.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var V=this._keyPriorReset=this._key,z=V.words,G=V.sigBytes/4;E(F,z,G)}},encryptBlock:function(V,z){var G=Y(F,V[z],V[z+1]);V[z]=G.left,V[z+1]=G.right},decryptBlock:function(V,z){var G=P(F,V[z],V[z+1]);V[z]=G.left,V[z+1]=G.right},blockSize:2,keySize:4,ivSize:2});q.Blowfish=R._createHelper(N)}(),$.Blowfish}))}),HQ=S((eq,XQ)=>{!function($,q,v){"object"==typeof eq?XQ.exports=eq=q(h(),Oq(),I$(),w$(),qq(),k$(),$q(),Z$(),wq(),g$(),Y$(),_$(),C$(),h$(),bq(),f$(),r(),d(),i$(),o$(),r$(),e$(),$Q(),ZQ(),EQ(),FQ(),NQ(),UQ(),jQ(),GQ(),vQ(),KQ(),TQ(),IQ(),wQ()):"function"==typeof define&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./enc-base64url","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy","./blowfish"],q):$.CryptoJS=$.CryptoJS}(eq,(function($){return $}))}),D$=iQ(HQ(),1);const E$=require("fs");var kQ=D$.default.AES,oQ=D$.default.enc;class BQ{queue=[];password;filePath;tables={};constructor($,q){this.tables={},this.filePath=$||"./database.ht",this.password=q,this.queue=[]}createTable($,q=[]){if(this.readFromFile(),this.tables[$])throw new Error(`Table "${$}" already exists.`);this.tables[$]={columns:q,records:[]},this.saveToFile()}createTableIfNotExists($,q){this.readFromFile(),this.tables[$]||(this.tables[$]={columns:q,records:[]},this.saveToFile())}deleteTable($){if(this.readFromFile(),!this.tables[$])throw new Error(`Table "${$}" does not exist.`);delete this.tables[$],this.saveToFile()}deleteTableIfExists($){this.readFromFile(),this.tables[$]&&(delete this.tables[$],this.saveToFile())}addColumn($,q,v){if(this.readFromFile(),!this.tables[$])throw new Error(`Table "${$}" does not exist.`);if(this.tables[$].columns.includes(q))throw new Error(`Column "${q}" already exists in table "${$}".`);this.tables[$].columns.push(q);for(let R of this.tables[$].records)R[q]=v??null;this.saveToFile()}deleteColumn($,q){if(this.readFromFile(),!this.tables[$])throw new Error(`Table "${$}" does not exist.`);if(!this.tables[$].columns.includes(q))throw new Error(`Column "${q}" does not exist in table "${$}".`);const v=this.tables[$].columns.indexOf(q);this.tables[$].columns.splice(v,1);for(let R of this.tables[$].records)delete R[q];this.saveToFile()}insert($,q){this.queue.push({method:"insert",table:$,record:q}),1===this.queue.length&&this.processQueue()}update($,q,v){this.queue.push({method:"update",table:$,query:q,newData:v}),1===this.queue.length&&this.processQueue()}select($,q={}){if(this.readFromFile(),!this.tables[$])throw new Error(`Table "${$}" does not exist.`);return this.tables[$].records.filter(v=>Object.entries(q).every(([R,I])=>v[R]===I))}delete($,q={}){this.queue.push({method:"delete",table:$,query:q}),1===this.queue.length&&this.processQueue()}processQueue(){const $=this.queue[0];switch($.method){case"insert":this.insertTable($.table,$.record);break;case"update":this.updateTable($.table,$.query,$.newData);break;case"delete":this.deleteFromTable($.table,$.query)}}insertTable($,q){if(this.readFromFile(),!this.tables[$])throw new Error(`Table "${$}" does not exist.`);const v=this.tables[$],R=v.columns.reduce((I,O)=>({...I,[O]:q[O]||null}),{});v.records.push(R),this.saveToFile(),this.queue.shift(),this.queue.length>0&&this.processQueue()}updateTable($,q,v){if(this.readFromFile(),!this.tables[$])throw new Error(`Table "${$}" does not exist.`);const R=this.tables[$],I=R.records.map(O=>(Object.entries(v).forEach(([T,Q])=>{R.columns.includes(T)&&Object.entries(q).every(([F,U])=>O[F]===U)&&(O[T]=Q)}),O));R.records=I,this.saveToFile(),this.queue.shift(),this.queue.length>0&&this.processQueue()}deleteFromTable($,q){if(this.readFromFile(),!this.tables[$])throw new Error(`Table "${$}" does not exist.`);this.tables[$].records=this.tables[$].records.filter(v=>!Object.entries(q).every(([R,I])=>v[R]===I)),this.saveToFile(),this.queue.shift(),this.queue.length>0&&this.processQueue()}saveToFile(){if(!this.filePath.endsWith(".ht"))throw new Error("File path must include '.ht': "+this.filePath);const $=JSON.stringify(this.tables),q=kQ.encrypt($,this.password).toString();E$.writeFileSync(this.filePath,q)}readFromFile(){if(!E$.existsSync(this.filePath))return;const $=E$.readFileSync(this.filePath,"utf8"),q=kQ.decrypt($,this.password).toString(oQ.Utf8);try{this.tables=JSON.parse(q)}catch{this.tables={}}}}module.exports=BQ;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hedystia/db",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "A database made by the company hedystia, easy to use",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"typescript"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "
|
|
18
|
+
"build": "bun build --target=node index.ts --outfile bot.js --minify-syntax --minify-identifiers"
|
|
19
19
|
},
|
|
20
20
|
"author": "contact@hedystia.com",
|
|
21
21
|
"license": "ISC",
|
|
@@ -27,12 +27,10 @@
|
|
|
27
27
|
"url": "https://github.com/Zastinian/hedystia.db/issues"
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://docs.hedystia.com/db/start",
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"crypto-js": "^4.2.0"
|
|
32
|
-
},
|
|
33
30
|
"devDependencies": {
|
|
34
31
|
"@types/crypto-js": "^4.2.2",
|
|
35
|
-
"@types/node": "^20.11.8"
|
|
32
|
+
"@types/node": "^20.11.8",
|
|
33
|
+
"crypto-js": "^4.2.0"
|
|
36
34
|
},
|
|
37
35
|
"engines": {
|
|
38
36
|
"node": ">=18.0.0"
|