@10yun/open-sdk 0.3.131 → 0.3.133

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.

Potentially problematic release.


This version of @10yun/open-sdk might be problematic. Click here for more details.

@@ -0,0 +1,2742 @@
1
+ import { D as j, O as e3, _ as t3, b as a3, h as i3, m as o3, u as s3, v as r3, w as X } from "./opensdk-v3-BPsKIq21.js";
2
+ import { t as G } from "./_plugin-vue_export-helper-Be64z-LZ.js";
3
+ import { createBlock as Q, createCommentVNode as B, createElementBlock as S, createElementVNode as f, createTextVNode as O, createVNode as E, openBlock as T, resolveComponent as N, toDisplayString as C, withCtx as I, withKeys as n3 } from "vue";
4
+ var l3 = {}, h3 = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ viewBox: "0 0 1024 1024"
7
+ };
8
+ function c3(l, s) {
9
+ return T(), S("svg", h3, [...s[0] || (s[0] = [f("path", {
10
+ d: "M384 554.666667a85.333333 85.333333 0 0 1 85.333333 85.333333v234.666667a85.333333 85.333333 0 0 1-85.333333 85.333333H149.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V640a85.333333 85.333333 0 0 1 85.333333-85.333333h234.666667z m226.133333 277.333333c4.693333 0 8.533333 3.84 8.533334 8.533333V896h183.466666c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333H563.2a8.533333 8.533333 0 0 1-8.533333-8.533333v-110.933334c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933333z m341.333334 0c4.693333 0 8.533333 3.84 8.533333 8.533333v110.933334a8.533333 8.533333 0 0 1-8.533333 8.533333h-46.933334a8.533333 8.533333 0 0 1-8.533333-8.533333v-110.933334c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933334zM384 618.666667H149.333333a21.333333 21.333333 0 0 0-21.184 18.837333L128 640v234.666667a21.333333 21.333333 0 0 0 18.837333 21.184L149.333333 896h234.666667a21.333333 21.333333 0 0 0 21.184-18.837333L405.333333 874.666667V640a21.333333 21.333333 0 0 0-18.837333-21.184L384 618.666667z m418.133333 149.333333c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333h-46.933333a8.533333 8.533333 0 0 1-8.533333-8.533333v-46.933334c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933333zM298.666667 704a21.333333 21.333333 0 0 1 21.333333 21.333333v64a21.333333 21.333333 0 0 1-21.333333 21.333334h-64a21.333333 21.333333 0 0 1-21.333334-21.333334v-64a21.333333 21.333333 0 0 1 21.333334-21.333333h64z m503.466666-149.333333c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533334 8.533334H618.666667v64h119.466666c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533334 8.533334h-174.933333a8.533333 8.533333 0 0 1-8.533333-8.533334v-174.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h238.933333z m149.333334 128c4.693333 0 8.533333 3.84 8.533333 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533333 8.533334h-132.266667a8.533333 8.533333 0 0 1-8.533333-8.533334v-46.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h132.266667z m0-128c4.693333 0 8.533333 3.84 8.533333 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533333 8.533334h-46.933334a8.533333 8.533333 0 0 1-8.533333-8.533334v-46.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933334zM384 64a85.333333 85.333333 0 0 1 85.333333 85.333333v234.666667a85.333333 85.333333 0 0 1-85.333333 85.333333H149.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V149.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h234.666667z m490.666667 0a85.333333 85.333333 0 0 1 85.333333 85.333333v234.666667a85.333333 85.333333 0 0 1-85.333333 85.333333H640a85.333333 85.333333 0 0 1-85.333333-85.333333V149.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h234.666667zM384 128H149.333333a21.333333 21.333333 0 0 0-21.184 18.837333L128 149.333333v234.666667a21.333333 21.333333 0 0 0 18.837333 21.184L149.333333 405.333333h234.666667a21.333333 21.333333 0 0 0 21.184-18.837333L405.333333 384V149.333333a21.333333 21.333333 0 0 0-18.837333-21.184L384 128z m490.666667 0H640a21.333333 21.333333 0 0 0-21.184 18.837333L618.666667 149.333333v234.666667a21.333333 21.333333 0 0 0 18.837333 21.184L640 405.333333h234.666667a21.333333 21.333333 0 0 0 21.184-18.837333L896 384V149.333333a21.333333 21.333333 0 0 0-18.837333-21.184L874.666667 128z m-576 85.333333a21.333333 21.333333 0 0 1 21.333333 21.333334v64a21.333333 21.333333 0 0 1-21.333333 21.333333h-64a21.333333 21.333333 0 0 1-21.333334-21.333333v-64a21.333333 21.333333 0 0 1 21.333334-21.333334h64z m490.666666 0a21.333333 21.333333 0 0 1 21.333334 21.333334v64a21.333333 21.333333 0 0 1-21.333334 21.333333h-64a21.333333 21.333333 0 0 1-21.333333-21.333333v-64a21.333333 21.333333 0 0 1 21.333333-21.333334h64z",
11
+ fill: "currentColor",
12
+ "p-id": "27545"
13
+ }, null, -1)])]);
14
+ }
15
+ var u3 = /* @__PURE__ */ G(l3, [["render", c3]]), d3 = {}, g3 = {
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ viewBox: "0 0 24 24"
18
+ };
19
+ function f3(l, s) {
20
+ return T(), S("svg", g3, [...s[0] || (s[0] = [f("path", {
21
+ d: "M23 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v12ZM21 4H3v9h18V4ZM3 15v1h18v-1H3Zm3 6a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z",
22
+ fill: "currentColor"
23
+ }, null, -1)])]);
24
+ }
25
+ var v3 = /* @__PURE__ */ G(d3, [["render", f3]]), p3 = {}, m3 = {
26
+ xmlns: "http://www.w3.org/2000/svg",
27
+ viewBox: "0 0 1024 1024"
28
+ };
29
+ function _3(l, s) {
30
+ return T(), S("svg", m3, [...s[0] || (s[0] = [f("path", {
31
+ d: "M128 669.866667v154.133333a72 72 0 0 0 67.776 71.893333l4.224 0.106667H354.133333c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333H205.482667A141.482667 141.482667 0 0 1 64 818.517333V669.866667c0-4.693333 3.84-8.533333 8.533333-8.533334h46.933334c4.693333 0 8.533333 3.84 8.533333 8.533334z m832 0v148.650666A141.482667 141.482667 0 0 1 818.517333 960H669.866667a8.533333 8.533333 0 0 1-8.533334-8.533333v-46.933334c0-4.693333 3.84-8.533333 8.533334-8.533333h154.133333a72 72 0 0 0 71.893333-67.776l0.106667-4.224V669.866667c0-4.693333 3.84-8.533333 8.533333-8.533334h46.933334c4.693333 0 8.533333 3.84 8.533333 8.533334z m0-170.666667v46.933333a8.533333 8.533333 0 0 1-8.533333 8.533334H72.533333a8.533333 8.533333 0 0 1-8.533333-8.533334v-46.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h878.933334c4.693333 0 8.533333 3.84 8.533333 8.533333z m-597.333333-426.666667v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333H200a72 72 0 0 0-71.893333 67.776L128 200V354.133333a8.533333 8.533333 0 0 1-8.533333 8.533334H72.533333a8.533333 8.533333 0 0 1-8.533333-8.533334V205.482667A141.482667 141.482667 0 0 1 205.482667 64H354.133333c4.693333 0 8.533333 3.84 8.533334 8.533333zM818.517333 64A141.482667 141.482667 0 0 1 960 205.482667V354.133333a8.533333 8.533333 0 0 1-8.533333 8.533334h-46.933334a8.533333 8.533333 0 0 1-8.533333-8.533334V200a72 72 0 0 0-67.776-71.893333L824 128H669.866667a8.533333 8.533333 0 0 1-8.533334-8.533333V72.533333c0-4.693333 3.84-8.533333 8.533334-8.533333h148.650666z",
32
+ fill: "currentColor"
33
+ }, null, -1)])]);
34
+ }
35
+ var w3 = /* @__PURE__ */ G(p3, [["render", _3]]), L3 = /* @__PURE__ */ j(((l, s) => {
36
+ var h;
37
+ (function(v, p) {
38
+ typeof l == "object" ? s.exports = p() : typeof define == "function" && define.amd ? define(p) : v.QRCode = p();
39
+ })(l, function() {
40
+ function v(e) {
41
+ this.mode = w.MODE_8BIT_BYTE, this.data = e, this.parsedData = [];
42
+ for (var t = 0, a = this.data.length; t < a; t++) {
43
+ var i = [], o = this.data.charCodeAt(t);
44
+ o > 65536 ? (i[0] = 240 | (o & 1835008) >>> 18, i[1] = 128 | (o & 258048) >>> 12, i[2] = 128 | (o & 4032) >>> 6, i[3] = 128 | o & 63) : o > 2048 ? (i[0] = 224 | (o & 61440) >>> 12, i[1] = 128 | (o & 4032) >>> 6, i[2] = 128 | o & 63) : o > 128 ? (i[0] = 192 | (o & 1984) >>> 6, i[1] = 128 | o & 63) : i[0] = o, this.parsedData.push(i);
45
+ }
46
+ this.parsedData = Array.prototype.concat.apply([], this.parsedData), this.parsedData.length != this.data.length && (this.parsedData.unshift(191), this.parsedData.unshift(187), this.parsedData.unshift(239));
47
+ }
48
+ v.prototype = {
49
+ getLength: function(e) {
50
+ return this.parsedData.length;
51
+ },
52
+ write: function(e) {
53
+ for (var t = 0, a = this.parsedData.length; t < a; t++) e.put(this.parsedData[t], 8);
54
+ }
55
+ };
56
+ function p(e, t) {
57
+ this.typeNumber = e, this.errorCorrectLevel = t, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
58
+ }
59
+ p.prototype = {
60
+ addData: function(e) {
61
+ var t = new v(e);
62
+ this.dataList.push(t), this.dataCache = null;
63
+ },
64
+ isDark: function(e, t) {
65
+ if (e < 0 || this.moduleCount <= e || t < 0 || this.moduleCount <= t) throw new Error(e + "," + t);
66
+ return this.modules[e][t];
67
+ },
68
+ getModuleCount: function() {
69
+ return this.moduleCount;
70
+ },
71
+ make: function() {
72
+ this.makeImpl(!1, this.getBestMaskPattern());
73
+ },
74
+ makeImpl: function(e, t) {
75
+ this.moduleCount = this.typeNumber * 4 + 17, this.modules = new Array(this.moduleCount);
76
+ for (var a = 0; a < this.moduleCount; a++) {
77
+ this.modules[a] = new Array(this.moduleCount);
78
+ for (var i = 0; i < this.moduleCount; i++) this.modules[a][i] = null;
79
+ }
80
+ this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(e, t), this.typeNumber >= 7 && this.setupTypeNumber(e), this.dataCache == null && (this.dataCache = p.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, t);
81
+ },
82
+ setupPositionProbePattern: function(e, t) {
83
+ for (var a = -1; a <= 7; a++)
84
+ if (!(e + a <= -1 || this.moduleCount <= e + a))
85
+ for (var i = -1; i <= 7; i++)
86
+ t + i <= -1 || this.moduleCount <= t + i || (0 <= a && a <= 6 && (i == 0 || i == 6) || 0 <= i && i <= 6 && (a == 0 || a == 6) || 2 <= a && a <= 4 && 2 <= i && i <= 4 ? this.modules[e + a][t + i] = !0 : this.modules[e + a][t + i] = !1);
87
+ },
88
+ getBestMaskPattern: function() {
89
+ for (var e = 0, t = 0, a = 0; a < 8; a++) {
90
+ this.makeImpl(!0, a);
91
+ var i = _.getLostPoint(this);
92
+ (a == 0 || e > i) && (e = i, t = a);
93
+ }
94
+ return t;
95
+ },
96
+ createMovieClip: function(e, t, a) {
97
+ var i = e.createEmptyMovieClip(t, a), o = 1;
98
+ this.make();
99
+ for (var n = 0; n < this.modules.length; n++)
100
+ for (var c = n * o, r = 0; r < this.modules[n].length; r++) {
101
+ var u = r * o;
102
+ this.modules[n][r] && (i.beginFill(0, 100), i.moveTo(u, c), i.lineTo(u + o, c), i.lineTo(u + o, c + o), i.lineTo(u, c + o), i.endFill());
103
+ }
104
+ return i;
105
+ },
106
+ setupTimingPattern: function() {
107
+ for (var e = 8; e < this.moduleCount - 8; e++)
108
+ this.modules[e][6] == null && (this.modules[e][6] = e % 2 == 0);
109
+ for (var t = 8; t < this.moduleCount - 8; t++)
110
+ this.modules[6][t] == null && (this.modules[6][t] = t % 2 == 0);
111
+ },
112
+ setupPositionAdjustPattern: function() {
113
+ for (var e = _.getPatternPosition(this.typeNumber), t = 0; t < e.length; t++) for (var a = 0; a < e.length; a++) {
114
+ var i = e[t], o = e[a];
115
+ if (this.modules[i][o] == null)
116
+ for (var n = -2; n <= 2; n++) for (var c = -2; c <= 2; c++) n == -2 || n == 2 || c == -2 || c == 2 || n == 0 && c == 0 ? this.modules[i + n][o + c] = !0 : this.modules[i + n][o + c] = !1;
117
+ }
118
+ },
119
+ setupTypeNumber: function(e) {
120
+ for (var t = _.getBCHTypeNumber(this.typeNumber), a = 0; a < 18; a++) {
121
+ var i = !e && (t >> a & 1) == 1;
122
+ this.modules[Math.floor(a / 3)][a % 3 + this.moduleCount - 8 - 3] = i;
123
+ }
124
+ for (var a = 0; a < 18; a++) {
125
+ var i = !e && (t >> a & 1) == 1;
126
+ this.modules[a % 3 + this.moduleCount - 8 - 3][Math.floor(a / 3)] = i;
127
+ }
128
+ },
129
+ setupTypeInfo: function(e, t) {
130
+ for (var a = this.errorCorrectLevel << 3 | t, i = _.getBCHTypeInfo(a), o = 0; o < 15; o++) {
131
+ var n = !e && (i >> o & 1) == 1;
132
+ o < 6 ? this.modules[o][8] = n : o < 8 ? this.modules[o + 1][8] = n : this.modules[this.moduleCount - 15 + o][8] = n;
133
+ }
134
+ for (var o = 0; o < 15; o++) {
135
+ var n = !e && (i >> o & 1) == 1;
136
+ o < 8 ? this.modules[8][this.moduleCount - o - 1] = n : o < 9 ? this.modules[8][15 - o - 1 + 1] = n : this.modules[8][15 - o - 1] = n;
137
+ }
138
+ this.modules[this.moduleCount - 8][8] = !e;
139
+ },
140
+ mapData: function(e, t) {
141
+ for (var a = -1, i = this.moduleCount - 1, o = 7, n = 0, c = this.moduleCount - 1; c > 0; c -= 2)
142
+ for (c == 6 && c--; ; ) {
143
+ for (var r = 0; r < 2; r++) if (this.modules[i][c - r] == null) {
144
+ var u = !1;
145
+ n < e.length && (u = (e[n] >>> o & 1) == 1), _.getMask(t, i, c - r) && (u = !u), this.modules[i][c - r] = u, o--, o == -1 && (n++, o = 7);
146
+ }
147
+ if (i += a, i < 0 || this.moduleCount <= i) {
148
+ i -= a, a = -a;
149
+ break;
150
+ }
151
+ }
152
+ }
153
+ }, p.PAD0 = 236, p.PAD1 = 17, p.createData = function(e, t, a) {
154
+ for (var i = M.getRSBlocks(e, t), o = new q(), n = 0; n < a.length; n++) {
155
+ var c = a[n];
156
+ o.put(c.mode, 4), o.put(c.getLength(), _.getLengthInBits(c.mode, e)), c.write(o);
157
+ }
158
+ for (var r = 0, n = 0; n < i.length; n++) r += i[n].dataCount;
159
+ if (o.getLengthInBits() > r * 8) throw new Error("code length overflow. (" + o.getLengthInBits() + ">" + r * 8 + ")");
160
+ for (o.getLengthInBits() + 4 <= r * 8 && o.put(0, 4); o.getLengthInBits() % 8 != 0; ) o.putBit(!1);
161
+ for (; !(o.getLengthInBits() >= r * 8 || (o.put(p.PAD0, 8), o.getLengthInBits() >= r * 8)); )
162
+ o.put(p.PAD1, 8);
163
+ return p.createBytes(o, i);
164
+ }, p.createBytes = function(e, t) {
165
+ for (var a = 0, i = 0, o = 0, n = new Array(t.length), c = new Array(t.length), r = 0; r < t.length; r++) {
166
+ var u = t[r].dataCount, m = t[r].totalCount - u;
167
+ i = Math.max(i, u), o = Math.max(o, m), n[r] = new Array(u);
168
+ for (var g = 0; g < n[r].length; g++) n[r][g] = 255 & e.buffer[g + a];
169
+ a += u;
170
+ var A = _.getErrorCorrectPolynomial(m), k = new U(n[r], A.getLength() - 1).mod(A);
171
+ c[r] = new Array(A.getLength() - 1);
172
+ for (var g = 0; g < c[r].length; g++) {
173
+ var P = g + k.getLength() - c[r].length;
174
+ c[r][g] = P >= 0 ? k.get(P) : 0;
175
+ }
176
+ }
177
+ for (var y = 0, g = 0; g < t.length; g++) y += t[g].totalCount;
178
+ for (var R = new Array(y), V = 0, g = 0; g < i; g++) for (var r = 0; r < t.length; r++) g < n[r].length && (R[V++] = n[r][g]);
179
+ for (var g = 0; g < o; g++) for (var r = 0; r < t.length; r++) g < c[r].length && (R[V++] = c[r][g]);
180
+ return R;
181
+ };
182
+ for (var w = {
183
+ MODE_NUMBER: 1,
184
+ MODE_ALPHA_NUM: 2,
185
+ MODE_8BIT_BYTE: 4,
186
+ MODE_KANJI: 8
187
+ }, b = {
188
+ L: 1,
189
+ M: 0,
190
+ Q: 3,
191
+ H: 2
192
+ }, D = {
193
+ PATTERN000: 0,
194
+ PATTERN001: 1,
195
+ PATTERN010: 2,
196
+ PATTERN011: 3,
197
+ PATTERN100: 4,
198
+ PATTERN101: 5,
199
+ PATTERN110: 6,
200
+ PATTERN111: 7
201
+ }, _ = {
202
+ PATTERN_POSITION_TABLE: [
203
+ [],
204
+ [6, 18],
205
+ [6, 22],
206
+ [6, 26],
207
+ [6, 30],
208
+ [6, 34],
209
+ [
210
+ 6,
211
+ 22,
212
+ 38
213
+ ],
214
+ [
215
+ 6,
216
+ 24,
217
+ 42
218
+ ],
219
+ [
220
+ 6,
221
+ 26,
222
+ 46
223
+ ],
224
+ [
225
+ 6,
226
+ 28,
227
+ 50
228
+ ],
229
+ [
230
+ 6,
231
+ 30,
232
+ 54
233
+ ],
234
+ [
235
+ 6,
236
+ 32,
237
+ 58
238
+ ],
239
+ [
240
+ 6,
241
+ 34,
242
+ 62
243
+ ],
244
+ [
245
+ 6,
246
+ 26,
247
+ 46,
248
+ 66
249
+ ],
250
+ [
251
+ 6,
252
+ 26,
253
+ 48,
254
+ 70
255
+ ],
256
+ [
257
+ 6,
258
+ 26,
259
+ 50,
260
+ 74
261
+ ],
262
+ [
263
+ 6,
264
+ 30,
265
+ 54,
266
+ 78
267
+ ],
268
+ [
269
+ 6,
270
+ 30,
271
+ 56,
272
+ 82
273
+ ],
274
+ [
275
+ 6,
276
+ 30,
277
+ 58,
278
+ 86
279
+ ],
280
+ [
281
+ 6,
282
+ 34,
283
+ 62,
284
+ 90
285
+ ],
286
+ [
287
+ 6,
288
+ 28,
289
+ 50,
290
+ 72,
291
+ 94
292
+ ],
293
+ [
294
+ 6,
295
+ 26,
296
+ 50,
297
+ 74,
298
+ 98
299
+ ],
300
+ [
301
+ 6,
302
+ 30,
303
+ 54,
304
+ 78,
305
+ 102
306
+ ],
307
+ [
308
+ 6,
309
+ 28,
310
+ 54,
311
+ 80,
312
+ 106
313
+ ],
314
+ [
315
+ 6,
316
+ 32,
317
+ 58,
318
+ 84,
319
+ 110
320
+ ],
321
+ [
322
+ 6,
323
+ 30,
324
+ 58,
325
+ 86,
326
+ 114
327
+ ],
328
+ [
329
+ 6,
330
+ 34,
331
+ 62,
332
+ 90,
333
+ 118
334
+ ],
335
+ [
336
+ 6,
337
+ 26,
338
+ 50,
339
+ 74,
340
+ 98,
341
+ 122
342
+ ],
343
+ [
344
+ 6,
345
+ 30,
346
+ 54,
347
+ 78,
348
+ 102,
349
+ 126
350
+ ],
351
+ [
352
+ 6,
353
+ 26,
354
+ 52,
355
+ 78,
356
+ 104,
357
+ 130
358
+ ],
359
+ [
360
+ 6,
361
+ 30,
362
+ 56,
363
+ 82,
364
+ 108,
365
+ 134
366
+ ],
367
+ [
368
+ 6,
369
+ 34,
370
+ 60,
371
+ 86,
372
+ 112,
373
+ 138
374
+ ],
375
+ [
376
+ 6,
377
+ 30,
378
+ 58,
379
+ 86,
380
+ 114,
381
+ 142
382
+ ],
383
+ [
384
+ 6,
385
+ 34,
386
+ 62,
387
+ 90,
388
+ 118,
389
+ 146
390
+ ],
391
+ [
392
+ 6,
393
+ 30,
394
+ 54,
395
+ 78,
396
+ 102,
397
+ 126,
398
+ 150
399
+ ],
400
+ [
401
+ 6,
402
+ 24,
403
+ 50,
404
+ 76,
405
+ 102,
406
+ 128,
407
+ 154
408
+ ],
409
+ [
410
+ 6,
411
+ 28,
412
+ 54,
413
+ 80,
414
+ 106,
415
+ 132,
416
+ 158
417
+ ],
418
+ [
419
+ 6,
420
+ 32,
421
+ 58,
422
+ 84,
423
+ 110,
424
+ 136,
425
+ 162
426
+ ],
427
+ [
428
+ 6,
429
+ 26,
430
+ 54,
431
+ 82,
432
+ 110,
433
+ 138,
434
+ 166
435
+ ],
436
+ [
437
+ 6,
438
+ 30,
439
+ 58,
440
+ 86,
441
+ 114,
442
+ 142,
443
+ 170
444
+ ]
445
+ ],
446
+ G15: 1335,
447
+ G18: 7973,
448
+ G15_MASK: 21522,
449
+ getBCHTypeInfo: function(e) {
450
+ for (var t = e << 10; _.getBCHDigit(t) - _.getBCHDigit(_.G15) >= 0; ) t ^= _.G15 << _.getBCHDigit(t) - _.getBCHDigit(_.G15);
451
+ return (e << 10 | t) ^ _.G15_MASK;
452
+ },
453
+ getBCHTypeNumber: function(e) {
454
+ for (var t = e << 12; _.getBCHDigit(t) - _.getBCHDigit(_.G18) >= 0; ) t ^= _.G18 << _.getBCHDigit(t) - _.getBCHDigit(_.G18);
455
+ return e << 12 | t;
456
+ },
457
+ getBCHDigit: function(e) {
458
+ for (var t = 0; e != 0; )
459
+ t++, e >>>= 1;
460
+ return t;
461
+ },
462
+ getPatternPosition: function(e) {
463
+ return _.PATTERN_POSITION_TABLE[e - 1];
464
+ },
465
+ getMask: function(e, t, a) {
466
+ switch (e) {
467
+ case D.PATTERN000:
468
+ return (t + a) % 2 == 0;
469
+ case D.PATTERN001:
470
+ return t % 2 == 0;
471
+ case D.PATTERN010:
472
+ return a % 3 == 0;
473
+ case D.PATTERN011:
474
+ return (t + a) % 3 == 0;
475
+ case D.PATTERN100:
476
+ return (Math.floor(t / 2) + Math.floor(a / 3)) % 2 == 0;
477
+ case D.PATTERN101:
478
+ return t * a % 2 + t * a % 3 == 0;
479
+ case D.PATTERN110:
480
+ return (t * a % 2 + t * a % 3) % 2 == 0;
481
+ case D.PATTERN111:
482
+ return (t * a % 3 + (t + a) % 2) % 2 == 0;
483
+ default:
484
+ throw new Error("bad maskPattern:" + e);
485
+ }
486
+ },
487
+ getErrorCorrectPolynomial: function(e) {
488
+ for (var t = new U([1], 0), a = 0; a < e; a++) t = t.multiply(new U([1, L.gexp(a)], 0));
489
+ return t;
490
+ },
491
+ getLengthInBits: function(e, t) {
492
+ if (1 <= t && t < 10) switch (e) {
493
+ case w.MODE_NUMBER:
494
+ return 10;
495
+ case w.MODE_ALPHA_NUM:
496
+ return 9;
497
+ case w.MODE_8BIT_BYTE:
498
+ return 8;
499
+ case w.MODE_KANJI:
500
+ return 8;
501
+ default:
502
+ throw new Error("mode:" + e);
503
+ }
504
+ else if (t < 27) switch (e) {
505
+ case w.MODE_NUMBER:
506
+ return 12;
507
+ case w.MODE_ALPHA_NUM:
508
+ return 11;
509
+ case w.MODE_8BIT_BYTE:
510
+ return 16;
511
+ case w.MODE_KANJI:
512
+ return 10;
513
+ default:
514
+ throw new Error("mode:" + e);
515
+ }
516
+ else if (t < 41) switch (e) {
517
+ case w.MODE_NUMBER:
518
+ return 14;
519
+ case w.MODE_ALPHA_NUM:
520
+ return 13;
521
+ case w.MODE_8BIT_BYTE:
522
+ return 16;
523
+ case w.MODE_KANJI:
524
+ return 12;
525
+ default:
526
+ throw new Error("mode:" + e);
527
+ }
528
+ else throw new Error("type:" + t);
529
+ },
530
+ getLostPoint: function(e) {
531
+ for (var t = e.getModuleCount(), a = 0, i = 0; i < t; i++) for (var o = 0; o < t; o++) {
532
+ for (var n = 0, c = e.isDark(i, o), r = -1; r <= 1; r++)
533
+ if (!(i + r < 0 || t <= i + r))
534
+ for (var u = -1; u <= 1; u++)
535
+ o + u < 0 || t <= o + u || r == 0 && u == 0 || c == e.isDark(i + r, o + u) && n++;
536
+ n > 5 && (a += 3 + n - 5);
537
+ }
538
+ for (var i = 0; i < t - 1; i++) for (var o = 0; o < t - 1; o++) {
539
+ var m = 0;
540
+ e.isDark(i, o) && m++, e.isDark(i + 1, o) && m++, e.isDark(i, o + 1) && m++, e.isDark(i + 1, o + 1) && m++, (m == 0 || m == 4) && (a += 3);
541
+ }
542
+ for (var i = 0; i < t; i++) for (var o = 0; o < t - 6; o++) e.isDark(i, o) && !e.isDark(i, o + 1) && e.isDark(i, o + 2) && e.isDark(i, o + 3) && e.isDark(i, o + 4) && !e.isDark(i, o + 5) && e.isDark(i, o + 6) && (a += 40);
543
+ for (var o = 0; o < t; o++) for (var i = 0; i < t - 6; i++) e.isDark(i, o) && !e.isDark(i + 1, o) && e.isDark(i + 2, o) && e.isDark(i + 3, o) && e.isDark(i + 4, o) && !e.isDark(i + 5, o) && e.isDark(i + 6, o) && (a += 40);
544
+ for (var g = 0, o = 0; o < t; o++) for (var i = 0; i < t; i++) e.isDark(i, o) && g++;
545
+ var A = Math.abs(100 * g / t / t - 50) / 5;
546
+ return a += A * 10, a;
547
+ }
548
+ }, L = {
549
+ glog: function(e) {
550
+ if (e < 1) throw new Error("glog(" + e + ")");
551
+ return L.LOG_TABLE[e];
552
+ },
553
+ gexp: function(e) {
554
+ for (; e < 0; ) e += 255;
555
+ for (; e >= 256; ) e -= 255;
556
+ return L.EXP_TABLE[e];
557
+ },
558
+ EXP_TABLE: new Array(256),
559
+ LOG_TABLE: new Array(256)
560
+ }, d = 0; d < 8; d++) L.EXP_TABLE[d] = 1 << d;
561
+ for (var d = 8; d < 256; d++) L.EXP_TABLE[d] = L.EXP_TABLE[d - 4] ^ L.EXP_TABLE[d - 5] ^ L.EXP_TABLE[d - 6] ^ L.EXP_TABLE[d - 8];
562
+ for (var d = 0; d < 255; d++) L.LOG_TABLE[L.EXP_TABLE[d]] = d;
563
+ function U(e, t) {
564
+ if (e.length == null) throw new Error(e.length + "/" + t);
565
+ for (var a = 0; a < e.length && e[a] == 0; ) a++;
566
+ this.num = new Array(e.length - a + t);
567
+ for (var i = 0; i < e.length - a; i++) this.num[i] = e[i + a];
568
+ }
569
+ U.prototype = {
570
+ get: function(e) {
571
+ return this.num[e];
572
+ },
573
+ getLength: function() {
574
+ return this.num.length;
575
+ },
576
+ multiply: function(e) {
577
+ for (var t = new Array(this.getLength() + e.getLength() - 1), a = 0; a < this.getLength(); a++) for (var i = 0; i < e.getLength(); i++) t[a + i] ^= L.gexp(L.glog(this.get(a)) + L.glog(e.get(i)));
578
+ return new U(t, 0);
579
+ },
580
+ mod: function(e) {
581
+ if (this.getLength() - e.getLength() < 0) return this;
582
+ for (var t = L.glog(this.get(0)) - L.glog(e.get(0)), a = new Array(this.getLength()), i = 0; i < this.getLength(); i++) a[i] = this.get(i);
583
+ for (var i = 0; i < e.getLength(); i++) a[i] ^= L.gexp(L.glog(e.get(i)) + t);
584
+ return new U(a, 0).mod(e);
585
+ }
586
+ };
587
+ function M(e, t) {
588
+ this.totalCount = e, this.dataCount = t;
589
+ }
590
+ M.RS_BLOCK_TABLE = [
591
+ [
592
+ 1,
593
+ 26,
594
+ 19
595
+ ],
596
+ [
597
+ 1,
598
+ 26,
599
+ 16
600
+ ],
601
+ [
602
+ 1,
603
+ 26,
604
+ 13
605
+ ],
606
+ [
607
+ 1,
608
+ 26,
609
+ 9
610
+ ],
611
+ [
612
+ 1,
613
+ 44,
614
+ 34
615
+ ],
616
+ [
617
+ 1,
618
+ 44,
619
+ 28
620
+ ],
621
+ [
622
+ 1,
623
+ 44,
624
+ 22
625
+ ],
626
+ [
627
+ 1,
628
+ 44,
629
+ 16
630
+ ],
631
+ [
632
+ 1,
633
+ 70,
634
+ 55
635
+ ],
636
+ [
637
+ 1,
638
+ 70,
639
+ 44
640
+ ],
641
+ [
642
+ 2,
643
+ 35,
644
+ 17
645
+ ],
646
+ [
647
+ 2,
648
+ 35,
649
+ 13
650
+ ],
651
+ [
652
+ 1,
653
+ 100,
654
+ 80
655
+ ],
656
+ [
657
+ 2,
658
+ 50,
659
+ 32
660
+ ],
661
+ [
662
+ 2,
663
+ 50,
664
+ 24
665
+ ],
666
+ [
667
+ 4,
668
+ 25,
669
+ 9
670
+ ],
671
+ [
672
+ 1,
673
+ 134,
674
+ 108
675
+ ],
676
+ [
677
+ 2,
678
+ 67,
679
+ 43
680
+ ],
681
+ [
682
+ 2,
683
+ 33,
684
+ 15,
685
+ 2,
686
+ 34,
687
+ 16
688
+ ],
689
+ [
690
+ 2,
691
+ 33,
692
+ 11,
693
+ 2,
694
+ 34,
695
+ 12
696
+ ],
697
+ [
698
+ 2,
699
+ 86,
700
+ 68
701
+ ],
702
+ [
703
+ 4,
704
+ 43,
705
+ 27
706
+ ],
707
+ [
708
+ 4,
709
+ 43,
710
+ 19
711
+ ],
712
+ [
713
+ 4,
714
+ 43,
715
+ 15
716
+ ],
717
+ [
718
+ 2,
719
+ 98,
720
+ 78
721
+ ],
722
+ [
723
+ 4,
724
+ 49,
725
+ 31
726
+ ],
727
+ [
728
+ 2,
729
+ 32,
730
+ 14,
731
+ 4,
732
+ 33,
733
+ 15
734
+ ],
735
+ [
736
+ 4,
737
+ 39,
738
+ 13,
739
+ 1,
740
+ 40,
741
+ 14
742
+ ],
743
+ [
744
+ 2,
745
+ 121,
746
+ 97
747
+ ],
748
+ [
749
+ 2,
750
+ 60,
751
+ 38,
752
+ 2,
753
+ 61,
754
+ 39
755
+ ],
756
+ [
757
+ 4,
758
+ 40,
759
+ 18,
760
+ 2,
761
+ 41,
762
+ 19
763
+ ],
764
+ [
765
+ 4,
766
+ 40,
767
+ 14,
768
+ 2,
769
+ 41,
770
+ 15
771
+ ],
772
+ [
773
+ 2,
774
+ 146,
775
+ 116
776
+ ],
777
+ [
778
+ 3,
779
+ 58,
780
+ 36,
781
+ 2,
782
+ 59,
783
+ 37
784
+ ],
785
+ [
786
+ 4,
787
+ 36,
788
+ 16,
789
+ 4,
790
+ 37,
791
+ 17
792
+ ],
793
+ [
794
+ 4,
795
+ 36,
796
+ 12,
797
+ 4,
798
+ 37,
799
+ 13
800
+ ],
801
+ [
802
+ 2,
803
+ 86,
804
+ 68,
805
+ 2,
806
+ 87,
807
+ 69
808
+ ],
809
+ [
810
+ 4,
811
+ 69,
812
+ 43,
813
+ 1,
814
+ 70,
815
+ 44
816
+ ],
817
+ [
818
+ 6,
819
+ 43,
820
+ 19,
821
+ 2,
822
+ 44,
823
+ 20
824
+ ],
825
+ [
826
+ 6,
827
+ 43,
828
+ 15,
829
+ 2,
830
+ 44,
831
+ 16
832
+ ],
833
+ [
834
+ 4,
835
+ 101,
836
+ 81
837
+ ],
838
+ [
839
+ 1,
840
+ 80,
841
+ 50,
842
+ 4,
843
+ 81,
844
+ 51
845
+ ],
846
+ [
847
+ 4,
848
+ 50,
849
+ 22,
850
+ 4,
851
+ 51,
852
+ 23
853
+ ],
854
+ [
855
+ 3,
856
+ 36,
857
+ 12,
858
+ 8,
859
+ 37,
860
+ 13
861
+ ],
862
+ [
863
+ 2,
864
+ 116,
865
+ 92,
866
+ 2,
867
+ 117,
868
+ 93
869
+ ],
870
+ [
871
+ 6,
872
+ 58,
873
+ 36,
874
+ 2,
875
+ 59,
876
+ 37
877
+ ],
878
+ [
879
+ 4,
880
+ 46,
881
+ 20,
882
+ 6,
883
+ 47,
884
+ 21
885
+ ],
886
+ [
887
+ 7,
888
+ 42,
889
+ 14,
890
+ 4,
891
+ 43,
892
+ 15
893
+ ],
894
+ [
895
+ 4,
896
+ 133,
897
+ 107
898
+ ],
899
+ [
900
+ 8,
901
+ 59,
902
+ 37,
903
+ 1,
904
+ 60,
905
+ 38
906
+ ],
907
+ [
908
+ 8,
909
+ 44,
910
+ 20,
911
+ 4,
912
+ 45,
913
+ 21
914
+ ],
915
+ [
916
+ 12,
917
+ 33,
918
+ 11,
919
+ 4,
920
+ 34,
921
+ 12
922
+ ],
923
+ [
924
+ 3,
925
+ 145,
926
+ 115,
927
+ 1,
928
+ 146,
929
+ 116
930
+ ],
931
+ [
932
+ 4,
933
+ 64,
934
+ 40,
935
+ 5,
936
+ 65,
937
+ 41
938
+ ],
939
+ [
940
+ 11,
941
+ 36,
942
+ 16,
943
+ 5,
944
+ 37,
945
+ 17
946
+ ],
947
+ [
948
+ 11,
949
+ 36,
950
+ 12,
951
+ 5,
952
+ 37,
953
+ 13
954
+ ],
955
+ [
956
+ 5,
957
+ 109,
958
+ 87,
959
+ 1,
960
+ 110,
961
+ 88
962
+ ],
963
+ [
964
+ 5,
965
+ 65,
966
+ 41,
967
+ 5,
968
+ 66,
969
+ 42
970
+ ],
971
+ [
972
+ 5,
973
+ 54,
974
+ 24,
975
+ 7,
976
+ 55,
977
+ 25
978
+ ],
979
+ [
980
+ 11,
981
+ 36,
982
+ 12
983
+ ],
984
+ [
985
+ 5,
986
+ 122,
987
+ 98,
988
+ 1,
989
+ 123,
990
+ 99
991
+ ],
992
+ [
993
+ 7,
994
+ 73,
995
+ 45,
996
+ 3,
997
+ 74,
998
+ 46
999
+ ],
1000
+ [
1001
+ 15,
1002
+ 43,
1003
+ 19,
1004
+ 2,
1005
+ 44,
1006
+ 20
1007
+ ],
1008
+ [
1009
+ 3,
1010
+ 45,
1011
+ 15,
1012
+ 13,
1013
+ 46,
1014
+ 16
1015
+ ],
1016
+ [
1017
+ 1,
1018
+ 135,
1019
+ 107,
1020
+ 5,
1021
+ 136,
1022
+ 108
1023
+ ],
1024
+ [
1025
+ 10,
1026
+ 74,
1027
+ 46,
1028
+ 1,
1029
+ 75,
1030
+ 47
1031
+ ],
1032
+ [
1033
+ 1,
1034
+ 50,
1035
+ 22,
1036
+ 15,
1037
+ 51,
1038
+ 23
1039
+ ],
1040
+ [
1041
+ 2,
1042
+ 42,
1043
+ 14,
1044
+ 17,
1045
+ 43,
1046
+ 15
1047
+ ],
1048
+ [
1049
+ 5,
1050
+ 150,
1051
+ 120,
1052
+ 1,
1053
+ 151,
1054
+ 121
1055
+ ],
1056
+ [
1057
+ 9,
1058
+ 69,
1059
+ 43,
1060
+ 4,
1061
+ 70,
1062
+ 44
1063
+ ],
1064
+ [
1065
+ 17,
1066
+ 50,
1067
+ 22,
1068
+ 1,
1069
+ 51,
1070
+ 23
1071
+ ],
1072
+ [
1073
+ 2,
1074
+ 42,
1075
+ 14,
1076
+ 19,
1077
+ 43,
1078
+ 15
1079
+ ],
1080
+ [
1081
+ 3,
1082
+ 141,
1083
+ 113,
1084
+ 4,
1085
+ 142,
1086
+ 114
1087
+ ],
1088
+ [
1089
+ 3,
1090
+ 70,
1091
+ 44,
1092
+ 11,
1093
+ 71,
1094
+ 45
1095
+ ],
1096
+ [
1097
+ 17,
1098
+ 47,
1099
+ 21,
1100
+ 4,
1101
+ 48,
1102
+ 22
1103
+ ],
1104
+ [
1105
+ 9,
1106
+ 39,
1107
+ 13,
1108
+ 16,
1109
+ 40,
1110
+ 14
1111
+ ],
1112
+ [
1113
+ 3,
1114
+ 135,
1115
+ 107,
1116
+ 5,
1117
+ 136,
1118
+ 108
1119
+ ],
1120
+ [
1121
+ 3,
1122
+ 67,
1123
+ 41,
1124
+ 13,
1125
+ 68,
1126
+ 42
1127
+ ],
1128
+ [
1129
+ 15,
1130
+ 54,
1131
+ 24,
1132
+ 5,
1133
+ 55,
1134
+ 25
1135
+ ],
1136
+ [
1137
+ 15,
1138
+ 43,
1139
+ 15,
1140
+ 10,
1141
+ 44,
1142
+ 16
1143
+ ],
1144
+ [
1145
+ 4,
1146
+ 144,
1147
+ 116,
1148
+ 4,
1149
+ 145,
1150
+ 117
1151
+ ],
1152
+ [
1153
+ 17,
1154
+ 68,
1155
+ 42
1156
+ ],
1157
+ [
1158
+ 17,
1159
+ 50,
1160
+ 22,
1161
+ 6,
1162
+ 51,
1163
+ 23
1164
+ ],
1165
+ [
1166
+ 19,
1167
+ 46,
1168
+ 16,
1169
+ 6,
1170
+ 47,
1171
+ 17
1172
+ ],
1173
+ [
1174
+ 2,
1175
+ 139,
1176
+ 111,
1177
+ 7,
1178
+ 140,
1179
+ 112
1180
+ ],
1181
+ [
1182
+ 17,
1183
+ 74,
1184
+ 46
1185
+ ],
1186
+ [
1187
+ 7,
1188
+ 54,
1189
+ 24,
1190
+ 16,
1191
+ 55,
1192
+ 25
1193
+ ],
1194
+ [
1195
+ 34,
1196
+ 37,
1197
+ 13
1198
+ ],
1199
+ [
1200
+ 4,
1201
+ 151,
1202
+ 121,
1203
+ 5,
1204
+ 152,
1205
+ 122
1206
+ ],
1207
+ [
1208
+ 4,
1209
+ 75,
1210
+ 47,
1211
+ 14,
1212
+ 76,
1213
+ 48
1214
+ ],
1215
+ [
1216
+ 11,
1217
+ 54,
1218
+ 24,
1219
+ 14,
1220
+ 55,
1221
+ 25
1222
+ ],
1223
+ [
1224
+ 16,
1225
+ 45,
1226
+ 15,
1227
+ 14,
1228
+ 46,
1229
+ 16
1230
+ ],
1231
+ [
1232
+ 6,
1233
+ 147,
1234
+ 117,
1235
+ 4,
1236
+ 148,
1237
+ 118
1238
+ ],
1239
+ [
1240
+ 6,
1241
+ 73,
1242
+ 45,
1243
+ 14,
1244
+ 74,
1245
+ 46
1246
+ ],
1247
+ [
1248
+ 11,
1249
+ 54,
1250
+ 24,
1251
+ 16,
1252
+ 55,
1253
+ 25
1254
+ ],
1255
+ [
1256
+ 30,
1257
+ 46,
1258
+ 16,
1259
+ 2,
1260
+ 47,
1261
+ 17
1262
+ ],
1263
+ [
1264
+ 8,
1265
+ 132,
1266
+ 106,
1267
+ 4,
1268
+ 133,
1269
+ 107
1270
+ ],
1271
+ [
1272
+ 8,
1273
+ 75,
1274
+ 47,
1275
+ 13,
1276
+ 76,
1277
+ 48
1278
+ ],
1279
+ [
1280
+ 7,
1281
+ 54,
1282
+ 24,
1283
+ 22,
1284
+ 55,
1285
+ 25
1286
+ ],
1287
+ [
1288
+ 22,
1289
+ 45,
1290
+ 15,
1291
+ 13,
1292
+ 46,
1293
+ 16
1294
+ ],
1295
+ [
1296
+ 10,
1297
+ 142,
1298
+ 114,
1299
+ 2,
1300
+ 143,
1301
+ 115
1302
+ ],
1303
+ [
1304
+ 19,
1305
+ 74,
1306
+ 46,
1307
+ 4,
1308
+ 75,
1309
+ 47
1310
+ ],
1311
+ [
1312
+ 28,
1313
+ 50,
1314
+ 22,
1315
+ 6,
1316
+ 51,
1317
+ 23
1318
+ ],
1319
+ [
1320
+ 33,
1321
+ 46,
1322
+ 16,
1323
+ 4,
1324
+ 47,
1325
+ 17
1326
+ ],
1327
+ [
1328
+ 8,
1329
+ 152,
1330
+ 122,
1331
+ 4,
1332
+ 153,
1333
+ 123
1334
+ ],
1335
+ [
1336
+ 22,
1337
+ 73,
1338
+ 45,
1339
+ 3,
1340
+ 74,
1341
+ 46
1342
+ ],
1343
+ [
1344
+ 8,
1345
+ 53,
1346
+ 23,
1347
+ 26,
1348
+ 54,
1349
+ 24
1350
+ ],
1351
+ [
1352
+ 12,
1353
+ 45,
1354
+ 15,
1355
+ 28,
1356
+ 46,
1357
+ 16
1358
+ ],
1359
+ [
1360
+ 3,
1361
+ 147,
1362
+ 117,
1363
+ 10,
1364
+ 148,
1365
+ 118
1366
+ ],
1367
+ [
1368
+ 3,
1369
+ 73,
1370
+ 45,
1371
+ 23,
1372
+ 74,
1373
+ 46
1374
+ ],
1375
+ [
1376
+ 4,
1377
+ 54,
1378
+ 24,
1379
+ 31,
1380
+ 55,
1381
+ 25
1382
+ ],
1383
+ [
1384
+ 11,
1385
+ 45,
1386
+ 15,
1387
+ 31,
1388
+ 46,
1389
+ 16
1390
+ ],
1391
+ [
1392
+ 7,
1393
+ 146,
1394
+ 116,
1395
+ 7,
1396
+ 147,
1397
+ 117
1398
+ ],
1399
+ [
1400
+ 21,
1401
+ 73,
1402
+ 45,
1403
+ 7,
1404
+ 74,
1405
+ 46
1406
+ ],
1407
+ [
1408
+ 1,
1409
+ 53,
1410
+ 23,
1411
+ 37,
1412
+ 54,
1413
+ 24
1414
+ ],
1415
+ [
1416
+ 19,
1417
+ 45,
1418
+ 15,
1419
+ 26,
1420
+ 46,
1421
+ 16
1422
+ ],
1423
+ [
1424
+ 5,
1425
+ 145,
1426
+ 115,
1427
+ 10,
1428
+ 146,
1429
+ 116
1430
+ ],
1431
+ [
1432
+ 19,
1433
+ 75,
1434
+ 47,
1435
+ 10,
1436
+ 76,
1437
+ 48
1438
+ ],
1439
+ [
1440
+ 15,
1441
+ 54,
1442
+ 24,
1443
+ 25,
1444
+ 55,
1445
+ 25
1446
+ ],
1447
+ [
1448
+ 23,
1449
+ 45,
1450
+ 15,
1451
+ 25,
1452
+ 46,
1453
+ 16
1454
+ ],
1455
+ [
1456
+ 13,
1457
+ 145,
1458
+ 115,
1459
+ 3,
1460
+ 146,
1461
+ 116
1462
+ ],
1463
+ [
1464
+ 2,
1465
+ 74,
1466
+ 46,
1467
+ 29,
1468
+ 75,
1469
+ 47
1470
+ ],
1471
+ [
1472
+ 42,
1473
+ 54,
1474
+ 24,
1475
+ 1,
1476
+ 55,
1477
+ 25
1478
+ ],
1479
+ [
1480
+ 23,
1481
+ 45,
1482
+ 15,
1483
+ 28,
1484
+ 46,
1485
+ 16
1486
+ ],
1487
+ [
1488
+ 17,
1489
+ 145,
1490
+ 115
1491
+ ],
1492
+ [
1493
+ 10,
1494
+ 74,
1495
+ 46,
1496
+ 23,
1497
+ 75,
1498
+ 47
1499
+ ],
1500
+ [
1501
+ 10,
1502
+ 54,
1503
+ 24,
1504
+ 35,
1505
+ 55,
1506
+ 25
1507
+ ],
1508
+ [
1509
+ 19,
1510
+ 45,
1511
+ 15,
1512
+ 35,
1513
+ 46,
1514
+ 16
1515
+ ],
1516
+ [
1517
+ 17,
1518
+ 145,
1519
+ 115,
1520
+ 1,
1521
+ 146,
1522
+ 116
1523
+ ],
1524
+ [
1525
+ 14,
1526
+ 74,
1527
+ 46,
1528
+ 21,
1529
+ 75,
1530
+ 47
1531
+ ],
1532
+ [
1533
+ 29,
1534
+ 54,
1535
+ 24,
1536
+ 19,
1537
+ 55,
1538
+ 25
1539
+ ],
1540
+ [
1541
+ 11,
1542
+ 45,
1543
+ 15,
1544
+ 46,
1545
+ 46,
1546
+ 16
1547
+ ],
1548
+ [
1549
+ 13,
1550
+ 145,
1551
+ 115,
1552
+ 6,
1553
+ 146,
1554
+ 116
1555
+ ],
1556
+ [
1557
+ 14,
1558
+ 74,
1559
+ 46,
1560
+ 23,
1561
+ 75,
1562
+ 47
1563
+ ],
1564
+ [
1565
+ 44,
1566
+ 54,
1567
+ 24,
1568
+ 7,
1569
+ 55,
1570
+ 25
1571
+ ],
1572
+ [
1573
+ 59,
1574
+ 46,
1575
+ 16,
1576
+ 1,
1577
+ 47,
1578
+ 17
1579
+ ],
1580
+ [
1581
+ 12,
1582
+ 151,
1583
+ 121,
1584
+ 7,
1585
+ 152,
1586
+ 122
1587
+ ],
1588
+ [
1589
+ 12,
1590
+ 75,
1591
+ 47,
1592
+ 26,
1593
+ 76,
1594
+ 48
1595
+ ],
1596
+ [
1597
+ 39,
1598
+ 54,
1599
+ 24,
1600
+ 14,
1601
+ 55,
1602
+ 25
1603
+ ],
1604
+ [
1605
+ 22,
1606
+ 45,
1607
+ 15,
1608
+ 41,
1609
+ 46,
1610
+ 16
1611
+ ],
1612
+ [
1613
+ 6,
1614
+ 151,
1615
+ 121,
1616
+ 14,
1617
+ 152,
1618
+ 122
1619
+ ],
1620
+ [
1621
+ 6,
1622
+ 75,
1623
+ 47,
1624
+ 34,
1625
+ 76,
1626
+ 48
1627
+ ],
1628
+ [
1629
+ 46,
1630
+ 54,
1631
+ 24,
1632
+ 10,
1633
+ 55,
1634
+ 25
1635
+ ],
1636
+ [
1637
+ 2,
1638
+ 45,
1639
+ 15,
1640
+ 64,
1641
+ 46,
1642
+ 16
1643
+ ],
1644
+ [
1645
+ 17,
1646
+ 152,
1647
+ 122,
1648
+ 4,
1649
+ 153,
1650
+ 123
1651
+ ],
1652
+ [
1653
+ 29,
1654
+ 74,
1655
+ 46,
1656
+ 14,
1657
+ 75,
1658
+ 47
1659
+ ],
1660
+ [
1661
+ 49,
1662
+ 54,
1663
+ 24,
1664
+ 10,
1665
+ 55,
1666
+ 25
1667
+ ],
1668
+ [
1669
+ 24,
1670
+ 45,
1671
+ 15,
1672
+ 46,
1673
+ 46,
1674
+ 16
1675
+ ],
1676
+ [
1677
+ 4,
1678
+ 152,
1679
+ 122,
1680
+ 18,
1681
+ 153,
1682
+ 123
1683
+ ],
1684
+ [
1685
+ 13,
1686
+ 74,
1687
+ 46,
1688
+ 32,
1689
+ 75,
1690
+ 47
1691
+ ],
1692
+ [
1693
+ 48,
1694
+ 54,
1695
+ 24,
1696
+ 14,
1697
+ 55,
1698
+ 25
1699
+ ],
1700
+ [
1701
+ 42,
1702
+ 45,
1703
+ 15,
1704
+ 32,
1705
+ 46,
1706
+ 16
1707
+ ],
1708
+ [
1709
+ 20,
1710
+ 147,
1711
+ 117,
1712
+ 4,
1713
+ 148,
1714
+ 118
1715
+ ],
1716
+ [
1717
+ 40,
1718
+ 75,
1719
+ 47,
1720
+ 7,
1721
+ 76,
1722
+ 48
1723
+ ],
1724
+ [
1725
+ 43,
1726
+ 54,
1727
+ 24,
1728
+ 22,
1729
+ 55,
1730
+ 25
1731
+ ],
1732
+ [
1733
+ 10,
1734
+ 45,
1735
+ 15,
1736
+ 67,
1737
+ 46,
1738
+ 16
1739
+ ],
1740
+ [
1741
+ 19,
1742
+ 148,
1743
+ 118,
1744
+ 6,
1745
+ 149,
1746
+ 119
1747
+ ],
1748
+ [
1749
+ 18,
1750
+ 75,
1751
+ 47,
1752
+ 31,
1753
+ 76,
1754
+ 48
1755
+ ],
1756
+ [
1757
+ 34,
1758
+ 54,
1759
+ 24,
1760
+ 34,
1761
+ 55,
1762
+ 25
1763
+ ],
1764
+ [
1765
+ 20,
1766
+ 45,
1767
+ 15,
1768
+ 61,
1769
+ 46,
1770
+ 16
1771
+ ]
1772
+ ], M.getRSBlocks = function(e, t) {
1773
+ var a = M.getRsBlockTable(e, t);
1774
+ if (a == null) throw new Error("bad rs block @ typeNumber:" + e + "/errorCorrectLevel:" + t);
1775
+ for (var i = a.length / 3, o = [], n = 0; n < i; n++)
1776
+ for (var c = a[n * 3 + 0], r = a[n * 3 + 1], u = a[n * 3 + 2], m = 0; m < c; m++) o.push(new M(r, u));
1777
+ return o;
1778
+ }, M.getRsBlockTable = function(e, t) {
1779
+ switch (t) {
1780
+ case b.L:
1781
+ return M.RS_BLOCK_TABLE[(e - 1) * 4 + 0];
1782
+ case b.M:
1783
+ return M.RS_BLOCK_TABLE[(e - 1) * 4 + 1];
1784
+ case b.Q:
1785
+ return M.RS_BLOCK_TABLE[(e - 1) * 4 + 2];
1786
+ case b.H:
1787
+ return M.RS_BLOCK_TABLE[(e - 1) * 4 + 3];
1788
+ default:
1789
+ return;
1790
+ }
1791
+ };
1792
+ function q() {
1793
+ this.buffer = [], this.length = 0;
1794
+ }
1795
+ q.prototype = {
1796
+ get: function(e) {
1797
+ var t = Math.floor(e / 8);
1798
+ return (this.buffer[t] >>> 7 - e % 8 & 1) == 1;
1799
+ },
1800
+ put: function(e, t) {
1801
+ for (var a = 0; a < t; a++) this.putBit((e >>> t - a - 1 & 1) == 1);
1802
+ },
1803
+ getLengthInBits: function() {
1804
+ return this.length;
1805
+ },
1806
+ putBit: function(e) {
1807
+ var t = Math.floor(this.length / 8);
1808
+ this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
1809
+ }
1810
+ };
1811
+ var H = [
1812
+ [
1813
+ 17,
1814
+ 14,
1815
+ 11,
1816
+ 7
1817
+ ],
1818
+ [
1819
+ 32,
1820
+ 26,
1821
+ 20,
1822
+ 14
1823
+ ],
1824
+ [
1825
+ 53,
1826
+ 42,
1827
+ 32,
1828
+ 24
1829
+ ],
1830
+ [
1831
+ 78,
1832
+ 62,
1833
+ 46,
1834
+ 34
1835
+ ],
1836
+ [
1837
+ 106,
1838
+ 84,
1839
+ 60,
1840
+ 44
1841
+ ],
1842
+ [
1843
+ 134,
1844
+ 106,
1845
+ 74,
1846
+ 58
1847
+ ],
1848
+ [
1849
+ 154,
1850
+ 122,
1851
+ 86,
1852
+ 64
1853
+ ],
1854
+ [
1855
+ 192,
1856
+ 152,
1857
+ 108,
1858
+ 84
1859
+ ],
1860
+ [
1861
+ 230,
1862
+ 180,
1863
+ 130,
1864
+ 98
1865
+ ],
1866
+ [
1867
+ 271,
1868
+ 213,
1869
+ 151,
1870
+ 119
1871
+ ],
1872
+ [
1873
+ 321,
1874
+ 251,
1875
+ 177,
1876
+ 137
1877
+ ],
1878
+ [
1879
+ 367,
1880
+ 287,
1881
+ 203,
1882
+ 155
1883
+ ],
1884
+ [
1885
+ 425,
1886
+ 331,
1887
+ 241,
1888
+ 177
1889
+ ],
1890
+ [
1891
+ 458,
1892
+ 362,
1893
+ 258,
1894
+ 194
1895
+ ],
1896
+ [
1897
+ 520,
1898
+ 412,
1899
+ 292,
1900
+ 220
1901
+ ],
1902
+ [
1903
+ 586,
1904
+ 450,
1905
+ 322,
1906
+ 250
1907
+ ],
1908
+ [
1909
+ 644,
1910
+ 504,
1911
+ 364,
1912
+ 280
1913
+ ],
1914
+ [
1915
+ 718,
1916
+ 560,
1917
+ 394,
1918
+ 310
1919
+ ],
1920
+ [
1921
+ 792,
1922
+ 624,
1923
+ 442,
1924
+ 338
1925
+ ],
1926
+ [
1927
+ 858,
1928
+ 666,
1929
+ 482,
1930
+ 382
1931
+ ],
1932
+ [
1933
+ 929,
1934
+ 711,
1935
+ 509,
1936
+ 403
1937
+ ],
1938
+ [
1939
+ 1003,
1940
+ 779,
1941
+ 565,
1942
+ 439
1943
+ ],
1944
+ [
1945
+ 1091,
1946
+ 857,
1947
+ 611,
1948
+ 461
1949
+ ],
1950
+ [
1951
+ 1171,
1952
+ 911,
1953
+ 661,
1954
+ 511
1955
+ ],
1956
+ [
1957
+ 1273,
1958
+ 997,
1959
+ 715,
1960
+ 535
1961
+ ],
1962
+ [
1963
+ 1367,
1964
+ 1059,
1965
+ 751,
1966
+ 593
1967
+ ],
1968
+ [
1969
+ 1465,
1970
+ 1125,
1971
+ 805,
1972
+ 625
1973
+ ],
1974
+ [
1975
+ 1528,
1976
+ 1190,
1977
+ 868,
1978
+ 658
1979
+ ],
1980
+ [
1981
+ 1628,
1982
+ 1264,
1983
+ 908,
1984
+ 698
1985
+ ],
1986
+ [
1987
+ 1732,
1988
+ 1370,
1989
+ 982,
1990
+ 742
1991
+ ],
1992
+ [
1993
+ 1840,
1994
+ 1452,
1995
+ 1030,
1996
+ 790
1997
+ ],
1998
+ [
1999
+ 1952,
2000
+ 1538,
2001
+ 1112,
2002
+ 842
2003
+ ],
2004
+ [
2005
+ 2068,
2006
+ 1628,
2007
+ 1168,
2008
+ 898
2009
+ ],
2010
+ [
2011
+ 2188,
2012
+ 1722,
2013
+ 1228,
2014
+ 958
2015
+ ],
2016
+ [
2017
+ 2303,
2018
+ 1809,
2019
+ 1283,
2020
+ 983
2021
+ ],
2022
+ [
2023
+ 2431,
2024
+ 1911,
2025
+ 1351,
2026
+ 1051
2027
+ ],
2028
+ [
2029
+ 2563,
2030
+ 1989,
2031
+ 1423,
2032
+ 1093
2033
+ ],
2034
+ [
2035
+ 2699,
2036
+ 2099,
2037
+ 1499,
2038
+ 1139
2039
+ ],
2040
+ [
2041
+ 2809,
2042
+ 2213,
2043
+ 1579,
2044
+ 1219
2045
+ ],
2046
+ [
2047
+ 2953,
2048
+ 2331,
2049
+ 1663,
2050
+ 1273
2051
+ ]
2052
+ ];
2053
+ function W() {
2054
+ return typeof CanvasRenderingContext2D < "u";
2055
+ }
2056
+ function $() {
2057
+ var e = !1, t = navigator.userAgent;
2058
+ if (/android/i.test(t)) {
2059
+ e = !0;
2060
+ var a = t.toString().match(/android ([0-9]\.[0-9])/i);
2061
+ a && a[1] && (e = parseFloat(a[1]));
2062
+ }
2063
+ return e;
2064
+ }
2065
+ var K = (function() {
2066
+ var e = function(t, a) {
2067
+ this._el = t, this._htOption = a;
2068
+ };
2069
+ return e.prototype.draw = function(t) {
2070
+ var a = this._htOption, i = this._el, o = t.getModuleCount();
2071
+ Math.floor(a.width / o), Math.floor(a.height / o), this.clear();
2072
+ function n(g, A) {
2073
+ var k = document.createElementNS("http://www.w3.org/2000/svg", g);
2074
+ for (var P in A) A.hasOwnProperty(P) && k.setAttribute(P, A[P]);
2075
+ return k;
2076
+ }
2077
+ var c = n("svg", {
2078
+ viewBox: "0 0 " + String(o) + " " + String(o),
2079
+ width: "100%",
2080
+ height: "100%",
2081
+ fill: a.colorLight
2082
+ });
2083
+ c.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink"), i.appendChild(c), c.appendChild(n("rect", {
2084
+ fill: a.colorLight,
2085
+ width: "100%",
2086
+ height: "100%"
2087
+ })), c.appendChild(n("rect", {
2088
+ fill: a.colorDark,
2089
+ width: "1",
2090
+ height: "1",
2091
+ id: "template"
2092
+ }));
2093
+ for (var r = 0; r < o; r++) for (var u = 0; u < o; u++) if (t.isDark(r, u)) {
2094
+ var m = n("use", {
2095
+ x: String(u),
2096
+ y: String(r)
2097
+ });
2098
+ m.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template"), c.appendChild(m);
2099
+ }
2100
+ }, e.prototype.clear = function() {
2101
+ for (; this._el.hasChildNodes(); ) this._el.removeChild(this._el.lastChild);
2102
+ }, e;
2103
+ })(), J = document.documentElement.tagName.toLowerCase() === "svg" ? K : W() ? (function() {
2104
+ function e() {
2105
+ this._elImage.src = this._elCanvas.toDataURL("image/png"), this._elImage.style.display = "block", this._elCanvas.style.display = "none";
2106
+ }
2107
+ if (this && this._android && this._android <= 2.1) {
2108
+ var t = 1 / window.devicePixelRatio, a = CanvasRenderingContext2D.prototype.drawImage;
2109
+ CanvasRenderingContext2D.prototype.drawImage = function(n, c, r, u, m, g, A, k, P) {
2110
+ if ("nodeName" in n && /img/i.test(n.nodeName)) for (var y = arguments.length - 1; y >= 1; y--) arguments[y] = arguments[y] * t;
2111
+ else typeof k > "u" && (arguments[1] *= t, arguments[2] *= t, arguments[3] *= t, arguments[4] *= t);
2112
+ a.apply(this, arguments);
2113
+ };
2114
+ }
2115
+ function i(n, c) {
2116
+ var r = this;
2117
+ if (r._fFail = c, r._fSuccess = n, r._bSupportDataURI === null) {
2118
+ var u = document.createElement("img"), m = function() {
2119
+ r._bSupportDataURI = !1, r._fFail && r._fFail.call(r);
2120
+ }, g = function() {
2121
+ r._bSupportDataURI = !0, r._fSuccess && r._fSuccess.call(r);
2122
+ };
2123
+ u.onabort = m, u.onerror = m, u.onload = g, u.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
2124
+ return;
2125
+ } else r._bSupportDataURI === !0 && r._fSuccess ? r._fSuccess.call(r) : r._bSupportDataURI === !1 && r._fFail && r._fFail.call(r);
2126
+ }
2127
+ var o = function(n, c) {
2128
+ this._bIsPainted = !1, this._android = $(), this._htOption = c, this._elCanvas = document.createElement("canvas"), this._elCanvas.width = c.width, this._elCanvas.height = c.height, n.appendChild(this._elCanvas), this._el = n, this._oContext = this._elCanvas.getContext("2d"), this._bIsPainted = !1, this._elImage = document.createElement("img"), this._elImage.alt = "Scan me!", this._elImage.style.display = "none", this._el.appendChild(this._elImage), this._bSupportDataURI = null;
2129
+ };
2130
+ return o.prototype.draw = function(n) {
2131
+ var c = this._elImage, r = this._oContext, u = this._htOption, m = n.getModuleCount(), g = u.width / m, A = u.height / m, k = Math.round(g), P = Math.round(A);
2132
+ c.style.display = "none", this.clear();
2133
+ for (var y = 0; y < m; y++) for (var R = 0; R < m; R++) {
2134
+ var V = n.isDark(y, R), F = R * g, z = y * A;
2135
+ r.strokeStyle = V ? u.colorDark : u.colorLight, r.lineWidth = 1, r.fillStyle = V ? u.colorDark : u.colorLight, r.fillRect(F, z, g, A), r.strokeRect(Math.floor(F) + 0.5, Math.floor(z) + 0.5, k, P), r.strokeRect(Math.ceil(F) - 0.5, Math.ceil(z) - 0.5, k, P);
2136
+ }
2137
+ this._bIsPainted = !0;
2138
+ }, o.prototype.makeImage = function() {
2139
+ this._bIsPainted && i.call(this, e);
2140
+ }, o.prototype.isPainted = function() {
2141
+ return this._bIsPainted;
2142
+ }, o.prototype.clear = function() {
2143
+ this._oContext.clearRect(0, 0, this._elCanvas.width, this._elCanvas.height), this._bIsPainted = !1;
2144
+ }, o.prototype.round = function(n) {
2145
+ return n && Math.floor(n * 1e3) / 1e3;
2146
+ }, o;
2147
+ })() : (function() {
2148
+ var e = function(t, a) {
2149
+ this._el = t, this._htOption = a;
2150
+ };
2151
+ return e.prototype.draw = function(t) {
2152
+ for (var a = this._htOption, i = this._el, o = t.getModuleCount(), n = Math.floor(a.width / o), c = Math.floor(a.height / o), r = ['<table style="border:0;border-collapse:collapse;">'], u = 0; u < o; u++) {
2153
+ r.push("<tr>");
2154
+ for (var m = 0; m < o; m++) r.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + n + "px;height:" + c + "px;background-color:" + (t.isDark(u, m) ? a.colorDark : a.colorLight) + ';"></td>');
2155
+ r.push("</tr>");
2156
+ }
2157
+ r.push("</table>"), i.innerHTML = r.join("");
2158
+ var g = i.childNodes[0], A = (a.width - g.offsetWidth) / 2, k = (a.height - g.offsetHeight) / 2;
2159
+ A > 0 && k > 0 && (g.style.margin = k + "px " + A + "px");
2160
+ }, e.prototype.clear = function() {
2161
+ this._el.innerHTML = "";
2162
+ }, e;
2163
+ })();
2164
+ function Z(e, t) {
2165
+ for (var a = 1, i = x(e), o = 0, n = H.length; o <= n; o++) {
2166
+ var c = 0;
2167
+ switch (t) {
2168
+ case b.L:
2169
+ c = H[o][0];
2170
+ break;
2171
+ case b.M:
2172
+ c = H[o][1];
2173
+ break;
2174
+ case b.Q:
2175
+ c = H[o][2];
2176
+ break;
2177
+ case b.H:
2178
+ c = H[o][3];
2179
+ break;
2180
+ }
2181
+ if (i <= c) break;
2182
+ a++;
2183
+ }
2184
+ if (a > H.length) throw new Error("Too long data");
2185
+ return a;
2186
+ }
2187
+ function x(e) {
2188
+ var t = encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g, "a");
2189
+ return t.length + (t.length != e ? 3 : 0);
2190
+ }
2191
+ return h = function(e, t) {
2192
+ if (this._htOption = {
2193
+ width: 256,
2194
+ height: 256,
2195
+ typeNumber: 4,
2196
+ colorDark: "#000000",
2197
+ colorLight: "#ffffff",
2198
+ correctLevel: b.H
2199
+ }, typeof t == "string" && (t = { text: t }), t) for (var a in t) this._htOption[a] = t[a];
2200
+ typeof e == "string" && (e = document.getElementById(e)), this._htOption.useSVG && (J = K), this._android = $(), this._el = e, this._oQRCode = null, this._oDrawing = new J(this._el, this._htOption), this._htOption.text && this.makeCode(this._htOption.text);
2201
+ }, h.prototype.makeCode = function(e) {
2202
+ this._oQRCode = new p(Z(e, this._htOption.correctLevel), this._htOption.correctLevel), this._oQRCode.addData(e), this._oQRCode.make(), this._el.title = e, this._oDrawing.draw(this._oQRCode), this.makeImage();
2203
+ }, h.prototype.makeImage = function() {
2204
+ typeof this._oDrawing.makeImage == "function" && (!this._android || this._android >= 3) && this._oDrawing.makeImage();
2205
+ }, h.prototype.clear = function() {
2206
+ this._oDrawing.clear();
2207
+ }, h.CorrectLevel = b, h;
2208
+ });
2209
+ })), Y = /* @__PURE__ */ e3(L3()), C3 = { class: "cloud-login-wrap" }, A3 = {
2210
+ key: 0,
2211
+ class: "cloud-login-main"
2212
+ }, T3 = { class: "cloud-login-logo no-dark-content can-click" }, E3 = ["src"], S3 = {
2213
+ key: 0,
2214
+ class: "cloud-login-box"
2215
+ }, b3 = { class: "login-title" }, k3 = { class: "login-subtitle" }, y3 = { class: "cloud-login-mode-access" }, I3 = { class: "login-switch" }, D3 = {
2216
+ key: 1,
2217
+ class: "cloud-login-box"
2218
+ }, M3 = { class: "login-mode-switch" }, P3 = { class: "login-mode-switch-box" }, B3 = { class: "login-title" }, R3 = { class: "login-subtitle" }, O3 = { class: "cloud-login-mode-access" }, N3 = {
2219
+ key: 0,
2220
+ class: "code-load"
2221
+ }, U3 = {
2222
+ key: 1,
2223
+ class: "code-error"
2224
+ }, H3 = ["src"], V3 = { class: "cloud-login-other" }, F3 = { class: "cloud-login-other" }, z3 = {
2225
+ key: 0,
2226
+ class: "login-switch"
2227
+ }, Q3 = {
2228
+ key: 1,
2229
+ class: "page-login-oauth"
2230
+ }, G3 = {
2231
+ key: 2,
2232
+ class: "cloud-login-box"
2233
+ }, q3 = { class: "login-mode-switch" }, $3 = { class: "login-mode-switch-box" }, K3 = { class: "login-title" }, J3 = { class: "login-subtitle" }, X3 = {
2234
+ id: "qrcode",
2235
+ ref: "qrCodeUrl"
2236
+ }, Y3 = {
2237
+ key: 3,
2238
+ class: "cloud-login-box"
2239
+ }, W3 = { class: "login-title" }, Z3 = { class: "login-subtitle" }, x3 = { class: "cloud-login-mode-access" }, j3 = { class: "page-login-oauth" }, ee = /* @__PURE__ */ Object.assign({
2240
+ data() {
2241
+ return {
2242
+ loadOngoing: !1,
2243
+ loginMode: "access",
2244
+ loginJump: !1,
2245
+ cache_remember: "off",
2246
+ cache_privacy: "off",
2247
+ account_mobile: "",
2248
+ account_password: "",
2249
+ account_password2: "",
2250
+ captcha_code: "",
2251
+ sms_code: "",
2252
+ account_business_id: 0,
2253
+ reg_invite: "",
2254
+ regInviteNeed: !1,
2255
+ codeNeed: !1,
2256
+ codeLoad: 0,
2257
+ codeKey: "",
2258
+ codeUrl: "",
2259
+ chainShowFlag: !1,
2260
+ chainAccountList: [],
2261
+ chainTempToken: "",
2262
+ qrcodeExpiredShow: !1,
2263
+ qrcodeTimer: null,
2264
+ qrcodeLoad: !1,
2265
+ qrcodeScanVernum: 15,
2266
+ qrcodeScanVererr: 0,
2267
+ copyright_info: ""
2268
+ };
2269
+ },
2270
+ watch: {
2271
+ $route({ query: l }) {
2272
+ l.type == "reg" && this.$nextTick(() => {
2273
+ this.loginMode = "reg";
2274
+ });
2275
+ },
2276
+ account_mobile(l) {
2277
+ this.$nextTick(() => {
2278
+ let s = this.$refs.account_mobile?.$el?.querySelector("input");
2279
+ if (s) {
2280
+ const h = getComputedStyle(s).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);
2281
+ h && h[0] === "rgb(232, 240, 254)" && this.onBlur();
2282
+ }
2283
+ });
2284
+ },
2285
+ loginMode(l) {
2286
+ l == "reg" && (this.regInviteNeed = !!this.cacheInstConfig.reg_invite_need);
2287
+ }
2288
+ },
2289
+ computed: { currentLanguage() {
2290
+ return this.languageList[this.languageName] || "Language";
2291
+ } },
2292
+ created() {
2293
+ this.cache_remember = localStorage.getItem("cacheLoginRemember") || "off", this.cache_privacy = localStorage.getItem("cacheLoginPrivacy") || "off", this.account_mobile = localStorage.getItem("cacheLoginMobile") || "";
2294
+ },
2295
+ async mounted() {
2296
+ this.loginMode = this.$route.query.type === "reg" ? "reg" : "access", this.$Electron && (this.$Electron.sendMessage("webTabDestroyAll"), this.$Electron.sendMessage("childWindowDestroyAll")), t3().$subscribe((l, s) => {
2297
+ l.events.key == "useSSOLogin" && s.useSSOLogin == !0 && this.inputServerUrl();
2298
+ });
2299
+ },
2300
+ beforeDestroy() {
2301
+ clearInterval(this.qrcodeTimer), this.loginJump = !1, this.account_password = "", this.account_password2 = "", this.captcha_code = "", this.reg_invite = "";
2302
+ },
2303
+ methods: {
2304
+ handleRemember(l) {
2305
+ l == "on" ? localStorage.setItem("cacheLoginRemember", l) : localStorage.removeItem("cacheLoginRemember");
2306
+ },
2307
+ handleRrivacy(l) {
2308
+ l == "on" ? (localStorage.setItem("cacheLoginPrivacy", l), this.chackServerUrl().catch((s) => {
2309
+ })) : localStorage.removeItem("cacheLoginPrivacy"), this.cache_privacy = l;
2310
+ },
2311
+ handleForgot() {
2312
+ this.$message.warning("请联系管理员!");
2313
+ },
2314
+ chackServerUrl(l) {
2315
+ return new Promise((s, h) => {
2316
+ s();
2317
+ });
2318
+ },
2319
+ switchLoginMode(l) {
2320
+ this.chackServerUrl(!0).then(() => {
2321
+ clearInterval(this.qrcodeTimer), l === "qrcode" ? (this.loginMode = "qrcode", this.scanQrcodeRefresh()) : l === "access" ? this.loginMode = "access" : l === "smsLogin" ? (this.loginMode = "smsLogin", this.refreshCode()) : this.loginMode = l;
2322
+ });
2323
+ },
2324
+ refreshCode() {
2325
+ this.captcha_code = "", !(this.codeLoad > 0) && (setTimeout((l) => {
2326
+ this.codeLoad++;
2327
+ }, 600), this.$request.flagGet("BASE_PASSPORT_CODE_DATA", { account_mobile: this.account_mobile }).then(({ data: l }) => {
2328
+ this.codeKey = l.key, this.codeUrl = l.img, this.$refs.captcha_code?.focus();
2329
+ }).catch((l) => {
2330
+ this.codeUrl = "error";
2331
+ }).finally((l) => {
2332
+ this.codeLoad--;
2333
+ }));
2334
+ },
2335
+ onBlur() {
2336
+ if (!this.account_mobile) {
2337
+ this.codeNeed = !1;
2338
+ return;
2339
+ }
2340
+ this.loadOngoing = !0, this.$request.flagGet("BASE_PASSPORT_CODE_NEED", { account_mobile: this.account_mobile }).then((l) => {
2341
+ this.loadOngoing = !1, l.data == "need" ? (this.refreshCode(), this.codeNeed = !0) : this.codeNeed = !1;
2342
+ }).catch((l) => {
2343
+ this.loadOngoing = !1;
2344
+ }).finally((l) => {
2345
+ this.loadOngoing = !1;
2346
+ });
2347
+ },
2348
+ accessLoginFunc() {
2349
+ if (this.loadOngoing)
2350
+ return this.$message({
2351
+ type: "warning",
2352
+ message: "正在登录中,请勿重新确认~"
2353
+ }), !1;
2354
+ this.chackServerUrl(!0).then(() => {
2355
+ if (this.account_mobile = cvUtils.strTrimAll(this.account_mobile), this.account_password = cvUtils.strTrimAll(this.account_password), this.account_password2 = cvUtils.strTrimAll(this.account_password2), this.captcha_code = cvUtils.strTrimAll(this.captcha_code), this.reg_invite = cvUtils.strTrimAll(this.reg_invite), this.cache_privacy != "on") {
2356
+ this.$message.warning("请同意协议");
2357
+ return;
2358
+ }
2359
+ if (!cvUtils.isMobile(this.account_mobile)) {
2360
+ this.$message.warning("请输入正确的手机号码"), this.$refs.account_mobile.focus();
2361
+ return;
2362
+ }
2363
+ if (!this.account_password) {
2364
+ this.$message.warning("请输入密码"), this.$refs.account_password.focus();
2365
+ return;
2366
+ }
2367
+ if (this.loginMode == "reg" && this.account_password != this.account_password2) {
2368
+ this.$message.warning("确认密码输入不一致"), this.$refs.account_password2.focus();
2369
+ return;
2370
+ }
2371
+ if (this.codeNeed && !this.captcha_code) {
2372
+ this.$message.warning("请输入验证码"), this.$refs.captcha_code.focus();
2373
+ return;
2374
+ }
2375
+ this.passportHandle2(null, "MobilePwdLogin");
2376
+ });
2377
+ },
2378
+ loginBusinessCheck(l) {
2379
+ this.account_mobile = l.account_mobile_show, this.account_business_id = l.business_id, l.acc_rules_type == "sy-org-admin" ? this.passportHandle2(null, "OrgAdminPwdLogin") : l.acc_rules_type == "sy-org-staff" && this.passportHandle2(null, "OrgStaffPwdLogin");
2380
+ },
2381
+ passportHandle2(l, s) {
2382
+ let h = this.$message({
2383
+ iconClass: "ElIconLoading",
2384
+ message: "正在登录...",
2385
+ duration: 0
2386
+ });
2387
+ this.loadOngoing = !0, localStorage.setItem("cacheLoginMobile", this.account_mobile);
2388
+ try {
2389
+ let v = {};
2390
+ this.loginMode == "access" ? (v = {
2391
+ account_mobile: this.account_mobile,
2392
+ business_id: this.account_business_id,
2393
+ account_password: this.account_password,
2394
+ captcha_code: this.captcha_code,
2395
+ captcha_key: this.codeKey
2396
+ }, (s == "OrgAdminPwdLogin" || s == "OrgStaffPwdLogin") && (v.temp_token = this.chainTempToken)) : this.loginMode == "reg" && (v = {
2397
+ account_mobile: this.account_mobile,
2398
+ business_id: this.account_business_id,
2399
+ account_password: this.account_password,
2400
+ captcha_code: this.captcha_code,
2401
+ captcha_key: this.codeKey,
2402
+ reg_invite: this.reg_invite
2403
+ }), this.$request.setOptions({ timeout: 1e4 }).flagPost("BASE_PASSPORT_PASSPORT", {
2404
+ handleType: s,
2405
+ ...v
2406
+ }).then((p) => {
2407
+ h.close(), this.loadOngoing = !1, p.status == 200 ? this.adminLoginSucc(p) : p.status == 400130 ? (this.$message.error("验证码有误!"), this.refreshCode(), this.codeNeed = !0) : (this.$message.error(p.msg), this.refreshCode());
2408
+ }).catch((p) => {
2409
+ this.loadOngoing = !1, this.chainShowFlag = !1, h.close(), this.refreshCode(), this.codeNeed = !0;
2410
+ });
2411
+ } catch {
2412
+ this.$message.error("登录异常"), h.close(), this.loadOngoing = !1, this.refreshCode();
2413
+ }
2414
+ },
2415
+ async adminLoginSucc(l) {
2416
+ let s = l.data || {};
2417
+ if (s.result_type == "chain")
2418
+ this.chainAccountList = s.result_data || [], this.chainShowFlag = !0, this.chainTempToken = s.result_token || "";
2419
+ else {
2420
+ const h = s.result_data || {};
2421
+ await r3().SA_ACCOUNT_SIGNIN(h), this.codeNeed = !1, this.$message({
2422
+ type: "success",
2423
+ message: "登录成功...",
2424
+ duration: 800,
2425
+ onClose: () => {
2426
+ this.goNext();
2427
+ }
2428
+ });
2429
+ }
2430
+ },
2431
+ chainReselection() {
2432
+ this.refreshCode(), this.chainShowFlag = !1;
2433
+ },
2434
+ scanCreate(l) {
2435
+ new Y.default(this.$refs.qrCodeUrl, {
2436
+ text: l,
2437
+ width: 180,
2438
+ height: 180,
2439
+ margin: 2,
2440
+ colorDark: "#000000",
2441
+ colorLight: "#ffffff",
2442
+ correctLevel: Y.default.CorrectLevel.L
2443
+ });
2444
+ },
2445
+ scanQrcodeRefresh() {
2446
+ if (this.loginMode != "qrcode" || this.qrcodeLoad) return !1;
2447
+ this.qrcodeExpiredShow = !1, this.qrcodeScanVererr = 0, this.$nextTick(() => {
2448
+ document.getElementById("qrcode").innerHTML = "", clearInterval(this.qrcodeTimer), this.qrcodeLoad = !0, this.$request.flagGet("BASE_PASSPORT_SCAN_QRCODE", {
2449
+ name: "app",
2450
+ fun: "scanQrcode"
2451
+ }).then((l) => {
2452
+ l.status == 200 ? (this.scanCreate(l?.data?.checkLogin), this.qrcodeTimer = window.setInterval(() => {
2453
+ this.scanCheckFunc(l?.data?.scanCode);
2454
+ }, 3e3)) : result.status == 404;
2455
+ }).catch((l) => {
2456
+ }).finally((l) => {
2457
+ this.qrcodeLoad = !1;
2458
+ });
2459
+ });
2460
+ },
2461
+ scanCheckFunc(l) {
2462
+ if (this.qrcodeScanVererr++, this.qrcodeScanVererr > this.qrcodeScanVernum)
2463
+ return clearInterval(this.qrcodeTimer), this.qrcodeExpiredShow = !0, !1;
2464
+ this.$request.flagPost("BASE_PASSPORT_SCAN_CHECK", {
2465
+ name: "app",
2466
+ fun: "scanCheck",
2467
+ scanCode: l || ""
2468
+ }).then((s) => {
2469
+ s.status == 200 ? (s.msg && s?.data?.scanCVal || "") != "" && (clearInterval(this.qrcodeTimer), this.scanLoginFunc(l, s?.data?.scanCVal)) : s.status == 405 && (clearInterval(this.qrcodeTimer), this.qrcodeExpiredShow = !0);
2470
+ }).catch(() => {
2471
+ });
2472
+ },
2473
+ scanLoginFunc(l, s) {
2474
+ this.$message({
2475
+ type: "success",
2476
+ message: "扫码成功,请稍后...",
2477
+ duration: 1500
2478
+ }), this.$request.flagPost("BASE_PASSPORT_SCAN_LOGIN", {
2479
+ name: "app",
2480
+ fun: "scanLogin",
2481
+ scanCode: l,
2482
+ scanCVal: s
2483
+ }).then((h) => {
2484
+ if (h.status == 200) {
2485
+ let v = this.$message({
2486
+ iconClass: "ElIconLoading",
2487
+ message: "正在安全登录中,请稍后...",
2488
+ duration: 0
2489
+ });
2490
+ setTimeout(() => {
2491
+ v.close(), this.$message({
2492
+ message: h.msg,
2493
+ type: h.status == 200 ? "success" : "error"
2494
+ });
2495
+ }, 2e3);
2496
+ }
2497
+ }).catch(() => {
2498
+ });
2499
+ },
2500
+ goNext() {
2501
+ this.loginJump = !0;
2502
+ let l = cvUtils.urlQueryToObj(this.$route.query);
2503
+ const s = decodeURIComponent(l.from || "");
2504
+ s ? X.idbSetItem("clearCache", "login").then((h) => {
2505
+ window.location.replace(s);
2506
+ }) : this.$router.push({ path: "/" });
2507
+ },
2508
+ setTheme(l) {
2509
+ o3().SA_THEMES_SET(l);
2510
+ },
2511
+ setLanguage(l) {
2512
+ i3().SA_LANGUAGE_SET(l);
2513
+ },
2514
+ inputServerUrl() {
2515
+ },
2516
+ inputServerChack(l) {
2517
+ return new Promise((s, h) => {
2518
+ let v = l;
2519
+ /\/api\/$/.test(v) || (v = v + (cvUtils.strRightExists(v, "/") ? "api/" : "/api/")), /^https*:\/\//i.test(v) || (v = `https://${v}`), a3.setOptions({ checkNetwork: !1 }).flagGet("SYS_SETT_ALL", {}).then(async ({ data: p }) => {
2520
+ typeof p.server_version > "u" && typeof p.all_group_mute > "u" ? h(`服务器(${cvUtils.urlGetDomain(l)})版本过低`) : (v != this.sysServerUrl && (await X.idbSetItem("sysServerUrl", v), window.location.reload()), s());
2521
+ }).catch(({ ret: p, msg: w }) => {
2522
+ if (p === -1001) {
2523
+ if (!/^https*:\/\//i.test(l)) {
2524
+ this.inputServerChack(`http://${l}`).then(s).catch(h);
2525
+ return;
2526
+ }
2527
+ w = "服务器地址无效";
2528
+ }
2529
+ h(w);
2530
+ });
2531
+ });
2532
+ }
2533
+ }
2534
+ }, {
2535
+ __name: "login",
2536
+ setup(l) {
2537
+ return (s, h) => {
2538
+ const v = N("el-input"), p = N("el-button"), w = N("el-icon"), b = N("el-tooltip"), D = N("cv-icons"), _ = N("ElIconLoading"), L = N("el-checkbox");
2539
+ return T(), S("div", C3, [s.chainShowFlag ? B("", !0) : (T(), S("div", A3, [
2540
+ f("div", T3, [f("img", {
2541
+ src: s.cacheInstInfo.LAST_IP_LOGO,
2542
+ alt: ""
2543
+ }, null, 8, E3)]),
2544
+ s.loginMode == "reg" ? (T(), S("div", S3, [
2545
+ f("div", b3, C(s.cacheInstInfo.LAST_IP_TITLE), 1),
2546
+ f("div", k3, C(s.$t("输入您的信息以创建帐户。")), 1),
2547
+ f("div", y3, [
2548
+ f("form", null, [E(v, {
2549
+ modelValue: s.account_password2,
2550
+ "onUpdate:modelValue": h[0] || (h[0] = (d) => s.account_password2 = d),
2551
+ ref: "account_password2",
2552
+ "prefix-icon": "ElIconLock",
2553
+ placeholder: s.$t("输入确认密码"),
2554
+ type: "password",
2555
+ size: "large",
2556
+ clearable: ""
2557
+ }, null, 8, ["modelValue", "placeholder"]), s.regInviteNeed ? (T(), Q(v, {
2558
+ key: 0,
2559
+ modelValue: s.reg_invite,
2560
+ "onUpdate:modelValue": h[1] || (h[1] = (d) => s.reg_invite = d),
2561
+ ref: "reg_invite",
2562
+ class: "login-code",
2563
+ placeholder: s.$t("请输入注册邀请码"),
2564
+ type: "text",
2565
+ size: "large",
2566
+ clearable: ""
2567
+ }, {
2568
+ prepend: I(() => [O(" " + C(s.$t("邀请码")) + " ", 1)]),
2569
+ _: 1
2570
+ }, 8, ["modelValue", "placeholder"])) : B("", !0)]),
2571
+ E(p, null, {
2572
+ default: I(() => [O(C(s.loginJump ? "注册成功" : "注册"), 1)]),
2573
+ _: 1
2574
+ }),
2575
+ f("div", I3, [O(C(s.$t("已经有帐号?")) + " ", 1), f("a", {
2576
+ href: "javascript:void(0)",
2577
+ onClick: h[2] || (h[2] = (d) => s.switchLoginMode("access"))
2578
+ }, C(s.$t("登录帐号")), 1)])
2579
+ ])
2580
+ ])) : B("", !0),
2581
+ s.loginMode == "access" ? (T(), S("div", D3, [
2582
+ f("div", M3, [f("div", P3, [E(b, {
2583
+ content: "扫码登录",
2584
+ placement: "left"
2585
+ }, {
2586
+ default: I(() => [f("span", {
2587
+ class: "login-mode-switch-icon",
2588
+ onClick: h[3] || (h[3] = (d) => s.switchLoginMode("qrcode"))
2589
+ }, [E(w, { size: "45" }, {
2590
+ default: I(() => [E(u3)]),
2591
+ _: 1
2592
+ })])]),
2593
+ _: 1
2594
+ })])]),
2595
+ f("div", B3, C(s.cacheInstInfo.LAST_IP_TITLE), 1),
2596
+ f("div", R3, C(s.$t("输入您的凭证以访问您的帐户。")), 1),
2597
+ f("div", O3, [
2598
+ f("form", null, [
2599
+ E(v, {
2600
+ modelValue: s.account_mobile,
2601
+ "onUpdate:modelValue": h[4] || (h[4] = (d) => s.account_mobile = d),
2602
+ ref: "account_mobile",
2603
+ "prefix-icon": "ElIconUser",
2604
+ placeholder: s.$t("输入您的手机账号"),
2605
+ type: "text",
2606
+ size: "large",
2607
+ maxlength: "11",
2608
+ onBlur: s.onBlur,
2609
+ clearable: ""
2610
+ }, null, 8, [
2611
+ "modelValue",
2612
+ "placeholder",
2613
+ "onBlur"
2614
+ ]),
2615
+ E(v, {
2616
+ modelValue: s.account_password,
2617
+ "onUpdate:modelValue": h[5] || (h[5] = (d) => s.account_password = d),
2618
+ ref: "account_password",
2619
+ "prefix-icon": "ElIconLock",
2620
+ placeholder: s.$t("输入您的密码"),
2621
+ type: "password",
2622
+ size: "large",
2623
+ clearable: "",
2624
+ onKeydown: n3(s.accessLoginFunc, ["enter"])
2625
+ }, null, 8, [
2626
+ "modelValue",
2627
+ "placeholder",
2628
+ "onKeydown"
2629
+ ]),
2630
+ s.codeNeed ? (T(), Q(v, {
2631
+ key: 0,
2632
+ modelValue: s.captcha_code,
2633
+ "onUpdate:modelValue": h[7] || (h[7] = (d) => s.captcha_code = d),
2634
+ ref: "captcha_code",
2635
+ class: "login-code",
2636
+ placeholder: s.$t("输入图形验证码"),
2637
+ type: "text",
2638
+ size: "large",
2639
+ clearable: ""
2640
+ }, {
2641
+ prefix: I(() => [E(D, { type: "ElIconCircleCheck" })]),
2642
+ append: I(() => [f("div", {
2643
+ class: "login-code-end",
2644
+ onClick: h[6] || (h[6] = (...d) => s.refreshCode && s.refreshCode(...d))
2645
+ }, [s.codeLoad > 0 ? (T(), S("div", N3, [E(_)])) : s.codeUrl === "error" ? (T(), S("span", U3, C(s.$t("加载失败")), 1)) : (T(), S("img", {
2646
+ key: 2,
2647
+ src: s.codeUrl
2648
+ }, null, 8, H3))])]),
2649
+ _: 1
2650
+ }, 8, ["modelValue", "placeholder"])) : B("", !0)
2651
+ ]),
2652
+ E(p, {
2653
+ type: "primary",
2654
+ loading: s.loadOngoing || s.loginJump,
2655
+ size: "large",
2656
+ style: {
2657
+ width: "100%",
2658
+ "margin-bottom": "15px"
2659
+ },
2660
+ onClick: s.accessLoginFunc
2661
+ }, {
2662
+ default: I(() => [O(C(s.loginJump ? "登录成功" : "登录"), 1)]),
2663
+ _: 1
2664
+ }, 8, ["loading", "onClick"]),
2665
+ f("div", V3, [E(L, {
2666
+ modelValue: s.cache_privacy,
2667
+ "onUpdate:modelValue": h[9] || (h[9] = (d) => s.cache_privacy = d),
2668
+ "true-value": "on",
2669
+ "false-value": "off",
2670
+ onChange: s.handleRrivacy
2671
+ }, {
2672
+ default: I(() => [h[17] || (h[17] = O(" 同意 ", -1)), f("a", {
2673
+ onClick: h[8] || (h[8] = (d) => s.jumpsXieyi("privacy")),
2674
+ target: "_blank"
2675
+ }, "《隐私条款》")]),
2676
+ _: 1
2677
+ }, 8, ["modelValue", "onChange"]), f("a", {
2678
+ href: "javascript:void(0)",
2679
+ onClick: h[10] || (h[10] = (...d) => s.handleForgot && s.handleForgot(...d))
2680
+ }, C(s.$t("忘记密码了?")), 1)]),
2681
+ f("div", F3, [s.cacheInstConfig.open_business_reg == "on" ? (T(), S("div", z3, [O(C(s.$t("还没有帐号?")) + " ", 1), f("a", {
2682
+ href: "javascript:void(0)",
2683
+ onClick: h[11] || (h[11] = (d) => s.switchLoginMode("reg"))
2684
+ }, C(s.$t("注册帐号")), 1)])) : B("", !0), s.cacheInstConfig.open_business_oauth2 == "on" ? (T(), S("div", Q3, [f("a", {
2685
+ href: "javascript:void(0)",
2686
+ onClick: h[12] || (h[12] = (d) => s.switchLoginMode("oauth2"))
2687
+ }, C(s.$t("OAuth2授权登陆")), 1)])) : B("", !0)])
2688
+ ])
2689
+ ])) : B("", !0),
2690
+ s.loginMode == "qrcode" ? (T(), S("div", G3, [
2691
+ f("div", q3, [f("div", $3, [E(b, {
2692
+ content: "帐号登录",
2693
+ placement: "left"
2694
+ }, {
2695
+ default: I(() => [f("span", {
2696
+ class: "login-mode-switch-icon",
2697
+ onClick: h[13] || (h[13] = (d) => s.switchLoginMode("access"))
2698
+ }, [E(w, { size: "45" }, {
2699
+ default: I(() => [E(v3)]),
2700
+ _: 1
2701
+ })])]),
2702
+ _: 1
2703
+ })])]),
2704
+ f("div", K3, C(s.$t("扫码登录")), 1),
2705
+ f("div", J3, [E(w, {
2706
+ size: "20",
2707
+ style: { "margin-right": "10px" }
2708
+ }, {
2709
+ default: I(() => [E(w3)]),
2710
+ _: 1
2711
+ }), O(" " + C(s.$t(`请使用【${s.cacheInstInfo.LAST_IP_BRAND}】移动端扫描二维码`)), 1)]),
2712
+ f("div", {
2713
+ class: "login-qrcode",
2714
+ onClick: h[14] || (h[14] = (...d) => s.scanQrcodeRefresh && s.scanQrcodeRefresh(...d))
2715
+ }, [f("div", X3, null, 512)])
2716
+ ])) : B("", !0),
2717
+ s.loginMode == "oauth2" ? (T(), S("div", Y3, [
2718
+ f("div", W3, C(s.cacheInstInfo.LAST_IP_TITLE), 1),
2719
+ f("div", Z3, C(s.$t("输入您的信息以创建帐户。")), 1),
2720
+ f("div", x3, [f("div", j3, [f("a", {
2721
+ href: "javascript:void(0)",
2722
+ onClick: h[15] || (h[15] = (d) => s.switchLoginMode("access"))
2723
+ }, C(s.$t("帐号登录")), 1)])])
2724
+ ])) : B("", !0)
2725
+ ])), s.chainShowFlag ? (T(), Q(s3, {
2726
+ key: 1,
2727
+ modelValue: s.chainAccountList,
2728
+ "onUpdate:modelValue": h[16] || (h[16] = (d) => s.chainAccountList = d),
2729
+ reselectTitle: "重新登录",
2730
+ onReselectFunc: s.chainReselection,
2731
+ onSelectFunc: s.loginBusinessCheck
2732
+ }, null, 8, [
2733
+ "modelValue",
2734
+ "onReselectFunc",
2735
+ "onSelectFunc"
2736
+ ])) : B("", !0)]);
2737
+ };
2738
+ }
2739
+ }), oe = ee;
2740
+ export {
2741
+ oe as default
2742
+ };