@abaxx_tech/v-integration-react 1.2.0-dev.4 → 1.2.0-dev.6

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.
@@ -1,50 +1,64 @@
1
- import { jsx as P, jsxs as he, Fragment as Ve } from "react/jsx-runtime";
2
- import Nt, { createContext as qr, useState as ge, useContext as We, useRef as at, useCallback as Ie, useEffect as Ke } from "react";
3
- const je = qr({}), jr = ({
4
- clientId: V,
5
- apiUrl: z,
6
- children: ie
1
+ import { jsx as T, jsxs as se, Fragment as We } from "react/jsx-runtime";
2
+ import qt, { createContext as $r, useState as ge, useContext as Ze, useRef as Ge, useCallback as Ie, useEffect as je, Component as Fr } from "react";
3
+ const $e = $r({}), Ur = ({
4
+ clientId: k,
5
+ apiUrl: Q,
6
+ children: ee
7
7
  }) => {
8
- const [Z, q] = ge(""), [Y, $] = ge(""), [M, x] = ge(!1), [g, m] = ge(""), [C, j] = ge(""), [S, H] = ge(/* @__PURE__ */ new Date()), [B, D] = ge(""), [K, G] = ge(null), [J, O] = ge(null), w = Nt.useCallback(() => {
9
- q(""), $(""), x(!1), m(""), j(""), D(""), H(/* @__PURE__ */ new Date()), G(null), O(null);
8
+ const [Z, j] = ge(""), [X, F] = ge(""), [M, x] = ge(!1), [g, m] = ge(""), [E, $] = ge(""), [D, V] = ge(/* @__PURE__ */ new Date()), [N, O] = ge(""), [W, G] = ge(null), [Y, q] = ge(null), p = qt.useCallback(() => {
9
+ j(""), F(""), x(!1), m(""), $(""), O(""), V(/* @__PURE__ */ new Date()), G(null), q(null);
10
10
  }, []);
11
- return /* @__PURE__ */ P(
12
- je.Provider,
11
+ return /* @__PURE__ */ T(
12
+ $e.Provider,
13
13
  {
14
14
  value: {
15
- apiUrl: z,
16
- clientId: V,
15
+ apiUrl: Q,
16
+ clientId: k,
17
17
  identity: Z,
18
- setIdentity: q,
19
- authRequestId: Y,
20
- setAuthRequestId: $,
18
+ setIdentity: j,
19
+ authRequestId: X,
20
+ setAuthRequestId: F,
21
21
  isAuthenticating: M,
22
22
  setIsAuthenticating: x,
23
23
  codeVerifier: g,
24
24
  setCodeVerifier: m,
25
- codeChallenge: C,
26
- setCodeChallenge: j,
27
- authCode: B,
28
- setAuthCode: D,
29
- authRequestIdExpires: S,
30
- setAuthRequestIdExpires: H,
31
- token: K,
25
+ codeChallenge: E,
26
+ setCodeChallenge: $,
27
+ authCode: N,
28
+ setAuthCode: O,
29
+ authRequestIdExpires: D,
30
+ setAuthRequestIdExpires: V,
31
+ token: W,
32
32
  setToken: G,
33
- authError: J,
34
- setAuthError: O,
35
- resetState: w
33
+ authError: Y,
34
+ setAuthError: q,
35
+ resetState: p
36
36
  },
37
- children: ie
37
+ children: ee
38
38
  }
39
39
  );
40
40
  };
41
- function $r(V) {
42
- const z = new Uint8Array(V);
43
- return window.crypto.getRandomValues(z), z;
41
+ function Hr(k) {
42
+ const Q = new Uint8Array(k);
43
+ return window.crypto.getRandomValues(Q), Q;
44
44
  }
45
- function Dt(V) {
46
- const z = Array.from(V);
47
- return btoa(String.fromCharCode(...z)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
45
+ function kt(k) {
46
+ const Q = Array.from(k);
47
+ return btoa(String.fromCharCode(...Q)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
48
+ }
49
+ function it(k, Q) {
50
+ if (k)
51
+ try {
52
+ Q && Q.forEach(({ event: ee, handler: Z }) => {
53
+ try {
54
+ k.removeEventListener(ee, Z);
55
+ } catch (j) {
56
+ console.warn(`Failed to remove event listener for "${ee}":`, j);
57
+ }
58
+ }), k.onopen = null, k.onmessage = null, k.onerror = null, k.readyState !== EventSource.CLOSED && k.close();
59
+ } catch (ee) {
60
+ console.error("Error cleaning up EventSource:", ee);
61
+ }
48
62
  }
49
63
  const qe = {
50
64
  maxRetries: 3,
@@ -52,570 +66,590 @@ const qe = {
52
66
  maxDelayMs: 3e4,
53
67
  backoffMultiplier: 2
54
68
  };
55
- function Ur() {
69
+ function Vr() {
56
70
  const {
57
- apiUrl: V,
58
- clientId: z,
59
- authRequestId: ie,
71
+ apiUrl: k,
72
+ clientId: Q,
73
+ authRequestId: ee,
60
74
  // results of the successful auth
61
75
  setIdentity: Z,
62
- authCode: q,
63
- setAuthCode: Y,
76
+ authCode: j,
77
+ setAuthCode: X,
64
78
  // results of the successful begin auth
65
- setAuthRequestId: $,
79
+ setAuthRequestId: F,
66
80
  setAuthRequestIdExpires: M,
67
81
  setCodeChallenge: x,
68
82
  setCodeVerifier: g,
69
83
  codeChallenge: m,
70
- codeVerifier: C,
71
- setIsAuthenticating: j,
72
- token: S,
73
- setToken: H,
74
- setAuthError: B
75
- } = We(je), D = at(null), K = at(""), G = at(0), J = at(null), O = Ie((c) => {
84
+ codeVerifier: E,
85
+ setIsAuthenticating: $,
86
+ token: D,
87
+ setToken: V,
88
+ setAuthError: N
89
+ } = Ze($e), O = Ge(null), W = Ge(""), G = Ge(0), Y = Ge(null), q = Ge(null), p = Ie((a) => {
76
90
  try {
77
- let a;
91
+ let s;
78
92
  try {
79
- a = JSON.parse(c.data);
93
+ s = JSON.parse(a.data);
80
94
  } catch {
81
- a = { type: c.type, message: c.data };
95
+ s = { type: a.type, message: a.data };
82
96
  }
83
- switch (c.type) {
97
+ switch (a.type) {
84
98
  case "start": {
85
- a.request_id && a.expires && ($(a.request_id), K.current = a.request_id, M(new Date(a.expires)));
99
+ s.request_id && s.expires && (F(s.request_id), W.current = s.request_id, M(new Date(s.expires)));
86
100
  break;
87
101
  }
88
102
  case "approved": {
89
- a.code && a.identity && a.approved && a.request_id && a.request_id == K.current && (D.current && (console.info("Closing SSE connection after approval"), D.current.close(), D.current = null), Y(a.code), Z(a.identity), j(!0));
103
+ if (s.code && s.identity && s.approved && s.request_id && s.request_id == W.current) {
104
+ const n = O.current, t = q.current;
105
+ n && (console.info("Closing SSE connection after approval"), it(n, t ? [
106
+ { event: "start", handler: t },
107
+ { event: "approved", handler: t }
108
+ ] : void 0), O.current = null), X(s.code), Z(s.identity), $(!0);
109
+ }
90
110
  break;
91
111
  }
92
112
  default:
93
113
  break;
94
114
  }
95
- } catch (a) {
96
- console.error("Error parsing SSE message:", a);
115
+ } catch (s) {
116
+ console.error("Error parsing SSE message:", s);
97
117
  }
98
- }, [$, M, Y, Z, j]);
99
- Ke(() => {
118
+ }, [F, M, X, Z, $]);
119
+ je(() => {
120
+ q.current = p;
121
+ }, [p]), je(() => {
100
122
  if (m)
101
123
  return;
102
- let c = !1;
124
+ let a = !1;
103
125
  return (async () => {
104
- const h = $r(64), n = await window.crypto.subtle.digest("SHA-256", h);
105
- if (!c) {
106
- const t = Dt(new Uint8Array(n)), p = Dt(h);
107
- x(t), g(p);
126
+ const n = Hr(64), t = await window.crypto.subtle.digest("SHA-256", n);
127
+ if (!a) {
128
+ const v = kt(new Uint8Array(t)), o = kt(n);
129
+ x(v), g(o);
108
130
  }
109
131
  })(), () => {
110
- c = !0;
132
+ a = !0;
111
133
  };
112
134
  }, [m, x, g]);
113
- const w = Ie((c) => {
114
- const a = qe.initialDelayMs * Math.pow(qe.backoffMultiplier, c);
115
- return Math.min(a, qe.maxDelayMs);
116
- }, []), b = Ie(() => {
117
- if (!(S || D.current)) {
118
- B(null);
135
+ const b = Ie((a) => {
136
+ const s = qe.initialDelayMs * Math.pow(qe.backoffMultiplier, a);
137
+ return Math.min(s, qe.maxDelayMs);
138
+ }, []), d = Ie(() => {
139
+ if (!(D || O.current)) {
140
+ N(null);
119
141
  try {
120
- const c = `${V}/v-plus/auth/start?cid=${z}`, a = new EventSource(c);
121
- D.current = a, a.onopen = () => {
122
- G.current = 0, B(null), console.info("SSE connection established");
123
- }, a.onmessage = O, a.addEventListener("start", O), a.addEventListener("approved", O), a.onerror = () => {
124
- if (D.current && (D.current.close(), D.current = null), S) {
142
+ const a = `${k}/v-plus/auth/start?cid=${Q}`, s = new EventSource(a);
143
+ O.current = s, s.onopen = () => {
144
+ G.current = 0, N(null), console.info("SSE connection established");
145
+ }, s.onmessage = p, s.addEventListener("start", p), s.addEventListener("approved", p), s.onerror = () => {
146
+ const n = O.current, t = q.current;
147
+ if (n && (it(n, t ? [
148
+ { event: "start", handler: t },
149
+ { event: "approved", handler: t }
150
+ ] : void 0), O.current = null), D) {
125
151
  console.info("SSE connection closed - already authenticated");
126
152
  return;
127
153
  }
128
- const h = G.current;
129
- if (h < qe.maxRetries) {
130
- const n = w(h);
131
- G.current = h + 1, console.info(
132
- `SSE connection error. Retrying in ${n}ms (attempt ${h + 1}/${qe.maxRetries})`
133
- ), B(
134
- `Connection lost. Reconnecting... (attempt ${h + 1}/${qe.maxRetries})`
135
- ), J.current = setTimeout(() => {
136
- b();
137
- }, n);
154
+ const v = G.current;
155
+ if (v < qe.maxRetries) {
156
+ const o = b(v);
157
+ G.current = v + 1, console.info(
158
+ `SSE connection error. Retrying in ${o}ms (attempt ${v + 1}/${qe.maxRetries})`
159
+ ), N(
160
+ `Connection lost. Reconnecting... (attempt ${v + 1}/${qe.maxRetries})`
161
+ ), Y.current = setTimeout(() => {
162
+ d();
163
+ }, o);
138
164
  } else
139
- console.error("SSE connection failed after maximum retry attempts"), B(
165
+ console.error("SSE connection failed after maximum retry attempts"), N(
140
166
  "Unable to establish connection. Please check your network and try again."
141
167
  );
142
168
  };
143
- } catch (c) {
144
- console.error("SSE connection setup failed:", c), B(`Connection setup failed: ${c}`), D.current = null;
169
+ } catch (a) {
170
+ console.error("SSE connection setup failed:", a), N(`Connection setup failed: ${a}`), O.current = null;
145
171
  }
146
172
  }
147
- }, [S, V, z, O, w, B]);
148
- Ke(() => {
149
- if (S) {
150
- D.current && (console.info("Closing existing SSE connection"), D.current.close(), D.current = null), J.current && (clearTimeout(J.current), J.current = null);
173
+ }, [D, k, Q, p, b, N]);
174
+ je(() => {
175
+ if (D) {
176
+ const a = O.current, s = q.current;
177
+ a && (console.info("Closing existing SSE connection"), it(a, s ? [
178
+ { event: "start", handler: s },
179
+ { event: "approved", handler: s }
180
+ ] : void 0), O.current = null), Y.current && (clearTimeout(Y.current), Y.current = null);
151
181
  return;
152
182
  }
153
- if (!(!m || D.current))
154
- return b(), () => {
155
- D.current && (D.current.close(), D.current = null), J.current && (clearTimeout(J.current), J.current = null), G.current = 0;
183
+ if (!(!m || O.current))
184
+ return d(), () => {
185
+ const a = O.current, s = q.current;
186
+ a && (console.info("Cleaning up SSE connection on unmount"), it(a, s ? [
187
+ { event: "start", handler: s },
188
+ { event: "approved", handler: s }
189
+ ] : void 0), O.current = null), Y.current && (clearTimeout(Y.current), Y.current = null), G.current = 0;
156
190
  };
157
- }, [S, m, b]);
158
- const d = Ie(async (c, a, h) => {
191
+ }, [D, m, d, p]);
192
+ const w = Ie(async (a, s, n) => {
159
193
  try {
160
- const t = await (await fetch(`${V}/v-plus/auth/token?cid=${z}`, {
194
+ const v = await (await fetch(`${k}/v-plus/auth/token?cid=${Q}`, {
161
195
  method: "POST",
162
196
  headers: {
163
197
  "Content-Type": "application/json"
164
198
  },
165
199
  body: JSON.stringify({
166
- auth_code: c,
167
- request_id: a,
168
- code_verifier: h
200
+ auth_code: a,
201
+ request_id: s,
202
+ code_verifier: n
169
203
  })
170
204
  })).json();
171
- if (t.token)
172
- H(t.token), j(!1);
205
+ if (v.token)
206
+ V(v.token), $(!1);
173
207
  else
174
208
  throw new Error("No token received");
175
- } catch (n) {
176
- console.error("Error fetching token:", n), j(!1), B(`Failed to obtain auth token: ${n}`), Y("");
209
+ } catch (t) {
210
+ console.error("Error fetching token:", t), $(!1), N(`Failed to obtain auth token: ${t}`), X("");
177
211
  }
178
- }, [V, z, H, j, B, Y]);
179
- return Ke(() => {
180
- q && d(q, ie, C);
181
- }, [q, C, ie, d]), null;
212
+ }, [k, Q, V, $, N, X]);
213
+ return je(() => {
214
+ j && w(j, ee, E);
215
+ }, [j, E, ee, w]), null;
182
216
  }
183
- const Kr = ({
184
- clientId: V,
185
- apiUrl: z,
186
- children: ie
187
- }) => /* @__PURE__ */ he(jr, { apiUrl: z, clientId: V, children: [
188
- /* @__PURE__ */ P(Ur, {}),
189
- ie
217
+ const zr = ({
218
+ clientId: k,
219
+ apiUrl: Q,
220
+ children: ee
221
+ }) => /* @__PURE__ */ se(Ur, { apiUrl: Q, clientId: k, children: [
222
+ /* @__PURE__ */ T(Vr, {}),
223
+ ee
190
224
  ] });
191
- var it = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Te = {}, Qe = { exports: {} };
192
- Qe.exports;
193
- var Lt;
194
- function Fr() {
195
- return Lt || (Lt = 1, function(V, z) {
196
- var ie = 200, Z = "__lodash_hash_undefined__", q = 1, Y = 2, $ = 9007199254740991, M = "[object Arguments]", x = "[object Array]", g = "[object AsyncFunction]", m = "[object Boolean]", C = "[object Date]", j = "[object Error]", S = "[object Function]", H = "[object GeneratorFunction]", B = "[object Map]", D = "[object Number]", K = "[object Null]", G = "[object Object]", J = "[object Promise]", O = "[object Proxy]", w = "[object RegExp]", b = "[object Set]", d = "[object String]", c = "[object Symbol]", a = "[object Undefined]", h = "[object WeakMap]", n = "[object ArrayBuffer]", t = "[object DataView]", p = "[object Float32Array]", o = "[object Float64Array]", y = "[object Int8Array]", R = "[object Int16Array]", T = "[object Int32Array]", W = "[object Uint8Array]", U = "[object Uint8ClampedArray]", re = "[object Uint16Array]", oe = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, k = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, Q = {};
197
- Q[p] = Q[o] = Q[y] = Q[R] = Q[T] = Q[W] = Q[U] = Q[re] = Q[oe] = !0, Q[M] = Q[x] = Q[n] = Q[m] = Q[t] = Q[C] = Q[j] = Q[S] = Q[B] = Q[D] = Q[G] = Q[w] = Q[b] = Q[d] = Q[h] = !1;
198
- var se = typeof it == "object" && it && it.Object === Object && it, _e = typeof self == "object" && self && self.Object === Object && self, s = se || _e || Function("return this")(), f = z && !z.nodeType && z, i = f && !0 && V && !V.nodeType && V, u = i && i.exports === f, v = u && se.process, _ = function() {
225
+ var ot = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ce = {}, Ke = { exports: {} };
226
+ Ke.exports;
227
+ var Nt;
228
+ function Qr() {
229
+ return Nt || (Nt = 1, function(k, Q) {
230
+ var ee = 200, Z = "__lodash_hash_undefined__", j = 1, X = 2, F = 9007199254740991, M = "[object Arguments]", x = "[object Array]", g = "[object AsyncFunction]", m = "[object Boolean]", E = "[object Date]", $ = "[object Error]", D = "[object Function]", V = "[object GeneratorFunction]", N = "[object Map]", O = "[object Number]", W = "[object Null]", G = "[object Object]", Y = "[object Promise]", q = "[object Proxy]", p = "[object RegExp]", b = "[object Set]", d = "[object String]", w = "[object Symbol]", a = "[object Undefined]", s = "[object WeakMap]", n = "[object ArrayBuffer]", t = "[object DataView]", v = "[object Float32Array]", o = "[object Float64Array]", y = "[object Int8Array]", S = "[object Int16Array]", C = "[object Int32Array]", J = "[object Uint8Array]", U = "[object Uint8ClampedArray]", ne = "[object Uint16Array]", oe = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, P = /^\[object .+?Constructor\]$/, le = /^(?:0|[1-9]\d*)$/, K = {};
231
+ K[v] = K[o] = K[y] = K[S] = K[C] = K[J] = K[U] = K[ne] = K[oe] = !0, K[M] = K[x] = K[n] = K[m] = K[t] = K[E] = K[$] = K[D] = K[N] = K[O] = K[G] = K[p] = K[b] = K[d] = K[s] = !1;
232
+ var fe = typeof ot == "object" && ot && ot.Object === Object && ot, _e = typeof self == "object" && self && self.Object === Object && self, f = fe || _e || Function("return this")(), u = Q && !Q.nodeType && Q, i = u && !0 && k && !k.nodeType && k, l = i && i.exports === u, h = l && fe.process, _ = function() {
199
233
  try {
200
- return v && v.binding && v.binding("util");
234
+ return h && h.binding && h.binding("util");
201
235
  } catch {
202
236
  }
203
- }(), I = _ && _.isTypedArray;
204
- function E(e, r) {
205
- for (var l = -1, A = e == null ? 0 : e.length, te = 0, F = []; ++l < A; ) {
206
- var ae = e[l];
207
- r(ae, l, e) && (F[te++] = ae);
237
+ }(), R = _ && _.isTypedArray;
238
+ function I(e, r) {
239
+ for (var c = -1, A = e == null ? 0 : e.length, re = 0, H = []; ++c < A; ) {
240
+ var ie = e[c];
241
+ r(ie, c, e) && (H[re++] = ie);
208
242
  }
209
- return F;
243
+ return H;
210
244
  }
211
- function X(e, r) {
212
- for (var l = -1, A = r.length, te = e.length; ++l < A; )
213
- e[te + l] = r[l];
245
+ function z(e, r) {
246
+ for (var c = -1, A = r.length, re = e.length; ++c < A; )
247
+ e[re + c] = r[c];
214
248
  return e;
215
249
  }
216
- function ee(e, r) {
217
- for (var l = -1, A = e == null ? 0 : e.length; ++l < A; )
218
- if (r(e[l], l, e))
250
+ function te(e, r) {
251
+ for (var c = -1, A = e == null ? 0 : e.length; ++c < A; )
252
+ if (r(e[c], c, e))
219
253
  return !0;
220
254
  return !1;
221
255
  }
222
- function N(e, r) {
223
- for (var l = -1, A = Array(e); ++l < e; )
224
- A[l] = r(l);
256
+ function B(e, r) {
257
+ for (var c = -1, A = Array(e); ++c < e; )
258
+ A[c] = r(c);
225
259
  return A;
226
260
  }
227
- function le(e) {
261
+ function ce(e) {
228
262
  return function(r) {
229
263
  return e(r);
230
264
  };
231
265
  }
232
- function ce(e, r) {
266
+ function ve(e, r) {
233
267
  return e.has(r);
234
268
  }
235
269
  function ke(e, r) {
236
270
  return e == null ? void 0 : e[r];
237
271
  }
238
- function Be(e) {
239
- var r = -1, l = Array(e.size);
240
- return e.forEach(function(A, te) {
241
- l[++r] = [te, A];
242
- }), l;
272
+ function Ne(e) {
273
+ var r = -1, c = Array(e.size);
274
+ return e.forEach(function(A, re) {
275
+ c[++r] = [re, A];
276
+ }), c;
243
277
  }
244
- function Ze(e, r) {
245
- return function(l) {
246
- return e(r(l));
278
+ function Je(e, r) {
279
+ return function(c) {
280
+ return e(r(c));
247
281
  };
248
282
  }
249
- function $e(e) {
250
- var r = -1, l = Array(e.size);
283
+ function Fe(e) {
284
+ var r = -1, c = Array(e.size);
251
285
  return e.forEach(function(A) {
252
- l[++r] = A;
253
- }), l;
286
+ c[++r] = A;
287
+ }), c;
254
288
  }
255
- var Ne = Array.prototype, jt = Function.prototype, Je = Object.prototype, ot = s["__core-js_shared__"], dt = jt.toString, be = Je.hasOwnProperty, gt = function() {
256
- var e = /[^.]+$/.exec(ot && ot.keys && ot.keys.IE_PROTO || "");
289
+ var Be = Array.prototype, Ft = Function.prototype, Ye = Object.prototype, st = f["__core-js_shared__"], pt = Ft.toString, be = Ye.hasOwnProperty, yt = function() {
290
+ var e = /[^.]+$/.exec(st && st.keys && st.keys.IE_PROTO || "");
257
291
  return e ? "Symbol(src)_1." + e : "";
258
- }(), pt = Je.toString, $t = RegExp(
259
- "^" + dt.call(be).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
260
- ), yt = u ? s.Buffer : void 0, Ye = s.Symbol, xt = s.Uint8Array, wt = Je.propertyIsEnumerable, Ut = Ne.splice, Re = Ye ? Ye.toStringTag : void 0, bt = Object.getOwnPropertySymbols, Ft = yt ? yt.isBuffer : void 0, Ht = Ze(Object.keys, Object), st = Oe(s, "DataView"), Ue = Oe(s, "Map"), ft = Oe(s, "Promise"), ut = Oe(s, "Set"), lt = Oe(s, "WeakMap"), Fe = Oe(Object, "create"), Gt = De(st), Qt = De(Ue), Vt = De(ft), Kt = De(ut), Wt = De(lt), _t = Ye ? Ye.prototype : void 0, ct = _t ? _t.valueOf : void 0;
261
- function Pe(e) {
262
- var r = -1, l = e == null ? 0 : e.length;
263
- for (this.clear(); ++r < l; ) {
292
+ }(), xt = Ye.toString, Ut = RegExp(
293
+ "^" + pt.call(be).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
294
+ ), wt = l ? f.Buffer : void 0, Xe = f.Symbol, bt = f.Uint8Array, _t = Ye.propertyIsEnumerable, Ht = Be.splice, Re = Xe ? Xe.toStringTag : void 0, mt = Object.getOwnPropertySymbols, Vt = wt ? wt.isBuffer : void 0, Qt = Je(Object.keys, Object), ft = Oe(f, "DataView"), Ue = Oe(f, "Map"), ut = Oe(f, "Promise"), lt = Oe(f, "Set"), ct = Oe(f, "WeakMap"), He = Oe(Object, "create"), Gt = Le(ft), Kt = Le(Ue), Wt = Le(ut), Zt = Le(lt), Jt = Le(ct), At = Xe ? Xe.prototype : void 0, vt = At ? At.valueOf : void 0;
295
+ function Se(e) {
296
+ var r = -1, c = e == null ? 0 : e.length;
297
+ for (this.clear(); ++r < c; ) {
264
298
  var A = e[r];
265
299
  this.set(A[0], A[1]);
266
300
  }
267
301
  }
268
- function Zt() {
269
- this.__data__ = Fe ? Fe(null) : {}, this.size = 0;
302
+ function Yt() {
303
+ this.__data__ = He ? He(null) : {}, this.size = 0;
270
304
  }
271
- function Jt(e) {
305
+ function Xt(e) {
272
306
  var r = this.has(e) && delete this.__data__[e];
273
307
  return this.size -= r ? 1 : 0, r;
274
308
  }
275
- function Yt(e) {
309
+ function zt(e) {
276
310
  var r = this.__data__;
277
- if (Fe) {
278
- var l = r[e];
279
- return l === Z ? void 0 : l;
311
+ if (He) {
312
+ var c = r[e];
313
+ return c === Z ? void 0 : c;
280
314
  }
281
315
  return be.call(r, e) ? r[e] : void 0;
282
316
  }
283
- function Xt(e) {
317
+ function er(e) {
284
318
  var r = this.__data__;
285
- return Fe ? r[e] !== void 0 : be.call(r, e);
319
+ return He ? r[e] !== void 0 : be.call(r, e);
286
320
  }
287
- function zt(e, r) {
288
- var l = this.__data__;
289
- return this.size += this.has(e) ? 0 : 1, l[e] = Fe && r === void 0 ? Z : r, this;
321
+ function tr(e, r) {
322
+ var c = this.__data__;
323
+ return this.size += this.has(e) ? 0 : 1, c[e] = He && r === void 0 ? Z : r, this;
290
324
  }
291
- Pe.prototype.clear = Zt, Pe.prototype.delete = Jt, Pe.prototype.get = Yt, Pe.prototype.has = Xt, Pe.prototype.set = zt;
325
+ Se.prototype.clear = Yt, Se.prototype.delete = Xt, Se.prototype.get = zt, Se.prototype.has = er, Se.prototype.set = tr;
292
326
  function me(e) {
293
- var r = -1, l = e == null ? 0 : e.length;
294
- for (this.clear(); ++r < l; ) {
327
+ var r = -1, c = e == null ? 0 : e.length;
328
+ for (this.clear(); ++r < c; ) {
295
329
  var A = e[r];
296
330
  this.set(A[0], A[1]);
297
331
  }
298
332
  }
299
- function er() {
333
+ function rr() {
300
334
  this.__data__ = [], this.size = 0;
301
335
  }
302
- function tr(e) {
303
- var r = this.__data__, l = ze(r, e);
304
- if (l < 0)
336
+ function nr(e) {
337
+ var r = this.__data__, c = et(r, e);
338
+ if (c < 0)
305
339
  return !1;
306
340
  var A = r.length - 1;
307
- return l == A ? r.pop() : Ut.call(r, l, 1), --this.size, !0;
341
+ return c == A ? r.pop() : Ht.call(r, c, 1), --this.size, !0;
308
342
  }
309
- function rr(e) {
310
- var r = this.__data__, l = ze(r, e);
311
- return l < 0 ? void 0 : r[l][1];
343
+ function ar(e) {
344
+ var r = this.__data__, c = et(r, e);
345
+ return c < 0 ? void 0 : r[c][1];
312
346
  }
313
- function nr(e) {
314
- return ze(this.__data__, e) > -1;
347
+ function ir(e) {
348
+ return et(this.__data__, e) > -1;
315
349
  }
316
- function ar(e, r) {
317
- var l = this.__data__, A = ze(l, e);
318
- return A < 0 ? (++this.size, l.push([e, r])) : l[A][1] = r, this;
350
+ function or(e, r) {
351
+ var c = this.__data__, A = et(c, e);
352
+ return A < 0 ? (++this.size, c.push([e, r])) : c[A][1] = r, this;
319
353
  }
320
- me.prototype.clear = er, me.prototype.delete = tr, me.prototype.get = rr, me.prototype.has = nr, me.prototype.set = ar;
321
- function Se(e) {
322
- var r = -1, l = e == null ? 0 : e.length;
323
- for (this.clear(); ++r < l; ) {
354
+ me.prototype.clear = rr, me.prototype.delete = nr, me.prototype.get = ar, me.prototype.has = ir, me.prototype.set = or;
355
+ function De(e) {
356
+ var r = -1, c = e == null ? 0 : e.length;
357
+ for (this.clear(); ++r < c; ) {
324
358
  var A = e[r];
325
359
  this.set(A[0], A[1]);
326
360
  }
327
361
  }
328
- function ir() {
362
+ function sr() {
329
363
  this.size = 0, this.__data__ = {
330
- hash: new Pe(),
364
+ hash: new Se(),
331
365
  map: new (Ue || me)(),
332
- string: new Pe()
366
+ string: new Se()
333
367
  };
334
368
  }
335
- function or(e) {
336
- var r = et(this, e).delete(e);
369
+ function fr(e) {
370
+ var r = tt(this, e).delete(e);
337
371
  return this.size -= r ? 1 : 0, r;
338
372
  }
339
- function sr(e) {
340
- return et(this, e).get(e);
373
+ function ur(e) {
374
+ return tt(this, e).get(e);
341
375
  }
342
- function fr(e) {
343
- return et(this, e).has(e);
376
+ function lr(e) {
377
+ return tt(this, e).has(e);
344
378
  }
345
- function ur(e, r) {
346
- var l = et(this, e), A = l.size;
347
- return l.set(e, r), this.size += l.size == A ? 0 : 1, this;
379
+ function cr(e, r) {
380
+ var c = tt(this, e), A = c.size;
381
+ return c.set(e, r), this.size += c.size == A ? 0 : 1, this;
348
382
  }
349
- Se.prototype.clear = ir, Se.prototype.delete = or, Se.prototype.get = sr, Se.prototype.has = fr, Se.prototype.set = ur;
350
- function Xe(e) {
351
- var r = -1, l = e == null ? 0 : e.length;
352
- for (this.__data__ = new Se(); ++r < l; )
383
+ De.prototype.clear = sr, De.prototype.delete = fr, De.prototype.get = ur, De.prototype.has = lr, De.prototype.set = cr;
384
+ function ze(e) {
385
+ var r = -1, c = e == null ? 0 : e.length;
386
+ for (this.__data__ = new De(); ++r < c; )
353
387
  this.add(e[r]);
354
388
  }
355
- function lr(e) {
389
+ function vr(e) {
356
390
  return this.__data__.set(e, Z), this;
357
391
  }
358
- function cr(e) {
392
+ function hr(e) {
359
393
  return this.__data__.has(e);
360
394
  }
361
- Xe.prototype.add = Xe.prototype.push = lr, Xe.prototype.has = cr;
362
- function Ce(e) {
395
+ ze.prototype.add = ze.prototype.push = vr, ze.prototype.has = hr;
396
+ function Te(e) {
363
397
  var r = this.__data__ = new me(e);
364
398
  this.size = r.size;
365
399
  }
366
- function vr() {
400
+ function dr() {
367
401
  this.__data__ = new me(), this.size = 0;
368
402
  }
369
- function hr(e) {
370
- var r = this.__data__, l = r.delete(e);
371
- return this.size = r.size, l;
403
+ function gr(e) {
404
+ var r = this.__data__, c = r.delete(e);
405
+ return this.size = r.size, c;
372
406
  }
373
- function dr(e) {
407
+ function pr(e) {
374
408
  return this.__data__.get(e);
375
409
  }
376
- function gr(e) {
410
+ function yr(e) {
377
411
  return this.__data__.has(e);
378
412
  }
379
- function pr(e, r) {
380
- var l = this.__data__;
381
- if (l instanceof me) {
382
- var A = l.__data__;
383
- if (!Ue || A.length < ie - 1)
384
- return A.push([e, r]), this.size = ++l.size, this;
385
- l = this.__data__ = new Se(A);
413
+ function xr(e, r) {
414
+ var c = this.__data__;
415
+ if (c instanceof me) {
416
+ var A = c.__data__;
417
+ if (!Ue || A.length < ee - 1)
418
+ return A.push([e, r]), this.size = ++c.size, this;
419
+ c = this.__data__ = new De(A);
386
420
  }
387
- return l.set(e, r), this.size = l.size, this;
388
- }
389
- Ce.prototype.clear = vr, Ce.prototype.delete = hr, Ce.prototype.get = dr, Ce.prototype.has = gr, Ce.prototype.set = pr;
390
- function yr(e, r) {
391
- var l = tt(e), A = !l && Dr(e), te = !l && !A && vt(e), F = !l && !A && !te && Pt(e), ae = l || A || te || F, fe = ae ? N(e.length, String) : [], ve = fe.length;
392
- for (var ne in e)
393
- be.call(e, ne) && !(ae && // Safari 9 has enumerable `arguments.length` in strict mode.
394
- (ne == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
395
- te && (ne == "offset" || ne == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
396
- F && (ne == "buffer" || ne == "byteLength" || ne == "byteOffset") || // Skip index properties.
397
- Er(ne, ve))) && fe.push(ne);
398
- return fe;
399
- }
400
- function ze(e, r) {
401
- for (var l = e.length; l--; )
402
- if (Mt(e[l][0], r))
403
- return l;
421
+ return c.set(e, r), this.size = c.size, this;
422
+ }
423
+ Te.prototype.clear = dr, Te.prototype.delete = gr, Te.prototype.get = pr, Te.prototype.has = yr, Te.prototype.set = xr;
424
+ function wr(e, r) {
425
+ var c = rt(e), A = !c && kr(e), re = !c && !A && ht(e), H = !c && !A && !re && Lt(e), ie = c || A || re || H, ue = ie ? B(e.length, String) : [], he = ue.length;
426
+ for (var ae in e)
427
+ be.call(e, ae) && !(ie && // Safari 9 has enumerable `arguments.length` in strict mode.
428
+ (ae == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
429
+ re && (ae == "offset" || ae == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
430
+ H && (ae == "buffer" || ae == "byteLength" || ae == "byteOffset") || // Skip index properties.
431
+ Rr(ae, he))) && ue.push(ae);
432
+ return ue;
433
+ }
434
+ function et(e, r) {
435
+ for (var c = e.length; c--; )
436
+ if (It(e[c][0], r))
437
+ return c;
404
438
  return -1;
405
439
  }
406
- function xr(e, r, l) {
440
+ function br(e, r, c) {
407
441
  var A = r(e);
408
- return tt(e) ? A : X(A, l(e));
442
+ return rt(e) ? A : z(A, c(e));
409
443
  }
410
- function He(e) {
411
- return e == null ? e === void 0 ? a : K : Re && Re in Object(e) ? Cr(e) : Sr(e);
444
+ function Ve(e) {
445
+ return e == null ? e === void 0 ? a : W : Re && Re in Object(e) ? Mr(e) : Pr(e);
412
446
  }
413
- function mt(e) {
414
- return Ge(e) && He(e) == M;
447
+ function Ct(e) {
448
+ return Qe(e) && Ve(e) == M;
415
449
  }
416
- function At(e, r, l, A, te) {
417
- return e === r ? !0 : e == null || r == null || !Ge(e) && !Ge(r) ? e !== e && r !== r : wr(e, r, l, A, At, te);
450
+ function Tt(e, r, c, A, re) {
451
+ return e === r ? !0 : e == null || r == null || !Qe(e) && !Qe(r) ? e !== e && r !== r : _r(e, r, c, A, Tt, re);
418
452
  }
419
- function wr(e, r, l, A, te, F) {
420
- var ae = tt(e), fe = tt(r), ve = ae ? x : Me(e), ne = fe ? x : Me(r);
421
- ve = ve == M ? G : ve, ne = ne == M ? G : ne;
422
- var pe = ve == G, we = ne == G, de = ve == ne;
423
- if (de && vt(e)) {
424
- if (!vt(r))
453
+ function _r(e, r, c, A, re, H) {
454
+ var ie = rt(e), ue = rt(r), he = ie ? x : Ee(e), ae = ue ? x : Ee(r);
455
+ he = he == M ? G : he, ae = ae == M ? G : ae;
456
+ var pe = he == G, we = ae == G, de = he == ae;
457
+ if (de && ht(e)) {
458
+ if (!ht(r))
425
459
  return !1;
426
- ae = !0, pe = !1;
460
+ ie = !0, pe = !1;
427
461
  }
428
462
  if (de && !pe)
429
- return F || (F = new Ce()), ae || Pt(e) ? Tt(e, r, l, A, te, F) : Ar(e, r, ve, l, A, te, F);
430
- if (!(l & q)) {
463
+ return H || (H = new Te()), ie || Lt(e) ? Et(e, r, c, A, re, H) : Tr(e, r, he, c, A, re, H);
464
+ if (!(c & j)) {
431
465
  var ye = pe && be.call(e, "__wrapped__"), xe = we && be.call(r, "__wrapped__");
432
466
  if (ye || xe) {
433
- var Ee = ye ? e.value() : e, Ae = xe ? r.value() : r;
434
- return F || (F = new Ce()), te(Ee, Ae, l, A, F);
467
+ var Me = ye ? e.value() : e, Ae = xe ? r.value() : r;
468
+ return H || (H = new Te()), re(Me, Ae, c, A, H);
435
469
  }
436
470
  }
437
- return de ? (F || (F = new Ce()), Tr(e, r, l, A, te, F)) : !1;
471
+ return de ? (H || (H = new Te()), Er(e, r, c, A, re, H)) : !1;
438
472
  }
439
- function br(e) {
440
- if (!Rt(e) || Rr(e))
473
+ function mr(e) {
474
+ if (!Dt(e) || Dr(e))
441
475
  return !1;
442
- var r = Et(e) ? $t : k;
443
- return r.test(De(e));
476
+ var r = Rt(e) ? Ut : P;
477
+ return r.test(Le(e));
444
478
  }
445
- function _r(e) {
446
- return Ge(e) && It(e.length) && !!Q[He(e)];
479
+ function Ar(e) {
480
+ return Qe(e) && St(e.length) && !!K[Ve(e)];
447
481
  }
448
- function mr(e) {
449
- if (!Pr(e))
450
- return Ht(e);
482
+ function Cr(e) {
483
+ if (!Lr(e))
484
+ return Qt(e);
451
485
  var r = [];
452
- for (var l in Object(e))
453
- be.call(e, l) && l != "constructor" && r.push(l);
486
+ for (var c in Object(e))
487
+ be.call(e, c) && c != "constructor" && r.push(c);
454
488
  return r;
455
489
  }
456
- function Tt(e, r, l, A, te, F) {
457
- var ae = l & q, fe = e.length, ve = r.length;
458
- if (fe != ve && !(ae && ve > fe))
490
+ function Et(e, r, c, A, re, H) {
491
+ var ie = c & j, ue = e.length, he = r.length;
492
+ if (ue != he && !(ie && he > ue))
459
493
  return !1;
460
- var ne = F.get(e);
461
- if (ne && F.get(r))
462
- return ne == r;
463
- var pe = -1, we = !0, de = l & Y ? new Xe() : void 0;
464
- for (F.set(e, r), F.set(r, e); ++pe < fe; ) {
494
+ var ae = H.get(e);
495
+ if (ae && H.get(r))
496
+ return ae == r;
497
+ var pe = -1, we = !0, de = c & X ? new ze() : void 0;
498
+ for (H.set(e, r), H.set(r, e); ++pe < ue; ) {
465
499
  var ye = e[pe], xe = r[pe];
466
500
  if (A)
467
- var Ee = ae ? A(xe, ye, pe, r, e, F) : A(ye, xe, pe, e, r, F);
468
- if (Ee !== void 0) {
469
- if (Ee)
501
+ var Me = ie ? A(xe, ye, pe, r, e, H) : A(ye, xe, pe, e, r, H);
502
+ if (Me !== void 0) {
503
+ if (Me)
470
504
  continue;
471
505
  we = !1;
472
506
  break;
473
507
  }
474
508
  if (de) {
475
- if (!ee(r, function(Ae, Le) {
476
- if (!ce(de, Le) && (ye === Ae || te(ye, Ae, l, A, F)))
477
- return de.push(Le);
509
+ if (!te(r, function(Ae, Pe) {
510
+ if (!ve(de, Pe) && (ye === Ae || re(ye, Ae, c, A, H)))
511
+ return de.push(Pe);
478
512
  })) {
479
513
  we = !1;
480
514
  break;
481
515
  }
482
- } else if (!(ye === xe || te(ye, xe, l, A, F))) {
516
+ } else if (!(ye === xe || re(ye, xe, c, A, H))) {
483
517
  we = !1;
484
518
  break;
485
519
  }
486
520
  }
487
- return F.delete(e), F.delete(r), we;
521
+ return H.delete(e), H.delete(r), we;
488
522
  }
489
- function Ar(e, r, l, A, te, F, ae) {
490
- switch (l) {
523
+ function Tr(e, r, c, A, re, H, ie) {
524
+ switch (c) {
491
525
  case t:
492
526
  if (e.byteLength != r.byteLength || e.byteOffset != r.byteOffset)
493
527
  return !1;
494
528
  e = e.buffer, r = r.buffer;
495
529
  case n:
496
- return !(e.byteLength != r.byteLength || !F(new xt(e), new xt(r)));
530
+ return !(e.byteLength != r.byteLength || !H(new bt(e), new bt(r)));
497
531
  case m:
498
- case C:
499
- case D:
500
- return Mt(+e, +r);
501
- case j:
532
+ case E:
533
+ case O:
534
+ return It(+e, +r);
535
+ case $:
502
536
  return e.name == r.name && e.message == r.message;
503
- case w:
537
+ case p:
504
538
  case d:
505
539
  return e == r + "";
506
- case B:
507
- var fe = Be;
540
+ case N:
541
+ var ue = Ne;
508
542
  case b:
509
- var ve = A & q;
510
- if (fe || (fe = $e), e.size != r.size && !ve)
543
+ var he = A & j;
544
+ if (ue || (ue = Fe), e.size != r.size && !he)
511
545
  return !1;
512
- var ne = ae.get(e);
513
- if (ne)
514
- return ne == r;
515
- A |= Y, ae.set(e, r);
516
- var pe = Tt(fe(e), fe(r), A, te, F, ae);
517
- return ae.delete(e), pe;
518
- case c:
519
- if (ct)
520
- return ct.call(e) == ct.call(r);
546
+ var ae = ie.get(e);
547
+ if (ae)
548
+ return ae == r;
549
+ A |= X, ie.set(e, r);
550
+ var pe = Et(ue(e), ue(r), A, re, H, ie);
551
+ return ie.delete(e), pe;
552
+ case w:
553
+ if (vt)
554
+ return vt.call(e) == vt.call(r);
521
555
  }
522
556
  return !1;
523
557
  }
524
- function Tr(e, r, l, A, te, F) {
525
- var ae = l & q, fe = Ct(e), ve = fe.length, ne = Ct(r), pe = ne.length;
526
- if (ve != pe && !ae)
558
+ function Er(e, r, c, A, re, H) {
559
+ var ie = c & j, ue = Mt(e), he = ue.length, ae = Mt(r), pe = ae.length;
560
+ if (he != pe && !ie)
527
561
  return !1;
528
- for (var we = ve; we--; ) {
529
- var de = fe[we];
530
- if (!(ae ? de in r : be.call(r, de)))
562
+ for (var we = he; we--; ) {
563
+ var de = ue[we];
564
+ if (!(ie ? de in r : be.call(r, de)))
531
565
  return !1;
532
566
  }
533
- var ye = F.get(e);
534
- if (ye && F.get(r))
567
+ var ye = H.get(e);
568
+ if (ye && H.get(r))
535
569
  return ye == r;
536
570
  var xe = !0;
537
- F.set(e, r), F.set(r, e);
538
- for (var Ee = ae; ++we < ve; ) {
539
- de = fe[we];
540
- var Ae = e[de], Le = r[de];
571
+ H.set(e, r), H.set(r, e);
572
+ for (var Me = ie; ++we < he; ) {
573
+ de = ue[we];
574
+ var Ae = e[de], Pe = r[de];
541
575
  if (A)
542
- var St = ae ? A(Le, Ae, de, r, e, F) : A(Ae, Le, de, e, r, F);
543
- if (!(St === void 0 ? Ae === Le || te(Ae, Le, l, A, F) : St)) {
576
+ var Pt = ie ? A(Pe, Ae, de, r, e, H) : A(Ae, Pe, de, e, r, H);
577
+ if (!(Pt === void 0 ? Ae === Pe || re(Ae, Pe, c, A, H) : Pt)) {
544
578
  xe = !1;
545
579
  break;
546
580
  }
547
- Ee || (Ee = de == "constructor");
581
+ Me || (Me = de == "constructor");
548
582
  }
549
- if (xe && !Ee) {
550
- var rt = e.constructor, nt = r.constructor;
551
- rt != nt && "constructor" in e && "constructor" in r && !(typeof rt == "function" && rt instanceof rt && typeof nt == "function" && nt instanceof nt) && (xe = !1);
583
+ if (xe && !Me) {
584
+ var nt = e.constructor, at = r.constructor;
585
+ nt != at && "constructor" in e && "constructor" in r && !(typeof nt == "function" && nt instanceof nt && typeof at == "function" && at instanceof at) && (xe = !1);
552
586
  }
553
- return F.delete(e), F.delete(r), xe;
587
+ return H.delete(e), H.delete(r), xe;
554
588
  }
555
- function Ct(e) {
556
- return xr(e, Br, Mr);
589
+ function Mt(e) {
590
+ return br(e, Or, Ir);
557
591
  }
558
- function et(e, r) {
559
- var l = e.__data__;
560
- return Ir(r) ? l[typeof r == "string" ? "string" : "hash"] : l.map;
592
+ function tt(e, r) {
593
+ var c = e.__data__;
594
+ return Sr(r) ? c[typeof r == "string" ? "string" : "hash"] : c.map;
561
595
  }
562
596
  function Oe(e, r) {
563
- var l = ke(e, r);
564
- return br(l) ? l : void 0;
597
+ var c = ke(e, r);
598
+ return mr(c) ? c : void 0;
565
599
  }
566
- function Cr(e) {
567
- var r = be.call(e, Re), l = e[Re];
600
+ function Mr(e) {
601
+ var r = be.call(e, Re), c = e[Re];
568
602
  try {
569
603
  e[Re] = void 0;
570
604
  var A = !0;
571
605
  } catch {
572
606
  }
573
- var te = pt.call(e);
574
- return A && (r ? e[Re] = l : delete e[Re]), te;
607
+ var re = xt.call(e);
608
+ return A && (r ? e[Re] = c : delete e[Re]), re;
575
609
  }
576
- var Mr = bt ? function(e) {
577
- return e == null ? [] : (e = Object(e), E(bt(e), function(r) {
578
- return wt.call(e, r);
610
+ var Ir = mt ? function(e) {
611
+ return e == null ? [] : (e = Object(e), I(mt(e), function(r) {
612
+ return _t.call(e, r);
579
613
  }));
580
- } : Nr, Me = He;
581
- (st && Me(new st(new ArrayBuffer(1))) != t || Ue && Me(new Ue()) != B || ft && Me(ft.resolve()) != J || ut && Me(new ut()) != b || lt && Me(new lt()) != h) && (Me = function(e) {
582
- var r = He(e), l = r == G ? e.constructor : void 0, A = l ? De(l) : "";
614
+ } : qr, Ee = Ve;
615
+ (ft && Ee(new ft(new ArrayBuffer(1))) != t || Ue && Ee(new Ue()) != N || ut && Ee(ut.resolve()) != Y || lt && Ee(new lt()) != b || ct && Ee(new ct()) != s) && (Ee = function(e) {
616
+ var r = Ve(e), c = r == G ? e.constructor : void 0, A = c ? Le(c) : "";
583
617
  if (A)
584
618
  switch (A) {
585
619
  case Gt:
586
620
  return t;
587
- case Qt:
588
- return B;
589
- case Vt:
590
- return J;
591
621
  case Kt:
592
- return b;
622
+ return N;
593
623
  case Wt:
594
- return h;
624
+ return Y;
625
+ case Zt:
626
+ return b;
627
+ case Jt:
628
+ return s;
595
629
  }
596
630
  return r;
597
631
  });
598
- function Er(e, r) {
599
- return r = r ?? $, !!r && (typeof e == "number" || ue.test(e)) && e > -1 && e % 1 == 0 && e < r;
632
+ function Rr(e, r) {
633
+ return r = r ?? F, !!r && (typeof e == "number" || le.test(e)) && e > -1 && e % 1 == 0 && e < r;
600
634
  }
601
- function Ir(e) {
635
+ function Sr(e) {
602
636
  var r = typeof e;
603
637
  return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? e !== "__proto__" : e === null;
604
638
  }
605
- function Rr(e) {
606
- return !!gt && gt in e;
639
+ function Dr(e) {
640
+ return !!yt && yt in e;
607
641
  }
608
- function Pr(e) {
609
- var r = e && e.constructor, l = typeof r == "function" && r.prototype || Je;
610
- return e === l;
642
+ function Lr(e) {
643
+ var r = e && e.constructor, c = typeof r == "function" && r.prototype || Ye;
644
+ return e === c;
611
645
  }
612
- function Sr(e) {
613
- return pt.call(e);
646
+ function Pr(e) {
647
+ return xt.call(e);
614
648
  }
615
- function De(e) {
649
+ function Le(e) {
616
650
  if (e != null) {
617
651
  try {
618
- return dt.call(e);
652
+ return pt.call(e);
619
653
  } catch {
620
654
  }
621
655
  try {
@@ -625,349 +659,349 @@ function Fr() {
625
659
  }
626
660
  return "";
627
661
  }
628
- function Mt(e, r) {
662
+ function It(e, r) {
629
663
  return e === r || e !== e && r !== r;
630
664
  }
631
- var Dr = mt(/* @__PURE__ */ function() {
665
+ var kr = Ct(/* @__PURE__ */ function() {
632
666
  return arguments;
633
- }()) ? mt : function(e) {
634
- return Ge(e) && be.call(e, "callee") && !wt.call(e, "callee");
635
- }, tt = Array.isArray;
636
- function Lr(e) {
637
- return e != null && It(e.length) && !Et(e);
667
+ }()) ? Ct : function(e) {
668
+ return Qe(e) && be.call(e, "callee") && !_t.call(e, "callee");
669
+ }, rt = Array.isArray;
670
+ function Nr(e) {
671
+ return e != null && St(e.length) && !Rt(e);
638
672
  }
639
- var vt = Ft || Or;
640
- function kr(e, r) {
641
- return At(e, r);
673
+ var ht = Vt || jr;
674
+ function Br(e, r) {
675
+ return Tt(e, r);
642
676
  }
643
- function Et(e) {
644
- if (!Rt(e))
677
+ function Rt(e) {
678
+ if (!Dt(e))
645
679
  return !1;
646
- var r = He(e);
647
- return r == S || r == H || r == g || r == O;
680
+ var r = Ve(e);
681
+ return r == D || r == V || r == g || r == q;
648
682
  }
649
- function It(e) {
650
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= $;
683
+ function St(e) {
684
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= F;
651
685
  }
652
- function Rt(e) {
686
+ function Dt(e) {
653
687
  var r = typeof e;
654
688
  return e != null && (r == "object" || r == "function");
655
689
  }
656
- function Ge(e) {
690
+ function Qe(e) {
657
691
  return e != null && typeof e == "object";
658
692
  }
659
- var Pt = I ? le(I) : _r;
660
- function Br(e) {
661
- return Lr(e) ? yr(e) : mr(e);
693
+ var Lt = R ? ce(R) : Ar;
694
+ function Or(e) {
695
+ return Nr(e) ? wr(e) : Cr(e);
662
696
  }
663
- function Nr() {
697
+ function qr() {
664
698
  return [];
665
699
  }
666
- function Or() {
700
+ function jr() {
667
701
  return !1;
668
702
  }
669
- V.exports = kr;
670
- }(Qe, Qe.exports)), Qe.exports;
703
+ k.exports = Br;
704
+ }(Ke, Ke.exports)), Ke.exports;
671
705
  }
672
- var ht = { exports: {} }, kt;
673
- function Hr() {
674
- return kt || (kt = 1, function(V, z) {
675
- var ie = function() {
676
- var Z = function(w, b) {
677
- var d = 236, c = 17, a = w, h = Y[b], n = null, t = 0, p = null, o = [], y = {}, R = function(s, f) {
706
+ var dt = { exports: {} }, Bt;
707
+ function Gr() {
708
+ return Bt || (Bt = 1, function(k, Q) {
709
+ var ee = function() {
710
+ var Z = function(p, b) {
711
+ var d = 236, w = 17, a = p, s = X[b], n = null, t = 0, v = null, o = [], y = {}, S = function(f, u) {
678
712
  t = a * 4 + 17, n = function(i) {
679
- for (var u = new Array(i), v = 0; v < i; v += 1) {
680
- u[v] = new Array(i);
713
+ for (var l = new Array(i), h = 0; h < i; h += 1) {
714
+ l[h] = new Array(i);
681
715
  for (var _ = 0; _ < i; _ += 1)
682
- u[v][_] = null;
716
+ l[h][_] = null;
683
717
  }
684
- return u;
685
- }(t), T(0, 0), T(t - 7, 0), T(0, t - 7), re(), U(), L(s, f), a >= 7 && oe(s), p == null && (p = Q(a, h, o)), k(p, f);
686
- }, T = function(s, f) {
718
+ return l;
719
+ }(t), C(0, 0), C(t - 7, 0), C(0, t - 7), ne(), U(), L(f, u), a >= 7 && oe(f), v == null && (v = K(a, s, o)), P(v, u);
720
+ }, C = function(f, u) {
687
721
  for (var i = -1; i <= 7; i += 1)
688
- if (!(s + i <= -1 || t <= s + i))
689
- for (var u = -1; u <= 7; u += 1)
690
- f + u <= -1 || t <= f + u || (0 <= i && i <= 6 && (u == 0 || u == 6) || 0 <= u && u <= 6 && (i == 0 || i == 6) || 2 <= i && i <= 4 && 2 <= u && u <= 4 ? n[s + i][f + u] = !0 : n[s + i][f + u] = !1);
691
- }, W = function() {
692
- for (var s = 0, f = 0, i = 0; i < 8; i += 1) {
693
- R(!0, i);
694
- var u = M.getLostPoint(y);
695
- (i == 0 || s > u) && (s = u, f = i);
722
+ if (!(f + i <= -1 || t <= f + i))
723
+ for (var l = -1; l <= 7; l += 1)
724
+ u + l <= -1 || t <= u + l || (0 <= i && i <= 6 && (l == 0 || l == 6) || 0 <= l && l <= 6 && (i == 0 || i == 6) || 2 <= i && i <= 4 && 2 <= l && l <= 4 ? n[f + i][u + l] = !0 : n[f + i][u + l] = !1);
725
+ }, J = function() {
726
+ for (var f = 0, u = 0, i = 0; i < 8; i += 1) {
727
+ S(!0, i);
728
+ var l = M.getLostPoint(y);
729
+ (i == 0 || f > l) && (f = l, u = i);
696
730
  }
697
- return f;
731
+ return u;
698
732
  }, U = function() {
699
- for (var s = 8; s < t - 8; s += 1)
700
- n[s][6] == null && (n[s][6] = s % 2 == 0);
701
733
  for (var f = 8; f < t - 8; f += 1)
702
- n[6][f] == null && (n[6][f] = f % 2 == 0);
703
- }, re = function() {
704
- for (var s = M.getPatternPosition(a), f = 0; f < s.length; f += 1)
705
- for (var i = 0; i < s.length; i += 1) {
706
- var u = s[f], v = s[i];
707
- if (n[u][v] == null)
734
+ n[f][6] == null && (n[f][6] = f % 2 == 0);
735
+ for (var u = 8; u < t - 8; u += 1)
736
+ n[6][u] == null && (n[6][u] = u % 2 == 0);
737
+ }, ne = function() {
738
+ for (var f = M.getPatternPosition(a), u = 0; u < f.length; u += 1)
739
+ for (var i = 0; i < f.length; i += 1) {
740
+ var l = f[u], h = f[i];
741
+ if (n[l][h] == null)
708
742
  for (var _ = -2; _ <= 2; _ += 1)
709
- for (var I = -2; I <= 2; I += 1)
710
- _ == -2 || _ == 2 || I == -2 || I == 2 || _ == 0 && I == 0 ? n[u + _][v + I] = !0 : n[u + _][v + I] = !1;
743
+ for (var R = -2; R <= 2; R += 1)
744
+ _ == -2 || _ == 2 || R == -2 || R == 2 || _ == 0 && R == 0 ? n[l + _][h + R] = !0 : n[l + _][h + R] = !1;
711
745
  }
712
- }, oe = function(s) {
713
- for (var f = M.getBCHTypeNumber(a), i = 0; i < 18; i += 1) {
714
- var u = !s && (f >> i & 1) == 1;
715
- n[Math.floor(i / 3)][i % 3 + t - 8 - 3] = u;
746
+ }, oe = function(f) {
747
+ for (var u = M.getBCHTypeNumber(a), i = 0; i < 18; i += 1) {
748
+ var l = !f && (u >> i & 1) == 1;
749
+ n[Math.floor(i / 3)][i % 3 + t - 8 - 3] = l;
716
750
  }
717
751
  for (var i = 0; i < 18; i += 1) {
718
- var u = !s && (f >> i & 1) == 1;
719
- n[i % 3 + t - 8 - 3][Math.floor(i / 3)] = u;
752
+ var l = !f && (u >> i & 1) == 1;
753
+ n[i % 3 + t - 8 - 3][Math.floor(i / 3)] = l;
720
754
  }
721
- }, L = function(s, f) {
722
- for (var i = h << 3 | f, u = M.getBCHTypeInfo(i), v = 0; v < 15; v += 1) {
723
- var _ = !s && (u >> v & 1) == 1;
724
- v < 6 ? n[v][8] = _ : v < 8 ? n[v + 1][8] = _ : n[t - 15 + v][8] = _;
755
+ }, L = function(f, u) {
756
+ for (var i = s << 3 | u, l = M.getBCHTypeInfo(i), h = 0; h < 15; h += 1) {
757
+ var _ = !f && (l >> h & 1) == 1;
758
+ h < 6 ? n[h][8] = _ : h < 8 ? n[h + 1][8] = _ : n[t - 15 + h][8] = _;
725
759
  }
726
- for (var v = 0; v < 15; v += 1) {
727
- var _ = !s && (u >> v & 1) == 1;
728
- v < 8 ? n[8][t - v - 1] = _ : v < 9 ? n[8][15 - v - 1 + 1] = _ : n[8][15 - v - 1] = _;
760
+ for (var h = 0; h < 15; h += 1) {
761
+ var _ = !f && (l >> h & 1) == 1;
762
+ h < 8 ? n[8][t - h - 1] = _ : h < 9 ? n[8][15 - h - 1 + 1] = _ : n[8][15 - h - 1] = _;
729
763
  }
730
- n[t - 8][8] = !s;
731
- }, k = function(s, f) {
732
- for (var i = -1, u = t - 1, v = 7, _ = 0, I = M.getMaskFunction(f), E = t - 1; E > 0; E -= 2)
733
- for (E == 6 && (E -= 1); ; ) {
734
- for (var X = 0; X < 2; X += 1)
735
- if (n[u][E - X] == null) {
736
- var ee = !1;
737
- _ < s.length && (ee = (s[_] >>> v & 1) == 1);
738
- var N = I(u, E - X);
739
- N && (ee = !ee), n[u][E - X] = ee, v -= 1, v == -1 && (_ += 1, v = 7);
764
+ n[t - 8][8] = !f;
765
+ }, P = function(f, u) {
766
+ for (var i = -1, l = t - 1, h = 7, _ = 0, R = M.getMaskFunction(u), I = t - 1; I > 0; I -= 2)
767
+ for (I == 6 && (I -= 1); ; ) {
768
+ for (var z = 0; z < 2; z += 1)
769
+ if (n[l][I - z] == null) {
770
+ var te = !1;
771
+ _ < f.length && (te = (f[_] >>> h & 1) == 1);
772
+ var B = R(l, I - z);
773
+ B && (te = !te), n[l][I - z] = te, h -= 1, h == -1 && (_ += 1, h = 7);
740
774
  }
741
- if (u += i, u < 0 || t <= u) {
742
- u -= i, i = -i;
775
+ if (l += i, l < 0 || t <= l) {
776
+ l -= i, i = -i;
743
777
  break;
744
778
  }
745
779
  }
746
- }, ue = function(s, f) {
747
- for (var i = 0, u = 0, v = 0, _ = new Array(f.length), I = new Array(f.length), E = 0; E < f.length; E += 1) {
748
- var X = f[E].dataCount, ee = f[E].totalCount - X;
749
- u = Math.max(u, X), v = Math.max(v, ee), _[E] = new Array(X);
750
- for (var N = 0; N < _[E].length; N += 1)
751
- _[E][N] = 255 & s.getBuffer()[N + i];
752
- i += X;
753
- var le = M.getErrorCorrectPolynomial(ee), ce = g(_[E], le.getLength() - 1), ke = ce.mod(le);
754
- I[E] = new Array(le.getLength() - 1);
755
- for (var N = 0; N < I[E].length; N += 1) {
756
- var Be = N + ke.getLength() - I[E].length;
757
- I[E][N] = Be >= 0 ? ke.getAt(Be) : 0;
780
+ }, le = function(f, u) {
781
+ for (var i = 0, l = 0, h = 0, _ = new Array(u.length), R = new Array(u.length), I = 0; I < u.length; I += 1) {
782
+ var z = u[I].dataCount, te = u[I].totalCount - z;
783
+ l = Math.max(l, z), h = Math.max(h, te), _[I] = new Array(z);
784
+ for (var B = 0; B < _[I].length; B += 1)
785
+ _[I][B] = 255 & f.getBuffer()[B + i];
786
+ i += z;
787
+ var ce = M.getErrorCorrectPolynomial(te), ve = g(_[I], ce.getLength() - 1), ke = ve.mod(ce);
788
+ R[I] = new Array(ce.getLength() - 1);
789
+ for (var B = 0; B < R[I].length; B += 1) {
790
+ var Ne = B + ke.getLength() - R[I].length;
791
+ R[I][B] = Ne >= 0 ? ke.getAt(Ne) : 0;
758
792
  }
759
793
  }
760
- for (var Ze = 0, N = 0; N < f.length; N += 1)
761
- Ze += f[N].totalCount;
762
- for (var $e = new Array(Ze), Ne = 0, N = 0; N < u; N += 1)
763
- for (var E = 0; E < f.length; E += 1)
764
- N < _[E].length && ($e[Ne] = _[E][N], Ne += 1);
765
- for (var N = 0; N < v; N += 1)
766
- for (var E = 0; E < f.length; E += 1)
767
- N < I[E].length && ($e[Ne] = I[E][N], Ne += 1);
768
- return $e;
769
- }, Q = function(s, f, i) {
770
- for (var u = m.getRSBlocks(s, f), v = C(), _ = 0; _ < i.length; _ += 1) {
771
- var I = i[_];
772
- v.put(I.getMode(), 4), v.put(I.getLength(), M.getLengthInBits(I.getMode(), s)), I.write(v);
794
+ for (var Je = 0, B = 0; B < u.length; B += 1)
795
+ Je += u[B].totalCount;
796
+ for (var Fe = new Array(Je), Be = 0, B = 0; B < l; B += 1)
797
+ for (var I = 0; I < u.length; I += 1)
798
+ B < _[I].length && (Fe[Be] = _[I][B], Be += 1);
799
+ for (var B = 0; B < h; B += 1)
800
+ for (var I = 0; I < u.length; I += 1)
801
+ B < R[I].length && (Fe[Be] = R[I][B], Be += 1);
802
+ return Fe;
803
+ }, K = function(f, u, i) {
804
+ for (var l = m.getRSBlocks(f, u), h = E(), _ = 0; _ < i.length; _ += 1) {
805
+ var R = i[_];
806
+ h.put(R.getMode(), 4), h.put(R.getLength(), M.getLengthInBits(R.getMode(), f)), R.write(h);
773
807
  }
774
- for (var E = 0, _ = 0; _ < u.length; _ += 1)
775
- E += u[_].dataCount;
776
- if (v.getLengthInBits() > E * 8)
777
- throw "code length overflow. (" + v.getLengthInBits() + ">" + E * 8 + ")";
778
- for (v.getLengthInBits() + 4 <= E * 8 && v.put(0, 4); v.getLengthInBits() % 8 != 0; )
779
- v.putBit(!1);
780
- for (; !(v.getLengthInBits() >= E * 8 || (v.put(d, 8), v.getLengthInBits() >= E * 8)); )
781
- v.put(c, 8);
782
- return ue(v, u);
808
+ for (var I = 0, _ = 0; _ < l.length; _ += 1)
809
+ I += l[_].dataCount;
810
+ if (h.getLengthInBits() > I * 8)
811
+ throw "code length overflow. (" + h.getLengthInBits() + ">" + I * 8 + ")";
812
+ for (h.getLengthInBits() + 4 <= I * 8 && h.put(0, 4); h.getLengthInBits() % 8 != 0; )
813
+ h.putBit(!1);
814
+ for (; !(h.getLengthInBits() >= I * 8 || (h.put(d, 8), h.getLengthInBits() >= I * 8)); )
815
+ h.put(w, 8);
816
+ return le(h, l);
783
817
  };
784
- y.addData = function(s, f) {
785
- f = f || "Byte";
818
+ y.addData = function(f, u) {
819
+ u = u || "Byte";
786
820
  var i = null;
787
- switch (f) {
821
+ switch (u) {
788
822
  case "Numeric":
789
- i = j(s);
823
+ i = $(f);
790
824
  break;
791
825
  case "Alphanumeric":
792
- i = S(s);
826
+ i = D(f);
793
827
  break;
794
828
  case "Byte":
795
- i = H(s);
829
+ i = V(f);
796
830
  break;
797
831
  case "Kanji":
798
- i = B(s);
832
+ i = N(f);
799
833
  break;
800
834
  default:
801
- throw "mode:" + f;
835
+ throw "mode:" + u;
802
836
  }
803
- o.push(i), p = null;
804
- }, y.isDark = function(s, f) {
805
- if (s < 0 || t <= s || f < 0 || t <= f)
806
- throw s + "," + f;
807
- return n[s][f];
837
+ o.push(i), v = null;
838
+ }, y.isDark = function(f, u) {
839
+ if (f < 0 || t <= f || u < 0 || t <= u)
840
+ throw f + "," + u;
841
+ return n[f][u];
808
842
  }, y.getModuleCount = function() {
809
843
  return t;
810
844
  }, y.make = function() {
811
845
  if (a < 1) {
812
- for (var s = 1; s < 40; s++) {
813
- for (var f = m.getRSBlocks(s, h), i = C(), u = 0; u < o.length; u++) {
814
- var v = o[u];
815
- i.put(v.getMode(), 4), i.put(v.getLength(), M.getLengthInBits(v.getMode(), s)), v.write(i);
846
+ for (var f = 1; f < 40; f++) {
847
+ for (var u = m.getRSBlocks(f, s), i = E(), l = 0; l < o.length; l++) {
848
+ var h = o[l];
849
+ i.put(h.getMode(), 4), i.put(h.getLength(), M.getLengthInBits(h.getMode(), f)), h.write(i);
816
850
  }
817
- for (var _ = 0, u = 0; u < f.length; u++)
818
- _ += f[u].dataCount;
851
+ for (var _ = 0, l = 0; l < u.length; l++)
852
+ _ += u[l].dataCount;
819
853
  if (i.getLengthInBits() <= _ * 8)
820
854
  break;
821
855
  }
822
- a = s;
856
+ a = f;
823
857
  }
824
- R(!1, W());
825
- }, y.createTableTag = function(s, f) {
826
- s = s || 2, f = typeof f > "u" ? s * 4 : f;
858
+ S(!1, J());
859
+ }, y.createTableTag = function(f, u) {
860
+ f = f || 2, u = typeof u > "u" ? f * 4 : u;
827
861
  var i = "";
828
- i += '<table style="', i += " border-width: 0px; border-style: none;", i += " border-collapse: collapse;", i += " padding: 0px; margin: " + f + "px;", i += '">', i += "<tbody>";
829
- for (var u = 0; u < y.getModuleCount(); u += 1) {
862
+ i += '<table style="', i += " border-width: 0px; border-style: none;", i += " border-collapse: collapse;", i += " padding: 0px; margin: " + u + "px;", i += '">', i += "<tbody>";
863
+ for (var l = 0; l < y.getModuleCount(); l += 1) {
830
864
  i += "<tr>";
831
- for (var v = 0; v < y.getModuleCount(); v += 1)
832
- i += '<td style="', i += " border-width: 0px; border-style: none;", i += " border-collapse: collapse;", i += " padding: 0px; margin: 0px;", i += " width: " + s + "px;", i += " height: " + s + "px;", i += " background-color: ", i += y.isDark(u, v) ? "#000000" : "#ffffff", i += ";", i += '"/>';
865
+ for (var h = 0; h < y.getModuleCount(); h += 1)
866
+ i += '<td style="', i += " border-width: 0px; border-style: none;", i += " border-collapse: collapse;", i += " padding: 0px; margin: 0px;", i += " width: " + f + "px;", i += " height: " + f + "px;", i += " background-color: ", i += y.isDark(l, h) ? "#000000" : "#ffffff", i += ";", i += '"/>';
833
867
  i += "</tr>";
834
868
  }
835
869
  return i += "</tbody>", i += "</table>", i;
836
- }, y.createSvgTag = function(s, f, i, u) {
837
- var v = {};
838
- typeof arguments[0] == "object" && (v = arguments[0], s = v.cellSize, f = v.margin, i = v.alt, u = v.title), s = s || 2, f = typeof f > "u" ? s * 4 : f, i = typeof i == "string" ? { text: i } : i || {}, i.text = i.text || null, i.id = i.text ? i.id || "qrcode-description" : null, u = typeof u == "string" ? { text: u } : u || {}, u.text = u.text || null, u.id = u.text ? u.id || "qrcode-title" : null;
839
- var _ = y.getModuleCount() * s + f * 2, I, E, X, ee, N = "", le;
840
- for (le = "l" + s + ",0 0," + s + " -" + s + ",0 0,-" + s + "z ", N += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', N += v.scalable ? "" : ' width="' + _ + 'px" height="' + _ + 'px"', N += ' viewBox="0 0 ' + _ + " " + _ + '" ', N += ' preserveAspectRatio="xMinYMin meet"', N += u.text || i.text ? ' role="img" aria-labelledby="' + se([u.id, i.id].join(" ").trim()) + '"' : "", N += ">", N += u.text ? '<title id="' + se(u.id) + '">' + se(u.text) + "</title>" : "", N += i.text ? '<description id="' + se(i.id) + '">' + se(i.text) + "</description>" : "", N += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', N += '<path d="', X = 0; X < y.getModuleCount(); X += 1)
841
- for (ee = X * s + f, I = 0; I < y.getModuleCount(); I += 1)
842
- y.isDark(X, I) && (E = I * s + f, N += "M" + E + "," + ee + le);
843
- return N += '" stroke="transparent" fill="black"/>', N += "</svg>", N;
844
- }, y.createDataURL = function(s, f) {
845
- s = s || 2, f = typeof f > "u" ? s * 4 : f;
846
- var i = y.getModuleCount() * s + f * 2, u = f, v = i - f;
847
- return O(i, i, function(_, I) {
848
- if (u <= _ && _ < v && u <= I && I < v) {
849
- var E = Math.floor((_ - u) / s), X = Math.floor((I - u) / s);
850
- return y.isDark(X, E) ? 0 : 1;
870
+ }, y.createSvgTag = function(f, u, i, l) {
871
+ var h = {};
872
+ typeof arguments[0] == "object" && (h = arguments[0], f = h.cellSize, u = h.margin, i = h.alt, l = h.title), f = f || 2, u = typeof u > "u" ? f * 4 : u, i = typeof i == "string" ? { text: i } : i || {}, i.text = i.text || null, i.id = i.text ? i.id || "qrcode-description" : null, l = typeof l == "string" ? { text: l } : l || {}, l.text = l.text || null, l.id = l.text ? l.id || "qrcode-title" : null;
873
+ var _ = y.getModuleCount() * f + u * 2, R, I, z, te, B = "", ce;
874
+ for (ce = "l" + f + ",0 0," + f + " -" + f + ",0 0,-" + f + "z ", B += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', B += h.scalable ? "" : ' width="' + _ + 'px" height="' + _ + 'px"', B += ' viewBox="0 0 ' + _ + " " + _ + '" ', B += ' preserveAspectRatio="xMinYMin meet"', B += l.text || i.text ? ' role="img" aria-labelledby="' + fe([l.id, i.id].join(" ").trim()) + '"' : "", B += ">", B += l.text ? '<title id="' + fe(l.id) + '">' + fe(l.text) + "</title>" : "", B += i.text ? '<description id="' + fe(i.id) + '">' + fe(i.text) + "</description>" : "", B += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', B += '<path d="', z = 0; z < y.getModuleCount(); z += 1)
875
+ for (te = z * f + u, R = 0; R < y.getModuleCount(); R += 1)
876
+ y.isDark(z, R) && (I = R * f + u, B += "M" + I + "," + te + ce);
877
+ return B += '" stroke="transparent" fill="black"/>', B += "</svg>", B;
878
+ }, y.createDataURL = function(f, u) {
879
+ f = f || 2, u = typeof u > "u" ? f * 4 : u;
880
+ var i = y.getModuleCount() * f + u * 2, l = u, h = i - u;
881
+ return q(i, i, function(_, R) {
882
+ if (l <= _ && _ < h && l <= R && R < h) {
883
+ var I = Math.floor((_ - l) / f), z = Math.floor((R - l) / f);
884
+ return y.isDark(z, I) ? 0 : 1;
851
885
  } else
852
886
  return 1;
853
887
  });
854
- }, y.createImgTag = function(s, f, i) {
855
- s = s || 2, f = typeof f > "u" ? s * 4 : f;
856
- var u = y.getModuleCount() * s + f * 2, v = "";
857
- return v += "<img", v += ' src="', v += y.createDataURL(s, f), v += '"', v += ' width="', v += u, v += '"', v += ' height="', v += u, v += '"', i && (v += ' alt="', v += se(i), v += '"'), v += "/>", v;
888
+ }, y.createImgTag = function(f, u, i) {
889
+ f = f || 2, u = typeof u > "u" ? f * 4 : u;
890
+ var l = y.getModuleCount() * f + u * 2, h = "";
891
+ return h += "<img", h += ' src="', h += y.createDataURL(f, u), h += '"', h += ' width="', h += l, h += '"', h += ' height="', h += l, h += '"', i && (h += ' alt="', h += fe(i), h += '"'), h += "/>", h;
858
892
  };
859
- var se = function(s) {
860
- for (var f = "", i = 0; i < s.length; i += 1) {
861
- var u = s.charAt(i);
862
- switch (u) {
893
+ var fe = function(f) {
894
+ for (var u = "", i = 0; i < f.length; i += 1) {
895
+ var l = f.charAt(i);
896
+ switch (l) {
863
897
  case "<":
864
- f += "&lt;";
898
+ u += "&lt;";
865
899
  break;
866
900
  case ">":
867
- f += "&gt;";
901
+ u += "&gt;";
868
902
  break;
869
903
  case "&":
870
- f += "&amp;";
904
+ u += "&amp;";
871
905
  break;
872
906
  case '"':
873
- f += "&quot;";
907
+ u += "&quot;";
874
908
  break;
875
909
  default:
876
- f += u;
910
+ u += l;
877
911
  break;
878
912
  }
879
913
  }
880
- return f;
881
- }, _e = function(s) {
882
- var f = 1;
883
- s = typeof s > "u" ? f * 2 : s;
884
- var i = y.getModuleCount() * f + s * 2, u = s, v = i - s, _, I, E, X, ee, N = {
914
+ return u;
915
+ }, _e = function(f) {
916
+ var u = 1;
917
+ f = typeof f > "u" ? u * 2 : f;
918
+ var i = y.getModuleCount() * u + f * 2, l = f, h = i - f, _, R, I, z, te, B = {
885
919
  "██": "█",
886
920
  "█ ": "▀",
887
921
  " █": "▄",
888
922
  " ": " "
889
- }, le = {
923
+ }, ce = {
890
924
  "██": "▀",
891
925
  "█ ": "▀",
892
926
  " █": " ",
893
927
  " ": " "
894
- }, ce = "";
928
+ }, ve = "";
895
929
  for (_ = 0; _ < i; _ += 2) {
896
- for (E = Math.floor((_ - u) / f), X = Math.floor((_ + 1 - u) / f), I = 0; I < i; I += 1)
897
- ee = "█", u <= I && I < v && u <= _ && _ < v && y.isDark(E, Math.floor((I - u) / f)) && (ee = " "), u <= I && I < v && u <= _ + 1 && _ + 1 < v && y.isDark(X, Math.floor((I - u) / f)) ? ee += " " : ee += "█", ce += s < 1 && _ + 1 >= v ? le[ee] : N[ee];
898
- ce += `
930
+ for (I = Math.floor((_ - l) / u), z = Math.floor((_ + 1 - l) / u), R = 0; R < i; R += 1)
931
+ te = "█", l <= R && R < h && l <= _ && _ < h && y.isDark(I, Math.floor((R - l) / u)) && (te = " "), l <= R && R < h && l <= _ + 1 && _ + 1 < h && y.isDark(z, Math.floor((R - l) / u)) ? te += " " : te += "█", ve += f < 1 && _ + 1 >= h ? ce[te] : B[te];
932
+ ve += `
899
933
  `;
900
934
  }
901
- return i % 2 && s > 0 ? ce.substring(0, ce.length - i - 1) + Array(i + 1).join("▀") : ce.substring(0, ce.length - 1);
935
+ return i % 2 && f > 0 ? ve.substring(0, ve.length - i - 1) + Array(i + 1).join("▀") : ve.substring(0, ve.length - 1);
902
936
  };
903
- return y.createASCII = function(s, f) {
904
- if (s = s || 1, s < 2)
905
- return _e(f);
906
- s -= 1, f = typeof f > "u" ? s * 2 : f;
907
- var i = y.getModuleCount() * s + f * 2, u = f, v = i - f, _, I, E, X, ee = Array(s + 1).join("██"), N = Array(s + 1).join(" "), le = "", ce = "";
937
+ return y.createASCII = function(f, u) {
938
+ if (f = f || 1, f < 2)
939
+ return _e(u);
940
+ f -= 1, u = typeof u > "u" ? f * 2 : u;
941
+ var i = y.getModuleCount() * f + u * 2, l = u, h = i - u, _, R, I, z, te = Array(f + 1).join("██"), B = Array(f + 1).join(" "), ce = "", ve = "";
908
942
  for (_ = 0; _ < i; _ += 1) {
909
- for (E = Math.floor((_ - u) / s), ce = "", I = 0; I < i; I += 1)
910
- X = 1, u <= I && I < v && u <= _ && _ < v && y.isDark(E, Math.floor((I - u) / s)) && (X = 0), ce += X ? ee : N;
911
- for (E = 0; E < s; E += 1)
912
- le += ce + `
943
+ for (I = Math.floor((_ - l) / f), ve = "", R = 0; R < i; R += 1)
944
+ z = 1, l <= R && R < h && l <= _ && _ < h && y.isDark(I, Math.floor((R - l) / f)) && (z = 0), ve += z ? te : B;
945
+ for (I = 0; I < f; I += 1)
946
+ ce += ve + `
913
947
  `;
914
948
  }
915
- return le.substring(0, le.length - 1);
916
- }, y.renderTo2dContext = function(s, f) {
917
- f = f || 2;
918
- for (var i = y.getModuleCount(), u = 0; u < i; u++)
919
- for (var v = 0; v < i; v++)
920
- s.fillStyle = y.isDark(u, v) ? "black" : "white", s.fillRect(u * f, v * f, f, f);
949
+ return ce.substring(0, ce.length - 1);
950
+ }, y.renderTo2dContext = function(f, u) {
951
+ u = u || 2;
952
+ for (var i = y.getModuleCount(), l = 0; l < i; l++)
953
+ for (var h = 0; h < i; h++)
954
+ f.fillStyle = y.isDark(l, h) ? "black" : "white", f.fillRect(l * u, h * u, u, u);
921
955
  }, y;
922
956
  };
923
957
  Z.stringToBytesFuncs = {
924
- default: function(w) {
925
- for (var b = [], d = 0; d < w.length; d += 1) {
926
- var c = w.charCodeAt(d);
927
- b.push(c & 255);
958
+ default: function(p) {
959
+ for (var b = [], d = 0; d < p.length; d += 1) {
960
+ var w = p.charCodeAt(d);
961
+ b.push(w & 255);
928
962
  }
929
963
  return b;
930
964
  }
931
- }, Z.stringToBytes = Z.stringToBytesFuncs.default, Z.createStringToBytes = function(w, b) {
965
+ }, Z.stringToBytes = Z.stringToBytesFuncs.default, Z.createStringToBytes = function(p, b) {
932
966
  var d = function() {
933
- for (var a = G(w), h = function() {
967
+ for (var a = G(p), s = function() {
934
968
  var U = a.read();
935
969
  if (U == -1) throw "eof";
936
970
  return U;
937
971
  }, n = 0, t = {}; ; ) {
938
- var p = a.read();
939
- if (p == -1) break;
940
- var o = h(), y = h(), R = h(), T = String.fromCharCode(p << 8 | o), W = y << 8 | R;
941
- t[T] = W, n += 1;
972
+ var v = a.read();
973
+ if (v == -1) break;
974
+ var o = s(), y = s(), S = s(), C = String.fromCharCode(v << 8 | o), J = y << 8 | S;
975
+ t[C] = J, n += 1;
942
976
  }
943
977
  if (n != b)
944
978
  throw n + " != " + b;
945
979
  return t;
946
- }(), c = 63;
980
+ }(), w = 63;
947
981
  return function(a) {
948
- for (var h = [], n = 0; n < a.length; n += 1) {
982
+ for (var s = [], n = 0; n < a.length; n += 1) {
949
983
  var t = a.charCodeAt(n);
950
984
  if (t < 128)
951
- h.push(t);
985
+ s.push(t);
952
986
  else {
953
- var p = d[a.charAt(n)];
954
- typeof p == "number" ? (p & 255) == p ? h.push(p) : (h.push(p >>> 8), h.push(p & 255)) : h.push(c);
987
+ var v = d[a.charAt(n)];
988
+ typeof v == "number" ? (v & 255) == v ? s.push(v) : (s.push(v >>> 8), s.push(v & 255)) : s.push(w);
955
989
  }
956
990
  }
957
- return h;
991
+ return s;
958
992
  };
959
993
  };
960
- var q = {
994
+ var j = {
961
995
  MODE_NUMBER: 1,
962
996
  MODE_ALPHA_NUM: 2,
963
997
  MODE_8BIT_BYTE: 4,
964
998
  MODE_KANJI: 8
965
- }, Y = {
999
+ }, X = {
966
1000
  L: 1,
967
1001
  M: 0,
968
1002
  Q: 3,
969
1003
  H: 2
970
- }, $ = {
1004
+ }, F = {
971
1005
  PATTERN000: 0,
972
1006
  PATTERN001: 1,
973
1007
  PATTERN010: 2,
@@ -977,7 +1011,7 @@ function Hr() {
977
1011
  PATTERN110: 6,
978
1012
  PATTERN111: 7
979
1013
  }, M = function() {
980
- var w = [
1014
+ var p = [
981
1015
  [],
982
1016
  [6, 18],
983
1017
  [6, 22],
@@ -1018,98 +1052,98 @@ function Hr() {
1018
1052
  [6, 32, 58, 84, 110, 136, 162],
1019
1053
  [6, 26, 54, 82, 110, 138, 166],
1020
1054
  [6, 30, 58, 86, 114, 142, 170]
1021
- ], b = 1335, d = 7973, c = 21522, a = {}, h = function(n) {
1055
+ ], b = 1335, d = 7973, w = 21522, a = {}, s = function(n) {
1022
1056
  for (var t = 0; n != 0; )
1023
1057
  t += 1, n >>>= 1;
1024
1058
  return t;
1025
1059
  };
1026
1060
  return a.getBCHTypeInfo = function(n) {
1027
- for (var t = n << 10; h(t) - h(b) >= 0; )
1028
- t ^= b << h(t) - h(b);
1029
- return (n << 10 | t) ^ c;
1061
+ for (var t = n << 10; s(t) - s(b) >= 0; )
1062
+ t ^= b << s(t) - s(b);
1063
+ return (n << 10 | t) ^ w;
1030
1064
  }, a.getBCHTypeNumber = function(n) {
1031
- for (var t = n << 12; h(t) - h(d) >= 0; )
1032
- t ^= d << h(t) - h(d);
1065
+ for (var t = n << 12; s(t) - s(d) >= 0; )
1066
+ t ^= d << s(t) - s(d);
1033
1067
  return n << 12 | t;
1034
1068
  }, a.getPatternPosition = function(n) {
1035
- return w[n - 1];
1069
+ return p[n - 1];
1036
1070
  }, a.getMaskFunction = function(n) {
1037
1071
  switch (n) {
1038
- case $.PATTERN000:
1039
- return function(t, p) {
1040
- return (t + p) % 2 == 0;
1072
+ case F.PATTERN000:
1073
+ return function(t, v) {
1074
+ return (t + v) % 2 == 0;
1041
1075
  };
1042
- case $.PATTERN001:
1043
- return function(t, p) {
1076
+ case F.PATTERN001:
1077
+ return function(t, v) {
1044
1078
  return t % 2 == 0;
1045
1079
  };
1046
- case $.PATTERN010:
1047
- return function(t, p) {
1048
- return p % 3 == 0;
1080
+ case F.PATTERN010:
1081
+ return function(t, v) {
1082
+ return v % 3 == 0;
1049
1083
  };
1050
- case $.PATTERN011:
1051
- return function(t, p) {
1052
- return (t + p) % 3 == 0;
1084
+ case F.PATTERN011:
1085
+ return function(t, v) {
1086
+ return (t + v) % 3 == 0;
1053
1087
  };
1054
- case $.PATTERN100:
1055
- return function(t, p) {
1056
- return (Math.floor(t / 2) + Math.floor(p / 3)) % 2 == 0;
1088
+ case F.PATTERN100:
1089
+ return function(t, v) {
1090
+ return (Math.floor(t / 2) + Math.floor(v / 3)) % 2 == 0;
1057
1091
  };
1058
- case $.PATTERN101:
1059
- return function(t, p) {
1060
- return t * p % 2 + t * p % 3 == 0;
1092
+ case F.PATTERN101:
1093
+ return function(t, v) {
1094
+ return t * v % 2 + t * v % 3 == 0;
1061
1095
  };
1062
- case $.PATTERN110:
1063
- return function(t, p) {
1064
- return (t * p % 2 + t * p % 3) % 2 == 0;
1096
+ case F.PATTERN110:
1097
+ return function(t, v) {
1098
+ return (t * v % 2 + t * v % 3) % 2 == 0;
1065
1099
  };
1066
- case $.PATTERN111:
1067
- return function(t, p) {
1068
- return (t * p % 3 + (t + p) % 2) % 2 == 0;
1100
+ case F.PATTERN111:
1101
+ return function(t, v) {
1102
+ return (t * v % 3 + (t + v) % 2) % 2 == 0;
1069
1103
  };
1070
1104
  default:
1071
1105
  throw "bad maskPattern:" + n;
1072
1106
  }
1073
1107
  }, a.getErrorCorrectPolynomial = function(n) {
1074
- for (var t = g([1], 0), p = 0; p < n; p += 1)
1075
- t = t.multiply(g([1, x.gexp(p)], 0));
1108
+ for (var t = g([1], 0), v = 0; v < n; v += 1)
1109
+ t = t.multiply(g([1, x.gexp(v)], 0));
1076
1110
  return t;
1077
1111
  }, a.getLengthInBits = function(n, t) {
1078
1112
  if (1 <= t && t < 10)
1079
1113
  switch (n) {
1080
- case q.MODE_NUMBER:
1114
+ case j.MODE_NUMBER:
1081
1115
  return 10;
1082
- case q.MODE_ALPHA_NUM:
1116
+ case j.MODE_ALPHA_NUM:
1083
1117
  return 9;
1084
- case q.MODE_8BIT_BYTE:
1118
+ case j.MODE_8BIT_BYTE:
1085
1119
  return 8;
1086
- case q.MODE_KANJI:
1120
+ case j.MODE_KANJI:
1087
1121
  return 8;
1088
1122
  default:
1089
1123
  throw "mode:" + n;
1090
1124
  }
1091
1125
  else if (t < 27)
1092
1126
  switch (n) {
1093
- case q.MODE_NUMBER:
1127
+ case j.MODE_NUMBER:
1094
1128
  return 12;
1095
- case q.MODE_ALPHA_NUM:
1129
+ case j.MODE_ALPHA_NUM:
1096
1130
  return 11;
1097
- case q.MODE_8BIT_BYTE:
1131
+ case j.MODE_8BIT_BYTE:
1098
1132
  return 16;
1099
- case q.MODE_KANJI:
1133
+ case j.MODE_KANJI:
1100
1134
  return 10;
1101
1135
  default:
1102
1136
  throw "mode:" + n;
1103
1137
  }
1104
1138
  else if (t < 41)
1105
1139
  switch (n) {
1106
- case q.MODE_NUMBER:
1140
+ case j.MODE_NUMBER:
1107
1141
  return 14;
1108
- case q.MODE_ALPHA_NUM:
1142
+ case j.MODE_ALPHA_NUM:
1109
1143
  return 13;
1110
- case q.MODE_8BIT_BYTE:
1144
+ case j.MODE_8BIT_BYTE:
1111
1145
  return 16;
1112
- case q.MODE_KANJI:
1146
+ case j.MODE_KANJI:
1113
1147
  return 12;
1114
1148
  default:
1115
1149
  throw "mode:" + n;
@@ -1117,82 +1151,82 @@ function Hr() {
1117
1151
  else
1118
1152
  throw "type:" + t;
1119
1153
  }, a.getLostPoint = function(n) {
1120
- for (var t = n.getModuleCount(), p = 0, o = 0; o < t; o += 1)
1154
+ for (var t = n.getModuleCount(), v = 0, o = 0; o < t; o += 1)
1121
1155
  for (var y = 0; y < t; y += 1) {
1122
- for (var R = 0, T = n.isDark(o, y), W = -1; W <= 1; W += 1)
1123
- if (!(o + W < 0 || t <= o + W))
1156
+ for (var S = 0, C = n.isDark(o, y), J = -1; J <= 1; J += 1)
1157
+ if (!(o + J < 0 || t <= o + J))
1124
1158
  for (var U = -1; U <= 1; U += 1)
1125
- y + U < 0 || t <= y + U || W == 0 && U == 0 || T == n.isDark(o + W, y + U) && (R += 1);
1126
- R > 5 && (p += 3 + R - 5);
1159
+ y + U < 0 || t <= y + U || J == 0 && U == 0 || C == n.isDark(o + J, y + U) && (S += 1);
1160
+ S > 5 && (v += 3 + S - 5);
1127
1161
  }
1128
1162
  for (var o = 0; o < t - 1; o += 1)
1129
1163
  for (var y = 0; y < t - 1; y += 1) {
1130
- var re = 0;
1131
- n.isDark(o, y) && (re += 1), n.isDark(o + 1, y) && (re += 1), n.isDark(o, y + 1) && (re += 1), n.isDark(o + 1, y + 1) && (re += 1), (re == 0 || re == 4) && (p += 3);
1164
+ var ne = 0;
1165
+ n.isDark(o, y) && (ne += 1), n.isDark(o + 1, y) && (ne += 1), n.isDark(o, y + 1) && (ne += 1), n.isDark(o + 1, y + 1) && (ne += 1), (ne == 0 || ne == 4) && (v += 3);
1132
1166
  }
1133
1167
  for (var o = 0; o < t; o += 1)
1134
1168
  for (var y = 0; y < t - 6; y += 1)
1135
- n.isDark(o, y) && !n.isDark(o, y + 1) && n.isDark(o, y + 2) && n.isDark(o, y + 3) && n.isDark(o, y + 4) && !n.isDark(o, y + 5) && n.isDark(o, y + 6) && (p += 40);
1169
+ n.isDark(o, y) && !n.isDark(o, y + 1) && n.isDark(o, y + 2) && n.isDark(o, y + 3) && n.isDark(o, y + 4) && !n.isDark(o, y + 5) && n.isDark(o, y + 6) && (v += 40);
1136
1170
  for (var y = 0; y < t; y += 1)
1137
1171
  for (var o = 0; o < t - 6; o += 1)
1138
- n.isDark(o, y) && !n.isDark(o + 1, y) && n.isDark(o + 2, y) && n.isDark(o + 3, y) && n.isDark(o + 4, y) && !n.isDark(o + 5, y) && n.isDark(o + 6, y) && (p += 40);
1172
+ n.isDark(o, y) && !n.isDark(o + 1, y) && n.isDark(o + 2, y) && n.isDark(o + 3, y) && n.isDark(o + 4, y) && !n.isDark(o + 5, y) && n.isDark(o + 6, y) && (v += 40);
1139
1173
  for (var oe = 0, y = 0; y < t; y += 1)
1140
1174
  for (var o = 0; o < t; o += 1)
1141
1175
  n.isDark(o, y) && (oe += 1);
1142
1176
  var L = Math.abs(100 * oe / t / t - 50) / 5;
1143
- return p += L * 10, p;
1177
+ return v += L * 10, v;
1144
1178
  }, a;
1145
1179
  }(), x = function() {
1146
- for (var w = new Array(256), b = new Array(256), d = 0; d < 8; d += 1)
1147
- w[d] = 1 << d;
1180
+ for (var p = new Array(256), b = new Array(256), d = 0; d < 8; d += 1)
1181
+ p[d] = 1 << d;
1148
1182
  for (var d = 8; d < 256; d += 1)
1149
- w[d] = w[d - 4] ^ w[d - 5] ^ w[d - 6] ^ w[d - 8];
1183
+ p[d] = p[d - 4] ^ p[d - 5] ^ p[d - 6] ^ p[d - 8];
1150
1184
  for (var d = 0; d < 255; d += 1)
1151
- b[w[d]] = d;
1152
- var c = {};
1153
- return c.glog = function(a) {
1185
+ b[p[d]] = d;
1186
+ var w = {};
1187
+ return w.glog = function(a) {
1154
1188
  if (a < 1)
1155
1189
  throw "glog(" + a + ")";
1156
1190
  return b[a];
1157
- }, c.gexp = function(a) {
1191
+ }, w.gexp = function(a) {
1158
1192
  for (; a < 0; )
1159
1193
  a += 255;
1160
1194
  for (; a >= 256; )
1161
1195
  a -= 255;
1162
- return w[a];
1163
- }, c;
1196
+ return p[a];
1197
+ }, w;
1164
1198
  }();
1165
- function g(w, b) {
1166
- if (typeof w.length > "u")
1167
- throw w.length + "/" + b;
1199
+ function g(p, b) {
1200
+ if (typeof p.length > "u")
1201
+ throw p.length + "/" + b;
1168
1202
  var d = function() {
1169
- for (var a = 0; a < w.length && w[a] == 0; )
1203
+ for (var a = 0; a < p.length && p[a] == 0; )
1170
1204
  a += 1;
1171
- for (var h = new Array(w.length - a + b), n = 0; n < w.length - a; n += 1)
1172
- h[n] = w[n + a];
1173
- return h;
1174
- }(), c = {};
1175
- return c.getAt = function(a) {
1205
+ for (var s = new Array(p.length - a + b), n = 0; n < p.length - a; n += 1)
1206
+ s[n] = p[n + a];
1207
+ return s;
1208
+ }(), w = {};
1209
+ return w.getAt = function(a) {
1176
1210
  return d[a];
1177
- }, c.getLength = function() {
1211
+ }, w.getLength = function() {
1178
1212
  return d.length;
1179
- }, c.multiply = function(a) {
1180
- for (var h = new Array(c.getLength() + a.getLength() - 1), n = 0; n < c.getLength(); n += 1)
1213
+ }, w.multiply = function(a) {
1214
+ for (var s = new Array(w.getLength() + a.getLength() - 1), n = 0; n < w.getLength(); n += 1)
1181
1215
  for (var t = 0; t < a.getLength(); t += 1)
1182
- h[n + t] ^= x.gexp(x.glog(c.getAt(n)) + x.glog(a.getAt(t)));
1183
- return g(h, 0);
1184
- }, c.mod = function(a) {
1185
- if (c.getLength() - a.getLength() < 0)
1186
- return c;
1187
- for (var h = x.glog(c.getAt(0)) - x.glog(a.getAt(0)), n = new Array(c.getLength()), t = 0; t < c.getLength(); t += 1)
1188
- n[t] = c.getAt(t);
1216
+ s[n + t] ^= x.gexp(x.glog(w.getAt(n)) + x.glog(a.getAt(t)));
1217
+ return g(s, 0);
1218
+ }, w.mod = function(a) {
1219
+ if (w.getLength() - a.getLength() < 0)
1220
+ return w;
1221
+ for (var s = x.glog(w.getAt(0)) - x.glog(a.getAt(0)), n = new Array(w.getLength()), t = 0; t < w.getLength(); t += 1)
1222
+ n[t] = w.getAt(t);
1189
1223
  for (var t = 0; t < a.getLength(); t += 1)
1190
- n[t] ^= x.gexp(x.glog(a.getAt(t)) + h);
1224
+ n[t] ^= x.gexp(x.glog(a.getAt(t)) + s);
1191
1225
  return g(n, 0).mod(a);
1192
- }, c;
1226
+ }, w;
1193
1227
  }
1194
1228
  var m = function() {
1195
- var w = [
1229
+ var p = [
1196
1230
  // L
1197
1231
  // M
1198
1232
  // Q
@@ -1397,89 +1431,89 @@ function Hr() {
1397
1431
  [18, 75, 47, 31, 76, 48],
1398
1432
  [34, 54, 24, 34, 55, 25],
1399
1433
  [20, 45, 15, 61, 46, 16]
1400
- ], b = function(a, h) {
1434
+ ], b = function(a, s) {
1401
1435
  var n = {};
1402
- return n.totalCount = a, n.dataCount = h, n;
1403
- }, d = {}, c = function(a, h) {
1404
- switch (h) {
1405
- case Y.L:
1406
- return w[(a - 1) * 4 + 0];
1407
- case Y.M:
1408
- return w[(a - 1) * 4 + 1];
1409
- case Y.Q:
1410
- return w[(a - 1) * 4 + 2];
1411
- case Y.H:
1412
- return w[(a - 1) * 4 + 3];
1436
+ return n.totalCount = a, n.dataCount = s, n;
1437
+ }, d = {}, w = function(a, s) {
1438
+ switch (s) {
1439
+ case X.L:
1440
+ return p[(a - 1) * 4 + 0];
1441
+ case X.M:
1442
+ return p[(a - 1) * 4 + 1];
1443
+ case X.Q:
1444
+ return p[(a - 1) * 4 + 2];
1445
+ case X.H:
1446
+ return p[(a - 1) * 4 + 3];
1413
1447
  default:
1414
1448
  return;
1415
1449
  }
1416
1450
  };
1417
- return d.getRSBlocks = function(a, h) {
1418
- var n = c(a, h);
1451
+ return d.getRSBlocks = function(a, s) {
1452
+ var n = w(a, s);
1419
1453
  if (typeof n > "u")
1420
- throw "bad rs block @ typeNumber:" + a + "/errorCorrectionLevel:" + h;
1421
- for (var t = n.length / 3, p = [], o = 0; o < t; o += 1)
1422
- for (var y = n[o * 3 + 0], R = n[o * 3 + 1], T = n[o * 3 + 2], W = 0; W < y; W += 1)
1423
- p.push(b(R, T));
1424
- return p;
1454
+ throw "bad rs block @ typeNumber:" + a + "/errorCorrectionLevel:" + s;
1455
+ for (var t = n.length / 3, v = [], o = 0; o < t; o += 1)
1456
+ for (var y = n[o * 3 + 0], S = n[o * 3 + 1], C = n[o * 3 + 2], J = 0; J < y; J += 1)
1457
+ v.push(b(S, C));
1458
+ return v;
1425
1459
  }, d;
1426
- }(), C = function() {
1427
- var w = [], b = 0, d = {};
1460
+ }(), E = function() {
1461
+ var p = [], b = 0, d = {};
1428
1462
  return d.getBuffer = function() {
1429
- return w;
1430
- }, d.getAt = function(c) {
1431
- var a = Math.floor(c / 8);
1432
- return (w[a] >>> 7 - c % 8 & 1) == 1;
1433
- }, d.put = function(c, a) {
1434
- for (var h = 0; h < a; h += 1)
1435
- d.putBit((c >>> a - h - 1 & 1) == 1);
1463
+ return p;
1464
+ }, d.getAt = function(w) {
1465
+ var a = Math.floor(w / 8);
1466
+ return (p[a] >>> 7 - w % 8 & 1) == 1;
1467
+ }, d.put = function(w, a) {
1468
+ for (var s = 0; s < a; s += 1)
1469
+ d.putBit((w >>> a - s - 1 & 1) == 1);
1436
1470
  }, d.getLengthInBits = function() {
1437
1471
  return b;
1438
- }, d.putBit = function(c) {
1472
+ }, d.putBit = function(w) {
1439
1473
  var a = Math.floor(b / 8);
1440
- w.length <= a && w.push(0), c && (w[a] |= 128 >>> b % 8), b += 1;
1474
+ p.length <= a && p.push(0), w && (p[a] |= 128 >>> b % 8), b += 1;
1441
1475
  }, d;
1442
- }, j = function(w) {
1443
- var b = q.MODE_NUMBER, d = w, c = {};
1444
- c.getMode = function() {
1476
+ }, $ = function(p) {
1477
+ var b = j.MODE_NUMBER, d = p, w = {};
1478
+ w.getMode = function() {
1445
1479
  return b;
1446
- }, c.getLength = function(n) {
1480
+ }, w.getLength = function(n) {
1447
1481
  return d.length;
1448
- }, c.write = function(n) {
1449
- for (var t = d, p = 0; p + 2 < t.length; )
1450
- n.put(a(t.substring(p, p + 3)), 10), p += 3;
1451
- p < t.length && (t.length - p == 1 ? n.put(a(t.substring(p, p + 1)), 4) : t.length - p == 2 && n.put(a(t.substring(p, p + 2)), 7));
1482
+ }, w.write = function(n) {
1483
+ for (var t = d, v = 0; v + 2 < t.length; )
1484
+ n.put(a(t.substring(v, v + 3)), 10), v += 3;
1485
+ v < t.length && (t.length - v == 1 ? n.put(a(t.substring(v, v + 1)), 4) : t.length - v == 2 && n.put(a(t.substring(v, v + 2)), 7));
1452
1486
  };
1453
1487
  var a = function(n) {
1454
- for (var t = 0, p = 0; p < n.length; p += 1)
1455
- t = t * 10 + h(n.charAt(p));
1488
+ for (var t = 0, v = 0; v < n.length; v += 1)
1489
+ t = t * 10 + s(n.charAt(v));
1456
1490
  return t;
1457
- }, h = function(n) {
1491
+ }, s = function(n) {
1458
1492
  if ("0" <= n && n <= "9")
1459
1493
  return n.charCodeAt(0) - 48;
1460
1494
  throw "illegal char :" + n;
1461
1495
  };
1462
- return c;
1463
- }, S = function(w) {
1464
- var b = q.MODE_ALPHA_NUM, d = w, c = {};
1465
- c.getMode = function() {
1496
+ return w;
1497
+ }, D = function(p) {
1498
+ var b = j.MODE_ALPHA_NUM, d = p, w = {};
1499
+ w.getMode = function() {
1466
1500
  return b;
1467
- }, c.getLength = function(h) {
1501
+ }, w.getLength = function(s) {
1468
1502
  return d.length;
1469
- }, c.write = function(h) {
1503
+ }, w.write = function(s) {
1470
1504
  for (var n = d, t = 0; t + 1 < n.length; )
1471
- h.put(
1505
+ s.put(
1472
1506
  a(n.charAt(t)) * 45 + a(n.charAt(t + 1)),
1473
1507
  11
1474
1508
  ), t += 2;
1475
- t < n.length && h.put(a(n.charAt(t)), 6);
1509
+ t < n.length && s.put(a(n.charAt(t)), 6);
1476
1510
  };
1477
- var a = function(h) {
1478
- if ("0" <= h && h <= "9")
1479
- return h.charCodeAt(0) - 48;
1480
- if ("A" <= h && h <= "Z")
1481
- return h.charCodeAt(0) - 65 + 10;
1482
- switch (h) {
1511
+ var a = function(s) {
1512
+ if ("0" <= s && s <= "9")
1513
+ return s.charCodeAt(0) - 48;
1514
+ if ("A" <= s && s <= "Z")
1515
+ return s.charCodeAt(0) - 65 + 10;
1516
+ switch (s) {
1483
1517
  case " ":
1484
1518
  return 36;
1485
1519
  case "$":
@@ -1499,73 +1533,73 @@ function Hr() {
1499
1533
  case ":":
1500
1534
  return 44;
1501
1535
  default:
1502
- throw "illegal char :" + h;
1536
+ throw "illegal char :" + s;
1503
1537
  }
1504
1538
  };
1505
- return c;
1506
- }, H = function(w) {
1507
- var b = q.MODE_8BIT_BYTE, d = Z.stringToBytes(w), c = {};
1508
- return c.getMode = function() {
1539
+ return w;
1540
+ }, V = function(p) {
1541
+ var b = j.MODE_8BIT_BYTE, d = Z.stringToBytes(p), w = {};
1542
+ return w.getMode = function() {
1509
1543
  return b;
1510
- }, c.getLength = function(a) {
1544
+ }, w.getLength = function(a) {
1511
1545
  return d.length;
1512
- }, c.write = function(a) {
1513
- for (var h = 0; h < d.length; h += 1)
1514
- a.put(d[h], 8);
1515
- }, c;
1516
- }, B = function(w) {
1517
- var b = q.MODE_KANJI, d = Z.stringToBytesFuncs.SJIS;
1546
+ }, w.write = function(a) {
1547
+ for (var s = 0; s < d.length; s += 1)
1548
+ a.put(d[s], 8);
1549
+ }, w;
1550
+ }, N = function(p) {
1551
+ var b = j.MODE_KANJI, d = Z.stringToBytesFuncs.SJIS;
1518
1552
  if (!d)
1519
1553
  throw "sjis not supported.";
1520
- (function(h, n) {
1521
- var t = d(h);
1554
+ (function(s, n) {
1555
+ var t = d(s);
1522
1556
  if (t.length != 2 || (t[0] << 8 | t[1]) != n)
1523
1557
  throw "sjis not supported.";
1524
1558
  })("友", 38726);
1525
- var c = d(w), a = {};
1559
+ var w = d(p), a = {};
1526
1560
  return a.getMode = function() {
1527
1561
  return b;
1528
- }, a.getLength = function(h) {
1529
- return ~~(c.length / 2);
1530
- }, a.write = function(h) {
1531
- for (var n = c, t = 0; t + 1 < n.length; ) {
1532
- var p = (255 & n[t]) << 8 | 255 & n[t + 1];
1533
- if (33088 <= p && p <= 40956)
1534
- p -= 33088;
1535
- else if (57408 <= p && p <= 60351)
1536
- p -= 49472;
1562
+ }, a.getLength = function(s) {
1563
+ return ~~(w.length / 2);
1564
+ }, a.write = function(s) {
1565
+ for (var n = w, t = 0; t + 1 < n.length; ) {
1566
+ var v = (255 & n[t]) << 8 | 255 & n[t + 1];
1567
+ if (33088 <= v && v <= 40956)
1568
+ v -= 33088;
1569
+ else if (57408 <= v && v <= 60351)
1570
+ v -= 49472;
1537
1571
  else
1538
- throw "illegal char at " + (t + 1) + "/" + p;
1539
- p = (p >>> 8 & 255) * 192 + (p & 255), h.put(p, 13), t += 2;
1572
+ throw "illegal char at " + (t + 1) + "/" + v;
1573
+ v = (v >>> 8 & 255) * 192 + (v & 255), s.put(v, 13), t += 2;
1540
1574
  }
1541
1575
  if (t < n.length)
1542
1576
  throw "illegal char at " + (t + 1);
1543
1577
  }, a;
1544
- }, D = function() {
1545
- var w = [], b = {};
1578
+ }, O = function() {
1579
+ var p = [], b = {};
1546
1580
  return b.writeByte = function(d) {
1547
- w.push(d & 255);
1581
+ p.push(d & 255);
1548
1582
  }, b.writeShort = function(d) {
1549
1583
  b.writeByte(d), b.writeByte(d >>> 8);
1550
- }, b.writeBytes = function(d, c, a) {
1551
- c = c || 0, a = a || d.length;
1552
- for (var h = 0; h < a; h += 1)
1553
- b.writeByte(d[h + c]);
1584
+ }, b.writeBytes = function(d, w, a) {
1585
+ w = w || 0, a = a || d.length;
1586
+ for (var s = 0; s < a; s += 1)
1587
+ b.writeByte(d[s + w]);
1554
1588
  }, b.writeString = function(d) {
1555
- for (var c = 0; c < d.length; c += 1)
1556
- b.writeByte(d.charCodeAt(c));
1589
+ for (var w = 0; w < d.length; w += 1)
1590
+ b.writeByte(d.charCodeAt(w));
1557
1591
  }, b.toByteArray = function() {
1558
- return w;
1592
+ return p;
1559
1593
  }, b.toString = function() {
1560
1594
  var d = "";
1561
1595
  d += "[";
1562
- for (var c = 0; c < w.length; c += 1)
1563
- c > 0 && (d += ","), d += w[c];
1596
+ for (var w = 0; w < p.length; w += 1)
1597
+ w > 0 && (d += ","), d += p[w];
1564
1598
  return d += "]", d;
1565
1599
  }, b;
1566
- }, K = function() {
1567
- var w = 0, b = 0, d = 0, c = "", a = {}, h = function(t) {
1568
- c += String.fromCharCode(n(t & 63));
1600
+ }, W = function() {
1601
+ var p = 0, b = 0, d = 0, w = "", a = {}, s = function(t) {
1602
+ w += String.fromCharCode(n(t & 63));
1569
1603
  }, n = function(t) {
1570
1604
  if (!(t < 0)) {
1571
1605
  if (t < 26)
@@ -1582,18 +1616,18 @@ function Hr() {
1582
1616
  throw "n:" + t;
1583
1617
  };
1584
1618
  return a.writeByte = function(t) {
1585
- for (w = w << 8 | t & 255, b += 8, d += 1; b >= 6; )
1586
- h(w >>> b - 6), b -= 6;
1619
+ for (p = p << 8 | t & 255, b += 8, d += 1; b >= 6; )
1620
+ s(p >>> b - 6), b -= 6;
1587
1621
  }, a.flush = function() {
1588
- if (b > 0 && (h(w << 6 - b), w = 0, b = 0), d % 3 != 0)
1589
- for (var t = 3 - d % 3, p = 0; p < t; p += 1)
1590
- c += "=";
1622
+ if (b > 0 && (s(p << 6 - b), p = 0, b = 0), d % 3 != 0)
1623
+ for (var t = 3 - d % 3, v = 0; v < t; v += 1)
1624
+ w += "=";
1591
1625
  }, a.toString = function() {
1592
- return c;
1626
+ return w;
1593
1627
  }, a;
1594
- }, G = function(w) {
1595
- var b = w, d = 0, c = 0, a = 0, h = {};
1596
- h.read = function() {
1628
+ }, G = function(p) {
1629
+ var b = p, d = 0, w = 0, a = 0, s = {};
1630
+ s.read = function() {
1597
1631
  for (; a < 8; ) {
1598
1632
  if (d >= b.length) {
1599
1633
  if (a == 0)
@@ -1605,10 +1639,10 @@ function Hr() {
1605
1639
  return a = 0, -1;
1606
1640
  if (t.match(/^\s$/))
1607
1641
  continue;
1608
- c = c << 6 | n(t.charCodeAt(0)), a += 6;
1642
+ w = w << 6 | n(t.charCodeAt(0)), a += 6;
1609
1643
  }
1610
- var p = c >>> a - 8 & 255;
1611
- return a -= 8, p;
1644
+ var v = w >>> a - 8 & 255;
1645
+ return a -= 8, v;
1612
1646
  };
1613
1647
  var n = function(t) {
1614
1648
  if (65 <= t && t <= 90)
@@ -1623,137 +1657,137 @@ function Hr() {
1623
1657
  return 63;
1624
1658
  throw "c:" + t;
1625
1659
  };
1626
- return h;
1627
- }, J = function(w, b) {
1628
- var d = w, c = b, a = new Array(w * b), h = {};
1629
- h.setPixel = function(o, y, R) {
1630
- a[y * d + o] = R;
1631
- }, h.write = function(o) {
1632
- o.writeString("GIF87a"), o.writeShort(d), o.writeShort(c), o.writeByte(128), o.writeByte(0), o.writeByte(0), o.writeByte(0), o.writeByte(0), o.writeByte(0), o.writeByte(255), o.writeByte(255), o.writeByte(255), o.writeString(","), o.writeShort(0), o.writeShort(0), o.writeShort(d), o.writeShort(c), o.writeByte(0);
1633
- var y = 2, R = t(y);
1660
+ return s;
1661
+ }, Y = function(p, b) {
1662
+ var d = p, w = b, a = new Array(p * b), s = {};
1663
+ s.setPixel = function(o, y, S) {
1664
+ a[y * d + o] = S;
1665
+ }, s.write = function(o) {
1666
+ o.writeString("GIF87a"), o.writeShort(d), o.writeShort(w), o.writeByte(128), o.writeByte(0), o.writeByte(0), o.writeByte(0), o.writeByte(0), o.writeByte(0), o.writeByte(255), o.writeByte(255), o.writeByte(255), o.writeString(","), o.writeShort(0), o.writeShort(0), o.writeShort(d), o.writeShort(w), o.writeByte(0);
1667
+ var y = 2, S = t(y);
1634
1668
  o.writeByte(y);
1635
- for (var T = 0; R.length - T > 255; )
1636
- o.writeByte(255), o.writeBytes(R, T, 255), T += 255;
1637
- o.writeByte(R.length - T), o.writeBytes(R, T, R.length - T), o.writeByte(0), o.writeString(";");
1669
+ for (var C = 0; S.length - C > 255; )
1670
+ o.writeByte(255), o.writeBytes(S, C, 255), C += 255;
1671
+ o.writeByte(S.length - C), o.writeBytes(S, C, S.length - C), o.writeByte(0), o.writeString(";");
1638
1672
  };
1639
1673
  var n = function(o) {
1640
- var y = o, R = 0, T = 0, W = {};
1641
- return W.write = function(U, re) {
1642
- if (U >>> re)
1674
+ var y = o, S = 0, C = 0, J = {};
1675
+ return J.write = function(U, ne) {
1676
+ if (U >>> ne)
1643
1677
  throw "length over";
1644
- for (; R + re >= 8; )
1645
- y.writeByte(255 & (U << R | T)), re -= 8 - R, U >>>= 8 - R, T = 0, R = 0;
1646
- T = U << R | T, R = R + re;
1647
- }, W.flush = function() {
1648
- R > 0 && y.writeByte(T);
1649
- }, W;
1678
+ for (; S + ne >= 8; )
1679
+ y.writeByte(255 & (U << S | C)), ne -= 8 - S, U >>>= 8 - S, C = 0, S = 0;
1680
+ C = U << S | C, S = S + ne;
1681
+ }, J.flush = function() {
1682
+ S > 0 && y.writeByte(C);
1683
+ }, J;
1650
1684
  }, t = function(o) {
1651
- for (var y = 1 << o, R = (1 << o) + 1, T = o + 1, W = p(), U = 0; U < y; U += 1)
1652
- W.add(String.fromCharCode(U));
1653
- W.add(String.fromCharCode(y)), W.add(String.fromCharCode(R));
1654
- var re = D(), oe = n(re);
1655
- oe.write(y, T);
1656
- var L = 0, k = String.fromCharCode(a[L]);
1685
+ for (var y = 1 << o, S = (1 << o) + 1, C = o + 1, J = v(), U = 0; U < y; U += 1)
1686
+ J.add(String.fromCharCode(U));
1687
+ J.add(String.fromCharCode(y)), J.add(String.fromCharCode(S));
1688
+ var ne = O(), oe = n(ne);
1689
+ oe.write(y, C);
1690
+ var L = 0, P = String.fromCharCode(a[L]);
1657
1691
  for (L += 1; L < a.length; ) {
1658
- var ue = String.fromCharCode(a[L]);
1659
- L += 1, W.contains(k + ue) ? k = k + ue : (oe.write(W.indexOf(k), T), W.size() < 4095 && (W.size() == 1 << T && (T += 1), W.add(k + ue)), k = ue);
1692
+ var le = String.fromCharCode(a[L]);
1693
+ L += 1, J.contains(P + le) ? P = P + le : (oe.write(J.indexOf(P), C), J.size() < 4095 && (J.size() == 1 << C && (C += 1), J.add(P + le)), P = le);
1660
1694
  }
1661
- return oe.write(W.indexOf(k), T), oe.write(R, T), oe.flush(), re.toByteArray();
1662
- }, p = function() {
1663
- var o = {}, y = 0, R = {};
1664
- return R.add = function(T) {
1665
- if (R.contains(T))
1666
- throw "dup key:" + T;
1667
- o[T] = y, y += 1;
1668
- }, R.size = function() {
1695
+ return oe.write(J.indexOf(P), C), oe.write(S, C), oe.flush(), ne.toByteArray();
1696
+ }, v = function() {
1697
+ var o = {}, y = 0, S = {};
1698
+ return S.add = function(C) {
1699
+ if (S.contains(C))
1700
+ throw "dup key:" + C;
1701
+ o[C] = y, y += 1;
1702
+ }, S.size = function() {
1669
1703
  return y;
1670
- }, R.indexOf = function(T) {
1671
- return o[T];
1672
- }, R.contains = function(T) {
1673
- return typeof o[T] < "u";
1674
- }, R;
1704
+ }, S.indexOf = function(C) {
1705
+ return o[C];
1706
+ }, S.contains = function(C) {
1707
+ return typeof o[C] < "u";
1708
+ }, S;
1675
1709
  };
1676
- return h;
1677
- }, O = function(w, b, d) {
1678
- for (var c = J(w, b), a = 0; a < b; a += 1)
1679
- for (var h = 0; h < w; h += 1)
1680
- c.setPixel(h, a, d(h, a));
1681
- var n = D();
1682
- c.write(n);
1683
- for (var t = K(), p = n.toByteArray(), o = 0; o < p.length; o += 1)
1684
- t.writeByte(p[o]);
1710
+ return s;
1711
+ }, q = function(p, b, d) {
1712
+ for (var w = Y(p, b), a = 0; a < b; a += 1)
1713
+ for (var s = 0; s < p; s += 1)
1714
+ w.setPixel(s, a, d(s, a));
1715
+ var n = O();
1716
+ w.write(n);
1717
+ for (var t = W(), v = n.toByteArray(), o = 0; o < v.length; o += 1)
1718
+ t.writeByte(v[o]);
1685
1719
  return t.flush(), "data:image/gif;base64," + t;
1686
1720
  };
1687
1721
  return Z;
1688
1722
  }();
1689
1723
  (function() {
1690
- ie.stringToBytesFuncs["UTF-8"] = function(Z) {
1691
- function q(Y) {
1692
- for (var $ = [], M = 0; M < Y.length; M++) {
1693
- var x = Y.charCodeAt(M);
1694
- x < 128 ? $.push(x) : x < 2048 ? $.push(
1724
+ ee.stringToBytesFuncs["UTF-8"] = function(Z) {
1725
+ function j(X) {
1726
+ for (var F = [], M = 0; M < X.length; M++) {
1727
+ var x = X.charCodeAt(M);
1728
+ x < 128 ? F.push(x) : x < 2048 ? F.push(
1695
1729
  192 | x >> 6,
1696
1730
  128 | x & 63
1697
- ) : x < 55296 || x >= 57344 ? $.push(
1731
+ ) : x < 55296 || x >= 57344 ? F.push(
1698
1732
  224 | x >> 12,
1699
1733
  128 | x >> 6 & 63,
1700
1734
  128 | x & 63
1701
- ) : (M++, x = 65536 + ((x & 1023) << 10 | Y.charCodeAt(M) & 1023), $.push(
1735
+ ) : (M++, x = 65536 + ((x & 1023) << 10 | X.charCodeAt(M) & 1023), F.push(
1702
1736
  240 | x >> 18,
1703
1737
  128 | x >> 12 & 63,
1704
1738
  128 | x >> 6 & 63,
1705
1739
  128 | x & 63
1706
1740
  ));
1707
1741
  }
1708
- return $;
1742
+ return F;
1709
1743
  }
1710
- return q(Z);
1744
+ return j(Z);
1711
1745
  };
1712
1746
  })(), function(Z) {
1713
- V.exports = Z();
1747
+ k.exports = Z();
1714
1748
  }(function() {
1715
- return ie;
1749
+ return ee;
1716
1750
  });
1717
- }(ht)), ht.exports;
1751
+ }(dt)), dt.exports;
1718
1752
  }
1719
- var Bt;
1720
- function Gr() {
1721
- if (Bt) return Te;
1722
- Bt = 1;
1723
- var V = Te && Te.__extends || /* @__PURE__ */ function() {
1724
- var $ = function(M, x) {
1725
- return $ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(g, m) {
1753
+ var Ot;
1754
+ function Kr() {
1755
+ if (Ot) return Ce;
1756
+ Ot = 1;
1757
+ var k = Ce && Ce.__extends || /* @__PURE__ */ function() {
1758
+ var F = function(M, x) {
1759
+ return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(g, m) {
1726
1760
  g.__proto__ = m;
1727
1761
  } || function(g, m) {
1728
- for (var C in m) Object.prototype.hasOwnProperty.call(m, C) && (g[C] = m[C]);
1729
- }, $(M, x);
1762
+ for (var E in m) Object.prototype.hasOwnProperty.call(m, E) && (g[E] = m[E]);
1763
+ }, F(M, x);
1730
1764
  };
1731
1765
  return function(M, x) {
1732
1766
  if (typeof x != "function" && x !== null)
1733
1767
  throw new TypeError("Class extends value " + String(x) + " is not a constructor or null");
1734
- $(M, x);
1768
+ F(M, x);
1735
1769
  function g() {
1736
1770
  this.constructor = M;
1737
1771
  }
1738
1772
  M.prototype = x === null ? Object.create(x) : (g.prototype = x.prototype, new g());
1739
1773
  };
1740
- }(), z = Te && Te.__assign || function() {
1741
- return z = Object.assign || function($) {
1774
+ }(), Q = Ce && Ce.__assign || function() {
1775
+ return Q = Object.assign || function(F) {
1742
1776
  for (var M, x = 1, g = arguments.length; x < g; x++) {
1743
1777
  M = arguments[x];
1744
- for (var m in M) Object.prototype.hasOwnProperty.call(M, m) && ($[m] = M[m]);
1778
+ for (var m in M) Object.prototype.hasOwnProperty.call(M, m) && (F[m] = M[m]);
1745
1779
  }
1746
- return $;
1747
- }, z.apply(this, arguments);
1780
+ return F;
1781
+ }, Q.apply(this, arguments);
1748
1782
  };
1749
- Object.defineProperty(Te, "__esModule", { value: !0 }), Te.QRCode = void 0;
1750
- var ie = Fr(), Z = Hr(), q = Nt, Y = (
1783
+ Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.QRCode = void 0;
1784
+ var ee = Qr(), Z = Gr(), j = qt, X = (
1751
1785
  /** @class */
1752
- function($) {
1753
- V(M, $);
1786
+ function(F) {
1787
+ k(M, F);
1754
1788
  function M(x) {
1755
- var g = $.call(this, x) || this;
1756
- return g.canvasRef = q.createRef(), g;
1789
+ var g = F.call(this, x) || this;
1790
+ return g.canvasRef = j.createRef(), g;
1757
1791
  }
1758
1792
  return M.prototype.download = function(x, g) {
1759
1793
  if (this.canvasRef.current) {
@@ -1770,102 +1804,102 @@ function Gr() {
1770
1804
  m = "image/png";
1771
1805
  break;
1772
1806
  }
1773
- var C = this.canvasRef.current.toDataURL(m, 1), j = document.createElement("a");
1774
- j.download = g ?? "react-qrcode-logo", j.href = C, j.click();
1807
+ var E = this.canvasRef.current.toDataURL(m, 1), $ = document.createElement("a");
1808
+ $.download = g ?? "react-qrcode-logo", $.href = E, $.click();
1775
1809
  }
1776
1810
  }, M.prototype.utf16to8 = function(x) {
1777
- var g = "", m, C, j = x.length;
1778
- for (m = 0; m < j; m++)
1779
- C = x.charCodeAt(m), C >= 1 && C <= 127 ? g += x.charAt(m) : C > 2047 ? (g += String.fromCharCode(224 | C >> 12 & 15), g += String.fromCharCode(128 | C >> 6 & 63), g += String.fromCharCode(128 | C >> 0 & 63)) : (g += String.fromCharCode(192 | C >> 6 & 31), g += String.fromCharCode(128 | C >> 0 & 63));
1811
+ var g = "", m, E, $ = x.length;
1812
+ for (m = 0; m < $; m++)
1813
+ E = x.charCodeAt(m), E >= 1 && E <= 127 ? g += x.charAt(m) : E > 2047 ? (g += String.fromCharCode(224 | E >> 12 & 15), g += String.fromCharCode(128 | E >> 6 & 63), g += String.fromCharCode(128 | E >> 0 & 63)) : (g += String.fromCharCode(192 | E >> 6 & 31), g += String.fromCharCode(128 | E >> 0 & 63));
1780
1814
  return g;
1781
- }, M.prototype.drawRoundedSquare = function(x, g, m, C, j, S, H, B) {
1782
- B.lineWidth = x, B.fillStyle = j, B.strokeStyle = j, m += x / 2, g += x / 2, C -= x, Array.isArray(S) || (S = [S, S, S, S]), S = S.map(function(O) {
1783
- return O = Math.min(O, C / 2), O < 0 ? 0 : O;
1815
+ }, M.prototype.drawRoundedSquare = function(x, g, m, E, $, D, V, N) {
1816
+ N.lineWidth = x, N.fillStyle = $, N.strokeStyle = $, m += x / 2, g += x / 2, E -= x, Array.isArray(D) || (D = [D, D, D, D]), D = D.map(function(q) {
1817
+ return q = Math.min(q, E / 2), q < 0 ? 0 : q;
1784
1818
  });
1785
- var D = S[0] || 0, K = S[1] || 0, G = S[2] || 0, J = S[3] || 0;
1786
- B.beginPath(), B.moveTo(g + D, m), B.lineTo(g + C - K, m), K && B.quadraticCurveTo(g + C, m, g + C, m + K), B.lineTo(g + C, m + C - G), G && B.quadraticCurveTo(g + C, m + C, g + C - G, m + C), B.lineTo(g + J, m + C), J && B.quadraticCurveTo(g, m + C, g, m + C - J), B.lineTo(g, m + D), D && B.quadraticCurveTo(g, m, g + D, m), B.closePath(), B.stroke(), H && B.fill();
1787
- }, M.prototype.drawPositioningPattern = function(x, g, m, C, j, S, H) {
1788
- H === void 0 && (H = [0, 0, 0, 0]);
1789
- var B = Math.ceil(g), D, K;
1790
- typeof H != "number" && !Array.isArray(H) ? (D = H.outer || 0, K = H.inner || 0) : (D = H, K = D);
1791
- var G, J;
1792
- typeof S != "string" ? (G = S.outer, J = S.inner) : (G = S, J = S);
1793
- var O = C * g + m, w = j * g + m, b = g * 7;
1794
- this.drawRoundedSquare(B, w, O, b, G, D, !1, x), b = g * 3, O += g * 2, w += g * 2, this.drawRoundedSquare(B, w, O, b, J, K, !0, x);
1819
+ var O = D[0] || 0, W = D[1] || 0, G = D[2] || 0, Y = D[3] || 0;
1820
+ N.beginPath(), N.moveTo(g + O, m), N.lineTo(g + E - W, m), W && N.quadraticCurveTo(g + E, m, g + E, m + W), N.lineTo(g + E, m + E - G), G && N.quadraticCurveTo(g + E, m + E, g + E - G, m + E), N.lineTo(g + Y, m + E), Y && N.quadraticCurveTo(g, m + E, g, m + E - Y), N.lineTo(g, m + O), O && N.quadraticCurveTo(g, m, g + O, m), N.closePath(), N.stroke(), V && N.fill();
1821
+ }, M.prototype.drawPositioningPattern = function(x, g, m, E, $, D, V) {
1822
+ V === void 0 && (V = [0, 0, 0, 0]);
1823
+ var N = Math.ceil(g), O, W;
1824
+ typeof V != "number" && !Array.isArray(V) ? (O = V.outer || 0, W = V.inner || 0) : (O = V, W = O);
1825
+ var G, Y;
1826
+ typeof D != "string" ? (G = D.outer, Y = D.inner) : (G = D, Y = D);
1827
+ var q = E * g + m, p = $ * g + m, b = g * 7;
1828
+ this.drawRoundedSquare(N, p, q, b, G, O, !1, x), b = g * 3, q += g * 2, p += g * 2, this.drawRoundedSquare(N, p, q, b, Y, W, !0, x);
1795
1829
  }, M.prototype.isInPositioninZone = function(x, g, m) {
1796
- return m.some(function(C) {
1797
- return g >= C.row && g <= C.row + 7 && x >= C.col && x <= C.col + 7;
1830
+ return m.some(function(E) {
1831
+ return g >= E.row && g <= E.row + 7 && x >= E.col && x <= E.col + 7;
1798
1832
  });
1799
1833
  }, M.prototype.transformPixelLengthIntoNumberOfCells = function(x, g) {
1800
1834
  return x / g;
1801
- }, M.prototype.isCoordinateInImage = function(x, g, m, C, j, S, H, B) {
1802
- if (B) {
1803
- var D = 2, K = this.transformPixelLengthIntoNumberOfCells(j, H), G = this.transformPixelLengthIntoNumberOfCells(S, H), J = this.transformPixelLengthIntoNumberOfCells(m, H) - 1, O = this.transformPixelLengthIntoNumberOfCells(C, H) - 1;
1804
- return g >= K - D && g <= K + J + D && x >= G - D && x <= G + O + D;
1835
+ }, M.prototype.isCoordinateInImage = function(x, g, m, E, $, D, V, N) {
1836
+ if (N) {
1837
+ var O = 2, W = this.transformPixelLengthIntoNumberOfCells($, V), G = this.transformPixelLengthIntoNumberOfCells(D, V), Y = this.transformPixelLengthIntoNumberOfCells(m, V) - 1, q = this.transformPixelLengthIntoNumberOfCells(E, V) - 1;
1838
+ return g >= W - O && g <= W + Y + O && x >= G - O && x <= G + q + O;
1805
1839
  } else
1806
1840
  return !1;
1807
1841
  }, M.prototype.shouldComponentUpdate = function(x) {
1808
- return !ie(this.props, x);
1842
+ return !ee(this.props, x);
1809
1843
  }, M.prototype.componentDidMount = function() {
1810
1844
  this.update();
1811
1845
  }, M.prototype.componentDidUpdate = function() {
1812
1846
  this.update();
1813
1847
  }, M.prototype.update = function() {
1814
- var x, g = this.props, m = g.value, C = g.ecLevel, j = g.enableCORS, S = g.bgColor, H = g.fgColor, B = g.logoImage, D = g.logoOpacity, K = g.logoOnLoad, G = g.removeQrCodeBehindLogo, J = g.qrStyle, O = g.eyeRadius, w = g.eyeColor, b = g.logoPaddingStyle, d = +this.props.size, c = +this.props.quietZone, a = this.props.logoWidth ? +this.props.logoWidth : 0, h = this.props.logoHeight ? +this.props.logoHeight : 0, n = this.props.logoPadding ? +this.props.logoPadding : 0, t = Z(0, C);
1848
+ var x, g = this.props, m = g.value, E = g.ecLevel, $ = g.enableCORS, D = g.bgColor, V = g.fgColor, N = g.logoImage, O = g.logoOpacity, W = g.logoOnLoad, G = g.removeQrCodeBehindLogo, Y = g.qrStyle, q = g.eyeRadius, p = g.eyeColor, b = g.logoPaddingStyle, d = +this.props.size, w = +this.props.quietZone, a = this.props.logoWidth ? +this.props.logoWidth : 0, s = this.props.logoHeight ? +this.props.logoHeight : 0, n = this.props.logoPadding ? +this.props.logoPadding : 0, t = Z(0, E);
1815
1849
  t.addData(this.utf16to8(m)), t.make();
1816
- var p = (x = this.canvasRef) === null || x === void 0 ? void 0 : x.current, o = p.getContext("2d"), y = d + 2 * c, R = t.getModuleCount(), T = d / R, W = window.devicePixelRatio || 1;
1817
- p.height = p.width = y * W, o.scale(W, W), o.fillStyle = S, o.fillRect(0, 0, y, y);
1818
- var U = c, re = [
1850
+ var v = (x = this.canvasRef) === null || x === void 0 ? void 0 : x.current, o = v.getContext("2d"), y = d + 2 * w, S = t.getModuleCount(), C = d / S, J = window.devicePixelRatio || 1;
1851
+ v.height = v.width = y * J, o.scale(J, J), o.fillStyle = D, o.fillRect(0, 0, y, y);
1852
+ var U = w, ne = [
1819
1853
  { row: 0, col: 0 },
1820
- { row: 0, col: R - 7 },
1821
- { row: R - 7, col: 0 }
1854
+ { row: 0, col: S - 7 },
1855
+ { row: S - 7, col: 0 }
1822
1856
  ];
1823
- if (o.strokeStyle = H, J === "dots") {
1824
- o.fillStyle = H;
1825
- for (var oe = T / 2, L = 0; L < R; L++)
1826
- for (var k = 0; k < R; k++)
1827
- t.isDark(L, k) && !this.isInPositioninZone(L, k, re) && (o.beginPath(), o.arc(Math.round(k * T) + oe + U, Math.round(L * T) + oe + U, oe / 100 * 75, 0, 2 * Math.PI, !1), o.closePath(), o.fill());
1828
- } else if (J === "fluid") {
1829
- for (var oe = Math.ceil(T / 2), L = 0; L < R; L++)
1830
- for (var k = 0; k < R; k++)
1831
- if (t.isDark(L, k) && !this.isInPositioninZone(L, k, re)) {
1832
- var ue = [!1, !1, !1, !1];
1833
- L > 0 && !t.isDark(L - 1, k) && k > 0 && !t.isDark(L, k - 1) && (ue[0] = !0), L > 0 && !t.isDark(L - 1, k) && k < R - 1 && !t.isDark(L, k + 1) && (ue[1] = !0), L < R - 1 && !t.isDark(L + 1, k) && k < R - 1 && !t.isDark(L, k + 1) && (ue[2] = !0), L < R - 1 && !t.isDark(L + 1, k) && k > 0 && !t.isDark(L, k - 1) && (ue[3] = !0);
1834
- var Q = Math.ceil((k + 1) * T) - Math.floor(k * T), se = Math.ceil((L + 1) * T) - Math.floor(L * T);
1835
- o.fillStyle = H, o.beginPath(), o.arc(Math.round(k * T) + oe + U, Math.round(L * T) + oe + U, oe, 0, 2 * Math.PI, !1), o.closePath(), o.fill(), ue[0] || o.fillRect(Math.round(k * T) + U, Math.round(L * T) + U, Q / 2, se / 2), ue[1] || o.fillRect(Math.round(k * T) + U + Math.floor(Q / 2), Math.round(L * T) + U, Q / 2, se / 2), ue[2] || o.fillRect(Math.round(k * T) + U + Math.floor(Q / 2), Math.round(L * T) + U + Math.floor(se / 2), Q / 2, se / 2), ue[3] || o.fillRect(Math.round(k * T) + U, Math.round(L * T) + U + Math.floor(se / 2), Q / 2, se / 2);
1857
+ if (o.strokeStyle = V, Y === "dots") {
1858
+ o.fillStyle = V;
1859
+ for (var oe = C / 2, L = 0; L < S; L++)
1860
+ for (var P = 0; P < S; P++)
1861
+ t.isDark(L, P) && !this.isInPositioninZone(L, P, ne) && (o.beginPath(), o.arc(Math.round(P * C) + oe + U, Math.round(L * C) + oe + U, oe / 100 * 75, 0, 2 * Math.PI, !1), o.closePath(), o.fill());
1862
+ } else if (Y === "fluid") {
1863
+ for (var oe = Math.ceil(C / 2), L = 0; L < S; L++)
1864
+ for (var P = 0; P < S; P++)
1865
+ if (t.isDark(L, P) && !this.isInPositioninZone(L, P, ne)) {
1866
+ var le = [!1, !1, !1, !1];
1867
+ L > 0 && !t.isDark(L - 1, P) && P > 0 && !t.isDark(L, P - 1) && (le[0] = !0), L > 0 && !t.isDark(L - 1, P) && P < S - 1 && !t.isDark(L, P + 1) && (le[1] = !0), L < S - 1 && !t.isDark(L + 1, P) && P < S - 1 && !t.isDark(L, P + 1) && (le[2] = !0), L < S - 1 && !t.isDark(L + 1, P) && P > 0 && !t.isDark(L, P - 1) && (le[3] = !0);
1868
+ var K = Math.ceil((P + 1) * C) - Math.floor(P * C), fe = Math.ceil((L + 1) * C) - Math.floor(L * C);
1869
+ o.fillStyle = V, o.beginPath(), o.arc(Math.round(P * C) + oe + U, Math.round(L * C) + oe + U, oe, 0, 2 * Math.PI, !1), o.closePath(), o.fill(), le[0] || o.fillRect(Math.round(P * C) + U, Math.round(L * C) + U, K / 2, fe / 2), le[1] || o.fillRect(Math.round(P * C) + U + Math.floor(K / 2), Math.round(L * C) + U, K / 2, fe / 2), le[2] || o.fillRect(Math.round(P * C) + U + Math.floor(K / 2), Math.round(L * C) + U + Math.floor(fe / 2), K / 2, fe / 2), le[3] || o.fillRect(Math.round(P * C) + U, Math.round(L * C) + U + Math.floor(fe / 2), K / 2, fe / 2);
1836
1870
  }
1837
1871
  } else
1838
- for (var L = 0; L < R; L++)
1839
- for (var k = 0; k < R; k++)
1840
- if (t.isDark(L, k) && !this.isInPositioninZone(L, k, re)) {
1841
- o.fillStyle = H;
1842
- var Q = Math.ceil((k + 1) * T) - Math.floor(k * T), se = Math.ceil((L + 1) * T) - Math.floor(L * T);
1843
- o.fillRect(Math.round(k * T) + U, Math.round(L * T) + U, Q, se);
1872
+ for (var L = 0; L < S; L++)
1873
+ for (var P = 0; P < S; P++)
1874
+ if (t.isDark(L, P) && !this.isInPositioninZone(L, P, ne)) {
1875
+ o.fillStyle = V;
1876
+ var K = Math.ceil((P + 1) * C) - Math.floor(P * C), fe = Math.ceil((L + 1) * C) - Math.floor(L * C);
1877
+ o.fillRect(Math.round(P * C) + U, Math.round(L * C) + U, K, fe);
1844
1878
  }
1845
1879
  for (var _e = 0; _e < 3; _e++) {
1846
- var s = re[_e], L = s.row, k = s.col, f = O, i = void 0;
1847
- Array.isArray(f) && (f = f[_e]), typeof f == "number" && (f = [f, f, f, f]), w ? Array.isArray(w) ? i = w[_e] : i = w : i = H, this.drawPositioningPattern(o, T, U, L, k, i, f);
1880
+ var f = ne[_e], L = f.row, P = f.col, u = q, i = void 0;
1881
+ Array.isArray(u) && (u = u[_e]), typeof u == "number" && (u = [u, u, u, u]), p ? Array.isArray(p) ? i = p[_e] : i = p : i = V, this.drawPositioningPattern(o, C, U, L, P, i, u);
1848
1882
  }
1849
- if (B) {
1850
- var u = new Image();
1851
- j && (u.crossOrigin = "Anonymous"), u.onload = function(v) {
1883
+ if (N) {
1884
+ var l = new Image();
1885
+ $ && (l.crossOrigin = "Anonymous"), l.onload = function(h) {
1852
1886
  o.save();
1853
- var _ = a || d * 0.2, I = h || _, E = (d - _) / 2, X = (d - I) / 2;
1887
+ var _ = a || d * 0.2, R = s || _, I = (d - _) / 2, z = (d - R) / 2;
1854
1888
  if (G || n) {
1855
- o.beginPath(), o.strokeStyle = S, o.fillStyle = S;
1856
- var ee = _ + 2 * n, N = I + 2 * n, le = E + U - n, ce = X + U - n;
1889
+ o.beginPath(), o.strokeStyle = D, o.fillStyle = D;
1890
+ var te = _ + 2 * n, B = R + 2 * n, ce = I + U - n, ve = z + U - n;
1857
1891
  if (b === "circle") {
1858
- var ke = le + ee / 2, Be = ce + N / 2;
1859
- o.ellipse(ke, Be, ee / 2, N / 2, 0, 0, 2 * Math.PI), o.stroke(), o.fill();
1892
+ var ke = ce + te / 2, Ne = ve + B / 2;
1893
+ o.ellipse(ke, Ne, te / 2, B / 2, 0, 0, 2 * Math.PI), o.stroke(), o.fill();
1860
1894
  } else
1861
- o.fillRect(le, ce, ee, N);
1895
+ o.fillRect(ce, ve, te, B);
1862
1896
  }
1863
- o.globalAlpha = D, o.drawImage(u, E + U, X + U, _, I), o.restore(), K && K(v);
1864
- }, u.src = B;
1897
+ o.globalAlpha = O, o.drawImage(l, I + U, z + U, _, R), o.restore(), W && W(h);
1898
+ }, l.src = N;
1865
1899
  }
1866
1900
  }, M.prototype.render = function() {
1867
1901
  var x, g = +this.props.size + 2 * +this.props.quietZone;
1868
- return q.createElement("canvas", { id: (x = this.props.id) !== null && x !== void 0 ? x : "react-qrcode-logo", height: g, width: g, style: z({ height: g + "px", width: g + "px" }, this.props.style), ref: this.canvasRef });
1902
+ return j.createElement("canvas", { id: (x = this.props.id) !== null && x !== void 0 ? x : "react-qrcode-logo", height: g, width: g, style: Q({ height: g + "px", width: g + "px" }, this.props.style), ref: this.canvasRef });
1869
1903
  }, M.defaultProps = {
1870
1904
  value: "https://reactjs.org/",
1871
1905
  ecLevel: "M",
@@ -1879,19 +1913,19 @@ function Gr() {
1879
1913
  eyeRadius: [0, 0, 0],
1880
1914
  logoPaddingStyle: "square"
1881
1915
  }, M;
1882
- }(q.Component)
1916
+ }(j.Component)
1883
1917
  );
1884
- return Te.QRCode = Y, Te;
1918
+ return Ce.QRCode = X, Ce;
1885
1919
  }
1886
- var Ot = Gr();
1887
- const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v-justify-center", children: [
1888
- /* @__PURE__ */ P(
1920
+ var jt = Kr();
1921
+ const $t = () => /* @__PURE__ */ se("div", { className: "v-flex v-items-center v-justify-center", children: [
1922
+ /* @__PURE__ */ T(
1889
1923
  "svg",
1890
1924
  {
1891
1925
  className: "v-h-16 v-w-16 v-animate-circular-rotate",
1892
1926
  viewBox: "25 25 50 50",
1893
1927
  xmlns: "http://www.w3.org/2000/svg",
1894
- children: /* @__PURE__ */ P(
1928
+ children: /* @__PURE__ */ T(
1895
1929
  "circle",
1896
1930
  {
1897
1931
  className: "v-circular-path",
@@ -1904,7 +1938,7 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
1904
1938
  )
1905
1939
  }
1906
1940
  ),
1907
- /* @__PURE__ */ P("style", { children: `
1941
+ /* @__PURE__ */ T("style", { children: `
1908
1942
  @keyframes v-circular-rotate {
1909
1943
  100% {
1910
1944
  transform: rotate(360deg);
@@ -1936,31 +1970,89 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
1936
1970
  animation: v-circular-dash 1.4s ease-in-out infinite;
1937
1971
  }
1938
1972
  ` })
1939
- ] }), Wr = ({
1940
- title: V,
1941
- containerClass: z
1973
+ ] });
1974
+ class gt extends Fr {
1975
+ constructor(Q) {
1976
+ super(Q), this.state = {
1977
+ hasError: !1,
1978
+ error: null
1979
+ };
1980
+ }
1981
+ static getDerivedStateFromError(Q) {
1982
+ return {
1983
+ hasError: !0,
1984
+ error: Q
1985
+ };
1986
+ }
1987
+ componentDidCatch(Q, ee) {
1988
+ console.error("Authentication component error:", Q, ee);
1989
+ }
1990
+ render() {
1991
+ return this.state.hasError ? /* @__PURE__ */ se(
1992
+ "div",
1993
+ {
1994
+ className: "v-fixed v-inset-0 v-flex v-flex-col v-items-center v-justify-center v-p-6 v-text-center v-bg-white",
1995
+ style: {
1996
+ position: "fixed",
1997
+ top: 0,
1998
+ left: 0,
1999
+ right: 0,
2000
+ bottom: 0,
2001
+ zIndex: 9999
2002
+ },
2003
+ children: [
2004
+ /* @__PURE__ */ T("div", { className: "v-mb-4", children: /* @__PURE__ */ se(
2005
+ "svg",
2006
+ {
2007
+ xmlns: "http://www.w3.org/2000/svg",
2008
+ width: "24",
2009
+ height: "24",
2010
+ viewBox: "0 0 24 24",
2011
+ fill: "none",
2012
+ stroke: "#ef4444",
2013
+ strokeWidth: "2",
2014
+ strokeLinecap: "round",
2015
+ strokeLinejoin: "round",
2016
+ className: "v-w-16 v-h-16",
2017
+ children: [
2018
+ /* @__PURE__ */ T("circle", { cx: "12", cy: "12", r: "10" }),
2019
+ /* @__PURE__ */ T("line", { x1: "12", y1: "8", x2: "12", y2: "12" }),
2020
+ /* @__PURE__ */ T("line", { x1: "12", y1: "16", x2: "12.01", y2: "16" })
2021
+ ]
2022
+ }
2023
+ ) }),
2024
+ /* @__PURE__ */ T("h2", { className: "v-text-xl v-font-semibold v-text-black v-mb-2", children: "Something went wrong" }),
2025
+ /* @__PURE__ */ T("p", { className: "v-text-gray-600 v-text-sm", children: "An unexpected error occurred during authentication. Please try again." })
2026
+ ]
2027
+ }
2028
+ ) : this.props.children;
2029
+ }
2030
+ }
2031
+ const Wr = ({
2032
+ title: k,
2033
+ containerClass: Q
1942
2034
  }) => {
1943
- const ie = (/* @__PURE__ */ new Date()).getFullYear(), [Z, q] = ge(""), [Y, $] = ge(""), [M, x] = ge(!1), {
2035
+ const ee = (/* @__PURE__ */ new Date()).getFullYear(), [Z, j] = ge(""), [X, F] = ge(""), [M, x] = ge(!1), {
1944
2036
  apiUrl: g,
1945
2037
  clientId: m,
1946
- codeChallenge: C,
1947
- authRequestId: j,
1948
- authRequestIdExpires: S,
1949
- setIsAuthenticating: H,
1950
- isAuthenticating: B,
1951
- token: D,
1952
- setAuthError: K
1953
- } = We(je);
1954
- Ke(() => {
1955
- if (C && j && S) {
1956
- const O = S.getTime() / 1e3, w = `c=${C},r=${j},e=${O},a=${m}`;
1957
- $(w);
1958
- }
1959
- }, [m, j, S, C]);
2038
+ codeChallenge: E,
2039
+ authRequestId: $,
2040
+ authRequestIdExpires: D,
2041
+ setIsAuthenticating: V,
2042
+ isAuthenticating: N,
2043
+ token: O,
2044
+ setAuthError: W
2045
+ } = Ze($e);
2046
+ je(() => {
2047
+ if (E && $ && D) {
2048
+ const q = D.getTime() / 1e3, p = `c=${E},r=${$},e=${q},a=${m}`;
2049
+ F(p);
2050
+ }
2051
+ }, [m, $, D, E]);
1960
2052
  const G = Ie(
1961
- async (O) => {
2053
+ async (q) => {
1962
2054
  try {
1963
- const w = await fetch(
2055
+ const p = await fetch(
1964
2056
  `${g}/v-plus/auth/req?cid=${m}`,
1965
2057
  {
1966
2058
  method: "POST",
@@ -1968,52 +2060,52 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
1968
2060
  Accept: "application/json",
1969
2061
  "Content-Type": "application/json"
1970
2062
  },
1971
- body: JSON.stringify(O)
2063
+ body: JSON.stringify(q)
1972
2064
  }
1973
- ), b = await w.json();
1974
- if (!w.ok || b.ok === !1) {
1975
- K(
1976
- `Auth request failed: ${b.message || w.status}`
2065
+ ), b = await p.json();
2066
+ if (!p.ok || b.ok === !1) {
2067
+ W(
2068
+ `Auth request failed: ${b.message || p.status}`
1977
2069
  );
1978
2070
  return;
1979
2071
  }
1980
2072
  return b;
1981
- } catch (w) {
1982
- K(`Auth request failed: ${w}`);
2073
+ } catch (p) {
2074
+ W(`Auth request failed: ${p}`);
1983
2075
  }
1984
2076
  },
1985
- [g, m, K]
1986
- ), J = Ie(async () => {
2077
+ [g, m, W]
2078
+ ), Y = Ie(async () => {
1987
2079
  x(!0);
1988
2080
  try {
1989
2081
  if (!Z) {
1990
- K("Invalid login. Email or Abaxx ID is required.");
2082
+ W("Invalid login. Email or Abaxx ID is required.");
1991
2083
  return;
1992
2084
  }
1993
- const O = await G({
2085
+ const q = await G({
1994
2086
  alias: Z,
1995
- code_challenge: C,
1996
- request_id: j
2087
+ code_challenge: E,
2088
+ request_id: $
1997
2089
  });
1998
- O != null && O.ok ? H(!0) : !(O != null && O.ok) && (O == null ? void 0 : O.message) === "Unable to request auth." && K("Invalid login. Please use your existing Email or Abaxx ID.");
1999
- } catch (O) {
2000
- K("Something went wrong. Please try again later."), console.error(O);
2090
+ q != null && q.ok ? V(!0) : !(q != null && q.ok) && (q == null ? void 0 : q.message) === "Unable to request auth." && W("Invalid login. Please use your existing Email or Abaxx ID.");
2091
+ } catch (q) {
2092
+ W("Something went wrong. Please try again later."), console.error(q);
2001
2093
  }
2002
2094
  x(!1);
2003
- }, [C, j, Z, x, H, G, K]);
2004
- return /* @__PURE__ */ P(Ve, { children: /* @__PURE__ */ he(
2095
+ }, [E, $, Z, x, V, G, W]);
2096
+ return /* @__PURE__ */ T(We, { children: /* @__PURE__ */ se(
2005
2097
  "div",
2006
2098
  {
2007
- className: `v-auth-container v-grid v-grid-responsive v-h-screen v-bg-white ${z}`,
2099
+ className: `v-auth-container v-grid v-grid-responsive v-h-screen v-bg-white ${Q}`,
2008
2100
  children: [
2009
- /* @__PURE__ */ P(
2101
+ /* @__PURE__ */ T(
2010
2102
  "div",
2011
2103
  {
2012
2104
  className: "v-relative v-bg-left v-bg-cover v-bg-no-repeat v-h-full",
2013
2105
  style: {
2014
2106
  backgroundImage: "url('https://content.abaxx.com/assets/static/email-bg-1.png')"
2015
2107
  },
2016
- children: /* @__PURE__ */ P(
2108
+ children: /* @__PURE__ */ T(
2017
2109
  "div",
2018
2110
  {
2019
2111
  className: "divider v-h-full v-absolute v-bg-white",
@@ -2022,8 +2114,8 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2022
2114
  )
2023
2115
  }
2024
2116
  ),
2025
- /* @__PURE__ */ he("div", { className: "v-flex v-flex-col v-items-center v-justify-center v-px-4", children: [
2026
- /* @__PURE__ */ P(
2117
+ /* @__PURE__ */ se("div", { className: "v-flex v-flex-col v-items-center v-justify-center v-px-4", children: [
2118
+ /* @__PURE__ */ T(
2027
2119
  "img",
2028
2120
  {
2029
2121
  src: "https://content.abaxx.com/assets/static/abaxx-logo.png",
@@ -2033,11 +2125,11 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2033
2125
  height: 56
2034
2126
  }
2035
2127
  ),
2036
- !D && !B ? /* @__PURE__ */ he(Ve, { children: [
2037
- /* @__PURE__ */ P("div", { className: "v-mb-8", children: j && Y ? /* @__PURE__ */ P(
2038
- Ot.QRCode,
2128
+ !O && !N ? /* @__PURE__ */ se(We, { children: [
2129
+ /* @__PURE__ */ T("div", { className: "v-mb-8", children: $ && X ? /* @__PURE__ */ T(
2130
+ jt.QRCode,
2039
2131
  {
2040
- value: Y,
2132
+ value: X,
2041
2133
  size: 130,
2042
2134
  fgColor: "#e60100",
2043
2135
  qrStyle: "dots",
@@ -2046,29 +2138,29 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2046
2138
  logoHeight: 20,
2047
2139
  quietZone: 0
2048
2140
  }
2049
- ) : /* @__PURE__ */ P("div", { className: "v-w-130 v-h-130 v-flex v-items-center v-justify-center", children: /* @__PURE__ */ P(qt, {}) }) }),
2050
- /* @__PURE__ */ P("h1", { className: "v-text-black v-text-xl v-tracking-wide v-mb-4 v-font-medium", children: V || "Verifier+ Login" }),
2051
- /* @__PURE__ */ P("p", { className: "v-text-gray-400 v-font-semibold v-mb-6 v-text-sm", children: "Sign in using the latest version of Verifier+ or enter Abaxx ID" }),
2052
- /* @__PURE__ */ he("div", { className: "v-min-w-300", children: [
2053
- /* @__PURE__ */ P(
2141
+ ) : /* @__PURE__ */ T("div", { className: "v-w-130 v-h-130 v-flex v-items-center v-justify-center", children: /* @__PURE__ */ T($t, {}) }) }),
2142
+ /* @__PURE__ */ T("h1", { className: "v-text-black v-text-xl v-tracking-wide v-mb-4 v-font-medium", children: k || "Verifier+ Login" }),
2143
+ /* @__PURE__ */ T("p", { className: "v-text-gray-400 v-font-semibold v-mb-6 v-text-sm", children: "Sign in using the latest version of Verifier+ or enter Abaxx ID" }),
2144
+ /* @__PURE__ */ se("div", { className: "v-min-w-300", children: [
2145
+ /* @__PURE__ */ T(
2054
2146
  "input",
2055
2147
  {
2056
2148
  type: "text",
2057
2149
  className: "v-input v-w-full v-h-10 v-mb-4 v-rounded v-bg-transparent v-text-gray-600 v-border-gray-400 v-border v-px-2 v-text-center",
2058
2150
  placeholder: "Enter Email or Abaxx ID",
2059
2151
  value: Z,
2060
- onChange: (O) => q(O.target.value),
2152
+ onChange: (q) => j(q.target.value),
2061
2153
  disabled: M
2062
2154
  }
2063
2155
  ),
2064
- /* @__PURE__ */ he(
2156
+ /* @__PURE__ */ se(
2065
2157
  "button",
2066
2158
  {
2067
2159
  className: "v-button v-h-10 v-w-full v-bg-red v-text-white v-text-base v-font-semibold v-flex v-items-center v-gap-2 v-justify-center",
2068
- disabled: M || !Z || !j,
2069
- onClick: J,
2160
+ disabled: M || !Z || !$,
2161
+ onClick: Y,
2070
2162
  children: [
2071
- M && /* @__PURE__ */ P(
2163
+ M && /* @__PURE__ */ T(
2072
2164
  "svg",
2073
2165
  {
2074
2166
  xmlns: "http://www.w3.org/2000/svg",
@@ -2081,7 +2173,7 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2081
2173
  strokeLinecap: "round",
2082
2174
  strokeLinejoin: "round",
2083
2175
  className: "v-h-4 v-w-4 v-animate-spin",
2084
- children: /* @__PURE__ */ P("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2176
+ children: /* @__PURE__ */ T("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2085
2177
  }
2086
2178
  ),
2087
2179
  "Sign In"
@@ -2089,8 +2181,8 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2089
2181
  }
2090
2182
  )
2091
2183
  ] })
2092
- ] }) : /* @__PURE__ */ he("div", { className: "v-fade-in v-flex v-items-center v-flex-col", children: [
2093
- /* @__PURE__ */ P(
2184
+ ] }) : /* @__PURE__ */ se("div", { className: "v-fade-in v-flex v-items-center v-flex-col", children: [
2185
+ /* @__PURE__ */ T(
2094
2186
  "svg",
2095
2187
  {
2096
2188
  xmlns: "http://www.w3.org/2000/svg",
@@ -2103,18 +2195,18 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2103
2195
  strokeLinecap: "round",
2104
2196
  strokeLinejoin: "round",
2105
2197
  className: "v-mb-5 v-w-20 v-h-20",
2106
- children: /* @__PURE__ */ P("path", { d: "M20 6 9 17l-5-5" })
2198
+ children: /* @__PURE__ */ T("path", { d: "M20 6 9 17l-5-5" })
2107
2199
  }
2108
2200
  ),
2109
- D ? /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(Ve, { children: [
2110
- /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Authorization requested!" }) }),
2111
- /* @__PURE__ */ P("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ P("span", { children: "Please check the Abaxx Verifier App" }) })
2201
+ O ? /* @__PURE__ */ T("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ T("span", { children: "Login success!" }) }) : /* @__PURE__ */ se(We, { children: [
2202
+ /* @__PURE__ */ T("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ T("span", { children: "Authorization requested!" }) }),
2203
+ /* @__PURE__ */ T("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ T("span", { children: "Please check the Abaxx Verifier App" }) })
2112
2204
  ] })
2113
2205
  ] }),
2114
- /* @__PURE__ */ he("div", { className: "v-text-center v-text-sm v-p-6 v-font-semibold", children: [
2115
- /* @__PURE__ */ P("span", { className: "v-text-gray-400", children: `© ${ie} ` }),
2116
- /* @__PURE__ */ P("span", { className: "v-text-gray-800", children: "Abaxx Technologies" }),
2117
- /* @__PURE__ */ he("span", { className: "v-text-gray-400", children: [
2206
+ /* @__PURE__ */ se("div", { className: "v-text-center v-text-sm v-p-6 v-font-semibold", children: [
2207
+ /* @__PURE__ */ T("span", { className: "v-text-gray-400", children: `© ${ee} ` }),
2208
+ /* @__PURE__ */ T("span", { className: "v-text-gray-800", children: "Abaxx Technologies" }),
2209
+ /* @__PURE__ */ se("span", { className: "v-text-gray-400", children: [
2118
2210
  " ",
2119
2211
  "| All rights reserved"
2120
2212
  ] })
@@ -2123,51 +2215,51 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2123
2215
  ]
2124
2216
  }
2125
2217
  ) });
2126
- }, Zr = ({
2127
- size: V = 130,
2128
- qrColor: z = "#e60100",
2129
- logoImage: ie = "https://content.abaxx.com/assets/static/qr-logo.png",
2218
+ }, en = (k) => /* @__PURE__ */ T(gt, { children: /* @__PURE__ */ T(Wr, { ...k }) }), Zr = ({
2219
+ size: k = 130,
2220
+ qrColor: Q = "#e60100",
2221
+ logoImage: ee = "https://content.abaxx.com/assets/static/qr-logo.png",
2130
2222
  logoWidth: Z = 40,
2131
- logoHeight: q = 20,
2132
- quietZone: Y = 0,
2133
- containerClass: $ = "",
2223
+ logoHeight: j = 20,
2224
+ quietZone: X = 0,
2225
+ containerClass: F = "",
2134
2226
  showStatus: M = !0,
2135
2227
  checkmarkColor: x = "#c40808"
2136
2228
  }) => {
2137
2229
  const [g, m] = ge(""), {
2138
- clientId: C,
2139
- codeChallenge: j,
2140
- authRequestId: S,
2141
- authRequestIdExpires: H,
2142
- isAuthenticating: B,
2143
- token: D
2144
- } = We(je);
2145
- return Ke(() => {
2146
- if (j && S && H) {
2147
- const K = H.getTime() / 1e3, G = `c=${j},r=${S},e=${K},a=${C}`;
2230
+ clientId: E,
2231
+ codeChallenge: $,
2232
+ authRequestId: D,
2233
+ authRequestIdExpires: V,
2234
+ isAuthenticating: N,
2235
+ token: O
2236
+ } = Ze($e);
2237
+ return je(() => {
2238
+ if ($ && D && V) {
2239
+ const W = V.getTime() / 1e3, G = `c=${$},r=${D},e=${W},a=${E}`;
2148
2240
  m(G);
2149
2241
  }
2150
- }, [C, S, H, j]), /* @__PURE__ */ P("div", { className: `v-auth-qr-container ${$}`, children: !D && !B ? /* @__PURE__ */ P("div", { className: "v-qr-wrapper", children: S && g ? /* @__PURE__ */ P(
2151
- Ot.QRCode,
2242
+ }, [E, D, V, $]), /* @__PURE__ */ T("div", { className: `v-auth-qr-container ${F}`, children: !O && !N ? /* @__PURE__ */ T("div", { className: "v-qr-wrapper", children: D && g ? /* @__PURE__ */ T(
2243
+ jt.QRCode,
2152
2244
  {
2153
2245
  value: g,
2154
- size: V,
2155
- fgColor: z,
2246
+ size: k,
2247
+ fgColor: Q,
2156
2248
  qrStyle: "dots",
2157
- logoImage: ie,
2249
+ logoImage: ee,
2158
2250
  logoWidth: Z,
2159
- logoHeight: q,
2160
- quietZone: Y
2251
+ logoHeight: j,
2252
+ quietZone: X
2161
2253
  }
2162
- ) : /* @__PURE__ */ P(
2254
+ ) : /* @__PURE__ */ T(
2163
2255
  "div",
2164
2256
  {
2165
2257
  className: "v-flex v-items-center v-justify-center",
2166
- style: { width: V, height: V },
2167
- children: /* @__PURE__ */ P(qt, {})
2258
+ style: { width: k, height: k },
2259
+ children: /* @__PURE__ */ T($t, {})
2168
2260
  }
2169
- ) }) : M ? /* @__PURE__ */ he("div", { className: "v-fade-in v-flex v-items-center v-flex-col", children: [
2170
- /* @__PURE__ */ P(
2261
+ ) }) : M ? /* @__PURE__ */ se("div", { className: "v-fade-in v-flex v-items-center v-flex-col", children: [
2262
+ /* @__PURE__ */ T(
2171
2263
  "svg",
2172
2264
  {
2173
2265
  xmlns: "http://www.w3.org/2000/svg",
@@ -2180,44 +2272,44 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2180
2272
  strokeLinecap: "round",
2181
2273
  strokeLinejoin: "round",
2182
2274
  className: "v-mb-5",
2183
- style: { width: V * 0.6, height: V * 0.6 },
2184
- children: /* @__PURE__ */ P("path", { d: "M20 6 9 17l-5-5" })
2275
+ style: { width: k * 0.6, height: k * 0.6 },
2276
+ children: /* @__PURE__ */ T("path", { d: "M20 6 9 17l-5-5" })
2185
2277
  }
2186
2278
  ),
2187
- D ? /* @__PURE__ */ P("div", { className: "v-text-lg v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(Ve, { children: [
2188
- /* @__PURE__ */ P("div", { className: "v-text-lg v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Authorization requested!" }) }),
2189
- /* @__PURE__ */ P("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ P("span", { children: "Please check the Abaxx Verifier App" }) })
2279
+ O ? /* @__PURE__ */ T("div", { className: "v-text-lg v-mb-3 v-text-black", children: /* @__PURE__ */ T("span", { children: "Login success!" }) }) : /* @__PURE__ */ se(We, { children: [
2280
+ /* @__PURE__ */ T("div", { className: "v-text-lg v-mb-3 v-text-black", children: /* @__PURE__ */ T("span", { children: "Authorization requested!" }) }),
2281
+ /* @__PURE__ */ T("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ T("span", { children: "Please check the Abaxx Verifier App" }) })
2190
2282
  ] })
2191
2283
  ] }) : null });
2192
- }, Jr = ({
2193
- inputPlaceholder: V = "Enter Email or Abaxx ID",
2194
- buttonText: z = "Sign In",
2195
- inputHeight: ie = "v-h-10",
2284
+ }, tn = (k) => /* @__PURE__ */ T(gt, { children: /* @__PURE__ */ T(Zr, { ...k }) }), Jr = ({
2285
+ inputPlaceholder: k = "Enter Email or Abaxx ID",
2286
+ buttonText: Q = "Sign In",
2287
+ inputHeight: ee = "v-h-10",
2196
2288
  inputWidth: Z = "v-w-full",
2197
- inputTextColor: q = "v-text-gray-600",
2198
- inputBorderColor: Y = "v-border-gray-400",
2199
- inputBackgroundColor: $ = "v-bg-transparent",
2289
+ inputTextColor: j = "v-text-gray-600",
2290
+ inputBorderColor: X = "v-border-gray-400",
2291
+ inputBackgroundColor: F = "v-bg-transparent",
2200
2292
  buttonHeight: M = "v-h-10",
2201
2293
  buttonWidth: x = "v-w-full",
2202
2294
  buttonBackgroundColor: g = "v-bg-red",
2203
2295
  buttonTextColor: m = "v-text-white",
2204
- containerClass: C = "",
2205
- checkmarkColor: j = "#c40808"
2296
+ containerClass: E = "",
2297
+ checkmarkColor: $ = "#c40808"
2206
2298
  }) => {
2207
- const [S, H] = ge(""), [B, D] = ge(!1), {
2208
- apiUrl: K,
2299
+ const [D, V] = ge(""), [N, O] = ge(!1), {
2300
+ apiUrl: W,
2209
2301
  clientId: G,
2210
- codeChallenge: J,
2211
- authRequestId: O,
2212
- setIsAuthenticating: w,
2302
+ codeChallenge: Y,
2303
+ authRequestId: q,
2304
+ setIsAuthenticating: p,
2213
2305
  setAuthError: b,
2214
2306
  isAuthenticating: d,
2215
- token: c
2216
- } = We(je), a = Ie(
2307
+ token: w
2308
+ } = Ze($e), a = Ie(
2217
2309
  async (n) => {
2218
2310
  try {
2219
2311
  const t = await fetch(
2220
- `${K}/v-plus/auth/req?cid=${G}`,
2312
+ `${W}/v-plus/auth/req?cid=${G}`,
2221
2313
  {
2222
2314
  method: "POST",
2223
2315
  headers: {
@@ -2226,55 +2318,55 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2226
2318
  },
2227
2319
  body: JSON.stringify(n)
2228
2320
  }
2229
- ), p = await t.json();
2230
- if (!t.ok || p.ok === !1) {
2321
+ ), v = await t.json();
2322
+ if (!t.ok || v.ok === !1) {
2231
2323
  b(
2232
- `Auth request failed: ${p.message || t.status}`
2324
+ `Auth request failed: ${v.message || t.status}`
2233
2325
  );
2234
2326
  return;
2235
2327
  }
2236
- return p;
2328
+ return v;
2237
2329
  } catch (t) {
2238
2330
  b(`Auth request failed: ${t}`);
2239
2331
  }
2240
2332
  },
2241
- [K, G, b]
2242
- ), h = Ie(async () => {
2243
- D(!0);
2333
+ [W, G, b]
2334
+ ), s = Ie(async () => {
2335
+ O(!0);
2244
2336
  try {
2245
- if (!S) {
2337
+ if (!D) {
2246
2338
  b("Invalid login. Email or Abaxx ID is required.");
2247
2339
  return;
2248
2340
  }
2249
2341
  const n = await a({
2250
- alias: S,
2251
- code_challenge: J,
2252
- request_id: O
2342
+ alias: D,
2343
+ code_challenge: Y,
2344
+ request_id: q
2253
2345
  });
2254
- n != null && n.ok ? w(!0) : !(n != null && n.ok) && (n == null ? void 0 : n.message) === "Unable to request auth." && b("Invalid login. Please use your existing Email or Abaxx ID.");
2346
+ n != null && n.ok ? p(!0) : !(n != null && n.ok) && (n == null ? void 0 : n.message) === "Unable to request auth." && b("Invalid login. Please use your existing Email or Abaxx ID.");
2255
2347
  } catch (n) {
2256
2348
  b("Something went wrong. Please try again later."), console.error(n);
2257
2349
  }
2258
- D(!1);
2259
- }, [J, O, S, D, w, a, b]);
2260
- return /* @__PURE__ */ P("div", { className: `v-auth-email-container ${C}`, children: !c && !d ? /* @__PURE__ */ he("div", { className: "v-min-w-300", children: [
2261
- /* @__PURE__ */ P(
2350
+ O(!1);
2351
+ }, [Y, q, D, O, p, a, b]);
2352
+ return /* @__PURE__ */ T("div", { className: `v-auth-email-container ${E}`, children: !w && !d ? /* @__PURE__ */ se("div", { className: "v-min-w-300", children: [
2353
+ /* @__PURE__ */ T(
2262
2354
  "input",
2263
2355
  {
2264
2356
  type: "text",
2265
- className: `v-input ${Z} ${ie} v-mb-4 v-rounded v-border v-px-2 v-text-center`,
2357
+ className: `v-input ${Z} ${ee} v-mb-4 v-rounded v-border v-px-2 v-text-center`,
2266
2358
  style: {
2267
- backgroundColor: $.startsWith("#") ? $ : $ === "v-bg-transparent" ? "transparent" : $ === "v-bg-white" ? "#ffffff" : "transparent",
2268
- color: q.startsWith("#") ? q : q === "v-text-gray-600" ? "#6b7280" : q === "v-text-black" ? "#000000" : q === "v-text-white" ? "#ffffff" : "#6b7280",
2269
- borderColor: Y.startsWith("#") ? Y : Y === "v-border-gray-400" ? "#9ca3af" : Y === "v-border-blue-400" ? "#60a5fa" : "#9ca3af"
2359
+ backgroundColor: F.startsWith("#") ? F : F === "v-bg-transparent" ? "transparent" : F === "v-bg-white" ? "#ffffff" : "transparent",
2360
+ color: j.startsWith("#") ? j : j === "v-text-gray-600" ? "#6b7280" : j === "v-text-black" ? "#000000" : j === "v-text-white" ? "#ffffff" : "#6b7280",
2361
+ borderColor: X.startsWith("#") ? X : X === "v-border-gray-400" ? "#9ca3af" : X === "v-border-blue-400" ? "#60a5fa" : "#9ca3af"
2270
2362
  },
2271
- placeholder: V,
2272
- value: S,
2273
- onChange: (n) => H(n.target.value),
2274
- disabled: B
2363
+ placeholder: k,
2364
+ value: D,
2365
+ onChange: (n) => V(n.target.value),
2366
+ disabled: N
2275
2367
  }
2276
2368
  ),
2277
- /* @__PURE__ */ he(
2369
+ /* @__PURE__ */ se(
2278
2370
  "button",
2279
2371
  {
2280
2372
  className: `v-button ${M} ${x} v-text-base v-font-semibold v-flex v-items-center v-gap-2 v-justify-center`,
@@ -2282,10 +2374,10 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2282
2374
  backgroundColor: g.startsWith("#") ? g : g === "v-bg-blue" ? "#3b82f6" : g === "v-bg-red" ? "#ef4444" : g === "v-bg-green" ? "#10b981" : g === "v-bg-purple" ? "#8b5cf6" : g === "v-bg-yellow" ? "#f59e0b" : g === "v-bg-gray" ? "#6b7280" : "#ef4444",
2283
2375
  color: m.startsWith("#") ? m : m === "v-text-white" ? "#ffffff" : m === "v-text-black" ? "#000000" : m === "v-text-gray-600" ? "#6b7280" : "#ffffff"
2284
2376
  },
2285
- disabled: B || !S || !O,
2286
- onClick: h,
2377
+ disabled: N || !D || !q,
2378
+ onClick: s,
2287
2379
  children: [
2288
- B && /* @__PURE__ */ P(
2380
+ N && /* @__PURE__ */ T(
2289
2381
  "svg",
2290
2382
  {
2291
2383
  xmlns: "http://www.w3.org/2000/svg",
@@ -2293,20 +2385,20 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2293
2385
  height: "24",
2294
2386
  viewBox: "0 0 24 24",
2295
2387
  fill: "none",
2296
- stroke: j,
2388
+ stroke: $,
2297
2389
  strokeWidth: "2",
2298
2390
  strokeLinecap: "round",
2299
2391
  strokeLinejoin: "round",
2300
2392
  className: "v-h-4 v-w-4 v-animate-spin",
2301
- children: /* @__PURE__ */ P("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2393
+ children: /* @__PURE__ */ T("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2302
2394
  }
2303
2395
  ),
2304
- z
2396
+ Q
2305
2397
  ]
2306
2398
  }
2307
2399
  )
2308
- ] }) : /* @__PURE__ */ he("div", { className: "v-fade-in v-flex v-items-center v-flex-col", children: [
2309
- /* @__PURE__ */ P(
2400
+ ] }) : /* @__PURE__ */ se("div", { className: "v-fade-in v-flex v-items-center v-flex-col", children: [
2401
+ /* @__PURE__ */ T(
2310
2402
  "svg",
2311
2403
  {
2312
2404
  xmlns: "http://www.w3.org/2000/svg",
@@ -2314,36 +2406,36 @@ const qt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2314
2406
  height: "24",
2315
2407
  viewBox: "0 0 24 24",
2316
2408
  fill: "none",
2317
- stroke: j,
2409
+ stroke: $,
2318
2410
  strokeWidth: "2",
2319
2411
  strokeLinecap: "round",
2320
2412
  strokeLinejoin: "round",
2321
2413
  className: "v-mb-5 v-w-20 v-h-20",
2322
- children: /* @__PURE__ */ P("path", { d: "M20 6 9 17l-5-5" })
2414
+ children: /* @__PURE__ */ T("path", { d: "M20 6 9 17l-5-5" })
2323
2415
  }
2324
2416
  ),
2325
- c ? /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(Ve, { children: [
2326
- /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Authorization requested!" }) }),
2327
- /* @__PURE__ */ P("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ P("span", { children: "Please check the Abaxx Verifier App" }) })
2417
+ w ? /* @__PURE__ */ T("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ T("span", { children: "Login success!" }) }) : /* @__PURE__ */ se(We, { children: [
2418
+ /* @__PURE__ */ T("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ T("span", { children: "Authorization requested!" }) }),
2419
+ /* @__PURE__ */ T("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ T("span", { children: "Please check the Abaxx Verifier App" }) })
2328
2420
  ] })
2329
2421
  ] }) });
2330
- };
2331
- function Yr() {
2332
- const { resetState: V } = We(je);
2333
- return V;
2422
+ }, rn = (k) => /* @__PURE__ */ T(gt, { children: /* @__PURE__ */ T(Jr, { ...k }) });
2423
+ function nn() {
2424
+ const { resetState: k } = Ze($e);
2425
+ return k;
2334
2426
  }
2335
- function Xr(V) {
2336
- V.resetState();
2427
+ function an(k) {
2428
+ k.resetState();
2337
2429
  }
2338
2430
  export {
2339
- je as VContext,
2340
- jr as VContextProvider,
2341
- Wr as VerifierAuth,
2342
- Jr as VerifierAuthEmail,
2343
- Zr as VerifierAuthQr,
2344
- Kr as VerifierProvider,
2345
- Dt as base64urlEncode,
2346
- $r as generateCodeVerifier,
2347
- Xr as resetVerifierStateUnsafe,
2348
- Yr as useVerifierReset
2431
+ $e as VContext,
2432
+ Ur as VContextProvider,
2433
+ en as VerifierAuth,
2434
+ rn as VerifierAuthEmail,
2435
+ tn as VerifierAuthQr,
2436
+ zr as VerifierProvider,
2437
+ kt as base64urlEncode,
2438
+ Hr as generateCodeVerifier,
2439
+ an as resetVerifierStateUnsafe,
2440
+ nn as useVerifierReset
2349
2441
  };