zigap-utils 0.0.25 → 0.0.27

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.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- var ca = Object.defineProperty;
3
- var da = (f, e, t) => e in f ? ca(f, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[e] = t;
4
- var wt = (f, e, t) => (da(f, typeof e != "symbol" ? e + "" : e, t), t);
5
- import * as ha from "react";
2
+ var da = Object.defineProperty;
3
+ var ha = (f, e, t) => e in f ? da(f, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[e] = t;
4
+ var wt = (f, e, t) => (ha(f, typeof e != "symbol" ? e + "" : e, t), t);
5
+ import * as ua from "react";
6
6
  import nr, { useRef as ei, useState as qf, useEffect as zt } from "react";
7
7
  var Pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8
8
  function sn(f) {
@@ -30,7 +30,7 @@ function on(f) {
30
30
  }), t;
31
31
  }
32
32
  var Cf = { exports: {} }, Xt = {};
33
- const cn = /* @__PURE__ */ on(ha);
33
+ const cn = /* @__PURE__ */ on(ua);
34
34
  /**
35
35
  * @license React
36
36
  * react-jsx-runtime.production.min.js
@@ -41,7 +41,7 @@ const cn = /* @__PURE__ */ on(ha);
41
41
  * LICENSE file in the root directory of this source tree.
42
42
  */
43
43
  var ti;
44
- function ua() {
44
+ function la() {
45
45
  if (ti)
46
46
  return Xt;
47
47
  ti = 1;
@@ -69,7 +69,7 @@ var Zt = {};
69
69
  * LICENSE file in the root directory of this source tree.
70
70
  */
71
71
  var ri;
72
- function la() {
72
+ function xa() {
73
73
  return ri || (ri = 1, process.env.NODE_ENV !== "production" && function() {
74
74
  var f = cn, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), x = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), w = Symbol.iterator, R = "@@iterator";
75
75
  function k(p) {
@@ -662,15 +662,15 @@ React keys must be passed directly to JSX without using spread:
662
662
  Zt.Fragment = r, Zt.jsx = s, Zt.jsxs = M;
663
663
  }()), Zt;
664
664
  }
665
- process.env.NODE_ENV === "production" ? Cf.exports = ua() : Cf.exports = la();
666
- var vr = Cf.exports, xa = Object.defineProperty, br = Object.getOwnPropertySymbols, dn = Object.prototype.hasOwnProperty, hn = Object.prototype.propertyIsEnumerable, fi = (f, e, t) => e in f ? xa(f, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[e] = t, ii = (f, e) => {
665
+ process.env.NODE_ENV === "production" ? Cf.exports = la() : Cf.exports = xa();
666
+ var vr = Cf.exports, va = Object.defineProperty, br = Object.getOwnPropertySymbols, dn = Object.prototype.hasOwnProperty, hn = Object.prototype.propertyIsEnumerable, fi = (f, e, t) => e in f ? va(f, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[e] = t, ii = (f, e) => {
667
667
  for (var t in e || (e = {}))
668
668
  dn.call(e, t) && fi(f, t, e[t]);
669
669
  if (br)
670
670
  for (var t of br(e))
671
671
  hn.call(e, t) && fi(f, t, e[t]);
672
672
  return f;
673
- }, va = (f, e) => {
673
+ }, ba = (f, e) => {
674
674
  var t = {};
675
675
  for (var r in f)
676
676
  dn.call(f, r) && e.indexOf(r) < 0 && (t[r] = f[r]);
@@ -1110,13 +1110,13 @@ var tr = St;
1110
1110
  * Copyright (c) Paul O'Shannessy
1111
1111
  * SPDX-License-Identifier: ISC
1112
1112
  */
1113
- var ba = {
1113
+ var pa = {
1114
1114
  L: tr.QrCode.Ecc.LOW,
1115
1115
  M: tr.QrCode.Ecc.MEDIUM,
1116
1116
  Q: tr.QrCode.Ecc.QUARTILE,
1117
1117
  H: tr.QrCode.Ecc.HIGH
1118
- }, pa = 128, ya = "L", ga = "#FFFFFF", ma = "#000000", _a = !1, un = 4, Aa = 0.1;
1119
- function Ea(f, e = 0) {
1118
+ }, ya = 128, ga = "L", ma = "#FFFFFF", _a = "#000000", Aa = !1, un = 4, Ea = 0.1;
1119
+ function wa(f, e = 0) {
1120
1120
  const t = [];
1121
1121
  return f.forEach(function(r, a) {
1122
1122
  let i = null;
@@ -1135,13 +1135,13 @@ function Ea(f, e = 0) {
1135
1135
  });
1136
1136
  }), t.join("");
1137
1137
  }
1138
- function wa(f, e) {
1138
+ function Ba(f, e) {
1139
1139
  return f.slice().map((t, r) => r < e.y || r >= e.y + e.h ? t : t.map((a, i) => i < e.x || i >= e.x + e.w ? a : !1));
1140
1140
  }
1141
- function Ba(f, e, t, r) {
1141
+ function Ca(f, e, t, r) {
1142
1142
  if (r == null)
1143
1143
  return null;
1144
- const a = t ? un : 0, i = f.length + a * 2, y = Math.floor(e * Aa), x = i / e, u = (r.width || y) * x, o = (r.height || y) * x, c = r.x == null ? f.length / 2 - u / 2 : r.x * x, b = r.y == null ? f.length / 2 - o / 2 : r.y * x;
1144
+ const a = t ? un : 0, i = f.length + a * 2, y = Math.floor(e * Ea), x = i / e, u = (r.width || y) * x, o = (r.height || y) * x, c = r.x == null ? f.length / 2 - u / 2 : r.x * x, b = r.y == null ? f.length / 2 - o / 2 : r.y * x;
1145
1145
  let v = null;
1146
1146
  if (r.excavate) {
1147
1147
  let C = Math.floor(c), w = Math.floor(b), R = Math.ceil(u + c - C), k = Math.ceil(o + b - w);
@@ -1149,7 +1149,7 @@ function Ba(f, e, t, r) {
1149
1149
  }
1150
1150
  return { x: c, y: b, h: o, w: u, excavation: v };
1151
1151
  }
1152
- var Ca = function() {
1152
+ var Ma = function() {
1153
1153
  try {
1154
1154
  new Path2D().addPath(new Path2D());
1155
1155
  } catch {
@@ -1160,14 +1160,14 @@ var Ca = function() {
1160
1160
  function ln(f) {
1161
1161
  const e = f, {
1162
1162
  value: t,
1163
- size: r = pa,
1164
- level: a = ya,
1165
- bgColor: i = ga,
1166
- fgColor: y = ma,
1167
- includeMargin: x = _a,
1163
+ size: r = ya,
1164
+ level: a = ga,
1165
+ bgColor: i = ma,
1166
+ fgColor: y = _a,
1167
+ includeMargin: x = Aa,
1168
1168
  style: u,
1169
1169
  imageSettings: o
1170
- } = e, c = va(e, [
1170
+ } = e, c = ba(e, [
1171
1171
  "value",
1172
1172
  "size",
1173
1173
  "level",
@@ -1182,13 +1182,13 @@ function ln(f) {
1182
1182
  const S = v.current, P = S.getContext("2d");
1183
1183
  if (!P)
1184
1184
  return;
1185
- let T = tr.QrCode.encodeText(t, ba[a]).getModules();
1186
- const H = x ? un : 0, $ = T.length + H * 2, K = Ba(T, r, x, o), X = C.current, Q = K != null && X !== null && X.complete && X.naturalHeight !== 0 && X.naturalWidth !== 0;
1187
- Q && K.excavation != null && (T = wa(T, K.excavation));
1185
+ let T = tr.QrCode.encodeText(t, pa[a]).getModules();
1186
+ const H = x ? un : 0, $ = T.length + H * 2, K = Ca(T, r, x, o), X = C.current, Q = K != null && X !== null && X.complete && X.naturalHeight !== 0 && X.naturalWidth !== 0;
1187
+ Q && K.excavation != null && (T = Ba(T, K.excavation));
1188
1188
  const U = window.devicePixelRatio || 1;
1189
1189
  S.height = S.width = r * U;
1190
1190
  const A = r / $ * U;
1191
- P.scale(A, A), P.fillStyle = i, P.fillRect(0, 0, $, $), P.fillStyle = y, Ca ? P.fill(new Path2D(Ea(T, H))) : T.forEach(function(n, d) {
1191
+ P.scale(A, A), P.fillStyle = i, P.fillRect(0, 0, $, $), P.fillStyle = y, Ma ? P.fill(new Path2D(wa(T, H))) : T.forEach(function(n, d) {
1192
1192
  n.forEach(function(g, B) {
1193
1193
  g && P.fillRect(B + H, d + H, 1, 1);
1194
1194
  });
@@ -1219,10 +1219,10 @@ function vn(f) {
1219
1219
  throw new Error('Could not dynamically require "' + f + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
1220
1220
  }
1221
1221
  var Ir = { exports: {} };
1222
- const Ma = {}, Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1222
+ const Fa = {}, Sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1223
1223
  __proto__: null,
1224
- default: Ma
1225
- }, Symbol.toStringTag, { value: "Module" })), mr = /* @__PURE__ */ on(Fa);
1224
+ default: Fa
1225
+ }, Symbol.toStringTag, { value: "Module" })), mr = /* @__PURE__ */ on(Sa);
1226
1226
  var ni;
1227
1227
  function $e() {
1228
1228
  return ni || (ni = 1, function(f, e) {
@@ -1955,7 +1955,7 @@ function _r() {
1955
1955
  }(Tr)), Tr.exports;
1956
1956
  }
1957
1957
  var Or = { exports: {} }, si;
1958
- function Sa() {
1958
+ function Da() {
1959
1959
  return si || (si = 1, function(f, e) {
1960
1960
  (function(t, r) {
1961
1961
  f.exports = r($e());
@@ -1977,7 +1977,7 @@ function Sa() {
1977
1977
  }(Or)), Or.exports;
1978
1978
  }
1979
1979
  var zr = { exports: {} }, oi;
1980
- function Da() {
1980
+ function Ra() {
1981
1981
  return oi || (oi = 1, function(f, e) {
1982
1982
  (function(t, r) {
1983
1983
  f.exports = r($e());
@@ -2146,7 +2146,7 @@ function Rt() {
2146
2146
  }(qr)), qr.exports;
2147
2147
  }
2148
2148
  var Nr = { exports: {} }, di;
2149
- function Ra() {
2149
+ function ka() {
2150
2150
  return di || (di = 1, function(f, e) {
2151
2151
  (function(t, r) {
2152
2152
  f.exports = r($e());
@@ -2390,7 +2390,7 @@ function Nf() {
2390
2390
  }(Ur)), Ur.exports;
2391
2391
  }
2392
2392
  var $r = { exports: {} }, xi;
2393
- function ka() {
2393
+ function Pa() {
2394
2394
  return xi || (xi = 1, function(f, e) {
2395
2395
  (function(t, r, a) {
2396
2396
  f.exports = r($e(), Nf());
@@ -2561,7 +2561,7 @@ function pn() {
2561
2561
  }(Wr)), Wr.exports;
2562
2562
  }
2563
2563
  var Yr = { exports: {} }, bi;
2564
- function Pa() {
2564
+ function Ia() {
2565
2565
  return bi || (bi = 1, function(f, e) {
2566
2566
  (function(t, r, a) {
2567
2567
  f.exports = r($e(), _r(), pn());
@@ -2591,7 +2591,7 @@ function Pa() {
2591
2591
  }(Yr)), Yr.exports;
2592
2592
  }
2593
2593
  var Kr = { exports: {} }, pi;
2594
- function Ia() {
2594
+ function Ta() {
2595
2595
  return pi || (pi = 1, function(f, e) {
2596
2596
  (function(t, r, a) {
2597
2597
  f.exports = r($e(), _r());
@@ -2701,7 +2701,7 @@ function Ia() {
2701
2701
  }(Kr)), Kr.exports;
2702
2702
  }
2703
2703
  var jr = { exports: {} }, yi;
2704
- function Ta() {
2704
+ function Oa() {
2705
2705
  return yi || (yi = 1, function(f, e) {
2706
2706
  (function(t, r) {
2707
2707
  f.exports = r($e());
@@ -3172,7 +3172,7 @@ function Lf() {
3172
3172
  }(Vr)), Vr.exports;
3173
3173
  }
3174
3174
  var Xr = { exports: {} }, mi;
3175
- function Oa() {
3175
+ function za() {
3176
3176
  return mi || (mi = 1, function(f, e) {
3177
3177
  (function(t, r, a) {
3178
3178
  f.exports = r($e(), Nf(), Lf());
@@ -3840,7 +3840,7 @@ function C0() {
3840
3840
  }(Gr)), Gr.exports;
3841
3841
  }
3842
3842
  var Qr = { exports: {} }, Ei;
3843
- function za() {
3843
+ function qa() {
3844
3844
  return Ei || (Ei = 1, function(f, e) {
3845
3845
  (function(t, r, a) {
3846
3846
  f.exports = r($e(), C0());
@@ -3870,7 +3870,7 @@ function za() {
3870
3870
  }(Qr)), Qr.exports;
3871
3871
  }
3872
3872
  var Jr = { exports: {} }, wi;
3873
- function qa() {
3873
+ function Na() {
3874
3874
  return wi || (wi = 1, function(f, e) {
3875
3875
  (function(t, r, a) {
3876
3876
  f.exports = r($e(), C0());
@@ -3892,7 +3892,7 @@ function qa() {
3892
3892
  }(Jr)), Jr.exports;
3893
3893
  }
3894
3894
  var ef = { exports: {} }, Bi;
3895
- function Na() {
3895
+ function La() {
3896
3896
  return Bi || (Bi = 1, function(f, e) {
3897
3897
  (function(t, r, a) {
3898
3898
  f.exports = r($e(), C0());
@@ -3931,7 +3931,7 @@ function Na() {
3931
3931
  }(ef)), ef.exports;
3932
3932
  }
3933
3933
  var tf = { exports: {} }, Ci;
3934
- function La() {
3934
+ function Ha() {
3935
3935
  return Ci || (Ci = 1, function(f, e) {
3936
3936
  (function(t, r, a) {
3937
3937
  f.exports = r($e(), C0());
@@ -3951,7 +3951,7 @@ function La() {
3951
3951
  }(tf)), tf.exports;
3952
3952
  }
3953
3953
  var rf = { exports: {} }, Mi;
3954
- function Ha() {
3954
+ function Ua() {
3955
3955
  return Mi || (Mi = 1, function(f, e) {
3956
3956
  (function(t, r, a) {
3957
3957
  f.exports = r($e(), C0());
@@ -3972,7 +3972,7 @@ function Ha() {
3972
3972
  }(rf)), rf.exports;
3973
3973
  }
3974
3974
  var ff = { exports: {} }, Fi;
3975
- function Ua() {
3975
+ function $a() {
3976
3976
  return Fi || (Fi = 1, function(f, e) {
3977
3977
  (function(t, r, a) {
3978
3978
  f.exports = r($e(), C0());
@@ -3991,7 +3991,7 @@ function Ua() {
3991
3991
  }(ff)), ff.exports;
3992
3992
  }
3993
3993
  var nf = { exports: {} }, Si;
3994
- function $a() {
3994
+ function Wa() {
3995
3995
  return Si || (Si = 1, function(f, e) {
3996
3996
  (function(t, r, a) {
3997
3997
  f.exports = r($e(), C0());
@@ -4010,7 +4010,7 @@ function $a() {
4010
4010
  }(nf)), nf.exports;
4011
4011
  }
4012
4012
  var af = { exports: {} }, Di;
4013
- function Wa() {
4013
+ function Ya() {
4014
4014
  return Di || (Di = 1, function(f, e) {
4015
4015
  (function(t, r, a) {
4016
4016
  f.exports = r($e(), C0());
@@ -4027,7 +4027,7 @@ function Wa() {
4027
4027
  }(af)), af.exports;
4028
4028
  }
4029
4029
  var sf = { exports: {} }, Ri;
4030
- function Ya() {
4030
+ function Ka() {
4031
4031
  return Ri || (Ri = 1, function(f, e) {
4032
4032
  (function(t, r, a) {
4033
4033
  f.exports = r($e(), C0());
@@ -4049,7 +4049,7 @@ function Ya() {
4049
4049
  }(sf)), sf.exports;
4050
4050
  }
4051
4051
  var of = { exports: {} }, ki;
4052
- function Ka() {
4052
+ function ja() {
4053
4053
  return ki || (ki = 1, function(f, e) {
4054
4054
  (function(t, r, a) {
4055
4055
  f.exports = r($e(), C0());
@@ -4064,7 +4064,7 @@ function Ka() {
4064
4064
  }(of)), of.exports;
4065
4065
  }
4066
4066
  var cf = { exports: {} }, Pi;
4067
- function ja() {
4067
+ function Va() {
4068
4068
  return Pi || (Pi = 1, function(f, e) {
4069
4069
  (function(t, r, a) {
4070
4070
  f.exports = r($e(), C0());
@@ -4111,7 +4111,7 @@ function ja() {
4111
4111
  }(cf)), cf.exports;
4112
4112
  }
4113
4113
  var df = { exports: {} }, Ii;
4114
- function Va() {
4114
+ function Xa() {
4115
4115
  return Ii || (Ii = 1, function(f, e) {
4116
4116
  (function(t, r, a) {
4117
4117
  f.exports = r($e(), Rt(), kt(), At(), C0());
@@ -4171,7 +4171,7 @@ function Va() {
4171
4171
  }(df)), df.exports;
4172
4172
  }
4173
4173
  var hf = { exports: {} }, Ti;
4174
- function Xa() {
4174
+ function Za() {
4175
4175
  return Ti || (Ti = 1, function(f, e) {
4176
4176
  (function(t, r, a) {
4177
4177
  f.exports = r($e(), Rt(), kt(), At(), C0());
@@ -4891,7 +4891,7 @@ function Xa() {
4891
4891
  }(hf)), hf.exports;
4892
4892
  }
4893
4893
  var uf = { exports: {} }, Oi;
4894
- function Za() {
4894
+ function Ga() {
4895
4895
  return Oi || (Oi = 1, function(f, e) {
4896
4896
  (function(t, r, a) {
4897
4897
  f.exports = r($e(), Rt(), kt(), At(), C0());
@@ -4945,7 +4945,7 @@ function Za() {
4945
4945
  }(uf)), uf.exports;
4946
4946
  }
4947
4947
  var lf = { exports: {} }, zi;
4948
- function Ga() {
4948
+ function Qa() {
4949
4949
  return zi || (zi = 1, function(f, e) {
4950
4950
  (function(t, r, a) {
4951
4951
  f.exports = r($e(), Rt(), kt(), At(), C0());
@@ -5011,7 +5011,7 @@ function Ga() {
5011
5011
  }(lf)), lf.exports;
5012
5012
  }
5013
5013
  var xf = { exports: {} }, qi;
5014
- function Qa() {
5014
+ function Ja() {
5015
5015
  return qi || (qi = 1, function(f, e) {
5016
5016
  (function(t, r, a) {
5017
5017
  f.exports = r($e(), Rt(), kt(), At(), C0());
@@ -5075,7 +5075,7 @@ function Qa() {
5075
5075
  }(xf)), xf.exports;
5076
5076
  }
5077
5077
  var vf = { exports: {} }, Ni;
5078
- function Ja() {
5078
+ function es() {
5079
5079
  return Ni || (Ni = 1, function(f, e) {
5080
5080
  (function(t, r, a) {
5081
5081
  f.exports = r($e(), Rt(), kt(), At(), C0());
@@ -6198,33 +6198,33 @@ function Ja() {
6198
6198
  }
6199
6199
  (function(f, e) {
6200
6200
  (function(t, r, a) {
6201
- f.exports = r($e(), _r(), Sa(), Da(), Rt(), Ra(), kt(), bn(), Nf(), ka(), pn(), Pa(), Ia(), Ta(), Lf(), Oa(), At(), C0(), za(), qa(), Na(), La(), Ha(), Ua(), $a(), Wa(), Ya(), Ka(), ja(), Va(), Xa(), Za(), Ga(), Qa(), Ja());
6201
+ f.exports = r($e(), _r(), Da(), Ra(), Rt(), ka(), kt(), bn(), Nf(), Pa(), pn(), Ia(), Ta(), Oa(), Lf(), za(), At(), C0(), qa(), Na(), La(), Ha(), Ua(), $a(), Wa(), Ya(), Ka(), ja(), Va(), Xa(), Za(), Ga(), Qa(), Ja(), es());
6202
6202
  })(Pe, function(t) {
6203
6203
  return t;
6204
6204
  });
6205
6205
  })(xn);
6206
- var es = xn.exports;
6207
- const ut = /* @__PURE__ */ sn(es);
6206
+ var ts = xn.exports;
6207
+ const ut = /* @__PURE__ */ sn(ts);
6208
6208
  var yn = {};
6209
- const ts = "elliptic", rs = "6.5.5", fs = "EC cryptography", is = "lib/elliptic.js", ns = [
6209
+ const rs = "elliptic", fs = "6.5.5", is = "EC cryptography", ns = "lib/elliptic.js", as = [
6210
6210
  "lib"
6211
- ], as = {
6211
+ ], ss = {
6212
6212
  lint: "eslint lib test",
6213
6213
  "lint:fix": "npm run lint -- --fix",
6214
6214
  unit: "istanbul test _mocha --reporter=spec test/index.js",
6215
6215
  test: "npm run lint && npm run unit",
6216
6216
  version: "grunt dist && git add dist/"
6217
- }, ss = {
6217
+ }, os = {
6218
6218
  type: "git",
6219
6219
  url: "git@github.com:indutny/elliptic"
6220
- }, os = [
6220
+ }, cs = [
6221
6221
  "EC",
6222
6222
  "Elliptic",
6223
6223
  "curve",
6224
6224
  "Cryptography"
6225
- ], cs = "Fedor Indutny <fedor@indutny.com>", ds = "MIT", hs = {
6225
+ ], ds = "Fedor Indutny <fedor@indutny.com>", hs = "MIT", us = {
6226
6226
  url: "https://github.com/indutny/elliptic/issues"
6227
- }, us = "https://github.com/indutny/elliptic", ls = {
6227
+ }, ls = "https://github.com/indutny/elliptic", xs = {
6228
6228
  brfs: "^2.0.2",
6229
6229
  coveralls: "^3.1.0",
6230
6230
  eslint: "^7.6.0",
@@ -6238,7 +6238,7 @@ const ts = "elliptic", rs = "6.5.5", fs = "EC cryptography", is = "lib/elliptic.
6238
6238
  "grunt-saucelabs": "^9.0.1",
6239
6239
  istanbul: "^0.4.5",
6240
6240
  mocha: "^8.0.1"
6241
- }, xs = {
6241
+ }, vs = {
6242
6242
  "bn.js": "^4.11.9",
6243
6243
  brorand: "^1.1.0",
6244
6244
  "hash.js": "^1.0.0",
@@ -6246,21 +6246,21 @@ const ts = "elliptic", rs = "6.5.5", fs = "EC cryptography", is = "lib/elliptic.
6246
6246
  inherits: "^2.0.4",
6247
6247
  "minimalistic-assert": "^1.0.1",
6248
6248
  "minimalistic-crypto-utils": "^1.0.1"
6249
- }, vs = {
6250
- name: ts,
6251
- version: rs,
6252
- description: fs,
6253
- main: is,
6254
- files: ns,
6255
- scripts: as,
6256
- repository: ss,
6257
- keywords: os,
6258
- author: cs,
6259
- license: ds,
6260
- bugs: hs,
6261
- homepage: us,
6262
- devDependencies: ls,
6263
- dependencies: xs
6249
+ }, bs = {
6250
+ name: rs,
6251
+ version: fs,
6252
+ description: is,
6253
+ main: ns,
6254
+ files: as,
6255
+ scripts: ss,
6256
+ repository: os,
6257
+ keywords: cs,
6258
+ author: ds,
6259
+ license: hs,
6260
+ bugs: us,
6261
+ homepage: ls,
6262
+ devDependencies: xs,
6263
+ dependencies: vs
6264
6264
  };
6265
6265
  var Y0 = {}, Hf = { exports: {} };
6266
6266
  Hf.exports;
@@ -7576,7 +7576,7 @@ else
7576
7576
  };
7577
7577
  } catch {
7578
7578
  }
7579
- var mn = $f.exports, Wf = {}, Bt = pt, fr = Y0, pr = fr.getNAF, bs = fr.getJSF, yr = fr.assert;
7579
+ var mn = $f.exports, Wf = {}, Bt = pt, fr = Y0, pr = fr.getNAF, ps = fr.getJSF, yr = fr.assert;
7580
7580
  function Et(f, e) {
7581
7581
  this.type = f, this.p = new Bt(e.p, 16), this.red = e.prime ? Bt.red(e.prime) : Bt.mont(this.p), this.zero = new Bt(0).toRed(this.red), this.one = new Bt(1).toRed(this.red), this.two = new Bt(2).toRed(this.red), this.n = e.n && new Bt(e.n, 16), this.g = e.g && this.pointFromJSON(e.g, e.gRed), this._wnafT1 = new Array(4), this._wnafT2 = new Array(4), this._wnafT3 = new Array(4), this._wnafT4 = new Array(4), this._bitLength = this.n ? this.n.bitLength() : 0;
7582
7582
  var t = this.n && this.p.div(this.n);
@@ -7663,7 +7663,7 @@ Et.prototype._wnafMulAdd = function(e, t, r, a, i) {
7663
7663
  /* 1 0 */
7664
7664
  3
7665
7665
  /* 1 1 */
7666
- ], S = bs(r[w], r[R]);
7666
+ ], S = ps(r[w], r[R]);
7667
7667
  for (o = Math.max(S[0].length, o), u[w] = new Array(o), u[R] = new Array(o), b = 0; b < o; b++) {
7668
7668
  var P = S[0][b] | 0, T = S[1][b] | 0;
7669
7669
  u[w][b] = q[(P + 1) * 3 + (T + 1)], u[R][b] = 0, x[w] = k;
@@ -7789,12 +7789,12 @@ typeof Object.create == "function" ? Mf.exports = function(e, t) {
7789
7789
  r.prototype = t.prototype, e.prototype = new r(), e.prototype.constructor = e;
7790
7790
  }
7791
7791
  };
7792
- var Er = Mf.exports, ps = Y0, g0 = pt, Yf = Er, Ut = Ar, ys = ps.assert;
7792
+ var Er = Mf.exports, ys = Y0, g0 = pt, Yf = Er, Ut = Ar, gs = ys.assert;
7793
7793
  function X0(f) {
7794
7794
  Ut.call(this, "short", f), this.a = new g0(f.a, 16).toRed(this.red), this.b = new g0(f.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = this.a.fromRed().cmpn(0) === 0, this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0, this.endo = this._getEndomorphism(f), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4);
7795
7795
  }
7796
7796
  Yf(X0, Ut);
7797
- var gs = X0;
7797
+ var ms = X0;
7798
7798
  X0.prototype._getEndomorphism = function(e) {
7799
7799
  if (!(!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)) {
7800
7800
  var t, r;
@@ -7808,7 +7808,7 @@ X0.prototype._getEndomorphism = function(e) {
7808
7808
  r = new g0(e.lambda, 16);
7809
7809
  else {
7810
7810
  var i = this._getEndoRoots(this.n);
7811
- this.g.mul(i[0]).x.cmp(this.g.x.redMul(t)) === 0 ? r = i[0] : (r = i[1], ys(this.g.mul(r).x.cmp(this.g.x.redMul(t)) === 0));
7811
+ this.g.mul(i[0]).x.cmp(this.g.x.redMul(t)) === 0 ? r = i[0] : (r = i[1], gs(this.g.mul(r).x.cmp(this.g.x.redMul(t)) === 0));
7812
7812
  }
7813
7813
  var y;
7814
7814
  return e.basis ? y = e.basis.map(function(x) {
@@ -8173,12 +8173,12 @@ R0.prototype.inspect = function() {
8173
8173
  R0.prototype.isInfinity = function() {
8174
8174
  return this.z.cmpn(0) === 0;
8175
8175
  };
8176
- var Ot = pt, _n = Er, wr = Ar, ms = Y0;
8176
+ var Ot = pt, _n = Er, wr = Ar, _s = Y0;
8177
8177
  function $t(f) {
8178
8178
  wr.call(this, "mont", f), this.a = new Ot(f.a, 16).toRed(this.red), this.b = new Ot(f.b, 16).toRed(this.red), this.i4 = new Ot(4).toRed(this.red).redInvm(), this.two = new Ot(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two));
8179
8179
  }
8180
8180
  _n($t, wr);
8181
- var _s = $t;
8181
+ var As = $t;
8182
8182
  $t.prototype.validate = function(e) {
8183
8183
  var t = e.normalize().x, r = t.redSqr(), a = r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t), i = a.redSqrt();
8184
8184
  return i.redSqr().cmp(a) === 0;
@@ -8188,7 +8188,7 @@ function B0(f, e, t) {
8188
8188
  }
8189
8189
  _n(B0, wr.BasePoint);
8190
8190
  $t.prototype.decodePoint = function(e, t) {
8191
- return this.point(ms.toArray(e, t), 1);
8191
+ return this.point(_s.toArray(e, t), 1);
8192
8192
  };
8193
8193
  $t.prototype.point = function(e, t) {
8194
8194
  return new B0(this, e, t);
@@ -8243,12 +8243,12 @@ B0.prototype.normalize = function() {
8243
8243
  B0.prototype.getX = function() {
8244
8244
  return this.normalize(), this.x.fromRed();
8245
8245
  };
8246
- var As = Y0, lt = pt, An = Er, Br = Ar, Es = As.assert;
8246
+ var Es = Y0, lt = pt, An = Er, Br = Ar, ws = Es.assert;
8247
8247
  function dt(f) {
8248
- this.twisted = (f.a | 0) !== 1, this.mOneA = this.twisted && (f.a | 0) === -1, this.extended = this.mOneA, Br.call(this, "edwards", f), this.a = new lt(f.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new lt(f.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new lt(f.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), Es(!this.twisted || this.c.fromRed().cmpn(1) === 0), this.oneC = (f.c | 0) === 1;
8248
+ this.twisted = (f.a | 0) !== 1, this.mOneA = this.twisted && (f.a | 0) === -1, this.extended = this.mOneA, Br.call(this, "edwards", f), this.a = new lt(f.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new lt(f.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new lt(f.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), ws(!this.twisted || this.c.fromRed().cmpn(1) === 0), this.oneC = (f.c | 0) === 1;
8249
8249
  }
8250
8250
  An(dt, Br);
8251
- var ws = dt;
8251
+ var Bs = dt;
8252
8252
  dt.prototype._mulA = function(e) {
8253
8253
  return this.mOneA ? e.redNeg() : this.a.redMul(e);
8254
8254
  };
@@ -8382,14 +8382,14 @@ v0.prototype.toP = v0.prototype.normalize;
8382
8382
  v0.prototype.mixedAdd = v0.prototype.add;
8383
8383
  (function(f) {
8384
8384
  var e = f;
8385
- e.base = Ar, e.short = gs, e.mont = _s, e.edwards = ws;
8385
+ e.base = Ar, e.short = ms, e.mont = As, e.edwards = Bs;
8386
8386
  })(Wf);
8387
- var Cr = {}, Mr = {}, Le = {}, Bs = Pt, Cs = Er;
8388
- Le.inherits = Cs;
8389
- function Ms(f, e) {
8387
+ var Cr = {}, Mr = {}, Le = {}, Cs = Pt, Ms = Er;
8388
+ Le.inherits = Ms;
8389
+ function Fs(f, e) {
8390
8390
  return (f.charCodeAt(e) & 64512) !== 55296 || e < 0 || e + 1 >= f.length ? !1 : (f.charCodeAt(e + 1) & 64512) === 56320;
8391
8391
  }
8392
- function Fs(f, e) {
8392
+ function Ss(f, e) {
8393
8393
  if (Array.isArray(f))
8394
8394
  return f.slice();
8395
8395
  if (!f)
@@ -8403,33 +8403,33 @@ function Fs(f, e) {
8403
8403
  } else
8404
8404
  for (var r = 0, a = 0; a < f.length; a++) {
8405
8405
  var i = f.charCodeAt(a);
8406
- i < 128 ? t[r++] = i : i < 2048 ? (t[r++] = i >> 6 | 192, t[r++] = i & 63 | 128) : Ms(f, a) ? (i = 65536 + ((i & 1023) << 10) + (f.charCodeAt(++a) & 1023), t[r++] = i >> 18 | 240, t[r++] = i >> 12 & 63 | 128, t[r++] = i >> 6 & 63 | 128, t[r++] = i & 63 | 128) : (t[r++] = i >> 12 | 224, t[r++] = i >> 6 & 63 | 128, t[r++] = i & 63 | 128);
8406
+ i < 128 ? t[r++] = i : i < 2048 ? (t[r++] = i >> 6 | 192, t[r++] = i & 63 | 128) : Fs(f, a) ? (i = 65536 + ((i & 1023) << 10) + (f.charCodeAt(++a) & 1023), t[r++] = i >> 18 | 240, t[r++] = i >> 12 & 63 | 128, t[r++] = i >> 6 & 63 | 128, t[r++] = i & 63 | 128) : (t[r++] = i >> 12 | 224, t[r++] = i >> 6 & 63 | 128, t[r++] = i & 63 | 128);
8407
8407
  }
8408
8408
  else
8409
8409
  for (a = 0; a < f.length; a++)
8410
8410
  t[a] = f[a] | 0;
8411
8411
  return t;
8412
8412
  }
8413
- Le.toArray = Fs;
8414
- function Ss(f) {
8413
+ Le.toArray = Ss;
8414
+ function Ds(f) {
8415
8415
  for (var e = "", t = 0; t < f.length; t++)
8416
8416
  e += wn(f[t].toString(16));
8417
8417
  return e;
8418
8418
  }
8419
- Le.toHex = Ss;
8419
+ Le.toHex = Ds;
8420
8420
  function En(f) {
8421
8421
  var e = f >>> 24 | f >>> 8 & 65280 | f << 8 & 16711680 | (f & 255) << 24;
8422
8422
  return e >>> 0;
8423
8423
  }
8424
8424
  Le.htonl = En;
8425
- function Ds(f, e) {
8425
+ function Rs(f, e) {
8426
8426
  for (var t = "", r = 0; r < f.length; r++) {
8427
8427
  var a = f[r];
8428
8428
  e === "little" && (a = En(a)), t += Bn(a.toString(16));
8429
8429
  }
8430
8430
  return t;
8431
8431
  }
8432
- Le.toHex32 = Ds;
8432
+ Le.toHex32 = Rs;
8433
8433
  function wn(f) {
8434
8434
  return f.length === 1 ? "0" + f : f;
8435
8435
  }
@@ -8438,107 +8438,107 @@ function Bn(f) {
8438
8438
  return f.length === 7 ? "0" + f : f.length === 6 ? "00" + f : f.length === 5 ? "000" + f : f.length === 4 ? "0000" + f : f.length === 3 ? "00000" + f : f.length === 2 ? "000000" + f : f.length === 1 ? "0000000" + f : f;
8439
8439
  }
8440
8440
  Le.zero8 = Bn;
8441
- function Rs(f, e, t, r) {
8441
+ function ks(f, e, t, r) {
8442
8442
  var a = t - e;
8443
- Bs(a % 4 === 0);
8443
+ Cs(a % 4 === 0);
8444
8444
  for (var i = new Array(a / 4), y = 0, x = e; y < i.length; y++, x += 4) {
8445
8445
  var u;
8446
8446
  r === "big" ? u = f[x] << 24 | f[x + 1] << 16 | f[x + 2] << 8 | f[x + 3] : u = f[x + 3] << 24 | f[x + 2] << 16 | f[x + 1] << 8 | f[x], i[y] = u >>> 0;
8447
8447
  }
8448
8448
  return i;
8449
8449
  }
8450
- Le.join32 = Rs;
8451
- function ks(f, e) {
8450
+ Le.join32 = ks;
8451
+ function Ps(f, e) {
8452
8452
  for (var t = new Array(f.length * 4), r = 0, a = 0; r < f.length; r++, a += 4) {
8453
8453
  var i = f[r];
8454
8454
  e === "big" ? (t[a] = i >>> 24, t[a + 1] = i >>> 16 & 255, t[a + 2] = i >>> 8 & 255, t[a + 3] = i & 255) : (t[a + 3] = i >>> 24, t[a + 2] = i >>> 16 & 255, t[a + 1] = i >>> 8 & 255, t[a] = i & 255);
8455
8455
  }
8456
8456
  return t;
8457
8457
  }
8458
- Le.split32 = ks;
8459
- function Ps(f, e) {
8458
+ Le.split32 = Ps;
8459
+ function Is(f, e) {
8460
8460
  return f >>> e | f << 32 - e;
8461
8461
  }
8462
- Le.rotr32 = Ps;
8463
- function Is(f, e) {
8462
+ Le.rotr32 = Is;
8463
+ function Ts(f, e) {
8464
8464
  return f << e | f >>> 32 - e;
8465
8465
  }
8466
- Le.rotl32 = Is;
8467
- function Ts(f, e) {
8466
+ Le.rotl32 = Ts;
8467
+ function Os(f, e) {
8468
8468
  return f + e >>> 0;
8469
8469
  }
8470
- Le.sum32 = Ts;
8471
- function Os(f, e, t) {
8470
+ Le.sum32 = Os;
8471
+ function zs(f, e, t) {
8472
8472
  return f + e + t >>> 0;
8473
8473
  }
8474
- Le.sum32_3 = Os;
8475
- function zs(f, e, t, r) {
8474
+ Le.sum32_3 = zs;
8475
+ function qs(f, e, t, r) {
8476
8476
  return f + e + t + r >>> 0;
8477
8477
  }
8478
- Le.sum32_4 = zs;
8479
- function qs(f, e, t, r, a) {
8478
+ Le.sum32_4 = qs;
8479
+ function Ns(f, e, t, r, a) {
8480
8480
  return f + e + t + r + a >>> 0;
8481
8481
  }
8482
- Le.sum32_5 = qs;
8483
- function Ns(f, e, t, r) {
8482
+ Le.sum32_5 = Ns;
8483
+ function Ls(f, e, t, r) {
8484
8484
  var a = f[e], i = f[e + 1], y = r + i >>> 0, x = (y < r ? 1 : 0) + t + a;
8485
8485
  f[e] = x >>> 0, f[e + 1] = y;
8486
8486
  }
8487
- Le.sum64 = Ns;
8488
- function Ls(f, e, t, r) {
8487
+ Le.sum64 = Ls;
8488
+ function Hs(f, e, t, r) {
8489
8489
  var a = e + r >>> 0, i = (a < e ? 1 : 0) + f + t;
8490
8490
  return i >>> 0;
8491
8491
  }
8492
- Le.sum64_hi = Ls;
8493
- function Hs(f, e, t, r) {
8492
+ Le.sum64_hi = Hs;
8493
+ function Us(f, e, t, r) {
8494
8494
  var a = e + r;
8495
8495
  return a >>> 0;
8496
8496
  }
8497
- Le.sum64_lo = Hs;
8498
- function Us(f, e, t, r, a, i, y, x) {
8497
+ Le.sum64_lo = Us;
8498
+ function $s(f, e, t, r, a, i, y, x) {
8499
8499
  var u = 0, o = e;
8500
8500
  o = o + r >>> 0, u += o < e ? 1 : 0, o = o + i >>> 0, u += o < i ? 1 : 0, o = o + x >>> 0, u += o < x ? 1 : 0;
8501
8501
  var c = f + t + a + y + u;
8502
8502
  return c >>> 0;
8503
8503
  }
8504
- Le.sum64_4_hi = Us;
8505
- function $s(f, e, t, r, a, i, y, x) {
8504
+ Le.sum64_4_hi = $s;
8505
+ function Ws(f, e, t, r, a, i, y, x) {
8506
8506
  var u = e + r + i + x;
8507
8507
  return u >>> 0;
8508
8508
  }
8509
- Le.sum64_4_lo = $s;
8510
- function Ws(f, e, t, r, a, i, y, x, u, o) {
8509
+ Le.sum64_4_lo = Ws;
8510
+ function Ys(f, e, t, r, a, i, y, x, u, o) {
8511
8511
  var c = 0, b = e;
8512
8512
  b = b + r >>> 0, c += b < e ? 1 : 0, b = b + i >>> 0, c += b < i ? 1 : 0, b = b + x >>> 0, c += b < x ? 1 : 0, b = b + o >>> 0, c += b < o ? 1 : 0;
8513
8513
  var v = f + t + a + y + u + c;
8514
8514
  return v >>> 0;
8515
8515
  }
8516
- Le.sum64_5_hi = Ws;
8517
- function Ys(f, e, t, r, a, i, y, x, u, o) {
8516
+ Le.sum64_5_hi = Ys;
8517
+ function Ks(f, e, t, r, a, i, y, x, u, o) {
8518
8518
  var c = e + r + i + x + o;
8519
8519
  return c >>> 0;
8520
8520
  }
8521
- Le.sum64_5_lo = Ys;
8522
- function Ks(f, e, t) {
8521
+ Le.sum64_5_lo = Ks;
8522
+ function js(f, e, t) {
8523
8523
  var r = e << 32 - t | f >>> t;
8524
8524
  return r >>> 0;
8525
8525
  }
8526
- Le.rotr64_hi = Ks;
8527
- function js(f, e, t) {
8526
+ Le.rotr64_hi = js;
8527
+ function Vs(f, e, t) {
8528
8528
  var r = f << 32 - t | e >>> t;
8529
8529
  return r >>> 0;
8530
8530
  }
8531
- Le.rotr64_lo = js;
8532
- function Vs(f, e, t) {
8531
+ Le.rotr64_lo = Vs;
8532
+ function Xs(f, e, t) {
8533
8533
  return f >>> t;
8534
8534
  }
8535
- Le.shr64_hi = Vs;
8536
- function Xs(f, e, t) {
8535
+ Le.shr64_hi = Xs;
8536
+ function Zs(f, e, t) {
8537
8537
  var r = f << 32 - t | e >>> t;
8538
8538
  return r >>> 0;
8539
8539
  }
8540
- Le.shr64_lo = Xs;
8541
- var Wt = {}, Hi = Le, Zs = Pt;
8540
+ Le.shr64_lo = Zs;
8541
+ var Wt = {}, Hi = Le, Gs = Pt;
8542
8542
  function Fr() {
8543
8543
  this.pending = null, this.pendingTotal = 0, this.blockSize = this.constructor.blockSize, this.outSize = this.constructor.outSize, this.hmacStrength = this.constructor.hmacStrength, this.padLength = this.constructor.padLength / 8, this.endian = "big", this._delta8 = this.blockSize / 8, this._delta32 = this.blockSize / 32;
8544
8544
  }
@@ -8554,7 +8554,7 @@ Fr.prototype.update = function(e, t) {
8554
8554
  return this;
8555
8555
  };
8556
8556
  Fr.prototype.digest = function(e) {
8557
- return this.update(this._pad()), Zs(this.pending === null), this._digest(e);
8557
+ return this.update(this._pad()), Gs(this.pending === null), this._digest(e);
8558
8558
  };
8559
8559
  Fr.prototype._pad = function() {
8560
8560
  var e = this.pendingTotal, t = this._delta8, r = t - (e + this.padLength) % t, a = new Array(r + this.padLength);
@@ -8570,8 +8570,8 @@ Fr.prototype._pad = function() {
8570
8570
  a[i++] = 0;
8571
8571
  return a;
8572
8572
  };
8573
- var Yt = {}, ht = {}, Gs = Le, rt = Gs.rotr32;
8574
- function Qs(f, e, t, r) {
8573
+ var Yt = {}, ht = {}, Qs = Le, rt = Qs.rotr32;
8574
+ function Js(f, e, t, r) {
8575
8575
  if (f === 0)
8576
8576
  return Cn(e, t, r);
8577
8577
  if (f === 1 || f === 3)
@@ -8579,7 +8579,7 @@ function Qs(f, e, t, r) {
8579
8579
  if (f === 2)
8580
8580
  return Mn(e, t, r);
8581
8581
  }
8582
- ht.ft_1 = Qs;
8582
+ ht.ft_1 = Js;
8583
8583
  function Cn(f, e, t) {
8584
8584
  return f & e ^ ~f & t;
8585
8585
  }
@@ -8592,23 +8592,23 @@ function Fn(f, e, t) {
8592
8592
  return f ^ e ^ t;
8593
8593
  }
8594
8594
  ht.p32 = Fn;
8595
- function Js(f) {
8595
+ function eo(f) {
8596
8596
  return rt(f, 2) ^ rt(f, 13) ^ rt(f, 22);
8597
8597
  }
8598
- ht.s0_256 = Js;
8599
- function eo(f) {
8598
+ ht.s0_256 = eo;
8599
+ function to(f) {
8600
8600
  return rt(f, 6) ^ rt(f, 11) ^ rt(f, 25);
8601
8601
  }
8602
- ht.s1_256 = eo;
8603
- function to(f) {
8602
+ ht.s1_256 = to;
8603
+ function ro(f) {
8604
8604
  return rt(f, 7) ^ rt(f, 18) ^ f >>> 3;
8605
8605
  }
8606
- ht.g0_256 = to;
8607
- function ro(f) {
8606
+ ht.g0_256 = ro;
8607
+ function fo(f) {
8608
8608
  return rt(f, 17) ^ rt(f, 19) ^ f >>> 10;
8609
8609
  }
8610
- ht.g1_256 = ro;
8611
- var qt = Le, fo = Wt, io = ht, pf = qt.rotl32, Gt = qt.sum32, no = qt.sum32_5, ao = io.ft_1, Sn = fo.BlockHash, so = [
8610
+ ht.g1_256 = fo;
8611
+ var qt = Le, io = Wt, no = ht, pf = qt.rotl32, Gt = qt.sum32, ao = qt.sum32_5, so = no.ft_1, Sn = io.BlockHash, oo = [
8612
8612
  1518500249,
8613
8613
  1859775393,
8614
8614
  2400959708,
@@ -8626,7 +8626,7 @@ function at() {
8626
8626
  ], this.W = new Array(80);
8627
8627
  }
8628
8628
  qt.inherits(at, Sn);
8629
- var oo = at;
8629
+ var co = at;
8630
8630
  at.blockSize = 512;
8631
8631
  at.outSize = 160;
8632
8632
  at.hmacStrength = 80;
@@ -8638,7 +8638,7 @@ at.prototype._update = function(e, t) {
8638
8638
  r[a] = pf(r[a - 3] ^ r[a - 8] ^ r[a - 14] ^ r[a - 16], 1);
8639
8639
  var i = this.h[0], y = this.h[1], x = this.h[2], u = this.h[3], o = this.h[4];
8640
8640
  for (a = 0; a < r.length; a++) {
8641
- var c = ~~(a / 20), b = no(pf(i, 5), ao(c, y, x, u), o, r[a], so[c]);
8641
+ var c = ~~(a / 20), b = ao(pf(i, 5), so(c, y, x, u), o, r[a], oo[c]);
8642
8642
  o = u, u = x, x = pf(y, 30), y = i, i = b;
8643
8643
  }
8644
8644
  this.h[0] = Gt(this.h[0], i), this.h[1] = Gt(this.h[1], y), this.h[2] = Gt(this.h[2], x), this.h[3] = Gt(this.h[3], u), this.h[4] = Gt(this.h[4], o);
@@ -8646,7 +8646,7 @@ at.prototype._update = function(e, t) {
8646
8646
  at.prototype._digest = function(e) {
8647
8647
  return e === "hex" ? qt.toHex32(this.h, "big") : qt.split32(this.h, "big");
8648
8648
  };
8649
- var Nt = Le, co = Wt, Kt = ht, ho = Pt, Q0 = Nt.sum32, uo = Nt.sum32_4, lo = Nt.sum32_5, xo = Kt.ch32, vo = Kt.maj32, bo = Kt.s0_256, po = Kt.s1_256, yo = Kt.g0_256, go = Kt.g1_256, Dn = co.BlockHash, mo = [
8649
+ var Nt = Le, ho = Wt, Kt = ht, uo = Pt, Q0 = Nt.sum32, lo = Nt.sum32_4, xo = Nt.sum32_5, vo = Kt.ch32, bo = Kt.maj32, po = Kt.s0_256, yo = Kt.s1_256, go = Kt.g0_256, mo = Kt.g1_256, Dn = ho.BlockHash, _o = [
8650
8650
  1116352408,
8651
8651
  1899447441,
8652
8652
  3049323471,
@@ -8724,7 +8724,7 @@ function st() {
8724
8724
  2600822924,
8725
8725
  528734635,
8726
8726
  1541459225
8727
- ], this.k = mo, this.W = new Array(64);
8727
+ ], this.k = _o, this.W = new Array(64);
8728
8728
  }
8729
8729
  Nt.inherits(st, Dn);
8730
8730
  var Rn = st;
@@ -8736,10 +8736,10 @@ st.prototype._update = function(e, t) {
8736
8736
  for (var r = this.W, a = 0; a < 16; a++)
8737
8737
  r[a] = e[t + a];
8738
8738
  for (; a < r.length; a++)
8739
- r[a] = uo(go(r[a - 2]), r[a - 7], yo(r[a - 15]), r[a - 16]);
8739
+ r[a] = lo(mo(r[a - 2]), r[a - 7], go(r[a - 15]), r[a - 16]);
8740
8740
  var i = this.h[0], y = this.h[1], x = this.h[2], u = this.h[3], o = this.h[4], c = this.h[5], b = this.h[6], v = this.h[7];
8741
- for (ho(this.k.length === r.length), a = 0; a < r.length; a++) {
8742
- var C = lo(v, po(o), xo(o, c, b), this.k[a], r[a]), w = Q0(bo(i), vo(i, y, x));
8741
+ for (uo(this.k.length === r.length), a = 0; a < r.length; a++) {
8742
+ var C = xo(v, yo(o), vo(o, c, b), this.k[a], r[a]), w = Q0(po(i), bo(i, y, x));
8743
8743
  v = b, b = c, c = o, o = Q0(u, C), u = x, x = y, y = i, i = Q0(C, w);
8744
8744
  }
8745
8745
  this.h[0] = Q0(this.h[0], i), this.h[1] = Q0(this.h[1], y), this.h[2] = Q0(this.h[2], x), this.h[3] = Q0(this.h[3], u), this.h[4] = Q0(this.h[4], o), this.h[5] = Q0(this.h[5], c), this.h[6] = Q0(this.h[6], b), this.h[7] = Q0(this.h[7], v);
@@ -8763,7 +8763,7 @@ function vt() {
8763
8763
  ];
8764
8764
  }
8765
8765
  Ff.inherits(vt, kn);
8766
- var _o = vt;
8766
+ var Ao = vt;
8767
8767
  vt.blockSize = 512;
8768
8768
  vt.outSize = 224;
8769
8769
  vt.hmacStrength = 192;
@@ -8771,7 +8771,7 @@ vt.padLength = 64;
8771
8771
  vt.prototype._digest = function(e) {
8772
8772
  return e === "hex" ? Ff.toHex32(this.h.slice(0, 7), "big") : Ff.split32(this.h.slice(0, 7), "big");
8773
8773
  };
8774
- var H0 = Le, Ao = Wt, Eo = Pt, ft = H0.rotr64_hi, it = H0.rotr64_lo, Pn = H0.shr64_hi, In = H0.shr64_lo, gt = H0.sum64, yf = H0.sum64_hi, gf = H0.sum64_lo, wo = H0.sum64_4_hi, Bo = H0.sum64_4_lo, Co = H0.sum64_5_hi, Mo = H0.sum64_5_lo, Tn = Ao.BlockHash, Fo = [
8774
+ var H0 = Le, Eo = Wt, wo = Pt, ft = H0.rotr64_hi, it = H0.rotr64_lo, Pn = H0.shr64_hi, In = H0.shr64_lo, gt = H0.sum64, yf = H0.sum64_hi, gf = H0.sum64_lo, Bo = H0.sum64_4_hi, Co = H0.sum64_4_lo, Mo = H0.sum64_5_hi, Fo = H0.sum64_5_lo, Tn = Eo.BlockHash, So = [
8775
8775
  1116352408,
8776
8776
  3609767458,
8777
8777
  1899447441,
@@ -8953,7 +8953,7 @@ function et() {
8953
8953
  4215389547,
8954
8954
  1541459225,
8955
8955
  327033209
8956
- ], this.k = Fo, this.W = new Array(160);
8956
+ ], this.k = So, this.W = new Array(160);
8957
8957
  }
8958
8958
  H0.inherits(et, Tn);
8959
8959
  var On = et;
@@ -8965,8 +8965,8 @@ et.prototype._prepareBlock = function(e, t) {
8965
8965
  for (var r = this.W, a = 0; a < 32; a++)
8966
8966
  r[a] = e[t + a];
8967
8967
  for (; a < r.length; a += 2) {
8968
- var i = No(r[a - 4], r[a - 3]), y = Lo(r[a - 4], r[a - 3]), x = r[a - 14], u = r[a - 13], o = zo(r[a - 30], r[a - 29]), c = qo(r[a - 30], r[a - 29]), b = r[a - 32], v = r[a - 31];
8969
- r[a] = wo(
8968
+ var i = Lo(r[a - 4], r[a - 3]), y = Ho(r[a - 4], r[a - 3]), x = r[a - 14], u = r[a - 13], o = qo(r[a - 30], r[a - 29]), c = No(r[a - 30], r[a - 29]), b = r[a - 32], v = r[a - 31];
8969
+ r[a] = Bo(
8970
8970
  i,
8971
8971
  y,
8972
8972
  x,
@@ -8975,7 +8975,7 @@ et.prototype._prepareBlock = function(e, t) {
8975
8975
  c,
8976
8976
  b,
8977
8977
  v
8978
- ), r[a + 1] = Bo(
8978
+ ), r[a + 1] = Co(
8979
8979
  i,
8980
8980
  y,
8981
8981
  x,
@@ -8990,9 +8990,9 @@ et.prototype._prepareBlock = function(e, t) {
8990
8990
  et.prototype._update = function(e, t) {
8991
8991
  this._prepareBlock(e, t);
8992
8992
  var r = this.W, a = this.h[0], i = this.h[1], y = this.h[2], x = this.h[3], u = this.h[4], o = this.h[5], c = this.h[6], b = this.h[7], v = this.h[8], C = this.h[9], w = this.h[10], R = this.h[11], k = this.h[12], q = this.h[13], S = this.h[14], P = this.h[15];
8993
- Eo(this.k.length === r.length);
8993
+ wo(this.k.length === r.length);
8994
8994
  for (var T = 0; T < r.length; T += 2) {
8995
- var H = S, $ = P, K = To(v, C), X = Oo(v, C), Q = So(v, C, w, R, k), U = Do(v, C, w, R, k, q), A = this.k[T], n = this.k[T + 1], d = r[T], g = r[T + 1], B = Co(
8995
+ var H = S, $ = P, K = Oo(v, C), X = zo(v, C), Q = Do(v, C, w, R, k), U = Ro(v, C, w, R, k, q), A = this.k[T], n = this.k[T + 1], d = r[T], g = r[T + 1], B = Mo(
8996
8996
  H,
8997
8997
  $,
8998
8998
  K,
@@ -9003,7 +9003,7 @@ et.prototype._update = function(e, t) {
9003
9003
  n,
9004
9004
  d,
9005
9005
  g
9006
- ), F = Mo(
9006
+ ), F = Fo(
9007
9007
  H,
9008
9008
  $,
9009
9009
  K,
@@ -9015,7 +9015,7 @@ et.prototype._update = function(e, t) {
9015
9015
  d,
9016
9016
  g
9017
9017
  );
9018
- H = Po(a, i), $ = Io(a, i), K = Ro(a, i, y, x, u), X = ko(a, i, y, x, u, o);
9018
+ H = Io(a, i), $ = To(a, i), K = ko(a, i, y, x, u), X = Po(a, i, y, x, u, o);
9019
9019
  var z = yf(H, $, K, X), N = gf(H, $, K, X);
9020
9020
  S = k, P = q, k = w, q = R, w = v, R = C, v = yf(c, b, B, F), C = gf(b, b, B, F), c = u, b = o, u = y, o = x, y = a, x = i, a = yf(B, F, z, N), i = gf(B, F, z, N);
9021
9021
  }
@@ -9024,51 +9024,51 @@ et.prototype._update = function(e, t) {
9024
9024
  et.prototype._digest = function(e) {
9025
9025
  return e === "hex" ? H0.toHex32(this.h, "big") : H0.split32(this.h, "big");
9026
9026
  };
9027
- function So(f, e, t, r, a) {
9027
+ function Do(f, e, t, r, a) {
9028
9028
  var i = f & t ^ ~f & a;
9029
9029
  return i < 0 && (i += 4294967296), i;
9030
9030
  }
9031
- function Do(f, e, t, r, a, i) {
9031
+ function Ro(f, e, t, r, a, i) {
9032
9032
  var y = e & r ^ ~e & i;
9033
9033
  return y < 0 && (y += 4294967296), y;
9034
9034
  }
9035
- function Ro(f, e, t, r, a) {
9035
+ function ko(f, e, t, r, a) {
9036
9036
  var i = f & t ^ f & a ^ t & a;
9037
9037
  return i < 0 && (i += 4294967296), i;
9038
9038
  }
9039
- function ko(f, e, t, r, a, i) {
9039
+ function Po(f, e, t, r, a, i) {
9040
9040
  var y = e & r ^ e & i ^ r & i;
9041
9041
  return y < 0 && (y += 4294967296), y;
9042
9042
  }
9043
- function Po(f, e) {
9043
+ function Io(f, e) {
9044
9044
  var t = ft(f, e, 28), r = ft(e, f, 2), a = ft(e, f, 7), i = t ^ r ^ a;
9045
9045
  return i < 0 && (i += 4294967296), i;
9046
9046
  }
9047
- function Io(f, e) {
9047
+ function To(f, e) {
9048
9048
  var t = it(f, e, 28), r = it(e, f, 2), a = it(e, f, 7), i = t ^ r ^ a;
9049
9049
  return i < 0 && (i += 4294967296), i;
9050
9050
  }
9051
- function To(f, e) {
9051
+ function Oo(f, e) {
9052
9052
  var t = ft(f, e, 14), r = ft(f, e, 18), a = ft(e, f, 9), i = t ^ r ^ a;
9053
9053
  return i < 0 && (i += 4294967296), i;
9054
9054
  }
9055
- function Oo(f, e) {
9055
+ function zo(f, e) {
9056
9056
  var t = it(f, e, 14), r = it(f, e, 18), a = it(e, f, 9), i = t ^ r ^ a;
9057
9057
  return i < 0 && (i += 4294967296), i;
9058
9058
  }
9059
- function zo(f, e) {
9059
+ function qo(f, e) {
9060
9060
  var t = ft(f, e, 1), r = ft(f, e, 8), a = Pn(f, e, 7), i = t ^ r ^ a;
9061
9061
  return i < 0 && (i += 4294967296), i;
9062
9062
  }
9063
- function qo(f, e) {
9063
+ function No(f, e) {
9064
9064
  var t = it(f, e, 1), r = it(f, e, 8), a = In(f, e, 7), i = t ^ r ^ a;
9065
9065
  return i < 0 && (i += 4294967296), i;
9066
9066
  }
9067
- function No(f, e) {
9067
+ function Lo(f, e) {
9068
9068
  var t = ft(f, e, 19), r = ft(e, f, 29), a = Pn(f, e, 6), i = t ^ r ^ a;
9069
9069
  return i < 0 && (i += 4294967296), i;
9070
9070
  }
9071
- function Lo(f, e) {
9071
+ function Ho(f, e) {
9072
9072
  var t = it(f, e, 19), r = it(e, f, 29), a = In(f, e, 6), i = t ^ r ^ a;
9073
9073
  return i < 0 && (i += 4294967296), i;
9074
9074
  }
@@ -9096,7 +9096,7 @@ function bt() {
9096
9096
  ];
9097
9097
  }
9098
9098
  Sf.inherits(bt, zn);
9099
- var Ho = bt;
9099
+ var Uo = bt;
9100
9100
  bt.blockSize = 1024;
9101
9101
  bt.outSize = 384;
9102
9102
  bt.hmacStrength = 192;
@@ -9104,12 +9104,12 @@ bt.padLength = 128;
9104
9104
  bt.prototype._digest = function(e) {
9105
9105
  return e === "hex" ? Sf.toHex32(this.h.slice(0, 12), "big") : Sf.split32(this.h.slice(0, 12), "big");
9106
9106
  };
9107
- Yt.sha1 = oo;
9108
- Yt.sha224 = _o;
9107
+ Yt.sha1 = co;
9108
+ Yt.sha224 = Ao;
9109
9109
  Yt.sha256 = Rn;
9110
- Yt.sha384 = Ho;
9110
+ Yt.sha384 = Uo;
9111
9111
  Yt.sha512 = On;
9112
- var qn = {}, Dt = Le, Uo = Wt, ar = Dt.rotl32, Ui = Dt.sum32, Qt = Dt.sum32_3, $i = Dt.sum32_4, Nn = Uo.BlockHash;
9112
+ var qn = {}, Dt = Le, $o = Wt, ar = Dt.rotl32, Ui = Dt.sum32, Qt = Dt.sum32_3, $i = Dt.sum32_4, Nn = $o.BlockHash;
9113
9113
  function ot() {
9114
9114
  if (!(this instanceof ot))
9115
9115
  return new ot();
@@ -9125,15 +9125,15 @@ ot.prototype._update = function(e, t) {
9125
9125
  for (var r = this.h[0], a = this.h[1], i = this.h[2], y = this.h[3], x = this.h[4], u = r, o = a, c = i, b = y, v = x, C = 0; C < 80; C++) {
9126
9126
  var w = Ui(
9127
9127
  ar(
9128
- $i(r, Wi(C, a, i, y), e[Yo[C] + t], $o(C)),
9129
- jo[C]
9128
+ $i(r, Wi(C, a, i, y), e[Ko[C] + t], Wo(C)),
9129
+ Vo[C]
9130
9130
  ),
9131
9131
  x
9132
9132
  );
9133
9133
  r = x, x = y, y = ar(i, 10), i = a, a = w, w = Ui(
9134
9134
  ar(
9135
- $i(u, Wi(79 - C, o, c, b), e[Ko[C] + t], Wo(C)),
9136
- Vo[C]
9135
+ $i(u, Wi(79 - C, o, c, b), e[jo[C] + t], Yo(C)),
9136
+ Xo[C]
9137
9137
  ),
9138
9138
  v
9139
9139
  ), u = v, v = b, b = ar(c, 10), c = o, o = w;
@@ -9146,13 +9146,13 @@ ot.prototype._digest = function(e) {
9146
9146
  function Wi(f, e, t, r) {
9147
9147
  return f <= 15 ? e ^ t ^ r : f <= 31 ? e & t | ~e & r : f <= 47 ? (e | ~t) ^ r : f <= 63 ? e & r | t & ~r : e ^ (t | ~r);
9148
9148
  }
9149
- function $o(f) {
9149
+ function Wo(f) {
9150
9150
  return f <= 15 ? 0 : f <= 31 ? 1518500249 : f <= 47 ? 1859775393 : f <= 63 ? 2400959708 : 2840853838;
9151
9151
  }
9152
- function Wo(f) {
9152
+ function Yo(f) {
9153
9153
  return f <= 15 ? 1352829926 : f <= 31 ? 1548603684 : f <= 47 ? 1836072691 : f <= 63 ? 2053994217 : 0;
9154
9154
  }
9155
- var Yo = [
9155
+ var Ko = [
9156
9156
  0,
9157
9157
  1,
9158
9158
  2,
@@ -9233,7 +9233,7 @@ var Yo = [
9233
9233
  6,
9234
9234
  15,
9235
9235
  13
9236
- ], Ko = [
9236
+ ], jo = [
9237
9237
  5,
9238
9238
  14,
9239
9239
  7,
@@ -9314,7 +9314,7 @@ var Yo = [
9314
9314
  3,
9315
9315
  9,
9316
9316
  11
9317
- ], jo = [
9317
+ ], Vo = [
9318
9318
  11,
9319
9319
  14,
9320
9320
  15,
@@ -9395,7 +9395,7 @@ var Yo = [
9395
9395
  8,
9396
9396
  5,
9397
9397
  6
9398
- ], Vo = [
9398
+ ], Xo = [
9399
9399
  8,
9400
9400
  9,
9401
9401
  9,
@@ -9476,15 +9476,15 @@ var Yo = [
9476
9476
  13,
9477
9477
  11,
9478
9478
  11
9479
- ], Xo = Le, Zo = Pt;
9479
+ ], Zo = Le, Go = Pt;
9480
9480
  function Lt(f, e, t) {
9481
9481
  if (!(this instanceof Lt))
9482
9482
  return new Lt(f, e, t);
9483
- this.Hash = f, this.blockSize = f.blockSize / 8, this.outSize = f.outSize / 8, this.inner = null, this.outer = null, this._init(Xo.toArray(e, t));
9483
+ this.Hash = f, this.blockSize = f.blockSize / 8, this.outSize = f.outSize / 8, this.inner = null, this.outer = null, this._init(Zo.toArray(e, t));
9484
9484
  }
9485
- var Go = Lt;
9485
+ var Qo = Lt;
9486
9486
  Lt.prototype._init = function(e) {
9487
- e.length > this.blockSize && (e = new this.Hash().update(e).digest()), Zo(e.length <= this.blockSize);
9487
+ e.length > this.blockSize && (e = new this.Hash().update(e).digest()), Go(e.length <= this.blockSize);
9488
9488
  for (var t = e.length; t < this.blockSize; t++)
9489
9489
  e.push(0);
9490
9490
  for (t = 0; t < e.length; t++)
@@ -9501,10 +9501,10 @@ Lt.prototype.digest = function(e) {
9501
9501
  };
9502
9502
  (function(f) {
9503
9503
  var e = f;
9504
- e.utils = Le, e.common = Wt, e.sha = Yt, e.ripemd = qn, e.hmac = Go, e.sha1 = e.sha.sha1, e.sha256 = e.sha.sha256, e.sha224 = e.sha.sha224, e.sha384 = e.sha.sha384, e.sha512 = e.sha.sha512, e.ripemd160 = e.ripemd.ripemd160;
9504
+ e.utils = Le, e.common = Wt, e.sha = Yt, e.ripemd = qn, e.hmac = Qo, e.sha1 = e.sha.sha1, e.sha256 = e.sha.sha256, e.sha224 = e.sha.sha224, e.sha384 = e.sha.sha384, e.sha512 = e.sha.sha512, e.ripemd160 = e.ripemd.ripemd160;
9505
9505
  })(Mr);
9506
9506
  var mf, Yi;
9507
- function Qo() {
9507
+ function Jo() {
9508
9508
  return Yi || (Yi = 1, mf = {
9509
9509
  doubles: {
9510
9510
  step: 4,
@@ -10402,7 +10402,7 @@ function Qo() {
10402
10402
  });
10403
10403
  var u;
10404
10404
  try {
10405
- u = Qo();
10405
+ u = Jo();
10406
10406
  } catch {
10407
10407
  u = void 0;
10408
10408
  }
@@ -10436,7 +10436,7 @@ function Qo() {
10436
10436
  ]
10437
10437
  });
10438
10438
  })(Cr);
10439
- var Jo = Mr, Mt = Uf, Ln = Pt;
10439
+ var ec = Mr, Mt = Uf, Ln = Pt;
10440
10440
  function _t(f) {
10441
10441
  if (!(this instanceof _t))
10442
10442
  return new _t(f);
@@ -10447,7 +10447,7 @@ function _t(f) {
10447
10447
  "Not enough entropy. Minimum is: " + this.minEntropy + " bits"
10448
10448
  ), this._init(e, t, r);
10449
10449
  }
10450
- var ec = _t;
10450
+ var tc = _t;
10451
10451
  _t.prototype._init = function(e, t, r) {
10452
10452
  var a = e.concat(t).concat(r);
10453
10453
  this.K = new Array(this.outLen / 8), this.V = new Array(this.outLen / 8);
@@ -10456,7 +10456,7 @@ _t.prototype._init = function(e, t, r) {
10456
10456
  this._update(a), this._reseed = 1, this.reseedInterval = 281474976710656;
10457
10457
  };
10458
10458
  _t.prototype._hmac = function() {
10459
- return new Jo.hmac(this.hash, this.K);
10459
+ return new ec.hmac(this.hash, this.K);
10460
10460
  };
10461
10461
  _t.prototype._update = function(e) {
10462
10462
  var t = this._hmac().update(this.V).update([0]);
@@ -10477,11 +10477,11 @@ _t.prototype.generate = function(e, t, r, a) {
10477
10477
  var y = i.slice(0, e);
10478
10478
  return this._update(r), this._reseed++, Mt.encode(y, t);
10479
10479
  };
10480
- var tc = pt, rc = Y0, Df = rc.assert;
10480
+ var rc = pt, fc = Y0, Df = fc.assert;
10481
10481
  function T0(f, e) {
10482
10482
  this.ec = f, this.priv = null, this.pub = null, e.priv && this._importPrivate(e.priv, e.privEnc), e.pub && this._importPublic(e.pub, e.pubEnc);
10483
10483
  }
10484
- var fc = T0;
10484
+ var ic = T0;
10485
10485
  T0.fromPublic = function(e, t, r) {
10486
10486
  return t instanceof T0 ? t : new T0(e, {
10487
10487
  pub: t,
@@ -10505,7 +10505,7 @@ T0.prototype.getPrivate = function(e) {
10505
10505
  return e === "hex" ? this.priv.toString(16, 2) : this.priv;
10506
10506
  };
10507
10507
  T0.prototype._importPrivate = function(e, t) {
10508
- this.priv = new tc(e, t || 16), this.priv = this.priv.umod(this.ec.curve.n);
10508
+ this.priv = new rc(e, t || 16), this.priv = this.priv.umod(this.ec.curve.n);
10509
10509
  };
10510
10510
  T0.prototype._importPublic = function(e, t) {
10511
10511
  if (e.x || e.y) {
@@ -10526,14 +10526,14 @@ T0.prototype.verify = function(e, t) {
10526
10526
  T0.prototype.inspect = function() {
10527
10527
  return "<Key priv: " + (this.priv && this.priv.toString(16, 2)) + " pub: " + (this.pub && this.pub.inspect()) + " >";
10528
10528
  };
10529
- var gr = pt, Kf = Y0, ic = Kf.assert;
10529
+ var gr = pt, Kf = Y0, nc = Kf.assert;
10530
10530
  function Sr(f, e) {
10531
10531
  if (f instanceof Sr)
10532
10532
  return f;
10533
- this._importDER(f, e) || (ic(f.r && f.s, "Signature without r or s"), this.r = new gr(f.r, 16), this.s = new gr(f.s, 16), f.recoveryParam === void 0 ? this.recoveryParam = null : this.recoveryParam = f.recoveryParam);
10533
+ this._importDER(f, e) || (nc(f.r && f.s, "Signature without r or s"), this.r = new gr(f.r, 16), this.s = new gr(f.s, 16), f.recoveryParam === void 0 ? this.recoveryParam = null : this.recoveryParam = f.recoveryParam);
10534
10534
  }
10535
- var nc = Sr;
10536
- function ac() {
10535
+ var ac = Sr;
10536
+ function sc() {
10537
10537
  this.place = 0;
10538
10538
  }
10539
10539
  function _f(f, e) {
@@ -10554,7 +10554,7 @@ function Ki(f) {
10554
10554
  }
10555
10555
  Sr.prototype._importDER = function(e, t) {
10556
10556
  e = Kf.toArray(e, t);
10557
- var r = new ac();
10557
+ var r = new sc();
10558
10558
  if (e[r.place++] !== 48)
10559
10559
  return !1;
10560
10560
  var a = _f(e, r);
@@ -10601,7 +10601,7 @@ Sr.prototype.toDER = function(e) {
10601
10601
  var i = a.concat(r), y = [48];
10602
10602
  return Af(y, i.length), y = y.concat(i), Kf.encode(y, e);
10603
10603
  };
10604
- var Ft = pt, Hn = ec, sc = Y0, Ef = Cr, oc = mn, Un = sc.assert, jf = fc, Dr = nc;
10604
+ var Ft = pt, Hn = tc, oc = Y0, Ef = Cr, cc = mn, Un = oc.assert, jf = ic, Dr = ac;
10605
10605
  function j0(f) {
10606
10606
  if (!(this instanceof j0))
10607
10607
  return new j0(f);
@@ -10610,7 +10610,7 @@ function j0(f) {
10610
10610
  "Unknown curve " + f
10611
10611
  ), f = Ef[f]), f instanceof Ef.PresetCurve && (f = { curve: f }), this.curve = f.curve.curve, this.n = this.curve.n, this.nh = this.n.ushrn(1), this.g = this.curve.g, this.g = f.curve.g, this.g.precompute(f.curve.n.bitLength() + 1), this.hash = f.hash || f.curve.hash;
10612
10612
  }
10613
- var cc = j0;
10613
+ var dc = j0;
10614
10614
  j0.prototype.keyPair = function(e) {
10615
10615
  return new jf(this, e);
10616
10616
  };
@@ -10626,7 +10626,7 @@ j0.prototype.genKeyPair = function(e) {
10626
10626
  hash: this.hash,
10627
10627
  pers: e.pers,
10628
10628
  persEnc: e.persEnc || "utf8",
10629
- entropy: e.entropy || oc(this.hash.hmacStrength),
10629
+ entropy: e.entropy || cc(this.hash.hmacStrength),
10630
10630
  entropyEnc: e.entropy && e.entropyEnc || "utf8",
10631
10631
  nonce: this.n.toArray()
10632
10632
  }), r = this.n.byteLength(), a = this.n.sub(new Ft(2)); ; ) {
@@ -10740,12 +10740,12 @@ w0.prototype.getSecret = function(e) {
10740
10740
  w0.prototype.getPublic = function(e) {
10741
10741
  return ir.encode(this.pubBytes(), e);
10742
10742
  };
10743
- var dc = w0, hc = pt, Rr = Y0, uc = Rr.assert, kr = Rr.cachedProperty, lc = Rr.parseBytes;
10743
+ var hc = w0, uc = pt, Rr = Y0, lc = Rr.assert, kr = Rr.cachedProperty, xc = Rr.parseBytes;
10744
10744
  function It(f, e) {
10745
- this.eddsa = f, typeof e != "object" && (e = lc(e)), Array.isArray(e) && (e = {
10745
+ this.eddsa = f, typeof e != "object" && (e = xc(e)), Array.isArray(e) && (e = {
10746
10746
  R: e.slice(0, f.encodingLength),
10747
10747
  S: e.slice(f.encodingLength)
10748
- }), uc(e.R && e.S, "Signature without R or S"), f.isPoint(e.R) && (this._R = e.R), e.S instanceof hc && (this._S = e.S), this._Rencoded = Array.isArray(e.R) ? e.R : e.Rencoded, this._Sencoded = Array.isArray(e.S) ? e.S : e.Sencoded;
10748
+ }), lc(e.R && e.S, "Signature without R or S"), f.isPoint(e.R) && (this._R = e.R), e.S instanceof uc && (this._S = e.S), this._Rencoded = Array.isArray(e.R) ? e.R : e.Rencoded, this._Sencoded = Array.isArray(e.S) ? e.S : e.Sencoded;
10749
10749
  }
10750
10750
  kr(It, "S", function() {
10751
10751
  return this.eddsa.decodeInt(this.Sencoded());
@@ -10765,13 +10765,13 @@ It.prototype.toBytes = function() {
10765
10765
  It.prototype.toHex = function() {
10766
10766
  return Rr.encode(this.toBytes(), "hex").toUpperCase();
10767
10767
  };
10768
- var xc = It, vc = Mr, bc = Cr, Ht = Y0, pc = Ht.assert, Wn = Ht.parseBytes, Yn = dc, Vi = xc;
10768
+ var vc = It, bc = Mr, pc = Cr, Ht = Y0, yc = Ht.assert, Wn = Ht.parseBytes, Yn = hc, Vi = vc;
10769
10769
  function U0(f) {
10770
- if (pc(f === "ed25519", "only tested with ed25519 so far"), !(this instanceof U0))
10770
+ if (yc(f === "ed25519", "only tested with ed25519 so far"), !(this instanceof U0))
10771
10771
  return new U0(f);
10772
- f = bc[f].curve, this.curve = f, this.g = f.g, this.g.precompute(f.n.bitLength() + 1), this.pointClass = f.point().constructor, this.encodingLength = Math.ceil(f.n.bitLength() / 8), this.hash = vc.sha512;
10772
+ f = pc[f].curve, this.curve = f, this.g = f.g, this.g.precompute(f.n.bitLength() + 1), this.pointClass = f.point().constructor, this.encodingLength = Math.ceil(f.n.bitLength() / 8), this.hash = bc.sha512;
10773
10773
  }
10774
- var yc = U0;
10774
+ var gc = U0;
10775
10775
  U0.prototype.sign = function(e, t) {
10776
10776
  e = Wn(e);
10777
10777
  var r = this.keyFromSecret(t), a = this.hashInt(r.messagePrefix(), e), i = this.g.mul(a), y = this.encodePoint(i), x = this.hashInt(y, r.pubBytes(), e).mul(r.priv()), u = a.add(x).umod(this.curve.n);
@@ -10816,7 +10816,7 @@ U0.prototype.isPoint = function(e) {
10816
10816
  };
10817
10817
  (function(f) {
10818
10818
  var e = f;
10819
- e.version = vs.version, e.utils = Y0, e.rand = mn, e.curve = Wf, e.curves = Cr, e.ec = cc, e.eddsa = yc;
10819
+ e.version = bs.version, e.utils = Y0, e.rand = mn, e.curve = Wf, e.curves = Cr, e.ec = dc, e.eddsa = gc;
10820
10820
  })(yn);
10821
10821
  var Kn = { exports: {} };
10822
10822
  (function(f) {
@@ -11554,9 +11554,9 @@ var Kn = { exports: {} };
11554
11554
  }();
11555
11555
  })(f.exports ? f.exports : self.nacl = self.nacl || {});
11556
11556
  })(Kn);
11557
- var gc = Kn.exports;
11558
- const Jt = /* @__PURE__ */ sn(gc);
11559
- class mc {
11557
+ var mc = Kn.exports;
11558
+ const Jt = /* @__PURE__ */ sn(mc);
11559
+ class _c {
11560
11560
  string(e) {
11561
11561
  let t;
11562
11562
  return typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e), this.stringToUnicode(t.replace(/\//g, "\\/"));
@@ -11588,8 +11588,8 @@ class mc {
11588
11588
  return typeof e != "string" ? !1 : /^[0-9a-fA-F]+$/.test(e) && e.length % 2 === 0;
11589
11589
  }
11590
11590
  }
11591
- const L0 = new mc();
11592
- class _c {
11591
+ const L0 = new _c();
11592
+ class Ac {
11593
11593
  string(e) {
11594
11594
  return L0.string(e);
11595
11595
  }
@@ -11613,8 +11613,8 @@ class _c {
11613
11613
  return L0.isHex(e);
11614
11614
  }
11615
11615
  }
11616
- const sr = new _c();
11617
- class Ac {
11616
+ const sr = new Ac();
11617
+ class Ec {
11618
11618
  constructor() {
11619
11619
  wt(this, "KEY_SIZE");
11620
11620
  wt(this, "SIGNATURE_SIZE");
@@ -11650,8 +11650,8 @@ class Ac {
11650
11650
  );
11651
11651
  }
11652
11652
  }
11653
- const Xi = new Ac();
11654
- class Ec {
11653
+ const Xi = new Ec();
11654
+ class wc {
11655
11655
  constructor() {
11656
11656
  wt(this, "ec");
11657
11657
  this.ec = new yn.ec("secp256k1");
@@ -11685,7 +11685,7 @@ class Ec {
11685
11685
  return ut.lib.WordArray.random(e).toString(ut.enc.Hex);
11686
11686
  }
11687
11687
  }
11688
- const jn = new Ec(), ct = /* @__PURE__ */ Object.create(null);
11688
+ const jn = new wc(), ct = /* @__PURE__ */ Object.create(null);
11689
11689
  ct.open = "0";
11690
11690
  ct.close = "1";
11691
11691
  ct.ping = "2";
@@ -11708,7 +11708,7 @@ function Gi(f) {
11708
11708
  return f instanceof Uint8Array ? f : f instanceof ArrayBuffer ? new Uint8Array(f) : new Uint8Array(f.buffer, f.byteOffset, f.byteLength);
11709
11709
  }
11710
11710
  let wf;
11711
- function wc(f, e) {
11711
+ function Bc(f, e) {
11712
11712
  if (Vn && f.data instanceof Blob)
11713
11713
  return f.data.arrayBuffer().then(Gi).then(e);
11714
11714
  if (Xn && (f.data instanceof ArrayBuffer || Zn(f.data)))
@@ -11720,14 +11720,14 @@ function wc(f, e) {
11720
11720
  const Qi = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", rr = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
11721
11721
  for (let f = 0; f < Qi.length; f++)
11722
11722
  rr[Qi.charCodeAt(f)] = f;
11723
- const Bc = (f) => {
11723
+ const Cc = (f) => {
11724
11724
  let e = f.length * 0.75, t = f.length, r, a = 0, i, y, x, u;
11725
11725
  f[f.length - 1] === "=" && (e--, f[f.length - 2] === "=" && e--);
11726
11726
  const o = new ArrayBuffer(e), c = new Uint8Array(o);
11727
11727
  for (r = 0; r < t; r += 4)
11728
11728
  i = rr[f.charCodeAt(r)], y = rr[f.charCodeAt(r + 1)], x = rr[f.charCodeAt(r + 2)], u = rr[f.charCodeAt(r + 3)], c[a++] = i << 2 | y >> 4, c[a++] = (y & 15) << 4 | x >> 2, c[a++] = (x & 3) << 6 | u & 63;
11729
11729
  return o;
11730
- }, Cc = typeof ArrayBuffer == "function", Xf = (f, e) => {
11730
+ }, Mc = typeof ArrayBuffer == "function", Xf = (f, e) => {
11731
11731
  if (typeof f != "string")
11732
11732
  return {
11733
11733
  type: "message",
@@ -11736,16 +11736,16 @@ const Bc = (f) => {
11736
11736
  const t = f.charAt(0);
11737
11737
  return t === "b" ? {
11738
11738
  type: "message",
11739
- data: Mc(f.substring(1), e)
11739
+ data: Fc(f.substring(1), e)
11740
11740
  } : ur[t] ? f.length > 1 ? {
11741
11741
  type: ur[t],
11742
11742
  data: f.substring(1)
11743
11743
  } : {
11744
11744
  type: ur[t]
11745
11745
  } : Rf;
11746
- }, Mc = (f, e) => {
11747
- if (Cc) {
11748
- const t = Bc(f);
11746
+ }, Fc = (f, e) => {
11747
+ if (Mc) {
11748
+ const t = Cc(f);
11749
11749
  return Gn(t, e);
11750
11750
  } else
11751
11751
  return { base64: !0, data: f };
@@ -11757,7 +11757,7 @@ const Bc = (f) => {
11757
11757
  default:
11758
11758
  return f instanceof ArrayBuffer ? f : f.buffer;
11759
11759
  }
11760
- }, Qn = "", Fc = (f, e) => {
11760
+ }, Qn = "", Sc = (f, e) => {
11761
11761
  const t = f.length, r = new Array(t);
11762
11762
  let a = 0;
11763
11763
  f.forEach((i, y) => {
@@ -11765,7 +11765,7 @@ const Bc = (f) => {
11765
11765
  r[y] = x, ++a === t && e(r.join(Qn));
11766
11766
  });
11767
11767
  });
11768
- }, Sc = (f, e) => {
11768
+ }, Dc = (f, e) => {
11769
11769
  const t = f.split(Qn), r = [];
11770
11770
  for (let a = 0; a < t.length; a++) {
11771
11771
  const i = Xf(t[a], e);
@@ -11774,10 +11774,10 @@ const Bc = (f) => {
11774
11774
  }
11775
11775
  return r;
11776
11776
  };
11777
- function Dc() {
11777
+ function Rc() {
11778
11778
  return new TransformStream({
11779
11779
  transform(f, e) {
11780
- wc(f, (t) => {
11780
+ Bc(f, (t) => {
11781
11781
  const r = t.length;
11782
11782
  let a;
11783
11783
  if (r < 126)
@@ -11809,7 +11809,7 @@ function cr(f, e) {
11809
11809
  t[a] = f[0][r++], r === f[0].length && (f.shift(), r = 0);
11810
11810
  return f.length && r < f[0].length && (f[0] = f[0].slice(r)), t;
11811
11811
  }
11812
- function Rc(f, e) {
11812
+ function kc(f, e) {
11813
11813
  Bf || (Bf = new TextDecoder());
11814
11814
  const t = [];
11815
11815
  let r = 0, a = -1, i = !1;
@@ -11852,9 +11852,9 @@ function Rc(f, e) {
11852
11852
  const Jn = 4;
11853
11853
  function A0(f) {
11854
11854
  if (f)
11855
- return kc(f);
11855
+ return Pc(f);
11856
11856
  }
11857
- function kc(f) {
11857
+ function Pc(f) {
11858
11858
  for (var e in A0.prototype)
11859
11859
  f[e] = A0.prototype[e];
11860
11860
  return f;
@@ -11905,27 +11905,27 @@ const K0 = typeof self < "u" ? self : typeof window < "u" ? window : Function("r
11905
11905
  function ea(f, ...e) {
11906
11906
  return e.reduce((t, r) => (f.hasOwnProperty(r) && (t[r] = f[r]), t), {});
11907
11907
  }
11908
- const Pc = K0.setTimeout, Ic = K0.clearTimeout;
11908
+ const Ic = K0.setTimeout, Tc = K0.clearTimeout;
11909
11909
  function Pr(f, e) {
11910
- e.useNativeTimers ? (f.setTimeoutFn = Pc.bind(K0), f.clearTimeoutFn = Ic.bind(K0)) : (f.setTimeoutFn = K0.setTimeout.bind(K0), f.clearTimeoutFn = K0.clearTimeout.bind(K0));
11911
- }
11912
- const Tc = 1.33;
11913
- function Oc(f) {
11914
- return typeof f == "string" ? zc(f) : Math.ceil((f.byteLength || f.size) * Tc);
11910
+ e.useNativeTimers ? (f.setTimeoutFn = Ic.bind(K0), f.clearTimeoutFn = Tc.bind(K0)) : (f.setTimeoutFn = K0.setTimeout.bind(K0), f.clearTimeoutFn = K0.clearTimeout.bind(K0));
11915
11911
  }
11912
+ const Oc = 1.33;
11916
11913
  function zc(f) {
11914
+ return typeof f == "string" ? qc(f) : Math.ceil((f.byteLength || f.size) * Oc);
11915
+ }
11916
+ function qc(f) {
11917
11917
  let e = 0, t = 0;
11918
11918
  for (let r = 0, a = f.length; r < a; r++)
11919
11919
  e = f.charCodeAt(r), e < 128 ? t += 1 : e < 2048 ? t += 2 : e < 55296 || e >= 57344 ? t += 3 : (r++, t += 4);
11920
11920
  return t;
11921
11921
  }
11922
- function qc(f) {
11922
+ function Nc(f) {
11923
11923
  let e = "";
11924
11924
  for (let t in f)
11925
11925
  f.hasOwnProperty(t) && (e.length && (e += "&"), e += encodeURIComponent(t) + "=" + encodeURIComponent(f[t]));
11926
11926
  return e;
11927
11927
  }
11928
- function Nc(f) {
11928
+ function Lc(f) {
11929
11929
  let e = {}, t = f.split("&");
11930
11930
  for (let r = 0, a = t.length; r < a; r++) {
11931
11931
  let i = t[r].split("=");
@@ -11933,7 +11933,7 @@ function Nc(f) {
11933
11933
  }
11934
11934
  return e;
11935
11935
  }
11936
- class Lc extends Error {
11936
+ class Hc extends Error {
11937
11937
  constructor(e, t, r) {
11938
11938
  super(e), this.description = t, this.context = r, this.type = "TransportError";
11939
11939
  }
@@ -11958,7 +11958,7 @@ class Zf extends A0 {
11958
11958
  * @protected
11959
11959
  */
11960
11960
  onError(e, t, r) {
11961
- return super.emitReserved("error", new Lc(e, t, r)), this;
11961
+ return super.emitReserved("error", new Hc(e, t, r)), this;
11962
11962
  }
11963
11963
  /**
11964
11964
  * Opens the transport.
@@ -12032,11 +12032,11 @@ class Zf extends A0 {
12032
12032
  return this.opts.port && (this.opts.secure && +(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80) ? ":" + this.opts.port : "";
12033
12033
  }
12034
12034
  _query(e) {
12035
- const t = qc(e);
12035
+ const t = Nc(e);
12036
12036
  return t.length ? "?" + t : "";
12037
12037
  }
12038
12038
  }
12039
- const ta = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), kf = 64, Hc = {};
12039
+ const ta = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), kf = 64, Uc = {};
12040
12040
  let Ji = 0, dr = 0, en;
12041
12041
  function tn(f) {
12042
12042
  let e = "";
@@ -12050,17 +12050,17 @@ function ra() {
12050
12050
  return f !== en ? (Ji = 0, en = f) : f + "." + tn(Ji++);
12051
12051
  }
12052
12052
  for (; dr < kf; dr++)
12053
- Hc[ta[dr]] = dr;
12053
+ Uc[ta[dr]] = dr;
12054
12054
  let fa = !1;
12055
12055
  try {
12056
12056
  fa = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
12057
12057
  } catch {
12058
12058
  }
12059
- const Uc = fa;
12059
+ const $c = fa;
12060
12060
  function ia(f) {
12061
12061
  const e = f.xdomain;
12062
12062
  try {
12063
- if (typeof XMLHttpRequest < "u" && (!e || Uc))
12063
+ if (typeof XMLHttpRequest < "u" && (!e || $c))
12064
12064
  return new XMLHttpRequest();
12065
12065
  } catch {
12066
12066
  }
@@ -12070,14 +12070,14 @@ function ia(f) {
12070
12070
  } catch {
12071
12071
  }
12072
12072
  }
12073
- function $c() {
12073
+ function Wc() {
12074
12074
  }
12075
- const Wc = function() {
12075
+ const Yc = function() {
12076
12076
  return new ia({
12077
12077
  xdomain: !1
12078
12078
  }).responseType != null;
12079
12079
  }();
12080
- class Yc extends Zf {
12080
+ class Kc extends Zf {
12081
12081
  /**
12082
12082
  * XHR Polling constructor.
12083
12083
  *
@@ -12091,7 +12091,7 @@ class Yc extends Zf {
12091
12091
  a || (a = r ? "443" : "80"), this.xd = typeof location < "u" && e.hostname !== location.hostname || a !== e.port;
12092
12092
  }
12093
12093
  const t = e && e.forceBase64;
12094
- this.supportsBinary = Wc && !t, this.opts.withCredentials && (this.cookieJar = void 0);
12094
+ this.supportsBinary = Yc && !t, this.opts.withCredentials && (this.cookieJar = void 0);
12095
12095
  }
12096
12096
  get name() {
12097
12097
  return "polling";
@@ -12145,7 +12145,7 @@ class Yc extends Zf {
12145
12145
  return this.onClose({ description: "transport closed by the server" }), !1;
12146
12146
  this.onPacket(r);
12147
12147
  };
12148
- Sc(e, this.socket.binaryType).forEach(t), this.readyState !== "closed" && (this.polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this.poll());
12148
+ Dc(e, this.socket.binaryType).forEach(t), this.readyState !== "closed" && (this.polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this.poll());
12149
12149
  }
12150
12150
  /**
12151
12151
  * For polling, send a close packet.
@@ -12165,7 +12165,7 @@ class Yc extends Zf {
12165
12165
  * @protected
12166
12166
  */
12167
12167
  write(e) {
12168
- this.writable = !1, Fc(e, (t) => {
12168
+ this.writable = !1, Sc(e, (t) => {
12169
12169
  this.doWrite(t, () => {
12170
12170
  this.writable = !0, this.emitReserved("drain");
12171
12171
  });
@@ -12285,7 +12285,7 @@ class nt extends A0 {
12285
12285
  */
12286
12286
  cleanup(e) {
12287
12287
  if (!(typeof this.xhr > "u" || this.xhr === null)) {
12288
- if (this.xhr.onreadystatechange = $c, e)
12288
+ if (this.xhr.onreadystatechange = Wc, e)
12289
12289
  try {
12290
12290
  this.xhr.abort();
12291
12291
  } catch {
@@ -12325,8 +12325,8 @@ function rn() {
12325
12325
  for (let f in nt.requests)
12326
12326
  nt.requests.hasOwnProperty(f) && nt.requests[f].abort();
12327
12327
  }
12328
- const Gf = typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0), hr = K0.WebSocket || K0.MozWebSocket, fn = !0, Kc = "arraybuffer", nn = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
12329
- class jc extends Zf {
12328
+ const Gf = typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0), hr = K0.WebSocket || K0.MozWebSocket, fn = !0, jc = "arraybuffer", nn = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
12329
+ class Vc extends Zf {
12330
12330
  /**
12331
12331
  * WebSocket transport constructor.
12332
12332
  *
@@ -12402,7 +12402,7 @@ class jc extends Zf {
12402
12402
  return !!hr;
12403
12403
  }
12404
12404
  }
12405
- class Vc extends Zf {
12405
+ class Xc extends Zf {
12406
12406
  get name() {
12407
12407
  return "webtransport";
12408
12408
  }
@@ -12413,7 +12413,7 @@ class Vc extends Zf {
12413
12413
  this.onError("webtransport error", e);
12414
12414
  }), this.transport.ready.then(() => {
12415
12415
  this.transport.createBidirectionalStream().then((e) => {
12416
- const t = Rc(Number.MAX_SAFE_INTEGER, this.socket.binaryType), r = e.readable.pipeThrough(t).getReader(), a = Dc();
12416
+ const t = kc(Number.MAX_SAFE_INTEGER, this.socket.binaryType), r = e.readable.pipeThrough(t).getReader(), a = Rc();
12417
12417
  a.readable.pipeTo(e.writable), this.writer = a.writable.getWriter();
12418
12418
  const i = () => {
12419
12419
  r.read().then(({ done: x, value: u }) => {
@@ -12443,11 +12443,11 @@ class Vc extends Zf {
12443
12443
  (e = this.transport) === null || e === void 0 || e.close();
12444
12444
  }
12445
12445
  }
12446
- const Xc = {
12447
- websocket: jc,
12448
- webtransport: Vc,
12449
- polling: Yc
12450
- }, Zc = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, Gc = [
12446
+ const Zc = {
12447
+ websocket: Vc,
12448
+ webtransport: Xc,
12449
+ polling: Kc
12450
+ }, Gc = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, Qc = [
12451
12451
  "source",
12452
12452
  "protocol",
12453
12453
  "authority",
@@ -12468,16 +12468,16 @@ function Pf(f) {
12468
12468
  throw "URI too long";
12469
12469
  const e = f, t = f.indexOf("["), r = f.indexOf("]");
12470
12470
  t != -1 && r != -1 && (f = f.substring(0, t) + f.substring(t, r).replace(/:/g, ";") + f.substring(r, f.length));
12471
- let a = Zc.exec(f || ""), i = {}, y = 14;
12471
+ let a = Gc.exec(f || ""), i = {}, y = 14;
12472
12472
  for (; y--; )
12473
- i[Gc[y]] = a[y] || "";
12474
- return t != -1 && r != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = Qc(i, i.path), i.queryKey = Jc(i, i.query), i;
12473
+ i[Qc[y]] = a[y] || "";
12474
+ return t != -1 && r != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = Jc(i, i.path), i.queryKey = e1(i, i.query), i;
12475
12475
  }
12476
- function Qc(f, e) {
12476
+ function Jc(f, e) {
12477
12477
  const t = /\/{2,9}/g, r = e.replace(t, "/").split("/");
12478
12478
  return (e.slice(0, 1) == "/" || e.length === 0) && r.splice(0, 1), e.slice(-1) == "/" && r.splice(r.length - 1, 1), r;
12479
12479
  }
12480
- function Jc(f, e) {
12480
+ function e1(f, e) {
12481
12481
  const t = {};
12482
12482
  return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function(r, a, i) {
12483
12483
  a && (t[a] = i);
@@ -12491,7 +12491,7 @@ let na = class Tt extends A0 {
12491
12491
  * @param {Object} opts - options
12492
12492
  */
12493
12493
  constructor(e, t = {}) {
12494
- super(), this.binaryType = Kc, this.writeBuffer = [], e && typeof e == "object" && (t = e, e = null), e ? (e = Pf(e), t.hostname = e.host, t.secure = e.protocol === "https" || e.protocol === "wss", t.port = e.port, e.query && (t.query = e.query)) : t.host && (t.hostname = Pf(t.host).host), Pr(this, t), this.secure = t.secure != null ? t.secure : typeof location < "u" && location.protocol === "https:", t.hostname && !t.port && (t.port = this.secure ? "443" : "80"), this.hostname = t.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = t.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = t.transports || [
12494
+ super(), this.binaryType = jc, this.writeBuffer = [], e && typeof e == "object" && (t = e, e = null), e ? (e = Pf(e), t.hostname = e.host, t.secure = e.protocol === "https" || e.protocol === "wss", t.port = e.port, e.query && (t.query = e.query)) : t.host && (t.hostname = Pf(t.host).host), Pr(this, t), this.secure = t.secure != null ? t.secure : typeof location < "u" && location.protocol === "https:", t.hostname && !t.port && (t.port = this.secure ? "443" : "80"), this.hostname = t.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = t.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = t.transports || [
12495
12495
  "polling",
12496
12496
  "websocket",
12497
12497
  "webtransport"
@@ -12509,7 +12509,7 @@ let na = class Tt extends A0 {
12509
12509
  },
12510
12510
  transportOptions: {},
12511
12511
  closeOnBeforeunload: !1
12512
- }, t), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Nc(this.opts.query)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingTimeoutTimer = null, typeof addEventListener == "function" && (this.opts.closeOnBeforeunload && (this.beforeunloadEventListener = () => {
12512
+ }, t), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Lc(this.opts.query)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingTimeoutTimer = null, typeof addEventListener == "function" && (this.opts.closeOnBeforeunload && (this.beforeunloadEventListener = () => {
12513
12513
  this.transport && (this.transport.removeAllListeners(), this.transport.close());
12514
12514
  }, addEventListener("beforeunload", this.beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this.offlineEventListener = () => {
12515
12515
  this.onClose("transport close", {
@@ -12534,7 +12534,7 @@ let na = class Tt extends A0 {
12534
12534
  secure: this.secure,
12535
12535
  port: this.port
12536
12536
  }, this.opts.transportOptions[e]);
12537
- return new Xc[e](r);
12537
+ return new Zc[e](r);
12538
12538
  }
12539
12539
  /**
12540
12540
  * Initializes transport to use and starts probe.
@@ -12702,7 +12702,7 @@ let na = class Tt extends A0 {
12702
12702
  let t = 1;
12703
12703
  for (let r = 0; r < this.writeBuffer.length; r++) {
12704
12704
  const a = this.writeBuffer[r].data;
12705
- if (a && (t += Oc(a)), r > 0 && t > this.maxPayload)
12705
+ if (a && (t += zc(a)), r > 0 && t > this.maxPayload)
12706
12706
  return this.writeBuffer.slice(0, r);
12707
12707
  t += 2;
12708
12708
  }
@@ -12789,15 +12789,15 @@ let na = class Tt extends A0 {
12789
12789
  }
12790
12790
  };
12791
12791
  na.protocol = Jn;
12792
- function e1(f, e = "", t) {
12792
+ function t1(f, e = "", t) {
12793
12793
  let r = f;
12794
12794
  t = t || typeof location < "u" && location, f == null && (f = t.protocol + "//" + t.host), typeof f == "string" && (f.charAt(0) === "/" && (f.charAt(1) === "/" ? f = t.protocol + f : f = t.host + f), /^(https?|wss?):\/\//.test(f) || (typeof t < "u" ? f = t.protocol + "//" + f : f = "https://" + f), r = Pf(f)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
12795
12795
  const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
12796
12796
  return r.id = r.protocol + "://" + i + ":" + r.port + e, r.href = r.protocol + "://" + i + (t && t.port === r.port ? "" : ":" + r.port), r;
12797
12797
  }
12798
- const t1 = typeof ArrayBuffer == "function", r1 = (f) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(f) : f.buffer instanceof ArrayBuffer, aa = Object.prototype.toString, f1 = typeof Blob == "function" || typeof Blob < "u" && aa.call(Blob) === "[object BlobConstructor]", i1 = typeof File == "function" || typeof File < "u" && aa.call(File) === "[object FileConstructor]";
12798
+ const r1 = typeof ArrayBuffer == "function", f1 = (f) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(f) : f.buffer instanceof ArrayBuffer, aa = Object.prototype.toString, i1 = typeof Blob == "function" || typeof Blob < "u" && aa.call(Blob) === "[object BlobConstructor]", n1 = typeof File == "function" || typeof File < "u" && aa.call(File) === "[object FileConstructor]";
12799
12799
  function Qf(f) {
12800
- return t1 && (f instanceof ArrayBuffer || r1(f)) || f1 && f instanceof Blob || i1 && f instanceof File;
12800
+ return r1 && (f instanceof ArrayBuffer || f1(f)) || i1 && f instanceof Blob || n1 && f instanceof File;
12801
12801
  }
12802
12802
  function lr(f, e) {
12803
12803
  if (!f || typeof f != "object")
@@ -12817,7 +12817,7 @@ function lr(f, e) {
12817
12817
  return !0;
12818
12818
  return !1;
12819
12819
  }
12820
- function n1(f) {
12820
+ function a1(f) {
12821
12821
  const e = [], t = f.data, r = f;
12822
12822
  return r.data = If(t, e), r.attachments = e.length, { packet: r, buffers: e };
12823
12823
  }
@@ -12840,7 +12840,7 @@ function If(f, e) {
12840
12840
  }
12841
12841
  return f;
12842
12842
  }
12843
- function a1(f, e) {
12843
+ function s1(f, e) {
12844
12844
  return f.data = Tf(f.data, e), delete f.attachments, f;
12845
12845
  }
12846
12846
  function Tf(f, e) {
@@ -12858,7 +12858,7 @@ function Tf(f, e) {
12858
12858
  Object.prototype.hasOwnProperty.call(f, t) && (f[t] = Tf(f[t], e));
12859
12859
  return f;
12860
12860
  }
12861
- const s1 = [
12861
+ const o1 = [
12862
12862
  "connect",
12863
12863
  "connect_error",
12864
12864
  "disconnect",
@@ -12866,12 +12866,12 @@ const s1 = [
12866
12866
  "newListener",
12867
12867
  "removeListener"
12868
12868
  // used by the Node.js EventEmitter
12869
- ], o1 = 5;
12869
+ ], c1 = 5;
12870
12870
  var Ue;
12871
12871
  (function(f) {
12872
12872
  f[f.CONNECT = 0] = "CONNECT", f[f.DISCONNECT = 1] = "DISCONNECT", f[f.EVENT = 2] = "EVENT", f[f.ACK = 3] = "ACK", f[f.CONNECT_ERROR = 4] = "CONNECT_ERROR", f[f.BINARY_EVENT = 5] = "BINARY_EVENT", f[f.BINARY_ACK = 6] = "BINARY_ACK";
12873
12873
  })(Ue || (Ue = {}));
12874
- class c1 {
12874
+ class d1 {
12875
12875
  /**
12876
12876
  * Encoder constructor
12877
12877
  *
@@ -12907,7 +12907,7 @@ class c1 {
12907
12907
  * a list of buffers.
12908
12908
  */
12909
12909
  encodeAsBinary(e) {
12910
- const t = n1(e), r = this.encodeAsString(t.packet), a = t.buffers;
12910
+ const t = a1(e), r = this.encodeAsString(t.packet), a = t.buffers;
12911
12911
  return a.unshift(r), a;
12912
12912
  }
12913
12913
  }
@@ -12935,7 +12935,7 @@ class Jf extends A0 {
12935
12935
  throw new Error("got plaintext data when reconstructing a packet");
12936
12936
  t = this.decodeString(e);
12937
12937
  const r = t.type === Ue.BINARY_EVENT;
12938
- r || t.type === Ue.BINARY_ACK ? (t.type = r ? Ue.EVENT : Ue.ACK, this.reconstructor = new d1(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
12938
+ r || t.type === Ue.BINARY_ACK ? (t.type = r ? Ue.EVENT : Ue.ACK, this.reconstructor = new h1(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
12939
12939
  } else if (Qf(e) || e.base64)
12940
12940
  if (this.reconstructor)
12941
12941
  t = this.reconstructor.takeBinaryData(e), t && (this.reconstructor = null, super.emitReserved("decoded", t));
@@ -13013,7 +13013,7 @@ class Jf extends A0 {
13013
13013
  return typeof t == "string" || an(t);
13014
13014
  case Ue.EVENT:
13015
13015
  case Ue.BINARY_EVENT:
13016
- return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && s1.indexOf(t[0]) === -1);
13016
+ return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && o1.indexOf(t[0]) === -1);
13017
13017
  case Ue.ACK:
13018
13018
  case Ue.BINARY_ACK:
13019
13019
  return Array.isArray(t);
@@ -13026,7 +13026,7 @@ class Jf extends A0 {
13026
13026
  this.reconstructor && (this.reconstructor.finishedReconstruction(), this.reconstructor = null);
13027
13027
  }
13028
13028
  }
13029
- class d1 {
13029
+ class h1 {
13030
13030
  constructor(e) {
13031
13031
  this.packet = e, this.buffers = [], this.reconPack = e;
13032
13032
  }
@@ -13040,7 +13040,7 @@ class d1 {
13040
13040
  */
13041
13041
  takeBinaryData(e) {
13042
13042
  if (this.buffers.push(e), this.buffers.length === this.reconPack.attachments) {
13043
- const t = a1(this.reconPack, this.buffers);
13043
+ const t = s1(this.reconPack, this.buffers);
13044
13044
  return this.finishedReconstruction(), t;
13045
13045
  }
13046
13046
  return null;
@@ -13052,21 +13052,21 @@ class d1 {
13052
13052
  this.reconPack = null, this.buffers = [];
13053
13053
  }
13054
13054
  }
13055
- const h1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13055
+ const u1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13056
13056
  __proto__: null,
13057
13057
  Decoder: Jf,
13058
- Encoder: c1,
13058
+ Encoder: d1,
13059
13059
  get PacketType() {
13060
13060
  return Ue;
13061
13061
  },
13062
- protocol: o1
13062
+ protocol: c1
13063
13063
  }, Symbol.toStringTag, { value: "Module" }));
13064
13064
  function J0(f, e, t) {
13065
13065
  return f.on(e, t), function() {
13066
13066
  f.off(e, t);
13067
13067
  };
13068
13068
  }
13069
- const u1 = Object.freeze({
13069
+ const l1 = Object.freeze({
13070
13070
  connect: 1,
13071
13071
  connect_error: 1,
13072
13072
  disconnect: 1,
@@ -13190,7 +13190,7 @@ class sa extends A0 {
13190
13190
  * @return self
13191
13191
  */
13192
13192
  emit(e, ...t) {
13193
- if (u1.hasOwnProperty(e))
13193
+ if (l1.hasOwnProperty(e))
13194
13194
  throw new Error('"' + e.toString() + '" is a reserved event name');
13195
13195
  if (t.unshift(e), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
13196
13196
  return this._addToQueue(t), this;
@@ -13697,7 +13697,7 @@ class Of extends A0 {
13697
13697
  max: this.reconnectionDelayMax(),
13698
13698
  jitter: this.randomizationFactor()
13699
13699
  }), this.timeout(t.timeout == null ? 2e4 : t.timeout), this._readyState = "closed", this.uri = e;
13700
- const a = t.parser || h1;
13700
+ const a = t.parser || u1;
13701
13701
  this.encoder = new a.Encoder(), this.decoder = new a.Decoder(), this._autoConnect = t.autoConnect !== !1, this._autoConnect && this.open();
13702
13702
  }
13703
13703
  reconnection(e) {
@@ -13918,7 +13918,7 @@ class Of extends A0 {
13918
13918
  const er = {};
13919
13919
  function xr(f, e) {
13920
13920
  typeof f == "object" && (e = f, f = void 0), e = e || {};
13921
- const t = e1(f, e.path || "/socket.io"), r = t.source, a = t.id, i = t.path, y = er[a] && i in er[a].nsps, x = e.forceNew || e["force new connection"] || e.multiplex === !1 || y;
13921
+ const t = t1(f, e.path || "/socket.io"), r = t.source, a = t.id, i = t.path, y = er[a] && i in er[a].nsps, x = e.forceNew || e["force new connection"] || e.multiplex === !1 || y;
13922
13922
  let u;
13923
13923
  return x ? u = new Of(r, e) : (er[a] || (er[a] = new Of(r, e)), u = er[a]), t.query && !e.query && (e.query = t.queryKey), u.socket(t.path, e);
13924
13924
  }
@@ -13928,10 +13928,10 @@ Object.assign(xr, {
13928
13928
  io: xr,
13929
13929
  connect: xr
13930
13930
  });
13931
- const l1 = "http://159.138.233.132:8080", Ct = class Ct {
13931
+ const x1 = "http://159.138.233.132:8080", Ct = class Ct {
13932
13932
  constructor() {
13933
13933
  wt(this, "socket");
13934
- this.socket = xr(l1);
13934
+ this.socket = xr(x1);
13935
13935
  }
13936
13936
  static getInstance() {
13937
13937
  return Ct.instance || (Ct.instance = new Ct()), Ct.instance;
@@ -13939,7 +13939,7 @@ const l1 = "http://159.138.233.132:8080", Ct = class Ct {
13939
13939
  };
13940
13940
  wt(Ct, "instance");
13941
13941
  let zf = Ct;
13942
- class x1 {
13942
+ class v1 {
13943
13943
  constructor() {
13944
13944
  wt(this, "socketInstance");
13945
13945
  this.socketInstance = zf.getInstance();
@@ -13948,7 +13948,7 @@ class x1 {
13948
13948
  this.socketInstance.socket.emit("joinRoom", e);
13949
13949
  }
13950
13950
  leaveRoom(e) {
13951
- this.socketInstance.socket.emit("leaveRoom", e);
13951
+ this.socketInstance.socket.emit("leaveRoom", e), this.socketInstance.socket.disconnect();
13952
13952
  }
13953
13953
  confirmMessage(e, t) {
13954
13954
  return this.socketInstance.socket.emit("confirmMessage", e, t);
@@ -13967,8 +13967,8 @@ class x1 {
13967
13967
  e === "accountInfo" ? this.socketInstance.socket.off("accountInfo") : e === "requestMessage" ? this.socketInstance.socket.off("requestMessage") : e === "addressProvide" && this.socketInstance.socket.off("addressProvide");
13968
13968
  }
13969
13969
  }
13970
- const xt = new x1();
13971
- class v1 {
13970
+ const xt = new v1();
13971
+ class b1 {
13972
13972
  // 타입 가드 함수
13973
13973
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13974
13974
  isAccountCryptoType(e) {
@@ -14032,53 +14032,48 @@ Nonce: ${r}`, await this.sendMessage(e, t);
14032
14032
  }
14033
14033
  }
14034
14034
  }
14035
- const b1 = new v1();
14036
- class p1 {
14037
- generateQrCode(e, t) {
14038
- const r = ut.lib.WordArray.random(16).toString(ut.enc.Hex);
14039
- let a = "";
14040
- return e === "login" ? a = `zigap://login?roomId=${r}&dapp=${t}` : e === "send" ? a = `zigap://send?roomId=${r}&dapp=${t}` : e === "provide" && (a = `zigap://provide?roomId=${r}&dapp=${t}`), xt.joinRoom(r), {
14041
- qrCode: a,
14042
- roomId: r
14035
+ const p1 = new b1();
14036
+ class y1 {
14037
+ generateQrCode(e, t, r) {
14038
+ const a = ut.lib.WordArray.random(16).toString(ut.enc.Hex);
14039
+ let i = "";
14040
+ return e === "login" ? i = `http://172.30.1.61:3000/qrCode/scan?type=login&roomId=${a}&dapp=${t}&network=${r}` : e === "send" ? i = `zigap://send?roomId=${a}&dapp=${t}` : e === "provide" && (i = `zigap://provide?roomId=${a}&dapp=${t}`), xt.joinRoom(a), {
14041
+ qrCode: i,
14042
+ roomId: a
14043
14043
  };
14044
14044
  }
14045
14045
  }
14046
- const oa = new p1(), y1 = "data:image/svg+xml,%3csvg%20width='167'%20height='166'%20viewBox='0%200%20167%20166'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M116.052%20115.296H166.355H166.36V0H51.0675V50.3042H0.759995V165.6H116.052V115.296ZM90.3366%2065.3428L40.21%20115.296H40.4307L40.2551%20115.471H101.014V150.561H15.7981V65.3428H90.3366ZM76.7327%20100.257H151.317V15.0386H66.1006V50.1536L109.424%2050.3042H126.684L126.624%2050.364L126.669%2050.3642L113.846%2063.1431L76.7327%20100.257Z'%20fill='url(%23paint0_linear_2322_66)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2322_66'%20x1='167.74'%20y1='-2.07'%20x2='-3.37985'%20y2='172.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231349F8'/%3e%3cstop%20offset='1'%20stop-color='%235C13F8'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", E1 = ({ dapp: f, sigMessage: e, validTime: t, onReceive: r, ...a }) => {
14047
- const [i, y] = qf(!0), x = jn.generateNonce(16), { qrCode: u, roomId: o } = oa.generateQrCode("login", f);
14046
+ const oa = new y1(), ca = "data:image/svg+xml,%3csvg%20width='167'%20height='166'%20viewBox='0%200%20167%20166'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M116.052%20115.296H166.355H166.36V0H51.0675V50.3042H0.759995V165.6H116.052V115.296ZM90.3366%2065.3428L40.21%20115.296H40.4307L40.2551%20115.471H101.014V150.561H15.7981V65.3428H90.3366ZM76.7327%20100.257H151.317V15.0386H66.1006V50.1536L109.424%2050.3042H126.684L126.624%2050.364L126.669%2050.3642L113.846%2063.1431L76.7327%20100.257Z'%20fill='url(%23paint0_linear_2322_66)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2322_66'%20x1='167.74'%20y1='-2.07'%20x2='-3.37985'%20y2='172.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231349F8'/%3e%3cstop%20offset='1'%20stop-color='%235C13F8'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", E1 = ({ network: f, dapp: e, sigMessage: t, validTime: r, onReceive: a, isShowLogo: i = !0, ...y }) => {
14047
+ const [x, u] = qf(!0), o = jn.generateNonce(16), { qrCode: c, roomId: b } = oa.generateQrCode("login", e, f);
14048
14048
  return zt(() => {
14049
- const c = setTimeout(
14049
+ const v = setTimeout(
14050
14050
  () => {
14051
- xt.leaveRoom(o), y(!1);
14051
+ xt.leaveRoom(b), u(!1);
14052
14052
  },
14053
- t * 60 * 1e3
14053
+ r * 60 * 1e3
14054
14054
  );
14055
- return () => clearTimeout(c);
14056
- }, [o, t]), zt(() => {
14055
+ return () => clearTimeout(v);
14056
+ }, [b, r]), zt(() => {
14057
14057
  (async () => {
14058
14058
  try {
14059
- console.log("roomId", o);
14060
- const v = {
14059
+ console.log("roomId", b);
14060
+ const w = {
14061
14061
  isSuccess: !0,
14062
- address: (await b1.qrLogin(o, e, x)).address
14062
+ address: (await p1.qrLogin(b, t, o)).address
14063
14063
  };
14064
- r(v);
14064
+ a(w);
14065
14065
  } catch {
14066
- r({
14066
+ a({
14067
14067
  isSuccess: !1
14068
14068
  });
14069
14069
  }
14070
14070
  })();
14071
- }, [r, e]), i ? /* @__PURE__ */ vr.jsx(
14071
+ }, [a, t]), x ? /* @__PURE__ */ vr.jsx(
14072
14072
  ln,
14073
14073
  {
14074
- value: u,
14075
- imageSettings: {
14076
- src: y1,
14077
- height: 60,
14078
- width: 60,
14079
- excavate: !1
14080
- },
14081
- ...a
14074
+ value: c,
14075
+ ...i && { imageSettings: { src: ca, width: 60, height: 60, excavate: !1 } },
14076
+ ...y
14082
14077
  }
14083
14078
  ) : /* @__PURE__ */ vr.jsx("div", { children: "QR loading error" });
14084
14079
  };
@@ -14105,31 +14100,45 @@ class g1 {
14105
14100
  }
14106
14101
  }
14107
14102
  }
14108
- const m1 = new g1(), w1 = ({ dapp: f, validTime: e, onReceive: t, ...r }) => {
14109
- const [a, i] = qf(!0), { qrCode: y, roomId: x } = oa.generateQrCode("provide", f);
14103
+ const m1 = new g1(), w1 = ({
14104
+ network: f,
14105
+ dapp: e,
14106
+ validTime: t,
14107
+ onReceive: r,
14108
+ isShowLogo: a = !0,
14109
+ ...i
14110
+ }) => {
14111
+ const [y, x] = qf(!0), { qrCode: u, roomId: o } = oa.generateQrCode("provide", e, f);
14110
14112
  return zt(() => {
14111
- const u = setTimeout(
14113
+ const c = setTimeout(
14112
14114
  () => {
14113
- xt.leaveRoom(x), i(!1);
14115
+ xt.leaveRoom(o), x(!1);
14114
14116
  },
14115
- e * 60 * 1e3
14117
+ t * 60 * 1e3
14116
14118
  );
14117
- return () => clearTimeout(u);
14118
- }, [x, e]), zt(() => {
14119
+ return () => clearTimeout(c);
14120
+ }, [o, t]), zt(() => {
14119
14121
  (async () => {
14120
14122
  try {
14121
- const c = {
14123
+ const v = {
14122
14124
  isSuccess: !0,
14123
- address: (await m1.qrAddressProvide(x)).address
14125
+ address: (await m1.qrAddressProvide(o)).address
14124
14126
  };
14125
- t(c);
14127
+ r(v);
14126
14128
  } catch {
14127
- t({
14129
+ r({
14128
14130
  isSuccess: !1
14129
14131
  });
14130
14132
  }
14131
14133
  })();
14132
- }, [t]), a ? /* @__PURE__ */ vr.jsx(ln, { value: y, ...r }) : /* @__PURE__ */ vr.jsx("div", { children: "QR loading error" });
14134
+ }, [r]), y ? /* @__PURE__ */ vr.jsx(
14135
+ ln,
14136
+ {
14137
+ value: u,
14138
+ ...a && { imageSettings: { src: ca, width: 60, height: 60, excavate: !1 } },
14139
+ ...i
14140
+ }
14141
+ ) : /* @__PURE__ */ vr.jsx("div", { children: "QR loading error" });
14133
14142
  };
14134
14143
  export {
14135
14144
  w1 as AddressProvideQR,