@beaver-im/js-sdk 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/beaver-sdk.es.js +354 -348
- package/dist/beaver-sdk.umd.js +11 -11
- package/package.json +1 -1
package/dist/beaver-sdk.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var io = Object.defineProperty;
|
|
2
2
|
var so = (e, t, n) => t in e ? io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var nr = (e, t, n) => (so(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { defineComponent as wt, ref as c0, onUnmounted as ao, openBlock as x0, createElementBlock as h0, createElementVNode as X, createCommentVNode as m0, toDisplayString as k0, withDirectives as or, vModelText as co, vModelDynamic as xo, watch as fo,
|
|
4
|
+
import { defineComponent as wt, ref as c0, onUnmounted as ao, openBlock as x0, createElementBlock as h0, createElementVNode as X, createCommentVNode as m0, toDisplayString as k0, withDirectives as or, vModelText as co, vModelDynamic as xo, watch as fo, onMounted as uo, getCurrentInstance as lo, resolveComponent as ir, createBlock as sr, defineCustomElement as ho } from "vue";
|
|
5
5
|
var M = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
|
-
function
|
|
6
|
+
function po(e) {
|
|
7
7
|
if (e.__esModule)
|
|
8
8
|
return e;
|
|
9
9
|
var t = e.default;
|
|
@@ -24,11 +24,11 @@ function ho(e) {
|
|
|
24
24
|
});
|
|
25
25
|
}), n;
|
|
26
26
|
}
|
|
27
|
-
var V0 = {},
|
|
27
|
+
var V0 = {}, vo = function() {
|
|
28
28
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
29
29
|
}, an = {}, o0 = {};
|
|
30
30
|
let _t;
|
|
31
|
-
const
|
|
31
|
+
const go = [
|
|
32
32
|
0,
|
|
33
33
|
// Not used
|
|
34
34
|
26,
|
|
@@ -80,7 +80,7 @@ o0.getSymbolSize = function(t) {
|
|
|
80
80
|
return t * 4 + 17;
|
|
81
81
|
};
|
|
82
82
|
o0.getSymbolTotalCodewords = function(t) {
|
|
83
|
-
return
|
|
83
|
+
return go[t];
|
|
84
84
|
};
|
|
85
85
|
o0.getBCHDigit = function(e) {
|
|
86
86
|
let t = 0;
|
|
@@ -154,7 +154,7 @@ cn.prototype = {
|
|
|
154
154
|
this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
|
-
var
|
|
157
|
+
var Eo = cn;
|
|
158
158
|
function G0(e) {
|
|
159
159
|
if (!e || e < 1)
|
|
160
160
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
@@ -173,7 +173,7 @@ G0.prototype.xor = function(e, t, n) {
|
|
|
173
173
|
G0.prototype.isReserved = function(e, t) {
|
|
174
174
|
return this.reservedBit[e * this.size + t];
|
|
175
175
|
};
|
|
176
|
-
var
|
|
176
|
+
var Bo = G0, xn = {};
|
|
177
177
|
(function(e) {
|
|
178
178
|
const t = o0.getSymbolSize;
|
|
179
179
|
e.getRowColCoords = function(r) {
|
|
@@ -194,9 +194,9 @@ var Eo = G0, xn = {};
|
|
|
194
194
|
};
|
|
195
195
|
})(xn);
|
|
196
196
|
var fn = {};
|
|
197
|
-
const
|
|
197
|
+
const Co = o0.getSymbolSize, ar = 7;
|
|
198
198
|
fn.getPositions = function(t) {
|
|
199
|
-
const n =
|
|
199
|
+
const n = Co(t);
|
|
200
200
|
return [
|
|
201
201
|
// top-left
|
|
202
202
|
[0, 0],
|
|
@@ -723,30 +723,30 @@ Rt.prototype.encode = function(t) {
|
|
|
723
723
|
}
|
|
724
724
|
return r;
|
|
725
725
|
};
|
|
726
|
-
var
|
|
726
|
+
var Ao = Rt, hn = {}, A0 = {}, St = {};
|
|
727
727
|
St.isValid = function(t) {
|
|
728
728
|
return !isNaN(t) && t >= 1 && t <= 40;
|
|
729
729
|
};
|
|
730
730
|
var p0 = {};
|
|
731
|
-
const pn = "[0-9]+",
|
|
731
|
+
const pn = "[0-9]+", bo = "[A-Z $%*+\\-./:]+";
|
|
732
732
|
let K0 = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
733
733
|
K0 = K0.replace(/u/g, "\\u");
|
|
734
|
-
const
|
|
734
|
+
const yo = "(?:(?![A-Z0-9 $%*+\\-./:]|" + K0 + `)(?:.|[\r
|
|
735
735
|
]))+`;
|
|
736
736
|
p0.KANJI = new RegExp(K0, "g");
|
|
737
737
|
p0.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
|
|
738
|
-
p0.BYTE = new RegExp(
|
|
738
|
+
p0.BYTE = new RegExp(yo, "g");
|
|
739
739
|
p0.NUMERIC = new RegExp(pn, "g");
|
|
740
|
-
p0.ALPHANUMERIC = new RegExp(
|
|
741
|
-
const
|
|
740
|
+
p0.ALPHANUMERIC = new RegExp(bo, "g");
|
|
741
|
+
const mo = new RegExp("^" + K0 + "$"), Do = new RegExp("^" + pn + "$"), Fo = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
742
742
|
p0.testKanji = function(t) {
|
|
743
|
-
return
|
|
743
|
+
return mo.test(t);
|
|
744
744
|
};
|
|
745
745
|
p0.testNumeric = function(t) {
|
|
746
|
-
return
|
|
746
|
+
return Do.test(t);
|
|
747
747
|
};
|
|
748
748
|
p0.testAlphanumeric = function(t) {
|
|
749
|
-
return
|
|
749
|
+
return Fo.test(t);
|
|
750
750
|
};
|
|
751
751
|
(function(e) {
|
|
752
752
|
const t = St, n = p0;
|
|
@@ -874,18 +874,18 @@ p0.testAlphanumeric = function(t) {
|
|
|
874
874
|
};
|
|
875
875
|
})(hn);
|
|
876
876
|
var vn = {};
|
|
877
|
-
const Et = o0, gn = 1335,
|
|
877
|
+
const Et = o0, gn = 1335, wo = 21522, cr = Et.getBCHDigit(gn);
|
|
878
878
|
vn.getEncodedBits = function(t, n) {
|
|
879
879
|
const r = t.bit << 3 | n;
|
|
880
880
|
let o = r << 10;
|
|
881
881
|
for (; Et.getBCHDigit(o) - cr >= 0; )
|
|
882
882
|
o ^= gn << Et.getBCHDigit(o) - cr;
|
|
883
|
-
return (r << 10 | o) ^
|
|
883
|
+
return (r << 10 | o) ^ wo;
|
|
884
884
|
};
|
|
885
885
|
var En = {};
|
|
886
|
-
const
|
|
886
|
+
const _o = A0;
|
|
887
887
|
function P0(e) {
|
|
888
|
-
this.mode =
|
|
888
|
+
this.mode = _o.NUMERIC, this.data = e.toString();
|
|
889
889
|
}
|
|
890
890
|
P0.getBitsLength = function(t) {
|
|
891
891
|
return 10 * Math.floor(t / 3) + (t % 3 ? t % 3 * 3 + 1 : 0);
|
|
@@ -903,8 +903,8 @@ P0.prototype.write = function(t) {
|
|
|
903
903
|
const i = this.data.length - n;
|
|
904
904
|
i > 0 && (r = this.data.substr(n), o = parseInt(r, 10), t.put(o, i * 3 + 1));
|
|
905
905
|
};
|
|
906
|
-
var
|
|
907
|
-
const
|
|
906
|
+
var Ro = P0;
|
|
907
|
+
const So = A0, _e = [
|
|
908
908
|
"0",
|
|
909
909
|
"1",
|
|
910
910
|
"2",
|
|
@@ -952,7 +952,7 @@ const Ro = A0, _e = [
|
|
|
952
952
|
":"
|
|
953
953
|
];
|
|
954
954
|
function T0(e) {
|
|
955
|
-
this.mode =
|
|
955
|
+
this.mode = So.ALPHANUMERIC, this.data = e;
|
|
956
956
|
}
|
|
957
957
|
T0.getBitsLength = function(t) {
|
|
958
958
|
return 11 * Math.floor(t / 2) + 6 * (t % 2);
|
|
@@ -971,10 +971,10 @@ T0.prototype.write = function(t) {
|
|
|
971
971
|
}
|
|
972
972
|
this.data.length % 2 && t.put(_e.indexOf(this.data[n]), 6);
|
|
973
973
|
};
|
|
974
|
-
var
|
|
975
|
-
const
|
|
974
|
+
var ko = T0;
|
|
975
|
+
const Po = A0;
|
|
976
976
|
function I0(e) {
|
|
977
|
-
this.mode =
|
|
977
|
+
this.mode = Po.BYTE, typeof e == "string" ? this.data = new TextEncoder().encode(e) : this.data = new Uint8Array(e);
|
|
978
978
|
}
|
|
979
979
|
I0.getBitsLength = function(t) {
|
|
980
980
|
return t * 8;
|
|
@@ -989,10 +989,10 @@ I0.prototype.write = function(e) {
|
|
|
989
989
|
for (let t = 0, n = this.data.length; t < n; t++)
|
|
990
990
|
e.put(this.data[t], 8);
|
|
991
991
|
};
|
|
992
|
-
var
|
|
993
|
-
const
|
|
992
|
+
var To = I0;
|
|
993
|
+
const Io = A0, Lo = o0;
|
|
994
994
|
function L0(e) {
|
|
995
|
-
this.mode =
|
|
995
|
+
this.mode = Io.KANJI, this.data = e;
|
|
996
996
|
}
|
|
997
997
|
L0.getBitsLength = function(t) {
|
|
998
998
|
return t * 13;
|
|
@@ -1006,7 +1006,7 @@ L0.prototype.getBitsLength = function() {
|
|
|
1006
1006
|
L0.prototype.write = function(e) {
|
|
1007
1007
|
let t;
|
|
1008
1008
|
for (t = 0; t < this.data.length; t++) {
|
|
1009
|
-
let n =
|
|
1009
|
+
let n = Lo.toSJIS(this.data[t]);
|
|
1010
1010
|
if (n >= 33088 && n <= 40956)
|
|
1011
1011
|
n -= 33088;
|
|
1012
1012
|
else if (n >= 57408 && n <= 60351)
|
|
@@ -1019,7 +1019,7 @@ Make sure your charset is UTF-8`
|
|
|
1019
1019
|
n = (n >>> 8 & 255) * 192 + (n & 255), e.put(n, 13);
|
|
1020
1020
|
}
|
|
1021
1021
|
};
|
|
1022
|
-
var
|
|
1022
|
+
var No = L0, Bn = { exports: {} };
|
|
1023
1023
|
(function(e) {
|
|
1024
1024
|
var t = {
|
|
1025
1025
|
single_source_shortest_paths: function(n, r, o) {
|
|
@@ -1085,9 +1085,9 @@ var Lo = L0, Bn = { exports: {} };
|
|
|
1085
1085
|
};
|
|
1086
1086
|
e.exports = t;
|
|
1087
1087
|
})(Bn);
|
|
1088
|
-
var
|
|
1088
|
+
var Oo = Bn.exports;
|
|
1089
1089
|
(function(e) {
|
|
1090
|
-
const t = A0, n =
|
|
1090
|
+
const t = A0, n = Ro, r = ko, o = To, i = No, a = p0, s = o0, x = Oo;
|
|
1091
1091
|
function c(B) {
|
|
1092
1092
|
return unescape(encodeURIComponent(B)).length;
|
|
1093
1093
|
}
|
|
@@ -1217,9 +1217,9 @@ var No = Bn.exports;
|
|
|
1217
1217
|
);
|
|
1218
1218
|
};
|
|
1219
1219
|
})(En);
|
|
1220
|
-
const ge = o0, Re = he,
|
|
1221
|
-
function
|
|
1222
|
-
const n = e.size, r =
|
|
1220
|
+
const ge = o0, Re = he, Ho = Eo, zo = Bo, Uo = xn, Mo = fn, Bt = un, Ct = pe, qo = Ao, ue = hn, jo = vn, $o = A0, Se = En;
|
|
1221
|
+
function Wo(e, t) {
|
|
1222
|
+
const n = e.size, r = Mo.getPositions(t);
|
|
1223
1223
|
for (let o = 0; o < r.length; o++) {
|
|
1224
1224
|
const i = r[o][0], a = r[o][1];
|
|
1225
1225
|
for (let s = -1; s <= 7; s++)
|
|
@@ -1228,15 +1228,15 @@ function $o(e, t) {
|
|
|
1228
1228
|
a + x <= -1 || n <= a + x || (s >= 0 && s <= 6 && (x === 0 || x === 6) || x >= 0 && x <= 6 && (s === 0 || s === 6) || s >= 2 && s <= 4 && x >= 2 && x <= 4 ? e.set(i + s, a + x, !0, !0) : e.set(i + s, a + x, !1, !0));
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function Ko(e) {
|
|
1232
1232
|
const t = e.size;
|
|
1233
1233
|
for (let n = 8; n < t - 8; n++) {
|
|
1234
1234
|
const r = n % 2 === 0;
|
|
1235
1235
|
e.set(n, 6, r, !0), e.set(6, n, r, !0);
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
const n =
|
|
1238
|
+
function Vo(e, t) {
|
|
1239
|
+
const n = Uo.getPositions(t);
|
|
1240
1240
|
for (let r = 0; r < n.length; r++) {
|
|
1241
1241
|
const o = n[r][0], i = n[r][1];
|
|
1242
1242
|
for (let a = -2; a <= 2; a++)
|
|
@@ -1244,20 +1244,20 @@ function Ko(e, t) {
|
|
|
1244
1244
|
a === -2 || a === 2 || s === -2 || s === 2 || a === 0 && s === 0 ? e.set(o + a, i + s, !0, !0) : e.set(o + a, i + s, !1, !0);
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1247
|
+
function Go(e, t) {
|
|
1248
1248
|
const n = e.size, r = ue.getEncodedBits(t);
|
|
1249
1249
|
let o, i, a;
|
|
1250
1250
|
for (let s = 0; s < 18; s++)
|
|
1251
1251
|
o = Math.floor(s / 3), i = s % 3 + n - 8 - 3, a = (r >> s & 1) === 1, e.set(o, i, a, !0), e.set(i, o, a, !0);
|
|
1252
1252
|
}
|
|
1253
1253
|
function ke(e, t, n) {
|
|
1254
|
-
const r = e.size, o =
|
|
1254
|
+
const r = e.size, o = jo.getEncodedBits(t, n);
|
|
1255
1255
|
let i, a;
|
|
1256
1256
|
for (i = 0; i < 15; i++)
|
|
1257
1257
|
a = (o >> i & 1) === 1, i < 6 ? e.set(i, 8, a, !0) : i < 8 ? e.set(i + 1, 8, a, !0) : e.set(r - 15 + i, 8, a, !0), i < 8 ? e.set(8, r - i - 1, a, !0) : i < 9 ? e.set(8, 15 - i - 1 + 1, a, !0) : e.set(8, 15 - i - 1, a, !0);
|
|
1258
1258
|
e.set(r - 8, 8, 1, !0);
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function Xo(e, t) {
|
|
1261
1261
|
const n = e.size;
|
|
1262
1262
|
let r = -1, o = n - 1, i = 7, a = 0;
|
|
1263
1263
|
for (let s = n - 1; s > 0; s -= 2)
|
|
@@ -1273,10 +1273,10 @@ function Go(e, t) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1277
|
-
const r = new
|
|
1276
|
+
function Qo(e, t, n) {
|
|
1277
|
+
const r = new Ho();
|
|
1278
1278
|
n.forEach(function(x) {
|
|
1279
|
-
r.put(x.mode.bit, 4), r.put(x.getLength(),
|
|
1279
|
+
r.put(x.mode.bit, 4), r.put(x.getLength(), $o.getCharCountIndicator(x.mode, e)), x.write(r);
|
|
1280
1280
|
});
|
|
1281
1281
|
const o = ge.getSymbolTotalCodewords(e), i = Ct.getTotalCodewordsCount(e, t), a = (o - i) * 8;
|
|
1282
1282
|
for (r.getLengthInBits() + 4 <= a && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
|
|
@@ -1284,10 +1284,10 @@ function Xo(e, t, n) {
|
|
|
1284
1284
|
const s = (a - r.getLengthInBits()) / 8;
|
|
1285
1285
|
for (let x = 0; x < s; x++)
|
|
1286
1286
|
r.put(x % 2 ? 17 : 236, 8);
|
|
1287
|
-
return
|
|
1287
|
+
return Zo(r, e, t);
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1290
|
-
const r = ge.getSymbolTotalCodewords(t), o = Ct.getTotalCodewordsCount(t, n), i = r - o, a = Ct.getBlocksCount(t, n), s = r % a, x = a - s, c = Math.floor(r / a), f = Math.floor(i / a), C = f + 1, l = c - f, p = new
|
|
1289
|
+
function Zo(e, t, n) {
|
|
1290
|
+
const r = ge.getSymbolTotalCodewords(t), o = Ct.getTotalCodewordsCount(t, n), i = r - o, a = Ct.getBlocksCount(t, n), s = r % a, x = a - s, c = Math.floor(r / a), f = Math.floor(i / a), C = f + 1, l = c - f, p = new qo(l);
|
|
1291
1291
|
let g = 0;
|
|
1292
1292
|
const v = new Array(a), h = new Array(a);
|
|
1293
1293
|
let B = 0;
|
|
@@ -1306,7 +1306,7 @@ function Qo(e, t, n) {
|
|
|
1306
1306
|
d[E++] = h[y][A];
|
|
1307
1307
|
return d;
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function Yo(e, t, n, r) {
|
|
1310
1310
|
let o;
|
|
1311
1311
|
if (Array.isArray(e))
|
|
1312
1312
|
o = Se.fromArray(e);
|
|
@@ -1331,8 +1331,8 @@ The chosen QR Code version cannot contain this amount of data.
|
|
|
1331
1331
|
Minimum version required to store current data is: ` + i + `.
|
|
1332
1332
|
`
|
|
1333
1333
|
);
|
|
1334
|
-
const a =
|
|
1335
|
-
return
|
|
1334
|
+
const a = Qo(t, n, o), s = ge.getSymbolSize(t), x = new zo(s);
|
|
1335
|
+
return Wo(x, t), Ko(x), Vo(x, t), ke(x, n, 0), t >= 7 && Go(x, t), Xo(x, a), isNaN(r) && (r = Bt.getBestMask(
|
|
1336
1336
|
x,
|
|
1337
1337
|
ke.bind(null, x, n)
|
|
1338
1338
|
)), Bt.applyMask(r, x), ke(x, n, r), {
|
|
@@ -1347,7 +1347,7 @@ an.create = function(t, n) {
|
|
|
1347
1347
|
if (typeof t > "u" || t === "")
|
|
1348
1348
|
throw new Error("No input text");
|
|
1349
1349
|
let r = Re.M, o, i;
|
|
1350
|
-
return typeof n < "u" && (r = Re.from(n.errorCorrectionLevel, Re.M), o = ue.from(n.version), i = Bt.from(n.maskPattern), n.toSJISFunc && ge.setToSJISFunction(n.toSJISFunc)),
|
|
1350
|
+
return typeof n < "u" && (r = Re.from(n.errorCorrectionLevel, Re.M), o = ue.from(n.version), i = Bt.from(n.maskPattern), n.toSJISFunc && ge.setToSJISFunction(n.toSJISFunc)), Yo(t, o, r, i);
|
|
1351
1351
|
};
|
|
1352
1352
|
var Cn = {}, kt = {};
|
|
1353
1353
|
(function(e) {
|
|
@@ -1426,7 +1426,7 @@ var Cn = {}, kt = {};
|
|
|
1426
1426
|
};
|
|
1427
1427
|
})(Cn);
|
|
1428
1428
|
var An = {};
|
|
1429
|
-
const
|
|
1429
|
+
const Jo = kt;
|
|
1430
1430
|
function xr(e, t) {
|
|
1431
1431
|
const n = e.a / 255, r = t + '="' + e.hex + '"';
|
|
1432
1432
|
return n < 1 ? r + " " + t + '-opacity="' + n.toFixed(2).slice(1) + '"' : r;
|
|
@@ -1435,7 +1435,7 @@ function Pe(e, t, n) {
|
|
|
1435
1435
|
let r = e + t;
|
|
1436
1436
|
return typeof n < "u" && (r += " " + n), r;
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function ei(e, t, n) {
|
|
1439
1439
|
let r = "", o = 0, i = !1, a = 0;
|
|
1440
1440
|
for (let s = 0; s < e.length; s++) {
|
|
1441
1441
|
const x = Math.floor(s % t), c = Math.floor(s / t);
|
|
@@ -1444,14 +1444,14 @@ function Jo(e, t, n) {
|
|
|
1444
1444
|
return r;
|
|
1445
1445
|
}
|
|
1446
1446
|
An.render = function(t, n, r) {
|
|
1447
|
-
const o =
|
|
1447
|
+
const o = Jo.getOptions(n), i = t.modules.size, a = t.modules.data, s = i + o.margin * 2, x = o.color.light.a ? "<path " + xr(o.color.light, "fill") + ' d="M0 0h' + s + "v" + s + 'H0z"/>' : "", c = "<path " + xr(o.color.dark, "stroke") + ' d="' + ei(a, i, o.margin) + '"/>', f = 'viewBox="0 0 ' + s + " " + s + '"', l = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + f + ' shape-rendering="crispEdges">' + x + c + `</svg>
|
|
1448
1448
|
`;
|
|
1449
1449
|
return typeof r == "function" && r(null, l), l;
|
|
1450
1450
|
};
|
|
1451
|
-
const
|
|
1451
|
+
const ti = vo, At = an, bn = Cn, ri = An;
|
|
1452
1452
|
function Pt(e, t, n, r, o) {
|
|
1453
1453
|
const i = [].slice.call(arguments, 1), a = i.length, s = typeof i[a - 1] == "function";
|
|
1454
|
-
if (!s && !
|
|
1454
|
+
if (!s && !ti())
|
|
1455
1455
|
throw new Error("Callback required as last argument");
|
|
1456
1456
|
if (s) {
|
|
1457
1457
|
if (a < 2)
|
|
@@ -1480,19 +1480,19 @@ V0.create = At.create;
|
|
|
1480
1480
|
V0.toCanvas = Pt.bind(null, bn.render);
|
|
1481
1481
|
V0.toDataURL = Pt.bind(null, bn.renderToDataURL);
|
|
1482
1482
|
V0.toString = Pt.bind(null, function(e, t, n) {
|
|
1483
|
-
return
|
|
1483
|
+
return ri.render(e, n);
|
|
1484
1484
|
});
|
|
1485
1485
|
const W0 = {
|
|
1486
1486
|
apiBase: "https://server.wsrh8888.com",
|
|
1487
1487
|
oauthBase: "https://oauth.wsrh8888.com"
|
|
1488
1488
|
};
|
|
1489
|
-
class
|
|
1489
|
+
class ni {
|
|
1490
1490
|
constructor() {
|
|
1491
1491
|
nr(this, "data", { ...W0 });
|
|
1492
1492
|
}
|
|
1493
1493
|
init(t) {
|
|
1494
1494
|
var n, r;
|
|
1495
|
-
this.data = {
|
|
1495
|
+
console.log("partial", t), this.data = {
|
|
1496
1496
|
apiBase: ((n = t == null ? void 0 : t.apiBase) == null ? void 0 : n.trim()) || W0.apiBase,
|
|
1497
1497
|
oauthBase: ((r = t == null ? void 0 : t.oauthBase) == null ? void 0 : r.trim()) || W0.oauthBase
|
|
1498
1498
|
};
|
|
@@ -1504,30 +1504,30 @@ class ri {
|
|
|
1504
1504
|
return this.data.oauthBase;
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
|
-
const X0 = new
|
|
1507
|
+
const X0 = new ni();
|
|
1508
1508
|
function yn(e, t) {
|
|
1509
1509
|
return function() {
|
|
1510
1510
|
return e.apply(t, arguments);
|
|
1511
1511
|
};
|
|
1512
1512
|
}
|
|
1513
|
-
const { toString:
|
|
1514
|
-
const n =
|
|
1513
|
+
const { toString: oi } = Object.prototype, { getPrototypeOf: Ee } = Object, { iterator: Be, toStringTag: mn } = Symbol, Ce = ((e) => (t) => {
|
|
1514
|
+
const n = oi.call(t);
|
|
1515
1515
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
1516
1516
|
})(/* @__PURE__ */ Object.create(null)), d0 = (e) => (e = e.toLowerCase(), (t) => Ce(t) === e), Ae = (e) => (t) => typeof t === e, { isArray: O0 } = Array, N0 = Ae("undefined");
|
|
1517
1517
|
function Q0(e) {
|
|
1518
1518
|
return e !== null && !N0(e) && e.constructor !== null && !N0(e.constructor) && t0(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1519
1519
|
}
|
|
1520
1520
|
const Dn = d0("ArrayBuffer");
|
|
1521
|
-
function
|
|
1521
|
+
function ii(e) {
|
|
1522
1522
|
let t;
|
|
1523
1523
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Dn(e.buffer), t;
|
|
1524
1524
|
}
|
|
1525
|
-
const
|
|
1525
|
+
const si = Ae("string"), t0 = Ae("function"), Fn = Ae("number"), Z0 = (e) => e !== null && typeof e == "object", ai = (e) => e === !0 || e === !1, se = (e) => {
|
|
1526
1526
|
if (Ce(e) !== "object")
|
|
1527
1527
|
return !1;
|
|
1528
1528
|
const t = Ee(e);
|
|
1529
1529
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(mn in e) && !(Be in e);
|
|
1530
|
-
},
|
|
1530
|
+
}, ci = (e) => {
|
|
1531
1531
|
if (!Z0(e) || Q0(e))
|
|
1532
1532
|
return !1;
|
|
1533
1533
|
try {
|
|
@@ -1535,11 +1535,11 @@ const ii = Ae("string"), t0 = Ae("function"), Fn = Ae("number"), Z0 = (e) => e !
|
|
|
1535
1535
|
} catch {
|
|
1536
1536
|
return !1;
|
|
1537
1537
|
}
|
|
1538
|
-
},
|
|
1539
|
-
function
|
|
1538
|
+
}, xi = d0("Date"), fi = d0("File"), ui = (e) => !!(e && typeof e.uri < "u"), li = (e) => e && typeof e.getParts < "u", di = d0("Blob"), hi = d0("FileList"), pi = (e) => Z0(e) && t0(e.pipe);
|
|
1539
|
+
function vi() {
|
|
1540
1540
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
1541
1541
|
}
|
|
1542
|
-
const fr =
|
|
1542
|
+
const fr = vi(), ur = typeof fr.FormData < "u" ? fr.FormData : void 0, gi = (e) => {
|
|
1543
1543
|
if (!e)
|
|
1544
1544
|
return !1;
|
|
1545
1545
|
if (ur && e instanceof ur)
|
|
@@ -1550,12 +1550,12 @@ const fr = pi(), ur = typeof fr.FormData < "u" ? fr.FormData : void 0, vi = (e)
|
|
|
1550
1550
|
const n = Ce(e);
|
|
1551
1551
|
return n === "formdata" || // detect form-data instance
|
|
1552
1552
|
n === "object" && t0(e.toString) && e.toString() === "[object FormData]";
|
|
1553
|
-
},
|
|
1553
|
+
}, Ei = d0("URLSearchParams"), [Bi, Ci, Ai, bi] = [
|
|
1554
1554
|
"ReadableStream",
|
|
1555
1555
|
"Request",
|
|
1556
1556
|
"Response",
|
|
1557
1557
|
"Headers"
|
|
1558
|
-
].map(d0),
|
|
1558
|
+
].map(d0), yi = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1559
1559
|
function Y0(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
1560
1560
|
if (e === null || typeof e > "u")
|
|
1561
1561
|
return;
|
|
@@ -1595,7 +1595,7 @@ function bt(...e) {
|
|
|
1595
1595
|
e[i] && Y0(e[i], o);
|
|
1596
1596
|
return r;
|
|
1597
1597
|
}
|
|
1598
|
-
const
|
|
1598
|
+
const mi = (e, t, n, { allOwnKeys: r } = {}) => (Y0(
|
|
1599
1599
|
t,
|
|
1600
1600
|
(o, i) => {
|
|
1601
1601
|
n && t0(o) ? Object.defineProperty(e, i, {
|
|
@@ -1615,7 +1615,7 @@ const yi = (e, t, n, { allOwnKeys: r } = {}) => (Y0(
|
|
|
1615
1615
|
});
|
|
1616
1616
|
},
|
|
1617
1617
|
{ allOwnKeys: r }
|
|
1618
|
-
), e),
|
|
1618
|
+
), e), Di = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Fi = (e, t, n, r) => {
|
|
1619
1619
|
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
1620
1620
|
__proto__: null,
|
|
1621
1621
|
value: e,
|
|
@@ -1626,7 +1626,7 @@ const yi = (e, t, n, { allOwnKeys: r } = {}) => (Y0(
|
|
|
1626
1626
|
__proto__: null,
|
|
1627
1627
|
value: t.prototype
|
|
1628
1628
|
}), n && Object.assign(e.prototype, n);
|
|
1629
|
-
},
|
|
1629
|
+
}, wi = (e, t, n, r) => {
|
|
1630
1630
|
let o, i, a;
|
|
1631
1631
|
const s = {};
|
|
1632
1632
|
if (t = t || {}, e == null)
|
|
@@ -1637,11 +1637,11 @@ const yi = (e, t, n, { allOwnKeys: r } = {}) => (Y0(
|
|
|
1637
1637
|
e = n !== !1 && Ee(e);
|
|
1638
1638
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
1639
1639
|
return t;
|
|
1640
|
-
},
|
|
1640
|
+
}, _i = (e, t, n) => {
|
|
1641
1641
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
1642
1642
|
const r = e.indexOf(t, n);
|
|
1643
1643
|
return r !== -1 && r === n;
|
|
1644
|
-
},
|
|
1644
|
+
}, Ri = (e) => {
|
|
1645
1645
|
if (!e)
|
|
1646
1646
|
return null;
|
|
1647
1647
|
if (O0(e))
|
|
@@ -1653,28 +1653,28 @@ const yi = (e, t, n, { allOwnKeys: r } = {}) => (Y0(
|
|
|
1653
1653
|
for (; t-- > 0; )
|
|
1654
1654
|
n[t] = e[t];
|
|
1655
1655
|
return n;
|
|
1656
|
-
},
|
|
1656
|
+
}, Si = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ee(Uint8Array)), ki = (e, t) => {
|
|
1657
1657
|
const r = (e && e[Be]).call(e);
|
|
1658
1658
|
let o;
|
|
1659
1659
|
for (; (o = r.next()) && !o.done; ) {
|
|
1660
1660
|
const i = o.value;
|
|
1661
1661
|
t.call(e, i[0], i[1]);
|
|
1662
1662
|
}
|
|
1663
|
-
},
|
|
1663
|
+
}, Pi = (e, t) => {
|
|
1664
1664
|
let n;
|
|
1665
1665
|
const r = [];
|
|
1666
1666
|
for (; (n = e.exec(t)) !== null; )
|
|
1667
1667
|
r.push(n);
|
|
1668
1668
|
return r;
|
|
1669
|
-
},
|
|
1669
|
+
}, Ti = d0("HTMLFormElement"), Ii = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, o) {
|
|
1670
1670
|
return r.toUpperCase() + o;
|
|
1671
|
-
}), yt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
1671
|
+
}), yt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Li = d0("RegExp"), Rn = (e, t) => {
|
|
1672
1672
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
1673
1673
|
Y0(n, (o, i) => {
|
|
1674
1674
|
let a;
|
|
1675
1675
|
(a = t(o, i, e)) !== !1 && (r[i] = a || o);
|
|
1676
1676
|
}), Object.defineProperties(e, r);
|
|
1677
|
-
},
|
|
1677
|
+
}, Ni = (e) => {
|
|
1678
1678
|
Rn(e, (t, n) => {
|
|
1679
1679
|
if (t0(e) && ["arguments", "caller", "callee"].includes(n))
|
|
1680
1680
|
return !1;
|
|
@@ -1689,19 +1689,19 @@ const yi = (e, t, n, { allOwnKeys: r } = {}) => (Y0(
|
|
|
1689
1689
|
});
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
1692
|
-
},
|
|
1692
|
+
}, Oi = (e, t) => {
|
|
1693
1693
|
const n = {}, r = (o) => {
|
|
1694
1694
|
o.forEach((i) => {
|
|
1695
1695
|
n[i] = !0;
|
|
1696
1696
|
});
|
|
1697
1697
|
};
|
|
1698
1698
|
return O0(e) ? r(e) : r(String(e).split(t)), n;
|
|
1699
|
-
},
|
|
1700
|
-
},
|
|
1701
|
-
function
|
|
1699
|
+
}, Hi = () => {
|
|
1700
|
+
}, zi = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1701
|
+
function Ui(e) {
|
|
1702
1702
|
return !!(e && t0(e.append) && e[mn] === "FormData" && e[Be]);
|
|
1703
1703
|
}
|
|
1704
|
-
const
|
|
1704
|
+
const Mi = (e) => {
|
|
1705
1705
|
const t = new Array(10), n = (r, o) => {
|
|
1706
1706
|
if (Z0(r)) {
|
|
1707
1707
|
if (t.indexOf(r) >= 0)
|
|
@@ -1720,7 +1720,7 @@ const Ui = (e) => {
|
|
|
1720
1720
|
return r;
|
|
1721
1721
|
};
|
|
1722
1722
|
return n(e, 0);
|
|
1723
|
-
},
|
|
1723
|
+
}, qi = d0("AsyncFunction"), ji = (e) => e && (Z0(e) || t0(e)) && t0(e.then) && t0(e.catch), Sn = ((e, t) => e ? setImmediate : t ? ((n, r) => (y0.addEventListener(
|
|
1724
1724
|
"message",
|
|
1725
1725
|
({ source: o, data: i }) => {
|
|
1726
1726
|
o === y0 && i === n && r.length && r.shift()();
|
|
@@ -1728,68 +1728,68 @@ const Ui = (e) => {
|
|
|
1728
1728
|
!1
|
|
1729
1729
|
), (o) => {
|
|
1730
1730
|
r.push(o), y0.postMessage(n, "*");
|
|
1731
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", t0(y0.postMessage)),
|
|
1731
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", t0(y0.postMessage)), $i = typeof queueMicrotask < "u" ? queueMicrotask.bind(y0) : typeof process < "u" && process.nextTick || Sn, Wi = (e) => e != null && t0(e[Be]), D = {
|
|
1732
1732
|
isArray: O0,
|
|
1733
1733
|
isArrayBuffer: Dn,
|
|
1734
1734
|
isBuffer: Q0,
|
|
1735
|
-
isFormData:
|
|
1736
|
-
isArrayBufferView:
|
|
1737
|
-
isString:
|
|
1735
|
+
isFormData: gi,
|
|
1736
|
+
isArrayBufferView: ii,
|
|
1737
|
+
isString: si,
|
|
1738
1738
|
isNumber: Fn,
|
|
1739
|
-
isBoolean:
|
|
1739
|
+
isBoolean: ai,
|
|
1740
1740
|
isObject: Z0,
|
|
1741
1741
|
isPlainObject: se,
|
|
1742
|
-
isEmptyObject:
|
|
1743
|
-
isReadableStream:
|
|
1744
|
-
isRequest:
|
|
1745
|
-
isResponse:
|
|
1746
|
-
isHeaders:
|
|
1742
|
+
isEmptyObject: ci,
|
|
1743
|
+
isReadableStream: Bi,
|
|
1744
|
+
isRequest: Ci,
|
|
1745
|
+
isResponse: Ai,
|
|
1746
|
+
isHeaders: bi,
|
|
1747
1747
|
isUndefined: N0,
|
|
1748
|
-
isDate:
|
|
1749
|
-
isFile:
|
|
1750
|
-
isReactNativeBlob:
|
|
1751
|
-
isReactNative:
|
|
1752
|
-
isBlob:
|
|
1753
|
-
isRegExp:
|
|
1748
|
+
isDate: xi,
|
|
1749
|
+
isFile: fi,
|
|
1750
|
+
isReactNativeBlob: ui,
|
|
1751
|
+
isReactNative: li,
|
|
1752
|
+
isBlob: di,
|
|
1753
|
+
isRegExp: Li,
|
|
1754
1754
|
isFunction: t0,
|
|
1755
|
-
isStream:
|
|
1756
|
-
isURLSearchParams:
|
|
1757
|
-
isTypedArray:
|
|
1758
|
-
isFileList:
|
|
1755
|
+
isStream: pi,
|
|
1756
|
+
isURLSearchParams: Ei,
|
|
1757
|
+
isTypedArray: Si,
|
|
1758
|
+
isFileList: hi,
|
|
1759
1759
|
forEach: Y0,
|
|
1760
1760
|
merge: bt,
|
|
1761
|
-
extend:
|
|
1762
|
-
trim:
|
|
1763
|
-
stripBOM:
|
|
1764
|
-
inherits:
|
|
1765
|
-
toFlatObject:
|
|
1761
|
+
extend: mi,
|
|
1762
|
+
trim: yi,
|
|
1763
|
+
stripBOM: Di,
|
|
1764
|
+
inherits: Fi,
|
|
1765
|
+
toFlatObject: wi,
|
|
1766
1766
|
kindOf: Ce,
|
|
1767
1767
|
kindOfTest: d0,
|
|
1768
|
-
endsWith:
|
|
1769
|
-
toArray:
|
|
1770
|
-
forEachEntry:
|
|
1771
|
-
matchAll:
|
|
1772
|
-
isHTMLForm:
|
|
1768
|
+
endsWith: _i,
|
|
1769
|
+
toArray: Ri,
|
|
1770
|
+
forEachEntry: ki,
|
|
1771
|
+
matchAll: Pi,
|
|
1772
|
+
isHTMLForm: Ti,
|
|
1773
1773
|
hasOwnProperty: yt,
|
|
1774
1774
|
hasOwnProp: yt,
|
|
1775
1775
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1776
1776
|
reduceDescriptors: Rn,
|
|
1777
|
-
freezeMethods:
|
|
1778
|
-
toObjectSet:
|
|
1779
|
-
toCamelCase:
|
|
1780
|
-
noop:
|
|
1781
|
-
toFiniteNumber:
|
|
1777
|
+
freezeMethods: Ni,
|
|
1778
|
+
toObjectSet: Oi,
|
|
1779
|
+
toCamelCase: Ii,
|
|
1780
|
+
noop: Hi,
|
|
1781
|
+
toFiniteNumber: zi,
|
|
1782
1782
|
findKey: wn,
|
|
1783
1783
|
global: y0,
|
|
1784
1784
|
isContextDefined: _n,
|
|
1785
|
-
isSpecCompliantForm:
|
|
1786
|
-
toJSONObject:
|
|
1787
|
-
isAsyncFn:
|
|
1788
|
-
isThenable:
|
|
1785
|
+
isSpecCompliantForm: Ui,
|
|
1786
|
+
toJSONObject: Mi,
|
|
1787
|
+
isAsyncFn: qi,
|
|
1788
|
+
isThenable: ji,
|
|
1789
1789
|
setImmediate: Sn,
|
|
1790
|
-
asap:
|
|
1791
|
-
isIterable:
|
|
1792
|
-
},
|
|
1790
|
+
asap: $i,
|
|
1791
|
+
isIterable: Wi
|
|
1792
|
+
}, Ki = D.toObjectSet([
|
|
1793
1793
|
"age",
|
|
1794
1794
|
"authorization",
|
|
1795
1795
|
"content-length",
|
|
@@ -1807,15 +1807,15 @@ const Ui = (e) => {
|
|
|
1807
1807
|
"referer",
|
|
1808
1808
|
"retry-after",
|
|
1809
1809
|
"user-agent"
|
|
1810
|
-
]),
|
|
1810
|
+
]), Vi = (e) => {
|
|
1811
1811
|
const t = {};
|
|
1812
1812
|
let n, r, o;
|
|
1813
1813
|
return e && e.split(`
|
|
1814
1814
|
`).forEach(function(a) {
|
|
1815
|
-
o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] &&
|
|
1815
|
+
o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && Ki[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
1816
1816
|
}), t;
|
|
1817
|
-
}, lr = Symbol("internals"),
|
|
1818
|
-
function
|
|
1817
|
+
}, lr = Symbol("internals"), Gi = /[^\x09\x20-\x7E\x80-\xFF]/g;
|
|
1818
|
+
function Xi(e) {
|
|
1819
1819
|
let t = 0, n = e.length;
|
|
1820
1820
|
for (; t < n; ) {
|
|
1821
1821
|
const r = e.charCodeAt(t);
|
|
@@ -1834,20 +1834,20 @@ function Gi(e) {
|
|
|
1834
1834
|
function j0(e) {
|
|
1835
1835
|
return e && String(e).trim().toLowerCase();
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1838
|
-
return
|
|
1837
|
+
function Qi(e) {
|
|
1838
|
+
return Xi(e.replace(Gi, ""));
|
|
1839
1839
|
}
|
|
1840
1840
|
function ae(e) {
|
|
1841
|
-
return e === !1 || e == null ? e : D.isArray(e) ? e.map(ae) :
|
|
1841
|
+
return e === !1 || e == null ? e : D.isArray(e) ? e.map(ae) : Qi(String(e));
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function Zi(e) {
|
|
1844
1844
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1845
1845
|
let r;
|
|
1846
1846
|
for (; r = n.exec(e); )
|
|
1847
1847
|
t[r[1]] = r[2];
|
|
1848
1848
|
return t;
|
|
1849
1849
|
}
|
|
1850
|
-
const
|
|
1850
|
+
const Yi = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1851
1851
|
function Te(e, t, n, r, o) {
|
|
1852
1852
|
if (D.isFunction(r))
|
|
1853
1853
|
return r.call(this, t, n);
|
|
@@ -1858,10 +1858,10 @@ function Te(e, t, n, r, o) {
|
|
|
1858
1858
|
return r.test(t);
|
|
1859
1859
|
}
|
|
1860
1860
|
}
|
|
1861
|
-
function
|
|
1861
|
+
function Ji(e) {
|
|
1862
1862
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
1863
1863
|
}
|
|
1864
|
-
function
|
|
1864
|
+
function es(e, t) {
|
|
1865
1865
|
const n = D.toCamelCase(" " + t);
|
|
1866
1866
|
["get", "set", "has"].forEach((r) => {
|
|
1867
1867
|
Object.defineProperty(e, r + n, {
|
|
@@ -1891,8 +1891,8 @@ class be {
|
|
|
1891
1891
|
const a = (s, x) => D.forEach(s, (c, f) => i(c, f, x));
|
|
1892
1892
|
if (D.isPlainObject(t) || t instanceof this.constructor)
|
|
1893
1893
|
a(t, n);
|
|
1894
|
-
else if (D.isString(t) && (t = t.trim()) && !
|
|
1895
|
-
a(
|
|
1894
|
+
else if (D.isString(t) && (t = t.trim()) && !Yi(t))
|
|
1895
|
+
a(Vi(t), n);
|
|
1896
1896
|
else if (D.isObject(t) && D.isIterable(t)) {
|
|
1897
1897
|
let s = {}, x, c;
|
|
1898
1898
|
for (const f of t) {
|
|
@@ -1913,7 +1913,7 @@ class be {
|
|
|
1913
1913
|
if (!n)
|
|
1914
1914
|
return o;
|
|
1915
1915
|
if (n === !0)
|
|
1916
|
-
return
|
|
1916
|
+
return Zi(o);
|
|
1917
1917
|
if (D.isFunction(n))
|
|
1918
1918
|
return n.call(this, o, r);
|
|
1919
1919
|
if (D.isRegExp(n))
|
|
@@ -1957,7 +1957,7 @@ class be {
|
|
|
1957
1957
|
n[a] = ae(o), delete n[i];
|
|
1958
1958
|
return;
|
|
1959
1959
|
}
|
|
1960
|
-
const s = t ?
|
|
1960
|
+
const s = t ? Ji(i) : String(i).trim();
|
|
1961
1961
|
s !== i && delete n[i], n[s] = ae(o), r[s] = !0;
|
|
1962
1962
|
}), this;
|
|
1963
1963
|
}
|
|
@@ -1996,7 +1996,7 @@ class be {
|
|
|
1996
1996
|
}).accessors, o = this.prototype;
|
|
1997
1997
|
function i(a) {
|
|
1998
1998
|
const s = j0(a);
|
|
1999
|
-
r[s] || (
|
|
1999
|
+
r[s] || (es(o, a), r[s] = !0);
|
|
2000
2000
|
}
|
|
2001
2001
|
return D.isArray(t) ? t.forEach(i) : i(t), this;
|
|
2002
2002
|
}
|
|
@@ -2019,8 +2019,8 @@ D.reduceDescriptors(be.prototype, ({ value: e }, t) => {
|
|
|
2019
2019
|
};
|
|
2020
2020
|
});
|
|
2021
2021
|
D.freezeMethods(be);
|
|
2022
|
-
const f0 = be,
|
|
2023
|
-
function
|
|
2022
|
+
const f0 = be, ts = "[REDACTED ****]";
|
|
2023
|
+
function rs(e) {
|
|
2024
2024
|
if (D.hasOwnProp(e, "toJSON"))
|
|
2025
2025
|
return !0;
|
|
2026
2026
|
let t = Object.getPrototypeOf(e);
|
|
@@ -2031,7 +2031,7 @@ function ts(e) {
|
|
|
2031
2031
|
}
|
|
2032
2032
|
return !1;
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2034
|
+
function ns(e, t) {
|
|
2035
2035
|
const n = new Set(t.map((i) => String(i).toLowerCase())), r = [], o = (i) => {
|
|
2036
2036
|
if (i === null || typeof i != "object" || D.isBuffer(i))
|
|
2037
2037
|
return i;
|
|
@@ -2045,11 +2045,11 @@ function rs(e, t) {
|
|
|
2045
2045
|
D.isUndefined(c) || (a[x] = c);
|
|
2046
2046
|
});
|
|
2047
2047
|
else {
|
|
2048
|
-
if (!D.isPlainObject(i) &&
|
|
2048
|
+
if (!D.isPlainObject(i) && rs(i))
|
|
2049
2049
|
return r.pop(), i;
|
|
2050
2050
|
a = /* @__PURE__ */ Object.create(null);
|
|
2051
2051
|
for (const [s, x] of Object.entries(i)) {
|
|
2052
|
-
const c = n.has(s.toLowerCase()) ?
|
|
2052
|
+
const c = n.has(s.toLowerCase()) ? ts : o(x);
|
|
2053
2053
|
D.isUndefined(c) || (a[s] = c);
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
@@ -2085,7 +2085,7 @@ class J extends Error {
|
|
|
2085
2085
|
}), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), r && (this.config = r), o && (this.request = o), i && (this.response = i, this.status = i.status);
|
|
2086
2086
|
}
|
|
2087
2087
|
toJSON() {
|
|
2088
|
-
const t = this.config, n = t && D.hasOwnProp(t, "redact") ? t.redact : void 0, r = D.isArray(n) && n.length > 0 ?
|
|
2088
|
+
const t = this.config, n = t && D.hasOwnProp(t, "redact") ? t.redact : void 0, r = D.isArray(n) && n.length > 0 ? ns(t, n) : D.toJSONObject(t);
|
|
2089
2089
|
return {
|
|
2090
2090
|
// Standard
|
|
2091
2091
|
message: this.message,
|
|
@@ -2119,7 +2119,7 @@ J.ERR_CANCELED = "ERR_CANCELED";
|
|
|
2119
2119
|
J.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
2120
2120
|
J.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
2121
2121
|
J.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
2122
|
-
const H = J,
|
|
2122
|
+
const H = J, os = null;
|
|
2123
2123
|
function mt(e) {
|
|
2124
2124
|
return D.isPlainObject(e) || D.isArray(e);
|
|
2125
2125
|
}
|
|
@@ -2131,10 +2131,10 @@ function Ie(e, t, n) {
|
|
|
2131
2131
|
return o = kn(o), !n && i ? "[" + o + "]" : o;
|
|
2132
2132
|
}).join(n ? "." : "") : t;
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2134
|
+
function is(e) {
|
|
2135
2135
|
return D.isArray(e) && !e.some(mt);
|
|
2136
2136
|
}
|
|
2137
|
-
const
|
|
2137
|
+
const ss = D.toFlatObject(D, {}, null, function(t) {
|
|
2138
2138
|
return /^is[A-Z]/.test(t);
|
|
2139
2139
|
});
|
|
2140
2140
|
function ye(e, t, n) {
|
|
@@ -2173,7 +2173,7 @@ function ye(e, t, n) {
|
|
|
2173
2173
|
if (v && !B && typeof v == "object") {
|
|
2174
2174
|
if (D.endsWith(h, "{}"))
|
|
2175
2175
|
h = r ? h : h.slice(0, -2), v = JSON.stringify(v);
|
|
2176
|
-
else if (D.isArray(v) &&
|
|
2176
|
+
else if (D.isArray(v) && is(v) || (D.isFileList(v) || D.endsWith(h, "[]")) && (u = D.toArray(v)))
|
|
2177
2177
|
return h = kn(h), u.forEach(function(E, A) {
|
|
2178
2178
|
!(D.isUndefined(E) || E === null) && t.append(
|
|
2179
2179
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -2184,7 +2184,7 @@ function ye(e, t, n) {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
return mt(v) ? !0 : (t.append(Ie(B, h, i), f(v)), !1);
|
|
2186
2186
|
}
|
|
2187
|
-
const l = [], p = Object.assign(
|
|
2187
|
+
const l = [], p = Object.assign(ss, {
|
|
2188
2188
|
defaultVisitor: C,
|
|
2189
2189
|
convertValue: f,
|
|
2190
2190
|
isVisitable: mt
|
|
@@ -2235,13 +2235,13 @@ Pn.toString = function(t) {
|
|
|
2235
2235
|
return n(o[0]) + "=" + n(o[1]);
|
|
2236
2236
|
}, "").join("&");
|
|
2237
2237
|
};
|
|
2238
|
-
function
|
|
2238
|
+
function as(e) {
|
|
2239
2239
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
2240
2240
|
}
|
|
2241
2241
|
function Tn(e, t, n) {
|
|
2242
2242
|
if (!t)
|
|
2243
2243
|
return e;
|
|
2244
|
-
const r = n && n.encode ||
|
|
2244
|
+
const r = n && n.encode || as, o = D.isFunction(n) ? {
|
|
2245
2245
|
serialize: n
|
|
2246
2246
|
} : n, i = o && o.serialize;
|
|
2247
2247
|
let a;
|
|
@@ -2251,7 +2251,7 @@ function Tn(e, t, n) {
|
|
|
2251
2251
|
}
|
|
2252
2252
|
return e;
|
|
2253
2253
|
}
|
|
2254
|
-
class
|
|
2254
|
+
class cs {
|
|
2255
2255
|
constructor() {
|
|
2256
2256
|
this.handlers = [];
|
|
2257
2257
|
}
|
|
@@ -2306,32 +2306,32 @@ class as {
|
|
|
2306
2306
|
});
|
|
2307
2307
|
}
|
|
2308
2308
|
}
|
|
2309
|
-
const hr =
|
|
2309
|
+
const hr = cs, It = {
|
|
2310
2310
|
silentJSONParsing: !0,
|
|
2311
2311
|
forcedJSONParsing: !0,
|
|
2312
2312
|
clarifyTimeoutError: !1,
|
|
2313
2313
|
legacyInterceptorReqResOrdering: !0
|
|
2314
|
-
},
|
|
2314
|
+
}, xs = typeof URLSearchParams < "u" ? URLSearchParams : Tt, fs = typeof FormData < "u" ? FormData : null, us = typeof Blob < "u" ? Blob : null, ls = {
|
|
2315
2315
|
isBrowser: !0,
|
|
2316
2316
|
classes: {
|
|
2317
|
-
URLSearchParams:
|
|
2318
|
-
FormData:
|
|
2319
|
-
Blob:
|
|
2317
|
+
URLSearchParams: xs,
|
|
2318
|
+
FormData: fs,
|
|
2319
|
+
Blob: us
|
|
2320
2320
|
},
|
|
2321
2321
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
2322
|
-
}, Lt = typeof window < "u" && typeof document < "u", Dt = typeof navigator == "object" && navigator || void 0,
|
|
2323
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
2322
|
+
}, Lt = typeof window < "u" && typeof document < "u", Dt = typeof navigator == "object" && navigator || void 0, ds = Lt && (!Dt || ["ReactNative", "NativeScript", "NS"].indexOf(Dt.product) < 0), hs = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
2323
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), ps = Lt && window.location.href || "http://localhost", vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2324
2324
|
__proto__: null,
|
|
2325
2325
|
hasBrowserEnv: Lt,
|
|
2326
|
-
hasStandardBrowserEnv:
|
|
2327
|
-
hasStandardBrowserWebWorkerEnv:
|
|
2326
|
+
hasStandardBrowserEnv: ds,
|
|
2327
|
+
hasStandardBrowserWebWorkerEnv: hs,
|
|
2328
2328
|
navigator: Dt,
|
|
2329
|
-
origin:
|
|
2329
|
+
origin: ps
|
|
2330
2330
|
}, Symbol.toStringTag, { value: "Module" })), e0 = {
|
|
2331
|
-
...
|
|
2332
|
-
...
|
|
2331
|
+
...vs,
|
|
2332
|
+
...ls
|
|
2333
2333
|
};
|
|
2334
|
-
function
|
|
2334
|
+
function gs(e, t) {
|
|
2335
2335
|
return ye(e, new e0.classes.URLSearchParams(), {
|
|
2336
2336
|
visitor: function(n, r, o, i) {
|
|
2337
2337
|
return e0.isNode && D.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
@@ -2339,10 +2339,10 @@ function vs(e, t) {
|
|
|
2339
2339
|
...t
|
|
2340
2340
|
});
|
|
2341
2341
|
}
|
|
2342
|
-
function
|
|
2342
|
+
function Es(e) {
|
|
2343
2343
|
return D.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
2344
2344
|
}
|
|
2345
|
-
function
|
|
2345
|
+
function Bs(e) {
|
|
2346
2346
|
const t = {}, n = Object.keys(e);
|
|
2347
2347
|
let r;
|
|
2348
2348
|
const o = n.length;
|
|
@@ -2357,18 +2357,18 @@ function In(e) {
|
|
|
2357
2357
|
if (a === "__proto__")
|
|
2358
2358
|
return !0;
|
|
2359
2359
|
const s = Number.isFinite(+a), x = i >= n.length;
|
|
2360
|
-
return a = !a && D.isArray(o) ? o.length : a, x ? (D.hasOwnProp(o, a) ? o[a] = D.isArray(o[a]) ? o[a].concat(r) : [o[a], r] : o[a] = r, !s) : ((!o[a] || !D.isObject(o[a])) && (o[a] = []), t(n, r, o[a], i) && D.isArray(o[a]) && (o[a] =
|
|
2360
|
+
return a = !a && D.isArray(o) ? o.length : a, x ? (D.hasOwnProp(o, a) ? o[a] = D.isArray(o[a]) ? o[a].concat(r) : [o[a], r] : o[a] = r, !s) : ((!o[a] || !D.isObject(o[a])) && (o[a] = []), t(n, r, o[a], i) && D.isArray(o[a]) && (o[a] = Bs(o[a])), !s);
|
|
2361
2361
|
}
|
|
2362
2362
|
if (D.isFormData(e) && D.isFunction(e.entries)) {
|
|
2363
2363
|
const n = {};
|
|
2364
2364
|
return D.forEachEntry(e, (r, o) => {
|
|
2365
|
-
t(
|
|
2365
|
+
t(Es(r), o, n, 0);
|
|
2366
2366
|
}), n;
|
|
2367
2367
|
}
|
|
2368
2368
|
return null;
|
|
2369
2369
|
}
|
|
2370
2370
|
const S0 = (e, t) => e != null && D.hasOwnProp(e, t) ? e[t] : void 0;
|
|
2371
|
-
function
|
|
2371
|
+
function Cs(e, t, n) {
|
|
2372
2372
|
if (D.isString(e))
|
|
2373
2373
|
try {
|
|
2374
2374
|
return (t || JSON.parse)(e), D.trim(e);
|
|
@@ -2396,7 +2396,7 @@ const Nt = {
|
|
|
2396
2396
|
if (i) {
|
|
2397
2397
|
const x = S0(this, "formSerializer");
|
|
2398
2398
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2399
|
-
return
|
|
2399
|
+
return gs(t, x).toString();
|
|
2400
2400
|
if ((s = D.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
2401
2401
|
const c = S0(this, "env"), f = c && c.FormData;
|
|
2402
2402
|
return ye(
|
|
@@ -2406,7 +2406,7 @@ const Nt = {
|
|
|
2406
2406
|
);
|
|
2407
2407
|
}
|
|
2408
2408
|
}
|
|
2409
|
-
return i || o ? (n.setContentType("application/json", !1),
|
|
2409
|
+
return i || o ? (n.setContentType("application/json", !1), Cs(t)) : t;
|
|
2410
2410
|
}
|
|
2411
2411
|
],
|
|
2412
2412
|
transformResponse: [
|
|
@@ -2463,7 +2463,7 @@ function Le(e, t) {
|
|
|
2463
2463
|
function Ln(e) {
|
|
2464
2464
|
return !!(e && e.__CANCEL__);
|
|
2465
2465
|
}
|
|
2466
|
-
class
|
|
2466
|
+
class As extends H {
|
|
2467
2467
|
/**
|
|
2468
2468
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
2469
2469
|
*
|
|
@@ -2477,7 +2477,7 @@ class Cs extends H {
|
|
|
2477
2477
|
super(t ?? "canceled", H.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
2480
|
-
const J0 =
|
|
2480
|
+
const J0 = As;
|
|
2481
2481
|
function Nn(e, t, n) {
|
|
2482
2482
|
const r = n.config.validateStatus;
|
|
2483
2483
|
!n.status || !r || r(n.status) ? e(n) : t(new H(
|
|
@@ -2488,11 +2488,11 @@ function Nn(e, t, n) {
|
|
|
2488
2488
|
n
|
|
2489
2489
|
));
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2491
|
+
function bs(e) {
|
|
2492
2492
|
const t = /^([-+\w]{1,25}):(?:\/\/)?/.exec(e);
|
|
2493
2493
|
return t && t[1] || "";
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2495
|
+
function ys(e, t) {
|
|
2496
2496
|
e = e || 10;
|
|
2497
2497
|
const n = new Array(e), r = new Array(e);
|
|
2498
2498
|
let o = 0, i = 0, a;
|
|
@@ -2508,7 +2508,7 @@ function bs(e, t) {
|
|
|
2508
2508
|
return p ? Math.round(l * 1e3 / p) : void 0;
|
|
2509
2509
|
};
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function ms(e, t) {
|
|
2512
2512
|
let n = 0, r = 1e3 / t, o, i;
|
|
2513
2513
|
const a = (c, f = Date.now()) => {
|
|
2514
2514
|
n = f, o = null, i && (clearTimeout(i), i = null), e(...c);
|
|
@@ -2522,8 +2522,8 @@ function ys(e, t) {
|
|
|
2522
2522
|
}
|
|
2523
2523
|
const le = (e, t, n = 3) => {
|
|
2524
2524
|
let r = 0;
|
|
2525
|
-
const o =
|
|
2526
|
-
return
|
|
2525
|
+
const o = ys(50, 250);
|
|
2526
|
+
return ms((i) => {
|
|
2527
2527
|
const a = i.loaded, s = i.lengthComputable ? i.total : void 0, x = s != null ? Math.min(a, s) : a, c = Math.max(0, x - r), f = o(c);
|
|
2528
2528
|
r = Math.max(r, x);
|
|
2529
2529
|
const C = {
|
|
@@ -2549,10 +2549,10 @@ const le = (e, t, n = 3) => {
|
|
|
2549
2549
|
}),
|
|
2550
2550
|
t[1]
|
|
2551
2551
|
];
|
|
2552
|
-
}, vr = (e) => (...t) => D.asap(() => e(...t)),
|
|
2552
|
+
}, vr = (e) => (...t) => D.asap(() => e(...t)), Ds = e0.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, e0.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
2553
2553
|
new URL(e0.origin),
|
|
2554
2554
|
e0.navigator && /(msie|trident)/i.test(e0.navigator.userAgent)
|
|
2555
|
-
) : () => !0,
|
|
2555
|
+
) : () => !0, Fs = e0.hasStandardBrowserEnv ? (
|
|
2556
2556
|
// Standard browser envs support document.cookie
|
|
2557
2557
|
{
|
|
2558
2558
|
write(e, t, n, r, o, i, a) {
|
|
@@ -2588,15 +2588,15 @@ const le = (e, t, n = 3) => {
|
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
2590
|
);
|
|
2591
|
-
function
|
|
2591
|
+
function ws(e) {
|
|
2592
2592
|
return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
2593
2593
|
}
|
|
2594
|
-
function
|
|
2594
|
+
function _s(e, t) {
|
|
2595
2595
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
2596
2596
|
}
|
|
2597
2597
|
function On(e, t, n) {
|
|
2598
|
-
let r = !
|
|
2599
|
-
return e && (r || n === !1) ?
|
|
2598
|
+
let r = !ws(t);
|
|
2599
|
+
return e && (r || n === !1) ? _s(e, t) : t;
|
|
2600
2600
|
}
|
|
2601
2601
|
const gr = (e) => e instanceof f0 ? { ...e } : e;
|
|
2602
2602
|
function D0(e, t) {
|
|
@@ -2677,17 +2677,17 @@ function D0(e, t) {
|
|
|
2677
2677
|
D.isUndefined(g) && C !== s || (n[f] = g);
|
|
2678
2678
|
}), n;
|
|
2679
2679
|
}
|
|
2680
|
-
const
|
|
2681
|
-
function
|
|
2680
|
+
const Rs = ["content-type", "content-length"];
|
|
2681
|
+
function Ss(e, t, n) {
|
|
2682
2682
|
if (n !== "content-only") {
|
|
2683
2683
|
e.set(t);
|
|
2684
2684
|
return;
|
|
2685
2685
|
}
|
|
2686
2686
|
Object.entries(t).forEach(([r, o]) => {
|
|
2687
|
-
|
|
2687
|
+
Rs.includes(r.toLowerCase()) && e.set(r, o);
|
|
2688
2688
|
});
|
|
2689
2689
|
}
|
|
2690
|
-
const
|
|
2690
|
+
const ks = (e) => encodeURIComponent(e).replace(
|
|
2691
2691
|
/%([0-9A-F]{2})/gi,
|
|
2692
2692
|
(t, n) => String.fromCharCode(parseInt(n, 16))
|
|
2693
2693
|
), Hn = (e) => {
|
|
@@ -2702,13 +2702,13 @@ const Ss = (e) => encodeURIComponent(e).replace(
|
|
|
2702
2702
|
e.paramsSerializer
|
|
2703
2703
|
), x && s.set(
|
|
2704
2704
|
"Authorization",
|
|
2705
|
-
"Basic " + btoa((x.username || "") + ":" + (x.password ?
|
|
2706
|
-
), D.isFormData(r) && (e0.hasStandardBrowserEnv || e0.hasStandardBrowserWebWorkerEnv ? s.setContentType(void 0) : D.isFunction(r.getHeaders) &&
|
|
2707
|
-
const p = i && a &&
|
|
2705
|
+
"Basic " + btoa((x.username || "") + ":" + (x.password ? ks(x.password) : ""))
|
|
2706
|
+
), D.isFormData(r) && (e0.hasStandardBrowserEnv || e0.hasStandardBrowserWebWorkerEnv ? s.setContentType(void 0) : D.isFunction(r.getHeaders) && Ss(s, r.getHeaders(), n("formDataHeaderPolicy"))), e0.hasStandardBrowserEnv && (D.isFunction(o) && (o = o(t)), o === !0 || o == null && Ds(t.url))) {
|
|
2707
|
+
const p = i && a && Fs.read(a);
|
|
2708
2708
|
p && s.set(i, p);
|
|
2709
2709
|
}
|
|
2710
2710
|
return t;
|
|
2711
|
-
},
|
|
2711
|
+
}, Ps = typeof XMLHttpRequest < "u", Ts = Ps && function(e) {
|
|
2712
2712
|
return new Promise(function(n, r) {
|
|
2713
2713
|
const o = Hn(e);
|
|
2714
2714
|
let i = o.data;
|
|
@@ -2765,7 +2765,7 @@ const Ss = (e) => encodeURIComponent(e).replace(
|
|
|
2765
2765
|
}), D.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), c && ([l, g] = le(c, !0), h.addEventListener("progress", l)), x && h.upload && ([C, p] = le(x), h.upload.addEventListener("progress", C), h.upload.addEventListener("loadend", p)), (o.cancelToken || o.signal) && (f = (d) => {
|
|
2766
2766
|
h && (r(!d || d.type ? new J0(null, e, h) : d), h.abort(), v(), h = null);
|
|
2767
2767
|
}, o.cancelToken && o.cancelToken.subscribe(f), o.signal && (o.signal.aborted ? f() : o.signal.addEventListener("abort", f)));
|
|
2768
|
-
const u =
|
|
2768
|
+
const u = bs(o.url);
|
|
2769
2769
|
if (u && !e0.protocols.includes(u)) {
|
|
2770
2770
|
r(
|
|
2771
2771
|
new H(
|
|
@@ -2778,7 +2778,7 @@ const Ss = (e) => encodeURIComponent(e).replace(
|
|
|
2778
2778
|
}
|
|
2779
2779
|
h.send(i || null);
|
|
2780
2780
|
});
|
|
2781
|
-
},
|
|
2781
|
+
}, Is = (e, t) => {
|
|
2782
2782
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
2783
2783
|
if (t || n) {
|
|
2784
2784
|
let r = new AbortController(), o;
|
|
@@ -2803,7 +2803,7 @@ const Ss = (e) => encodeURIComponent(e).replace(
|
|
|
2803
2803
|
const { signal: x } = r;
|
|
2804
2804
|
return x.unsubscribe = () => D.asap(s), x;
|
|
2805
2805
|
}
|
|
2806
|
-
},
|
|
2806
|
+
}, Ls = Is, Ns = function* (e, t) {
|
|
2807
2807
|
let n = e.byteLength;
|
|
2808
2808
|
if (!t || n < t) {
|
|
2809
2809
|
yield e;
|
|
@@ -2812,10 +2812,10 @@ const Ss = (e) => encodeURIComponent(e).replace(
|
|
|
2812
2812
|
let r = 0, o;
|
|
2813
2813
|
for (; r < n; )
|
|
2814
2814
|
o = r + t, yield e.slice(r, o), r = o;
|
|
2815
|
-
},
|
|
2816
|
-
for await (const n of
|
|
2817
|
-
yield*
|
|
2818
|
-
},
|
|
2815
|
+
}, Os = async function* (e, t) {
|
|
2816
|
+
for await (const n of Hs(e))
|
|
2817
|
+
yield* Ns(n, t);
|
|
2818
|
+
}, Hs = async function* (e) {
|
|
2819
2819
|
if (e[Symbol.asyncIterator]) {
|
|
2820
2820
|
yield* e;
|
|
2821
2821
|
return;
|
|
@@ -2832,7 +2832,7 @@ const Ss = (e) => encodeURIComponent(e).replace(
|
|
|
2832
2832
|
await t.cancel();
|
|
2833
2833
|
}
|
|
2834
2834
|
}, Er = (e, t, n, r) => {
|
|
2835
|
-
const o =
|
|
2835
|
+
const o = Os(e, t);
|
|
2836
2836
|
let i = 0, a, s = (x) => {
|
|
2837
2837
|
a || (a = !0, r && r(x));
|
|
2838
2838
|
};
|
|
@@ -2864,7 +2864,7 @@ const Ss = (e) => encodeURIComponent(e).replace(
|
|
|
2864
2864
|
}
|
|
2865
2865
|
);
|
|
2866
2866
|
};
|
|
2867
|
-
function
|
|
2867
|
+
function zs(e) {
|
|
2868
2868
|
if (!e || typeof e != "string" || !e.startsWith("data:"))
|
|
2869
2869
|
return 0;
|
|
2870
2870
|
const t = e.indexOf(",");
|
|
@@ -2910,7 +2910,7 @@ const Ht = "1.16.0", Br = 64 * 1024, { isFunction: ie } = D, Cr = (e, ...t) => {
|
|
|
2910
2910
|
} catch {
|
|
2911
2911
|
return !1;
|
|
2912
2912
|
}
|
|
2913
|
-
},
|
|
2913
|
+
}, Us = (e) => {
|
|
2914
2914
|
const t = D.global ?? globalThis, { ReadableStream: n, TextEncoder: r } = t;
|
|
2915
2915
|
e = D.merge.call(
|
|
2916
2916
|
{
|
|
@@ -2988,7 +2988,7 @@ const Ht = "1.16.0", Br = 64 * 1024, { isFunction: ie } = D, Cr = (e, ...t) => {
|
|
|
2988
2988
|
const z = D.isNumber(L) && L > -1, V = D.isNumber(O) && O > -1;
|
|
2989
2989
|
let W = o || fetch;
|
|
2990
2990
|
b = b ? (b + "").toLowerCase() : "text";
|
|
2991
|
-
let q =
|
|
2991
|
+
let q = Ls(
|
|
2992
2992
|
[A, y && y.toAbortSignal()],
|
|
2993
2993
|
m
|
|
2994
2994
|
), U = null;
|
|
@@ -2997,7 +2997,7 @@ const Ht = "1.16.0", Br = 64 * 1024, { isFunction: ie } = D, Cr = (e, ...t) => {
|
|
|
2997
2997
|
});
|
|
2998
2998
|
let T;
|
|
2999
2999
|
try {
|
|
3000
|
-
if (z && typeof u == "string" && u.startsWith("data:") &&
|
|
3000
|
+
if (z && typeof u == "string" && u.startsWith("data:") && zs(u) > L)
|
|
3001
3001
|
throw new H(
|
|
3002
3002
|
"maxContentLength size of " + L + " exceeded",
|
|
3003
3003
|
H.ERR_BAD_RESPONSE,
|
|
@@ -3128,18 +3128,18 @@ const Ht = "1.16.0", Br = 64 * 1024, { isFunction: ie } = D, Cr = (e, ...t) => {
|
|
|
3128
3128
|
) : H.from(k, k && k.code, B, U, k && k.response);
|
|
3129
3129
|
}
|
|
3130
3130
|
};
|
|
3131
|
-
},
|
|
3131
|
+
}, Ms = /* @__PURE__ */ new Map(), zn = (e) => {
|
|
3132
3132
|
let t = e && e.env || {};
|
|
3133
3133
|
const { fetch: n, Request: r, Response: o } = t, i = [r, o, n];
|
|
3134
|
-
let a = i.length, s = a, x, c, f =
|
|
3134
|
+
let a = i.length, s = a, x, c, f = Ms;
|
|
3135
3135
|
for (; s--; )
|
|
3136
|
-
x = i[s], c = f.get(x), c === void 0 && f.set(x, c = s ? /* @__PURE__ */ new Map() :
|
|
3136
|
+
x = i[s], c = f.get(x), c === void 0 && f.set(x, c = s ? /* @__PURE__ */ new Map() : Us(t)), f = c;
|
|
3137
3137
|
return c;
|
|
3138
3138
|
};
|
|
3139
3139
|
zn();
|
|
3140
3140
|
const zt = {
|
|
3141
|
-
http:
|
|
3142
|
-
xhr:
|
|
3141
|
+
http: os,
|
|
3142
|
+
xhr: Ts,
|
|
3143
3143
|
fetch: {
|
|
3144
3144
|
get: zn
|
|
3145
3145
|
}
|
|
@@ -3153,8 +3153,8 @@ D.forEach(zt, (e, t) => {
|
|
|
3153
3153
|
Object.defineProperty(e, "adapterName", { __proto__: null, value: t });
|
|
3154
3154
|
}
|
|
3155
3155
|
});
|
|
3156
|
-
const Ar = (e) => `- ${e}`,
|
|
3157
|
-
function
|
|
3156
|
+
const Ar = (e) => `- ${e}`, qs = (e) => D.isFunction(e) || e === null || e === !1;
|
|
3157
|
+
function js(e, t) {
|
|
3158
3158
|
e = D.isArray(e) ? e : [e];
|
|
3159
3159
|
const { length: n } = e;
|
|
3160
3160
|
let r, o;
|
|
@@ -3162,7 +3162,7 @@ function qs(e, t) {
|
|
|
3162
3162
|
for (let a = 0; a < n; a++) {
|
|
3163
3163
|
r = e[a];
|
|
3164
3164
|
let s;
|
|
3165
|
-
if (o = r, !
|
|
3165
|
+
if (o = r, !qs(r) && (o = zt[(s = String(r)).toLowerCase()], o === void 0))
|
|
3166
3166
|
throw new H(`Unknown adapter '${s}'`);
|
|
3167
3167
|
if (o && (D.isFunction(o) || (o = o.get(t))))
|
|
3168
3168
|
break;
|
|
@@ -3187,7 +3187,7 @@ const Un = {
|
|
|
3187
3187
|
* Resolve an adapter from a list of adapter names or functions.
|
|
3188
3188
|
* @type {Function}
|
|
3189
3189
|
*/
|
|
3190
|
-
getAdapter:
|
|
3190
|
+
getAdapter: js,
|
|
3191
3191
|
/**
|
|
3192
3192
|
* Exposes all known adapters
|
|
3193
3193
|
* @type {Object<string, Function|Object>}
|
|
@@ -3255,7 +3255,7 @@ me.transitional = function(t, n, r) {
|
|
|
3255
3255
|
me.spelling = function(t) {
|
|
3256
3256
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
3257
3257
|
};
|
|
3258
|
-
function
|
|
3258
|
+
function $s(e, t, n) {
|
|
3259
3259
|
if (typeof e != "object")
|
|
3260
3260
|
throw new H("options must be an object", H.ERR_BAD_OPTION_VALUE);
|
|
3261
3261
|
const r = Object.keys(e);
|
|
@@ -3276,7 +3276,7 @@ function js(e, t, n) {
|
|
|
3276
3276
|
}
|
|
3277
3277
|
}
|
|
3278
3278
|
const ce = {
|
|
3279
|
-
assertOptions:
|
|
3279
|
+
assertOptions: $s,
|
|
3280
3280
|
validators: me
|
|
3281
3281
|
}, a0 = ce.validators;
|
|
3282
3282
|
class de {
|
|
@@ -3506,13 +3506,13 @@ class Ut {
|
|
|
3506
3506
|
};
|
|
3507
3507
|
}
|
|
3508
3508
|
}
|
|
3509
|
-
const
|
|
3510
|
-
function
|
|
3509
|
+
const Ws = Ut;
|
|
3510
|
+
function Ks(e) {
|
|
3511
3511
|
return function(n) {
|
|
3512
3512
|
return e.apply(null, n);
|
|
3513
3513
|
};
|
|
3514
3514
|
}
|
|
3515
|
-
function
|
|
3515
|
+
function Vs(e) {
|
|
3516
3516
|
return D.isObject(e) && e.isAxiosError === !0;
|
|
3517
3517
|
}
|
|
3518
3518
|
const Ft = {
|
|
@@ -3589,7 +3589,7 @@ const Ft = {
|
|
|
3589
3589
|
Object.entries(Ft).forEach(([e, t]) => {
|
|
3590
3590
|
Ft[t] = e;
|
|
3591
3591
|
});
|
|
3592
|
-
const
|
|
3592
|
+
const Gs = Ft;
|
|
3593
3593
|
function Mn(e) {
|
|
3594
3594
|
const t = new xe(e), n = yn(xe.prototype.request, t);
|
|
3595
3595
|
return D.extend(n, xe.prototype, t, { allOwnKeys: !0 }), D.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
@@ -3599,7 +3599,7 @@ function Mn(e) {
|
|
|
3599
3599
|
const Q = Mn(Ot);
|
|
3600
3600
|
Q.Axios = xe;
|
|
3601
3601
|
Q.CanceledError = J0;
|
|
3602
|
-
Q.CancelToken =
|
|
3602
|
+
Q.CancelToken = Ws;
|
|
3603
3603
|
Q.isCancel = Ln;
|
|
3604
3604
|
Q.VERSION = Ht;
|
|
3605
3605
|
Q.toFormData = ye;
|
|
@@ -3608,15 +3608,15 @@ Q.Cancel = Q.CanceledError;
|
|
|
3608
3608
|
Q.all = function(t) {
|
|
3609
3609
|
return Promise.all(t);
|
|
3610
3610
|
};
|
|
3611
|
-
Q.spread =
|
|
3612
|
-
Q.isAxiosError =
|
|
3611
|
+
Q.spread = Ks;
|
|
3612
|
+
Q.isAxiosError = Vs;
|
|
3613
3613
|
Q.mergeConfig = D0;
|
|
3614
3614
|
Q.AxiosHeaders = f0;
|
|
3615
3615
|
Q.formToJSON = (e) => In(D.isHTMLForm(e) ? new FormData(e) : e);
|
|
3616
3616
|
Q.getAdapter = Un.getAdapter;
|
|
3617
|
-
Q.HttpStatusCode =
|
|
3617
|
+
Q.HttpStatusCode = Gs;
|
|
3618
3618
|
Q.default = Q;
|
|
3619
|
-
const
|
|
3619
|
+
const Xs = Q, Mt = Xs.create({
|
|
3620
3620
|
baseURL: "",
|
|
3621
3621
|
timeout: 3e4,
|
|
3622
3622
|
headers: {
|
|
@@ -3646,20 +3646,20 @@ function De(e) {
|
|
|
3646
3646
|
result: null
|
|
3647
3647
|
}));
|
|
3648
3648
|
}
|
|
3649
|
-
function
|
|
3649
|
+
function Qs(e) {
|
|
3650
3650
|
return `${X0.oauthBase.replace(/\/$/, "")}/scan?sceneId=${encodeURIComponent(e)}`;
|
|
3651
3651
|
}
|
|
3652
|
-
const
|
|
3652
|
+
const Zs = (e) => De({
|
|
3653
3653
|
method: "POST",
|
|
3654
3654
|
url: `${X0.apiBase}/api/open/oauth_public/v1/qrcode`,
|
|
3655
3655
|
data: e
|
|
3656
|
-
}),
|
|
3656
|
+
}), Ys = (e) => De({
|
|
3657
3657
|
method: "GET",
|
|
3658
3658
|
url: `${X0.apiBase}/api/open/oauth_public/v1/qrcode_status?sceneId=${e.sceneId}`
|
|
3659
|
-
}),
|
|
3659
|
+
}), Js = "http://127.0.0.1:38794", ea = (e) => De({
|
|
3660
3660
|
method: "GET",
|
|
3661
|
-
url: `${
|
|
3662
|
-
}),
|
|
3661
|
+
url: `${Js}/auth/quick_sign?appid=${encodeURIComponent(e)}`
|
|
3662
|
+
}), ta = wt({
|
|
3663
3663
|
name: "QrcodeLoginView",
|
|
3664
3664
|
props: {
|
|
3665
3665
|
appId: {
|
|
@@ -3672,7 +3672,7 @@ const Qs = (e) => De({
|
|
|
3672
3672
|
const n = c0(""), r = c0(""), o = c0(""), i = c0("waiting"), a = c0(300), s = c0(null);
|
|
3673
3673
|
let x = null, c = null;
|
|
3674
3674
|
const f = async () => {
|
|
3675
|
-
const u = await
|
|
3675
|
+
const u = await ea(e.appId);
|
|
3676
3676
|
if (u.code !== 0 || !u.result) {
|
|
3677
3677
|
console.error(u.msg);
|
|
3678
3678
|
return;
|
|
@@ -3699,17 +3699,17 @@ const Qs = (e) => De({
|
|
|
3699
3699
|
n.value = d;
|
|
3700
3700
|
}, p = async () => {
|
|
3701
3701
|
o.value = "", i.value = "waiting";
|
|
3702
|
-
const u = await
|
|
3702
|
+
const u = await Zs({ appId: e.appId });
|
|
3703
3703
|
if (u.code !== 0) {
|
|
3704
3704
|
console.error(u.msg), o.value = u.msg;
|
|
3705
3705
|
return;
|
|
3706
3706
|
}
|
|
3707
|
-
r.value = u.result.sceneId, a.value = u.result.expireIn, await l(
|
|
3707
|
+
r.value = u.result.sceneId, a.value = u.result.expireIn, await l(Qs(u.result.sceneId)), g(), h();
|
|
3708
3708
|
}, g = () => {
|
|
3709
3709
|
v(), x = window.setInterval(async () => {
|
|
3710
3710
|
if (!r.value)
|
|
3711
3711
|
return;
|
|
3712
|
-
const u = await
|
|
3712
|
+
const u = await Ys({ sceneId: r.value });
|
|
3713
3713
|
if (u.code !== 0) {
|
|
3714
3714
|
console.error(u.msg), o.value = u.msg, v(), B();
|
|
3715
3715
|
return;
|
|
@@ -3747,34 +3747,34 @@ const Qs = (e) => De({
|
|
|
3747
3747
|
handleLocalLogin: C
|
|
3748
3748
|
};
|
|
3749
3749
|
}
|
|
3750
|
-
}),
|
|
3750
|
+
}), ra = `.qrcode-login-view[data-v-3a819666]{min-height:280px;padding:20px 16px 24px;box-sizing:border-box}.login-columns[data-v-3a819666]{display:flex;justify-content:center;align-items:flex-start;gap:24px}.login-column[data-v-3a819666]{display:flex;flex-direction:column;align-items:center;width:160px}.login-column--clickable[data-v-3a819666]{cursor:pointer}.login-column--clickable:hover .user-card[data-v-3a819666]{border-color:#ff7d45}.login-card[data-v-3a819666]{width:160px;height:160px;border:1px solid #ebeef5;border-radius:8px;overflow:hidden;background:#ffffff;box-sizing:border-box}.qrcode-box[data-v-3a819666]{position:relative;display:flex;align-items:center;justify-content:center}.user-card[data-v-3a819666]{display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;transition:border-color .2s cubic-bezier(.33,1,.68,1)}.user-avatar[data-v-3a819666]{width:100%;height:100%;border-radius:8px;object-fit:cover}.login-column__label[data-v-3a819666]{margin-top:15px;font-size:14px;line-height:1.5;text-align:center;color:#2d3436;font-weight:500;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.login-column__label--action[data-v-3a819666]{color:#ff7d45;font-weight:500;cursor:pointer;transition:color .2s cubic-bezier(.33,1,.68,1);-webkit-user-select:none;user-select:none}.login-column__label--action[data-v-3a819666]:hover{color:#e86835}.qr-code-img[data-v-3a819666]{width:100%;height:100%;object-fit:contain}.qr-placeholder[data-v-3a819666]{color:#b2bec3;font-size:13px}.qrcode-mask[data-v-3a819666]{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(255,255,255,.95);display:flex;align-items:center;justify-content:center}.mask-content[data-v-3a819666]{text-align:center}.mask-content p[data-v-3a819666]{margin:4px 0;font-size:13px;color:#ff7d45;line-height:1.5}.login-error[data-v-3a819666]{margin:16px 0 0;font-size:12px;color:#ff5252;line-height:1.4;text-align:center}
|
|
3751
3751
|
`, qt = (e, t) => {
|
|
3752
3752
|
const n = e.__vccOpts || e;
|
|
3753
3753
|
for (const [r, o] of t)
|
|
3754
3754
|
n[r] = o;
|
|
3755
3755
|
return n;
|
|
3756
|
-
},
|
|
3756
|
+
}, na = { class: "qrcode-login-view" }, oa = { class: "login-columns" }, ia = { class: "login-column" }, sa = { class: "login-card qrcode-box" }, aa = ["src"], ca = {
|
|
3757
3757
|
key: 1,
|
|
3758
3758
|
class: "qr-placeholder"
|
|
3759
|
-
},
|
|
3759
|
+
}, xa = {
|
|
3760
3760
|
key: 2,
|
|
3761
3761
|
class: "qrcode-mask"
|
|
3762
|
-
},
|
|
3762
|
+
}, fa = { class: "login-card user-card" }, ua = ["src"], la = { class: "login-column__label" }, da = {
|
|
3763
3763
|
key: 0,
|
|
3764
3764
|
class: "login-error"
|
|
3765
3765
|
};
|
|
3766
|
-
function
|
|
3767
|
-
return x0(), h0("div",
|
|
3768
|
-
X("div",
|
|
3769
|
-
X("div",
|
|
3770
|
-
X("div",
|
|
3766
|
+
function ha(e, t, n, r, o, i) {
|
|
3767
|
+
return x0(), h0("div", na, [
|
|
3768
|
+
X("div", oa, [
|
|
3769
|
+
X("div", ia, [
|
|
3770
|
+
X("div", sa, [
|
|
3771
3771
|
e.qrCodeDataUrl ? (x0(), h0("img", {
|
|
3772
3772
|
key: 0,
|
|
3773
3773
|
src: e.qrCodeDataUrl,
|
|
3774
3774
|
alt: "二维码",
|
|
3775
3775
|
class: "qr-code-img"
|
|
3776
|
-
}, null, 8,
|
|
3777
|
-
e.scanStatus === "scanned" ? (x0(), h0("div",
|
|
3776
|
+
}, null, 8, aa)) : (x0(), h0("div", ca, "加载中...")),
|
|
3777
|
+
e.scanStatus === "scanned" ? (x0(), h0("div", xa, [...t[2] || (t[2] = [
|
|
3778
3778
|
X("div", { class: "mask-content" }, [
|
|
3779
3779
|
X("p", null, "扫描成功"),
|
|
3780
3780
|
X("p", null, "请在手机上确认登录")
|
|
@@ -3791,29 +3791,29 @@ function da(e, t, n, r, o, i) {
|
|
|
3791
3791
|
class: "login-column login-column--clickable",
|
|
3792
3792
|
onClick: t[1] || (t[1] = (...a) => e.handleLocalLogin && e.handleLocalLogin(...a))
|
|
3793
3793
|
}, [
|
|
3794
|
-
X("div",
|
|
3794
|
+
X("div", fa, [
|
|
3795
3795
|
X("img", {
|
|
3796
3796
|
src: e.localUserInfo.avatar,
|
|
3797
3797
|
alt: "用户头像",
|
|
3798
3798
|
class: "user-avatar"
|
|
3799
|
-
}, null, 8,
|
|
3799
|
+
}, null, 8, ua)
|
|
3800
3800
|
]),
|
|
3801
|
-
X("span",
|
|
3801
|
+
X("span", la, k0(e.localUserInfo.nickname), 1)
|
|
3802
3802
|
])) : m0("", !0)
|
|
3803
3803
|
]),
|
|
3804
|
-
e.error ? (x0(), h0("p",
|
|
3804
|
+
e.error ? (x0(), h0("p", da, k0(e.error), 1)) : m0("", !0)
|
|
3805
3805
|
]);
|
|
3806
3806
|
}
|
|
3807
|
-
const
|
|
3807
|
+
const pa = /* @__PURE__ */ qt(ta, [["render", ha], ["styles", [ra]], ["__scopeId", "data-v-3a819666"]]);
|
|
3808
3808
|
var qn = { exports: {} };
|
|
3809
|
-
function
|
|
3809
|
+
function va(e) {
|
|
3810
3810
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
3811
3811
|
}
|
|
3812
3812
|
var Oe = { exports: {} };
|
|
3813
|
-
const
|
|
3813
|
+
const ga = {}, Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3814
3814
|
__proto__: null,
|
|
3815
|
-
default:
|
|
3816
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3815
|
+
default: ga
|
|
3816
|
+
}, Symbol.toStringTag, { value: "Module" })), Ba = /* @__PURE__ */ po(Ea);
|
|
3817
3817
|
var mr;
|
|
3818
3818
|
function $() {
|
|
3819
3819
|
return mr || (mr = 1, function(e, t) {
|
|
@@ -3822,9 +3822,9 @@ function $() {
|
|
|
3822
3822
|
})(M, function() {
|
|
3823
3823
|
var n = n || function(r, o) {
|
|
3824
3824
|
var i;
|
|
3825
|
-
if (typeof window < "u" && window.crypto && (i = window.crypto), typeof self < "u" && self.crypto && (i = self.crypto), typeof globalThis < "u" && globalThis.crypto && (i = globalThis.crypto), !i && typeof window < "u" && window.msCrypto && (i = window.msCrypto), !i && typeof M < "u" && M.crypto && (i = M.crypto), !i && typeof
|
|
3825
|
+
if (typeof window < "u" && window.crypto && (i = window.crypto), typeof self < "u" && self.crypto && (i = self.crypto), typeof globalThis < "u" && globalThis.crypto && (i = globalThis.crypto), !i && typeof window < "u" && window.msCrypto && (i = window.msCrypto), !i && typeof M < "u" && M.crypto && (i = M.crypto), !i && typeof va == "function")
|
|
3826
3826
|
try {
|
|
3827
|
-
i =
|
|
3827
|
+
i = Ba;
|
|
3828
3828
|
} catch {
|
|
3829
3829
|
}
|
|
3830
3830
|
var a = function() {
|
|
@@ -4546,7 +4546,7 @@ function Fe() {
|
|
|
4546
4546
|
}(He)), He.exports;
|
|
4547
4547
|
}
|
|
4548
4548
|
var ze = { exports: {} }, Fr;
|
|
4549
|
-
function
|
|
4549
|
+
function Ca() {
|
|
4550
4550
|
return Fr || (Fr = 1, function(e, t) {
|
|
4551
4551
|
(function(n, r) {
|
|
4552
4552
|
e.exports = r($());
|
|
@@ -4568,7 +4568,7 @@ function Ba() {
|
|
|
4568
4568
|
}(ze)), ze.exports;
|
|
4569
4569
|
}
|
|
4570
4570
|
var Ue = { exports: {} }, wr;
|
|
4571
|
-
function
|
|
4571
|
+
function Aa() {
|
|
4572
4572
|
return wr || (wr = 1, function(e, t) {
|
|
4573
4573
|
(function(n, r) {
|
|
4574
4574
|
e.exports = r($());
|
|
@@ -4737,7 +4737,7 @@ function F0() {
|
|
|
4737
4737
|
}(Me)), Me.exports;
|
|
4738
4738
|
}
|
|
4739
4739
|
var qe = { exports: {} }, Rr;
|
|
4740
|
-
function
|
|
4740
|
+
function ba() {
|
|
4741
4741
|
return Rr || (Rr = 1, function(e, t) {
|
|
4742
4742
|
(function(n, r) {
|
|
4743
4743
|
e.exports = r($());
|
|
@@ -4981,7 +4981,7 @@ function jt() {
|
|
|
4981
4981
|
}(We)), We.exports;
|
|
4982
4982
|
}
|
|
4983
4983
|
var Ke = { exports: {} }, Tr;
|
|
4984
|
-
function
|
|
4984
|
+
function ya() {
|
|
4985
4985
|
return Tr || (Tr = 1, function(e, t) {
|
|
4986
4986
|
(function(n, r, o) {
|
|
4987
4987
|
e.exports = r($(), jt());
|
|
@@ -5152,7 +5152,7 @@ function $n() {
|
|
|
5152
5152
|
}(Ve)), Ve.exports;
|
|
5153
5153
|
}
|
|
5154
5154
|
var Ge = { exports: {} }, Lr;
|
|
5155
|
-
function
|
|
5155
|
+
function ma() {
|
|
5156
5156
|
return Lr || (Lr = 1, function(e, t) {
|
|
5157
5157
|
(function(n, r, o) {
|
|
5158
5158
|
e.exports = r($(), Fe(), $n());
|
|
@@ -5182,7 +5182,7 @@ function ya() {
|
|
|
5182
5182
|
}(Ge)), Ge.exports;
|
|
5183
5183
|
}
|
|
5184
5184
|
var Xe = { exports: {} }, Nr;
|
|
5185
|
-
function
|
|
5185
|
+
function Da() {
|
|
5186
5186
|
return Nr || (Nr = 1, function(e, t) {
|
|
5187
5187
|
(function(n, r, o) {
|
|
5188
5188
|
e.exports = r($(), Fe());
|
|
@@ -5292,7 +5292,7 @@ function ma() {
|
|
|
5292
5292
|
}(Xe)), Xe.exports;
|
|
5293
5293
|
}
|
|
5294
5294
|
var Qe = { exports: {} }, Or;
|
|
5295
|
-
function
|
|
5295
|
+
function Fa() {
|
|
5296
5296
|
return Or || (Or = 1, function(e, t) {
|
|
5297
5297
|
(function(n, r) {
|
|
5298
5298
|
e.exports = r($());
|
|
@@ -5763,7 +5763,7 @@ function $t() {
|
|
|
5763
5763
|
}(Ze)), Ze.exports;
|
|
5764
5764
|
}
|
|
5765
5765
|
var Ye = { exports: {} }, zr;
|
|
5766
|
-
function
|
|
5766
|
+
function wa() {
|
|
5767
5767
|
return zr || (zr = 1, function(e, t) {
|
|
5768
5768
|
(function(n, r, o) {
|
|
5769
5769
|
e.exports = r($(), jt(), $t());
|
|
@@ -6431,7 +6431,7 @@ function Y() {
|
|
|
6431
6431
|
}(et)), et.exports;
|
|
6432
6432
|
}
|
|
6433
6433
|
var tt = { exports: {} }, qr;
|
|
6434
|
-
function
|
|
6434
|
+
function _a() {
|
|
6435
6435
|
return qr || (qr = 1, function(e, t) {
|
|
6436
6436
|
(function(n, r, o) {
|
|
6437
6437
|
e.exports = r($(), Y());
|
|
@@ -6461,7 +6461,7 @@ function wa() {
|
|
|
6461
6461
|
}(tt)), tt.exports;
|
|
6462
6462
|
}
|
|
6463
6463
|
var rt = { exports: {} }, jr;
|
|
6464
|
-
function
|
|
6464
|
+
function Ra() {
|
|
6465
6465
|
return jr || (jr = 1, function(e, t) {
|
|
6466
6466
|
(function(n, r, o) {
|
|
6467
6467
|
e.exports = r($(), Y());
|
|
@@ -6483,7 +6483,7 @@ function _a() {
|
|
|
6483
6483
|
}(rt)), rt.exports;
|
|
6484
6484
|
}
|
|
6485
6485
|
var nt = { exports: {} }, $r;
|
|
6486
|
-
function
|
|
6486
|
+
function Sa() {
|
|
6487
6487
|
return $r || ($r = 1, function(e, t) {
|
|
6488
6488
|
(function(n, r, o) {
|
|
6489
6489
|
e.exports = r($(), Y());
|
|
@@ -6522,7 +6522,7 @@ function Ra() {
|
|
|
6522
6522
|
}(nt)), nt.exports;
|
|
6523
6523
|
}
|
|
6524
6524
|
var ot = { exports: {} }, Wr;
|
|
6525
|
-
function
|
|
6525
|
+
function ka() {
|
|
6526
6526
|
return Wr || (Wr = 1, function(e, t) {
|
|
6527
6527
|
(function(n, r, o) {
|
|
6528
6528
|
e.exports = r($(), Y());
|
|
@@ -6542,7 +6542,7 @@ function Sa() {
|
|
|
6542
6542
|
}(ot)), ot.exports;
|
|
6543
6543
|
}
|
|
6544
6544
|
var it = { exports: {} }, Kr;
|
|
6545
|
-
function
|
|
6545
|
+
function Pa() {
|
|
6546
6546
|
return Kr || (Kr = 1, function(e, t) {
|
|
6547
6547
|
(function(n, r, o) {
|
|
6548
6548
|
e.exports = r($(), Y());
|
|
@@ -6563,7 +6563,7 @@ function ka() {
|
|
|
6563
6563
|
}(it)), it.exports;
|
|
6564
6564
|
}
|
|
6565
6565
|
var st = { exports: {} }, Vr;
|
|
6566
|
-
function
|
|
6566
|
+
function Ta() {
|
|
6567
6567
|
return Vr || (Vr = 1, function(e, t) {
|
|
6568
6568
|
(function(n, r, o) {
|
|
6569
6569
|
e.exports = r($(), Y());
|
|
@@ -6582,7 +6582,7 @@ function Pa() {
|
|
|
6582
6582
|
}(st)), st.exports;
|
|
6583
6583
|
}
|
|
6584
6584
|
var at = { exports: {} }, Gr;
|
|
6585
|
-
function
|
|
6585
|
+
function Ia() {
|
|
6586
6586
|
return Gr || (Gr = 1, function(e, t) {
|
|
6587
6587
|
(function(n, r, o) {
|
|
6588
6588
|
e.exports = r($(), Y());
|
|
@@ -6601,7 +6601,7 @@ function Ta() {
|
|
|
6601
6601
|
}(at)), at.exports;
|
|
6602
6602
|
}
|
|
6603
6603
|
var ct = { exports: {} }, Xr;
|
|
6604
|
-
function
|
|
6604
|
+
function La() {
|
|
6605
6605
|
return Xr || (Xr = 1, function(e, t) {
|
|
6606
6606
|
(function(n, r, o) {
|
|
6607
6607
|
e.exports = r($(), Y());
|
|
@@ -6618,7 +6618,7 @@ function Ia() {
|
|
|
6618
6618
|
}(ct)), ct.exports;
|
|
6619
6619
|
}
|
|
6620
6620
|
var xt = { exports: {} }, Qr;
|
|
6621
|
-
function
|
|
6621
|
+
function Na() {
|
|
6622
6622
|
return Qr || (Qr = 1, function(e, t) {
|
|
6623
6623
|
(function(n, r, o) {
|
|
6624
6624
|
e.exports = r($(), Y());
|
|
@@ -6640,7 +6640,7 @@ function La() {
|
|
|
6640
6640
|
}(xt)), xt.exports;
|
|
6641
6641
|
}
|
|
6642
6642
|
var ft = { exports: {} }, Zr;
|
|
6643
|
-
function
|
|
6643
|
+
function Oa() {
|
|
6644
6644
|
return Zr || (Zr = 1, function(e, t) {
|
|
6645
6645
|
(function(n, r, o) {
|
|
6646
6646
|
e.exports = r($(), Y());
|
|
@@ -6655,7 +6655,7 @@ function Na() {
|
|
|
6655
6655
|
}(ft)), ft.exports;
|
|
6656
6656
|
}
|
|
6657
6657
|
var ut = { exports: {} }, Yr;
|
|
6658
|
-
function
|
|
6658
|
+
function Ha() {
|
|
6659
6659
|
return Yr || (Yr = 1, function(e, t) {
|
|
6660
6660
|
(function(n, r, o) {
|
|
6661
6661
|
e.exports = r($(), Y());
|
|
@@ -6702,7 +6702,7 @@ function Oa() {
|
|
|
6702
6702
|
}(ut)), ut.exports;
|
|
6703
6703
|
}
|
|
6704
6704
|
var lt = { exports: {} }, Jr;
|
|
6705
|
-
function
|
|
6705
|
+
function za() {
|
|
6706
6706
|
return Jr || (Jr = 1, function(e, t) {
|
|
6707
6707
|
(function(n, r, o) {
|
|
6708
6708
|
e.exports = r($(), F0(), w0(), b0(), Y());
|
|
@@ -6762,7 +6762,7 @@ function Ha() {
|
|
|
6762
6762
|
}(lt)), lt.exports;
|
|
6763
6763
|
}
|
|
6764
6764
|
var dt = { exports: {} }, en;
|
|
6765
|
-
function
|
|
6765
|
+
function Ua() {
|
|
6766
6766
|
return en || (en = 1, function(e, t) {
|
|
6767
6767
|
(function(n, r, o) {
|
|
6768
6768
|
e.exports = r($(), F0(), w0(), b0(), Y());
|
|
@@ -7482,7 +7482,7 @@ function za() {
|
|
|
7482
7482
|
}(dt)), dt.exports;
|
|
7483
7483
|
}
|
|
7484
7484
|
var ht = { exports: {} }, tn;
|
|
7485
|
-
function
|
|
7485
|
+
function Ma() {
|
|
7486
7486
|
return tn || (tn = 1, function(e, t) {
|
|
7487
7487
|
(function(n, r, o) {
|
|
7488
7488
|
e.exports = r($(), F0(), w0(), b0(), Y());
|
|
@@ -7536,7 +7536,7 @@ function Ua() {
|
|
|
7536
7536
|
}(ht)), ht.exports;
|
|
7537
7537
|
}
|
|
7538
7538
|
var pt = { exports: {} }, rn;
|
|
7539
|
-
function
|
|
7539
|
+
function qa() {
|
|
7540
7540
|
return rn || (rn = 1, function(e, t) {
|
|
7541
7541
|
(function(n, r, o) {
|
|
7542
7542
|
e.exports = r($(), F0(), w0(), b0(), Y());
|
|
@@ -7602,7 +7602,7 @@ function Ma() {
|
|
|
7602
7602
|
}(pt)), pt.exports;
|
|
7603
7603
|
}
|
|
7604
7604
|
var vt = { exports: {} }, nn;
|
|
7605
|
-
function
|
|
7605
|
+
function ja() {
|
|
7606
7606
|
return nn || (nn = 1, function(e, t) {
|
|
7607
7607
|
(function(n, r, o) {
|
|
7608
7608
|
e.exports = r($(), F0(), w0(), b0(), Y());
|
|
@@ -7666,7 +7666,7 @@ function qa() {
|
|
|
7666
7666
|
}(vt)), vt.exports;
|
|
7667
7667
|
}
|
|
7668
7668
|
var gt = { exports: {} }, on;
|
|
7669
|
-
function
|
|
7669
|
+
function $a() {
|
|
7670
7670
|
return on || (on = 1, function(e, t) {
|
|
7671
7671
|
(function(n, r, o) {
|
|
7672
7672
|
e.exports = r($(), F0(), w0(), b0(), Y());
|
|
@@ -8789,17 +8789,17 @@ function ja() {
|
|
|
8789
8789
|
}
|
|
8790
8790
|
(function(e, t) {
|
|
8791
8791
|
(function(n, r, o) {
|
|
8792
|
-
e.exports = r($(), Fe(),
|
|
8792
|
+
e.exports = r($(), Fe(), Ca(), Aa(), F0(), ba(), w0(), jn(), jt(), ya(), $n(), ma(), Da(), Fa(), $t(), wa(), b0(), Y(), _a(), Ra(), Sa(), ka(), Pa(), Ta(), Ia(), La(), Na(), Oa(), Ha(), za(), Ua(), Ma(), qa(), ja(), $a());
|
|
8793
8793
|
})(M, function(n) {
|
|
8794
8794
|
return n;
|
|
8795
8795
|
});
|
|
8796
8796
|
})(qn);
|
|
8797
|
-
var
|
|
8798
|
-
const
|
|
8797
|
+
var Wa = qn.exports;
|
|
8798
|
+
const Ka = (e) => De({
|
|
8799
8799
|
method: "POST",
|
|
8800
8800
|
url: `${X0.apiBase}/api/open/oauth_public/v1/password_login`,
|
|
8801
8801
|
data: e
|
|
8802
|
-
}),
|
|
8802
|
+
}), Va = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPgogICAgPHBhdGggZD0iTTEgMTJzNC04IDExLTggMTEgOCAxMSA4LTQgOC0xMSA4LTExLTgtMTEtOHoiPjwvcGF0aD4KICAgIDxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjMiPjwvY2lyY2xlPgo8L3N2Zz4K", Ga = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPgogICAgPHBhdGggZD0iTTE3Ljk0IDE3Ljk0QTEwLjA3IDEwLjA3IDAgMCAxIDEyIDIwYy03IDAtMTEtOC0xMS04YTE4LjQ1IDE4LjQ1IDAgMCAxIDUuMDYtNS45NE05LjkgNC4yNEE5LjEyIDkuMTIgMCAwIDEgMTIgNGM3IDAgMTEgOCAxMSA4YTE4LjUgMTguNSAwIDAgMS0yLjE2IDMuMTltLTYuNzItMS4wN2EzIDMgMCAxIDEtNC4yNC00LjI0Ij48L3BhdGg+CiAgICA8bGluZSB4MT0iMSIgeTE9IjEiIHgyPSIyMyIgeTI9IjIzIj48L2xpbmU+Cjwvc3ZnPgo=", Xa = wt({
|
|
8803
8803
|
name: "PasswordLoginView",
|
|
8804
8804
|
props: {
|
|
8805
8805
|
appId: {
|
|
@@ -8821,7 +8821,7 @@ const Wa = (e) => De({
|
|
|
8821
8821
|
handleLogin: async () => {
|
|
8822
8822
|
if (!s() || !x())
|
|
8823
8823
|
return;
|
|
8824
|
-
const f =
|
|
8824
|
+
const f = Wa.MD5(r.value).toString(), C = await Ka({
|
|
8825
8825
|
appId: e.appId,
|
|
8826
8826
|
account: n.value,
|
|
8827
8827
|
password: f
|
|
@@ -8832,22 +8832,22 @@ const Wa = (e) => De({
|
|
|
8832
8832
|
}
|
|
8833
8833
|
t("login-success", C.result.code);
|
|
8834
8834
|
},
|
|
8835
|
-
eyeIcon:
|
|
8836
|
-
eyeOffIcon:
|
|
8835
|
+
eyeIcon: Va,
|
|
8836
|
+
eyeOffIcon: Ga
|
|
8837
8837
|
};
|
|
8838
8838
|
}
|
|
8839
|
-
}),
|
|
8840
|
-
`,
|
|
8839
|
+
}), Qa = `.password-login-view[data-v-b1796c26]{min-height:280px}.login-form[data-v-b1796c26]{width:100%;margin:0 auto;padding:8px 0 24px}.input-wrap[data-v-b1796c26]{position:relative;font-size:13px;width:100%;max-width:274px;margin:0 auto 26px}.input-wrap input[data-v-b1796c26]{background:#f9fafb;box-sizing:border-box;border:1px solid #ebeef5;border-radius:6px;color:#2d3436;display:inline-block;font-size:13px;height:40px;line-height:40px;padding:0 12px;transition:border-color .2s cubic-bezier(.33,1,.68,1),box-shadow .2s cubic-bezier(.33,1,.68,1);width:100%;outline:none;-webkit-appearance:none}.input-wrap input[data-v-b1796c26]:focus{border-color:#ff7d45;background:#ffffff;box-shadow:0 0 0 3px #ffe6d9}.input-wrap input[data-v-b1796c26]::-webkit-input-placeholder{color:#b2bec3}.input-wrap input.password-input[data-v-b1796c26]{padding-right:40px}.password-toggle[data-v-b1796c26]{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:20px;height:20px;color:#b2bec3;cursor:pointer;transition:color .2s cubic-bezier(.33,1,.68,1)}.password-toggle[data-v-b1796c26]:hover{color:#636e72}.password-toggle img[data-v-b1796c26]{width:18px;height:18px;display:block}.error-text[data-v-b1796c26]{color:#ff5252;font-size:12px;line-height:1.2;padding-top:4px;margin:0;position:absolute;top:100%;left:0}.notice-text[data-v-b1796c26]{width:100%;max-width:274px;font-size:13px;color:#ff5252;font-weight:500;margin:0 auto;line-height:1.5;text-align:center}.login-btn[data-v-b1796c26]{width:100%;max-width:274px;background:#ff7d45;border-radius:6px;text-align:center;line-height:36px;height:36px;color:#fff;font-size:13px;font-weight:500;cursor:pointer;margin:38px auto 0;transition:background .2s cubic-bezier(.33,1,.68,1)}.login-btn[data-v-b1796c26]:hover{background:#e86835}
|
|
8840
|
+
`, Za = { class: "password-login-view" }, Ya = { class: "login-form" }, Ja = { class: "input-wrap" }, ec = {
|
|
8841
8841
|
key: 0,
|
|
8842
8842
|
class: "error-text"
|
|
8843
|
-
},
|
|
8843
|
+
}, tc = { class: "input-wrap" }, rc = ["type"], nc = ["src"], oc = {
|
|
8844
8844
|
key: 0,
|
|
8845
8845
|
class: "error-text"
|
|
8846
8846
|
};
|
|
8847
|
-
function
|
|
8848
|
-
return x0(), h0("div",
|
|
8849
|
-
X("div",
|
|
8850
|
-
X("div",
|
|
8847
|
+
function ic(e, t, n, r, o, i) {
|
|
8848
|
+
return x0(), h0("div", Za, [
|
|
8849
|
+
X("div", Ya, [
|
|
8850
|
+
X("div", Ja, [
|
|
8851
8851
|
or(X("input", {
|
|
8852
8852
|
type: "text",
|
|
8853
8853
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.account = a),
|
|
@@ -8856,9 +8856,9 @@ function oc(e, t, n, r, o, i) {
|
|
|
8856
8856
|
}, null, 544), [
|
|
8857
8857
|
[co, e.account]
|
|
8858
8858
|
]),
|
|
8859
|
-
e.accountError ? (x0(), h0("p",
|
|
8859
|
+
e.accountError ? (x0(), h0("p", ec, k0(e.accountError), 1)) : m0("", !0)
|
|
8860
8860
|
]),
|
|
8861
|
-
X("div",
|
|
8861
|
+
X("div", tc, [
|
|
8862
8862
|
or(X("input", {
|
|
8863
8863
|
type: e.showPassword ? "text" : "password",
|
|
8864
8864
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => e.password = a),
|
|
@@ -8866,7 +8866,7 @@ function oc(e, t, n, r, o, i) {
|
|
|
8866
8866
|
autocomplete: "off",
|
|
8867
8867
|
class: "password-input",
|
|
8868
8868
|
onBlur: t[3] || (t[3] = () => e.validatePassword())
|
|
8869
|
-
}, null, 40,
|
|
8869
|
+
}, null, 40, rc), [
|
|
8870
8870
|
[xo, e.password]
|
|
8871
8871
|
]),
|
|
8872
8872
|
X("span", {
|
|
@@ -8876,9 +8876,9 @@ function oc(e, t, n, r, o, i) {
|
|
|
8876
8876
|
X("img", {
|
|
8877
8877
|
src: e.showPassword ? e.eyeOffIcon : e.eyeIcon,
|
|
8878
8878
|
alt: "切换密码可见性"
|
|
8879
|
-
}, null, 8,
|
|
8879
|
+
}, null, 8, nc)
|
|
8880
8880
|
]),
|
|
8881
|
-
e.passwordError ? (x0(), h0("p",
|
|
8881
|
+
e.passwordError ? (x0(), h0("p", oc, k0(e.passwordError), 1)) : m0("", !0)
|
|
8882
8882
|
]),
|
|
8883
8883
|
X("div", {
|
|
8884
8884
|
class: "login-btn",
|
|
@@ -8887,11 +8887,11 @@ function oc(e, t, n, r, o, i) {
|
|
|
8887
8887
|
])
|
|
8888
8888
|
]);
|
|
8889
8889
|
}
|
|
8890
|
-
const
|
|
8890
|
+
const sc = /* @__PURE__ */ qt(Xa, [["render", ic], ["styles", [Qa]], ["__scopeId", "data-v-b1796c26"]]), ac = wt({
|
|
8891
8891
|
name: "BeaverLogin",
|
|
8892
8892
|
components: {
|
|
8893
|
-
QrcodeLoginView:
|
|
8894
|
-
PasswordLoginView:
|
|
8893
|
+
QrcodeLoginView: pa,
|
|
8894
|
+
PasswordLoginView: sc
|
|
8895
8895
|
},
|
|
8896
8896
|
props: {
|
|
8897
8897
|
appId: {
|
|
@@ -8913,48 +8913,54 @@ const ic = /* @__PURE__ */ qt(Ga, [["render", oc], ["styles", [Xa]], ["__scopeId
|
|
|
8913
8913
|
},
|
|
8914
8914
|
emits: ["login"],
|
|
8915
8915
|
setup(e, { emit: t }) {
|
|
8916
|
+
const n = () => {
|
|
8917
|
+
X0.init({
|
|
8918
|
+
apiBase: e.apiBase,
|
|
8919
|
+
oauthBase: e.oauthBase
|
|
8920
|
+
});
|
|
8921
|
+
};
|
|
8916
8922
|
fo(
|
|
8917
8923
|
() => [e.apiBase, e.oauthBase],
|
|
8918
|
-
(
|
|
8919
|
-
X0.init({ apiBase: s, oauthBase: x });
|
|
8920
|
-
},
|
|
8924
|
+
() => n(),
|
|
8921
8925
|
{ immediate: !0 }
|
|
8922
|
-
)
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
+
), uo(() => {
|
|
8927
|
+
n();
|
|
8928
|
+
});
|
|
8929
|
+
const r = c0("qrcode"), o = () => {
|
|
8930
|
+
r.value = r.value === "qrcode" ? "password" : "qrcode";
|
|
8931
|
+
}, i = (x) => {
|
|
8926
8932
|
if (!e.redirectUrl)
|
|
8927
8933
|
return !1;
|
|
8928
|
-
const
|
|
8929
|
-
return
|
|
8930
|
-
},
|
|
8931
|
-
var
|
|
8932
|
-
const
|
|
8933
|
-
|
|
8934
|
-
detail:
|
|
8934
|
+
const c = new URL(e.redirectUrl);
|
|
8935
|
+
return c.searchParams.set("code", x), window.location.href = c.toString(), !0;
|
|
8936
|
+
}, a = (x) => {
|
|
8937
|
+
var f, C;
|
|
8938
|
+
const c = (C = (f = lo()) == null ? void 0 : f.proxy) == null ? void 0 : C.$el;
|
|
8939
|
+
c != null && c.dispatchEvent && c.dispatchEvent(new CustomEvent("login", {
|
|
8940
|
+
detail: x,
|
|
8935
8941
|
bubbles: !0,
|
|
8936
8942
|
composed: !0
|
|
8937
|
-
})), t("login",
|
|
8943
|
+
})), t("login", x);
|
|
8938
8944
|
};
|
|
8939
8945
|
return {
|
|
8940
|
-
currentMode:
|
|
8941
|
-
toggleLoginMode:
|
|
8942
|
-
handleLoginSuccess: (
|
|
8943
|
-
|
|
8946
|
+
currentMode: r,
|
|
8947
|
+
toggleLoginMode: o,
|
|
8948
|
+
handleLoginSuccess: (x) => {
|
|
8949
|
+
i(x) || a({
|
|
8944
8950
|
code: 0,
|
|
8945
8951
|
msg: "",
|
|
8946
|
-
result: { authCode:
|
|
8952
|
+
result: { authCode: x }
|
|
8947
8953
|
});
|
|
8948
8954
|
}
|
|
8949
8955
|
};
|
|
8950
8956
|
}
|
|
8951
|
-
}),
|
|
8952
|
-
`,
|
|
8953
|
-
function
|
|
8957
|
+
}), cc = `:host{display:block;width:100%}.beaver-login-container{width:100%;position:relative;padding:0 0 20px;font-family:PingFang SC,Microsoft YaHei,SF Pro,Roboto,sans-serif;box-sizing:border-box}.login-header{position:relative;padding:32px 24px 16px}.login-header__title{margin:0;font-size:22px;font-weight:500;color:#2d3436;text-align:center;line-height:1.3}.login-header__switch{position:absolute;right:20px;top:38px;font-size:13px;color:#636e72;cursor:pointer;transition:color .2s cubic-bezier(.33,1,.68,1);-webkit-user-select:none;user-select:none}.login-header__switch:hover{color:#ff7d45}.qrcode-login-container,.oauth-login-container{width:100%}
|
|
8958
|
+
`, xc = { class: "beaver-login-container" }, fc = { class: "login-header" }, uc = { class: "login-header__title" };
|
|
8959
|
+
function lc(e, t, n, r, o, i) {
|
|
8954
8960
|
const a = ir("QrcodeLoginView"), s = ir("PasswordLoginView");
|
|
8955
|
-
return x0(), h0("div",
|
|
8956
|
-
X("div",
|
|
8957
|
-
X("h2",
|
|
8961
|
+
return x0(), h0("div", xc, [
|
|
8962
|
+
X("div", fc, [
|
|
8963
|
+
X("h2", uc, k0(e.currentMode === "qrcode" ? "扫码登录" : "账号登录"), 1),
|
|
8958
8964
|
X("span", {
|
|
8959
8965
|
class: "login-header__switch",
|
|
8960
8966
|
onClick: t[0] || (t[0] = (...x) => e.toggleLoginMode && e.toggleLoginMode(...x))
|
|
@@ -8972,7 +8978,7 @@ function uc(e, t, n, r, o, i) {
|
|
|
8972
8978
|
}, null, 8, ["app-id", "onLoginSuccess"])) : m0("", !0)
|
|
8973
8979
|
]);
|
|
8974
8980
|
}
|
|
8975
|
-
const sn = /* @__PURE__ */ qt(
|
|
8981
|
+
const sn = /* @__PURE__ */ qt(ac, [["render", lc], ["styles", [cc]]]), dc = "1.0.0";
|
|
8976
8982
|
function Wn(e) {
|
|
8977
8983
|
const t = [];
|
|
8978
8984
|
if (!e)
|
|
@@ -8987,23 +8993,23 @@ function Wn(e) {
|
|
|
8987
8993
|
}
|
|
8988
8994
|
return t;
|
|
8989
8995
|
}
|
|
8990
|
-
function
|
|
8996
|
+
function hc() {
|
|
8991
8997
|
if (customElements.get("beaver-login"))
|
|
8992
8998
|
return;
|
|
8993
|
-
const e = Wn(sn), t =
|
|
8999
|
+
const e = Wn(sn), t = ho({
|
|
8994
9000
|
...sn,
|
|
8995
9001
|
styles: e
|
|
8996
9002
|
});
|
|
8997
9003
|
customElements.define("beaver-login", t);
|
|
8998
9004
|
}
|
|
8999
|
-
const
|
|
9000
|
-
version:
|
|
9001
|
-
register:
|
|
9005
|
+
const gc = {
|
|
9006
|
+
version: dc,
|
|
9007
|
+
register: hc
|
|
9002
9008
|
};
|
|
9003
9009
|
export {
|
|
9004
9010
|
W0 as DEFAULT_CONFIG,
|
|
9005
9011
|
X0 as configManager,
|
|
9006
|
-
|
|
9007
|
-
|
|
9008
|
-
|
|
9012
|
+
gc as default,
|
|
9013
|
+
hc as register,
|
|
9014
|
+
dc as version
|
|
9009
9015
|
};
|