@pubinfo-nightly/module-crypto 2026.3.21 → 2026.3.23

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.js CHANGED
@@ -1,58 +1,63 @@
1
- import { createContext as e, defineIconModule as t, defineRouteModule as n, wrapProxy as r } from "pubinfo-nightly";
1
+ import { PubinfoIcon as e, createContext as t, defineIconModule as n, defineRouteModule as r, useAuth as i, wrapProxy as a } from "pubinfo-nightly";
2
+ import { Button as o, CheckableTag as s, Drawer as c, Form as l, FormItem as u, Input as d, Space as f, Switch as p, Textarea as m } from "ant-design-vue/es";
3
+ import { PlusCircleOutlined as h, QuestionCircleOutlined as g } from "@ant-design/icons-vue";
4
+ import { createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, isRef as w, normalizeClass as T, onMounted as E, openBlock as D, reactive as O, ref as k, resolveDirective as A, shallowRef as j, toDisplayString as M, toValue as ee, unref as N, withCtx as P, withDirectives as te } from "vue";
5
+ import { ProTable as F } from "@pubinfo/pro-components";
6
+ import { Modal as I, message as ne } from "ant-design-vue";
2
7
  import './index.css';//#region \0rolldown/runtime.js
3
- var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, c = Object.getPrototypeOf, l = Object.prototype.hasOwnProperty, u = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), d = (e, t) => {
8
+ var re = Object.create, ie = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, oe = Object.getOwnPropertyNames, L = Object.getPrototypeOf, se = Object.prototype.hasOwnProperty, R = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), ce = (e, t) => {
4
9
  let n = {};
5
- for (var r in e) a(n, r, {
10
+ for (var r in e) ie(n, r, {
6
11
  get: e[r],
7
12
  enumerable: !0
8
13
  });
9
- return t || a(n, Symbol.toStringTag, { value: "Module" }), n;
10
- }, f = (e, t, n, r) => {
11
- if (t && typeof t == "object" || typeof t == "function") for (var i = s(t), c = 0, u = i.length, d; c < u; c++) d = i[c], !l.call(e, d) && d !== n && a(e, d, {
12
- get: ((e) => t[e]).bind(null, d),
13
- enumerable: !(r = o(t, d)) || r.enumerable
14
+ return t || ie(n, Symbol.toStringTag, { value: "Module" }), n;
15
+ }, le = (e, t, n, r) => {
16
+ if (t && typeof t == "object" || typeof t == "function") for (var i = oe(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !se.call(e, s) && s !== n && ie(e, s, {
17
+ get: ((e) => t[e]).bind(null, s),
18
+ enumerable: !(r = ae(t, s)) || r.enumerable
14
19
  });
15
20
  return e;
16
- }, p = (e, t, n) => (n = e == null ? {} : i(c(e)), f(t || !e || !e.__esModule ? a(n, "default", {
21
+ }, ue = (e, t, n) => (n = e == null ? {} : re(L(e)), le(t || !e || !e.__esModule ? ie(n, "default", {
17
22
  value: e,
18
23
  enumerable: !0
19
- }) : n, e)), m = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
24
+ }) : n, e)), de = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
20
25
  if (typeof require < "u") return require.apply(this, arguments);
21
26
  throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
22
- }), h = {
27
+ }), fe = {
23
28
  icons: {},
24
29
  layouts: {},
25
30
  pages: {
26
- "src/pages/setting.vue": () => import("./setting-CwkOYk62.js"),
27
- "src/pages/components/drawerCryptoUrl.vue": () => import("./drawerCryptoUrl-D1mGfabN.js").then((e) => e.n)
31
+ "src/pages/setting.vue": () => Promise.resolve().then(() => Dr),
32
+ "src/pages/components/drawerCryptoUrl.vue": () => Promise.resolve().then(() => dr)
28
33
  }
29
- }, g = e("crypto-api"), _ = r(g.use, "request");
34
+ }, pe = t("crypto-api"), me = a(pe.use, "request");
30
35
  //#endregion
31
36
  //#region src/api/modules/crypto/pubSysConfigController.ts
32
- function v(e, t) {
33
- return _.Post("/crypto/editCryptoConfig", e, {
37
+ function he(e, t) {
38
+ return me.Post("/crypto/editCryptoConfig", e, {
34
39
  headers: { "Content-Type": "application/json" },
35
40
  ...t || {}
36
41
  });
37
42
  }
38
- function y(e) {
39
- return _.Get("/crypto/getCryptoConfig", { ...e || {} });
43
+ function ge(e) {
44
+ return me.Get("/crypto/getCryptoConfig", { ...e || {} });
40
45
  }
41
- function b(e) {
42
- return _.Get("/crypto/getPublicKeyAndConfig", { ...e || {} });
46
+ function _e(e) {
47
+ return me.Get("/crypto/getPublicKeyAndConfig", { ...e || {} });
43
48
  }
44
49
  //#endregion
45
50
  //#region src/context.ts
46
- var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
51
+ var z = t("crypto"), ve = /* @__PURE__ */ R(((e, t) => {
47
52
  t.exports = {};
48
- })), C = /* @__PURE__ */ u(((e, t) => {
53
+ })), B = /* @__PURE__ */ R(((e, t) => {
49
54
  (function(n, r) {
50
55
  typeof e == "object" ? t.exports = e = r() : typeof define == "function" && define.amd ? define([], r) : n.CryptoJS = r();
51
56
  })(e, function() {
52
57
  var e = e || function(e, t) {
53
58
  var n;
54
- if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n && typeof global < "u" && global.crypto && (n = global.crypto), !n && typeof m == "function") try {
55
- n = S();
59
+ if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n && typeof global < "u" && global.crypto && (n = global.crypto), !n && typeof de == "function") try {
60
+ n = ve();
56
61
  } catch {}
57
62
  var r = function() {
58
63
  if (n) {
@@ -199,18 +204,18 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
199
204
  },
200
205
  _createHmacHelper: function(e) {
201
206
  return function(t, n) {
202
- return new h.HMAC.init(e, n).finalize(t);
207
+ return new m.HMAC.init(e, n).finalize(t);
203
208
  };
204
209
  }
205
210
  });
206
- var h = a.algo = {};
211
+ var m = a.algo = {};
207
212
  return a;
208
213
  }(Math);
209
214
  return e;
210
215
  });
211
- })), w = /* @__PURE__ */ u(((e, t) => {
216
+ })), ye = /* @__PURE__ */ R(((e, t) => {
212
217
  (function(n, r) {
213
- typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
218
+ typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
214
219
  })(e, function(e) {
215
220
  return (function(t) {
216
221
  var n = e, r = n.lib, i = r.Base, a = r.WordArray, o = n.x64 = {};
@@ -234,9 +239,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
234
239
  });
235
240
  })(), e;
236
241
  });
237
- })), T = /* @__PURE__ */ u(((e, t) => {
242
+ })), be = /* @__PURE__ */ R(((e, t) => {
238
243
  (function(n, r) {
239
- typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
244
+ typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
240
245
  })(e, function(e) {
241
246
  return (function() {
242
247
  if (typeof ArrayBuffer == "function") {
@@ -250,9 +255,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
250
255
  }
251
256
  })(), e.lib.WordArray;
252
257
  });
253
- })), E = /* @__PURE__ */ u(((e, t) => {
258
+ })), xe = /* @__PURE__ */ R(((e, t) => {
254
259
  (function(n, r) {
255
- typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
260
+ typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
256
261
  })(e, function(e) {
257
262
  return (function() {
258
263
  var t = e, n = t.lib.WordArray, r = t.enc;
@@ -286,9 +291,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
286
291
  }
287
292
  })(), e.enc.Utf16;
288
293
  });
289
- })), D = /* @__PURE__ */ u(((e, t) => {
294
+ })), Se = /* @__PURE__ */ R(((e, t) => {
290
295
  (function(n, r) {
291
- typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
296
+ typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
292
297
  })(e, function(e) {
293
298
  return (function() {
294
299
  var t = e, n = t.lib.WordArray, r = t.enc;
@@ -325,9 +330,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
325
330
  }
326
331
  })(), e.enc.Base64;
327
332
  });
328
- })), O = /* @__PURE__ */ u(((e, t) => {
333
+ })), Ce = /* @__PURE__ */ R(((e, t) => {
329
334
  (function(n, r) {
330
- typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
335
+ typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
331
336
  })(e, function(e) {
332
337
  return (function() {
333
338
  var t = e, n = t.lib.WordArray, r = t.enc;
@@ -367,9 +372,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
367
372
  }
368
373
  })(), e.enc.Base64url;
369
374
  });
370
- })), k = /* @__PURE__ */ u(((e, t) => {
375
+ })), we = /* @__PURE__ */ R(((e, t) => {
371
376
  (function(n, r) {
372
- typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
377
+ typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
373
378
  })(e, function(e) {
374
379
  return (function(t) {
375
380
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.algo, s = [];
@@ -428,9 +433,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
428
433
  n.MD5 = a._createHelper(c), n.HmacMD5 = a._createHmacHelper(c);
429
434
  })(Math), e.MD5;
430
435
  });
431
- })), A = /* @__PURE__ */ u(((e, t) => {
436
+ })), Te = /* @__PURE__ */ R(((e, t) => {
432
437
  (function(n, r) {
433
- typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
438
+ typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
434
439
  })(e, function(e) {
435
440
  return (function() {
436
441
  var t = e, n = t.lib, r = n.WordArray, i = n.Hasher, a = t.algo, o = [], s = a.SHA1 = i.extend({
@@ -467,9 +472,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
467
472
  t.SHA1 = i._createHelper(s), t.HmacSHA1 = i._createHmacHelper(s);
468
473
  })(), e.SHA1;
469
474
  });
470
- })), j = /* @__PURE__ */ u(((e, t) => {
475
+ })), Ee = /* @__PURE__ */ R(((e, t) => {
471
476
  (function(n, r) {
472
- typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
477
+ typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
473
478
  })(e, function(e) {
474
479
  return (function(t) {
475
480
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.algo, s = [], c = [];
@@ -511,9 +516,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
511
516
  n.SHA256 = a._createHelper(u), n.HmacSHA256 = a._createHmacHelper(u);
512
517
  })(Math), e.SHA256;
513
518
  });
514
- })), M = /* @__PURE__ */ u(((e, t) => {
519
+ })), De = /* @__PURE__ */ R(((e, t) => {
515
520
  (function(n, r, i) {
516
- typeof e == "object" ? t.exports = e = r(C(), j()) : typeof define == "function" && define.amd ? define(["./core", "./sha256"], r) : r(n.CryptoJS);
521
+ typeof e == "object" ? t.exports = e = r(B(), Ee()) : typeof define == "function" && define.amd ? define(["./core", "./sha256"], r) : r(n.CryptoJS);
517
522
  })(e, function(e) {
518
523
  return (function() {
519
524
  var t = e, n = t.lib.WordArray, r = t.algo, i = r.SHA256, a = r.SHA224 = i.extend({
@@ -537,9 +542,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
537
542
  t.SHA224 = i._createHelper(a), t.HmacSHA224 = i._createHmacHelper(a);
538
543
  })(), e.SHA224;
539
544
  });
540
- })), ee = /* @__PURE__ */ u(((e, t) => {
545
+ })), Oe = /* @__PURE__ */ R(((e, t) => {
541
546
  (function(n, r, i) {
542
- typeof e == "object" ? t.exports = e = r(C(), w()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
547
+ typeof e == "object" ? t.exports = e = r(B(), ye()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
543
548
  })(e, function(e) {
544
549
  return (function() {
545
550
  var t = e, n = t.lib.Hasher, r = t.x64, i = r.Word, a = r.WordArray, o = t.algo;
@@ -645,17 +650,17 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
645
650
  ]);
646
651
  },
647
652
  _doProcessBlock: function(e, t) {
648
- for (var n = this._hash.words, r = n[0], i = n[1], a = n[2], o = n[3], s = n[4], u = n[5], d = n[6], f = n[7], p = r.high, m = r.low, h = i.high, g = i.low, _ = a.high, v = a.low, y = o.high, b = o.low, x = s.high, S = s.low, C = u.high, w = u.low, T = d.high, E = d.low, D = f.high, O = f.low, k = p, A = m, j = h, M = g, ee = _, N = v, te = y, ne = b, P = x, F = S, I = C, L = w, re = T, ie = E, ae = D, R = O, z = 0; z < 80; z++) {
649
- var oe, se, ce = l[z];
650
- if (z < 16) se = ce.high = e[t + z * 2] | 0, oe = ce.low = e[t + z * 2 + 1] | 0;
653
+ for (var n = this._hash.words, r = n[0], i = n[1], a = n[2], o = n[3], s = n[4], u = n[5], d = n[6], f = n[7], p = r.high, m = r.low, h = i.high, g = i.low, _ = a.high, v = a.low, y = o.high, b = o.low, x = s.high, S = s.low, C = u.high, w = u.low, T = d.high, E = d.low, D = f.high, O = f.low, k = p, A = m, j = h, M = g, ee = _, N = v, P = y, te = b, F = x, I = S, ne = C, re = w, ie = T, ae = E, oe = D, L = O, se = 0; se < 80; se++) {
654
+ var R, ce, le = l[se];
655
+ if (se < 16) ce = le.high = e[t + se * 2] | 0, R = le.low = e[t + se * 2 + 1] | 0;
651
656
  else {
652
- var le = l[z - 15], ue = le.high, de = le.low, fe = (ue >>> 1 | de << 31) ^ (ue >>> 8 | de << 24) ^ ue >>> 7, pe = (de >>> 1 | ue << 31) ^ (de >>> 8 | ue << 24) ^ (de >>> 7 | ue << 25), me = l[z - 2], he = me.high, ge = me.low, _e = (he >>> 19 | ge << 13) ^ (he << 3 | ge >>> 29) ^ he >>> 6, ve = (ge >>> 19 | he << 13) ^ (ge << 3 | he >>> 29) ^ (ge >>> 6 | he << 26), ye = l[z - 7], be = ye.high, xe = ye.low, Se = l[z - 16], Ce = Se.high, we = Se.low;
653
- oe = pe + xe, se = fe + be + (oe >>> 0 < pe >>> 0 ? 1 : 0), oe += ve, se = se + _e + (oe >>> 0 < ve >>> 0 ? 1 : 0), oe += we, se = se + Ce + (oe >>> 0 < we >>> 0 ? 1 : 0), ce.high = se, ce.low = oe;
657
+ var ue = l[se - 15], de = ue.high, fe = ue.low, pe = (de >>> 1 | fe << 31) ^ (de >>> 8 | fe << 24) ^ de >>> 7, me = (fe >>> 1 | de << 31) ^ (fe >>> 8 | de << 24) ^ (fe >>> 7 | de << 25), he = l[se - 2], ge = he.high, _e = he.low, z = (ge >>> 19 | _e << 13) ^ (ge << 3 | _e >>> 29) ^ ge >>> 6, ve = (_e >>> 19 | ge << 13) ^ (_e << 3 | ge >>> 29) ^ (_e >>> 6 | ge << 26), B = l[se - 7], ye = B.high, be = B.low, xe = l[se - 16], Se = xe.high, Ce = xe.low;
658
+ R = me + be, ce = pe + ye + (R >>> 0 < me >>> 0 ? 1 : 0), R += ve, ce = ce + z + (R >>> 0 < ve >>> 0 ? 1 : 0), R += Ce, ce = ce + Se + (R >>> 0 < Ce >>> 0 ? 1 : 0), le.high = ce, le.low = R;
654
659
  }
655
- var Te = P & I ^ ~P & re, Ee = F & L ^ ~F & ie, De = k & j ^ k & ee ^ j & ee, Oe = A & M ^ A & N ^ M & N, ke = (k >>> 28 | A << 4) ^ (k << 30 | A >>> 2) ^ (k << 25 | A >>> 7), Ae = (A >>> 28 | k << 4) ^ (A << 30 | k >>> 2) ^ (A << 25 | k >>> 7), je = (P >>> 14 | F << 18) ^ (P >>> 18 | F << 14) ^ (P << 23 | F >>> 9), Me = (F >>> 14 | P << 18) ^ (F >>> 18 | P << 14) ^ (F << 23 | P >>> 9), Ne = c[z], Pe = Ne.high, Fe = Ne.low, B = R + Me, Ie = ae + je + (B >>> 0 < R >>> 0 ? 1 : 0), B = B + Ee, Ie = Ie + Te + (B >>> 0 < Ee >>> 0 ? 1 : 0), B = B + Fe, Ie = Ie + Pe + (B >>> 0 < Fe >>> 0 ? 1 : 0), B = B + oe, Ie = Ie + se + (B >>> 0 < oe >>> 0 ? 1 : 0), Le = Ae + Oe, Re = ke + De + (Le >>> 0 < Ae >>> 0 ? 1 : 0);
656
- ae = re, R = ie, re = I, ie = L, I = P, L = F, F = ne + B | 0, P = te + Ie + (F >>> 0 < ne >>> 0 ? 1 : 0) | 0, te = ee, ne = N, ee = j, N = M, j = k, M = A, A = B + Le | 0, k = Ie + Re + (A >>> 0 < B >>> 0 ? 1 : 0) | 0;
660
+ var we = F & ne ^ ~F & ie, Te = I & re ^ ~I & ae, Ee = k & j ^ k & ee ^ j & ee, De = A & M ^ A & N ^ M & N, Oe = (k >>> 28 | A << 4) ^ (k << 30 | A >>> 2) ^ (k << 25 | A >>> 7), ke = (A >>> 28 | k << 4) ^ (A << 30 | k >>> 2) ^ (A << 25 | k >>> 7), Ae = (F >>> 14 | I << 18) ^ (F >>> 18 | I << 14) ^ (F << 23 | I >>> 9), je = (I >>> 14 | F << 18) ^ (I >>> 18 | F << 14) ^ (I << 23 | F >>> 9), Me = c[se], Ne = Me.high, Pe = Me.low, V = L + je, Fe = oe + Ae + (V >>> 0 < L >>> 0 ? 1 : 0), V = V + Te, Fe = Fe + we + (V >>> 0 < Te >>> 0 ? 1 : 0), V = V + Pe, Fe = Fe + Ne + (V >>> 0 < Pe >>> 0 ? 1 : 0), V = V + R, Fe = Fe + ce + (V >>> 0 < R >>> 0 ? 1 : 0), Ie = ke + De, Le = Oe + Ee + (Ie >>> 0 < ke >>> 0 ? 1 : 0);
661
+ oe = ie, L = ae, ie = ne, ae = re, ne = F, re = I, I = te + V | 0, F = P + Fe + (I >>> 0 < te >>> 0 ? 1 : 0) | 0, P = ee, te = N, ee = j, N = M, j = k, M = A, A = V + Ie | 0, k = Fe + Le + (A >>> 0 < V >>> 0 ? 1 : 0) | 0;
657
662
  }
658
- m = r.low = m + A, r.high = p + k + (m >>> 0 < A >>> 0 ? 1 : 0), g = i.low = g + M, i.high = h + j + (g >>> 0 < M >>> 0 ? 1 : 0), v = a.low = v + N, a.high = _ + ee + (v >>> 0 < N >>> 0 ? 1 : 0), b = o.low = b + ne, o.high = y + te + (b >>> 0 < ne >>> 0 ? 1 : 0), S = s.low = S + F, s.high = x + P + (S >>> 0 < F >>> 0 ? 1 : 0), w = u.low = w + L, u.high = C + I + (w >>> 0 < L >>> 0 ? 1 : 0), E = d.low = E + ie, d.high = T + re + (E >>> 0 < ie >>> 0 ? 1 : 0), O = f.low = O + R, f.high = D + ae + (O >>> 0 < R >>> 0 ? 1 : 0);
663
+ m = r.low = m + A, r.high = p + k + (m >>> 0 < A >>> 0 ? 1 : 0), g = i.low = g + M, i.high = h + j + (g >>> 0 < M >>> 0 ? 1 : 0), v = a.low = v + N, a.high = _ + ee + (v >>> 0 < N >>> 0 ? 1 : 0), b = o.low = b + te, o.high = y + P + (b >>> 0 < te >>> 0 ? 1 : 0), S = s.low = S + I, s.high = x + F + (S >>> 0 < I >>> 0 ? 1 : 0), w = u.low = w + re, u.high = C + ne + (w >>> 0 < re >>> 0 ? 1 : 0), E = d.low = E + ae, d.high = T + ie + (E >>> 0 < ae >>> 0 ? 1 : 0), O = f.low = O + L, f.high = D + oe + (O >>> 0 < L >>> 0 ? 1 : 0);
659
664
  },
660
665
  _doFinalize: function() {
661
666
  var e = this._data, t = e.words, n = this._nDataBytes * 8, r = e.sigBytes * 8;
@@ -670,9 +675,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
670
675
  t.SHA512 = n._createHelper(u), t.HmacSHA512 = n._createHmacHelper(u);
671
676
  })(), e.SHA512;
672
677
  });
673
- })), N = /* @__PURE__ */ u(((e, t) => {
678
+ })), ke = /* @__PURE__ */ R(((e, t) => {
674
679
  (function(n, r, i) {
675
- typeof e == "object" ? t.exports = e = r(C(), w(), ee()) : typeof define == "function" && define.amd ? define([
680
+ typeof e == "object" ? t.exports = e = r(B(), ye(), Oe()) : typeof define == "function" && define.amd ? define([
676
681
  "./core",
677
682
  "./x64-core",
678
683
  "./sha512"
@@ -700,9 +705,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
700
705
  t.SHA384 = o._createHelper(s), t.HmacSHA384 = o._createHmacHelper(s);
701
706
  })(), e.SHA384;
702
707
  });
703
- })), te = /* @__PURE__ */ u(((e, t) => {
708
+ })), Ae = /* @__PURE__ */ R(((e, t) => {
704
709
  (function(n, r, i) {
705
- typeof e == "object" ? t.exports = e = r(C(), w()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
710
+ typeof e == "object" ? t.exports = e = r(B(), ye()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
706
711
  })(e, function(e) {
707
712
  return (function(t) {
708
713
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.x64.Word, s = n.algo, c = [], l = [], u = [];
@@ -789,9 +794,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
789
794
  n.SHA3 = a._createHelper(f), n.HmacSHA3 = a._createHmacHelper(f);
790
795
  })(Math), e.SHA3;
791
796
  });
792
- })), ne = /* @__PURE__ */ u(((e, t) => {
797
+ })), je = /* @__PURE__ */ R(((e, t) => {
793
798
  (function(n, r) {
794
- typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
799
+ typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
795
800
  })(e, function(e) {
796
801
  return (function(t) {
797
802
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.algo, s = i.create([
@@ -1183,9 +1188,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1183
1188
  n.RIPEMD160 = a._createHelper(p), n.HmacRIPEMD160 = a._createHmacHelper(p);
1184
1189
  })(Math), e.RIPEMD160;
1185
1190
  });
1186
- })), P = /* @__PURE__ */ u(((e, t) => {
1191
+ })), Me = /* @__PURE__ */ R(((e, t) => {
1187
1192
  (function(n, r) {
1188
- typeof e == "object" ? t.exports = e = r(C()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
1193
+ typeof e == "object" ? t.exports = e = r(B()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
1189
1194
  })(e, function(e) {
1190
1195
  (function() {
1191
1196
  var t = e, n = t.lib.Base, r = t.enc.Utf8, i = t.algo;
@@ -1211,9 +1216,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1211
1216
  });
1212
1217
  })();
1213
1218
  });
1214
- })), F = /* @__PURE__ */ u(((e, t) => {
1219
+ })), Ne = /* @__PURE__ */ R(((e, t) => {
1215
1220
  (function(n, r, i) {
1216
- typeof e == "object" ? t.exports = e = r(C(), j(), P()) : typeof define == "function" && define.amd ? define([
1221
+ typeof e == "object" ? t.exports = e = r(B(), Ee(), Me()) : typeof define == "function" && define.amd ? define([
1217
1222
  "./core",
1218
1223
  "./sha256",
1219
1224
  "./hmac"
@@ -1247,9 +1252,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1247
1252
  };
1248
1253
  })(), e.PBKDF2;
1249
1254
  });
1250
- })), I = /* @__PURE__ */ u(((e, t) => {
1255
+ })), Pe = /* @__PURE__ */ R(((e, t) => {
1251
1256
  (function(n, r, i) {
1252
- typeof e == "object" ? t.exports = e = r(C(), A(), P()) : typeof define == "function" && define.amd ? define([
1257
+ typeof e == "object" ? t.exports = e = r(B(), Te(), Me()) : typeof define == "function" && define.amd ? define([
1253
1258
  "./core",
1254
1259
  "./sha1",
1255
1260
  "./hmac"
@@ -1279,9 +1284,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1279
1284
  };
1280
1285
  })(), e.EvpKDF;
1281
1286
  });
1282
- })), L = /* @__PURE__ */ u(((e, t) => {
1287
+ })), V = /* @__PURE__ */ R(((e, t) => {
1283
1288
  (function(n, r, i) {
1284
- typeof e == "object" ? t.exports = e = r(C(), I()) : typeof define == "function" && define.amd ? define(["./core", "./evpkdf"], r) : r(n.CryptoJS);
1289
+ typeof e == "object" ? t.exports = e = r(B(), Pe()) : typeof define == "function" && define.amd ? define(["./core", "./evpkdf"], r) : r(n.CryptoJS);
1285
1290
  })(e, function(e) {
1286
1291
  e.lib.Cipher || function(t) {
1287
1292
  var n = e, r = n.lib, i = r.Base, a = r.WordArray, o = r.BufferedBlockAlgorithm, s = n.enc;
@@ -1458,9 +1463,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1458
1463
  });
1459
1464
  }();
1460
1465
  });
1461
- })), re = /* @__PURE__ */ u(((e, t) => {
1466
+ })), Fe = /* @__PURE__ */ R(((e, t) => {
1462
1467
  (function(n, r, i) {
1463
- typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1468
+ typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1464
1469
  })(e, function(e) {
1465
1470
  return e.mode.CFB = function() {
1466
1471
  var t = e.lib.BlockCipherMode.extend();
@@ -1479,9 +1484,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1479
1484
  return t;
1480
1485
  }(), e.mode.CFB;
1481
1486
  });
1482
- })), ie = /* @__PURE__ */ u(((e, t) => {
1487
+ })), Ie = /* @__PURE__ */ R(((e, t) => {
1483
1488
  (function(n, r, i) {
1484
- typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1489
+ typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1485
1490
  })(e, function(e) {
1486
1491
  return e.mode.CTR = function() {
1487
1492
  var t = e.lib.BlockCipherMode.extend();
@@ -1494,9 +1499,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1494
1499
  } }), t;
1495
1500
  }(), e.mode.CTR;
1496
1501
  });
1497
- })), ae = /* @__PURE__ */ u(((e, t) => {
1502
+ })), Le = /* @__PURE__ */ R(((e, t) => {
1498
1503
  (function(n, r, i) {
1499
- typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1504
+ typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1500
1505
  })(e, function(e) {
1501
1506
  return e.mode.CTRGladman = function() {
1502
1507
  var t = e.lib.BlockCipherMode.extend();
@@ -1519,9 +1524,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1519
1524
  } }), t;
1520
1525
  }(), e.mode.CTRGladman;
1521
1526
  });
1522
- })), R = /* @__PURE__ */ u(((e, t) => {
1527
+ })), Re = /* @__PURE__ */ R(((e, t) => {
1523
1528
  (function(n, r, i) {
1524
- typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1529
+ typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1525
1530
  })(e, function(e) {
1526
1531
  return e.mode.OFB = function() {
1527
1532
  var t = e.lib.BlockCipherMode.extend();
@@ -1532,9 +1537,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1532
1537
  } }), t;
1533
1538
  }(), e.mode.OFB;
1534
1539
  });
1535
- })), z = /* @__PURE__ */ u(((e, t) => {
1540
+ })), ze = /* @__PURE__ */ R(((e, t) => {
1536
1541
  (function(n, r, i) {
1537
- typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1542
+ typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1538
1543
  })(e, function(e) {
1539
1544
  return e.mode.ECB = function() {
1540
1545
  var t = e.lib.BlockCipherMode.extend();
@@ -1545,9 +1550,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1545
1550
  } }), t;
1546
1551
  }(), e.mode.ECB;
1547
1552
  });
1548
- })), oe = /* @__PURE__ */ u(((e, t) => {
1553
+ })), Be = /* @__PURE__ */ R(((e, t) => {
1549
1554
  (function(n, r, i) {
1550
- typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1555
+ typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1551
1556
  })(e, function(e) {
1552
1557
  return e.pad.AnsiX923 = {
1553
1558
  pad: function(e, t) {
@@ -1560,9 +1565,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1560
1565
  }
1561
1566
  }, e.pad.Ansix923;
1562
1567
  });
1563
- })), se = /* @__PURE__ */ u(((e, t) => {
1568
+ })), Ve = /* @__PURE__ */ R(((e, t) => {
1564
1569
  (function(n, r, i) {
1565
- typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1570
+ typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1566
1571
  })(e, function(e) {
1567
1572
  return e.pad.Iso10126 = {
1568
1573
  pad: function(t, n) {
@@ -1575,9 +1580,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1575
1580
  }
1576
1581
  }, e.pad.Iso10126;
1577
1582
  });
1578
- })), ce = /* @__PURE__ */ u(((e, t) => {
1583
+ })), He = /* @__PURE__ */ R(((e, t) => {
1579
1584
  (function(n, r, i) {
1580
- typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1585
+ typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1581
1586
  })(e, function(e) {
1582
1587
  return e.pad.Iso97971 = {
1583
1588
  pad: function(t, n) {
@@ -1588,9 +1593,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1588
1593
  }
1589
1594
  }, e.pad.Iso97971;
1590
1595
  });
1591
- })), le = /* @__PURE__ */ u(((e, t) => {
1596
+ })), Ue = /* @__PURE__ */ R(((e, t) => {
1592
1597
  (function(n, r, i) {
1593
- typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1598
+ typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1594
1599
  })(e, function(e) {
1595
1600
  return e.pad.ZeroPadding = {
1596
1601
  pad: function(e, t) {
@@ -1605,18 +1610,18 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1605
1610
  }
1606
1611
  }, e.pad.ZeroPadding;
1607
1612
  });
1608
- })), ue = /* @__PURE__ */ u(((e, t) => {
1613
+ })), We = /* @__PURE__ */ R(((e, t) => {
1609
1614
  (function(n, r, i) {
1610
- typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1615
+ typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1611
1616
  })(e, function(e) {
1612
1617
  return e.pad.NoPadding = {
1613
1618
  pad: function() {},
1614
1619
  unpad: function() {}
1615
1620
  }, e.pad.NoPadding;
1616
1621
  });
1617
- })), de = /* @__PURE__ */ u(((e, t) => {
1622
+ })), Ge = /* @__PURE__ */ R(((e, t) => {
1618
1623
  (function(n, r, i) {
1619
- typeof e == "object" ? t.exports = e = r(C(), L()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1624
+ typeof e == "object" ? t.exports = e = r(B(), V()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1620
1625
  })(e, function(e) {
1621
1626
  return (function(t) {
1622
1627
  var n = e, r = n.lib.CipherParams, i = n.enc.Hex, a = n.format;
@@ -1631,9 +1636,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1631
1636
  };
1632
1637
  })(), e.format.Hex;
1633
1638
  });
1634
- })), fe = /* @__PURE__ */ u(((e, t) => {
1639
+ })), Ke = /* @__PURE__ */ R(((e, t) => {
1635
1640
  (function(n, r, i) {
1636
- typeof e == "object" ? t.exports = e = r(C(), D(), k(), I(), L()) : typeof define == "function" && define.amd ? define([
1641
+ typeof e == "object" ? t.exports = e = r(B(), Se(), we(), Pe(), V()) : typeof define == "function" && define.amd ? define([
1637
1642
  "./core",
1638
1643
  "./enc-base64",
1639
1644
  "./md5",
@@ -1701,9 +1706,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
1701
1706
  t.AES = n._createHelper(h);
1702
1707
  })(), e.AES;
1703
1708
  });
1704
- })), pe = /* @__PURE__ */ u(((e, t) => {
1709
+ })), qe = /* @__PURE__ */ R(((e, t) => {
1705
1710
  (function(n, r, i) {
1706
- typeof e == "object" ? t.exports = e = r(C(), D(), k(), I(), L()) : typeof define == "function" && define.amd ? define([
1711
+ typeof e == "object" ? t.exports = e = r(B(), Se(), we(), Pe(), V()) : typeof define == "function" && define.amd ? define([
1707
1712
  "./core",
1708
1713
  "./enc-base64",
1709
1714
  "./md5",
@@ -2435,9 +2440,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
2435
2440
  t.TripleDES = i._createHelper(m);
2436
2441
  })(), e.TripleDES;
2437
2442
  });
2438
- })), me = /* @__PURE__ */ u(((e, t) => {
2443
+ })), Je = /* @__PURE__ */ R(((e, t) => {
2439
2444
  (function(n, r, i) {
2440
- typeof e == "object" ? t.exports = e = r(C(), D(), k(), I(), L()) : typeof define == "function" && define.amd ? define([
2445
+ typeof e == "object" ? t.exports = e = r(B(), Se(), we(), Pe(), V()) : typeof define == "function" && define.amd ? define([
2441
2446
  "./core",
2442
2447
  "./enc-base64",
2443
2448
  "./md5",
@@ -2482,9 +2487,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
2482
2487
  t.RC4Drop = n._createHelper(o);
2483
2488
  })(), e.RC4;
2484
2489
  });
2485
- })), he = /* @__PURE__ */ u(((e, t) => {
2490
+ })), Ye = /* @__PURE__ */ R(((e, t) => {
2486
2491
  (function(n, r, i) {
2487
- typeof e == "object" ? t.exports = e = r(C(), D(), k(), I(), L()) : typeof define == "function" && define.amd ? define([
2492
+ typeof e == "object" ? t.exports = e = r(B(), Se(), we(), Pe(), V()) : typeof define == "function" && define.amd ? define([
2488
2493
  "./core",
2489
2494
  "./enc-base64",
2490
2495
  "./md5",
@@ -2544,9 +2549,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
2544
2549
  t.Rabbit = n._createHelper(s);
2545
2550
  })(), e.Rabbit;
2546
2551
  });
2547
- })), ge = /* @__PURE__ */ u(((e, t) => {
2552
+ })), Xe = /* @__PURE__ */ R(((e, t) => {
2548
2553
  (function(n, r, i) {
2549
- typeof e == "object" ? t.exports = e = r(C(), D(), k(), I(), L()) : typeof define == "function" && define.amd ? define([
2554
+ typeof e == "object" ? t.exports = e = r(B(), Se(), we(), Pe(), V()) : typeof define == "function" && define.amd ? define([
2550
2555
  "./core",
2551
2556
  "./enc-base64",
2552
2557
  "./md5",
@@ -2605,9 +2610,9 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
2605
2610
  t.RabbitLegacy = n._createHelper(s);
2606
2611
  })(), e.RabbitLegacy;
2607
2612
  });
2608
- })), _e = /* @__PURE__ */ u(((e, t) => {
2613
+ })), Ze = /* @__PURE__ */ R(((e, t) => {
2609
2614
  (function(n, r, i) {
2610
- typeof e == "object" ? t.exports = e = r(C(), D(), k(), I(), L()) : typeof define == "function" && define.amd ? define([
2615
+ typeof e == "object" ? t.exports = e = r(B(), Se(), we(), Pe(), V()) : typeof define == "function" && define.amd ? define([
2611
2616
  "./core",
2612
2617
  "./enc-base64",
2613
2618
  "./md5",
@@ -3728,122 +3733,122 @@ var x = e("crypto"), S = /* @__PURE__ */ u(((e, t) => {
3728
3733
  t.Blowfish = n._createHelper(d);
3729
3734
  })(), e.Blowfish;
3730
3735
  });
3731
- })), ve = /* @__PURE__ */ p((/* @__PURE__ */ u(((e, t) => {
3736
+ })), Qe = /* @__PURE__ */ ue((/* @__PURE__ */ R(((e, t) => {
3732
3737
  (function(n, r, i) {
3733
- typeof e == "object" ? t.exports = e = r(C(), w(), T(), E(), D(), O(), k(), A(), j(), M(), ee(), N(), te(), ne(), P(), F(), I(), L(), re(), ie(), ae(), R(), z(), oe(), se(), ce(), le(), ue(), de(), fe(), pe(), me(), he(), ge(), _e()) : typeof define == "function" && define.amd ? define(/* @__PURE__ */ "./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".split(","), r) : n.CryptoJS = r(n.CryptoJS);
3738
+ typeof e == "object" ? t.exports = e = r(B(), ye(), be(), xe(), Se(), Ce(), we(), Te(), Ee(), De(), Oe(), ke(), Ae(), je(), Me(), Ne(), Pe(), V(), Fe(), Ie(), Le(), Re(), ze(), Be(), Ve(), He(), Ue(), We(), Ge(), Ke(), qe(), Je(), Ye(), Xe(), Ze()) : typeof define == "function" && define.amd ? define(/* @__PURE__ */ "./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".split(","), r) : n.CryptoJS = r(n.CryptoJS);
3734
3739
  })(e, function(e) {
3735
3740
  return e;
3736
3741
  });
3737
3742
  })))(), 1);
3738
- function ye(e) {
3743
+ function $e(e) {
3739
3744
  return new Promise((t) => {
3740
- let n = x.use().key || "chartext12345677";
3741
- t(ve.default.AES.encrypt(e, ve.default.enc.Utf8.parse(n), {
3742
- mode: ve.default.mode.ECB,
3743
- padding: ve.default.pad.Pkcs7
3745
+ let n = z.use().key || "chartext12345677";
3746
+ t(Qe.default.AES.encrypt(e, Qe.default.enc.Utf8.parse(n), {
3747
+ mode: Qe.default.mode.ECB,
3748
+ padding: Qe.default.pad.Pkcs7
3744
3749
  }).toString().replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replaceAll(/=/g, ""));
3745
3750
  });
3746
3751
  }
3747
- function be(e) {
3752
+ function et(e) {
3748
3753
  return new Promise((t) => {
3749
- let n = x.use().key || "chartext12345677", r = e.replaceAll(/-/g, "+").replaceAll(/_/g, "/");
3754
+ let n = z.use().key || "chartext12345677", r = e.replaceAll(/-/g, "+").replaceAll(/_/g, "/");
3750
3755
  for (; r.length % 4;) r += "=";
3751
- let i = ve.default.AES.decrypt(r, ve.default.enc.Utf8.parse(n), {
3752
- mode: ve.default.mode.ECB,
3753
- padding: ve.default.pad.Pkcs7
3756
+ let i = Qe.default.AES.decrypt(r, Qe.default.enc.Utf8.parse(n), {
3757
+ mode: Qe.default.mode.ECB,
3758
+ padding: Qe.default.pad.Pkcs7
3754
3759
  });
3755
3760
  try {
3756
- t(JSON.parse(i.toString(ve.default.enc.Utf8)));
3761
+ t(JSON.parse(i.toString(Qe.default.enc.Utf8)));
3757
3762
  } catch {
3758
- t(i.toString(ve.default.enc.Utf8));
3763
+ t(i.toString(Qe.default.enc.Utf8));
3759
3764
  }
3760
3765
  });
3761
3766
  }
3762
- function xe() {
3767
+ function tt() {
3763
3768
  return {
3764
3769
  name: "aes",
3765
- encrypt: ye,
3766
- decrypt: be
3770
+ encrypt: $e,
3771
+ decrypt: et
3767
3772
  };
3768
3773
  }
3769
3774
  //#endregion
3770
3775
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/util.js
3771
- var Se = "0123456789abcdefghijklmnopqrstuvwxyz";
3772
- function Ce(e) {
3773
- return Se.charAt(e);
3776
+ var nt = "0123456789abcdefghijklmnopqrstuvwxyz";
3777
+ function rt(e) {
3778
+ return nt.charAt(e);
3774
3779
  }
3775
- function we(e, t) {
3780
+ function it(e, t) {
3776
3781
  return e & t;
3777
3782
  }
3778
- function Te(e, t) {
3783
+ function at(e, t) {
3779
3784
  return e | t;
3780
3785
  }
3781
- function Ee(e, t) {
3786
+ function ot(e, t) {
3782
3787
  return e ^ t;
3783
3788
  }
3784
- function De(e, t) {
3789
+ function st(e, t) {
3785
3790
  return e & ~t;
3786
3791
  }
3787
- function Oe(e) {
3792
+ function ct(e) {
3788
3793
  if (e == 0) return -1;
3789
3794
  var t = 0;
3790
3795
  return e & 65535 || (e >>= 16, t += 16), e & 255 || (e >>= 8, t += 8), e & 15 || (e >>= 4, t += 4), e & 3 || (e >>= 2, t += 2), e & 1 || ++t, t;
3791
3796
  }
3792
- function ke(e) {
3797
+ function lt(e) {
3793
3798
  for (var t = 0; e != 0;) e &= e - 1, ++t;
3794
3799
  return t;
3795
3800
  }
3796
3801
  //#endregion
3797
3802
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/base64.js
3798
- var Ae = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", je = "=";
3799
- function Me(e) {
3803
+ var ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", dt = "=";
3804
+ function ft(e) {
3800
3805
  var t, n, r = "";
3801
- for (t = 0; t + 3 <= e.length; t += 3) n = parseInt(e.substring(t, t + 3), 16), r += Ae.charAt(n >> 6) + Ae.charAt(n & 63);
3802
- for (t + 1 == e.length ? (n = parseInt(e.substring(t, t + 1), 16), r += Ae.charAt(n << 2)) : t + 2 == e.length && (n = parseInt(e.substring(t, t + 2), 16), r += Ae.charAt(n >> 2) + Ae.charAt((n & 3) << 4)); (r.length & 3) > 0;) r += je;
3806
+ for (t = 0; t + 3 <= e.length; t += 3) n = parseInt(e.substring(t, t + 3), 16), r += ut.charAt(n >> 6) + ut.charAt(n & 63);
3807
+ for (t + 1 == e.length ? (n = parseInt(e.substring(t, t + 1), 16), r += ut.charAt(n << 2)) : t + 2 == e.length && (n = parseInt(e.substring(t, t + 2), 16), r += ut.charAt(n >> 2) + ut.charAt((n & 3) << 4)); (r.length & 3) > 0;) r += dt;
3803
3808
  return r;
3804
3809
  }
3805
- function Ne(e) {
3810
+ function pt(e) {
3806
3811
  var t = "", n, r = 0, i = 0;
3807
- for (n = 0; n < e.length && e.charAt(n) != je; ++n) {
3808
- var a = Ae.indexOf(e.charAt(n));
3809
- a < 0 || (r == 0 ? (t += Ce(a >> 2), i = a & 3, r = 1) : r == 1 ? (t += Ce(i << 2 | a >> 4), i = a & 15, r = 2) : r == 2 ? (t += Ce(i), t += Ce(a >> 2), i = a & 3, r = 3) : (t += Ce(i << 2 | a >> 4), t += Ce(a & 15), r = 0));
3812
+ for (n = 0; n < e.length && e.charAt(n) != dt; ++n) {
3813
+ var a = ut.indexOf(e.charAt(n));
3814
+ a < 0 || (r == 0 ? (t += rt(a >> 2), i = a & 3, r = 1) : r == 1 ? (t += rt(i << 2 | a >> 4), i = a & 15, r = 2) : r == 2 ? (t += rt(i), t += rt(a >> 2), i = a & 3, r = 3) : (t += rt(i << 2 | a >> 4), t += rt(a & 15), r = 0));
3810
3815
  }
3811
- return r == 1 && (t += Ce(i << 2)), t;
3816
+ return r == 1 && (t += rt(i << 2)), t;
3812
3817
  }
3813
3818
  //#endregion
3814
3819
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/asn1js/hex.js
3815
- var Pe, Fe = { decode: function(e) {
3820
+ var mt, ht = { decode: function(e) {
3816
3821
  var t;
3817
- if (Pe === void 0) {
3822
+ if (mt === void 0) {
3818
3823
  var n = "0123456789ABCDEF", r = " \f\n\r \xA0\u2028\u2029";
3819
- for (Pe = {}, t = 0; t < 16; ++t) Pe[n.charAt(t)] = t;
3820
- for (n = n.toLowerCase(), t = 10; t < 16; ++t) Pe[n.charAt(t)] = t;
3821
- for (t = 0; t < r.length; ++t) Pe[r.charAt(t)] = -1;
3824
+ for (mt = {}, t = 0; t < 16; ++t) mt[n.charAt(t)] = t;
3825
+ for (n = n.toLowerCase(), t = 10; t < 16; ++t) mt[n.charAt(t)] = t;
3826
+ for (t = 0; t < r.length; ++t) mt[r.charAt(t)] = -1;
3822
3827
  }
3823
3828
  var i = [], a = 0, o = 0;
3824
3829
  for (t = 0; t < e.length; ++t) {
3825
3830
  var s = e.charAt(t);
3826
3831
  if (s == "=") break;
3827
- if (s = Pe[s], s != -1) {
3832
+ if (s = mt[s], s != -1) {
3828
3833
  if (s === void 0) throw Error("Illegal character at offset " + t);
3829
3834
  a |= s, ++o >= 2 ? (i[i.length] = a, a = 0, o = 0) : a <<= 4;
3830
3835
  }
3831
3836
  }
3832
3837
  if (o) throw Error("Hex encoding incomplete: 4 bits missing");
3833
3838
  return i;
3834
- } }, B, Ie = {
3839
+ } }, gt, _t = {
3835
3840
  decode: function(e) {
3836
3841
  var t;
3837
- if (B === void 0) {
3842
+ if (gt === void 0) {
3838
3843
  var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r = "= \f\n\r \xA0\u2028\u2029";
3839
- for (B = Object.create(null), t = 0; t < 64; ++t) B[n.charAt(t)] = t;
3840
- for (B["-"] = 62, B._ = 63, t = 0; t < r.length; ++t) B[r.charAt(t)] = -1;
3844
+ for (gt = Object.create(null), t = 0; t < 64; ++t) gt[n.charAt(t)] = t;
3845
+ for (gt["-"] = 62, gt._ = 63, t = 0; t < r.length; ++t) gt[r.charAt(t)] = -1;
3841
3846
  }
3842
3847
  var i = [], a = 0, o = 0;
3843
3848
  for (t = 0; t < e.length; ++t) {
3844
3849
  var s = e.charAt(t);
3845
3850
  if (s == "=") break;
3846
- if (s = B[s], s != -1) {
3851
+ if (s = gt[s], s != -1) {
3847
3852
  if (s === void 0) throw Error("Illegal character at offset " + t);
3848
3853
  a |= s, ++o >= 4 ? (i[i.length] = a >> 16, i[i.length] = a >> 8 & 255, i[i.length] = a & 255, a = 0, o = 0) : a <<= 6;
3849
3854
  }
@@ -3861,40 +3866,40 @@ var Pe, Fe = { decode: function(e) {
3861
3866
  },
3862
3867
  re: /-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,
3863
3868
  unarmor: function(e) {
3864
- var t = Ie.re.exec(e);
3869
+ var t = _t.re.exec(e);
3865
3870
  if (t) if (t[1]) e = t[1];
3866
3871
  else if (t[2]) e = t[2];
3867
3872
  else throw Error("RegExp out of sync");
3868
- return Ie.decode(e);
3873
+ return _t.decode(e);
3869
3874
  }
3870
- }, Le = 0x9184e72a000, Re = function() {
3875
+ }, H = 0x9184e72a000, vt = function() {
3871
3876
  function e(e) {
3872
3877
  this.buf = [+e || 0];
3873
3878
  }
3874
3879
  return e.prototype.mulAdd = function(e, t) {
3875
3880
  var n = this.buf, r = n.length, i, a;
3876
- for (i = 0; i < r; ++i) a = n[i] * e + t, a < Le ? t = 0 : (t = 0 | a / Le, a -= t * Le), n[i] = a;
3881
+ for (i = 0; i < r; ++i) a = n[i] * e + t, a < H ? t = 0 : (t = 0 | a / H, a -= t * H), n[i] = a;
3877
3882
  t > 0 && (n[i] = t);
3878
3883
  }, e.prototype.sub = function(e) {
3879
3884
  var t = this.buf, n = t.length, r, i;
3880
- for (r = 0; r < n; ++r) i = t[r] - e, i < 0 ? (i += Le, e = 1) : e = 0, t[r] = i;
3885
+ for (r = 0; r < n; ++r) i = t[r] - e, i < 0 ? (i += H, e = 1) : e = 0, t[r] = i;
3881
3886
  for (; t[t.length - 1] === 0;) t.pop();
3882
3887
  }, e.prototype.toString = function(e) {
3883
3888
  if ((e || 10) != 10) throw Error("only base 10 is supported");
3884
- for (var t = this.buf, n = t[t.length - 1].toString(), r = t.length - 2; r >= 0; --r) n += (Le + t[r]).toString().substring(1);
3889
+ for (var t = this.buf, n = t[t.length - 1].toString(), r = t.length - 2; r >= 0; --r) n += (H + t[r]).toString().substring(1);
3885
3890
  return n;
3886
3891
  }, e.prototype.valueOf = function() {
3887
- for (var e = this.buf, t = 0, n = e.length - 1; n >= 0; --n) t = t * Le + e[n];
3892
+ for (var e = this.buf, t = 0, n = e.length - 1; n >= 0; --n) t = t * H + e[n];
3888
3893
  return t;
3889
3894
  }, e.prototype.simplify = function() {
3890
3895
  var e = this.buf;
3891
3896
  return e.length == 1 ? e[0] : this;
3892
3897
  }, e;
3893
- }(), ze = "…", Be = /^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/, Ve = /^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;
3894
- function He(e, t) {
3895
- return e.length > t && (e = e.substring(0, t) + ze), e;
3898
+ }(), yt = "…", bt = /^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/, xt = /^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;
3899
+ function U(e, t) {
3900
+ return e.length > t && (e = e.substring(0, t) + yt), e;
3896
3901
  }
3897
- var Ue = function() {
3902
+ var W = function() {
3898
3903
  function e(t, n) {
3899
3904
  this.hexDigits = "0123456789ABCDEF", t instanceof e ? (this.enc = t.enc, this.pos = t.pos) : (this.enc = t, this.pos = n);
3900
3905
  }
@@ -3933,7 +3938,7 @@ var Ue = function() {
3933
3938
  for (var n = "", r, i, a = e; a < t;) r = this.get(a++), i = this.get(a++), n += String.fromCharCode(r << 8 | i);
3934
3939
  return n;
3935
3940
  }, e.prototype.parseTime = function(e, t, n) {
3936
- var r = this.parseStringISO(e, t), i = (n ? Be : Ve).exec(r);
3941
+ var r = this.parseStringISO(e, t), i = (n ? bt : xt).exec(r);
3937
3942
  return i ? (n && (i[1] = +i[1], i[1] += +i[1] < 70 ? 2e3 : 1900), r = i[1] + "-" + i[2] + "-" + i[3] + " " + i[4], i[5] && (r += ":" + i[5], i[6] && (r += ":" + i[6], i[7] && (r += "." + i[7]))), i[8] && (r += " UTC", i[8] != "Z" && (r += i[8], i[9] && (r += ":" + i[9]))), r) : "Unrecognized time: " + r;
3938
3943
  }, e.prototype.parseInteger = function(e, t) {
3939
3944
  for (var n = this.get(e), r = n > 127, i = r ? 255 : 0, a, o = ""; n == i && ++e < t;) n = this.get(e);
@@ -3943,39 +3948,39 @@ var Ue = function() {
3943
3948
  o = "(" + a + " bit)\n";
3944
3949
  }
3945
3950
  r && (n -= 256);
3946
- for (var s = new Re(n), c = e + 1; c < t; ++c) s.mulAdd(256, this.get(c));
3951
+ for (var s = new vt(n), c = e + 1; c < t; ++c) s.mulAdd(256, this.get(c));
3947
3952
  return o + s.toString();
3948
3953
  }, e.prototype.parseBitString = function(e, t, n) {
3949
3954
  for (var r = this.get(e), i = "(" + ((t - e - 1 << 3) - r) + " bit)\n", a = "", o = e + 1; o < t; ++o) {
3950
3955
  for (var s = this.get(o), c = o == t - 1 ? r : 0, l = 7; l >= c; --l) a += s >> l & 1 ? "1" : "0";
3951
- if (a.length > n) return i + He(a, n);
3956
+ if (a.length > n) return i + U(a, n);
3952
3957
  }
3953
3958
  return i + a;
3954
3959
  }, e.prototype.parseOctetString = function(e, t, n) {
3955
- if (this.isASCII(e, t)) return He(this.parseStringISO(e, t), n);
3960
+ if (this.isASCII(e, t)) return U(this.parseStringISO(e, t), n);
3956
3961
  var r = t - e, i = "(" + r + " byte)\n";
3957
3962
  n /= 2, r > n && (t = e + n);
3958
3963
  for (var a = e; a < t; ++a) i += this.hexByte(this.get(a));
3959
- return r > n && (i += ze), i;
3964
+ return r > n && (i += yt), i;
3960
3965
  }, e.prototype.parseOID = function(e, t, n) {
3961
- for (var r = "", i = new Re(), a = 0, o = e; o < t; ++o) {
3966
+ for (var r = "", i = new vt(), a = 0, o = e; o < t; ++o) {
3962
3967
  var s = this.get(o);
3963
3968
  if (i.mulAdd(128, s & 127), a += 7, !(s & 128)) {
3964
- if (r === "") if (i = i.simplify(), i instanceof Re) i.sub(80), r = "2." + i.toString();
3969
+ if (r === "") if (i = i.simplify(), i instanceof vt) i.sub(80), r = "2." + i.toString();
3965
3970
  else {
3966
3971
  var c = i < 80 ? i < 40 ? 0 : 1 : 2;
3967
3972
  r = c + "." + (i - c * 40);
3968
3973
  }
3969
3974
  else r += "." + i.toString();
3970
- if (r.length > n) return He(r, n);
3971
- i = new Re(), a = 0;
3975
+ if (r.length > n) return U(r, n);
3976
+ i = new vt(), a = 0;
3972
3977
  }
3973
3978
  }
3974
3979
  return a > 0 && (r += ".incomplete"), r;
3975
3980
  }, e;
3976
- }(), We = function() {
3981
+ }(), St = function() {
3977
3982
  function e(e, t, n, r, i) {
3978
- if (!(r instanceof Ge)) throw Error("Invalid tag value.");
3983
+ if (!(r instanceof Ct)) throw Error("Invalid tag value.");
3979
3984
  this.stream = e, this.header = t, this.length = n, this.tag = r, this.sub = i;
3980
3985
  }
3981
3986
  return e.prototype.typeName = function() {
@@ -4028,14 +4033,14 @@ var Ue = function() {
4028
4033
  case 6: return this.stream.parseOID(t, t + n, e);
4029
4034
  case 16:
4030
4035
  case 17: return this.sub === null ? "(no elem)" : "(" + this.sub.length + " elem)";
4031
- case 12: return He(this.stream.parseStringUTF(t, t + n), e);
4036
+ case 12: return U(this.stream.parseStringUTF(t, t + n), e);
4032
4037
  case 18:
4033
4038
  case 19:
4034
4039
  case 20:
4035
4040
  case 21:
4036
4041
  case 22:
4037
- case 26: return He(this.stream.parseStringISO(t, t + n), e);
4038
- case 30: return He(this.stream.parseStringBMP(t, t + n), e);
4042
+ case 26: return U(this.stream.parseStringISO(t, t + n), e);
4043
+ case 30: return U(this.stream.parseStringBMP(t, t + n), e);
4039
4044
  case 23:
4040
4045
  case 24: return this.stream.parseTime(t, t + n, this.tag.tagNumber == 23);
4041
4046
  }
@@ -4070,7 +4075,7 @@ var Ue = function() {
4070
4075
  var e = this.toHexString(), t = this.header * 2, n = this.length * 2;
4071
4076
  return e.substring(t, t + n);
4072
4077
  }, e.decode = function(t) {
4073
- var n = t instanceof Ue ? t : new Ue(t, 0), r = new Ue(n), i = new Ge(n), a = e.decodeLength(n), o = n.pos, s = o - r.pos, c = null, l = function() {
4078
+ var n = t instanceof W ? t : new W(t, 0), r = new W(n), i = new Ct(n), a = e.decodeLength(n), o = n.pos, s = o - r.pos, c = null, l = function() {
4074
4079
  var t = [];
4075
4080
  if (a !== null) {
4076
4081
  for (var r = o + a; n.pos < r;) t[t.length] = e.decode(n);
@@ -4101,11 +4106,11 @@ var Ue = function() {
4101
4106
  }
4102
4107
  return new e(r, s, a, i, c);
4103
4108
  }, e;
4104
- }(), Ge = function() {
4109
+ }(), Ct = function() {
4105
4110
  function e(e) {
4106
4111
  var t = e.get();
4107
4112
  if (this.tagClass = t >> 6, this.tagConstructed = (t & 32) != 0, this.tagNumber = t & 31, this.tagNumber == 31) {
4108
- var n = new Re();
4113
+ var n = new vt();
4109
4114
  do
4110
4115
  t = e.get(), n.mulAdd(128, t & 127);
4111
4116
  while (t & 128);
@@ -4117,7 +4122,7 @@ var Ue = function() {
4117
4122
  }, e.prototype.isEOC = function() {
4118
4123
  return this.tagClass === 0 && this.tagNumber === 0;
4119
4124
  }, e;
4120
- }(), Ke, qe = !0, V = [
4125
+ }(), G, wt = !0, K = [
4121
4126
  2,
4122
4127
  3,
4123
4128
  5,
@@ -4286,7 +4291,7 @@ var Ue = function() {
4286
4291
  983,
4287
4292
  991,
4288
4293
  997
4289
- ], Je = (1 << 26) / V[V.length - 1], H = function() {
4294
+ ], Tt = (1 << 26) / K[K.length - 1], q = function() {
4290
4295
  function e(e, t, n) {
4291
4296
  e != null && (typeof e == "number" ? this.fromNumber(e, t, n) : t == null && typeof e != "string" ? this.fromString(e, 256) : this.fromString(e, t));
4292
4297
  }
@@ -4300,10 +4305,10 @@ var Ue = function() {
4300
4305
  else if (e == 4) t = 2;
4301
4306
  else return this.toRadix(e);
4302
4307
  var n = (1 << t) - 1, r, i = !1, a = "", o = this.t, s = this.DB - o * this.DB % t;
4303
- if (o-- > 0) for (s < this.DB && (r = this[o] >> s) > 0 && (i = !0, a = Ce(r)); o >= 0;) s < t ? (r = (this[o] & (1 << s) - 1) << t - s, r |= this[--o] >> (s += this.DB - t)) : (r = this[o] >> (s -= t) & n, s <= 0 && (s += this.DB, --o)), r > 0 && (i = !0), i && (a += Ce(r));
4308
+ if (o-- > 0) for (s < this.DB && (r = this[o] >> s) > 0 && (i = !0, a = rt(r)); o >= 0;) s < t ? (r = (this[o] & (1 << s) - 1) << t - s, r |= this[--o] >> (s += this.DB - t)) : (r = this[o] >> (s -= t) & n, s <= 0 && (s += this.DB, --o)), r > 0 && (i = !0), i && (a += rt(r));
4304
4309
  return i ? a : "0";
4305
4310
  }, e.prototype.negate = function() {
4306
- var t = U();
4311
+ var t = J();
4307
4312
  return e.ZERO.subTo(this, t), t;
4308
4313
  }, e.prototype.abs = function() {
4309
4314
  return this.s < 0 ? this.negate() : this;
@@ -4315,15 +4320,15 @@ var Ue = function() {
4315
4320
  for (; --n >= 0;) if ((t = this[n] - e[n]) != 0) return t;
4316
4321
  return 0;
4317
4322
  }, e.prototype.bitLength = function() {
4318
- return this.t <= 0 ? 0 : this.DB * (this.t - 1) + at(this[this.t - 1] ^ this.s & this.DM);
4323
+ return this.t <= 0 ? 0 : this.DB * (this.t - 1) + Lt(this[this.t - 1] ^ this.s & this.DM);
4319
4324
  }, e.prototype.mod = function(t) {
4320
- var n = U();
4325
+ var n = J();
4321
4326
  return this.abs().divRemTo(t, null, n), this.s < 0 && n.compareTo(e.ZERO) > 0 && t.subTo(n, n), n;
4322
4327
  }, e.prototype.modPowInt = function(e, t) {
4323
- var n = e < 256 || t.isEven() ? new Xe(t) : new Ze(t);
4328
+ var n = e < 256 || t.isEven() ? new Dt(t) : new Ot(t);
4324
4329
  return this.exp(e, n);
4325
4330
  }, e.prototype.clone = function() {
4326
- var e = U();
4331
+ var e = J();
4327
4332
  return this.copyTo(e), e;
4328
4333
  }, e.prototype.intValue = function() {
4329
4334
  if (this.s < 0) {
@@ -4351,70 +4356,70 @@ var Ue = function() {
4351
4356
  }, e.prototype.max = function(e) {
4352
4357
  return this.compareTo(e) > 0 ? this : e;
4353
4358
  }, e.prototype.and = function(e) {
4354
- var t = U();
4355
- return this.bitwiseTo(e, we, t), t;
4359
+ var t = J();
4360
+ return this.bitwiseTo(e, it, t), t;
4356
4361
  }, e.prototype.or = function(e) {
4357
- var t = U();
4358
- return this.bitwiseTo(e, Te, t), t;
4362
+ var t = J();
4363
+ return this.bitwiseTo(e, at, t), t;
4359
4364
  }, e.prototype.xor = function(e) {
4360
- var t = U();
4361
- return this.bitwiseTo(e, Ee, t), t;
4365
+ var t = J();
4366
+ return this.bitwiseTo(e, ot, t), t;
4362
4367
  }, e.prototype.andNot = function(e) {
4363
- var t = U();
4364
- return this.bitwiseTo(e, De, t), t;
4368
+ var t = J();
4369
+ return this.bitwiseTo(e, st, t), t;
4365
4370
  }, e.prototype.not = function() {
4366
- for (var e = U(), t = 0; t < this.t; ++t) e[t] = this.DM & ~this[t];
4371
+ for (var e = J(), t = 0; t < this.t; ++t) e[t] = this.DM & ~this[t];
4367
4372
  return e.t = this.t, e.s = ~this.s, e;
4368
4373
  }, e.prototype.shiftLeft = function(e) {
4369
- var t = U();
4374
+ var t = J();
4370
4375
  return e < 0 ? this.rShiftTo(-e, t) : this.lShiftTo(e, t), t;
4371
4376
  }, e.prototype.shiftRight = function(e) {
4372
- var t = U();
4377
+ var t = J();
4373
4378
  return e < 0 ? this.lShiftTo(-e, t) : this.rShiftTo(e, t), t;
4374
4379
  }, e.prototype.getLowestSetBit = function() {
4375
- for (var e = 0; e < this.t; ++e) if (this[e] != 0) return e * this.DB + Oe(this[e]);
4380
+ for (var e = 0; e < this.t; ++e) if (this[e] != 0) return e * this.DB + ct(this[e]);
4376
4381
  return this.s < 0 ? this.t * this.DB : -1;
4377
4382
  }, e.prototype.bitCount = function() {
4378
- for (var e = 0, t = this.s & this.DM, n = 0; n < this.t; ++n) e += ke(this[n] ^ t);
4383
+ for (var e = 0, t = this.s & this.DM, n = 0; n < this.t; ++n) e += lt(this[n] ^ t);
4379
4384
  return e;
4380
4385
  }, e.prototype.testBit = function(e) {
4381
4386
  var t = Math.floor(e / this.DB);
4382
4387
  return t >= this.t ? this.s != 0 : (this[t] & 1 << e % this.DB) != 0;
4383
4388
  }, e.prototype.setBit = function(e) {
4384
- return this.changeBit(e, Te);
4389
+ return this.changeBit(e, at);
4385
4390
  }, e.prototype.clearBit = function(e) {
4386
- return this.changeBit(e, De);
4391
+ return this.changeBit(e, st);
4387
4392
  }, e.prototype.flipBit = function(e) {
4388
- return this.changeBit(e, Ee);
4393
+ return this.changeBit(e, ot);
4389
4394
  }, e.prototype.add = function(e) {
4390
- var t = U();
4395
+ var t = J();
4391
4396
  return this.addTo(e, t), t;
4392
4397
  }, e.prototype.subtract = function(e) {
4393
- var t = U();
4398
+ var t = J();
4394
4399
  return this.subTo(e, t), t;
4395
4400
  }, e.prototype.multiply = function(e) {
4396
- var t = U();
4401
+ var t = J();
4397
4402
  return this.multiplyTo(e, t), t;
4398
4403
  }, e.prototype.divide = function(e) {
4399
- var t = U();
4404
+ var t = J();
4400
4405
  return this.divRemTo(e, t, null), t;
4401
4406
  }, e.prototype.remainder = function(e) {
4402
- var t = U();
4407
+ var t = J();
4403
4408
  return this.divRemTo(e, null, t), t;
4404
4409
  }, e.prototype.divideAndRemainder = function(e) {
4405
- var t = U(), n = U();
4410
+ var t = J(), n = J();
4406
4411
  return this.divRemTo(e, t, n), [t, n];
4407
4412
  }, e.prototype.modPow = function(e, t) {
4408
- var n = e.bitLength(), r, i = G(1), a;
4413
+ var n = e.bitLength(), r, i = It(1), a;
4409
4414
  if (n <= 0) return i;
4410
- r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, a = n < 8 ? new Xe(t) : t.isEven() ? new Qe(t) : new Ze(t);
4415
+ r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, a = n < 8 ? new Dt(t) : t.isEven() ? new kt(t) : new Ot(t);
4411
4416
  var o = [], s = 3, c = r - 1, l = (1 << r) - 1;
4412
4417
  if (o[1] = a.convert(this), r > 1) {
4413
- var u = U();
4414
- for (a.sqrTo(o[1], u); s <= l;) o[s] = U(), a.mulTo(u, o[s - 2], o[s]), s += 2;
4418
+ var u = J();
4419
+ for (a.sqrTo(o[1], u); s <= l;) o[s] = J(), a.mulTo(u, o[s - 2], o[s]), s += 2;
4415
4420
  }
4416
- var d = e.t - 1, f, p = !0, m = U(), h;
4417
- for (n = at(e[d]) - 1; d >= 0;) {
4421
+ var d = e.t - 1, f, p = !0, m = J(), h;
4422
+ for (n = Lt(e[d]) - 1; d >= 0;) {
4418
4423
  for (n >= c ? f = e[d] >> n - c & l : (f = (e[d] & (1 << n + 1) - 1) << c - n, d > 0 && (f |= e[d - 1] >> this.DB + n - c)), s = r; !(f & 1);) f >>= 1, --s;
4419
4424
  if ((n -= s) < 0 && (n += this.DB, --d), p) o[f].copyTo(i), p = !1;
4420
4425
  else {
@@ -4427,7 +4432,7 @@ var Ue = function() {
4427
4432
  }, e.prototype.modInverse = function(t) {
4428
4433
  var n = t.isEven();
4429
4434
  if (this.isEven() && n || t.signum() == 0) return e.ZERO;
4430
- for (var r = t.clone(), i = this.clone(), a = G(1), o = G(0), s = G(0), c = G(1); r.signum() != 0;) {
4435
+ for (var r = t.clone(), i = this.clone(), a = It(1), o = It(0), s = It(0), c = It(1); r.signum() != 0;) {
4431
4436
  for (; r.isEven();) r.rShiftTo(1, r), n ? ((!a.isEven() || !o.isEven()) && (a.addTo(this, a), o.subTo(t, o)), a.rShiftTo(1, a)) : o.isEven() || o.subTo(t, o), o.rShiftTo(1, o);
4432
4437
  for (; i.isEven();) i.rShiftTo(1, i), n ? ((!s.isEven() || !c.isEven()) && (s.addTo(this, s), c.subTo(t, c)), s.rShiftTo(1, s)) : c.isEven() || c.subTo(t, c), c.rShiftTo(1, c);
4433
4438
  r.compareTo(i) >= 0 ? (r.subTo(i, r), n && a.subTo(s, a), o.subTo(c, o)) : (i.subTo(r, i), n && s.subTo(a, s), c.subTo(o, c));
@@ -4438,7 +4443,7 @@ var Ue = function() {
4438
4443
  else return c;
4439
4444
  return c.signum() < 0 ? c.add(t) : c;
4440
4445
  }, e.prototype.pow = function(e) {
4441
- return this.exp(e, new Ye());
4446
+ return this.exp(e, new Et());
4442
4447
  }, e.prototype.gcd = function(e) {
4443
4448
  var t = this.s < 0 ? this.negate() : this.clone(), n = e.s < 0 ? e.negate() : e.clone();
4444
4449
  if (t.compareTo(n) < 0) {
@@ -4451,14 +4456,14 @@ var Ue = function() {
4451
4456
  return a > 0 && n.lShiftTo(a, n), n;
4452
4457
  }, e.prototype.isProbablePrime = function(e) {
4453
4458
  var t, n = this.abs();
4454
- if (n.t == 1 && n[0] <= V[V.length - 1]) {
4455
- for (t = 0; t < V.length; ++t) if (n[0] == V[t]) return !0;
4459
+ if (n.t == 1 && n[0] <= K[K.length - 1]) {
4460
+ for (t = 0; t < K.length; ++t) if (n[0] == K[t]) return !0;
4456
4461
  return !1;
4457
4462
  }
4458
4463
  if (n.isEven()) return !1;
4459
- for (t = 1; t < V.length;) {
4460
- for (var r = V[t], i = t + 1; i < V.length && r < Je;) r *= V[i++];
4461
- for (r = n.modInt(r); t < i;) if (r % V[t++] == 0) return !1;
4464
+ for (t = 1; t < K.length;) {
4465
+ for (var r = K[t], i = t + 1; i < K.length && r < Tt;) r *= K[i++];
4466
+ for (r = n.modInt(r); t < i;) if (r % K[t++] == 0) return !1;
4462
4467
  }
4463
4468
  return n.millerRabin(e);
4464
4469
  }, e.prototype.copyTo = function(e) {
@@ -4480,7 +4485,7 @@ var Ue = function() {
4480
4485
  }
4481
4486
  this.t = 0, this.s = 0;
4482
4487
  for (var i = t.length, a = !1, o = 0; --i >= 0;) {
4483
- var s = r == 8 ? t[i] & 255 : it(t, i);
4488
+ var s = r == 8 ? t[i] & 255 : Ft(t, i);
4484
4489
  if (s < 0) {
4485
4490
  t.charAt(i) == "-" && (a = !0);
4486
4491
  continue;
@@ -4543,12 +4548,12 @@ var Ue = function() {
4543
4548
  n?.fromInt(0), r != null && this.copyTo(r);
4544
4549
  return;
4545
4550
  }
4546
- r ??= U();
4547
- var o = U(), s = this.s, c = t.s, l = this.DB - at(i[i.t - 1]);
4551
+ r ??= J();
4552
+ var o = J(), s = this.s, c = t.s, l = this.DB - Lt(i[i.t - 1]);
4548
4553
  l > 0 ? (i.lShiftTo(l, o), a.lShiftTo(l, r)) : (i.copyTo(o), a.copyTo(r));
4549
4554
  var u = o.t, d = o[u - 1];
4550
4555
  if (d != 0) {
4551
- var f = d * (1 << this.F1) + (u > 1 ? o[u - 2] >> this.F2 : 0), p = this.FV / f, m = (1 << this.F1) / f, h = 1 << this.F2, g = r.t, _ = g - u, v = n ?? U();
4556
+ var f = d * (1 << this.F1) + (u > 1 ? o[u - 2] >> this.F2 : 0), p = this.FV / f, m = (1 << this.F1) / f, h = 1 << this.F2, g = r.t, _ = g - u, v = n ?? J();
4552
4557
  for (o.dlShiftTo(_, v), r.compareTo(v) >= 0 && (r[r.t++] = 1, r.subTo(v, r)), e.ONE.dlShiftTo(u, v), v.subTo(o, o); o.t < u;) o[o.t++] = 0;
4553
4558
  for (; --_ >= 0;) {
4554
4559
  var y = r[--g] == d ? this.DM : Math.floor(r[g] * p + (r[g - 1] + h) * m);
@@ -4567,7 +4572,7 @@ var Ue = function() {
4567
4572
  return (this.t > 0 ? this[0] & 1 : this.s) == 0;
4568
4573
  }, e.prototype.exp = function(t, n) {
4569
4574
  if (t > 4294967295 || t < 1) return e.ONE;
4570
- var r = U(), i = U(), a = n.convert(this), o = at(t) - 1;
4575
+ var r = J(), i = J(), a = n.convert(this), o = Lt(t) - 1;
4571
4576
  for (a.copyTo(r); --o >= 0;) if (n.sqrTo(r, i), (t & 1 << o) > 0) n.mulTo(i, a, r);
4572
4577
  else {
4573
4578
  var s = r;
@@ -4578,13 +4583,13 @@ var Ue = function() {
4578
4583
  return Math.floor(Math.LN2 * this.DB / Math.log(e));
4579
4584
  }, e.prototype.toRadix = function(e) {
4580
4585
  if (e ??= 10, this.signum() == 0 || e < 2 || e > 36) return "0";
4581
- var t = this.chunkSize(e), n = e ** +t, r = G(n), i = U(), a = U(), o = "";
4586
+ var t = this.chunkSize(e), n = e ** +t, r = It(n), i = J(), a = J(), o = "";
4582
4587
  for (this.divRemTo(r, i, a); i.signum() > 0;) o = (n + a.intValue()).toString(e).substring(1) + o, i.divRemTo(r, i, a);
4583
4588
  return a.intValue().toString(e) + o;
4584
4589
  }, e.prototype.fromRadix = function(t, n) {
4585
4590
  this.fromInt(0), n ??= 10;
4586
4591
  for (var r = this.chunkSize(n), i = n ** +r, a = !1, o = 0, s = 0, c = 0; c < t.length; ++c) {
4587
- var l = it(t, c);
4592
+ var l = Ft(t, c);
4588
4593
  if (l < 0) {
4589
4594
  t.charAt(c) == "-" && this.signum() == 0 && (a = !0);
4590
4595
  continue;
@@ -4594,7 +4599,7 @@ var Ue = function() {
4594
4599
  o > 0 && (this.dMultiply(n ** +o), this.dAddOffset(s, 0)), a && e.ZERO.subTo(this, this);
4595
4600
  }, e.prototype.fromNumber = function(t, n, r) {
4596
4601
  if (typeof n == "number") if (t < 2) this.fromInt(1);
4597
- else for (this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), Te, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(n);) this.dAddOffset(2, 0), this.bitLength() > t && this.subTo(e.ONE.shiftLeft(t - 1), this);
4602
+ else for (this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), at, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(n);) this.dAddOffset(2, 0), this.bitLength() > t && this.subTo(e.ONE.shiftLeft(t - 1), this);
4598
4603
  else {
4599
4604
  var i = [], a = t & 7;
4600
4605
  i.length = (t >> 3) + 1, n.nextBytes(i), a > 0 ? i[0] &= (1 << a) - 1 : i[0] = 0, this.fromString(i, 256);
@@ -4652,9 +4657,9 @@ var Ue = function() {
4652
4657
  var n = this.subtract(e.ONE), r = n.getLowestSetBit();
4653
4658
  if (r <= 0) return !1;
4654
4659
  var i = n.shiftRight(r);
4655
- t = t + 1 >> 1, t > V.length && (t = V.length);
4656
- for (var a = U(), o = 0; o < t; ++o) {
4657
- a.fromInt(V[Math.floor(Math.random() * V.length)]);
4660
+ t = t + 1 >> 1, t > K.length && (t = K.length);
4661
+ for (var a = J(), o = 0; o < t; ++o) {
4662
+ a.fromInt(K[Math.floor(Math.random() * K.length)]);
4658
4663
  var s = a.modPow(i, this);
4659
4664
  if (s.compareTo(e.ONE) != 0 && s.compareTo(n) != 0) {
4660
4665
  for (var c = 1; c++ < r && s.compareTo(n) != 0;) if (s = s.modPowInt(2, this), s.compareTo(e.ONE) == 0) return !1;
@@ -4663,7 +4668,7 @@ var Ue = function() {
4663
4668
  }
4664
4669
  return !0;
4665
4670
  }, e.prototype.square = function() {
4666
- var e = U();
4671
+ var e = J();
4667
4672
  return this.squareTo(e), e;
4668
4673
  }, e.prototype.gcda = function(e, t) {
4669
4674
  var n = this.s < 0 ? this.negate() : this.clone(), r = e.s < 0 ? e.negate() : e.clone();
@@ -4686,7 +4691,7 @@ var Ue = function() {
4686
4691
  }, e.prototype.fromNumberAsync = function(t, n, r, i) {
4687
4692
  if (typeof n == "number") if (t < 2) this.fromInt(1);
4688
4693
  else {
4689
- this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), Te, this), this.isEven() && this.dAddOffset(1, 0);
4694
+ this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), at, this), this.isEven() && this.dAddOffset(1, 0);
4690
4695
  var a = this, o = function() {
4691
4696
  a.dAddOffset(2, 0), a.bitLength() > t && a.subTo(e.ONE.shiftLeft(t - 1), a), a.isProbablePrime(n) ? setTimeout(function() {
4692
4697
  i();
@@ -4699,7 +4704,7 @@ var Ue = function() {
4699
4704
  s.length = (t >> 3) + 1, n.nextBytes(s), c > 0 ? s[0] &= (1 << c) - 1 : s[0] = 0, this.fromString(s, 256);
4700
4705
  }
4701
4706
  }, e;
4702
- }(), Ye = function() {
4707
+ }(), Et = function() {
4703
4708
  function e() {}
4704
4709
  return e.prototype.convert = function(e) {
4705
4710
  return e;
@@ -4710,7 +4715,7 @@ var Ue = function() {
4710
4715
  }, e.prototype.sqrTo = function(e, t) {
4711
4716
  e.squareTo(t);
4712
4717
  }, e;
4713
- }(), Xe = function() {
4718
+ }(), Dt = function() {
4714
4719
  function e(e) {
4715
4720
  this.m = e;
4716
4721
  }
@@ -4725,15 +4730,15 @@ var Ue = function() {
4725
4730
  }, e.prototype.sqrTo = function(e, t) {
4726
4731
  e.squareTo(t), this.reduce(t);
4727
4732
  }, e;
4728
- }(), Ze = function() {
4733
+ }(), Ot = function() {
4729
4734
  function e(e) {
4730
4735
  this.m = e, this.mp = e.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << e.DB - 15) - 1, this.mt2 = 2 * e.t;
4731
4736
  }
4732
4737
  return e.prototype.convert = function(e) {
4733
- var t = U();
4734
- return e.abs().dlShiftTo(this.m.t, t), t.divRemTo(this.m, null, t), e.s < 0 && t.compareTo(H.ZERO) > 0 && this.m.subTo(t, t), t;
4738
+ var t = J();
4739
+ return e.abs().dlShiftTo(this.m.t, t), t.divRemTo(this.m, null, t), e.s < 0 && t.compareTo(q.ZERO) > 0 && this.m.subTo(t, t), t;
4735
4740
  }, e.prototype.revert = function(e) {
4736
- var t = U();
4741
+ var t = J();
4737
4742
  return e.copyTo(t), this.reduce(t), t;
4738
4743
  }, e.prototype.reduce = function(e) {
4739
4744
  for (; e.t <= this.mt2;) e[e.t++] = 0;
@@ -4747,14 +4752,14 @@ var Ue = function() {
4747
4752
  }, e.prototype.sqrTo = function(e, t) {
4748
4753
  e.squareTo(t), this.reduce(t);
4749
4754
  }, e;
4750
- }(), Qe = function() {
4755
+ }(), kt = function() {
4751
4756
  function e(e) {
4752
- this.m = e, this.r2 = U(), this.q3 = U(), H.ONE.dlShiftTo(2 * e.t, this.r2), this.mu = this.r2.divide(e);
4757
+ this.m = e, this.r2 = J(), this.q3 = J(), q.ONE.dlShiftTo(2 * e.t, this.r2), this.mu = this.r2.divide(e);
4753
4758
  }
4754
4759
  return e.prototype.convert = function(e) {
4755
4760
  if (e.s < 0 || e.t > 2 * this.m.t) return e.mod(this.m);
4756
4761
  if (e.compareTo(this.m) < 0) return e;
4757
- var t = U();
4762
+ var t = J();
4758
4763
  return e.copyTo(t), this.reduce(t), t;
4759
4764
  }, e.prototype.revert = function(e) {
4760
4765
  return e;
@@ -4767,53 +4772,53 @@ var Ue = function() {
4767
4772
  e.squareTo(t), this.reduce(t);
4768
4773
  }, e;
4769
4774
  }();
4770
- function U() {
4771
- return new H(null);
4775
+ function J() {
4776
+ return new q(null);
4772
4777
  }
4773
- function W(e, t) {
4774
- return new H(e, t);
4778
+ function Y(e, t) {
4779
+ return new q(e, t);
4775
4780
  }
4776
- var $e = typeof navigator < "u";
4777
- $e && qe && navigator.appName == "Microsoft Internet Explorer" ? (H.prototype.am = function(e, t, n, r, i, a) {
4781
+ var At = typeof navigator < "u";
4782
+ At && wt && navigator.appName == "Microsoft Internet Explorer" ? (q.prototype.am = function(e, t, n, r, i, a) {
4778
4783
  for (var o = t & 32767, s = t >> 15; --a >= 0;) {
4779
4784
  var c = this[e] & 32767, l = this[e++] >> 15, u = s * c + l * o;
4780
4785
  c = o * c + ((u & 32767) << 15) + n[r] + (i & 1073741823), i = (c >>> 30) + (u >>> 15) + s * l + (i >>> 30), n[r++] = c & 1073741823;
4781
4786
  }
4782
4787
  return i;
4783
- }, Ke = 30) : $e && qe && navigator.appName != "Netscape" ? (H.prototype.am = function(e, t, n, r, i, a) {
4788
+ }, G = 30) : At && wt && navigator.appName != "Netscape" ? (q.prototype.am = function(e, t, n, r, i, a) {
4784
4789
  for (; --a >= 0;) {
4785
4790
  var o = t * this[e++] + n[r] + i;
4786
4791
  i = Math.floor(o / 67108864), n[r++] = o & 67108863;
4787
4792
  }
4788
4793
  return i;
4789
- }, Ke = 26) : (H.prototype.am = function(e, t, n, r, i, a) {
4794
+ }, G = 26) : (q.prototype.am = function(e, t, n, r, i, a) {
4790
4795
  for (var o = t & 16383, s = t >> 14; --a >= 0;) {
4791
4796
  var c = this[e] & 16383, l = this[e++] >> 14, u = s * c + l * o;
4792
4797
  c = o * c + ((u & 16383) << 14) + n[r] + i, i = (c >> 28) + (u >> 14) + s * l, n[r++] = c & 268435455;
4793
4798
  }
4794
4799
  return i;
4795
- }, Ke = 28), H.prototype.DB = Ke, H.prototype.DM = (1 << Ke) - 1, H.prototype.DV = 1 << Ke;
4796
- var et = 52;
4797
- H.prototype.FV = 2 ** et, H.prototype.F1 = et - Ke, H.prototype.F2 = 2 * Ke - et;
4798
- var tt = [], nt = 48, rt;
4799
- for (rt = 0; rt <= 9; ++rt) tt[nt++] = rt;
4800
- for (nt = 97, rt = 10; rt < 36; ++rt) tt[nt++] = rt;
4801
- for (nt = 65, rt = 10; rt < 36; ++rt) tt[nt++] = rt;
4802
- function it(e, t) {
4803
- return tt[e.charCodeAt(t)] ?? -1;
4800
+ }, G = 28), q.prototype.DB = G, q.prototype.DM = (1 << G) - 1, q.prototype.DV = 1 << G;
4801
+ var jt = 52;
4802
+ q.prototype.FV = 2 ** jt, q.prototype.F1 = jt - G, q.prototype.F2 = 2 * G - jt;
4803
+ var Mt = [], Nt = 48, Pt;
4804
+ for (Pt = 0; Pt <= 9; ++Pt) Mt[Nt++] = Pt;
4805
+ for (Nt = 97, Pt = 10; Pt < 36; ++Pt) Mt[Nt++] = Pt;
4806
+ for (Nt = 65, Pt = 10; Pt < 36; ++Pt) Mt[Nt++] = Pt;
4807
+ function Ft(e, t) {
4808
+ return Mt[e.charCodeAt(t)] ?? -1;
4804
4809
  }
4805
- function G(e) {
4806
- var t = U();
4810
+ function It(e) {
4811
+ var t = J();
4807
4812
  return t.fromInt(e), t;
4808
4813
  }
4809
- function at(e) {
4814
+ function Lt(e) {
4810
4815
  var t = 1, n;
4811
4816
  return (n = e >>> 16) != 0 && (e = n, t += 16), (n = e >> 8) != 0 && (e = n, t += 8), (n = e >> 4) != 0 && (e = n, t += 4), (n = e >> 2) != 0 && (e = n, t += 2), (n = e >> 1) != 0 && (e = n, t += 1), t;
4812
4817
  }
4813
- H.ZERO = G(0), H.ONE = G(1);
4818
+ q.ZERO = It(0), q.ONE = It(1);
4814
4819
  //#endregion
4815
4820
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/prng4.js
4816
- var ot = function() {
4821
+ var Rt = function() {
4817
4822
  function e() {
4818
4823
  this.i = 0, this.j = 0, this.S = [];
4819
4824
  }
@@ -4827,94 +4832,94 @@ var ot = function() {
4827
4832
  return this.i = this.i + 1 & 255, this.j = this.j + this.S[this.i] & 255, e = this.S[this.i], this.S[this.i] = this.S[this.j], this.S[this.j] = e, this.S[e + this.S[this.i] & 255];
4828
4833
  }, e;
4829
4834
  }();
4830
- function st() {
4831
- return new ot();
4835
+ function zt() {
4836
+ return new Rt();
4832
4837
  }
4833
4838
  //#endregion
4834
4839
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/rng.js
4835
- var ct, lt = null, ut;
4836
- if (lt == null) {
4837
- lt = [], ut = 0;
4838
- var dt = void 0;
4840
+ var Bt, Vt = null, Ht;
4841
+ if (Vt == null) {
4842
+ Vt = [], Ht = 0;
4843
+ var Ut = void 0;
4839
4844
  if (typeof window < "u" && self.crypto && self.crypto.getRandomValues) {
4840
- var ft = new Uint32Array(256);
4841
- for (self.crypto.getRandomValues(ft), dt = 0; dt < ft.length; ++dt) lt[ut++] = ft[dt] & 255;
4845
+ var Wt = new Uint32Array(256);
4846
+ for (self.crypto.getRandomValues(Wt), Ut = 0; Ut < Wt.length; ++Ut) Vt[Ht++] = Wt[Ut] & 255;
4842
4847
  }
4843
- var pt = 0, K = function(e) {
4844
- if (pt ||= 0, pt >= 256 || ut >= 256) {
4845
- self.removeEventListener ? self.removeEventListener("mousemove", K, !1) : self.detachEvent && self.detachEvent("onmousemove", K);
4848
+ var Gt = 0, Kt = function(e) {
4849
+ if (Gt ||= 0, Gt >= 256 || Ht >= 256) {
4850
+ self.removeEventListener ? self.removeEventListener("mousemove", Kt, !1) : self.detachEvent && self.detachEvent("onmousemove", Kt);
4846
4851
  return;
4847
4852
  }
4848
4853
  try {
4849
4854
  var t = e.x + e.y;
4850
- lt[ut++] = t & 255, pt += 1;
4855
+ Vt[Ht++] = t & 255, Gt += 1;
4851
4856
  } catch {}
4852
4857
  };
4853
- typeof window < "u" && (self.addEventListener ? self.addEventListener("mousemove", K, !1) : self.attachEvent && self.attachEvent("onmousemove", K));
4858
+ typeof window < "u" && (self.addEventListener ? self.addEventListener("mousemove", Kt, !1) : self.attachEvent && self.attachEvent("onmousemove", Kt));
4854
4859
  }
4855
- function mt() {
4856
- if (ct == null) {
4857
- for (ct = st(); ut < 256;) {
4860
+ function qt() {
4861
+ if (Bt == null) {
4862
+ for (Bt = zt(); Ht < 256;) {
4858
4863
  var e = Math.floor(65536 * Math.random());
4859
- lt[ut++] = e & 255;
4864
+ Vt[Ht++] = e & 255;
4860
4865
  }
4861
- for (ct.init(lt), ut = 0; ut < lt.length; ++ut) lt[ut] = 0;
4862
- ut = 0;
4866
+ for (Bt.init(Vt), Ht = 0; Ht < Vt.length; ++Ht) Vt[Ht] = 0;
4867
+ Ht = 0;
4863
4868
  }
4864
- return ct.next();
4869
+ return Bt.next();
4865
4870
  }
4866
- var ht = function() {
4871
+ var Jt = function() {
4867
4872
  function e() {}
4868
4873
  return e.prototype.nextBytes = function(e) {
4869
- for (var t = 0; t < e.length; ++t) e[t] = mt();
4874
+ for (var t = 0; t < e.length; ++t) e[t] = qt();
4870
4875
  }, e;
4871
4876
  }();
4872
4877
  //#endregion
4873
4878
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/sha256.js
4874
- function gt(e) {
4875
- return q(Ot(vt(e), e.length * 8));
4879
+ function Yt(e) {
4880
+ return Qt(ln(Zt(e), e.length * 8));
4876
4881
  }
4877
- function _t(e) {
4882
+ function Xt(e) {
4878
4883
  for (var t = "0123456789abcdef", n = "", r = 0; r < e.length; r++) {
4879
4884
  var i = e.charCodeAt(r);
4880
4885
  n += t.charAt(i >>> 4 & 15) + t.charAt(i & 15);
4881
4886
  }
4882
4887
  return n;
4883
4888
  }
4884
- function vt(e) {
4889
+ function Zt(e) {
4885
4890
  for (var t = Array(e.length >> 2), n = 0; n < t.length; n++) t[n] = 0;
4886
4891
  for (var n = 0; n < e.length * 8; n += 8) t[n >> 5] |= (e.charCodeAt(n / 8) & 255) << 24 - n % 32;
4887
4892
  return t;
4888
4893
  }
4889
- function q(e) {
4894
+ function Qt(e) {
4890
4895
  for (var t = "", n = 0; n < e.length * 32; n += 8) t += String.fromCharCode(e[n >> 5] >>> 24 - n % 32 & 255);
4891
4896
  return t;
4892
4897
  }
4893
- function yt(e, t) {
4898
+ function $t(e, t) {
4894
4899
  return e >>> t | e << 32 - t;
4895
4900
  }
4896
- function bt(e, t) {
4901
+ function en(e, t) {
4897
4902
  return e >>> t;
4898
4903
  }
4899
- function xt(e, t, n) {
4904
+ function tn(e, t, n) {
4900
4905
  return e & t ^ ~e & n;
4901
4906
  }
4902
- function St(e, t, n) {
4907
+ function nn(e, t, n) {
4903
4908
  return e & t ^ e & n ^ t & n;
4904
4909
  }
4905
- function Ct(e) {
4906
- return yt(e, 2) ^ yt(e, 13) ^ yt(e, 22);
4910
+ function rn(e) {
4911
+ return $t(e, 2) ^ $t(e, 13) ^ $t(e, 22);
4907
4912
  }
4908
- function wt(e) {
4909
- return yt(e, 6) ^ yt(e, 11) ^ yt(e, 25);
4913
+ function an(e) {
4914
+ return $t(e, 6) ^ $t(e, 11) ^ $t(e, 25);
4910
4915
  }
4911
- function Tt(e) {
4912
- return yt(e, 7) ^ yt(e, 18) ^ bt(e, 3);
4916
+ function on(e) {
4917
+ return $t(e, 7) ^ $t(e, 18) ^ en(e, 3);
4913
4918
  }
4914
- function Et(e) {
4915
- return yt(e, 17) ^ yt(e, 19) ^ bt(e, 10);
4919
+ function sn(e) {
4920
+ return $t(e, 17) ^ $t(e, 19) ^ en(e, 10);
4916
4921
  }
4917
- var Dt = [
4922
+ var cn = [
4918
4923
  1116352408,
4919
4924
  1899447441,
4920
4925
  -1245643825,
@@ -4980,7 +4985,7 @@ var Dt = [
4980
4985
  -1090935817,
4981
4986
  -965641998
4982
4987
  ];
4983
- function Ot(e, t) {
4988
+ function ln(e, t) {
4984
4989
  var n = [
4985
4990
  1779033703,
4986
4991
  -1150833019,
@@ -4992,36 +4997,36 @@ function Ot(e, t) {
4992
4997
  1541459225
4993
4998
  ], r = Array(64), i, a, o, s, c, l, u, d, f, p, m, h;
4994
4999
  for (e[t >> 5] |= 128 << 24 - t % 32, e[(t + 64 >> 9 << 4) + 15] = t, f = 0; f < e.length; f += 16) {
4995
- for (i = n[0], a = n[1], o = n[2], s = n[3], c = n[4], l = n[5], u = n[6], d = n[7], p = 0; p < 64; p++) p < 16 ? r[p] = e[p + f] : r[p] = J(J(J(Et(r[p - 2]), r[p - 7]), Tt(r[p - 15])), r[p - 16]), m = J(J(J(J(d, wt(c)), xt(c, l, u)), Dt[p]), r[p]), h = J(Ct(i), St(i, a, o)), d = u, u = l, l = c, c = J(s, m), s = o, o = a, a = i, i = J(m, h);
4996
- n[0] = J(i, n[0]), n[1] = J(a, n[1]), n[2] = J(o, n[2]), n[3] = J(s, n[3]), n[4] = J(c, n[4]), n[5] = J(l, n[5]), n[6] = J(u, n[6]), n[7] = J(d, n[7]);
5000
+ for (i = n[0], a = n[1], o = n[2], s = n[3], c = n[4], l = n[5], u = n[6], d = n[7], p = 0; p < 64; p++) p < 16 ? r[p] = e[p + f] : r[p] = X(X(X(sn(r[p - 2]), r[p - 7]), on(r[p - 15])), r[p - 16]), m = X(X(X(X(d, an(c)), tn(c, l, u)), cn[p]), r[p]), h = X(rn(i), nn(i, a, o)), d = u, u = l, l = c, c = X(s, m), s = o, o = a, a = i, i = X(m, h);
5001
+ n[0] = X(i, n[0]), n[1] = X(a, n[1]), n[2] = X(o, n[2]), n[3] = X(s, n[3]), n[4] = X(c, n[4]), n[5] = X(l, n[5]), n[6] = X(u, n[6]), n[7] = X(d, n[7]);
4997
5002
  }
4998
5003
  return n;
4999
5004
  }
5000
- function J(e, t) {
5005
+ function X(e, t) {
5001
5006
  var n = (e & 65535) + (t & 65535);
5002
5007
  return (e >> 16) + (t >> 16) + (n >> 16) << 16 | n & 65535;
5003
5008
  }
5004
5009
  //#endregion
5005
5010
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/rsa.js
5006
- function kt(e, t) {
5011
+ function un(e, t) {
5007
5012
  if (t < e.length + 22) return console.error("Message too long for RSA"), null;
5008
5013
  for (var n = t - e.length - 6, r = "", i = 0; i < n; i += 2) r += "ff";
5009
- return W("0001" + r + "00" + e, 16);
5014
+ return Y("0001" + r + "00" + e, 16);
5010
5015
  }
5011
- function At(e, t) {
5016
+ function dn(e, t) {
5012
5017
  if (t < e.length + 11) return console.error("Message too long for RSA"), null;
5013
5018
  for (var n = [], r = e.length - 1; r >= 0 && t > 0;) {
5014
5019
  var i = e.charCodeAt(r--);
5015
5020
  i < 128 ? n[--t] = i : i > 127 && i < 2048 ? (n[--t] = i & 63 | 128, n[--t] = i >> 6 | 192) : (n[--t] = i & 63 | 128, n[--t] = i >> 6 & 63 | 128, n[--t] = i >> 12 | 224);
5016
5021
  }
5017
5022
  n[--t] = 0;
5018
- for (var a = new ht(), o = []; t > 2;) {
5023
+ for (var a = new Jt(), o = []; t > 2;) {
5019
5024
  for (o[0] = 0; o[0] == 0;) a.nextBytes(o);
5020
5025
  n[--t] = o[0];
5021
5026
  }
5022
- return n[--t] = 2, n[--t] = 0, new H(n);
5027
+ return n[--t] = 2, n[--t] = 0, new q(n);
5023
5028
  }
5024
- function jt(e, t, n) {
5029
+ function fn(e, t, n) {
5025
5030
  for (var r = "", i = 0; r.length < t;) r += n(String.fromCharCode.apply(String, e.concat([
5026
5031
  (i & 4278190080) >> 24,
5027
5032
  (i & 16711680) >> 16,
@@ -5030,21 +5035,21 @@ function jt(e, t, n) {
5030
5035
  ]))), i += 1;
5031
5036
  return r;
5032
5037
  }
5033
- var Mt = 32;
5034
- function Nt(e, t) {
5035
- var n = Mt, r = gt;
5038
+ var pn = 32;
5039
+ function mn(e, t) {
5040
+ var n = pn, r = Yt;
5036
5041
  if (e.length + 2 * n + 2 > t) throw "Message too long for RSA";
5037
5042
  var i = "", a;
5038
5043
  for (a = 0; a < t - e.length - 2 * n - 2; a += 1) i += "\0";
5039
5044
  var o = r("") + i + "" + e, s = Array(n);
5040
- new ht().nextBytes(s);
5041
- var c = jt(s, o.length, r), l = [];
5045
+ new Jt().nextBytes(s);
5046
+ var c = fn(s, o.length, r), l = [];
5042
5047
  for (a = 0; a < o.length; a += 1) l[a] = o.charCodeAt(a) ^ c.charCodeAt(a);
5043
- var u = jt(l, s.length, r), d = [0];
5048
+ var u = fn(l, s.length, r), d = [0];
5044
5049
  for (a = 0; a < s.length; a += 1) d[a + 1] = s[a] ^ u.charCodeAt(a);
5045
- return new H(d.concat(l));
5050
+ return new q(d.concat(l));
5046
5051
  }
5047
- var Pt = function() {
5052
+ var hn = function() {
5048
5053
  function e() {
5049
5054
  this.n = null, this.e = 0, this.d = null, this.p = null, this.q = null, this.dmp1 = null, this.dmq1 = null, this.coeff = null;
5050
5055
  }
@@ -5055,9 +5060,9 @@ var Pt = function() {
5055
5060
  for (var t = e.mod(this.p).modPow(this.dmp1, this.p), n = e.mod(this.q).modPow(this.dmq1, this.q); t.compareTo(n) < 0;) t = t.add(this.p);
5056
5061
  return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n);
5057
5062
  }, e.prototype.setPublic = function(e, t) {
5058
- e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = W(e, 16), this.e = parseInt(t, 16)) : console.error("Invalid RSA public key");
5063
+ e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = Y(e, 16), this.e = parseInt(t, 16)) : console.error("Invalid RSA public key");
5059
5064
  }, e.prototype.encrypt = function(e, t) {
5060
- t === void 0 && (t = At);
5065
+ t === void 0 && (t = dn);
5061
5066
  var n = this.n.bitLength() + 7 >> 3, r = t(e, n);
5062
5067
  if (r == null) return null;
5063
5068
  var i = this.doPublic(r);
@@ -5065,51 +5070,51 @@ var Pt = function() {
5065
5070
  for (var a = i.toString(16), o = a.length, s = 0; s < n * 2 - o; s++) a = "0" + a;
5066
5071
  return a;
5067
5072
  }, e.prototype.setPrivate = function(e, t, n) {
5068
- e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = W(e, 16), this.e = parseInt(t, 16), this.d = W(n, 16)) : console.error("Invalid RSA private key");
5073
+ e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = Y(e, 16), this.e = parseInt(t, 16), this.d = Y(n, 16)) : console.error("Invalid RSA private key");
5069
5074
  }, e.prototype.setPrivateEx = function(e, t, n, r, i, a, o, s) {
5070
- e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = W(e, 16), this.e = parseInt(t, 16), this.d = W(n, 16), this.p = W(r, 16), this.q = W(i, 16), this.dmp1 = W(a, 16), this.dmq1 = W(o, 16), this.coeff = W(s, 16)) : console.error("Invalid RSA private key");
5075
+ e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = Y(e, 16), this.e = parseInt(t, 16), this.d = Y(n, 16), this.p = Y(r, 16), this.q = Y(i, 16), this.dmp1 = Y(a, 16), this.dmq1 = Y(o, 16), this.coeff = Y(s, 16)) : console.error("Invalid RSA private key");
5071
5076
  }, e.prototype.generate = function(e, t) {
5072
- var n = new ht(), r = e >> 1;
5077
+ var n = new Jt(), r = e >> 1;
5073
5078
  this.e = parseInt(t, 16);
5074
- for (var i = new H(t, 16);;) {
5075
- for (; this.p = new H(e - r, 1, n), !(this.p.subtract(H.ONE).gcd(i).compareTo(H.ONE) == 0 && this.p.isProbablePrime(10)););
5076
- for (; this.q = new H(r, 1, n), !(this.q.subtract(H.ONE).gcd(i).compareTo(H.ONE) == 0 && this.q.isProbablePrime(10)););
5079
+ for (var i = new q(t, 16);;) {
5080
+ for (; this.p = new q(e - r, 1, n), !(this.p.subtract(q.ONE).gcd(i).compareTo(q.ONE) == 0 && this.p.isProbablePrime(10)););
5081
+ for (; this.q = new q(r, 1, n), !(this.q.subtract(q.ONE).gcd(i).compareTo(q.ONE) == 0 && this.q.isProbablePrime(10)););
5077
5082
  if (this.p.compareTo(this.q) <= 0) {
5078
5083
  var a = this.p;
5079
5084
  this.p = this.q, this.q = a;
5080
5085
  }
5081
- var o = this.p.subtract(H.ONE), s = this.q.subtract(H.ONE), c = o.multiply(s);
5082
- if (c.gcd(i).compareTo(H.ONE) == 0) {
5086
+ var o = this.p.subtract(q.ONE), s = this.q.subtract(q.ONE), c = o.multiply(s);
5087
+ if (c.gcd(i).compareTo(q.ONE) == 0) {
5083
5088
  this.n = this.p.multiply(this.q), this.d = i.modInverse(c), this.dmp1 = this.d.mod(o), this.dmq1 = this.d.mod(s), this.coeff = this.q.modInverse(this.p);
5084
5089
  break;
5085
5090
  }
5086
5091
  }
5087
5092
  }, e.prototype.decrypt = function(e) {
5088
- var t = W(e, 16), n = this.doPrivate(t);
5089
- return n == null ? null : Ft(n, this.n.bitLength() + 7 >> 3);
5093
+ var t = Y(e, 16), n = this.doPrivate(t);
5094
+ return n == null ? null : gn(n, this.n.bitLength() + 7 >> 3);
5090
5095
  }, e.prototype.generateAsync = function(e, t, n) {
5091
- var r = new ht(), i = e >> 1;
5096
+ var r = new Jt(), i = e >> 1;
5092
5097
  this.e = parseInt(t, 16);
5093
- var a = new H(t, 16), o = this, s = function() {
5098
+ var a = new q(t, 16), o = this, s = function() {
5094
5099
  var t = function() {
5095
5100
  if (o.p.compareTo(o.q) <= 0) {
5096
5101
  var e = o.p;
5097
5102
  o.p = o.q, o.q = e;
5098
5103
  }
5099
- var t = o.p.subtract(H.ONE), r = o.q.subtract(H.ONE), i = t.multiply(r);
5100
- i.gcd(a).compareTo(H.ONE) == 0 ? (o.n = o.p.multiply(o.q), o.d = a.modInverse(i), o.dmp1 = o.d.mod(t), o.dmq1 = o.d.mod(r), o.coeff = o.q.modInverse(o.p), setTimeout(function() {
5104
+ var t = o.p.subtract(q.ONE), r = o.q.subtract(q.ONE), i = t.multiply(r);
5105
+ i.gcd(a).compareTo(q.ONE) == 0 ? (o.n = o.p.multiply(o.q), o.d = a.modInverse(i), o.dmp1 = o.d.mod(t), o.dmq1 = o.d.mod(r), o.coeff = o.q.modInverse(o.p), setTimeout(function() {
5101
5106
  n();
5102
5107
  }, 0)) : setTimeout(s, 0);
5103
5108
  }, c = function() {
5104
- o.q = U(), o.q.fromNumberAsync(i, 1, r, function() {
5105
- o.q.subtract(H.ONE).gcda(a, function(e) {
5106
- e.compareTo(H.ONE) == 0 && o.q.isProbablePrime(10) ? setTimeout(t, 0) : setTimeout(c, 0);
5109
+ o.q = J(), o.q.fromNumberAsync(i, 1, r, function() {
5110
+ o.q.subtract(q.ONE).gcda(a, function(e) {
5111
+ e.compareTo(q.ONE) == 0 && o.q.isProbablePrime(10) ? setTimeout(t, 0) : setTimeout(c, 0);
5107
5112
  });
5108
5113
  });
5109
5114
  }, l = function() {
5110
- o.p = U(), o.p.fromNumberAsync(e - i, 1, r, function() {
5111
- o.p.subtract(H.ONE).gcda(a, function(e) {
5112
- e.compareTo(H.ONE) == 0 && o.p.isProbablePrime(10) ? setTimeout(c, 0) : setTimeout(l, 0);
5115
+ o.p = J(), o.p.fromNumberAsync(e - i, 1, r, function() {
5116
+ o.p.subtract(q.ONE).gcda(a, function(e) {
5117
+ e.compareTo(q.ONE) == 0 && o.p.isProbablePrime(10) ? setTimeout(c, 0) : setTimeout(l, 0);
5113
5118
  });
5114
5119
  });
5115
5120
  };
@@ -5117,18 +5122,18 @@ var Pt = function() {
5117
5122
  };
5118
5123
  setTimeout(s, 0);
5119
5124
  }, e.prototype.sign = function(e, t, n) {
5120
- var r = Lt(n) + t(e).toString(), i = this.n.bitLength() / 4, a = kt(r, i);
5125
+ var r = vn(n) + t(e).toString(), i = this.n.bitLength() / 4, a = un(r, i);
5121
5126
  if (a == null) return null;
5122
5127
  var o = this.doPrivate(a);
5123
5128
  if (o == null) return null;
5124
5129
  for (var s = o.toString(16), c = s.length, l = 0; l < i - c; l++) s = "0" + s;
5125
5130
  return s;
5126
5131
  }, e.prototype.verify = function(e, t, n) {
5127
- var r = W(t, 16), i = this.doPublic(r);
5128
- return i == null ? null : Rt(i.toString(16).replace(/^1f+00/, "")) == n(e).toString();
5132
+ var r = Y(t, 16), i = this.doPublic(r);
5133
+ return i == null ? null : yn(i.toString(16).replace(/^1f+00/, "")) == n(e).toString();
5129
5134
  }, e;
5130
5135
  }();
5131
- function Ft(e, t) {
5136
+ function gn(e, t) {
5132
5137
  for (var n = e.toByteArray(), r = 0; r < n.length && n[r] == 0;) ++r;
5133
5138
  if (n.length - r != t - 1 || n[r] != 2) return null;
5134
5139
  for (++r; n[r] != 0;) if (++r >= n.length) return null;
@@ -5138,7 +5143,7 @@ function Ft(e, t) {
5138
5143
  }
5139
5144
  return i;
5140
5145
  }
5141
- var It = {
5146
+ var _n = {
5142
5147
  md2: "3020300c06082a864886f70d020205000410",
5143
5148
  md5: "3020300c06082a864886f70d020505000410",
5144
5149
  sha1: "3021300906052b0e03021a05000414",
@@ -5148,19 +5153,19 @@ var It = {
5148
5153
  sha512: "3051300d060960864801650304020305000440",
5149
5154
  ripemd160: "3021300906052b2403020105000414"
5150
5155
  };
5151
- function Lt(e) {
5152
- return It[e] || "";
5156
+ function vn(e) {
5157
+ return _n[e] || "";
5153
5158
  }
5154
- function Rt(e) {
5155
- for (var t in It) if (It.hasOwnProperty(t)) {
5156
- var n = It[t], r = n.length;
5159
+ function yn(e) {
5160
+ for (var t in _n) if (_n.hasOwnProperty(t)) {
5161
+ var n = _n[t], r = n.length;
5157
5162
  if (e.substring(0, r) == n) return e.substring(r);
5158
5163
  }
5159
5164
  return e;
5160
5165
  }
5161
5166
  //#endregion
5162
5167
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js
5163
- function Y(e, t, n) {
5168
+ function Z(e, t, n) {
5164
5169
  if (!t || !e) throw Error("extend failed, please check that all dependencies are included.");
5165
5170
  var r = function() {};
5166
5171
  if (r.prototype = t.prototype, e.prototype = new r(), e.prototype.constructor = e, e.superclass = t.prototype, t.prototype.constructor == Object.prototype.constructor && (t.prototype.constructor = t), n) {
@@ -5177,8 +5182,8 @@ function Y(e, t, n) {
5177
5182
  a(e.prototype, n);
5178
5183
  }
5179
5184
  }
5180
- var X = {};
5181
- (X.asn1 === void 0 || !X.asn1) && (X.asn1 = {}), X.asn1.ASN1Util = new function() {
5185
+ var Q = {};
5186
+ (Q.asn1 === void 0 || !Q.asn1) && (Q.asn1 = {}), Q.asn1.ASN1Util = new function() {
5182
5187
  this.integerToByteHex = function(e) {
5183
5188
  var t = e.toString(16);
5184
5189
  return t.length % 2 == 1 && (t = "0" + t), t;
@@ -5189,13 +5194,13 @@ var X = {};
5189
5194
  var n = t.substring(1).length;
5190
5195
  n % 2 == 1 ? n += 1 : t.match(/^[0-7]/) || (n += 2);
5191
5196
  for (var r = "", i = 0; i < n; i++) r += "f";
5192
- t = new H(r, 16).xor(e).add(H.ONE).toString(16).replace(/^-/, "");
5197
+ t = new q(r, 16).xor(e).add(q.ONE).toString(16).replace(/^-/, "");
5193
5198
  }
5194
5199
  return t;
5195
5200
  }, this.getPEMStringFromHex = function(e, t) {
5196
5201
  return hextopem(e, t);
5197
5202
  }, this.newObject = function(e) {
5198
- var t = X.asn1, n = t.DERBoolean, r = t.DERInteger, i = t.DERBitString, a = t.DEROctetString, o = t.DERNull, s = t.DERObjectIdentifier, c = t.DEREnumerated, l = t.DERUTF8String, u = t.DERNumericString, d = t.DERPrintableString, f = t.DERTeletexString, p = t.DERIA5String, m = t.DERUTCTime, h = t.DERGeneralizedTime, g = t.DERSequence, _ = t.DERSet, v = t.DERTaggedObject, y = t.ASN1Util.newObject, b = Object.keys(e);
5203
+ var t = Q.asn1, n = t.DERBoolean, r = t.DERInteger, i = t.DERBitString, a = t.DEROctetString, o = t.DERNull, s = t.DERObjectIdentifier, c = t.DEREnumerated, l = t.DERUTF8String, u = t.DERNumericString, d = t.DERPrintableString, f = t.DERTeletexString, p = t.DERIA5String, m = t.DERUTCTime, h = t.DERGeneralizedTime, g = t.DERSequence, _ = t.DERSet, v = t.DERTaggedObject, y = t.ASN1Util.newObject, b = Object.keys(e);
5199
5204
  if (b.length != 1) throw "key of param shall be only one.";
5200
5205
  var x = b[0];
5201
5206
  if (":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":" + x + ":") == -1) throw "undefined key: " + x;
@@ -5245,21 +5250,21 @@ var X = {};
5245
5250
  }, this.jsonToASN1HEX = function(e) {
5246
5251
  return this.newObject(e).getEncodedHex();
5247
5252
  };
5248
- }(), X.asn1.ASN1Util.oidHexToInt = function(e) {
5253
+ }(), Q.asn1.ASN1Util.oidHexToInt = function(e) {
5249
5254
  for (var t = "", n = parseInt(e.substring(0, 2), 16), r = Math.floor(n / 40), i = n % 40, t = r + "." + i, a = "", o = 2; o < e.length; o += 2) {
5250
5255
  var s = ("00000000" + parseInt(e.substring(o, o + 2), 16).toString(2)).slice(-8);
5251
5256
  if (a += s.substring(1, 8), s.substring(0, 1) == "0") {
5252
- var c = new H(a, 2);
5257
+ var c = new q(a, 2);
5253
5258
  t = t + "." + c.toString(10), a = "";
5254
5259
  }
5255
5260
  }
5256
5261
  return t;
5257
- }, X.asn1.ASN1Util.oidIntToHex = function(e) {
5262
+ }, Q.asn1.ASN1Util.oidIntToHex = function(e) {
5258
5263
  var t = function(e) {
5259
5264
  var t = e.toString(16);
5260
5265
  return t.length == 1 && (t = "0" + t), t;
5261
5266
  }, n = function(e) {
5262
- var n = "", r = new H(e, 10).toString(2), i = 7 - r.length % 7;
5267
+ var n = "", r = new q(e, 10).toString(2), i = 7 - r.length % 7;
5263
5268
  i == 7 && (i = 0);
5264
5269
  for (var a = "", o = 0; o < i; o++) a += "0";
5265
5270
  r = a + r;
@@ -5274,7 +5279,7 @@ var X = {};
5274
5279
  r += t(a), i.splice(0, 2);
5275
5280
  for (var o = 0; o < i.length; o++) r += n(i[o]);
5276
5281
  return r;
5277
- }, X.asn1.ASN1Object = function() {
5282
+ }, Q.asn1.ASN1Object = function() {
5278
5283
  var e = "";
5279
5284
  this.getLengthHexFromValue = function() {
5280
5285
  if (this.hV === void 0 || this.hV == null) throw "this.hV is null or undefined.";
@@ -5291,8 +5296,8 @@ var X = {};
5291
5296
  }, this.getFreshValueHex = function() {
5292
5297
  return "";
5293
5298
  };
5294
- }, X.asn1.DERAbstractString = function(e) {
5295
- X.asn1.DERAbstractString.superclass.constructor.call(this), this.getString = function() {
5299
+ }, Q.asn1.DERAbstractString = function(e) {
5300
+ Q.asn1.DERAbstractString.superclass.constructor.call(this), this.getString = function() {
5296
5301
  return this.s;
5297
5302
  }, this.setString = function(e) {
5298
5303
  this.hTLV = null, this.isModified = !0, this.s = e, this.hV = stohex(this.s);
@@ -5301,8 +5306,8 @@ var X = {};
5301
5306
  }, this.getFreshValueHex = function() {
5302
5307
  return this.hV;
5303
5308
  }, e !== void 0 && (typeof e == "string" ? this.setString(e) : e.str === void 0 ? e.hex !== void 0 && this.setStringHex(e.hex) : this.setString(e.str));
5304
- }, Y(X.asn1.DERAbstractString, X.asn1.ASN1Object), X.asn1.DERAbstractTime = function(e) {
5305
- X.asn1.DERAbstractTime.superclass.constructor.call(this), this.localDateToUTC = function(e) {
5309
+ }, Z(Q.asn1.DERAbstractString, Q.asn1.ASN1Object), Q.asn1.DERAbstractTime = function(e) {
5310
+ Q.asn1.DERAbstractTime.superclass.constructor.call(this), this.localDateToUTC = function(e) {
5306
5311
  return utc = e.getTime() + e.getTimezoneOffset() * 6e4, new Date(utc);
5307
5312
  }, this.formatDate = function(e, t, n) {
5308
5313
  var r = this.zeroPadding, i = this.localDateToUTC(e), a = String(i.getFullYear());
@@ -5328,27 +5333,27 @@ var X = {};
5328
5333
  }, this.getFreshValueHex = function() {
5329
5334
  return this.hV;
5330
5335
  };
5331
- }, Y(X.asn1.DERAbstractTime, X.asn1.ASN1Object), X.asn1.DERAbstractStructured = function(e) {
5332
- X.asn1.DERAbstractString.superclass.constructor.call(this), this.setByASN1ObjectArray = function(e) {
5336
+ }, Z(Q.asn1.DERAbstractTime, Q.asn1.ASN1Object), Q.asn1.DERAbstractStructured = function(e) {
5337
+ Q.asn1.DERAbstractString.superclass.constructor.call(this), this.setByASN1ObjectArray = function(e) {
5333
5338
  this.hTLV = null, this.isModified = !0, this.asn1Array = e;
5334
5339
  }, this.appendASN1Object = function(e) {
5335
5340
  this.hTLV = null, this.isModified = !0, this.asn1Array.push(e);
5336
5341
  }, this.asn1Array = [], e !== void 0 && e.array !== void 0 && (this.asn1Array = e.array);
5337
- }, Y(X.asn1.DERAbstractStructured, X.asn1.ASN1Object), X.asn1.DERBoolean = function() {
5338
- X.asn1.DERBoolean.superclass.constructor.call(this), this.hT = "01", this.hTLV = "0101ff";
5339
- }, Y(X.asn1.DERBoolean, X.asn1.ASN1Object), X.asn1.DERInteger = function(e) {
5340
- X.asn1.DERInteger.superclass.constructor.call(this), this.hT = "02", this.setByBigInteger = function(e) {
5341
- this.hTLV = null, this.isModified = !0, this.hV = X.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
5342
+ }, Z(Q.asn1.DERAbstractStructured, Q.asn1.ASN1Object), Q.asn1.DERBoolean = function() {
5343
+ Q.asn1.DERBoolean.superclass.constructor.call(this), this.hT = "01", this.hTLV = "0101ff";
5344
+ }, Z(Q.asn1.DERBoolean, Q.asn1.ASN1Object), Q.asn1.DERInteger = function(e) {
5345
+ Q.asn1.DERInteger.superclass.constructor.call(this), this.hT = "02", this.setByBigInteger = function(e) {
5346
+ this.hTLV = null, this.isModified = !0, this.hV = Q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
5342
5347
  }, this.setByInteger = function(e) {
5343
- var t = new H(String(e), 10);
5348
+ var t = new q(String(e), 10);
5344
5349
  this.setByBigInteger(t);
5345
5350
  }, this.setValueHex = function(e) {
5346
5351
  this.hV = e;
5347
5352
  }, this.getFreshValueHex = function() {
5348
5353
  return this.hV;
5349
5354
  }, e !== void 0 && (e.bigint === void 0 ? e.int === void 0 ? typeof e == "number" ? this.setByInteger(e) : e.hex !== void 0 && this.setValueHex(e.hex) : this.setByInteger(e.int) : this.setByBigInteger(e.bigint));
5350
- }, Y(X.asn1.DERInteger, X.asn1.ASN1Object), X.asn1.DERBitString = function(e) {
5351
- e !== void 0 && e.obj !== void 0 && (e.hex = "00" + X.asn1.ASN1Util.newObject(e.obj).getEncodedHex()), X.asn1.DERBitString.superclass.constructor.call(this), this.hT = "03", this.setHexValueIncludingUnusedBits = function(e) {
5355
+ }, Z(Q.asn1.DERInteger, Q.asn1.ASN1Object), Q.asn1.DERBitString = function(e) {
5356
+ e !== void 0 && e.obj !== void 0 && (e.hex = "00" + Q.asn1.ASN1Util.newObject(e.obj).getEncodedHex()), Q.asn1.DERBitString.superclass.constructor.call(this), this.hT = "03", this.setHexValueIncludingUnusedBits = function(e) {
5352
5357
  this.hTLV = null, this.isModified = !0, this.hV = e;
5353
5358
  }, this.setUnusedBitsAndHexValue = function(e, t) {
5354
5359
  if (e < 0 || 7 < e) throw "unused bits shall be from 0 to 7: u = " + e;
@@ -5373,16 +5378,16 @@ var X = {};
5373
5378
  }, this.getFreshValueHex = function() {
5374
5379
  return this.hV;
5375
5380
  }, e !== void 0 && (typeof e == "string" && e.toLowerCase().match(/^[0-9a-f]+$/) ? this.setHexValueIncludingUnusedBits(e) : e.hex === void 0 ? e.bin === void 0 ? e.array !== void 0 && this.setByBooleanArray(e.array) : this.setByBinaryString(e.bin) : this.setHexValueIncludingUnusedBits(e.hex));
5376
- }, Y(X.asn1.DERBitString, X.asn1.ASN1Object), X.asn1.DEROctetString = function(e) {
5377
- e !== void 0 && e.obj !== void 0 && (e.hex = X.asn1.ASN1Util.newObject(e.obj).getEncodedHex()), X.asn1.DEROctetString.superclass.constructor.call(this, e), this.hT = "04";
5378
- }, Y(X.asn1.DEROctetString, X.asn1.DERAbstractString), X.asn1.DERNull = function() {
5379
- X.asn1.DERNull.superclass.constructor.call(this), this.hT = "05", this.hTLV = "0500";
5380
- }, Y(X.asn1.DERNull, X.asn1.ASN1Object), X.asn1.DERObjectIdentifier = function(e) {
5381
+ }, Z(Q.asn1.DERBitString, Q.asn1.ASN1Object), Q.asn1.DEROctetString = function(e) {
5382
+ e !== void 0 && e.obj !== void 0 && (e.hex = Q.asn1.ASN1Util.newObject(e.obj).getEncodedHex()), Q.asn1.DEROctetString.superclass.constructor.call(this, e), this.hT = "04";
5383
+ }, Z(Q.asn1.DEROctetString, Q.asn1.DERAbstractString), Q.asn1.DERNull = function() {
5384
+ Q.asn1.DERNull.superclass.constructor.call(this), this.hT = "05", this.hTLV = "0500";
5385
+ }, Z(Q.asn1.DERNull, Q.asn1.ASN1Object), Q.asn1.DERObjectIdentifier = function(e) {
5381
5386
  var t = function(e) {
5382
5387
  var t = e.toString(16);
5383
5388
  return t.length == 1 && (t = "0" + t), t;
5384
5389
  }, n = function(e) {
5385
- var n = "", r = new H(e, 10).toString(2), i = 7 - r.length % 7;
5390
+ var n = "", r = new q(e, 10).toString(2), i = 7 - r.length % 7;
5386
5391
  i == 7 && (i = 0);
5387
5392
  for (var a = "", o = 0; o < i; o++) a += "0";
5388
5393
  r = a + r;
@@ -5392,7 +5397,7 @@ var X = {};
5392
5397
  }
5393
5398
  return n;
5394
5399
  };
5395
- X.asn1.DERObjectIdentifier.superclass.constructor.call(this), this.hT = "06", this.setValueHex = function(e) {
5400
+ Q.asn1.DERObjectIdentifier.superclass.constructor.call(this), this.hT = "06", this.setValueHex = function(e) {
5396
5401
  this.hTLV = null, this.isModified = !0, this.s = null, this.hV = e;
5397
5402
  }, this.setValueOidString = function(e) {
5398
5403
  if (!e.match(/^[0-9.]+$/)) throw "malformed oid string: " + e;
@@ -5401,71 +5406,71 @@ var X = {};
5401
5406
  for (var o = 0; o < i.length; o++) r += n(i[o]);
5402
5407
  this.hTLV = null, this.isModified = !0, this.s = null, this.hV = r;
5403
5408
  }, this.setValueName = function(e) {
5404
- var t = X.asn1.x509.OID.name2oid(e);
5409
+ var t = Q.asn1.x509.OID.name2oid(e);
5405
5410
  if (t !== "") this.setValueOidString(t);
5406
5411
  else throw "DERObjectIdentifier oidName undefined: " + e;
5407
5412
  }, this.getFreshValueHex = function() {
5408
5413
  return this.hV;
5409
5414
  }, e !== void 0 && (typeof e == "string" ? e.match(/^[0-2].[0-9.]+$/) ? this.setValueOidString(e) : this.setValueName(e) : e.oid === void 0 ? e.hex === void 0 ? e.name !== void 0 && this.setValueName(e.name) : this.setValueHex(e.hex) : this.setValueOidString(e.oid));
5410
- }, Y(X.asn1.DERObjectIdentifier, X.asn1.ASN1Object), X.asn1.DEREnumerated = function(e) {
5411
- X.asn1.DEREnumerated.superclass.constructor.call(this), this.hT = "0a", this.setByBigInteger = function(e) {
5412
- this.hTLV = null, this.isModified = !0, this.hV = X.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
5415
+ }, Z(Q.asn1.DERObjectIdentifier, Q.asn1.ASN1Object), Q.asn1.DEREnumerated = function(e) {
5416
+ Q.asn1.DEREnumerated.superclass.constructor.call(this), this.hT = "0a", this.setByBigInteger = function(e) {
5417
+ this.hTLV = null, this.isModified = !0, this.hV = Q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
5413
5418
  }, this.setByInteger = function(e) {
5414
- var t = new H(String(e), 10);
5419
+ var t = new q(String(e), 10);
5415
5420
  this.setByBigInteger(t);
5416
5421
  }, this.setValueHex = function(e) {
5417
5422
  this.hV = e;
5418
5423
  }, this.getFreshValueHex = function() {
5419
5424
  return this.hV;
5420
5425
  }, e !== void 0 && (e.int === void 0 ? typeof e == "number" ? this.setByInteger(e) : e.hex !== void 0 && this.setValueHex(e.hex) : this.setByInteger(e.int));
5421
- }, Y(X.asn1.DEREnumerated, X.asn1.ASN1Object), X.asn1.DERUTF8String = function(e) {
5422
- X.asn1.DERUTF8String.superclass.constructor.call(this, e), this.hT = "0c";
5423
- }, Y(X.asn1.DERUTF8String, X.asn1.DERAbstractString), X.asn1.DERNumericString = function(e) {
5424
- X.asn1.DERNumericString.superclass.constructor.call(this, e), this.hT = "12";
5425
- }, Y(X.asn1.DERNumericString, X.asn1.DERAbstractString), X.asn1.DERPrintableString = function(e) {
5426
- X.asn1.DERPrintableString.superclass.constructor.call(this, e), this.hT = "13";
5427
- }, Y(X.asn1.DERPrintableString, X.asn1.DERAbstractString), X.asn1.DERTeletexString = function(e) {
5428
- X.asn1.DERTeletexString.superclass.constructor.call(this, e), this.hT = "14";
5429
- }, Y(X.asn1.DERTeletexString, X.asn1.DERAbstractString), X.asn1.DERIA5String = function(e) {
5430
- X.asn1.DERIA5String.superclass.constructor.call(this, e), this.hT = "16";
5431
- }, Y(X.asn1.DERIA5String, X.asn1.DERAbstractString), X.asn1.DERUTCTime = function(e) {
5432
- X.asn1.DERUTCTime.superclass.constructor.call(this, e), this.hT = "17", this.setByDate = function(e) {
5426
+ }, Z(Q.asn1.DEREnumerated, Q.asn1.ASN1Object), Q.asn1.DERUTF8String = function(e) {
5427
+ Q.asn1.DERUTF8String.superclass.constructor.call(this, e), this.hT = "0c";
5428
+ }, Z(Q.asn1.DERUTF8String, Q.asn1.DERAbstractString), Q.asn1.DERNumericString = function(e) {
5429
+ Q.asn1.DERNumericString.superclass.constructor.call(this, e), this.hT = "12";
5430
+ }, Z(Q.asn1.DERNumericString, Q.asn1.DERAbstractString), Q.asn1.DERPrintableString = function(e) {
5431
+ Q.asn1.DERPrintableString.superclass.constructor.call(this, e), this.hT = "13";
5432
+ }, Z(Q.asn1.DERPrintableString, Q.asn1.DERAbstractString), Q.asn1.DERTeletexString = function(e) {
5433
+ Q.asn1.DERTeletexString.superclass.constructor.call(this, e), this.hT = "14";
5434
+ }, Z(Q.asn1.DERTeletexString, Q.asn1.DERAbstractString), Q.asn1.DERIA5String = function(e) {
5435
+ Q.asn1.DERIA5String.superclass.constructor.call(this, e), this.hT = "16";
5436
+ }, Z(Q.asn1.DERIA5String, Q.asn1.DERAbstractString), Q.asn1.DERUTCTime = function(e) {
5437
+ Q.asn1.DERUTCTime.superclass.constructor.call(this, e), this.hT = "17", this.setByDate = function(e) {
5433
5438
  this.hTLV = null, this.isModified = !0, this.date = e, this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s);
5434
5439
  }, this.getFreshValueHex = function() {
5435
5440
  return this.date === void 0 && this.s === void 0 && (this.date = /* @__PURE__ */ new Date(), this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s)), this.hV;
5436
5441
  }, e !== void 0 && (e.str === void 0 ? typeof e == "string" && e.match(/^[0-9]{12}Z$/) ? this.setString(e) : e.hex === void 0 ? e.date !== void 0 && this.setByDate(e.date) : this.setStringHex(e.hex) : this.setString(e.str));
5437
- }, Y(X.asn1.DERUTCTime, X.asn1.DERAbstractTime), X.asn1.DERGeneralizedTime = function(e) {
5438
- X.asn1.DERGeneralizedTime.superclass.constructor.call(this, e), this.hT = "18", this.withMillis = !1, this.setByDate = function(e) {
5442
+ }, Z(Q.asn1.DERUTCTime, Q.asn1.DERAbstractTime), Q.asn1.DERGeneralizedTime = function(e) {
5443
+ Q.asn1.DERGeneralizedTime.superclass.constructor.call(this, e), this.hT = "18", this.withMillis = !1, this.setByDate = function(e) {
5439
5444
  this.hTLV = null, this.isModified = !0, this.date = e, this.s = this.formatDate(this.date, "gen", this.withMillis), this.hV = stohex(this.s);
5440
5445
  }, this.getFreshValueHex = function() {
5441
5446
  return this.date === void 0 && this.s === void 0 && (this.date = /* @__PURE__ */ new Date(), this.s = this.formatDate(this.date, "gen", this.withMillis), this.hV = stohex(this.s)), this.hV;
5442
5447
  }, e !== void 0 && (e.str === void 0 ? typeof e == "string" && e.match(/^[0-9]{14}Z$/) ? this.setString(e) : e.hex === void 0 ? e.date !== void 0 && this.setByDate(e.date) : this.setStringHex(e.hex) : this.setString(e.str), e.millis === !0 && (this.withMillis = !0));
5443
- }, Y(X.asn1.DERGeneralizedTime, X.asn1.DERAbstractTime), X.asn1.DERSequence = function(e) {
5444
- X.asn1.DERSequence.superclass.constructor.call(this, e), this.hT = "30", this.getFreshValueHex = function() {
5448
+ }, Z(Q.asn1.DERGeneralizedTime, Q.asn1.DERAbstractTime), Q.asn1.DERSequence = function(e) {
5449
+ Q.asn1.DERSequence.superclass.constructor.call(this, e), this.hT = "30", this.getFreshValueHex = function() {
5445
5450
  for (var e = "", t = 0; t < this.asn1Array.length; t++) {
5446
5451
  var n = this.asn1Array[t];
5447
5452
  e += n.getEncodedHex();
5448
5453
  }
5449
5454
  return this.hV = e, this.hV;
5450
5455
  };
5451
- }, Y(X.asn1.DERSequence, X.asn1.DERAbstractStructured), X.asn1.DERSet = function(e) {
5452
- X.asn1.DERSet.superclass.constructor.call(this, e), this.hT = "31", this.sortFlag = !0, this.getFreshValueHex = function() {
5456
+ }, Z(Q.asn1.DERSequence, Q.asn1.DERAbstractStructured), Q.asn1.DERSet = function(e) {
5457
+ Q.asn1.DERSet.superclass.constructor.call(this, e), this.hT = "31", this.sortFlag = !0, this.getFreshValueHex = function() {
5453
5458
  for (var e = [], t = 0; t < this.asn1Array.length; t++) {
5454
5459
  var n = this.asn1Array[t];
5455
5460
  e.push(n.getEncodedHex());
5456
5461
  }
5457
5462
  return this.sortFlag == 1 && e.sort(), this.hV = e.join(""), this.hV;
5458
5463
  }, e !== void 0 && e.sortflag !== void 0 && e.sortflag == 0 && (this.sortFlag = !1);
5459
- }, Y(X.asn1.DERSet, X.asn1.DERAbstractStructured), X.asn1.DERTaggedObject = function(e) {
5460
- X.asn1.DERTaggedObject.superclass.constructor.call(this), this.hT = "a0", this.hV = "", this.isExplicit = !0, this.asn1Object = null, this.setASN1Object = function(e, t, n) {
5464
+ }, Z(Q.asn1.DERSet, Q.asn1.DERAbstractStructured), Q.asn1.DERTaggedObject = function(e) {
5465
+ Q.asn1.DERTaggedObject.superclass.constructor.call(this), this.hT = "a0", this.hV = "", this.isExplicit = !0, this.asn1Object = null, this.setASN1Object = function(e, t, n) {
5461
5466
  this.hT = t, this.isExplicit = e, this.asn1Object = n, this.isExplicit ? (this.hV = this.asn1Object.getEncodedHex(), this.hTLV = null, this.isModified = !0) : (this.hV = null, this.hTLV = n.getEncodedHex(), this.hTLV = this.hTLV.replace(/^../, t), this.isModified = !1);
5462
5467
  }, this.getFreshValueHex = function() {
5463
5468
  return this.hV;
5464
5469
  }, e !== void 0 && (e.tag !== void 0 && (this.hT = e.tag), e.explicit !== void 0 && (this.isExplicit = e.explicit), e.obj !== void 0 && (this.asn1Object = e.obj, this.setASN1Object(this.isExplicit, this.hT, this.asn1Object)));
5465
- }, Y(X.asn1.DERTaggedObject, X.asn1.ASN1Object);
5470
+ }, Z(Q.asn1.DERTaggedObject, Q.asn1.ASN1Object);
5466
5471
  //#endregion
5467
5472
  //#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/JSEncryptRSAKey.js
5468
- var zt = (function() {
5473
+ var bn = (function() {
5469
5474
  var e = function(t, n) {
5470
5475
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
5471
5476
  e.__proto__ = t;
@@ -5481,20 +5486,20 @@ var zt = (function() {
5481
5486
  }
5482
5487
  t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
5483
5488
  };
5484
- })(), Bt = function(e) {
5485
- zt(t, e);
5489
+ })(), xn = function(e) {
5490
+ bn(t, e);
5486
5491
  function t(n) {
5487
5492
  var r = e.call(this) || this;
5488
5493
  return n && (typeof n == "string" ? r.parseKey(n) : (t.hasPrivateKeyProperty(n) || t.hasPublicKeyProperty(n)) && r.parsePropertiesFrom(n)), r;
5489
5494
  }
5490
5495
  return t.prototype.parseKey = function(e) {
5491
5496
  try {
5492
- var t = 0, n = 0, r = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e) ? Fe.decode(e) : Ie.unarmor(e), i = We.decode(r);
5493
- if (i.sub.length === 3 && (i = i.sub[2].sub[0]), i.sub.length === 9) t = i.sub[1].getHexStringValue(), this.n = W(t, 16), n = i.sub[2].getHexStringValue(), this.e = parseInt(n, 16), this.d = W(i.sub[3].getHexStringValue(), 16), this.p = W(i.sub[4].getHexStringValue(), 16), this.q = W(i.sub[5].getHexStringValue(), 16), this.dmp1 = W(i.sub[6].getHexStringValue(), 16), this.dmq1 = W(i.sub[7].getHexStringValue(), 16), this.coeff = W(i.sub[8].getHexStringValue(), 16);
5497
+ var t = 0, n = 0, r = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e) ? ht.decode(e) : _t.unarmor(e), i = St.decode(r);
5498
+ if (i.sub.length === 3 && (i = i.sub[2].sub[0]), i.sub.length === 9) t = i.sub[1].getHexStringValue(), this.n = Y(t, 16), n = i.sub[2].getHexStringValue(), this.e = parseInt(n, 16), this.d = Y(i.sub[3].getHexStringValue(), 16), this.p = Y(i.sub[4].getHexStringValue(), 16), this.q = Y(i.sub[5].getHexStringValue(), 16), this.dmp1 = Y(i.sub[6].getHexStringValue(), 16), this.dmq1 = Y(i.sub[7].getHexStringValue(), 16), this.coeff = Y(i.sub[8].getHexStringValue(), 16);
5494
5499
  else if (i.sub.length === 2) if (i.sub[0].sub) {
5495
5500
  var a = i.sub[1].sub[0];
5496
- t = a.sub[0].getHexStringValue(), this.n = W(t, 16), n = a.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
5497
- } else t = i.sub[0].getHexStringValue(), this.n = W(t, 16), n = i.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
5501
+ t = a.sub[0].getHexStringValue(), this.n = Y(t, 16), n = a.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
5502
+ } else t = i.sub[0].getHexStringValue(), this.n = Y(t, 16), n = i.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
5498
5503
  else return !1;
5499
5504
  return !0;
5500
5505
  } catch {
@@ -5502,24 +5507,24 @@ var zt = (function() {
5502
5507
  }
5503
5508
  }, t.prototype.getPrivateBaseKey = function() {
5504
5509
  var e = { array: [
5505
- new X.asn1.DERInteger({ int: 0 }),
5506
- new X.asn1.DERInteger({ bigint: this.n }),
5507
- new X.asn1.DERInteger({ int: this.e }),
5508
- new X.asn1.DERInteger({ bigint: this.d }),
5509
- new X.asn1.DERInteger({ bigint: this.p }),
5510
- new X.asn1.DERInteger({ bigint: this.q }),
5511
- new X.asn1.DERInteger({ bigint: this.dmp1 }),
5512
- new X.asn1.DERInteger({ bigint: this.dmq1 }),
5513
- new X.asn1.DERInteger({ bigint: this.coeff })
5510
+ new Q.asn1.DERInteger({ int: 0 }),
5511
+ new Q.asn1.DERInteger({ bigint: this.n }),
5512
+ new Q.asn1.DERInteger({ int: this.e }),
5513
+ new Q.asn1.DERInteger({ bigint: this.d }),
5514
+ new Q.asn1.DERInteger({ bigint: this.p }),
5515
+ new Q.asn1.DERInteger({ bigint: this.q }),
5516
+ new Q.asn1.DERInteger({ bigint: this.dmp1 }),
5517
+ new Q.asn1.DERInteger({ bigint: this.dmq1 }),
5518
+ new Q.asn1.DERInteger({ bigint: this.coeff })
5514
5519
  ] };
5515
- return new X.asn1.DERSequence(e).getEncodedHex();
5520
+ return new Q.asn1.DERSequence(e).getEncodedHex();
5516
5521
  }, t.prototype.getPrivateBaseKeyB64 = function() {
5517
- return Me(this.getPrivateBaseKey());
5522
+ return ft(this.getPrivateBaseKey());
5518
5523
  }, t.prototype.getPublicBaseKey = function() {
5519
- var e = new X.asn1.DERSequence({ array: [new X.asn1.DERObjectIdentifier({ oid: "1.2.840.113549.1.1.1" }), new X.asn1.DERNull()] }), t = new X.asn1.DERSequence({ array: [new X.asn1.DERInteger({ bigint: this.n }), new X.asn1.DERInteger({ int: this.e })] }), n = new X.asn1.DERBitString({ hex: "00" + t.getEncodedHex() });
5520
- return new X.asn1.DERSequence({ array: [e, n] }).getEncodedHex();
5524
+ var e = new Q.asn1.DERSequence({ array: [new Q.asn1.DERObjectIdentifier({ oid: "1.2.840.113549.1.1.1" }), new Q.asn1.DERNull()] }), t = new Q.asn1.DERSequence({ array: [new Q.asn1.DERInteger({ bigint: this.n }), new Q.asn1.DERInteger({ int: this.e })] }), n = new Q.asn1.DERBitString({ hex: "00" + t.getEncodedHex() });
5525
+ return new Q.asn1.DERSequence({ array: [e, n] }).getEncodedHex();
5521
5526
  }, t.prototype.getPublicBaseKeyB64 = function() {
5522
- return Me(this.getPublicBaseKey());
5527
+ return ft(this.getPublicBaseKey());
5523
5528
  }, t.wordwrap = function(e, t) {
5524
5529
  if (t ||= 64, !e) return e;
5525
5530
  var n = "(.{1," + t + "})( +|$\n?)|(.{1," + t + "})";
@@ -5537,31 +5542,31 @@ var zt = (function() {
5537
5542
  }, t.prototype.parsePropertiesFrom = function(e) {
5538
5543
  this.n = e.n, this.e = e.e, e.hasOwnProperty("d") && (this.d = e.d, this.p = e.p, this.q = e.q, this.dmp1 = e.dmp1, this.dmq1 = e.dmq1, this.coeff = e.coeff);
5539
5544
  }, t;
5540
- }(Pt), Vt = typeof process < "u" ? process.env?.npm_package_version : void 0, Ht = function() {
5545
+ }(hn), Sn = typeof process < "u" ? process.env?.npm_package_version : void 0, Cn = function() {
5541
5546
  function e(e) {
5542
5547
  e === void 0 && (e = {}), this.default_key_size = e.default_key_size ? parseInt(e.default_key_size, 10) : 1024, this.default_public_exponent = e.default_public_exponent || "010001", this.log = e.log || !1, this.key = e.key || null;
5543
5548
  }
5544
5549
  return e.prototype.setKey = function(e) {
5545
- e ? (this.log && this.key && console.warn("A key was already set, overriding existing."), this.key = new Bt(e)) : !this.key && this.log && console.error("A key was not set.");
5550
+ e ? (this.log && this.key && console.warn("A key was already set, overriding existing."), this.key = new xn(e)) : !this.key && this.log && console.error("A key was not set.");
5546
5551
  }, e.prototype.setPrivateKey = function(e) {
5547
5552
  this.setKey(e);
5548
5553
  }, e.prototype.setPublicKey = function(e) {
5549
5554
  this.setKey(e);
5550
5555
  }, e.prototype.decrypt = function(e) {
5551
5556
  try {
5552
- return this.getKey().decrypt(Ne(e));
5557
+ return this.getKey().decrypt(pt(e));
5553
5558
  } catch {
5554
5559
  return !1;
5555
5560
  }
5556
5561
  }, e.prototype.encrypt = function(e) {
5557
5562
  try {
5558
- return Me(this.getKey().encrypt(e));
5563
+ return ft(this.getKey().encrypt(e));
5559
5564
  } catch {
5560
5565
  return !1;
5561
5566
  }
5562
5567
  }, e.prototype.encryptOAEP = function(e) {
5563
5568
  try {
5564
- return Me(this.getKey().encrypt(e, Nt));
5569
+ return ft(this.getKey().encrypt(e, mn));
5565
5570
  } catch {
5566
5571
  return !1;
5567
5572
  }
@@ -5570,30 +5575,30 @@ var zt = (function() {
5570
5575
  return e;
5571
5576
  }), n === void 0 && (n = "");
5572
5577
  try {
5573
- return Me(this.getKey().sign(e, t, n));
5578
+ return ft(this.getKey().sign(e, t, n));
5574
5579
  } catch {
5575
5580
  return !1;
5576
5581
  }
5577
5582
  }, e.prototype.signSha256 = function(e) {
5578
5583
  return this.sign(e, function(e) {
5579
- return _t(gt(e));
5584
+ return Xt(Yt(e));
5580
5585
  }, "sha256");
5581
5586
  }, e.prototype.verify = function(e, t, n) {
5582
5587
  n === void 0 && (n = function(e) {
5583
5588
  return e;
5584
5589
  });
5585
5590
  try {
5586
- return this.getKey().verify(e, Ne(t), n);
5591
+ return this.getKey().verify(e, pt(t), n);
5587
5592
  } catch {
5588
5593
  return !1;
5589
5594
  }
5590
5595
  }, e.prototype.verifySha256 = function(e, t) {
5591
5596
  return this.verify(e, t, function(e) {
5592
- return _t(gt(e));
5597
+ return Xt(Yt(e));
5593
5598
  });
5594
5599
  }, e.prototype.getKey = function(e) {
5595
5600
  if (!this.key) {
5596
- if (this.key = new Bt(), e && {}.toString.call(e) === "[object Function]") {
5601
+ if (this.key = new xn(), e && {}.toString.call(e) === "[object Function]") {
5597
5602
  this.key.generateAsync(this.default_key_size, this.default_public_exponent, e);
5598
5603
  return;
5599
5604
  }
@@ -5608,22 +5613,22 @@ var zt = (function() {
5608
5613
  return this.getKey().getPublicKey();
5609
5614
  }, e.prototype.getPublicKeyB64 = function() {
5610
5615
  return this.getKey().getPublicBaseKeyB64();
5611
- }, e.version = Vt, e;
5616
+ }, e.version = Sn, e;
5612
5617
  }();
5613
5618
  //#endregion
5614
5619
  //#region src/cryptoAlg/rsa.ts
5615
- function Ut(e) {
5620
+ function wn(e) {
5616
5621
  return new Promise((t) => {
5617
- let n = x.use().publicKey, r = new Ht();
5622
+ let n = z.use().publicKey, r = new Cn();
5618
5623
  r.setPublicKey(`-----BEGIN PUBLIC KEY-----\n${n}\n-----END PUBLIC KEY-----`), t(n ? r.encrypt(e) || "" : e);
5619
5624
  });
5620
5625
  }
5621
5626
  //#endregion
5622
5627
  //#region src/cryptoSetting.ts
5623
- function Wt(e, t, n, r) {
5624
- return e === "/crypto/getPublicKeyAndConfig" ? !1 : !Gt(e, n, r) && t;
5628
+ function Tn(e, t, n, r) {
5629
+ return e === "/crypto/getPublicKeyAndConfig" ? !1 : !En(e, n, r) && t;
5625
5630
  }
5626
- function Gt(e, t, n) {
5631
+ function En(e, t, n) {
5627
5632
  if (t && n?.length === 0) return !1;
5628
5633
  if (!t && n?.length === 0) return !0;
5629
5634
  {
@@ -5635,31 +5640,31 @@ function Gt(e, t, n) {
5635
5640
  return t ? r : !r;
5636
5641
  }
5637
5642
  }
5638
- async function Kt(e, t) {
5643
+ async function Dn(e, t) {
5639
5644
  if (e.data && !(e.data instanceof FormData) && (e.data = await t(JSON.stringify(e.data))), e.config.params && JSON.stringify(e.config.params) !== "{}") {
5640
5645
  let n = JSON.parse(JSON.stringify(e.config.params));
5641
5646
  e.config.params = { secureData: decodeURIComponent(await t(decodeURIComponent(new URLSearchParams(n).toString()))) };
5642
5647
  }
5643
5648
  if (e.config.meta && e.config.meta.pathParams) for (let n of e.config.meta.pathParams) e.url = e.url.replace(n, await t(`${n}`));
5644
5649
  }
5645
- async function qt(e, t) {
5646
- let n = x.use().key, r = x.use().iv;
5647
- e.config.headers["X-Crypyto-Key"] = await Ut(JSON.stringify({
5650
+ async function On(e, t) {
5651
+ let n = z.use().key, r = z.use().iv;
5652
+ e.config.headers["X-Crypyto-Key"] = await wn(JSON.stringify({
5648
5653
  "Algorithm-Name": t?.name,
5649
5654
  "Algorithm-Key": n,
5650
5655
  "Algorithm-Iv": r,
5651
5656
  ...t?.header
5652
- })), await Kt(e, t.encrypt);
5657
+ })), await Dn(e, t.encrypt);
5653
5658
  }
5654
- async function Jt(e, t) {
5659
+ async function kn(e, t) {
5655
5660
  e.data = await t.decrypt(e.data);
5656
5661
  }
5657
5662
  //#endregion
5658
5663
  //#region src/helper.ts
5659
- function Yt(e) {
5664
+ function An(e) {
5660
5665
  return e.meta = { authRole: null }, e;
5661
5666
  }
5662
- function Xt(e) {
5667
+ function jn(e) {
5663
5668
  let t = "";
5664
5669
  if (e < 0) return t;
5665
5670
  for (let n = 0; n < e; n++) {
@@ -5670,7 +5675,7 @@ function Xt(e) {
5670
5675
  }
5671
5676
  //#endregion
5672
5677
  //#region ../../node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js
5673
- var Zt = /* @__PURE__ */ u(((e) => {
5678
+ var Mn = /* @__PURE__ */ R(((e) => {
5674
5679
  e.byteLength = c, e.toByteArray = u, e.fromByteArray = p;
5675
5680
  for (var t = [], n = [], r = typeof Uint8Array < "u" ? Uint8Array : Array, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = 0, o = i.length; a < o; ++a) t[a] = i[a], n[i.charCodeAt(a)] = a;
5676
5681
  n[45] = 62, n[95] = 63;
@@ -5705,7 +5710,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
5705
5710
  for (var n, r = e.length, i = r % 3, a = [], o = 16383, s = 0, c = r - i; s < c; s += o) a.push(f(e, s, s + o > c ? c : s + o));
5706
5711
  return i === 1 ? (n = e[r - 1], a.push(t[n >> 2] + t[n << 4 & 63] + "==")) : i === 2 && (n = (e[r - 2] << 8) + e[r - 1], a.push(t[n >> 10] + t[n >> 4 & 63] + t[n << 2 & 63] + "=")), a.join("");
5707
5712
  }
5708
- })), Qt = /* @__PURE__ */ u(((e) => {
5713
+ })), Nn = /* @__PURE__ */ R(((e) => {
5709
5714
  e.read = function(e, t, n, r, i) {
5710
5715
  var a, o, s = i * 8 - r - 1, c = (1 << s) - 1, l = c >> 1, u = -7, d = n ? i - 1 : 0, f = n ? -1 : 1, p = e[t + d];
5711
5716
  for (d += f, a = p & (1 << -u) - 1, p >>= -u, u += s; u > 0; a = a * 256 + e[t + d], d += f, u -= 8);
@@ -5720,8 +5725,8 @@ var Zt = /* @__PURE__ */ u(((e) => {
5720
5725
  for (o = o << i | s, l += i; l > 0; e[n + p] = o & 255, p += m, o /= 256, l -= 8);
5721
5726
  e[n + p - m] |= h * 128;
5722
5727
  };
5723
- })), $t = /* @__PURE__ */ u(((e) => {
5724
- var t = Zt(), n = Qt(), r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
5728
+ })), Pn = /* @__PURE__ */ R(((e) => {
5729
+ var t = Mn(), n = Nn(), r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
5725
5730
  e.Buffer = s, e.SlowBuffer = v, e.INSPECT_MAX_BYTES = 50;
5726
5731
  var i = 2147483647;
5727
5732
  e.kMaxLength = i, s.TYPED_ARRAY_SUPPORT = a(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
@@ -5763,7 +5768,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
5763
5768
  if (typeof e == "string") return f(e, t);
5764
5769
  if (ArrayBuffer.isView(e)) return m(e);
5765
5770
  if (e == null) throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
5766
- if (le(e, ArrayBuffer) || e && le(e.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (le(e, SharedArrayBuffer) || e && le(e.buffer, SharedArrayBuffer))) return h(e, t, n);
5771
+ if (ue(e, ArrayBuffer) || e && ue(e.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ue(e, SharedArrayBuffer) || e && ue(e.buffer, SharedArrayBuffer))) return h(e, t, n);
5767
5772
  if (typeof e == "number") throw TypeError("The \"value\" argument must not be of type number. Received type number");
5768
5773
  var r = e.valueOf && e.valueOf();
5769
5774
  if (r != null && r !== e) return s.from(r, t, n);
@@ -5803,7 +5808,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
5803
5808
  return n;
5804
5809
  }
5805
5810
  function m(e) {
5806
- if (le(e, Uint8Array)) {
5811
+ if (ue(e, Uint8Array)) {
5807
5812
  var t = new Uint8Array(e);
5808
5813
  return h(t.buffer, t.byteOffset, t.byteLength);
5809
5814
  }
@@ -5820,7 +5825,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
5820
5825
  var t = _(e.length) | 0, n = o(t);
5821
5826
  return n.length === 0 || e.copy(n, 0, 0, t), n;
5822
5827
  }
5823
- if (e.length !== void 0) return typeof e.length != "number" || ue(e.length) ? o(0) : p(e);
5828
+ if (e.length !== void 0) return typeof e.length != "number" || de(e.length) ? o(0) : p(e);
5824
5829
  if (e.type === "Buffer" && Array.isArray(e.data)) return p(e.data);
5825
5830
  }
5826
5831
  function _(e) {
@@ -5833,7 +5838,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
5833
5838
  s.isBuffer = function(e) {
5834
5839
  return e != null && e._isBuffer === !0 && e !== s.prototype;
5835
5840
  }, s.compare = function(e, t) {
5836
- if (le(e, Uint8Array) && (e = s.from(e, e.offset, e.byteLength)), le(t, Uint8Array) && (t = s.from(t, t.offset, t.byteLength)), !s.isBuffer(e) || !s.isBuffer(t)) throw TypeError("The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array");
5841
+ if (ue(e, Uint8Array) && (e = s.from(e, e.offset, e.byteLength)), ue(t, Uint8Array) && (t = s.from(t, t.offset, t.byteLength)), !s.isBuffer(e) || !s.isBuffer(t)) throw TypeError("The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array");
5837
5842
  if (e === t) return 0;
5838
5843
  for (var n = e.length, r = t.length, i = 0, a = Math.min(n, r); i < a; ++i) if (e[i] !== t[i]) {
5839
5844
  n = e[i], r = t[i];
@@ -5863,7 +5868,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
5863
5868
  var r = s.allocUnsafe(t), i = 0;
5864
5869
  for (n = 0; n < e.length; ++n) {
5865
5870
  var a = e[n];
5866
- if (le(a, Uint8Array)) i + a.length > r.length ? s.from(a).copy(r, i) : Uint8Array.prototype.set.call(r, a, i);
5871
+ if (ue(a, Uint8Array)) i + a.length > r.length ? s.from(a).copy(r, i) : Uint8Array.prototype.set.call(r, a, i);
5867
5872
  else if (s.isBuffer(a)) a.copy(r, i);
5868
5873
  else throw TypeError("\"list\" argument must be an Array of Buffers");
5869
5874
  i += a.length;
@@ -5872,7 +5877,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
5872
5877
  };
5873
5878
  function y(e, t) {
5874
5879
  if (s.isBuffer(e)) return e.length;
5875
- if (ArrayBuffer.isView(e) || le(e, ArrayBuffer)) return e.byteLength;
5880
+ if (ArrayBuffer.isView(e) || ue(e, ArrayBuffer)) return e.byteLength;
5876
5881
  if (typeof e != "string") throw TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type " + typeof e);
5877
5882
  var n = e.length, r = arguments.length > 2 && arguments[2] === !0;
5878
5883
  if (!r && n === 0) return 0;
@@ -5881,15 +5886,15 @@ var Zt = /* @__PURE__ */ u(((e) => {
5881
5886
  case "latin1":
5882
5887
  case "binary": return n;
5883
5888
  case "utf8":
5884
- case "utf-8": return R(e).length;
5889
+ case "utf-8": return L(e).length;
5885
5890
  case "ucs2":
5886
5891
  case "ucs-2":
5887
5892
  case "utf16le":
5888
5893
  case "utf-16le": return n * 2;
5889
5894
  case "hex": return n >>> 1;
5890
- case "base64": return se(e).length;
5895
+ case "base64": return ce(e).length;
5891
5896
  default:
5892
- if (i) return r ? -1 : R(e).length;
5897
+ if (i) return r ? -1 : L(e).length;
5893
5898
  t = ("" + t).toLowerCase(), i = !0;
5894
5899
  }
5895
5900
  }
@@ -5898,7 +5903,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
5898
5903
  var r = !1;
5899
5904
  if ((t === void 0 || t < 0) && (t = 0), t > this.length || ((n === void 0 || n > this.length) && (n = this.length), n <= 0) || (n >>>= 0, t >>>= 0, n <= t)) return "";
5900
5905
  for (e ||= "utf8";;) switch (e) {
5901
- case "hex": return te(this, t, n);
5906
+ case "hex": return P(this, t, n);
5902
5907
  case "utf8":
5903
5908
  case "utf-8": return A(this, t, n);
5904
5909
  case "ascii": return ee(this, t, n);
@@ -5908,7 +5913,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
5908
5913
  case "ucs2":
5909
5914
  case "ucs-2":
5910
5915
  case "utf16le":
5911
- case "utf-16le": return ne(this, t, n);
5916
+ case "utf-16le": return te(this, t, n);
5912
5917
  default:
5913
5918
  if (r) throw TypeError("Unknown encoding: " + e);
5914
5919
  e = (e + "").toLowerCase(), r = !0;
@@ -5944,7 +5949,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
5944
5949
  var t = "", n = e.INSPECT_MAX_BYTES;
5945
5950
  return t = this.toString("hex", 0, n).replace(/(.{2})/g, "$1 ").trim(), this.length > n && (t += " ... "), "<Buffer " + t + ">";
5946
5951
  }, r && (s.prototype[r] = s.prototype.inspect), s.prototype.compare = function(e, t, n, r, i) {
5947
- if (le(e, Uint8Array) && (e = s.from(e, e.offset, e.byteLength)), !s.isBuffer(e)) throw TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type " + typeof e);
5952
+ if (ue(e, Uint8Array) && (e = s.from(e, e.offset, e.byteLength)), !s.isBuffer(e)) throw TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type " + typeof e);
5948
5953
  if (t === void 0 && (t = 0), n === void 0 && (n = e ? e.length : 0), r === void 0 && (r = 0), i === void 0 && (i = this.length), t < 0 || n > e.length || r < 0 || i > this.length) throw RangeError("out of range index");
5949
5954
  if (r >= i && t >= n) return 0;
5950
5955
  if (r >= i) return -1;
@@ -5958,7 +5963,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
5958
5963
  };
5959
5964
  function S(e, t, n, r, i) {
5960
5965
  if (e.length === 0) return -1;
5961
- if (typeof n == "string" ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, ue(n) && (n = i ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {
5966
+ if (typeof n == "string" ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, de(n) && (n = i ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {
5962
5967
  if (i) return -1;
5963
5968
  n = e.length - 1;
5964
5969
  } else if (n < 0) if (i) n = 0;
@@ -6006,22 +6011,22 @@ var Zt = /* @__PURE__ */ u(((e) => {
6006
6011
  r > a / 2 && (r = a / 2);
6007
6012
  for (var o = 0; o < r; ++o) {
6008
6013
  var s = parseInt(t.substr(o * 2, 2), 16);
6009
- if (ue(s)) return o;
6014
+ if (de(s)) return o;
6010
6015
  e[n + o] = s;
6011
6016
  }
6012
6017
  return o;
6013
6018
  }
6014
6019
  function T(e, t, n, r) {
6015
- return ce(R(t, e.length - n), e, n, r);
6020
+ return le(L(t, e.length - n), e, n, r);
6016
6021
  }
6017
6022
  function E(e, t, n, r) {
6018
- return ce(z(t), e, n, r);
6023
+ return le(se(t), e, n, r);
6019
6024
  }
6020
6025
  function D(e, t, n, r) {
6021
- return ce(se(t), e, n, r);
6026
+ return le(ce(t), e, n, r);
6022
6027
  }
6023
6028
  function O(e, t, n, r) {
6024
- return ce(oe(t, e.length - n), e, n, r);
6029
+ return le(R(t, e.length - n), e, n, r);
6025
6030
  }
6026
6031
  s.prototype.write = function(e, t, n, r) {
6027
6032
  if (t === void 0) r = "utf8", n = this.length, t = 0;
@@ -6098,13 +6103,13 @@ var Zt = /* @__PURE__ */ u(((e) => {
6098
6103
  for (var i = t; i < n; ++i) r += String.fromCharCode(e[i]);
6099
6104
  return r;
6100
6105
  }
6101
- function te(e, t, n) {
6106
+ function P(e, t, n) {
6102
6107
  var r = e.length;
6103
6108
  (!t || t < 0) && (t = 0), (!n || n < 0 || n > r) && (n = r);
6104
- for (var i = "", a = t; a < n; ++a) i += de[e[a]];
6109
+ for (var i = "", a = t; a < n; ++a) i += fe[e[a]];
6105
6110
  return i;
6106
6111
  }
6107
- function ne(e, t, n) {
6112
+ function te(e, t, n) {
6108
6113
  for (var r = e.slice(t, n), i = "", a = 0; a < r.length - 1; a += 2) i += String.fromCharCode(r[a] + r[a + 1] * 256);
6109
6114
  return i;
6110
6115
  }
@@ -6114,60 +6119,60 @@ var Zt = /* @__PURE__ */ u(((e) => {
6114
6119
  var r = this.subarray(e, t);
6115
6120
  return Object.setPrototypeOf(r, s.prototype), r;
6116
6121
  };
6117
- function P(e, t, n) {
6122
+ function F(e, t, n) {
6118
6123
  if (e % 1 != 0 || e < 0) throw RangeError("offset is not uint");
6119
6124
  if (e + t > n) throw RangeError("Trying to access beyond buffer length");
6120
6125
  }
6121
6126
  s.prototype.readUintLE = s.prototype.readUIntLE = function(e, t, n) {
6122
- e >>>= 0, t >>>= 0, n || P(e, t, this.length);
6127
+ e >>>= 0, t >>>= 0, n || F(e, t, this.length);
6123
6128
  for (var r = this[e], i = 1, a = 0; ++a < t && (i *= 256);) r += this[e + a] * i;
6124
6129
  return r;
6125
6130
  }, s.prototype.readUintBE = s.prototype.readUIntBE = function(e, t, n) {
6126
- e >>>= 0, t >>>= 0, n || P(e, t, this.length);
6131
+ e >>>= 0, t >>>= 0, n || F(e, t, this.length);
6127
6132
  for (var r = this[e + --t], i = 1; t > 0 && (i *= 256);) r += this[e + --t] * i;
6128
6133
  return r;
6129
6134
  }, s.prototype.readUint8 = s.prototype.readUInt8 = function(e, t) {
6130
- return e >>>= 0, t || P(e, 1, this.length), this[e];
6135
+ return e >>>= 0, t || F(e, 1, this.length), this[e];
6131
6136
  }, s.prototype.readUint16LE = s.prototype.readUInt16LE = function(e, t) {
6132
- return e >>>= 0, t || P(e, 2, this.length), this[e] | this[e + 1] << 8;
6137
+ return e >>>= 0, t || F(e, 2, this.length), this[e] | this[e + 1] << 8;
6133
6138
  }, s.prototype.readUint16BE = s.prototype.readUInt16BE = function(e, t) {
6134
- return e >>>= 0, t || P(e, 2, this.length), this[e] << 8 | this[e + 1];
6139
+ return e >>>= 0, t || F(e, 2, this.length), this[e] << 8 | this[e + 1];
6135
6140
  }, s.prototype.readUint32LE = s.prototype.readUInt32LE = function(e, t) {
6136
- return e >>>= 0, t || P(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
6141
+ return e >>>= 0, t || F(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
6137
6142
  }, s.prototype.readUint32BE = s.prototype.readUInt32BE = function(e, t) {
6138
- return e >>>= 0, t || P(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
6143
+ return e >>>= 0, t || F(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
6139
6144
  }, s.prototype.readIntLE = function(e, t, n) {
6140
- e >>>= 0, t >>>= 0, n || P(e, t, this.length);
6145
+ e >>>= 0, t >>>= 0, n || F(e, t, this.length);
6141
6146
  for (var r = this[e], i = 1, a = 0; ++a < t && (i *= 256);) r += this[e + a] * i;
6142
6147
  return i *= 128, r >= i && (r -= 2 ** (8 * t)), r;
6143
6148
  }, s.prototype.readIntBE = function(e, t, n) {
6144
- e >>>= 0, t >>>= 0, n || P(e, t, this.length);
6149
+ e >>>= 0, t >>>= 0, n || F(e, t, this.length);
6145
6150
  for (var r = t, i = 1, a = this[e + --r]; r > 0 && (i *= 256);) a += this[e + --r] * i;
6146
6151
  return i *= 128, a >= i && (a -= 2 ** (8 * t)), a;
6147
6152
  }, s.prototype.readInt8 = function(e, t) {
6148
- return e >>>= 0, t || P(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
6153
+ return e >>>= 0, t || F(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
6149
6154
  }, s.prototype.readInt16LE = function(e, t) {
6150
- e >>>= 0, t || P(e, 2, this.length);
6155
+ e >>>= 0, t || F(e, 2, this.length);
6151
6156
  var n = this[e] | this[e + 1] << 8;
6152
6157
  return n & 32768 ? n | 4294901760 : n;
6153
6158
  }, s.prototype.readInt16BE = function(e, t) {
6154
- e >>>= 0, t || P(e, 2, this.length);
6159
+ e >>>= 0, t || F(e, 2, this.length);
6155
6160
  var n = this[e + 1] | this[e] << 8;
6156
6161
  return n & 32768 ? n | 4294901760 : n;
6157
6162
  }, s.prototype.readInt32LE = function(e, t) {
6158
- return e >>>= 0, t || P(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
6163
+ return e >>>= 0, t || F(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
6159
6164
  }, s.prototype.readInt32BE = function(e, t) {
6160
- return e >>>= 0, t || P(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
6165
+ return e >>>= 0, t || F(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
6161
6166
  }, s.prototype.readFloatLE = function(e, t) {
6162
- return e >>>= 0, t || P(e, 4, this.length), n.read(this, e, !0, 23, 4);
6167
+ return e >>>= 0, t || F(e, 4, this.length), n.read(this, e, !0, 23, 4);
6163
6168
  }, s.prototype.readFloatBE = function(e, t) {
6164
- return e >>>= 0, t || P(e, 4, this.length), n.read(this, e, !1, 23, 4);
6169
+ return e >>>= 0, t || F(e, 4, this.length), n.read(this, e, !1, 23, 4);
6165
6170
  }, s.prototype.readDoubleLE = function(e, t) {
6166
- return e >>>= 0, t || P(e, 8, this.length), n.read(this, e, !0, 52, 8);
6171
+ return e >>>= 0, t || F(e, 8, this.length), n.read(this, e, !0, 52, 8);
6167
6172
  }, s.prototype.readDoubleBE = function(e, t) {
6168
- return e >>>= 0, t || P(e, 8, this.length), n.read(this, e, !1, 52, 8);
6173
+ return e >>>= 0, t || F(e, 8, this.length), n.read(this, e, !1, 52, 8);
6169
6174
  };
6170
- function F(e, t, n, r, i, a) {
6175
+ function I(e, t, n, r, i, a) {
6171
6176
  if (!s.isBuffer(e)) throw TypeError("\"buffer\" argument must be a Buffer instance");
6172
6177
  if (t > i || t < a) throw RangeError("\"value\" argument is out of bounds");
6173
6178
  if (n + r > e.length) throw RangeError("Index out of range");
@@ -6175,7 +6180,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
6175
6180
  s.prototype.writeUintLE = s.prototype.writeUIntLE = function(e, t, n, r) {
6176
6181
  if (e = +e, t >>>= 0, n >>>= 0, !r) {
6177
6182
  var i = 2 ** (8 * n) - 1;
6178
- F(this, e, t, n, i, 0);
6183
+ I(this, e, t, n, i, 0);
6179
6184
  }
6180
6185
  var a = 1, o = 0;
6181
6186
  for (this[t] = e & 255; ++o < n && (a *= 256);) this[t + o] = e / a & 255;
@@ -6183,25 +6188,25 @@ var Zt = /* @__PURE__ */ u(((e) => {
6183
6188
  }, s.prototype.writeUintBE = s.prototype.writeUIntBE = function(e, t, n, r) {
6184
6189
  if (e = +e, t >>>= 0, n >>>= 0, !r) {
6185
6190
  var i = 2 ** (8 * n) - 1;
6186
- F(this, e, t, n, i, 0);
6191
+ I(this, e, t, n, i, 0);
6187
6192
  }
6188
6193
  var a = n - 1, o = 1;
6189
6194
  for (this[t + a] = e & 255; --a >= 0 && (o *= 256);) this[t + a] = e / o & 255;
6190
6195
  return t + n;
6191
6196
  }, s.prototype.writeUint8 = s.prototype.writeUInt8 = function(e, t, n) {
6192
- return e = +e, t >>>= 0, n || F(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
6197
+ return e = +e, t >>>= 0, n || I(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
6193
6198
  }, s.prototype.writeUint16LE = s.prototype.writeUInt16LE = function(e, t, n) {
6194
- return e = +e, t >>>= 0, n || F(this, e, t, 2, 65535, 0), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
6199
+ return e = +e, t >>>= 0, n || I(this, e, t, 2, 65535, 0), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
6195
6200
  }, s.prototype.writeUint16BE = s.prototype.writeUInt16BE = function(e, t, n) {
6196
- return e = +e, t >>>= 0, n || F(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
6201
+ return e = +e, t >>>= 0, n || I(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
6197
6202
  }, s.prototype.writeUint32LE = s.prototype.writeUInt32LE = function(e, t, n) {
6198
- return e = +e, t >>>= 0, n || F(this, e, t, 4, 4294967295, 0), this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e & 255, t + 4;
6203
+ return e = +e, t >>>= 0, n || I(this, e, t, 4, 4294967295, 0), this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e & 255, t + 4;
6199
6204
  }, s.prototype.writeUint32BE = s.prototype.writeUInt32BE = function(e, t, n) {
6200
- return e = +e, t >>>= 0, n || F(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
6205
+ return e = +e, t >>>= 0, n || I(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
6201
6206
  }, s.prototype.writeIntLE = function(e, t, n, r) {
6202
6207
  if (e = +e, t >>>= 0, !r) {
6203
6208
  var i = 2 ** (8 * n - 1);
6204
- F(this, e, t, n, i - 1, -i);
6209
+ I(this, e, t, n, i - 1, -i);
6205
6210
  }
6206
6211
  var a = 0, o = 1, s = 0;
6207
6212
  for (this[t] = e & 255; ++a < n && (o *= 256);) e < 0 && s === 0 && this[t + a - 1] !== 0 && (s = 1), this[t + a] = (e / o >> 0) - s & 255;
@@ -6209,40 +6214,40 @@ var Zt = /* @__PURE__ */ u(((e) => {
6209
6214
  }, s.prototype.writeIntBE = function(e, t, n, r) {
6210
6215
  if (e = +e, t >>>= 0, !r) {
6211
6216
  var i = 2 ** (8 * n - 1);
6212
- F(this, e, t, n, i - 1, -i);
6217
+ I(this, e, t, n, i - 1, -i);
6213
6218
  }
6214
6219
  var a = n - 1, o = 1, s = 0;
6215
6220
  for (this[t + a] = e & 255; --a >= 0 && (o *= 256);) e < 0 && s === 0 && this[t + a + 1] !== 0 && (s = 1), this[t + a] = (e / o >> 0) - s & 255;
6216
6221
  return t + n;
6217
6222
  }, s.prototype.writeInt8 = function(e, t, n) {
6218
- return e = +e, t >>>= 0, n || F(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
6223
+ return e = +e, t >>>= 0, n || I(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
6219
6224
  }, s.prototype.writeInt16LE = function(e, t, n) {
6220
- return e = +e, t >>>= 0, n || F(this, e, t, 2, 32767, -32768), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
6225
+ return e = +e, t >>>= 0, n || I(this, e, t, 2, 32767, -32768), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
6221
6226
  }, s.prototype.writeInt16BE = function(e, t, n) {
6222
- return e = +e, t >>>= 0, n || F(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
6227
+ return e = +e, t >>>= 0, n || I(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
6223
6228
  }, s.prototype.writeInt32LE = function(e, t, n) {
6224
- return e = +e, t >>>= 0, n || F(this, e, t, 4, 2147483647, -2147483648), this[t] = e & 255, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24, t + 4;
6229
+ return e = +e, t >>>= 0, n || I(this, e, t, 4, 2147483647, -2147483648), this[t] = e & 255, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24, t + 4;
6225
6230
  }, s.prototype.writeInt32BE = function(e, t, n) {
6226
- return e = +e, t >>>= 0, n || F(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
6231
+ return e = +e, t >>>= 0, n || I(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
6227
6232
  };
6228
- function I(e, t, n, r, i, a) {
6233
+ function ne(e, t, n, r, i, a) {
6229
6234
  if (n + r > e.length || n < 0) throw RangeError("Index out of range");
6230
6235
  }
6231
- function L(e, t, r, i, a) {
6232
- return t = +t, r >>>= 0, a || I(e, t, r, 4, 34028234663852886e22, -34028234663852886e22), n.write(e, t, r, i, 23, 4), r + 4;
6236
+ function re(e, t, r, i, a) {
6237
+ return t = +t, r >>>= 0, a || ne(e, t, r, 4, 34028234663852886e22, -34028234663852886e22), n.write(e, t, r, i, 23, 4), r + 4;
6233
6238
  }
6234
6239
  s.prototype.writeFloatLE = function(e, t, n) {
6235
- return L(this, e, t, !0, n);
6240
+ return re(this, e, t, !0, n);
6236
6241
  }, s.prototype.writeFloatBE = function(e, t, n) {
6237
- return L(this, e, t, !1, n);
6242
+ return re(this, e, t, !1, n);
6238
6243
  };
6239
- function re(e, t, r, i, a) {
6240
- return t = +t, r >>>= 0, a || I(e, t, r, 8, 17976931348623157e292, -17976931348623157e292), n.write(e, t, r, i, 52, 8), r + 8;
6244
+ function ie(e, t, r, i, a) {
6245
+ return t = +t, r >>>= 0, a || ne(e, t, r, 8, 17976931348623157e292, -17976931348623157e292), n.write(e, t, r, i, 52, 8), r + 8;
6241
6246
  }
6242
6247
  s.prototype.writeDoubleLE = function(e, t, n) {
6243
- return re(this, e, t, !0, n);
6248
+ return ie(this, e, t, !0, n);
6244
6249
  }, s.prototype.writeDoubleBE = function(e, t, n) {
6245
- return re(this, e, t, !1, n);
6250
+ return ie(this, e, t, !1, n);
6246
6251
  }, s.prototype.copy = function(e, t, n, r) {
6247
6252
  if (!s.isBuffer(e)) throw TypeError("argument should be a Buffer");
6248
6253
  if (n ||= 0, !r && r !== 0 && (r = this.length), t >= e.length && (t = e.length), t ||= 0, r > 0 && r < n && (r = n), r === n || e.length === 0 || this.length === 0) return 0;
@@ -6273,13 +6278,13 @@ var Zt = /* @__PURE__ */ u(((e) => {
6273
6278
  }
6274
6279
  return this;
6275
6280
  };
6276
- var ie = /[^+/0-9A-Za-z-_]/g;
6277
- function ae(e) {
6278
- if (e = e.split("=")[0], e = e.trim().replace(ie, ""), e.length < 2) return "";
6281
+ var ae = /[^+/0-9A-Za-z-_]/g;
6282
+ function oe(e) {
6283
+ if (e = e.split("=")[0], e = e.trim().replace(ae, ""), e.length < 2) return "";
6279
6284
  for (; e.length % 4 != 0;) e += "=";
6280
6285
  return e;
6281
6286
  }
6282
- function R(e, t) {
6287
+ function L(e, t) {
6283
6288
  t ||= Infinity;
6284
6289
  for (var n, r = e.length, i = null, a = [], o = 0; o < r; ++o) {
6285
6290
  if (n = e.charCodeAt(o), n > 55295 && n < 57344) {
@@ -6316,33 +6321,33 @@ var Zt = /* @__PURE__ */ u(((e) => {
6316
6321
  }
6317
6322
  return a;
6318
6323
  }
6319
- function z(e) {
6324
+ function se(e) {
6320
6325
  for (var t = [], n = 0; n < e.length; ++n) t.push(e.charCodeAt(n) & 255);
6321
6326
  return t;
6322
6327
  }
6323
- function oe(e, t) {
6328
+ function R(e, t) {
6324
6329
  for (var n, r, i, a = [], o = 0; o < e.length && !((t -= 2) < 0); ++o) n = e.charCodeAt(o), r = n >> 8, i = n % 256, a.push(i), a.push(r);
6325
6330
  return a;
6326
6331
  }
6327
- function se(e) {
6328
- return t.toByteArray(ae(e));
6332
+ function ce(e) {
6333
+ return t.toByteArray(oe(e));
6329
6334
  }
6330
- function ce(e, t, n, r) {
6335
+ function le(e, t, n, r) {
6331
6336
  for (var i = 0; i < r && !(i + n >= t.length || i >= e.length); ++i) t[i + n] = e[i];
6332
6337
  return i;
6333
6338
  }
6334
- function le(e, t) {
6339
+ function ue(e, t) {
6335
6340
  return e instanceof t || e != null && e.constructor != null && e.constructor.name != null && e.constructor.name === t.name;
6336
6341
  }
6337
- function ue(e) {
6342
+ function de(e) {
6338
6343
  return e !== e;
6339
6344
  }
6340
- var de = (function() {
6345
+ var fe = (function() {
6341
6346
  for (var e = "0123456789abcdef", t = Array(256), n = 0; n < 16; ++n) for (var r = n * 16, i = 0; i < 16; ++i) t[r + i] = e[n] + e[i];
6342
6347
  return t;
6343
6348
  })();
6344
- })), en = /* @__PURE__ */ u(((e, t) => {
6345
- var n = $t().Buffer;
6349
+ })), Fn = /* @__PURE__ */ R(((e, t) => {
6350
+ var n = Pn().Buffer;
6346
6351
  t.exports = function(e) {
6347
6352
  if (e instanceof Uint8Array) {
6348
6353
  if (e.byteOffset === 0 && e.byteLength === e.buffer.byteLength) return e.buffer;
@@ -6353,7 +6358,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
6353
6358
  return t.buffer;
6354
6359
  } else throw Error("Argument must be a Buffer");
6355
6360
  };
6356
- })), tn = /* @__PURE__ */ u(((e, t) => {
6361
+ })), In = /* @__PURE__ */ R(((e, t) => {
6357
6362
  (function() {
6358
6363
  var n, r = !0;
6359
6364
  function i(e, t, n) {
@@ -6522,7 +6527,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
6522
6527
  }
6523
6528
  e.t > 0 && (e[e.t - 1] += t.am(n, t[n], e, 2 * n, 0, 1)), e.s = 0, e.clamp();
6524
6529
  }
6525
- function te(e, t, n) {
6530
+ function P(e, t, n) {
6526
6531
  var r = e.abs();
6527
6532
  if (!(r.t <= 0)) {
6528
6533
  var o = this.abs();
@@ -6545,48 +6550,48 @@ var Zt = /* @__PURE__ */ u(((e) => {
6545
6550
  }
6546
6551
  }
6547
6552
  }
6548
- function ne(e) {
6553
+ function te(e) {
6549
6554
  var t = a();
6550
6555
  return this.abs().divRemTo(e, null, t), this.s < 0 && t.compareTo(i.ZERO) > 0 && e.subTo(t, t), t;
6551
6556
  }
6552
- function P(e) {
6557
+ function F(e) {
6553
6558
  this.m = e;
6554
6559
  }
6555
- function F(e) {
6560
+ function I(e) {
6556
6561
  return e.s < 0 || e.compareTo(this.m) >= 0 ? e.mod(this.m) : e;
6557
6562
  }
6558
- function I(e) {
6563
+ function ne(e) {
6559
6564
  return e;
6560
6565
  }
6561
- function L(e) {
6566
+ function re(e) {
6562
6567
  e.divRemTo(this.m, null, e);
6563
6568
  }
6564
- function re(e, t, n) {
6569
+ function ie(e, t, n) {
6565
6570
  e.multiplyTo(t, n), this.reduce(n);
6566
6571
  }
6567
- function ie(e, t) {
6572
+ function ae(e, t) {
6568
6573
  e.squareTo(t), this.reduce(t);
6569
6574
  }
6570
- P.prototype.convert = F, P.prototype.revert = I, P.prototype.reduce = L, P.prototype.mulTo = re, P.prototype.sqrTo = ie;
6571
- function ae() {
6575
+ F.prototype.convert = I, F.prototype.revert = ne, F.prototype.reduce = re, F.prototype.mulTo = ie, F.prototype.sqrTo = ae;
6576
+ function oe() {
6572
6577
  if (this.t < 1) return 0;
6573
6578
  var e = this[0];
6574
6579
  if (!(e & 1)) return 0;
6575
6580
  var t = e & 3;
6576
6581
  return t = t * (2 - (e & 15) * t) & 15, t = t * (2 - (e & 255) * t) & 255, t = t * (2 - ((e & 65535) * t & 65535)) & 65535, t = t * (2 - e * t % this.DV) % this.DV, t > 0 ? this.DV - t : -t;
6577
6582
  }
6578
- function R(e) {
6583
+ function L(e) {
6579
6584
  this.m = e, this.mp = e.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << e.DB - 15) - 1, this.mt2 = 2 * e.t;
6580
6585
  }
6581
- function z(e) {
6586
+ function se(e) {
6582
6587
  var t = a();
6583
6588
  return e.abs().dlShiftTo(this.m.t, t), t.divRemTo(this.m, null, t), e.s < 0 && t.compareTo(i.ZERO) > 0 && this.m.subTo(t, t), t;
6584
6589
  }
6585
- function oe(e) {
6590
+ function R(e) {
6586
6591
  var t = a();
6587
6592
  return e.copyTo(t), this.reduce(t), t;
6588
6593
  }
6589
- function se(e) {
6594
+ function ce(e) {
6590
6595
  for (; e.t <= this.mt2;) e[e.t++] = 0;
6591
6596
  for (var t = 0; t < this.m.t; ++t) {
6592
6597
  var n = e[t] & 32767, r = n * this.mpl + ((n * this.mph + (e[t] >> 15) * this.mpl & this.um) << 15) & e.DM;
@@ -6594,17 +6599,17 @@ var Zt = /* @__PURE__ */ u(((e) => {
6594
6599
  }
6595
6600
  e.clamp(), e.drShiftTo(this.m.t, e), e.compareTo(this.m) >= 0 && e.subTo(this.m, e);
6596
6601
  }
6597
- function ce(e, t) {
6602
+ function le(e, t) {
6598
6603
  e.squareTo(t), this.reduce(t);
6599
6604
  }
6600
- function le(e, t, n) {
6605
+ function ue(e, t, n) {
6601
6606
  e.multiplyTo(t, n), this.reduce(n);
6602
6607
  }
6603
- R.prototype.convert = z, R.prototype.revert = oe, R.prototype.reduce = se, R.prototype.mulTo = le, R.prototype.sqrTo = ce;
6604
- function ue() {
6608
+ L.prototype.convert = se, L.prototype.revert = R, L.prototype.reduce = ce, L.prototype.mulTo = ue, L.prototype.sqrTo = le;
6609
+ function de() {
6605
6610
  return (this.t > 0 ? this[0] & 1 : this.s) == 0;
6606
6611
  }
6607
- function de(e, t) {
6612
+ function fe(e, t) {
6608
6613
  if (e > 4294967295 || e < 1) return i.ONE;
6609
6614
  var n = a(), r = a(), o = t.convert(this), s = E(e) - 1;
6610
6615
  for (o.copyTo(n); --s >= 0;) if (t.sqrTo(n, r), (e & 1 << s) > 0) t.mulTo(r, o, n);
@@ -6614,16 +6619,16 @@ var Zt = /* @__PURE__ */ u(((e) => {
6614
6619
  }
6615
6620
  return t.revert(n);
6616
6621
  }
6617
- function fe(e, t) {
6618
- var n = e < 256 || t.isEven() ? new P(t) : new R(t);
6622
+ function pe(e, t) {
6623
+ var n = e < 256 || t.isEven() ? new F(t) : new L(t);
6619
6624
  return this.exp(e, n);
6620
6625
  }
6621
- i.prototype.copyTo = _, i.prototype.fromInt = v, i.prototype.fromString = b, i.prototype.clamp = x, i.prototype.dlShiftTo = O, i.prototype.drShiftTo = k, i.prototype.lShiftTo = A, i.prototype.rShiftTo = j, i.prototype.subTo = M, i.prototype.multiplyTo = ee, i.prototype.squareTo = N, i.prototype.divRemTo = te, i.prototype.invDigit = ae, i.prototype.isEven = ue, i.prototype.exp = de, i.prototype.toString = S, i.prototype.negate = C, i.prototype.abs = w, i.prototype.compareTo = T, i.prototype.bitLength = D, i.prototype.mod = ne, i.prototype.modPowInt = fe, i.ZERO = y(0), i.ONE = y(1);
6622
- function pe() {
6626
+ i.prototype.copyTo = _, i.prototype.fromInt = v, i.prototype.fromString = b, i.prototype.clamp = x, i.prototype.dlShiftTo = O, i.prototype.drShiftTo = k, i.prototype.lShiftTo = A, i.prototype.rShiftTo = j, i.prototype.subTo = M, i.prototype.multiplyTo = ee, i.prototype.squareTo = N, i.prototype.divRemTo = P, i.prototype.invDigit = oe, i.prototype.isEven = de, i.prototype.exp = fe, i.prototype.toString = S, i.prototype.negate = C, i.prototype.abs = w, i.prototype.compareTo = T, i.prototype.bitLength = D, i.prototype.mod = te, i.prototype.modPowInt = pe, i.ZERO = y(0), i.ONE = y(1);
6627
+ function me() {
6623
6628
  var e = a();
6624
6629
  return this.copyTo(e), e;
6625
6630
  }
6626
- function me() {
6631
+ function he() {
6627
6632
  if (this.s < 0) {
6628
6633
  if (this.t == 1) return this[0] - this.DV;
6629
6634
  if (this.t == 0) return -1;
@@ -6631,25 +6636,25 @@ var Zt = /* @__PURE__ */ u(((e) => {
6631
6636
  else if (this.t == 0) return 0;
6632
6637
  return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0];
6633
6638
  }
6634
- function he() {
6639
+ function ge() {
6635
6640
  return this.t == 0 ? this.s : this[0] << 24 >> 24;
6636
6641
  }
6637
- function ge() {
6642
+ function _e() {
6638
6643
  return this.t == 0 ? this.s : this[0] << 16 >> 16;
6639
6644
  }
6640
- function _e(e) {
6645
+ function z(e) {
6641
6646
  return Math.floor(Math.LN2 * this.DB / Math.log(e));
6642
6647
  }
6643
6648
  function ve() {
6644
6649
  return this.s < 0 ? -1 : this.t <= 0 || this.t == 1 && this[0] <= 0 ? 0 : 1;
6645
6650
  }
6646
- function ye(e) {
6651
+ function B(e) {
6647
6652
  if (e ??= 10, this.signum() == 0 || e < 2 || e > 36) return "0";
6648
6653
  var t = this.chunkSize(e), n = e ** +t, r = y(n), i = a(), o = a(), s = "";
6649
6654
  for (this.divRemTo(r, i, o); i.signum() > 0;) s = (n + o.intValue()).toString(e).substr(1) + s, i.divRemTo(r, i, o);
6650
6655
  return o.intValue().toString(e) + s;
6651
6656
  }
6652
- function be(e, t) {
6657
+ function ye(e, t) {
6653
6658
  this.fromInt(0), t ??= 10;
6654
6659
  for (var n = this.chunkSize(t), r = t ** +n, a = !1, o = 0, s = 0, c = 0; c < e.length; ++c) {
6655
6660
  var l = g(e, c);
@@ -6661,31 +6666,31 @@ var Zt = /* @__PURE__ */ u(((e) => {
6661
6666
  }
6662
6667
  o > 0 && (this.dMultiply(t ** +o), this.dAddOffset(s, 0)), a && i.ZERO.subTo(this, this);
6663
6668
  }
6664
- function xe(e, t, n) {
6669
+ function be(e, t, n) {
6665
6670
  if (typeof t == "number") if (e < 2) this.fromInt(1);
6666
- else for (this.fromNumber(e, n), this.testBit(e - 1) || this.bitwiseTo(i.ONE.shiftLeft(e - 1), ke, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(t);) this.dAddOffset(2, 0), this.bitLength() > e && this.subTo(i.ONE.shiftLeft(e - 1), this);
6671
+ else for (this.fromNumber(e, n), this.testBit(e - 1) || this.bitwiseTo(i.ONE.shiftLeft(e - 1), Oe, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(t);) this.dAddOffset(2, 0), this.bitLength() > e && this.subTo(i.ONE.shiftLeft(e - 1), this);
6667
6672
  else {
6668
6673
  var r = [], a = e & 7;
6669
6674
  r.length = (e >> 3) + 1, t.nextBytes(r), a > 0 ? r[0] &= (1 << a) - 1 : r[0] = 0, this.fromString(r, 256);
6670
6675
  }
6671
6676
  }
6672
- function Se() {
6677
+ function xe() {
6673
6678
  var e = this.t, t = [];
6674
6679
  t[0] = this.s;
6675
6680
  var n = this.DB - e * this.DB % 8, r, i = 0;
6676
6681
  if (e-- > 0) for (n < this.DB && (r = this[e] >> n) != (this.s & this.DM) >> n && (t[i++] = r | this.s << this.DB - n); e >= 0;) n < 8 ? (r = (this[e] & (1 << n) - 1) << 8 - n, r |= this[--e] >> (n += this.DB - 8)) : (r = this[e] >> (n -= 8) & 255, n <= 0 && (n += this.DB, --e)), r & 128 && (r |= -256), i == 0 && (this.s & 128) != (r & 128) && ++i, (i > 0 || r != this.s) && (t[i++] = r);
6677
6682
  return t;
6678
6683
  }
6679
- function Ce(e) {
6684
+ function Se(e) {
6680
6685
  return this.compareTo(e) == 0;
6681
6686
  }
6682
- function we(e) {
6687
+ function Ce(e) {
6683
6688
  return this.compareTo(e) < 0 ? this : e;
6684
6689
  }
6685
- function Te(e) {
6690
+ function we(e) {
6686
6691
  return this.compareTo(e) > 0 ? this : e;
6687
6692
  }
6688
- function Ee(e, t, n) {
6693
+ function Te(e, t, n) {
6689
6694
  var r, i, a = Math.min(e.t, this.t);
6690
6695
  for (r = 0; r < a; ++r) n[r] = t(this[r], e[r]);
6691
6696
  if (e.t < this.t) {
@@ -6697,81 +6702,81 @@ var Zt = /* @__PURE__ */ u(((e) => {
6697
6702
  }
6698
6703
  n.s = t(this.s, e.s), n.clamp();
6699
6704
  }
6700
- function De(e, t) {
6705
+ function Ee(e, t) {
6701
6706
  return e & t;
6702
6707
  }
6703
- function Oe(e) {
6708
+ function De(e) {
6704
6709
  var t = a();
6705
- return this.bitwiseTo(e, De, t), t;
6710
+ return this.bitwiseTo(e, Ee, t), t;
6706
6711
  }
6707
- function ke(e, t) {
6712
+ function Oe(e, t) {
6708
6713
  return e | t;
6709
6714
  }
6710
- function Ae(e) {
6715
+ function ke(e) {
6711
6716
  var t = a();
6712
- return this.bitwiseTo(e, ke, t), t;
6717
+ return this.bitwiseTo(e, Oe, t), t;
6713
6718
  }
6714
- function je(e, t) {
6719
+ function Ae(e, t) {
6715
6720
  return e ^ t;
6716
6721
  }
6717
- function Me(e) {
6722
+ function je(e) {
6718
6723
  var t = a();
6719
- return this.bitwiseTo(e, je, t), t;
6724
+ return this.bitwiseTo(e, Ae, t), t;
6720
6725
  }
6721
- function Ne(e, t) {
6726
+ function Me(e, t) {
6722
6727
  return e & ~t;
6723
6728
  }
6724
- function Pe(e) {
6729
+ function Ne(e) {
6725
6730
  var t = a();
6726
- return this.bitwiseTo(e, Ne, t), t;
6731
+ return this.bitwiseTo(e, Me, t), t;
6727
6732
  }
6728
- function Fe() {
6733
+ function Pe() {
6729
6734
  for (var e = a(), t = 0; t < this.t; ++t) e[t] = this.DM & ~this[t];
6730
6735
  return e.t = this.t, e.s = ~this.s, e;
6731
6736
  }
6732
- function B(e) {
6737
+ function V(e) {
6733
6738
  var t = a();
6734
6739
  return e < 0 ? this.rShiftTo(-e, t) : this.lShiftTo(e, t), t;
6735
6740
  }
6736
- function Ie(e) {
6741
+ function Fe(e) {
6737
6742
  var t = a();
6738
6743
  return e < 0 ? this.lShiftTo(-e, t) : this.rShiftTo(e, t), t;
6739
6744
  }
6740
- function Le(e) {
6745
+ function Ie(e) {
6741
6746
  if (e == 0) return -1;
6742
6747
  var t = 0;
6743
6748
  return e & 65535 || (e >>= 16, t += 16), e & 255 || (e >>= 8, t += 8), e & 15 || (e >>= 4, t += 4), e & 3 || (e >>= 2, t += 2), e & 1 || ++t, t;
6744
6749
  }
6745
- function Re() {
6746
- for (var e = 0; e < this.t; ++e) if (this[e] != 0) return e * this.DB + Le(this[e]);
6750
+ function Le() {
6751
+ for (var e = 0; e < this.t; ++e) if (this[e] != 0) return e * this.DB + Ie(this[e]);
6747
6752
  return this.s < 0 ? this.t * this.DB : -1;
6748
6753
  }
6749
- function ze(e) {
6754
+ function Re(e) {
6750
6755
  for (var t = 0; e != 0;) e &= e - 1, ++t;
6751
6756
  return t;
6752
6757
  }
6753
- function Be() {
6754
- for (var e = 0, t = this.s & this.DM, n = 0; n < this.t; ++n) e += ze(this[n] ^ t);
6758
+ function ze() {
6759
+ for (var e = 0, t = this.s & this.DM, n = 0; n < this.t; ++n) e += Re(this[n] ^ t);
6755
6760
  return e;
6756
6761
  }
6757
- function Ve(e) {
6762
+ function Be(e) {
6758
6763
  var t = Math.floor(e / this.DB);
6759
6764
  return t >= this.t ? this.s != 0 : (this[t] & 1 << e % this.DB) != 0;
6760
6765
  }
6761
- function He(e, t) {
6766
+ function Ve(e, t) {
6762
6767
  var n = i.ONE.shiftLeft(e);
6763
6768
  return this.bitwiseTo(n, t, n), n;
6764
6769
  }
6770
+ function He(e) {
6771
+ return this.changeBit(e, Oe);
6772
+ }
6765
6773
  function Ue(e) {
6766
- return this.changeBit(e, ke);
6774
+ return this.changeBit(e, Me);
6767
6775
  }
6768
6776
  function We(e) {
6769
- return this.changeBit(e, Ne);
6770
- }
6771
- function Ge(e) {
6772
- return this.changeBit(e, je);
6777
+ return this.changeBit(e, Ae);
6773
6778
  }
6774
- function Ke(e, t) {
6779
+ function Ge(e, t) {
6775
6780
  for (var n = 0, r = 0, i = Math.min(e.t, this.t); n < i;) r += this[n] + e[n], t[n++] = r & this.DM, r >>= this.DB;
6776
6781
  if (e.t < this.t) {
6777
6782
  for (r += e.s; n < this.t;) r += this[n], t[n++] = r & this.DM, r >>= this.DB;
@@ -6782,11 +6787,11 @@ var Zt = /* @__PURE__ */ u(((e) => {
6782
6787
  }
6783
6788
  t.s = r < 0 ? -1 : 0, r > 0 ? t[n++] = r : r < -1 && (t[n++] = this.DV + r), t.t = n, t.clamp();
6784
6789
  }
6785
- function qe(e) {
6790
+ function Ke(e) {
6786
6791
  var t = a();
6787
6792
  return this.addTo(e, t), t;
6788
6793
  }
6789
- function V(e) {
6794
+ function qe(e) {
6790
6795
  var t = a();
6791
6796
  return this.subTo(e, t), t;
6792
6797
  }
@@ -6794,46 +6799,46 @@ var Zt = /* @__PURE__ */ u(((e) => {
6794
6799
  var t = a();
6795
6800
  return this.multiplyTo(e, t), t;
6796
6801
  }
6797
- function H() {
6802
+ function Ye() {
6798
6803
  var e = a();
6799
6804
  return this.squareTo(e), e;
6800
6805
  }
6801
- function Ye(e) {
6806
+ function Xe(e) {
6802
6807
  var t = a();
6803
6808
  return this.divRemTo(e, t, null), t;
6804
6809
  }
6805
- function Xe(e) {
6810
+ function Ze(e) {
6806
6811
  var t = a();
6807
6812
  return this.divRemTo(e, null, t), t;
6808
6813
  }
6809
- function Ze(e) {
6814
+ function Qe(e) {
6810
6815
  var t = a(), n = a();
6811
6816
  return this.divRemTo(e, t, n), [t, n];
6812
6817
  }
6813
- function Qe(e) {
6818
+ function $e(e) {
6814
6819
  this[this.t] = this.am(0, e - 1, this, 0, 0, this.t), ++this.t, this.clamp();
6815
6820
  }
6816
- function U(e, t) {
6821
+ function et(e, t) {
6817
6822
  if (e != 0) {
6818
6823
  for (; this.t <= t;) this[this.t++] = 0;
6819
6824
  for (this[t] += e; this[t] >= this.DV;) this[t] -= this.DV, ++t >= this.t && (this[this.t++] = 0), ++this[t];
6820
6825
  }
6821
6826
  }
6822
- function W() {}
6823
- function $e(e) {
6827
+ function tt() {}
6828
+ function nt(e) {
6824
6829
  return e;
6825
6830
  }
6826
- function et(e, t, n) {
6831
+ function rt(e, t, n) {
6827
6832
  e.multiplyTo(t, n);
6828
6833
  }
6829
- function tt(e, t) {
6834
+ function it(e, t) {
6830
6835
  e.squareTo(t);
6831
6836
  }
6832
- W.prototype.convert = $e, W.prototype.revert = $e, W.prototype.mulTo = et, W.prototype.sqrTo = tt;
6833
- function nt(e) {
6834
- return this.exp(e, new W());
6837
+ tt.prototype.convert = nt, tt.prototype.revert = nt, tt.prototype.mulTo = rt, tt.prototype.sqrTo = it;
6838
+ function at(e) {
6839
+ return this.exp(e, new tt());
6835
6840
  }
6836
- function rt(e, t, n) {
6841
+ function ot(e, t, n) {
6837
6842
  var r = Math.min(this.t + e.t, t);
6838
6843
  for (n.s = 0, n.t = r; r > 0;) n[--r] = 0;
6839
6844
  var i;
@@ -6841,40 +6846,40 @@ var Zt = /* @__PURE__ */ u(((e) => {
6841
6846
  for (i = Math.min(e.t, t); r < i; ++r) this.am(0, e[r], n, r, 0, t - r);
6842
6847
  n.clamp();
6843
6848
  }
6844
- function it(e, t, n) {
6849
+ function st(e, t, n) {
6845
6850
  --t;
6846
6851
  var r = n.t = this.t + e.t - t;
6847
6852
  for (n.s = 0; --r >= 0;) n[r] = 0;
6848
6853
  for (r = Math.max(t - this.t, 0); r < e.t; ++r) n[this.t + r - t] = this.am(t - r, e[r], n, 0, 0, this.t + r - t);
6849
6854
  n.clamp(), n.drShiftTo(1, n);
6850
6855
  }
6851
- function G(e) {
6856
+ function ct(e) {
6852
6857
  this.r2 = a(), this.q3 = a(), i.ONE.dlShiftTo(2 * e.t, this.r2), this.mu = this.r2.divide(e), this.m = e;
6853
6858
  }
6854
- function at(e) {
6859
+ function lt(e) {
6855
6860
  if (e.s < 0 || e.t > 2 * this.m.t) return e.mod(this.m);
6856
6861
  if (e.compareTo(this.m) < 0) return e;
6857
6862
  var t = a();
6858
6863
  return e.copyTo(t), this.reduce(t), t;
6859
6864
  }
6860
- function ot(e) {
6865
+ function ut(e) {
6861
6866
  return e;
6862
6867
  }
6863
- function st(e) {
6868
+ function dt(e) {
6864
6869
  for (e.drShiftTo(this.m.t - 1, this.r2), e.t > this.m.t + 1 && (e.t = this.m.t + 1, e.clamp()), this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3), this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); e.compareTo(this.r2) < 0;) e.dAddOffset(1, this.m.t + 1);
6865
6870
  for (e.subTo(this.r2, e); e.compareTo(this.m) >= 0;) e.subTo(this.m, e);
6866
6871
  }
6867
- function ct(e, t) {
6872
+ function ft(e, t) {
6868
6873
  e.squareTo(t), this.reduce(t);
6869
6874
  }
6870
- function lt(e, t, n) {
6875
+ function pt(e, t, n) {
6871
6876
  e.multiplyTo(t, n), this.reduce(n);
6872
6877
  }
6873
- G.prototype.convert = at, G.prototype.revert = ot, G.prototype.reduce = st, G.prototype.mulTo = lt, G.prototype.sqrTo = ct;
6874
- function ut(e, t) {
6878
+ ct.prototype.convert = lt, ct.prototype.revert = ut, ct.prototype.reduce = dt, ct.prototype.mulTo = pt, ct.prototype.sqrTo = ft;
6879
+ function mt(e, t) {
6875
6880
  var n = e.bitLength(), r, i = y(1), o;
6876
6881
  if (n <= 0) return i;
6877
- r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, o = n < 8 ? new P(t) : t.isEven() ? new G(t) : new R(t);
6882
+ r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, o = n < 8 ? new F(t) : t.isEven() ? new ct(t) : new L(t);
6878
6883
  var s = [], c = 3, l = r - 1, u = (1 << r) - 1;
6879
6884
  if (s[1] = o.convert(this), r > 1) {
6880
6885
  var d = a();
@@ -6892,7 +6897,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
6892
6897
  }
6893
6898
  return o.revert(i);
6894
6899
  }
6895
- function dt(e) {
6900
+ function ht(e) {
6896
6901
  var t = this.s < 0 ? this.negate() : this.clone(), n = e.s < 0 ? e.negate() : e.clone();
6897
6902
  if (t.compareTo(n) < 0) {
6898
6903
  var r = t;
@@ -6903,14 +6908,14 @@ var Zt = /* @__PURE__ */ u(((e) => {
6903
6908
  for (i < a && (a = i), a > 0 && (t.rShiftTo(a, t), n.rShiftTo(a, n)); t.signum() > 0;) (i = t.getLowestSetBit()) > 0 && t.rShiftTo(i, t), (i = n.getLowestSetBit()) > 0 && n.rShiftTo(i, n), t.compareTo(n) >= 0 ? (t.subTo(n, t), t.rShiftTo(1, t)) : (n.subTo(t, n), n.rShiftTo(1, n));
6904
6909
  return a > 0 && n.lShiftTo(a, n), n;
6905
6910
  }
6906
- function ft(e) {
6911
+ function gt(e) {
6907
6912
  if (e <= 0) return 0;
6908
6913
  var t = this.DV % e, n = this.s < 0 ? e - 1 : 0;
6909
6914
  if (this.t > 0) if (t == 0) n = this[0] % e;
6910
6915
  else for (var r = this.t - 1; r >= 0; --r) n = (t * n + this[r]) % e;
6911
6916
  return n;
6912
6917
  }
6913
- function pt(e) {
6918
+ function _t(e) {
6914
6919
  var t = e.isEven();
6915
6920
  if (this.isEven() && t || e.signum() == 0) return i.ZERO;
6916
6921
  for (var n = e.clone(), r = this.clone(), a = y(1), o = y(0), s = y(0), c = y(1); n.signum() != 0;) {
@@ -6924,7 +6929,7 @@ var Zt = /* @__PURE__ */ u(((e) => {
6924
6929
  else return c;
6925
6930
  return c.signum() < 0 ? c.add(e) : c;
6926
6931
  }
6927
- var K = [
6932
+ var H = [
6928
6933
  2,
6929
6934
  3,
6930
6935
  5,
@@ -7093,27 +7098,27 @@ var Zt = /* @__PURE__ */ u(((e) => {
7093
7098
  983,
7094
7099
  991,
7095
7100
  997
7096
- ], mt = (1 << 26) / K[K.length - 1];
7097
- function ht(e) {
7101
+ ], vt = (1 << 26) / H[H.length - 1];
7102
+ function yt(e) {
7098
7103
  var t, n = this.abs();
7099
- if (n.t == 1 && n[0] <= K[K.length - 1]) {
7100
- for (t = 0; t < K.length; ++t) if (n[0] == K[t]) return !0;
7104
+ if (n.t == 1 && n[0] <= H[H.length - 1]) {
7105
+ for (t = 0; t < H.length; ++t) if (n[0] == H[t]) return !0;
7101
7106
  return !1;
7102
7107
  }
7103
7108
  if (n.isEven()) return !1;
7104
- for (t = 1; t < K.length;) {
7105
- for (var r = K[t], i = t + 1; i < K.length && r < mt;) r *= K[i++];
7106
- for (r = n.modInt(r); t < i;) if (r % K[t++] == 0) return !1;
7109
+ for (t = 1; t < H.length;) {
7110
+ for (var r = H[t], i = t + 1; i < H.length && r < vt;) r *= H[i++];
7111
+ for (r = n.modInt(r); t < i;) if (r % H[t++] == 0) return !1;
7107
7112
  }
7108
7113
  return n.millerRabin(e);
7109
7114
  }
7110
- function gt(e) {
7115
+ function bt(e) {
7111
7116
  var t = this.subtract(i.ONE), n = t.getLowestSetBit();
7112
7117
  if (n <= 0) return !1;
7113
7118
  var r = t.shiftRight(n);
7114
- e = e + 1 >> 1, e > K.length && (e = K.length);
7119
+ e = e + 1 >> 1, e > H.length && (e = H.length);
7115
7120
  for (var o = a(), s = 0; s < e; ++s) {
7116
- o.fromInt(K[Math.floor(Math.random() * K.length)]);
7121
+ o.fromInt(H[Math.floor(Math.random() * H.length)]);
7117
7122
  var c = o.modPow(r, this);
7118
7123
  if (c.compareTo(i.ONE) != 0 && c.compareTo(t) != 0) {
7119
7124
  for (var l = 1; l++ < n && c.compareTo(t) != 0;) if (c = c.modPowInt(2, this), c.compareTo(i.ONE) == 0) return !1;
@@ -7122,42 +7127,42 @@ var Zt = /* @__PURE__ */ u(((e) => {
7122
7127
  }
7123
7128
  return !0;
7124
7129
  }
7125
- i.prototype.chunkSize = _e, i.prototype.toRadix = ye, i.prototype.fromRadix = be, i.prototype.fromNumber = xe, i.prototype.bitwiseTo = Ee, i.prototype.changeBit = He, i.prototype.addTo = Ke, i.prototype.dMultiply = Qe, i.prototype.dAddOffset = U, i.prototype.multiplyLowerTo = rt, i.prototype.multiplyUpperTo = it, i.prototype.modInt = ft, i.prototype.millerRabin = gt, i.prototype.clone = pe, i.prototype.intValue = me, i.prototype.byteValue = he, i.prototype.shortValue = ge, i.prototype.signum = ve, i.prototype.toByteArray = Se, i.prototype.equals = Ce, i.prototype.min = we, i.prototype.max = Te, i.prototype.and = Oe, i.prototype.or = Ae, i.prototype.xor = Me, i.prototype.andNot = Pe, i.prototype.not = Fe, i.prototype.shiftLeft = B, i.prototype.shiftRight = Ie, i.prototype.getLowestSetBit = Re, i.prototype.bitCount = Be, i.prototype.testBit = Ve, i.prototype.setBit = Ue, i.prototype.clearBit = We, i.prototype.flipBit = Ge, i.prototype.add = qe, i.prototype.subtract = V, i.prototype.multiply = Je, i.prototype.divide = Ye, i.prototype.remainder = Xe, i.prototype.divideAndRemainder = Ze, i.prototype.modPow = ut, i.prototype.modInverse = pt, i.prototype.pow = nt, i.prototype.gcd = dt, i.prototype.isProbablePrime = ht, i.prototype.square = H, i.prototype.Barrett = G;
7126
- var _t, vt, q;
7127
- function yt(e) {
7128
- vt[q++] ^= e & 255, vt[q++] ^= e >> 8 & 255, vt[q++] ^= e >> 16 & 255, vt[q++] ^= e >> 24 & 255, q >= At && (q -= At);
7130
+ i.prototype.chunkSize = z, i.prototype.toRadix = B, i.prototype.fromRadix = ye, i.prototype.fromNumber = be, i.prototype.bitwiseTo = Te, i.prototype.changeBit = Ve, i.prototype.addTo = Ge, i.prototype.dMultiply = $e, i.prototype.dAddOffset = et, i.prototype.multiplyLowerTo = ot, i.prototype.multiplyUpperTo = st, i.prototype.modInt = gt, i.prototype.millerRabin = bt, i.prototype.clone = me, i.prototype.intValue = he, i.prototype.byteValue = ge, i.prototype.shortValue = _e, i.prototype.signum = ve, i.prototype.toByteArray = xe, i.prototype.equals = Se, i.prototype.min = Ce, i.prototype.max = we, i.prototype.and = De, i.prototype.or = ke, i.prototype.xor = je, i.prototype.andNot = Ne, i.prototype.not = Pe, i.prototype.shiftLeft = V, i.prototype.shiftRight = Fe, i.prototype.getLowestSetBit = Le, i.prototype.bitCount = ze, i.prototype.testBit = Be, i.prototype.setBit = He, i.prototype.clearBit = Ue, i.prototype.flipBit = We, i.prototype.add = Ke, i.prototype.subtract = qe, i.prototype.multiply = Je, i.prototype.divide = Xe, i.prototype.remainder = Ze, i.prototype.divideAndRemainder = Qe, i.prototype.modPow = mt, i.prototype.modInverse = _t, i.prototype.pow = at, i.prototype.gcd = ht, i.prototype.isProbablePrime = yt, i.prototype.square = Ye, i.prototype.Barrett = ct;
7131
+ var xt, U, W;
7132
+ function St(e) {
7133
+ U[W++] ^= e & 255, U[W++] ^= e >> 8 & 255, U[W++] ^= e >> 16 & 255, U[W++] ^= e >> 24 & 255, W >= Y && (W -= Y);
7129
7134
  }
7130
- function bt() {
7131
- yt((/* @__PURE__ */ new Date()).getTime());
7135
+ function Ct() {
7136
+ St((/* @__PURE__ */ new Date()).getTime());
7132
7137
  }
7133
- if (vt == null) {
7134
- vt = [], q = 0;
7135
- var xt;
7138
+ if (U == null) {
7139
+ U = [], W = 0;
7140
+ var G;
7136
7141
  if (typeof window < "u" && window.crypto) {
7137
7142
  if (window.crypto.getRandomValues) {
7138
- var St = new Uint8Array(32);
7139
- for (window.crypto.getRandomValues(St), xt = 0; xt < 32; ++xt) vt[q++] = St[xt];
7143
+ var wt = new Uint8Array(32);
7144
+ for (window.crypto.getRandomValues(wt), G = 0; G < 32; ++G) U[W++] = wt[G];
7140
7145
  } else if (navigator.appName == "Netscape" && navigator.appVersion < "5") {
7141
- var Ct = window.crypto.random(32);
7142
- for (xt = 0; xt < Ct.length; ++xt) vt[q++] = Ct.charCodeAt(xt) & 255;
7146
+ var K = window.crypto.random(32);
7147
+ for (G = 0; G < K.length; ++G) U[W++] = K.charCodeAt(G) & 255;
7143
7148
  }
7144
7149
  }
7145
- for (; q < At;) xt = Math.floor(65536 * Math.random()), vt[q++] = xt >>> 8, vt[q++] = xt & 255;
7146
- q = 0, bt();
7150
+ for (; W < Y;) G = Math.floor(65536 * Math.random()), U[W++] = G >>> 8, U[W++] = G & 255;
7151
+ W = 0, Ct();
7147
7152
  }
7148
- function wt() {
7149
- if (_t == null) {
7150
- for (bt(), _t = kt(), _t.init(vt), q = 0; q < vt.length; ++q) vt[q] = 0;
7151
- q = 0;
7153
+ function Tt() {
7154
+ if (xt == null) {
7155
+ for (Ct(), xt = J(), xt.init(U), W = 0; W < U.length; ++W) U[W] = 0;
7156
+ W = 0;
7152
7157
  }
7153
- return _t.next();
7158
+ return xt.next();
7154
7159
  }
7155
- function Tt(e) {
7160
+ function q(e) {
7156
7161
  var t;
7157
- for (t = 0; t < e.length; ++t) e[t] = wt();
7162
+ for (t = 0; t < e.length; ++t) e[t] = Tt();
7158
7163
  }
7159
7164
  function Et() {}
7160
- Et.prototype.nextBytes = Tt;
7165
+ Et.prototype.nextBytes = q;
7161
7166
  function Dt() {
7162
7167
  this.i = 0, this.j = 0, this.S = [];
7163
7168
  }
@@ -7167,15 +7172,15 @@ var Zt = /* @__PURE__ */ u(((e) => {
7167
7172
  for (n = 0, t = 0; t < 256; ++t) n = n + this.S[t] + e[t % e.length] & 255, r = this.S[t], this.S[t] = this.S[n], this.S[n] = r;
7168
7173
  this.i = 0, this.j = 0;
7169
7174
  }
7170
- function J() {
7175
+ function kt() {
7171
7176
  var e;
7172
7177
  return this.i = this.i + 1 & 255, this.j = this.j + this.S[this.i] & 255, e = this.S[this.i], this.S[this.i] = this.S[this.j], this.S[this.j] = e, this.S[e + this.S[this.i] & 255];
7173
7178
  }
7174
- Dt.prototype.init = Ot, Dt.prototype.next = J;
7175
- function kt() {
7179
+ Dt.prototype.init = Ot, Dt.prototype.next = kt;
7180
+ function J() {
7176
7181
  return new Dt();
7177
7182
  }
7178
- var At = 256;
7183
+ var Y = 256;
7179
7184
  e === void 0 ? this.jsbn = {
7180
7185
  BigInteger: i,
7181
7186
  SecureRandom: Et
@@ -7185,88 +7190,88 @@ var Zt = /* @__PURE__ */ u(((e) => {
7185
7190
  SecureRandom: Et
7186
7191
  };
7187
7192
  }).call(e);
7188
- })), nn = /* @__PURE__ */ p(en()), Z = $t(), Q = tn(), rn = Q.BigInteger.prototype.Barrett;
7189
- function $(e, t) {
7193
+ })), Ln = /* @__PURE__ */ ue(Fn()), Rn = Pn(), $ = In(), zn = $.BigInteger.prototype.Barrett;
7194
+ function Bn(e, t) {
7190
7195
  this.x = t, this.q = e;
7191
7196
  }
7192
- function an(e, t, n, r) {
7193
- this.curve = e, this.x = t, this.y = n, this.z = r ?? Q.BigInteger.ONE, this.zinv = null;
7197
+ function Vn(e, t, n, r) {
7198
+ this.curve = e, this.x = t, this.y = n, this.z = r ?? $.BigInteger.ONE, this.zinv = null;
7194
7199
  }
7195
- function on(e, t, n) {
7196
- this.q = e, this.a = this.fromBigInteger(t), this.b = this.fromBigInteger(n), this.infinity = new an(this, null, null), this.reducer = new rn(this.q);
7200
+ function Hn(e, t, n) {
7201
+ this.q = e, this.a = this.fromBigInteger(t), this.b = this.fromBigInteger(n), this.infinity = new Vn(this, null, null), this.reducer = new zn(this.q);
7197
7202
  }
7198
- $.prototype.equals = function(e) {
7203
+ Bn.prototype.equals = function(e) {
7199
7204
  return e == this || this.q.equals(e.q) && this.x.equals(e.x);
7200
- }, $.prototype.toBigInteger = function() {
7205
+ }, Bn.prototype.toBigInteger = function() {
7201
7206
  return this.x;
7202
- }, $.prototype.negate = function() {
7203
- return new $(this.q, this.x.negate().mod(this.q));
7204
- }, $.prototype.add = function(e) {
7205
- return new $(this.q, this.x.add(e.toBigInteger()).mod(this.q));
7206
- }, $.prototype.subtract = function(e) {
7207
- return new $(this.q, this.x.subtract(e.toBigInteger()).mod(this.q));
7208
- }, $.prototype.multiply = function(e) {
7209
- return new $(this.q, this.x.multiply(e.toBigInteger()).mod(this.q));
7210
- }, $.prototype.square = function() {
7211
- return new $(this.q, this.x.square().mod(this.q));
7212
- }, $.prototype.divide = function(e) {
7213
- return new $(this.q, this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q));
7214
- }, an.prototype.getX = function() {
7207
+ }, Bn.prototype.negate = function() {
7208
+ return new Bn(this.q, this.x.negate().mod(this.q));
7209
+ }, Bn.prototype.add = function(e) {
7210
+ return new Bn(this.q, this.x.add(e.toBigInteger()).mod(this.q));
7211
+ }, Bn.prototype.subtract = function(e) {
7212
+ return new Bn(this.q, this.x.subtract(e.toBigInteger()).mod(this.q));
7213
+ }, Bn.prototype.multiply = function(e) {
7214
+ return new Bn(this.q, this.x.multiply(e.toBigInteger()).mod(this.q));
7215
+ }, Bn.prototype.square = function() {
7216
+ return new Bn(this.q, this.x.square().mod(this.q));
7217
+ }, Bn.prototype.divide = function(e) {
7218
+ return new Bn(this.q, this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q));
7219
+ }, Vn.prototype.getX = function() {
7215
7220
  this.zinv ??= this.z.modInverse(this.curve.q);
7216
7221
  var e = this.x.toBigInteger().multiply(this.zinv);
7217
7222
  return this.curve.reduce(e), this.curve.fromBigInteger(e);
7218
- }, an.prototype.getY = function() {
7223
+ }, Vn.prototype.getY = function() {
7219
7224
  this.zinv ??= this.z.modInverse(this.curve.q);
7220
7225
  var e = this.y.toBigInteger().multiply(this.zinv);
7221
7226
  return this.curve.reduce(e), this.curve.fromBigInteger(e);
7222
- }, an.prototype.equals = function(e) {
7223
- return e == this || (this.isInfinity() ? e.isInfinity() : e.isInfinity() ? this.isInfinity() : !!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(Q.BigInteger.ZERO) && e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(Q.BigInteger.ZERO));
7224
- }, an.prototype.isInfinity = function() {
7225
- return this.x == null && this.y == null || this.z.equals(Q.BigInteger.ZERO) && !this.y.toBigInteger().equals(Q.BigInteger.ZERO);
7226
- }, an.prototype.negate = function() {
7227
- return new an(this.curve, this.x, this.y.negate(), this.z);
7228
- }, an.prototype.add = function(e) {
7227
+ }, Vn.prototype.equals = function(e) {
7228
+ return e == this || (this.isInfinity() ? e.isInfinity() : e.isInfinity() ? this.isInfinity() : !!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals($.BigInteger.ZERO) && e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals($.BigInteger.ZERO));
7229
+ }, Vn.prototype.isInfinity = function() {
7230
+ return this.x == null && this.y == null || this.z.equals($.BigInteger.ZERO) && !this.y.toBigInteger().equals($.BigInteger.ZERO);
7231
+ }, Vn.prototype.negate = function() {
7232
+ return new Vn(this.curve, this.x, this.y.negate(), this.z);
7233
+ }, Vn.prototype.add = function(e) {
7229
7234
  if (this.isInfinity()) return e;
7230
7235
  if (e.isInfinity()) return this;
7231
7236
  var t = e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q), n = e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);
7232
- if (Q.BigInteger.ZERO.equals(n)) return Q.BigInteger.ZERO.equals(t) ? this.twice() : this.curve.getInfinity();
7233
- var r = new Q.BigInteger("3"), i = this.x.toBigInteger(), a = this.y.toBigInteger(), o = (e.x.toBigInteger(), e.y.toBigInteger(), n.square()), s = o.multiply(n), c = i.multiply(o), l = t.square().multiply(this.z), u = l.subtract(c.shiftLeft(1)).multiply(e.z).subtract(s).multiply(n).mod(this.curve.q), d = c.multiply(r).multiply(t).subtract(a.multiply(s)).subtract(l.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q), f = s.multiply(this.z).multiply(e.z).mod(this.curve.q);
7234
- return new an(this.curve, this.curve.fromBigInteger(u), this.curve.fromBigInteger(d), f);
7235
- }, an.prototype.twice = function() {
7237
+ if ($.BigInteger.ZERO.equals(n)) return $.BigInteger.ZERO.equals(t) ? this.twice() : this.curve.getInfinity();
7238
+ var r = new $.BigInteger("3"), i = this.x.toBigInteger(), a = this.y.toBigInteger(), o = (e.x.toBigInteger(), e.y.toBigInteger(), n.square()), s = o.multiply(n), c = i.multiply(o), l = t.square().multiply(this.z), u = l.subtract(c.shiftLeft(1)).multiply(e.z).subtract(s).multiply(n).mod(this.curve.q), d = c.multiply(r).multiply(t).subtract(a.multiply(s)).subtract(l.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q), f = s.multiply(this.z).multiply(e.z).mod(this.curve.q);
7239
+ return new Vn(this.curve, this.curve.fromBigInteger(u), this.curve.fromBigInteger(d), f);
7240
+ }, Vn.prototype.twice = function() {
7236
7241
  if (this.isInfinity()) return this;
7237
7242
  if (this.y.toBigInteger().signum() == 0) return this.curve.getInfinity();
7238
- var e = new Q.BigInteger("3"), t = this.x.toBigInteger(), n = this.y.toBigInteger(), r = n.multiply(this.z), i = r.multiply(n).mod(this.curve.q), a = this.curve.a.toBigInteger(), o = t.square().multiply(e);
7239
- Q.BigInteger.ZERO.equals(a) || (o = o.add(this.z.square().multiply(a)));
7243
+ var e = new $.BigInteger("3"), t = this.x.toBigInteger(), n = this.y.toBigInteger(), r = n.multiply(this.z), i = r.multiply(n).mod(this.curve.q), a = this.curve.a.toBigInteger(), o = t.square().multiply(e);
7244
+ $.BigInteger.ZERO.equals(a) || (o = o.add(this.z.square().multiply(a)));
7240
7245
  var s = (o = o.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.q), c = o.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(o.square().multiply(o)).mod(this.curve.q), l = r.square().multiply(r).shiftLeft(3).mod(this.curve.q);
7241
- return new an(this.curve, this.curve.fromBigInteger(s), this.curve.fromBigInteger(c), l);
7242
- }, an.prototype.multiply = function(e) {
7246
+ return new Vn(this.curve, this.curve.fromBigInteger(s), this.curve.fromBigInteger(c), l);
7247
+ }, Vn.prototype.multiply = function(e) {
7243
7248
  if (this.isInfinity()) return this;
7244
7249
  if (e.signum() == 0) return this.curve.getInfinity();
7245
- var t, n = e, r = n.multiply(new Q.BigInteger("3")), i = this.negate(), a = this;
7250
+ var t, n = e, r = n.multiply(new $.BigInteger("3")), i = this.negate(), a = this;
7246
7251
  for (t = r.bitLength() - 2; t > 0; --t) {
7247
7252
  a = a.twice();
7248
7253
  var o = r.testBit(t);
7249
7254
  o != n.testBit(t) && (a = a.add(o ? this : i));
7250
7255
  }
7251
7256
  return a;
7252
- }, an.prototype.multiplyTwo = function(e, t, n) {
7257
+ }, Vn.prototype.multiplyTwo = function(e, t, n) {
7253
7258
  for (var r = e.bitLength() > n.bitLength() ? e.bitLength() - 1 : n.bitLength() - 1, i = this.curve.getInfinity(), a = this.add(t); r >= 0;) i = i.twice(), e.testBit(r) ? i = n.testBit(r) ? i.add(a) : i.add(this) : n.testBit(r) && (i = i.add(t)), --r;
7254
7259
  return i;
7255
- }, on.prototype.getQ = function() {
7260
+ }, Hn.prototype.getQ = function() {
7256
7261
  return this.q;
7257
- }, on.prototype.getA = function() {
7262
+ }, Hn.prototype.getA = function() {
7258
7263
  return this.a;
7259
- }, on.prototype.getB = function() {
7264
+ }, Hn.prototype.getB = function() {
7260
7265
  return this.b;
7261
- }, on.prototype.equals = function(e) {
7266
+ }, Hn.prototype.equals = function(e) {
7262
7267
  return e == this || this.q.equals(e.q) && this.a.equals(e.a) && this.b.equals(e.b);
7263
- }, on.prototype.getInfinity = function() {
7268
+ }, Hn.prototype.getInfinity = function() {
7264
7269
  return this.infinity;
7265
- }, on.prototype.fromBigInteger = function(e) {
7266
- return new $(this.q, e);
7267
- }, on.prototype.reduce = function(e) {
7270
+ }, Hn.prototype.fromBigInteger = function(e) {
7271
+ return new Bn(this.q, e);
7272
+ }, Hn.prototype.reduce = function(e) {
7268
7273
  this.reducer.reduce(e);
7269
- }, on.prototype.decodePointHex = function(e) {
7274
+ }, Hn.prototype.decodePointHex = function(e) {
7270
7275
  switch (parseInt(e.substr(0, 2), 16)) {
7271
7276
  case 0: return this.infinity;
7272
7277
  case 2:
@@ -7275,30 +7280,30 @@ $.prototype.equals = function(e) {
7275
7280
  case 6:
7276
7281
  case 7:
7277
7282
  var t = (e.length - 2) / 2, n = e.substr(2, t), r = e.substr(t + 2, t);
7278
- return new an(this, this.fromBigInteger(new Q.BigInteger(n, 16)), this.fromBigInteger(new Q.BigInteger(r, 16)));
7283
+ return new Vn(this, this.fromBigInteger(new $.BigInteger(n, 16)), this.fromBigInteger(new $.BigInteger(r, 16)));
7279
7284
  default: return null;
7280
7285
  }
7281
- }, on.prototype.encodePointHex = function(e) {
7286
+ }, Hn.prototype.encodePointHex = function(e) {
7282
7287
  if (e.isInfinity()) return "00";
7283
7288
  var t = e.getX().toBigInteger().toString(16), n = e.getY().toBigInteger().toString(16), r = this.getQ().toString(16).length;
7284
7289
  for (r % 2 != 0 && r++; t.length < r;) t = "0" + t;
7285
7290
  for (; n.length < r;) n = "0" + n;
7286
7291
  return "04" + t + n;
7287
7292
  };
7288
- var sn = function(e, t) {
7293
+ var Un = function(e, t) {
7289
7294
  return e << (t %= 32) | e >>> 32 - t;
7290
7295
  };
7291
- new Q.SecureRandom();
7292
- var cn = function() {
7293
- var e = new on(new Q.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF", 16), new Q.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC", 16), new Q.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93", 16));
7296
+ new $.SecureRandom();
7297
+ var Wn = function() {
7298
+ var e = new Hn(new $.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF", 16), new $.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC", 16), new $.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93", 16));
7294
7299
  return {
7295
7300
  curve: e,
7296
7301
  G: e.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"),
7297
- n: new Q.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123", 16)
7302
+ n: new $.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123", 16)
7298
7303
  };
7299
7304
  }();
7300
- cn.curve, cn.G, cn.n;
7301
- var ln = [
7305
+ Wn.curve, Wn.G, Wn.n;
7306
+ var Gn = [
7302
7307
  [
7303
7308
  214,
7304
7309
  144,
@@ -7587,12 +7592,12 @@ var ln = [
7587
7592
  57,
7588
7593
  72
7589
7594
  ]
7590
- ], un = [
7595
+ ], Kn = [
7591
7596
  2746333894,
7592
7597
  1453994832,
7593
7598
  1736282519,
7594
7599
  2993693404
7595
- ], dn = [
7600
+ ], qn = [
7596
7601
  462357,
7597
7602
  472066609,
7598
7603
  943670861,
@@ -7625,43 +7630,43 @@ var ln = [
7625
7630
  741554753,
7626
7631
  1213159005,
7627
7632
  1684763257
7628
- ], fn = /^[0-9a-f]{32}$/i, pn = function(e) {
7629
- return ln[(4026531840 & e) >>> 28][(251658240 & e) >>> 24] << 24 | ln[(15728640 & e) >>> 20][(983040 & e) >>> 16] << 16 | ln[(61440 & e) >>> 12][(3840 & e) >>> 8] << 8 | ln[(240 & e) >>> 4][(15 & e) >>> 0] << 0;
7630
- }, mn = function(e) {
7631
- return (t = pn(e)) ^ sn(t, 2) ^ sn(t, 10) ^ sn(t, 18) ^ sn(t, 24);
7633
+ ], Jn = /^[0-9a-f]{32}$/i, Yn = function(e) {
7634
+ return Gn[(4026531840 & e) >>> 28][(251658240 & e) >>> 24] << 24 | Gn[(15728640 & e) >>> 20][(983040 & e) >>> 16] << 16 | Gn[(61440 & e) >>> 12][(3840 & e) >>> 8] << 8 | Gn[(240 & e) >>> 4][(15 & e) >>> 0] << 0;
7635
+ }, Xn = function(e) {
7636
+ return (t = Yn(e)) ^ Un(t, 2) ^ Un(t, 10) ^ Un(t, 18) ^ Un(t, 24);
7632
7637
  var t;
7633
- }, hn = function(e) {
7638
+ }, Zn = function(e) {
7634
7639
  var t, n = Array(36);
7635
- n[0] = e[0] ^ un[0], n[1] = e[1] ^ un[1], n[2] = e[2] ^ un[2], n[3] = e[3] ^ un[3];
7636
- for (var r = Array(32), i = 0; i < 32; i++) n[i + 4] = n[i] ^ (t = pn(n[i + 1] ^ n[i + 2] ^ n[i + 3] ^ dn[i])) ^ sn(t, 13) ^ sn(t, 23), r[i] = n[i + 4];
7640
+ n[0] = e[0] ^ Kn[0], n[1] = e[1] ^ Kn[1], n[2] = e[2] ^ Kn[2], n[3] = e[3] ^ Kn[3];
7641
+ for (var r = Array(32), i = 0; i < 32; i++) n[i + 4] = n[i] ^ (t = Yn(n[i + 1] ^ n[i + 2] ^ n[i + 3] ^ qn[i])) ^ Un(t, 13) ^ Un(t, 23), r[i] = n[i + 4];
7637
7642
  return r;
7638
- }, gn = function(e, t) {
7639
- for (var n = hn(t), r = 0; r < 32; r++) e[r + 4] = e[r] ^ mn(e[r + 1] ^ e[r + 2] ^ e[r + 3] ^ n[r]);
7643
+ }, Qn = function(e, t) {
7644
+ for (var n = Zn(t), r = 0; r < 32; r++) e[r + 4] = e[r] ^ Xn(e[r + 1] ^ e[r + 2] ^ e[r + 3] ^ n[r]);
7640
7645
  return [
7641
7646
  e[35],
7642
7647
  e[34],
7643
7648
  e[33],
7644
7649
  e[32]
7645
7650
  ];
7646
- }, _n = function(e, t) {
7647
- for (var n = hn(t).reverse(), r = 0; r < 32; r++) e[r + 4] = e[r] ^ mn(e[r + 1] ^ e[r + 2] ^ e[r + 3] ^ n[r]);
7651
+ }, $n = function(e, t) {
7652
+ for (var n = Zn(t).reverse(), r = 0; r < 32; r++) e[r + 4] = e[r] ^ Xn(e[r + 1] ^ e[r + 2] ^ e[r + 3] ^ n[r]);
7648
7653
  return [
7649
7654
  e[35],
7650
7655
  e[34],
7651
7656
  e[33],
7652
7657
  e[32]
7653
7658
  ];
7654
- }, vn = function(e) {
7659
+ }, er = function(e) {
7655
7660
  return [
7656
7661
  e.readInt32BE(0),
7657
7662
  e.readInt32BE(4),
7658
7663
  e.readInt32BE(8),
7659
7664
  e.readInt32BE(12)
7660
7665
  ];
7661
- }, yn = function(e) {
7662
- for (var t = Z.Buffer.alloc(16), n = 0; n < 4; n++) t.writeInt32BE(e[n], 4 * n);
7666
+ }, tr = function(e) {
7667
+ for (var t = Rn.Buffer.alloc(16), n = 0; n < 4; n++) t.writeInt32BE(e[n], 4 * n);
7663
7668
  return t;
7664
- }, bn = {
7669
+ }, nr = {
7665
7670
  __proto__: null,
7666
7671
  constants: {
7667
7672
  ECB: 1,
@@ -7669,42 +7674,42 @@ var ln = [
7669
7674
  },
7670
7675
  encrypt: function(e, t, n) {
7671
7676
  var r = n || {}, i = r.mode, a = r.iv, o = r.outputEncoding;
7672
- if (typeof e == "string" ? e = Z.Buffer.from(e, r.inputEncoding || "utf8") : e instanceof ArrayBuffer && (e = Z.Buffer.from(e)), !Z.Buffer.isBuffer(e)) throw TypeError("Expected \"string\" | \"Buffer\" | \"ArrayBuffer\" but received \"" + Object.prototype.toString.call(e) + "\"");
7673
- if (!fn.test(t)) throw TypeError("Invalid value of cipher `key`");
7674
- if (t = Z.Buffer.from(t, "hex"), i === 2 && !fn.test(a)) throw TypeError("Invalid value of `iv` option");
7677
+ if (typeof e == "string" ? e = Rn.Buffer.from(e, r.inputEncoding || "utf8") : e instanceof ArrayBuffer && (e = Rn.Buffer.from(e)), !Rn.Buffer.isBuffer(e)) throw TypeError("Expected \"string\" | \"Buffer\" | \"ArrayBuffer\" but received \"" + Object.prototype.toString.call(e) + "\"");
7678
+ if (!Jn.test(t)) throw TypeError("Invalid value of cipher `key`");
7679
+ if (t = Rn.Buffer.from(t, "hex"), i === 2 && !Jn.test(a)) throw TypeError("Invalid value of `iv` option");
7675
7680
  return function(e, t, n, r) {
7676
- n &&= vn(n), t = vn(t);
7681
+ n &&= er(n), t = er(t);
7677
7682
  for (var i = [], a = (e = function(e) {
7678
- var t = 16 - e.length % 16, n = Z.Buffer.alloc(t, t);
7679
- return Z.Buffer.concat([e, n], e.length + t);
7683
+ var t = 16 - e.length % 16, n = Rn.Buffer.alloc(t, t);
7684
+ return Rn.Buffer.concat([e, n], e.length + t);
7680
7685
  }(e)).length / 16, o = 0; o < a; o++) if (n) {
7681
- var s = 16 * o, c = gn([
7686
+ var s = 16 * o, c = Qn([
7682
7687
  n[0] ^ e.readInt32BE(s),
7683
7688
  n[1] ^ e.readInt32BE(s + 4),
7684
7689
  n[2] ^ e.readInt32BE(s + 8),
7685
7690
  n[3] ^ e.readInt32BE(s + 12)
7686
7691
  ], t);
7687
- i.push(yn(c)), n = c.slice(0);
7692
+ i.push(tr(c)), n = c.slice(0);
7688
7693
  } else {
7689
- var l = 16 * o, u = gn([
7694
+ var l = 16 * o, u = Qn([
7690
7695
  e.readInt32BE(l),
7691
7696
  e.readInt32BE(l + 4),
7692
7697
  e.readInt32BE(l + 8),
7693
7698
  e.readInt32BE(l + 12)
7694
7699
  ], t);
7695
- i.push(yn(u));
7700
+ i.push(tr(u));
7696
7701
  }
7697
- var d = Z.Buffer.concat(i, e.length);
7698
- return r ? d.toString(r) : (0, nn.default)(d);
7699
- }(e, t, a = i === 2 ? Z.Buffer.from(a, "hex") : null, o);
7702
+ var d = Rn.Buffer.concat(i, e.length);
7703
+ return r ? d.toString(r) : (0, Ln.default)(d);
7704
+ }(e, t, a = i === 2 ? Rn.Buffer.from(a, "hex") : null, o);
7700
7705
  },
7701
7706
  decrypt: function(e, t, n) {
7702
7707
  var r = n || {}, i = r.mode, a = r.iv, o = r.outputEncoding;
7703
- if (typeof e == "string" ? e = Z.Buffer.from(e, r.inputEncoding) : e instanceof ArrayBuffer && (e = Z.Buffer.from(e)), !Z.Buffer.isBuffer(e)) throw TypeError("Expected \"string\" | \"Buffer\" | \"ArrayBuffer\" but received \"" + Object.prototype.toString.call(e) + "\"");
7704
- if (!fn.test(t)) throw TypeError("Invalid value of cipher `key`");
7705
- if (t = Z.Buffer.from(t, "hex"), i === 2 && !fn.test(a)) throw TypeError("Invalid value of `iv` option");
7708
+ if (typeof e == "string" ? e = Rn.Buffer.from(e, r.inputEncoding) : e instanceof ArrayBuffer && (e = Rn.Buffer.from(e)), !Rn.Buffer.isBuffer(e)) throw TypeError("Expected \"string\" | \"Buffer\" | \"ArrayBuffer\" but received \"" + Object.prototype.toString.call(e) + "\"");
7709
+ if (!Jn.test(t)) throw TypeError("Invalid value of cipher `key`");
7710
+ if (t = Rn.Buffer.from(t, "hex"), i === 2 && !Jn.test(a)) throw TypeError("Invalid value of `iv` option");
7706
7711
  return function(e, t, n, r) {
7707
- n &&= vn(n), t = vn(t);
7712
+ n &&= er(n), t = er(t);
7708
7713
  var i = [], a = e.length / 16;
7709
7714
  if (n) for (var o = a - 1; o >= 0; o--) {
7710
7715
  var s, c = 16 * o;
@@ -7714,13 +7719,13 @@ var ln = [
7714
7719
  e.readInt32BE(c - 16 + 8),
7715
7720
  e.readInt32BE(c - 16 + 12)
7716
7721
  ] : n;
7717
- var l = _n([
7722
+ var l = $n([
7718
7723
  e.readInt32BE(c),
7719
7724
  e.readInt32BE(c + 4),
7720
7725
  e.readInt32BE(c + 8),
7721
7726
  e.readInt32BE(c + 12)
7722
7727
  ], t);
7723
- i.unshift(yn([
7728
+ i.unshift(tr([
7724
7729
  l[0] ^ s[0],
7725
7730
  l[1] ^ s[1],
7726
7731
  l[2] ^ s[2],
@@ -7728,39 +7733,39 @@ var ln = [
7728
7733
  ]));
7729
7734
  }
7730
7735
  else for (var u = 0; u < a; u++) {
7731
- var d = 16 * u, f = _n([
7736
+ var d = 16 * u, f = $n([
7732
7737
  e.readInt32BE(d),
7733
7738
  e.readInt32BE(d + 4),
7734
7739
  e.readInt32BE(d + 8),
7735
7740
  e.readInt32BE(d + 12)
7736
7741
  ], t);
7737
- i.push(yn(f));
7742
+ i.push(tr(f));
7738
7743
  }
7739
- var p = Z.Buffer.concat(i, e.length - i[i.length - 1][15]);
7740
- return r ? p.toString(r) : (0, nn.default)(p);
7741
- }(e, t, a = i === 2 ? Z.Buffer.from(a, "hex") : null, o);
7744
+ var p = Rn.Buffer.concat(i, e.length - i[i.length - 1][15]);
7745
+ return r ? p.toString(r) : (0, Ln.default)(p);
7746
+ }(e, t, a = i === 2 ? Rn.Buffer.from(a, "hex") : null, o);
7742
7747
  }
7743
7748
  };
7744
7749
  //#endregion
7745
7750
  //#region src/cryptoAlg/sm4-cbc.ts
7746
- function xn(e) {
7751
+ function rr(e) {
7747
7752
  return new Promise((t) => {
7748
- let n = x.use().key || "0123456789abcdeffedcba9876543210", r = x.use().iv || "0123456789abcdeffedcba9876543210";
7749
- t(bn.encrypt(e, n.toLowerCase(), {
7753
+ let n = z.use().key || "0123456789abcdeffedcba9876543210", r = z.use().iv || "0123456789abcdeffedcba9876543210";
7754
+ t(nr.encrypt(e, n.toLowerCase(), {
7750
7755
  iv: r,
7751
- mode: bn.constants.CBC,
7756
+ mode: nr.constants.CBC,
7752
7757
  inputEncoding: "utf8",
7753
7758
  outputEncoding: "base64"
7754
7759
  }).replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replaceAll(/=/g, ""));
7755
7760
  });
7756
7761
  }
7757
- function Sn(e) {
7762
+ function ir(e) {
7758
7763
  return new Promise((t) => {
7759
- let n = x.use().key || "0123456789abcdeffedcba9876543210", r = x.use().iv || "0123456789abcdeffedcba9876543210", i = e.replaceAll(/-/g, "+").replaceAll(/_/g, "/");
7764
+ let n = z.use().key || "0123456789abcdeffedcba9876543210", r = z.use().iv || "0123456789abcdeffedcba9876543210", i = e.replaceAll(/-/g, "+").replaceAll(/_/g, "/");
7760
7765
  for (; i.length % 4;) i += "=";
7761
- let a = bn.decrypt(i, n.toLowerCase(), {
7766
+ let a = nr.decrypt(i, n.toLowerCase(), {
7762
7767
  iv: r,
7763
- mode: bn.constants.CBC,
7768
+ mode: nr.constants.CBC,
7764
7769
  inputEncoding: "base64",
7765
7770
  outputEncoding: "utf8"
7766
7771
  });
@@ -7771,31 +7776,31 @@ function Sn(e) {
7771
7776
  }
7772
7777
  });
7773
7778
  }
7774
- function Cn() {
7779
+ function ar() {
7775
7780
  return {
7776
7781
  name: "sm4-cbc",
7777
- encrypt: xn,
7778
- decrypt: Sn
7782
+ encrypt: rr,
7783
+ decrypt: ir
7779
7784
  };
7780
7785
  }
7781
7786
  //#endregion
7782
7787
  //#region src/cryptoAlg/sm4-ecb.ts
7783
- function wn(e) {
7788
+ function or(e) {
7784
7789
  return new Promise((t) => {
7785
- let n = x.use().key || "0123456789abcdeffedcba9876543210";
7786
- t(bn.encrypt(e, n.toLowerCase(), {
7787
- mode: bn.constants.ECB,
7790
+ let n = z.use().key || "0123456789abcdeffedcba9876543210";
7791
+ t(nr.encrypt(e, n.toLowerCase(), {
7792
+ mode: nr.constants.ECB,
7788
7793
  inputEncoding: "utf8",
7789
7794
  outputEncoding: "base64"
7790
7795
  }).replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replaceAll(/=/g, ""));
7791
7796
  });
7792
7797
  }
7793
- function Tn(e) {
7798
+ function sr(e) {
7794
7799
  return new Promise((t) => {
7795
- let n = x.use().key || "0123456789abcdeffedcba9876543210", r = e.replaceAll(/-/g, "+").replaceAll(/_/g, "/");
7800
+ let n = z.use().key || "0123456789abcdeffedcba9876543210", r = e.replaceAll(/-/g, "+").replaceAll(/_/g, "/");
7796
7801
  for (; r.length % 4;) r += "=";
7797
- let i = bn.decrypt(r, n.toLowerCase(), {
7798
- mode: bn.constants.ECB,
7802
+ let i = nr.decrypt(r, n.toLowerCase(), {
7803
+ mode: nr.constants.ECB,
7799
7804
  inputEncoding: "base64",
7800
7805
  outputEncoding: "utf8"
7801
7806
  });
@@ -7806,26 +7811,336 @@ function Tn(e) {
7806
7811
  }
7807
7812
  });
7808
7813
  }
7809
- function En() {
7814
+ function cr() {
7810
7815
  return {
7811
7816
  name: "sm4-ecb",
7812
- encrypt: wn,
7813
- decrypt: Tn
7817
+ encrypt: or,
7818
+ decrypt: sr
7814
7819
  };
7815
7820
  }
7816
- n("crypto", h.pages), t("crypto", h.icons);
7817
- function Dn(e) {
7821
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7822
+ function lr(e = !1, t = {}) {
7823
+ let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = w(e), a = j(e);
7824
+ function o(e) {
7825
+ if (arguments.length) return a.value = e, a.value;
7826
+ {
7827
+ let e = ee(n);
7828
+ return a.value = a.value === e ? ee(r) : e, a.value;
7829
+ }
7830
+ }
7831
+ return i ? o : [a, o];
7832
+ }
7833
+ //#endregion
7834
+ //#region src/pages/components/drawerCryptoUrl.vue?vue&type=script&setup=true&lang.ts
7835
+ var ur = /* @__PURE__ */ C({
7836
+ name: "DrawerCryptoUrl",
7837
+ __name: "drawerCryptoUrl",
7838
+ emits: ["submit"],
7839
+ setup(e, { expose: t, emit: n }) {
7840
+ let r = n, i = { url: [{
7841
+ required: !0,
7842
+ validator: b,
7843
+ trigger: ["blur", "change"]
7844
+ }] }, [a, s] = lr(!1), p = k(), h = k({}), g = k(!1), v = k([]), y = k(0);
7845
+ function b(e, t, n) {
7846
+ t ? /^\/(?!.*\*{3})(?:[\w-]+|:\w+|\*{1,2})(?:\/(?:[\w-]+|:\w+|\*{1,2}))*$/.test(t) ? n() : n(/* @__PURE__ */ Error("url格式不正确")) : n(/* @__PURE__ */ Error("请输入url"));
7847
+ }
7848
+ async function C(e, t, n) {
7849
+ s(!0), v.value = t || [], y.value = n || 0, e ? (g.value = !0, h.value = { ...t?.[n || 0] }) : (g.value = !1, h.value = {});
7850
+ }
7851
+ let [T, E] = lr(!1);
7852
+ function O() {
7853
+ p.value?.validate().then(() => {
7854
+ E(!0);
7855
+ let e = { ...h.value };
7856
+ g.value ? v.value[y.value] = e : v.value.push(e), E(!1), A(), r("submit", v.value);
7857
+ });
7858
+ }
7859
+ function A() {
7860
+ s(!1);
7861
+ }
7862
+ return t({ open: C }), (e, t) => {
7863
+ let n = d, r = u, s = m, g = l, v = o, y = f, b = c;
7864
+ return D(), _(b, {
7865
+ open: N(a),
7866
+ "onUpdate:open": t[3] ||= (e) => w(a) ? a.value = e : null,
7867
+ title: "url信息",
7868
+ placement: "right",
7869
+ width: 600,
7870
+ "destroy-on-close": "",
7871
+ "footer-style": { textAlign: "right" },
7872
+ onClose: A
7873
+ }, {
7874
+ footer: P(() => [S(y, null, {
7875
+ default: P(() => [S(v, { onClick: A }, {
7876
+ default: P(() => [...t[4] ||= [x(" 取消 ", -1)]]),
7877
+ _: 1
7878
+ }), S(v, {
7879
+ type: "primary",
7880
+ loading: N(T),
7881
+ onClick: t[2] ||= (e) => O()
7882
+ }, {
7883
+ default: P(() => [...t[5] ||= [x(" 提交 ", -1)]]),
7884
+ _: 1
7885
+ }, 8, ["loading"])]),
7886
+ _: 1
7887
+ })]),
7888
+ default: P(() => [S(g, {
7889
+ ref_key: "formRef",
7890
+ ref: p,
7891
+ model: N(h),
7892
+ rules: i,
7893
+ "label-col": { style: { width: "90px" } }
7894
+ }, {
7895
+ default: P(() => [S(r, {
7896
+ label: "url地址",
7897
+ name: "url",
7898
+ tooltip: "支持url通配符,示例:/api/v1/user/*,/api/login/**"
7899
+ }, {
7900
+ default: P(() => [S(n, {
7901
+ value: N(h).url,
7902
+ "onUpdate:value": t[0] ||= (e) => N(h).url = e,
7903
+ maxlength: 200
7904
+ }, null, 8, ["value"])]),
7905
+ _: 1
7906
+ }), S(r, {
7907
+ label: "描述",
7908
+ name: "description"
7909
+ }, {
7910
+ default: P(() => [S(s, {
7911
+ value: N(h).description,
7912
+ "onUpdate:value": t[1] ||= (e) => N(h).description = e,
7913
+ rows: 3,
7914
+ "show-count": "",
7915
+ maxlength: 200
7916
+ }, null, 8, ["value"])]),
7917
+ _: 1
7918
+ })]),
7919
+ _: 1
7920
+ }, 8, ["model"])]),
7921
+ _: 1
7922
+ }, 8, ["open"]);
7923
+ };
7924
+ }
7925
+ }), dr = /* @__PURE__ */ ce({ default: () => fr }), fr = ur, pr = /* @__PURE__ */ function(e) {
7926
+ return e.ADD = "新增", e.EDIT = "编辑", e.REMOVE = "删除", e.ENABLE = "启用", e.DISABLE = "停用", e;
7927
+ }({}), mr = {
7928
+ "w-full": "",
7929
+ "h-full": "",
7930
+ "pt-10px": "",
7931
+ "px-10px": "",
7932
+ "overflow-auto": ""
7933
+ }, hr = {
7934
+ "h-full": "",
7935
+ "min-w-1130px": ""
7936
+ }, gr = { class: "pt-20px pl-20px h-161px flex flex-col bg-[#ffffff] box-border bg-[url('@/assets/images/crypto-setting-bg.png')] bg-cover text-[#4e5969] dark:text-[#C9CDD4]" }, _r = { class: "flex items-center" }, vr = { class: "p-5px bg-[#f2f3f5] rounded-5px flex items-center" }, yr = { class: "flex items-center ml-15px text-[#a3a4a8]" }, br = { class: "h-[calc(100%-165px)]" }, xr = ["onClick"], Sr = { class: "ml-4px" }, Cr = ["onClick"], wr = { class: "ml-4px" }, Tr = /* @__PURE__ */ C({
7937
+ __name: "setting",
7938
+ setup(t) {
7939
+ let n = k(), r = k(), a = k(), c = { style: { width: "auto" } }, d = { span: 24 }, { auth: m } = i(), C = O({
7940
+ isCrypto: !0,
7941
+ mode: !0,
7942
+ whiteListUrls: []
7943
+ }), [w, j] = lr(!1);
7944
+ E(ee);
7945
+ async function ee() {
7946
+ await ge().then((e) => {
7947
+ j(!1), e && e.data && e.success && (C.isCrypto = e.data.cryptoEnabled || !1, C.whiteListUrls = e.data.cryptoWhitePath, C.mode = e.data.cryptoMode === void 0 ? !0 : e.data.cryptoMode);
7948
+ });
7949
+ }
7950
+ function re(e, t) {
7951
+ t && (C.mode = e, ie());
7952
+ }
7953
+ async function ie() {
7954
+ if (!w.value) {
7955
+ j(!0);
7956
+ try {
7957
+ await r.value?.validate();
7958
+ let { isCrypto: e, mode: t, whiteListUrls: n } = C, i = {
7959
+ cryptoEnabled: e,
7960
+ cryptoMode: t,
7961
+ cryptoWhitePath: n
7962
+ }, { success: a } = await he({ json: JSON.stringify(i) });
7963
+ a && (ne.success("配置更改成功"), z.callAsync({
7964
+ ...z.use(),
7965
+ isCrypto: C.isCrypto,
7966
+ cryptoMode: C.mode,
7967
+ whiteListUrls: C.whiteListUrls
7968
+ }, () => {
7969
+ ee();
7970
+ }));
7971
+ } catch {
7972
+ j(!1);
7973
+ }
7974
+ }
7975
+ }
7976
+ let ae = [
7977
+ {
7978
+ minWidth: 60,
7979
+ hideInTable: !1,
7980
+ title: "url地址",
7981
+ dataIndex: "url"
7982
+ },
7983
+ {
7984
+ hideInSearch: !0,
7985
+ minWidth: 200,
7986
+ title: "描述",
7987
+ dataIndex: "description",
7988
+ ellipsis: !0
7989
+ },
7990
+ {
7991
+ hideInSearch: !0,
7992
+ title: "操作",
7993
+ dataIndex: "action",
7994
+ width: 200,
7995
+ fixed: "right",
7996
+ hideInTable() {
7997
+ return !m([
7998
+ "crypto_url_add",
7999
+ "crypto_url_edit",
8000
+ "crypto_url_delete"
8001
+ ]);
8002
+ }
8003
+ }
8004
+ ];
8005
+ function oe(e, t) {
8006
+ if (!w.value) switch (e) {
8007
+ case pr.ADD:
8008
+ a.value.open(!1, C.whiteListUrls);
8009
+ break;
8010
+ case pr.EDIT:
8011
+ a.value.open(!0, C.whiteListUrls, t);
8012
+ break;
8013
+ case pr.REMOVE:
8014
+ L(C.whiteListUrls || [], t || 0);
8015
+ break;
8016
+ }
8017
+ }
8018
+ function L(e, t) {
8019
+ I.confirm({
8020
+ title: "删除",
8021
+ content: "确定要删除该条数据吗?",
8022
+ async onOk() {
8023
+ e.splice(t, 1), se(e);
8024
+ }
8025
+ });
8026
+ }
8027
+ function se(e) {
8028
+ C.whiteListUrls = e, ie();
8029
+ }
8030
+ return (t, i) => {
8031
+ let m = p, E = u, O = s, k = l, j = h, ee = o, I = e, ne = f, L = A("auth");
8032
+ return D(), y("div", mr, [b("div", hr, [b("div", gr, [S(k, {
8033
+ ref_key: "formRef",
8034
+ ref: r,
8035
+ model: C,
8036
+ "label-col": c,
8037
+ "wrapper-col": d,
8038
+ class: "safe-rule-form"
8039
+ }, {
8040
+ default: P(() => [S(E, {
8041
+ label: "开启加密",
8042
+ name: "isCrypto"
8043
+ }, {
8044
+ default: P(() => [S(m, {
8045
+ checked: C.isCrypto,
8046
+ "onUpdate:checked": i[0] ||= (e) => C.isCrypto = e,
8047
+ disabled: N(w),
8048
+ onChange: ie
8049
+ }, null, 8, ["checked", "disabled"])]),
8050
+ _: 1
8051
+ }), S(E, {
8052
+ label: "模式",
8053
+ name: "isCrypto"
8054
+ }, {
8055
+ default: P(() => [b("div", _r, [b("div", vr, [S(O, {
8056
+ checked: C.mode,
8057
+ disabled: N(w),
8058
+ class: T(N(w) ? "cursor-not-allowed!" : ""),
8059
+ onChange: i[1] ||= (e) => !N(w) && re(!0, e)
8060
+ }, {
8061
+ default: P(() => [...i[4] ||= [x(" 白名单 ", -1)]]),
8062
+ _: 1
8063
+ }, 8, [
8064
+ "checked",
8065
+ "disabled",
8066
+ "class"
8067
+ ]), S(O, {
8068
+ checked: !C.mode,
8069
+ class: T(["mr-0px!", N(w) ? "cursor-not-allowed!" : ""]),
8070
+ onChange: i[2] ||= (e) => !N(w) && re(!1, e)
8071
+ }, {
8072
+ default: P(() => [...i[5] ||= [x(" 黑名单 ", -1)]]),
8073
+ _: 1
8074
+ }, 8, ["checked", "class"])]), b("div", yr, [S(N(g), { class: "mr-5px" }), i[6] ||= x("白名单模式下,仅不加密过滤列表中的接口;黑名单模式下,仅加密过滤列表中的接口。 ", -1)])])]),
8075
+ _: 1
8076
+ })]),
8077
+ _: 1
8078
+ }, 8, ["model"])]), b("div", br, [S(N(F), {
8079
+ ref_key: "tableRef",
8080
+ ref: n,
8081
+ "row-key": "id",
8082
+ "data-source": C.whiteListUrls,
8083
+ columns: ae,
8084
+ "auto-height": "",
8085
+ search: !1,
8086
+ pagination: !1,
8087
+ scroll: { x: 1e3 }
8088
+ }, {
8089
+ toolbar: P(() => [te((D(), _(ee, {
8090
+ type: "primary",
8091
+ disabled: N(w),
8092
+ onClick: i[3] ||= (e) => oe(N(pr).ADD)
8093
+ }, {
8094
+ default: P(() => [S(j), x(" " + M(N(pr).ADD), 1)]),
8095
+ _: 1
8096
+ }, 8, ["disabled"])), [[L, "crypto_url_add"]])]),
8097
+ bodyCell: P(({ column: e, index: t }) => [e.dataIndex === "action" ? (D(), _(ne, { key: 0 }, {
8098
+ default: P(() => [te((D(), y("a", {
8099
+ class: "flex items-center hover:opacity-80",
8100
+ onClick: (e) => oe(N(pr).EDIT, t)
8101
+ }, [S(I, {
8102
+ name: "edit",
8103
+ class: "text-base"
8104
+ }), b("span", Sr, M(N(pr).EDIT), 1)], 8, xr)), [[L, "crypto_url_edit"]]), te((D(), y("span", {
8105
+ flex: "",
8106
+ "items-center": "",
8107
+ "text-red-500": "",
8108
+ "hover:cursor-pointer": "",
8109
+ "hover:text-red-500": "",
8110
+ "hover:opacity-80": "",
8111
+ onClick: (e) => oe(N(pr).REMOVE, t)
8112
+ }, [S(I, {
8113
+ name: "remove",
8114
+ class: "text-base"
8115
+ }), b("span", wr, M(N(pr).REMOVE), 1)], 8, Cr)), [[L, "crypto_url_delete"]])]),
8116
+ _: 2
8117
+ }, 1024)) : v("", !0)]),
8118
+ _: 1
8119
+ }, 8, ["data-source"])])]), S(fr, {
8120
+ ref_key: "drawerRef",
8121
+ ref: a,
8122
+ onSubmit: se
8123
+ }, null, 512)]);
8124
+ };
8125
+ }
8126
+ }), Er = (e, t) => {
8127
+ let n = e.__vccOpts || e;
8128
+ for (let [e, r] of t) n[e] = r;
8129
+ return n;
8130
+ }, Dr = /* @__PURE__ */ ce({ default: () => Or }), Or = /* @__PURE__ */ Er(Tr, [["__scopeId", "data-v-89197708"]]);
8131
+ r("crypto", fe.pages), n("crypto", fe.icons);
8132
+ function kr(e) {
7818
8133
  let { request: t, cryptoSetting: n } = e;
7819
- return g.set({ request: t }), x.set({
8134
+ return pe.set({ request: t }), z.set({
7820
8135
  isCrypto: !1,
7821
8136
  cryptoMode: !1,
7822
- cryptoSetting: xe()
8137
+ cryptoSetting: tt()
7823
8138
  }), {
7824
8139
  name: "pubinfo-nightly:crypto",
7825
8140
  enforce: "pre",
7826
8141
  async setup() {
7827
- let { data: e } = await Yt(b()), t = Xt(32), r = Xt(32);
7828
- x.callAsync({
8142
+ let { data: e } = await An(_e()), t = jn(32), r = jn(32);
8143
+ z.callAsync({
7829
8144
  publicKey: e.publicKey,
7830
8145
  isCrypto: e.cryptoEnabled || !1,
7831
8146
  cryptoSetting: n,
@@ -7837,11 +8152,11 @@ function Dn(e) {
7837
8152
  },
7838
8153
  hooks: {
7839
8154
  "http:request": async (e) => {
7840
- !e.config?.headers?.["X-Crypyto-Key"] && Wt(e.url, x.use().isCrypto, x.use().cryptoMode, x.use().whiteListUrls) && await qt(e, x.use().cryptoSetting);
8155
+ !e.config?.headers?.["X-Crypyto-Key"] && Tn(e.url, z.use().isCrypto, z.use().cryptoMode, z.use().whiteListUrls) && await On(e, z.use().cryptoSetting);
7841
8156
  },
7842
- "http:response": { onSuccess: async (e) => (e.config?.responseType !== "blob" && Wt(e.config.url, x.use().isCrypto, x.use().cryptoMode, x.use().whiteListUrls) && await Jt(e, x.use().cryptoSetting), e) }
8157
+ "http:response": { onSuccess: async (e) => (e.config?.responseType !== "blob" && Tn(e.config.url, z.use().isCrypto, z.use().cryptoMode, z.use().whiteListUrls) && await kn(e, z.use().cryptoSetting), e) }
7843
8158
  }
7844
8159
  };
7845
8160
  }
7846
8161
  //#endregion
7847
- export { Dn as crypto, d as i, y as n, v as r, xe as setupAes, Cn as setupSm4Cbc, En as setupSm4Ecb, x as t };
8162
+ export { Or as CryptoSettingPage, kr as crypto, tt as setupAes, ar as setupSm4Cbc, cr as setupSm4Ecb };