@10yun/open-sdk 0.3.103 → 0.3.104
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/{404-ZLMe_DQB.cjs → 404-DkD2PYoN.cjs} +1 -1
- package/dist/{404-CbxZuU6r.js → 404-W2ex1LOt.js} +1 -1
- package/dist/{alone_run-BG9wW4BT.js → alone_run-BFVXgGM5.js} +1 -1
- package/dist/{alone_run-7yMnQkwa.cjs → alone_run-D78y7cu-.cjs} +1 -1
- package/dist/index-BTlaxxYf.cjs +25 -0
- package/dist/{index-BlB6LSxV.js → index-s9I8lS_0.js} +726 -706
- package/dist/{login-C6trVOvi.js → login-Ck4AmN-v.js} +1 -1
- package/dist/{login-Du21dNAv.cjs → login-DA6hnNpj.cjs} +1 -1
- package/dist/{none-CZk0t1S8.cjs → none-BkMDXJgr.cjs} +1 -1
- package/dist/{none-B_VPHCSC.js → none-C0SUxMqb.js} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +3 -3
- package/dist/index-CnjwCtjp.cjs +0 -25
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as De, mapState as Le } from "pinia";
|
|
2
|
-
import { effectScope as Ps, ref as ks, shallowRef as Fs, computed as gt, watch as Rn, isRef as Ms, defineComponent as Zn, getCurrentInstance as Nt, h as
|
|
3
|
-
import Ks, { ElMessage as
|
|
2
|
+
import { effectScope as Ps, ref as ks, shallowRef as Fs, computed as gt, watch as Rn, isRef as Ms, defineComponent as Zn, getCurrentInstance as Nt, h as va, Fragment as he, inject as Us, onMounted as Bs, onUnmounted as xs, createVNode as D, Text as Gs, resolveComponent as B, createBlock as z, openBlock as U, withCtx as P, createElementVNode as R, createElementBlock as Q, renderList as Qe, createTextVNode as re, toDisplayString as Z, createCommentVNode as fe, Transition as Vs, normalizeClass as ya, resolveDynamicComponent as $s, withDirectives as Na, withModifiers as Ws, normalizeStyle as Pn, vShow as Ta, mergeProps as Ys, renderSlot as Hs } from "vue";
|
|
3
|
+
import Ks, { ElMessage as vr, ElMessageBox as js, ElNotification as qs } from "element-plus";
|
|
4
4
|
import * as Xs from "@element-plus/icons-vue";
|
|
5
5
|
import "element-plus/dist/index.css";
|
|
6
6
|
import "element-plus/theme-chalk/dark/css-vars.css";
|
|
@@ -180,7 +180,7 @@ function er(e, t) {
|
|
|
180
180
|
}
|
|
181
181
|
typeof Promise > "u" && require("lie/polyfill");
|
|
182
182
|
const F = Promise;
|
|
183
|
-
function
|
|
183
|
+
function q(e, t) {
|
|
184
184
|
t && e.then(
|
|
185
185
|
function(n) {
|
|
186
186
|
t(null, n);
|
|
@@ -419,7 +419,7 @@ function _o(e, t) {
|
|
|
419
419
|
});
|
|
420
420
|
}).catch(s);
|
|
421
421
|
});
|
|
422
|
-
return
|
|
422
|
+
return q(r, t), r;
|
|
423
423
|
}
|
|
424
424
|
function mo(e, t) {
|
|
425
425
|
var n = this, r = new F(function(a, s) {
|
|
@@ -453,7 +453,7 @@ function mo(e, t) {
|
|
|
453
453
|
});
|
|
454
454
|
}).catch(s);
|
|
455
455
|
});
|
|
456
|
-
return
|
|
456
|
+
return q(r, t), r;
|
|
457
457
|
}
|
|
458
458
|
function ho(e, t, n) {
|
|
459
459
|
var r = this;
|
|
@@ -486,7 +486,7 @@ function ho(e, t, n) {
|
|
|
486
486
|
});
|
|
487
487
|
}).catch(o);
|
|
488
488
|
});
|
|
489
|
-
return
|
|
489
|
+
return q(a, n), a;
|
|
490
490
|
}
|
|
491
491
|
function go(e, t) {
|
|
492
492
|
var n = this;
|
|
@@ -514,7 +514,7 @@ function go(e, t) {
|
|
|
514
514
|
});
|
|
515
515
|
}).catch(s);
|
|
516
516
|
});
|
|
517
|
-
return
|
|
517
|
+
return q(r, t), r;
|
|
518
518
|
}
|
|
519
519
|
function po(e) {
|
|
520
520
|
var t = this, n = new F(function(r, a) {
|
|
@@ -538,7 +538,7 @@ function po(e) {
|
|
|
538
538
|
});
|
|
539
539
|
}).catch(a);
|
|
540
540
|
});
|
|
541
|
-
return
|
|
541
|
+
return q(n, e), n;
|
|
542
542
|
}
|
|
543
543
|
function Eo(e) {
|
|
544
544
|
var t = this, n = new F(function(r, a) {
|
|
@@ -561,7 +561,7 @@ function Eo(e) {
|
|
|
561
561
|
});
|
|
562
562
|
}).catch(a);
|
|
563
563
|
});
|
|
564
|
-
return
|
|
564
|
+
return q(n, e), n;
|
|
565
565
|
}
|
|
566
566
|
function So(e, t) {
|
|
567
567
|
var n = this, r = new F(function(a, s) {
|
|
@@ -593,7 +593,7 @@ function So(e, t) {
|
|
|
593
593
|
});
|
|
594
594
|
}).catch(s);
|
|
595
595
|
});
|
|
596
|
-
return
|
|
596
|
+
return q(r, t), r;
|
|
597
597
|
}
|
|
598
598
|
function bo(e) {
|
|
599
599
|
var t = this, n = new F(function(r, a) {
|
|
@@ -621,9 +621,9 @@ function bo(e) {
|
|
|
621
621
|
});
|
|
622
622
|
}).catch(a);
|
|
623
623
|
});
|
|
624
|
-
return
|
|
624
|
+
return q(n, e), n;
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function Ao(e, t) {
|
|
627
627
|
t = tr.apply(this, arguments);
|
|
628
628
|
var n = this.config();
|
|
629
629
|
e = typeof e != "function" && e || {}, e.name || (e.name = e.name || n.name, e.storeName = e.storeName || n.storeName);
|
|
@@ -650,21 +650,21 @@ function vo(e, t) {
|
|
|
650
650
|
p._dbInfo.db = null, p._dbInfo.version = l;
|
|
651
651
|
}
|
|
652
652
|
return new F((m, p) => {
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
},
|
|
657
|
-
var E =
|
|
653
|
+
const v = lt.open(e.name, l);
|
|
654
|
+
v.onerror = (E) => {
|
|
655
|
+
v.result.close(), p(E);
|
|
656
|
+
}, v.onupgradeneeded = () => {
|
|
657
|
+
var E = v.result;
|
|
658
658
|
E.deleteObjectStore(e.storeName);
|
|
659
|
-
},
|
|
660
|
-
const E =
|
|
659
|
+
}, v.onsuccess = () => {
|
|
660
|
+
const E = v.result;
|
|
661
661
|
E.close(), m(E);
|
|
662
662
|
};
|
|
663
663
|
}).then((m) => {
|
|
664
664
|
c.db = m;
|
|
665
665
|
for (let p = 0; p < f.length; p++) {
|
|
666
|
-
const
|
|
667
|
-
|
|
666
|
+
const v = f[p];
|
|
667
|
+
v._dbInfo.db = m, Fn(v._dbInfo);
|
|
668
668
|
}
|
|
669
669
|
}).catch((m) => {
|
|
670
670
|
throw (Mn(e, m) || F.resolve()).catch(() => {
|
|
@@ -679,20 +679,20 @@ function vo(e, t) {
|
|
|
679
679
|
m._dbInfo.db = null;
|
|
680
680
|
}
|
|
681
681
|
return new F((m, p) => {
|
|
682
|
-
var
|
|
683
|
-
|
|
684
|
-
const E =
|
|
685
|
-
E && E.close(), p(
|
|
686
|
-
},
|
|
687
|
-
},
|
|
688
|
-
const E =
|
|
682
|
+
var v = lt.deleteDatabase(e.name);
|
|
683
|
+
v.onerror = () => {
|
|
684
|
+
const E = v.result;
|
|
685
|
+
E && E.close(), p(v.error);
|
|
686
|
+
}, v.onblocked = () => {
|
|
687
|
+
}, v.onsuccess = () => {
|
|
688
|
+
const E = v.result;
|
|
689
689
|
E && E.close(), m(E);
|
|
690
690
|
};
|
|
691
691
|
}).then((m) => {
|
|
692
692
|
l.db = m;
|
|
693
693
|
for (var p = 0; p < c.length; p++) {
|
|
694
|
-
const
|
|
695
|
-
Fn(
|
|
694
|
+
const v = c[p];
|
|
695
|
+
Fn(v._dbInfo);
|
|
696
696
|
}
|
|
697
697
|
}).catch((m) => {
|
|
698
698
|
throw (Mn(e, m) || F.resolve()).catch(() => {
|
|
@@ -700,9 +700,9 @@ function vo(e, t) {
|
|
|
700
700
|
});
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
|
-
return
|
|
703
|
+
return q(a, t), a;
|
|
704
704
|
}
|
|
705
|
-
var
|
|
705
|
+
var vo = {
|
|
706
706
|
_driver: "asyncStorage",
|
|
707
707
|
_initStorage: fo,
|
|
708
708
|
_support: ro(),
|
|
@@ -714,7 +714,7 @@ var Ao = {
|
|
|
714
714
|
length: Eo,
|
|
715
715
|
key: So,
|
|
716
716
|
keys: bo,
|
|
717
|
-
dropInstance:
|
|
717
|
+
dropInstance: Ao
|
|
718
718
|
};
|
|
719
719
|
function yo() {
|
|
720
720
|
return typeof openDatabase == "function";
|
|
@@ -891,7 +891,7 @@ function Co(e, t) {
|
|
|
891
891
|
});
|
|
892
892
|
}).catch(s);
|
|
893
893
|
});
|
|
894
|
-
return
|
|
894
|
+
return q(r, t), r;
|
|
895
895
|
}
|
|
896
896
|
function Lo(e, t) {
|
|
897
897
|
var n = this, r = new F(function(a, s) {
|
|
@@ -905,11 +905,11 @@ function Lo(e, t) {
|
|
|
905
905
|
[],
|
|
906
906
|
function(l, c) {
|
|
907
907
|
for (var f = c.rows, u = f.length, m = 0; m < u; m++) {
|
|
908
|
-
var p = f.item(m),
|
|
909
|
-
if (
|
|
910
|
-
|
|
911
|
-
)),
|
|
912
|
-
a(
|
|
908
|
+
var p = f.item(m), v = p.value;
|
|
909
|
+
if (v && (v = o.serializer.deserialize(
|
|
910
|
+
v
|
|
911
|
+
)), v = e(v, p.key, m + 1), v !== void 0) {
|
|
912
|
+
a(v);
|
|
913
913
|
return;
|
|
914
914
|
}
|
|
915
915
|
}
|
|
@@ -922,7 +922,7 @@ function Lo(e, t) {
|
|
|
922
922
|
});
|
|
923
923
|
}).catch(s);
|
|
924
924
|
});
|
|
925
|
-
return
|
|
925
|
+
return q(r, t), r;
|
|
926
926
|
}
|
|
927
927
|
function Wa(e, t, n, r) {
|
|
928
928
|
var a = this;
|
|
@@ -942,8 +942,8 @@ function Wa(e, t, n, r) {
|
|
|
942
942
|
function() {
|
|
943
943
|
o(l);
|
|
944
944
|
},
|
|
945
|
-
function(p,
|
|
946
|
-
i(
|
|
945
|
+
function(p, v) {
|
|
946
|
+
i(v);
|
|
947
947
|
}
|
|
948
948
|
);
|
|
949
949
|
},
|
|
@@ -967,7 +967,7 @@ function Wa(e, t, n, r) {
|
|
|
967
967
|
});
|
|
968
968
|
}).catch(i);
|
|
969
969
|
});
|
|
970
|
-
return
|
|
970
|
+
return q(s, n), s;
|
|
971
971
|
}
|
|
972
972
|
function wo(e, t, n) {
|
|
973
973
|
return Wa.apply(this, [e, t, n, 1]);
|
|
@@ -994,7 +994,7 @@ function Do(e, t) {
|
|
|
994
994
|
});
|
|
995
995
|
}).catch(s);
|
|
996
996
|
});
|
|
997
|
-
return
|
|
997
|
+
return q(r, t), r;
|
|
998
998
|
}
|
|
999
999
|
function Ro(e) {
|
|
1000
1000
|
var t = this, n = new F(function(r, a) {
|
|
@@ -1016,7 +1016,7 @@ function Ro(e) {
|
|
|
1016
1016
|
});
|
|
1017
1017
|
}).catch(a);
|
|
1018
1018
|
});
|
|
1019
|
-
return
|
|
1019
|
+
return q(n, e), n;
|
|
1020
1020
|
}
|
|
1021
1021
|
function Po(e) {
|
|
1022
1022
|
var t = this, n = new F(function(r, a) {
|
|
@@ -1039,7 +1039,7 @@ function Po(e) {
|
|
|
1039
1039
|
});
|
|
1040
1040
|
}).catch(a);
|
|
1041
1041
|
});
|
|
1042
|
-
return
|
|
1042
|
+
return q(n, e), n;
|
|
1043
1043
|
}
|
|
1044
1044
|
function ko(e, t) {
|
|
1045
1045
|
var n = this, r = new F(function(a, s) {
|
|
@@ -1062,7 +1062,7 @@ function ko(e, t) {
|
|
|
1062
1062
|
});
|
|
1063
1063
|
}).catch(s);
|
|
1064
1064
|
});
|
|
1065
|
-
return
|
|
1065
|
+
return q(r, t), r;
|
|
1066
1066
|
}
|
|
1067
1067
|
function Fo(e) {
|
|
1068
1068
|
var t = this, n = new F(function(r, a) {
|
|
@@ -1086,7 +1086,7 @@ function Fo(e) {
|
|
|
1086
1086
|
});
|
|
1087
1087
|
}).catch(a);
|
|
1088
1088
|
});
|
|
1089
|
-
return
|
|
1089
|
+
return q(n, e), n;
|
|
1090
1090
|
}
|
|
1091
1091
|
function Mo(e) {
|
|
1092
1092
|
return new F(function(t, n) {
|
|
@@ -1130,12 +1130,12 @@ function Uo(e, t) {
|
|
|
1130
1130
|
s.db.transaction(
|
|
1131
1131
|
function(l) {
|
|
1132
1132
|
function c(p) {
|
|
1133
|
-
return new F(function(
|
|
1133
|
+
return new F(function(v, E) {
|
|
1134
1134
|
l.executeSql(
|
|
1135
1135
|
`DROP TABLE IF EXISTS ${p}`,
|
|
1136
1136
|
[],
|
|
1137
1137
|
function() {
|
|
1138
|
-
|
|
1138
|
+
v();
|
|
1139
1139
|
},
|
|
1140
1140
|
function(L, h) {
|
|
1141
1141
|
E(h);
|
|
@@ -1158,7 +1158,7 @@ function Uo(e, t) {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
);
|
|
1160
1160
|
});
|
|
1161
|
-
}) : a = F.reject("Invalid arguments"),
|
|
1161
|
+
}) : a = F.reject("Invalid arguments"), q(a, t), a;
|
|
1162
1162
|
}
|
|
1163
1163
|
var Bo = {
|
|
1164
1164
|
_driver: "webSQLStorage",
|
|
@@ -1211,7 +1211,7 @@ function Wo(e) {
|
|
|
1211
1211
|
s.indexOf(r) === 0 && localStorage.removeItem(s);
|
|
1212
1212
|
}
|
|
1213
1213
|
});
|
|
1214
|
-
return
|
|
1214
|
+
return q(n, e), n;
|
|
1215
1215
|
}
|
|
1216
1216
|
function Yo(e, t) {
|
|
1217
1217
|
var n = this;
|
|
@@ -1220,7 +1220,7 @@ function Yo(e, t) {
|
|
|
1220
1220
|
var a = n._dbInfo, s = localStorage.getItem(a.keyPrefix + e);
|
|
1221
1221
|
return s && (s = a.serializer.deserialize(s)), s;
|
|
1222
1222
|
});
|
|
1223
|
-
return
|
|
1223
|
+
return q(r, t), r;
|
|
1224
1224
|
}
|
|
1225
1225
|
function Ho(e, t) {
|
|
1226
1226
|
var n = this, r = n.ready().then(function() {
|
|
@@ -1237,7 +1237,7 @@ function Ho(e, t) {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
});
|
|
1240
|
-
return
|
|
1240
|
+
return q(r, t), r;
|
|
1241
1241
|
}
|
|
1242
1242
|
function Ko(e, t) {
|
|
1243
1243
|
var n = this, r = n.ready().then(function() {
|
|
@@ -1249,7 +1249,7 @@ function Ko(e, t) {
|
|
|
1249
1249
|
}
|
|
1250
1250
|
return s && (s = s.substring(a.keyPrefix.length)), s;
|
|
1251
1251
|
});
|
|
1252
|
-
return
|
|
1252
|
+
return q(r, t), r;
|
|
1253
1253
|
}
|
|
1254
1254
|
function jo(e) {
|
|
1255
1255
|
var t = this, n = t.ready().then(function() {
|
|
@@ -1259,13 +1259,13 @@ function jo(e) {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
return s;
|
|
1261
1261
|
});
|
|
1262
|
-
return
|
|
1262
|
+
return q(n, e), n;
|
|
1263
1263
|
}
|
|
1264
1264
|
function qo(e) {
|
|
1265
1265
|
var t = this, n = t.keys().then(function(r) {
|
|
1266
1266
|
return r.length;
|
|
1267
1267
|
});
|
|
1268
|
-
return
|
|
1268
|
+
return q(n, e), n;
|
|
1269
1269
|
}
|
|
1270
1270
|
function Xo(e, t) {
|
|
1271
1271
|
var n = this;
|
|
@@ -1274,7 +1274,7 @@ function Xo(e, t) {
|
|
|
1274
1274
|
var a = n._dbInfo;
|
|
1275
1275
|
localStorage.removeItem(a.keyPrefix + e);
|
|
1276
1276
|
});
|
|
1277
|
-
return
|
|
1277
|
+
return q(r, t), r;
|
|
1278
1278
|
}
|
|
1279
1279
|
function Qo(e, t, n) {
|
|
1280
1280
|
var r = this;
|
|
@@ -1296,7 +1296,7 @@ function Qo(e, t, n) {
|
|
|
1296
1296
|
});
|
|
1297
1297
|
});
|
|
1298
1298
|
});
|
|
1299
|
-
return
|
|
1299
|
+
return q(a, n), a;
|
|
1300
1300
|
}
|
|
1301
1301
|
function Jo(e, t) {
|
|
1302
1302
|
if (t = tr.apply(this, arguments), e = typeof e != "function" && e || {}, !e.name) {
|
|
@@ -1311,7 +1311,7 @@ function Jo(e, t) {
|
|
|
1311
1311
|
var i = localStorage.key(o);
|
|
1312
1312
|
i.indexOf(s) === 0 && localStorage.removeItem(i);
|
|
1313
1313
|
}
|
|
1314
|
-
}) : a = F.reject("Invalid arguments"),
|
|
1314
|
+
}) : a = F.reject("Invalid arguments"), q(a, t), a;
|
|
1315
1315
|
}
|
|
1316
1316
|
var zo = {
|
|
1317
1317
|
_driver: "localStorageWrapper",
|
|
@@ -1339,14 +1339,14 @@ const Zo = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
|
|
|
1339
1339
|
}, Ha = Array.isArray || function(e) {
|
|
1340
1340
|
return Object.prototype.toString.call(e) === "[object Array]";
|
|
1341
1341
|
}, pt = {}, Or = {}, it = {
|
|
1342
|
-
INDEXEDDB:
|
|
1342
|
+
INDEXEDDB: vo,
|
|
1343
1343
|
WEBSQL: Bo,
|
|
1344
1344
|
LOCALSTORAGE: zo
|
|
1345
1345
|
}, ti = [
|
|
1346
1346
|
it.INDEXEDDB._driver,
|
|
1347
1347
|
it.WEBSQL._driver,
|
|
1348
1348
|
it.LOCALSTORAGE._driver
|
|
1349
|
-
], Wt = ["dropInstance"],
|
|
1349
|
+
], Wt = ["dropInstance"], An = [
|
|
1350
1350
|
"clear",
|
|
1351
1351
|
"getItem",
|
|
1352
1352
|
"iterate",
|
|
@@ -1376,7 +1376,7 @@ function ri(e, t) {
|
|
|
1376
1376
|
});
|
|
1377
1377
|
};
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function vn() {
|
|
1380
1380
|
for (let e = 1; e < arguments.length; e++) {
|
|
1381
1381
|
const t = arguments[e];
|
|
1382
1382
|
if (t)
|
|
@@ -1392,7 +1392,7 @@ class or {
|
|
|
1392
1392
|
const r = it[n], a = r._driver;
|
|
1393
1393
|
this[n] = a, pt[a] || this.defineDriver(r);
|
|
1394
1394
|
}
|
|
1395
|
-
this._defaultConfig =
|
|
1395
|
+
this._defaultConfig = vn({}, ni), this._config = vn({}, this._defaultConfig, t), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(() => {
|
|
1396
1396
|
});
|
|
1397
1397
|
}
|
|
1398
1398
|
// Set any config values for localForage; can be called anytime before
|
|
@@ -1425,13 +1425,13 @@ class or {
|
|
|
1425
1425
|
o(l);
|
|
1426
1426
|
return;
|
|
1427
1427
|
}
|
|
1428
|
-
const c =
|
|
1428
|
+
const c = An.concat("_initStorage");
|
|
1429
1429
|
for (let m = 0, p = c.length; m < p; m++) {
|
|
1430
|
-
const
|
|
1430
|
+
const v = c[m];
|
|
1431
1431
|
if ((!ei(
|
|
1432
1432
|
Wt,
|
|
1433
|
-
|
|
1434
|
-
) || t[
|
|
1433
|
+
v
|
|
1434
|
+
) || t[v]) && typeof t[v] != "function") {
|
|
1435
1435
|
o(l);
|
|
1436
1436
|
return;
|
|
1437
1437
|
}
|
|
@@ -1439,16 +1439,16 @@ class or {
|
|
|
1439
1439
|
(function() {
|
|
1440
1440
|
const m = function(p) {
|
|
1441
1441
|
return function() {
|
|
1442
|
-
const
|
|
1442
|
+
const v = new Error(
|
|
1443
1443
|
`Method ${p} is not implemented by the current driver`
|
|
1444
|
-
), E = F.reject(
|
|
1445
|
-
return
|
|
1444
|
+
), E = F.reject(v);
|
|
1445
|
+
return q(
|
|
1446
1446
|
E,
|
|
1447
1447
|
arguments[arguments.length - 1]
|
|
1448
1448
|
), E;
|
|
1449
1449
|
};
|
|
1450
1450
|
};
|
|
1451
|
-
for (let p = 0,
|
|
1451
|
+
for (let p = 0, v = Wt.length; p < v; p++) {
|
|
1452
1452
|
const E = Wt[p];
|
|
1453
1453
|
t[E] || (t[E] = m(
|
|
1454
1454
|
E
|
|
@@ -1495,8 +1495,8 @@ class or {
|
|
|
1495
1495
|
let u = 0;
|
|
1496
1496
|
function m() {
|
|
1497
1497
|
for (; u < f.length; ) {
|
|
1498
|
-
let
|
|
1499
|
-
return u++, a._dbInfo = null, a._ready = null, a.getDriver(
|
|
1498
|
+
let v = f[u];
|
|
1499
|
+
return u++, a._dbInfo = null, a._ready = null, a.getDriver(v).then(i).catch(m);
|
|
1500
1500
|
}
|
|
1501
1501
|
o();
|
|
1502
1502
|
const p = new Error(
|
|
@@ -1523,7 +1523,7 @@ class or {
|
|
|
1523
1523
|
return !!Or[t];
|
|
1524
1524
|
}
|
|
1525
1525
|
_extend(t) {
|
|
1526
|
-
|
|
1526
|
+
vn(this, t);
|
|
1527
1527
|
}
|
|
1528
1528
|
_getSupportedDrivers(t) {
|
|
1529
1529
|
const n = [];
|
|
@@ -1534,8 +1534,8 @@ class or {
|
|
|
1534
1534
|
return n;
|
|
1535
1535
|
}
|
|
1536
1536
|
_wrapLibraryMethodsWithReady() {
|
|
1537
|
-
for (let t = 0, n =
|
|
1538
|
-
ri(this,
|
|
1537
|
+
for (let t = 0, n = An.length; t < n; t++)
|
|
1538
|
+
ri(this, An[t]);
|
|
1539
1539
|
}
|
|
1540
1540
|
createInstance(t) {
|
|
1541
1541
|
return new or(t);
|
|
@@ -1815,14 +1815,14 @@ const Tt = De("cloudSdkQiankunStore", {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
});
|
|
1817
1817
|
/*!
|
|
1818
|
-
* shared v11.1.
|
|
1818
|
+
* shared v11.1.6
|
|
1819
1819
|
* (c) 2025 kazuya kawaguchi
|
|
1820
1820
|
* Released under the MIT License.
|
|
1821
1821
|
*/
|
|
1822
|
-
const
|
|
1822
|
+
const ve = typeof window < "u";
|
|
1823
1823
|
let ge, Je;
|
|
1824
1824
|
if (process.env.NODE_ENV !== "production") {
|
|
1825
|
-
const e =
|
|
1825
|
+
const e = ve && window.performance;
|
|
1826
1826
|
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
1827
1827
|
e.clearMeasures && (ge = (t) => {
|
|
1828
1828
|
e.mark(t);
|
|
@@ -1834,17 +1834,17 @@ const _i = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
1834
1834
|
function Qt(e, ...t) {
|
|
1835
1835
|
return t.length === 1 && V(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(_i, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
1836
1836
|
}
|
|
1837
|
-
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), di = (e, t, n) => mi({ l: e, k: t, s: n }), mi = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ae = (e) => typeof e == "number" && isFinite(e), hi = (e) => ir(e) === "[object Date]", ct = (e) => ir(e) === "[object RegExp]", Jt = (e) => G(e) && Object.keys(e).length === 0, ie = Object.assign, gi = Object.create,
|
|
1837
|
+
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), di = (e, t, n) => mi({ l: e, k: t, s: n }), mi = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ae = (e) => typeof e == "number" && isFinite(e), hi = (e) => ir(e) === "[object Date]", ct = (e) => ir(e) === "[object RegExp]", Jt = (e) => G(e) && Object.keys(e).length === 0, ie = Object.assign, gi = Object.create, j = (e = null) => gi(e);
|
|
1838
1838
|
let Ir;
|
|
1839
|
-
const qe = () => Ir || (Ir = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global :
|
|
1839
|
+
const qe = () => Ir || (Ir = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : j());
|
|
1840
1840
|
function Cr(e) {
|
|
1841
1841
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1842
1842
|
}
|
|
1843
1843
|
const pi = Object.prototype.hasOwnProperty;
|
|
1844
|
-
function
|
|
1844
|
+
function Ae(e, t) {
|
|
1845
1845
|
return pi.call(e, t);
|
|
1846
1846
|
}
|
|
1847
|
-
const
|
|
1847
|
+
const J = Array.isArray, X = (e) => typeof e == "function", C = (e) => typeof e == "string", $ = (e) => typeof e == "boolean", V = (e) => e !== null && typeof e == "object", Ei = (e) => V(e) && X(e.then) && X(e.catch), Ka = Object.prototype.toString, ir = (e) => Ka.call(e), G = (e) => ir(e) === "[object Object]", Si = (e) => e == null ? "" : J(e) || G(e) && e.toString === Ka ? JSON.stringify(e, null, 2) : String(e);
|
|
1848
1848
|
function lr(e, t = "") {
|
|
1849
1849
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
1850
1850
|
}
|
|
@@ -1877,7 +1877,7 @@ function bi(e, t = 0, n = e.length) {
|
|
|
1877
1877
|
return s.join(`
|
|
1878
1878
|
`);
|
|
1879
1879
|
}
|
|
1880
|
-
function
|
|
1880
|
+
function Ai(e, t) {
|
|
1881
1881
|
}
|
|
1882
1882
|
const wr = {};
|
|
1883
1883
|
function cr(e) {
|
|
@@ -1900,7 +1900,7 @@ function ur() {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
};
|
|
1902
1902
|
}
|
|
1903
|
-
const xt = (e) => !V(e) ||
|
|
1903
|
+
const xt = (e) => !V(e) || J(e);
|
|
1904
1904
|
function Yt(e, t) {
|
|
1905
1905
|
if (xt(e) || xt(t))
|
|
1906
1906
|
throw new Error("Invalid value");
|
|
@@ -1908,16 +1908,16 @@ function Yt(e, t) {
|
|
|
1908
1908
|
for (; n.length; ) {
|
|
1909
1909
|
const { src: r, des: a } = n.pop();
|
|
1910
1910
|
Object.keys(r).forEach((s) => {
|
|
1911
|
-
s !== "__proto__" && (V(r[s]) && !V(a[s]) && (a[s] = Array.isArray(r[s]) ? [] :
|
|
1911
|
+
s !== "__proto__" && (V(r[s]) && !V(a[s]) && (a[s] = Array.isArray(r[s]) ? [] : j()), xt(a[s]) || xt(r[s]) ? a[s] = r[s] : n.push({ src: r[s], des: a[s] }));
|
|
1912
1912
|
});
|
|
1913
1913
|
}
|
|
1914
1914
|
}
|
|
1915
1915
|
/*!
|
|
1916
|
-
* message-compiler v11.1.
|
|
1916
|
+
* message-compiler v11.1.6
|
|
1917
1917
|
* (c) 2025 kazuya kawaguchi
|
|
1918
1918
|
* Released under the MIT License.
|
|
1919
1919
|
*/
|
|
1920
|
-
function
|
|
1920
|
+
function vi(e, t, n) {
|
|
1921
1921
|
return { line: e, column: t, offset: n };
|
|
1922
1922
|
}
|
|
1923
1923
|
function Gn(e, t, n) {
|
|
@@ -1978,22 +1978,22 @@ const Oi = /<\/?[\w\s="/.':;#-\/]+>/, Ii = (e) => Oi.test(e), Ce = " ", Ci = "\r
|
|
|
1978
1978
|
function Di(e) {
|
|
1979
1979
|
const t = e;
|
|
1980
1980
|
let n = 0, r = 1, a = 1, s = 0;
|
|
1981
|
-
const o = (
|
|
1981
|
+
const o = (A) => t[A] === Ci && t[A + 1] === ce, i = (A) => t[A] === ce, l = (A) => t[A] === wi, c = (A) => t[A] === Li, f = (A) => o(A) || i(A) || l(A) || c(A), u = () => n, m = () => r, p = () => a, v = () => s, E = (A) => o(A) || l(A) || c(A) ? ce : t[A], L = () => E(n), h = () => E(n + s);
|
|
1982
1982
|
function g() {
|
|
1983
1983
|
return s = 0, f(n) && (r++, a = 0), o(n) && n++, n++, a++, t[n];
|
|
1984
1984
|
}
|
|
1985
|
-
function
|
|
1985
|
+
function T() {
|
|
1986
1986
|
return o(n + s) && s++, s++, t[n + s];
|
|
1987
1987
|
}
|
|
1988
1988
|
function b() {
|
|
1989
1989
|
n = 0, r = 1, a = 1, s = 0;
|
|
1990
1990
|
}
|
|
1991
|
-
function I(
|
|
1992
|
-
s =
|
|
1991
|
+
function I(A = 0) {
|
|
1992
|
+
s = A;
|
|
1993
1993
|
}
|
|
1994
1994
|
function w() {
|
|
1995
|
-
const
|
|
1996
|
-
for (;
|
|
1995
|
+
const A = n + s;
|
|
1996
|
+
for (; A !== n; )
|
|
1997
1997
|
g();
|
|
1998
1998
|
s = 0;
|
|
1999
1999
|
}
|
|
@@ -2001,12 +2001,12 @@ function Di(e) {
|
|
|
2001
2001
|
index: u,
|
|
2002
2002
|
line: m,
|
|
2003
2003
|
column: p,
|
|
2004
|
-
peekOffset:
|
|
2004
|
+
peekOffset: v,
|
|
2005
2005
|
charAt: E,
|
|
2006
2006
|
currentChar: L,
|
|
2007
2007
|
currentPeek: h,
|
|
2008
2008
|
next: g,
|
|
2009
|
-
peek:
|
|
2009
|
+
peek: T,
|
|
2010
2010
|
reset: b,
|
|
2011
2011
|
resetPeek: I,
|
|
2012
2012
|
skipToPeek: w
|
|
@@ -2014,7 +2014,7 @@ function Di(e) {
|
|
|
2014
2014
|
}
|
|
2015
2015
|
const Fe = void 0, Ri = ".", Dr = "'", Pi = "tokenizer";
|
|
2016
2016
|
function ki(e, t = {}) {
|
|
2017
|
-
const n = t.location !== !1, r = Di(e), a = () => r.index(), s = () =>
|
|
2017
|
+
const n = t.location !== !1, r = Di(e), a = () => r.index(), s = () => vi(r.line(), r.column(), r.index()), o = s(), i = a(), l = {
|
|
2018
2018
|
currentType: 13,
|
|
2019
2019
|
offset: i,
|
|
2020
2020
|
startLoc: o,
|
|
@@ -2027,27 +2027,27 @@ function ki(e, t = {}) {
|
|
|
2027
2027
|
inLinked: !1,
|
|
2028
2028
|
text: ""
|
|
2029
2029
|
}, c = () => l, { onError: f } = t;
|
|
2030
|
-
function u(_, d, y, ...
|
|
2031
|
-
const
|
|
2030
|
+
function u(_, d, y, ...k) {
|
|
2031
|
+
const ee = c();
|
|
2032
2032
|
if (d.column += y, d.offset += y, f) {
|
|
2033
|
-
const
|
|
2033
|
+
const te = n ? Gn(ee.startLoc, d) : null, W = ft(_, te, {
|
|
2034
2034
|
domain: Pi,
|
|
2035
|
-
args:
|
|
2035
|
+
args: k
|
|
2036
2036
|
});
|
|
2037
2037
|
f(W);
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
2040
|
function m(_, d, y) {
|
|
2041
2041
|
_.endLoc = s(), _.currentType = d;
|
|
2042
|
-
const
|
|
2043
|
-
return n && (
|
|
2042
|
+
const k = { type: d };
|
|
2043
|
+
return n && (k.loc = Gn(_.startLoc, _.endLoc)), y != null && (k.value = y), k;
|
|
2044
2044
|
}
|
|
2045
2045
|
const p = (_) => m(
|
|
2046
2046
|
_,
|
|
2047
2047
|
13
|
|
2048
2048
|
/* TokenTypes.EOF */
|
|
2049
2049
|
);
|
|
2050
|
-
function
|
|
2050
|
+
function v(_, d) {
|
|
2051
2051
|
return _.currentChar() === d ? (_.next(), d) : (u(M.EXPECTED_TOKEN, s(), 0, d), "");
|
|
2052
2052
|
}
|
|
2053
2053
|
function E(_) {
|
|
@@ -2074,63 +2074,63 @@ function ki(e, t = {}) {
|
|
|
2074
2074
|
const d = _.charCodeAt(0);
|
|
2075
2075
|
return d >= 48 && d <= 57;
|
|
2076
2076
|
}
|
|
2077
|
-
function
|
|
2077
|
+
function T(_, d) {
|
|
2078
2078
|
const { currentType: y } = d;
|
|
2079
2079
|
if (y !== 2)
|
|
2080
2080
|
return !1;
|
|
2081
2081
|
E(_);
|
|
2082
|
-
const
|
|
2083
|
-
return _.resetPeek(),
|
|
2082
|
+
const k = h(_.currentPeek());
|
|
2083
|
+
return _.resetPeek(), k;
|
|
2084
2084
|
}
|
|
2085
2085
|
function b(_, d) {
|
|
2086
2086
|
const { currentType: y } = d;
|
|
2087
2087
|
if (y !== 2)
|
|
2088
2088
|
return !1;
|
|
2089
2089
|
E(_);
|
|
2090
|
-
const
|
|
2091
|
-
return _.resetPeek(),
|
|
2090
|
+
const k = _.currentPeek() === "-" ? _.peek() : _.currentPeek(), ee = g(k);
|
|
2091
|
+
return _.resetPeek(), ee;
|
|
2092
2092
|
}
|
|
2093
2093
|
function I(_, d) {
|
|
2094
2094
|
const { currentType: y } = d;
|
|
2095
2095
|
if (y !== 2)
|
|
2096
2096
|
return !1;
|
|
2097
2097
|
E(_);
|
|
2098
|
-
const
|
|
2099
|
-
return _.resetPeek(),
|
|
2098
|
+
const k = _.currentPeek() === Dr;
|
|
2099
|
+
return _.resetPeek(), k;
|
|
2100
2100
|
}
|
|
2101
2101
|
function w(_, d) {
|
|
2102
2102
|
const { currentType: y } = d;
|
|
2103
2103
|
if (y !== 7)
|
|
2104
2104
|
return !1;
|
|
2105
2105
|
E(_);
|
|
2106
|
-
const
|
|
2107
|
-
return _.resetPeek(),
|
|
2106
|
+
const k = _.currentPeek() === ".";
|
|
2107
|
+
return _.resetPeek(), k;
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function A(_, d) {
|
|
2110
2110
|
const { currentType: y } = d;
|
|
2111
2111
|
if (y !== 8)
|
|
2112
2112
|
return !1;
|
|
2113
2113
|
E(_);
|
|
2114
|
-
const
|
|
2115
|
-
return _.resetPeek(),
|
|
2114
|
+
const k = h(_.currentPeek());
|
|
2115
|
+
return _.resetPeek(), k;
|
|
2116
2116
|
}
|
|
2117
2117
|
function x(_, d) {
|
|
2118
2118
|
const { currentType: y } = d;
|
|
2119
2119
|
if (!(y === 7 || y === 11))
|
|
2120
2120
|
return !1;
|
|
2121
2121
|
E(_);
|
|
2122
|
-
const
|
|
2123
|
-
return _.resetPeek(),
|
|
2122
|
+
const k = _.currentPeek() === ":";
|
|
2123
|
+
return _.resetPeek(), k;
|
|
2124
2124
|
}
|
|
2125
2125
|
function Y(_, d) {
|
|
2126
2126
|
const { currentType: y } = d;
|
|
2127
2127
|
if (y !== 9)
|
|
2128
2128
|
return !1;
|
|
2129
|
-
const
|
|
2130
|
-
const
|
|
2131
|
-
return
|
|
2132
|
-
},
|
|
2133
|
-
return _.resetPeek(),
|
|
2129
|
+
const k = () => {
|
|
2130
|
+
const te = _.currentPeek();
|
|
2131
|
+
return te === "{" ? h(_.peek()) : te === "@" || te === "|" || te === ":" || te === "." || te === Ce || !te ? !1 : te === ce ? (_.peek(), k()) : be(_, !1);
|
|
2132
|
+
}, ee = k();
|
|
2133
|
+
return _.resetPeek(), ee;
|
|
2134
2134
|
}
|
|
2135
2135
|
function se(_) {
|
|
2136
2136
|
E(_);
|
|
@@ -2138,11 +2138,11 @@ function ki(e, t = {}) {
|
|
|
2138
2138
|
return _.resetPeek(), d;
|
|
2139
2139
|
}
|
|
2140
2140
|
function be(_, d = !0) {
|
|
2141
|
-
const y = (
|
|
2141
|
+
const y = (ee = !1, te = "") => {
|
|
2142
2142
|
const W = _.currentPeek();
|
|
2143
|
-
return W === "{" || W === "@" || !W ?
|
|
2144
|
-
},
|
|
2145
|
-
return d && _.resetPeek(),
|
|
2143
|
+
return W === "{" || W === "@" || !W ? ee : W === "|" ? !(te === Ce || te === ce) : W === Ce ? (_.peek(), y(!0, Ce)) : W === ce ? (_.peek(), y(!0, ce)) : !0;
|
|
2144
|
+
}, k = y();
|
|
2145
|
+
return d && _.resetPeek(), k;
|
|
2146
2146
|
}
|
|
2147
2147
|
function oe(_, d) {
|
|
2148
2148
|
const y = _.currentChar();
|
|
@@ -2228,12 +2228,12 @@ function ki(e, t = {}) {
|
|
|
2228
2228
|
return _ !== Dr && _ !== ce;
|
|
2229
2229
|
}
|
|
2230
2230
|
function br(_) {
|
|
2231
|
-
L(_),
|
|
2231
|
+
L(_), v(_, "'");
|
|
2232
2232
|
let d = "", y = "";
|
|
2233
2233
|
for (; d = oe(_, mn); )
|
|
2234
2234
|
d === "\\" ? y += hn(_) : y += d;
|
|
2235
|
-
const
|
|
2236
|
-
return
|
|
2235
|
+
const k = _.currentChar();
|
|
2236
|
+
return k === ce || k === Fe ? (u(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), k === ce && (_.next(), v(_, "'")), y) : (v(_, "'"), y);
|
|
2237
2237
|
}
|
|
2238
2238
|
function hn(_) {
|
|
2239
2239
|
const d = _.currentChar();
|
|
@@ -2250,17 +2250,17 @@ function ki(e, t = {}) {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
2252
2252
|
function Mt(_, d, y) {
|
|
2253
|
-
|
|
2254
|
-
let
|
|
2255
|
-
for (let
|
|
2256
|
-
const
|
|
2257
|
-
if (!
|
|
2258
|
-
u(M.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${d}${
|
|
2253
|
+
v(_, d);
|
|
2254
|
+
let k = "";
|
|
2255
|
+
for (let ee = 0; ee < y; ee++) {
|
|
2256
|
+
const te = Ie(_);
|
|
2257
|
+
if (!te) {
|
|
2258
|
+
u(M.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${d}${k}${_.currentChar()}`);
|
|
2259
2259
|
break;
|
|
2260
2260
|
}
|
|
2261
|
-
|
|
2261
|
+
k += te;
|
|
2262
2262
|
}
|
|
2263
|
-
return `\\${d}${
|
|
2263
|
+
return `\\${d}${k}`;
|
|
2264
2264
|
}
|
|
2265
2265
|
function gn(_) {
|
|
2266
2266
|
return _ !== "{" && _ !== "}" && _ !== Ce && _ !== ce;
|
|
@@ -2280,14 +2280,14 @@ function ki(e, t = {}) {
|
|
|
2280
2280
|
}
|
|
2281
2281
|
function Sn(_) {
|
|
2282
2282
|
const d = (y) => {
|
|
2283
|
-
const
|
|
2284
|
-
return
|
|
2283
|
+
const k = _.currentChar();
|
|
2284
|
+
return k === "{" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === Ce ? y : (y += k, _.next(), d(y));
|
|
2285
2285
|
};
|
|
2286
2286
|
return d("");
|
|
2287
2287
|
}
|
|
2288
2288
|
function dt(_) {
|
|
2289
2289
|
L(_);
|
|
2290
|
-
const d =
|
|
2290
|
+
const d = v(
|
|
2291
2291
|
_,
|
|
2292
2292
|
"|"
|
|
2293
2293
|
/* TokenChars.Pipe */
|
|
@@ -2314,18 +2314,18 @@ function ki(e, t = {}) {
|
|
|
2314
2314
|
case "@":
|
|
2315
2315
|
return d.braceNest > 0 && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), y = We(_, d) || p(d), d.braceNest = 0, y;
|
|
2316
2316
|
default: {
|
|
2317
|
-
let
|
|
2317
|
+
let ee = !0, te = !0, W = !0;
|
|
2318
2318
|
if (se(_))
|
|
2319
2319
|
return d.braceNest > 0 && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), y = m(d, 1, dt(_)), d.braceNest = 0, d.inLinked = !1, y;
|
|
2320
2320
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
2321
2321
|
return u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), d.braceNest = 0, ht(_, d);
|
|
2322
|
-
if (
|
|
2322
|
+
if (ee = T(_, d))
|
|
2323
2323
|
return y = m(d, 4, _n(_)), L(_), y;
|
|
2324
|
-
if (
|
|
2324
|
+
if (te = b(_, d))
|
|
2325
2325
|
return y = m(d, 5, dn(_)), L(_), y;
|
|
2326
2326
|
if (W = I(_, d))
|
|
2327
2327
|
return y = m(d, 6, br(_)), L(_), y;
|
|
2328
|
-
if (!
|
|
2328
|
+
if (!ee && !te && !W)
|
|
2329
2329
|
return y = m(d, 12, pn(_)), u(M.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, y.value), L(_), y;
|
|
2330
2330
|
break;
|
|
2331
2331
|
}
|
|
@@ -2334,16 +2334,16 @@ function ki(e, t = {}) {
|
|
|
2334
2334
|
}
|
|
2335
2335
|
function We(_, d) {
|
|
2336
2336
|
const { currentType: y } = d;
|
|
2337
|
-
let
|
|
2338
|
-
const
|
|
2339
|
-
switch ((y === 7 || y === 8 || y === 11 || y === 9) && (
|
|
2337
|
+
let k = null;
|
|
2338
|
+
const ee = _.currentChar();
|
|
2339
|
+
switch ((y === 7 || y === 8 || y === 11 || y === 9) && (ee === ce || ee === Ce) && u(M.INVALID_LINKED_FORMAT, s(), 0), ee) {
|
|
2340
2340
|
case "@":
|
|
2341
|
-
return _.next(),
|
|
2341
|
+
return _.next(), k = m(
|
|
2342
2342
|
d,
|
|
2343
2343
|
7,
|
|
2344
2344
|
"@"
|
|
2345
2345
|
/* TokenChars.LinkedAlias */
|
|
2346
|
-
), d.inLinked = !0,
|
|
2346
|
+
), d.inLinked = !0, k;
|
|
2347
2347
|
case ".":
|
|
2348
2348
|
return L(_), _.next(), m(
|
|
2349
2349
|
d,
|
|
@@ -2359,7 +2359,7 @@ function ki(e, t = {}) {
|
|
|
2359
2359
|
/* TokenChars.LinkedDelimiter */
|
|
2360
2360
|
);
|
|
2361
2361
|
default:
|
|
2362
|
-
return se(_) ? (
|
|
2362
|
+
return se(_) ? (k = m(d, 1, dt(_)), d.braceNest = 0, d.inLinked = !1, k) : w(_, d) || x(_, d) ? (L(_), We(_, d)) : A(_, d) ? (L(_), m(d, 11, En(_))) : Y(_, d) ? (L(_), ee === "{" ? mt(_, d) || k : m(d, 10, Sn(_))) : (y === 7 && u(M.INVALID_LINKED_FORMAT, s(), 0), d.braceNest = 0, d.inLinked = !1, ht(_, d));
|
|
2363
2363
|
}
|
|
2364
2364
|
}
|
|
2365
2365
|
function ht(_, d) {
|
|
@@ -2394,8 +2394,8 @@ function ki(e, t = {}) {
|
|
|
2394
2394
|
return y;
|
|
2395
2395
|
}
|
|
2396
2396
|
function bn() {
|
|
2397
|
-
const { currentType: _, offset: d, startLoc: y, endLoc:
|
|
2398
|
-
return l.lastType = _, l.lastOffset = d, l.lastStartLoc = y, l.lastEndLoc =
|
|
2397
|
+
const { currentType: _, offset: d, startLoc: y, endLoc: k } = l;
|
|
2398
|
+
return l.lastType = _, l.lastOffset = d, l.lastStartLoc = y, l.lastEndLoc = k, l.offset = a(), l.startLoc = s(), r.currentChar() === Fe ? m(
|
|
2399
2399
|
l,
|
|
2400
2400
|
13
|
|
2401
2401
|
/* TokenTypes.EOF */
|
|
@@ -2424,87 +2424,87 @@ function Ui(e, t, n) {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
function Bi(e = {}) {
|
|
2426
2426
|
const t = e.location !== !1, { onError: n } = e;
|
|
2427
|
-
function r(h, g,
|
|
2427
|
+
function r(h, g, T, b, ...I) {
|
|
2428
2428
|
const w = h.currentPosition();
|
|
2429
2429
|
if (w.offset += b, w.column += b, n) {
|
|
2430
|
-
const
|
|
2430
|
+
const A = t ? Gn(T, w) : null, x = ft(g, A, {
|
|
2431
2431
|
domain: Fi,
|
|
2432
2432
|
args: I
|
|
2433
2433
|
});
|
|
2434
2434
|
n(x);
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
|
-
function a(h, g,
|
|
2437
|
+
function a(h, g, T) {
|
|
2438
2438
|
const b = { type: h };
|
|
2439
|
-
return t && (b.start = g, b.end = g, b.loc = { start:
|
|
2439
|
+
return t && (b.start = g, b.end = g, b.loc = { start: T, end: T }), b;
|
|
2440
2440
|
}
|
|
2441
|
-
function s(h, g,
|
|
2442
|
-
t && (h.end = g, h.loc && (h.loc.end =
|
|
2441
|
+
function s(h, g, T, b) {
|
|
2442
|
+
t && (h.end = g, h.loc && (h.loc.end = T));
|
|
2443
2443
|
}
|
|
2444
2444
|
function o(h, g) {
|
|
2445
|
-
const
|
|
2445
|
+
const T = h.context(), b = a(3, T.offset, T.startLoc);
|
|
2446
2446
|
return b.value = g, s(b, h.currentOffset(), h.currentPosition()), b;
|
|
2447
2447
|
}
|
|
2448
2448
|
function i(h, g) {
|
|
2449
|
-
const
|
|
2449
|
+
const T = h.context(), { lastOffset: b, lastStartLoc: I } = T, w = a(5, b, I);
|
|
2450
2450
|
return w.index = parseInt(g, 10), h.nextToken(), s(w, h.currentOffset(), h.currentPosition()), w;
|
|
2451
2451
|
}
|
|
2452
2452
|
function l(h, g) {
|
|
2453
|
-
const
|
|
2453
|
+
const T = h.context(), { lastOffset: b, lastStartLoc: I } = T, w = a(4, b, I);
|
|
2454
2454
|
return w.key = g, h.nextToken(), s(w, h.currentOffset(), h.currentPosition()), w;
|
|
2455
2455
|
}
|
|
2456
2456
|
function c(h, g) {
|
|
2457
|
-
const
|
|
2457
|
+
const T = h.context(), { lastOffset: b, lastStartLoc: I } = T, w = a(9, b, I);
|
|
2458
2458
|
return w.value = g.replace(Mi, Ui), h.nextToken(), s(w, h.currentOffset(), h.currentPosition()), w;
|
|
2459
2459
|
}
|
|
2460
2460
|
function f(h) {
|
|
2461
|
-
const g = h.nextToken(),
|
|
2462
|
-
return g.type !== 11 ? (r(h, M.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
2461
|
+
const g = h.nextToken(), T = h.context(), { lastOffset: b, lastStartLoc: I } = T, w = a(8, b, I);
|
|
2462
|
+
return g.type !== 11 ? (r(h, M.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), w.value = "", s(w, b, I), {
|
|
2463
2463
|
nextConsumeToken: g,
|
|
2464
2464
|
node: w
|
|
2465
|
-
}) : (g.value == null && r(h, M.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
2465
|
+
}) : (g.value == null && r(h, M.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, ye(g)), w.value = g.value || "", s(w, h.currentOffset(), h.currentPosition()), {
|
|
2466
2466
|
node: w
|
|
2467
2467
|
});
|
|
2468
2468
|
}
|
|
2469
2469
|
function u(h, g) {
|
|
2470
|
-
const
|
|
2470
|
+
const T = h.context(), b = a(7, T.offset, T.startLoc);
|
|
2471
2471
|
return b.value = g, s(b, h.currentOffset(), h.currentPosition()), b;
|
|
2472
2472
|
}
|
|
2473
2473
|
function m(h) {
|
|
2474
|
-
const g = h.context(),
|
|
2474
|
+
const g = h.context(), T = a(6, g.offset, g.startLoc);
|
|
2475
2475
|
let b = h.nextToken();
|
|
2476
2476
|
if (b.type === 8) {
|
|
2477
2477
|
const I = f(h);
|
|
2478
|
-
|
|
2478
|
+
T.modifier = I.node, b = I.nextConsumeToken || h.nextToken();
|
|
2479
2479
|
}
|
|
2480
2480
|
switch (b.type !== 9 && r(h, M.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ye(b)), b = h.nextToken(), b.type === 2 && (b = h.nextToken()), b.type) {
|
|
2481
2481
|
case 10:
|
|
2482
|
-
b.value == null && r(h, M.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ye(b)),
|
|
2482
|
+
b.value == null && r(h, M.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ye(b)), T.key = u(h, b.value || "");
|
|
2483
2483
|
break;
|
|
2484
2484
|
case 4:
|
|
2485
|
-
b.value == null && r(h, M.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ye(b)),
|
|
2485
|
+
b.value == null && r(h, M.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ye(b)), T.key = l(h, b.value || "");
|
|
2486
2486
|
break;
|
|
2487
2487
|
case 5:
|
|
2488
|
-
b.value == null && r(h, M.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ye(b)),
|
|
2488
|
+
b.value == null && r(h, M.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ye(b)), T.key = i(h, b.value || "");
|
|
2489
2489
|
break;
|
|
2490
2490
|
case 6:
|
|
2491
|
-
b.value == null && r(h, M.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ye(b)),
|
|
2491
|
+
b.value == null && r(h, M.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ye(b)), T.key = c(h, b.value || "");
|
|
2492
2492
|
break;
|
|
2493
2493
|
default: {
|
|
2494
2494
|
r(h, M.UNEXPECTED_EMPTY_LINKED_KEY, g.lastStartLoc, 0);
|
|
2495
2495
|
const I = h.context(), w = a(7, I.offset, I.startLoc);
|
|
2496
|
-
return w.value = "", s(w, I.offset, I.startLoc),
|
|
2496
|
+
return w.value = "", s(w, I.offset, I.startLoc), T.key = w, s(T, I.offset, I.startLoc), {
|
|
2497
2497
|
nextConsumeToken: b,
|
|
2498
|
-
node:
|
|
2498
|
+
node: T
|
|
2499
2499
|
};
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
|
-
return s(
|
|
2503
|
-
node:
|
|
2502
|
+
return s(T, h.currentOffset(), h.currentPosition()), {
|
|
2503
|
+
node: T
|
|
2504
2504
|
};
|
|
2505
2505
|
}
|
|
2506
2506
|
function p(h) {
|
|
2507
|
-
const g = h.context(),
|
|
2507
|
+
const g = h.context(), T = g.currentType === 1 ? h.currentOffset() : g.offset, b = g.currentType === 1 ? g.endLoc : g.startLoc, I = a(2, T, b);
|
|
2508
2508
|
I.items = [];
|
|
2509
2509
|
let w = null;
|
|
2510
2510
|
do {
|
|
@@ -2529,27 +2529,27 @@ function Bi(e = {}) {
|
|
|
2529
2529
|
}
|
|
2530
2530
|
}
|
|
2531
2531
|
} while (g.currentType !== 13 && g.currentType !== 1);
|
|
2532
|
-
const
|
|
2533
|
-
return s(I,
|
|
2532
|
+
const A = g.currentType === 1 ? g.lastOffset : h.currentOffset(), x = g.currentType === 1 ? g.lastEndLoc : h.currentPosition();
|
|
2533
|
+
return s(I, A, x), I;
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function v(h, g, T, b) {
|
|
2536
2536
|
const I = h.context();
|
|
2537
2537
|
let w = b.items.length === 0;
|
|
2538
|
-
const
|
|
2539
|
-
|
|
2538
|
+
const A = a(1, g, T);
|
|
2539
|
+
A.cases = [], A.cases.push(b);
|
|
2540
2540
|
do {
|
|
2541
2541
|
const x = p(h);
|
|
2542
|
-
w || (w = x.items.length === 0),
|
|
2542
|
+
w || (w = x.items.length === 0), A.cases.push(x);
|
|
2543
2543
|
} while (I.currentType !== 13);
|
|
2544
|
-
return w && r(h, M.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
2544
|
+
return w && r(h, M.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0), s(A, h.currentOffset(), h.currentPosition()), A;
|
|
2545
2545
|
}
|
|
2546
2546
|
function E(h) {
|
|
2547
|
-
const g = h.context(), { offset:
|
|
2548
|
-
return g.currentType === 13 ? I :
|
|
2547
|
+
const g = h.context(), { offset: T, startLoc: b } = g, I = p(h);
|
|
2548
|
+
return g.currentType === 13 ? I : v(h, T, b, I);
|
|
2549
2549
|
}
|
|
2550
2550
|
function L(h) {
|
|
2551
|
-
const g = ki(h, ie({}, e)),
|
|
2552
|
-
return t && b.loc && (b.loc.source = h), b.body = E(g), e.onCacheKey && (b.cacheKey = e.onCacheKey(h)),
|
|
2551
|
+
const g = ki(h, ie({}, e)), T = g.context(), b = a(0, T.offset, T.startLoc);
|
|
2552
|
+
return t && b.loc && (b.loc.source = h), b.body = E(g), e.onCacheKey && (b.cacheKey = e.onCacheKey(h)), T.currentType !== 13 && r(g, M.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, h[T.offset] || ""), s(b, g.currentOffset(), g.currentPosition()), b;
|
|
2553
2553
|
}
|
|
2554
2554
|
return { parse: L };
|
|
2555
2555
|
}
|
|
@@ -2852,7 +2852,7 @@ function Qi(e, t = {}) {
|
|
|
2852
2852
|
return r ? (s && Vi(i), a && ot(i), { ast: i, code: "" }) : (Gi(i, n), Xi(i, n));
|
|
2853
2853
|
}
|
|
2854
2854
|
/*!
|
|
2855
|
-
* core-base v11.1.
|
|
2855
|
+
* core-base v11.1.6
|
|
2856
2856
|
* (c) 2025 kazuya kawaguchi
|
|
2857
2857
|
* Released under the MIT License.
|
|
2858
2858
|
*/
|
|
@@ -2860,7 +2860,7 @@ function Ji() {
|
|
|
2860
2860
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (qe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (qe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
2861
2861
|
}
|
|
2862
2862
|
function Se(e) {
|
|
2863
|
-
return V(e) && _r(e) === 0 && (
|
|
2863
|
+
return V(e) && _r(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
|
|
2864
2864
|
}
|
|
2865
2865
|
const ja = ["b", "body"];
|
|
2866
2866
|
function zi(e) {
|
|
@@ -2906,7 +2906,7 @@ function rl(e) {
|
|
|
2906
2906
|
function Ve(e, t, n) {
|
|
2907
2907
|
for (let r = 0; r < t.length; r++) {
|
|
2908
2908
|
const a = t[r];
|
|
2909
|
-
if (
|
|
2909
|
+
if (Ae(e, a) && e[a] != null)
|
|
2910
2910
|
return e[a];
|
|
2911
2911
|
}
|
|
2912
2912
|
return n;
|
|
@@ -2961,17 +2961,17 @@ function Vn(e, t) {
|
|
|
2961
2961
|
return Gt(t, n);
|
|
2962
2962
|
case 4: {
|
|
2963
2963
|
const r = t;
|
|
2964
|
-
if (
|
|
2964
|
+
if (Ae(r, "k") && r.k)
|
|
2965
2965
|
return e.interpolate(e.named(r.k));
|
|
2966
|
-
if (
|
|
2966
|
+
if (Ae(r, "key") && r.key)
|
|
2967
2967
|
return e.interpolate(e.named(r.key));
|
|
2968
2968
|
throw Ot(n);
|
|
2969
2969
|
}
|
|
2970
2970
|
case 5: {
|
|
2971
2971
|
const r = t;
|
|
2972
|
-
if (
|
|
2972
|
+
if (Ae(r, "i") && ae(r.i))
|
|
2973
2973
|
return e.interpolate(e.list(r.i));
|
|
2974
|
-
if (
|
|
2974
|
+
if (Ae(r, "index") && ae(r.index))
|
|
2975
2975
|
return e.interpolate(e.list(r.index));
|
|
2976
2976
|
throw Ot(n);
|
|
2977
2977
|
}
|
|
@@ -2992,7 +2992,7 @@ function ol(e, t) {
|
|
|
2992
2992
|
t && Ii(e) && (Qt(sl, { source: e }), void 0);
|
|
2993
2993
|
}
|
|
2994
2994
|
const il = (e) => e;
|
|
2995
|
-
let Vt =
|
|
2995
|
+
let Vt = j();
|
|
2996
2996
|
function ll(e, t = {}) {
|
|
2997
2997
|
let n = !1;
|
|
2998
2998
|
const r = t.onError || Ti;
|
|
@@ -3070,7 +3070,7 @@ let Nn;
|
|
|
3070
3070
|
function Fr(e) {
|
|
3071
3071
|
if (C(e))
|
|
3072
3072
|
return e;
|
|
3073
|
-
if (
|
|
3073
|
+
if (X(e)) {
|
|
3074
3074
|
if (e.resolvedOnce && Nn != null)
|
|
3075
3075
|
return Nn;
|
|
3076
3076
|
if (e.constructor.name === "Function") {
|
|
@@ -3086,7 +3086,7 @@ function Fr(e) {
|
|
|
3086
3086
|
function gl(e, t, n) {
|
|
3087
3087
|
return [.../* @__PURE__ */ new Set([
|
|
3088
3088
|
n,
|
|
3089
|
-
...
|
|
3089
|
+
...J(t) ? t : V(t) ? Object.keys(t) : C(t) ? [t] : [n]
|
|
3090
3090
|
])];
|
|
3091
3091
|
}
|
|
3092
3092
|
function ns(e, t, n) {
|
|
@@ -3096,10 +3096,10 @@ function ns(e, t, n) {
|
|
|
3096
3096
|
if (!s) {
|
|
3097
3097
|
s = [];
|
|
3098
3098
|
let o = [n];
|
|
3099
|
-
for (;
|
|
3099
|
+
for (; J(o); )
|
|
3100
3100
|
o = Mr(s, o, t);
|
|
3101
|
-
const i =
|
|
3102
|
-
o = C(i) ? [i] : i,
|
|
3101
|
+
const i = J(t) || !G(t) ? t : t.default ? t.default : null;
|
|
3102
|
+
o = C(i) ? [i] : i, J(o) && Mr(s, o, !1), a.__localeChainCache.set(r, s);
|
|
3103
3103
|
}
|
|
3104
3104
|
return s;
|
|
3105
3105
|
}
|
|
@@ -3125,7 +3125,7 @@ function El(e, t, n) {
|
|
|
3125
3125
|
if (!e.includes(t) && (r = !0, t)) {
|
|
3126
3126
|
r = t[t.length - 1] !== "!";
|
|
3127
3127
|
const a = t.replace(/!/g, "");
|
|
3128
|
-
e.push(a), (
|
|
3128
|
+
e.push(a), (J(n) || G(n)) && n[a] && (r = n[a]);
|
|
3129
3129
|
}
|
|
3130
3130
|
return r;
|
|
3131
3131
|
}
|
|
@@ -3294,11 +3294,11 @@ const Sl = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
|
3294
3294
|
function bl(e) {
|
|
3295
3295
|
return Sl.test(e);
|
|
3296
3296
|
}
|
|
3297
|
-
function
|
|
3297
|
+
function Al(e) {
|
|
3298
3298
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
3299
3299
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function vl(e) {
|
|
3302
3302
|
if (e == null)
|
|
3303
3303
|
return "o";
|
|
3304
3304
|
switch (e.charCodeAt(0)) {
|
|
@@ -3337,7 +3337,7 @@ function Al(e) {
|
|
|
3337
3337
|
}
|
|
3338
3338
|
function yl(e) {
|
|
3339
3339
|
const t = e.trim();
|
|
3340
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : bl(t) ?
|
|
3340
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : bl(t) ? Al(t) : "*" + t;
|
|
3341
3341
|
}
|
|
3342
3342
|
function Nl(e) {
|
|
3343
3343
|
const t = [];
|
|
@@ -3380,16 +3380,16 @@ function Nl(e) {
|
|
|
3380
3380
|
}
|
|
3381
3381
|
};
|
|
3382
3382
|
function p() {
|
|
3383
|
-
const
|
|
3384
|
-
if (r === 5 &&
|
|
3385
|
-
return n++, i = "\\" +
|
|
3383
|
+
const v = e[n + 1];
|
|
3384
|
+
if (r === 5 && v === "'" || r === 6 && v === '"')
|
|
3385
|
+
return n++, i = "\\" + v, m[
|
|
3386
3386
|
0
|
|
3387
3387
|
/* Actions.APPEND */
|
|
3388
3388
|
](), !0;
|
|
3389
3389
|
}
|
|
3390
3390
|
for (; r !== null; )
|
|
3391
3391
|
if (n++, s = e[n], !(s === "\\" && p())) {
|
|
3392
|
-
if (l =
|
|
3392
|
+
if (l = vl(s), u = $e[r], c = u[l] || u.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (f = m[c[1]], f && (i = s, f() === !1))))
|
|
3393
3393
|
return;
|
|
3394
3394
|
if (r === 7)
|
|
3395
3395
|
return t;
|
|
@@ -3412,13 +3412,13 @@ function Ol(e, t) {
|
|
|
3412
3412
|
if (ts.includes(o) && Se(a))
|
|
3413
3413
|
return null;
|
|
3414
3414
|
const i = a[o];
|
|
3415
|
-
if (i === void 0 ||
|
|
3415
|
+
if (i === void 0 || X(a))
|
|
3416
3416
|
return null;
|
|
3417
3417
|
a = i, s++;
|
|
3418
3418
|
}
|
|
3419
3419
|
return a;
|
|
3420
3420
|
}
|
|
3421
|
-
const
|
|
3421
|
+
const de = {
|
|
3422
3422
|
NOT_FOUND_KEY: 1,
|
|
3423
3423
|
FALLBACK_TO_TRANSLATE: 2,
|
|
3424
3424
|
CANNOT_FORMAT_NUMBER: 3,
|
|
@@ -3427,18 +3427,18 @@ const _e = {
|
|
|
3427
3427
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
3428
3428
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
3429
3429
|
}, Il = 8, Cl = {
|
|
3430
|
-
[
|
|
3431
|
-
[
|
|
3432
|
-
[
|
|
3433
|
-
[
|
|
3434
|
-
[
|
|
3435
|
-
[
|
|
3436
|
-
[
|
|
3430
|
+
[de.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
3431
|
+
[de.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
3432
|
+
[de.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
3433
|
+
[de.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
3434
|
+
[de.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
3435
|
+
[de.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
3436
|
+
[de.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
3437
3437
|
};
|
|
3438
3438
|
function ze(e, ...t) {
|
|
3439
3439
|
return Qt(Cl[e], ...t);
|
|
3440
3440
|
}
|
|
3441
|
-
const Ll = "11.1.
|
|
3441
|
+
const Ll = "11.1.6", zt = -1, Ct = "en-US", jt = "", Br = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
3442
3442
|
function wl() {
|
|
3443
3443
|
return {
|
|
3444
3444
|
upper: (e, t) => t === "text" && C(e) ? e.toUpperCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -3468,9 +3468,9 @@ const xr = (e) => {
|
|
|
3468
3468
|
}, Ml = () => is;
|
|
3469
3469
|
let Gr = 0;
|
|
3470
3470
|
function Ul(e = {}) {
|
|
3471
|
-
const t =
|
|
3472
|
-
process.env.NODE_ENV !== "production" &&
|
|
3473
|
-
const I =
|
|
3471
|
+
const t = X(e.onWarn) ? e.onWarn : Ai, n = C(e.version) ? e.version : Ll, r = C(e.locale) || X(e.locale) ? e.locale : Ct, a = X(r) ? Ct : r, s = J(e.fallbackLocale) || G(e.fallbackLocale) || C(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = G(e.messages) ? e.messages : Tn(a), i = G(e.datetimeFormats) ? e.datetimeFormats : Tn(a), l = G(e.numberFormats) ? e.numberFormats : Tn(a), c = ie(j(), e.modifiers, wl()), f = e.pluralRules || j(), u = X(e.missing) ? e.missing : null, m = $(e.missingWarn) || ct(e.missingWarn) ? e.missingWarn : !0, p = $(e.fallbackWarn) || ct(e.fallbackWarn) ? e.fallbackWarn : !0, v = !!e.fallbackFormat, E = !!e.unresolving, L = X(e.postTranslation) ? e.postTranslation : null, h = G(e.processor) ? e.processor : null, g = $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, b = X(e.messageCompiler) ? e.messageCompiler : rs;
|
|
3472
|
+
process.env.NODE_ENV !== "production" && X(e.messageCompiler) && cr(ze(de.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
3473
|
+
const I = X(e.messageResolver) ? e.messageResolver : as || Tl, w = X(e.localeFallbacker) ? e.localeFallbacker : ss || gl, A = V(e.fallbackContext) ? e.fallbackContext : void 0, x = e, Y = V(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), se = V(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), be = V(x.__meta) ? x.__meta : {};
|
|
3474
3474
|
Gr++;
|
|
3475
3475
|
const oe = {
|
|
3476
3476
|
version: n,
|
|
@@ -3483,22 +3483,22 @@ function Ul(e = {}) {
|
|
|
3483
3483
|
missing: u,
|
|
3484
3484
|
missingWarn: m,
|
|
3485
3485
|
fallbackWarn: p,
|
|
3486
|
-
fallbackFormat:
|
|
3486
|
+
fallbackFormat: v,
|
|
3487
3487
|
unresolving: E,
|
|
3488
3488
|
postTranslation: L,
|
|
3489
3489
|
processor: h,
|
|
3490
3490
|
warnHtmlMessage: g,
|
|
3491
|
-
escapeParameter:
|
|
3491
|
+
escapeParameter: T,
|
|
3492
3492
|
messageCompiler: b,
|
|
3493
3493
|
messageResolver: I,
|
|
3494
3494
|
localeFallbacker: w,
|
|
3495
|
-
fallbackContext:
|
|
3495
|
+
fallbackContext: A,
|
|
3496
3496
|
onWarn: t,
|
|
3497
3497
|
__meta: be
|
|
3498
3498
|
};
|
|
3499
3499
|
return oe.datetimeFormats = i, oe.numberFormats = l, oe.__datetimeFormatters = Y, oe.__numberFormatters = se, process.env.NODE_ENV !== "production" && (oe.__v_emitter = x.__v_emitter != null ? x.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && fl(oe, n, be), oe;
|
|
3500
3500
|
}
|
|
3501
|
-
const Tn = (e) => ({ [e]:
|
|
3501
|
+
const Tn = (e) => ({ [e]: j() });
|
|
3502
3502
|
function Zt(e, t) {
|
|
3503
3503
|
return e instanceof RegExp ? e.test(t) : e;
|
|
3504
3504
|
}
|
|
@@ -3520,7 +3520,7 @@ function mr(e, t, n, r, a) {
|
|
|
3520
3520
|
const i = s(e, n, t, a);
|
|
3521
3521
|
return C(i) ? i : t;
|
|
3522
3522
|
} else
|
|
3523
|
-
return process.env.NODE_ENV !== "production" && ls(r, t) && o(ze(
|
|
3523
|
+
return process.env.NODE_ENV !== "production" && ls(r, t) && o(ze(de.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
3524
3524
|
}
|
|
3525
3525
|
function St(e, t, n) {
|
|
3526
3526
|
const r = e;
|
|
@@ -3545,8 +3545,8 @@ const Vr = typeof Intl < "u", us = {
|
|
|
3545
3545
|
function $r(e, ...t) {
|
|
3546
3546
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
3547
3547
|
if (process.env.NODE_ENV !== "production" && !us.dateTimeFormat)
|
|
3548
|
-
return s(ze(
|
|
3549
|
-
const [l, c, f, u] = $n(...t), m = $(f.missingWarn) ? f.missingWarn : e.missingWarn, p = $(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn,
|
|
3548
|
+
return s(ze(de.CANNOT_FORMAT_DATE)), jt;
|
|
3549
|
+
const [l, c, f, u] = $n(...t), m = $(f.missingWarn) ? f.missingWarn : e.missingWarn, p = $(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, v = !!f.part, E = dr(e, f), L = o(
|
|
3550
3550
|
e,
|
|
3551
3551
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3552
3552
|
a,
|
|
@@ -3554,10 +3554,10 @@ function $r(e, ...t) {
|
|
|
3554
3554
|
);
|
|
3555
3555
|
if (!C(l) || l === "")
|
|
3556
3556
|
return new Intl.DateTimeFormat(E, u).format(c);
|
|
3557
|
-
let h = {}, g,
|
|
3557
|
+
let h = {}, g, T = null, b = E, I = null;
|
|
3558
3558
|
const w = "datetime format";
|
|
3559
3559
|
for (let Y = 0; Y < L.length; Y++) {
|
|
3560
|
-
if (g = I = L[Y], process.env.NODE_ENV !== "production" && E !== g && Zt(p, l) && s(ze(
|
|
3560
|
+
if (g = I = L[Y], process.env.NODE_ENV !== "production" && E !== g && Zt(p, l) && s(ze(de.FALLBACK_TO_DATE_FORMAT, {
|
|
3561
3561
|
key: l,
|
|
3562
3562
|
target: g
|
|
3563
3563
|
})), process.env.NODE_ENV !== "production" && E !== g) {
|
|
@@ -3570,16 +3570,16 @@ function $r(e, ...t) {
|
|
|
3570
3570
|
groupId: `${w}:${l}`
|
|
3571
3571
|
});
|
|
3572
3572
|
}
|
|
3573
|
-
if (h = n[g] || {},
|
|
3573
|
+
if (h = n[g] || {}, T = h[l], G(T))
|
|
3574
3574
|
break;
|
|
3575
3575
|
mr(e, l, g, m, w), b = I;
|
|
3576
3576
|
}
|
|
3577
|
-
if (!G(
|
|
3577
|
+
if (!G(T) || !C(g))
|
|
3578
3578
|
return r ? zt : l;
|
|
3579
|
-
let
|
|
3580
|
-
Jt(u) || (
|
|
3581
|
-
let x = i.get(
|
|
3582
|
-
return x || (x = new Intl.DateTimeFormat(g, ie({},
|
|
3579
|
+
let A = `${g}__${l}`;
|
|
3580
|
+
Jt(u) || (A = `${A}__${JSON.stringify(u)}`);
|
|
3581
|
+
let x = i.get(A);
|
|
3582
|
+
return x || (x = new Intl.DateTimeFormat(g, ie({}, T, u)), i.set(A, x)), v ? x.formatToParts(c) : x.format(c);
|
|
3583
3583
|
}
|
|
3584
3584
|
const fs = [
|
|
3585
3585
|
"localeMatcher",
|
|
@@ -3604,8 +3604,8 @@ const fs = [
|
|
|
3604
3604
|
"fractionalSecondDigits"
|
|
3605
3605
|
];
|
|
3606
3606
|
function $n(...e) {
|
|
3607
|
-
const [t, n, r, a] = e, s =
|
|
3608
|
-
let o =
|
|
3607
|
+
const [t, n, r, a] = e, s = j();
|
|
3608
|
+
let o = j(), i;
|
|
3609
3609
|
if (C(t)) {
|
|
3610
3610
|
const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
3611
3611
|
if (!l)
|
|
@@ -3639,8 +3639,8 @@ function Wr(e, t, n) {
|
|
|
3639
3639
|
function Yr(e, ...t) {
|
|
3640
3640
|
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
3641
3641
|
if (process.env.NODE_ENV !== "production" && !us.numberFormat)
|
|
3642
|
-
return s(ze(
|
|
3643
|
-
const [l, c, f, u] = Wn(...t), m = $(f.missingWarn) ? f.missingWarn : e.missingWarn, p = $(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn,
|
|
3642
|
+
return s(ze(de.CANNOT_FORMAT_NUMBER)), jt;
|
|
3643
|
+
const [l, c, f, u] = Wn(...t), m = $(f.missingWarn) ? f.missingWarn : e.missingWarn, p = $(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, v = !!f.part, E = dr(e, f), L = o(
|
|
3644
3644
|
e,
|
|
3645
3645
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3646
3646
|
a,
|
|
@@ -3648,10 +3648,10 @@ function Yr(e, ...t) {
|
|
|
3648
3648
|
);
|
|
3649
3649
|
if (!C(l) || l === "")
|
|
3650
3650
|
return new Intl.NumberFormat(E, u).format(c);
|
|
3651
|
-
let h = {}, g,
|
|
3651
|
+
let h = {}, g, T = null, b = E, I = null;
|
|
3652
3652
|
const w = "number format";
|
|
3653
3653
|
for (let Y = 0; Y < L.length; Y++) {
|
|
3654
|
-
if (g = I = L[Y], process.env.NODE_ENV !== "production" && E !== g && Zt(p, l) && s(ze(
|
|
3654
|
+
if (g = I = L[Y], process.env.NODE_ENV !== "production" && E !== g && Zt(p, l) && s(ze(de.FALLBACK_TO_NUMBER_FORMAT, {
|
|
3655
3655
|
key: l,
|
|
3656
3656
|
target: g
|
|
3657
3657
|
})), process.env.NODE_ENV !== "production" && E !== g) {
|
|
@@ -3664,16 +3664,16 @@ function Yr(e, ...t) {
|
|
|
3664
3664
|
groupId: `${w}:${l}`
|
|
3665
3665
|
});
|
|
3666
3666
|
}
|
|
3667
|
-
if (h = n[g] || {},
|
|
3667
|
+
if (h = n[g] || {}, T = h[l], G(T))
|
|
3668
3668
|
break;
|
|
3669
3669
|
mr(e, l, g, m, w), b = I;
|
|
3670
3670
|
}
|
|
3671
|
-
if (!G(
|
|
3671
|
+
if (!G(T) || !C(g))
|
|
3672
3672
|
return r ? zt : l;
|
|
3673
|
-
let
|
|
3674
|
-
Jt(u) || (
|
|
3675
|
-
let x = i.get(
|
|
3676
|
-
return x || (x = new Intl.NumberFormat(g, ie({},
|
|
3673
|
+
let A = `${g}__${l}`;
|
|
3674
|
+
Jt(u) || (A = `${A}__${JSON.stringify(u)}`);
|
|
3675
|
+
let x = i.get(A);
|
|
3676
|
+
return x || (x = new Intl.NumberFormat(g, ie({}, T, u)), i.set(A, x)), v ? x.formatToParts(c) : x.format(c);
|
|
3677
3677
|
}
|
|
3678
3678
|
const _s = [
|
|
3679
3679
|
"localeMatcher",
|
|
@@ -3698,8 +3698,8 @@ const _s = [
|
|
|
3698
3698
|
"trailingZeroDisplay"
|
|
3699
3699
|
];
|
|
3700
3700
|
function Wn(...e) {
|
|
3701
|
-
const [t, n, r, a] = e, s =
|
|
3702
|
-
let o =
|
|
3701
|
+
const [t, n, r, a] = e, s = j();
|
|
3702
|
+
let o = j();
|
|
3703
3703
|
if (!ae(t))
|
|
3704
3704
|
throw we(le.INVALID_ARGUMENT);
|
|
3705
3705
|
const i = t;
|
|
@@ -3726,55 +3726,55 @@ function Hl(e, t) {
|
|
|
3726
3726
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
3727
3727
|
}
|
|
3728
3728
|
function Kl(e = {}) {
|
|
3729
|
-
const t = e.locale, n = Yl(e), r = V(e.pluralRules) && C(t) &&
|
|
3729
|
+
const t = e.locale, n = Yl(e), r = V(e.pluralRules) && C(t) && X(e.pluralRules[t]) ? e.pluralRules[t] : Kr, a = V(e.pluralRules) && C(t) && X(e.pluralRules[t]) ? Kr : void 0, s = (h) => h[r(n, h.length, a)], o = e.list || [], i = (h) => o[h], l = e.named || j();
|
|
3730
3730
|
ae(e.pluralIndex) && Hl(n, l);
|
|
3731
3731
|
const c = (h) => l[h];
|
|
3732
3732
|
function f(h, g) {
|
|
3733
|
-
const
|
|
3734
|
-
return
|
|
3733
|
+
const T = X(e.messages) ? e.messages(h, !!g) : V(e.messages) ? e.messages[h] : !1;
|
|
3734
|
+
return T || (e.parent ? e.parent.message(h) : Gl);
|
|
3735
3735
|
}
|
|
3736
|
-
const u = (h) => e.modifiers ? e.modifiers[h] : xl, m = G(e.processor) &&
|
|
3736
|
+
const u = (h) => e.modifiers ? e.modifiers[h] : xl, m = G(e.processor) && X(e.processor.normalize) ? e.processor.normalize : $l, p = G(e.processor) && X(e.processor.interpolate) ? e.processor.interpolate : Wl, v = G(e.processor) && C(e.processor.type) ? e.processor.type : Vl, L = {
|
|
3737
3737
|
list: i,
|
|
3738
3738
|
named: c,
|
|
3739
3739
|
plural: s,
|
|
3740
3740
|
linked: (h, ...g) => {
|
|
3741
|
-
const [
|
|
3741
|
+
const [T, b] = g;
|
|
3742
3742
|
let I = "text", w = "";
|
|
3743
|
-
g.length === 1 ? V(
|
|
3744
|
-
const
|
|
3743
|
+
g.length === 1 ? V(T) ? (w = T.modifier || w, I = T.type || I) : C(T) && (w = T || w) : g.length === 2 && (C(T) && (w = T || w), C(b) && (I = b || I));
|
|
3744
|
+
const A = f(h, !0)(L), x = (
|
|
3745
3745
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
3746
|
-
I === "vnode" &&
|
|
3746
|
+
I === "vnode" && J(A) && w ? A[0] : A
|
|
3747
3747
|
);
|
|
3748
3748
|
return w ? u(w)(x, I) : x;
|
|
3749
3749
|
},
|
|
3750
3750
|
message: f,
|
|
3751
|
-
type:
|
|
3751
|
+
type: v,
|
|
3752
3752
|
interpolate: p,
|
|
3753
3753
|
normalize: m,
|
|
3754
|
-
values: ie(
|
|
3754
|
+
values: ie(j(), o, l)
|
|
3755
3755
|
};
|
|
3756
3756
|
return L;
|
|
3757
3757
|
}
|
|
3758
|
-
const jr = () => "", pe = (e) =>
|
|
3758
|
+
const jr = () => "", pe = (e) => X(e);
|
|
3759
3759
|
function qr(e, ...t) {
|
|
3760
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: o, messages: i } = e, [l, c] = Yn(...t), f = $(c.missingWarn) ? c.missingWarn : e.missingWarn, u = $(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, m = $(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, p = !!c.resolvedMessage,
|
|
3760
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: o, messages: i } = e, [l, c] = Yn(...t), f = $(c.missingWarn) ? c.missingWarn : e.missingWarn, u = $(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, m = $(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, p = !!c.resolvedMessage, v = C(c.default) || $(c.default) ? $(c.default) ? s ? l : () => l : c.default : n ? s ? l : () => l : null, E = n || v != null && (C(v) || X(v)), L = dr(e, c);
|
|
3761
3761
|
m && jl(c);
|
|
3762
|
-
let [h, g,
|
|
3762
|
+
let [h, g, T] = p ? [
|
|
3763
3763
|
l,
|
|
3764
3764
|
L,
|
|
3765
|
-
i[L] ||
|
|
3765
|
+
i[L] || j()
|
|
3766
3766
|
] : ds(e, l, L, o, u, f), b = h, I = l;
|
|
3767
|
-
if (!p && !(C(b) || Se(b) || pe(b)) && E && (b =
|
|
3767
|
+
if (!p && !(C(b) || Se(b) || pe(b)) && E && (b = v, I = b), !p && (!(C(b) || Se(b) || pe(b)) || !C(g)))
|
|
3768
3768
|
return a ? zt : l;
|
|
3769
3769
|
if (process.env.NODE_ENV !== "production" && C(b) && e.messageCompiler == null)
|
|
3770
3770
|
return `${l}`, l;
|
|
3771
3771
|
let w = !1;
|
|
3772
|
-
const
|
|
3772
|
+
const A = () => {
|
|
3773
3773
|
w = !0;
|
|
3774
|
-
}, x = pe(b) ? b : ms(e, l, g, b, I,
|
|
3774
|
+
}, x = pe(b) ? b : ms(e, l, g, b, I, A);
|
|
3775
3775
|
if (w)
|
|
3776
3776
|
return b;
|
|
3777
|
-
const Y = Jl(e, g,
|
|
3777
|
+
const Y = Jl(e, g, T, c), se = Kl(Y), be = ql(e, x, se), oe = r ? r(be, l) : be;
|
|
3778
3778
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3779
3779
|
const et = {
|
|
3780
3780
|
timestamp: Date.now(),
|
|
@@ -3788,16 +3788,16 @@ function qr(e, ...t) {
|
|
|
3788
3788
|
return oe;
|
|
3789
3789
|
}
|
|
3790
3790
|
function jl(e) {
|
|
3791
|
-
|
|
3791
|
+
J(e.list) ? e.list = e.list.map((t) => C(t) ? Cr(t) : t) : V(e.named) && Object.keys(e.named).forEach((t) => {
|
|
3792
3792
|
C(e.named[t]) && (e.named[t] = Cr(e.named[t]));
|
|
3793
3793
|
});
|
|
3794
3794
|
}
|
|
3795
3795
|
function ds(e, t, n, r, a, s) {
|
|
3796
3796
|
const { messages: o, onWarn: i, messageResolver: l, localeFallbacker: c } = e, f = c(e, r, n);
|
|
3797
|
-
let u =
|
|
3797
|
+
let u = j(), m, p = null, v = n, E = null;
|
|
3798
3798
|
const L = "translate";
|
|
3799
3799
|
for (let h = 0; h < f.length; h++) {
|
|
3800
|
-
if (m = E = f[h], process.env.NODE_ENV !== "production" && n !== m && !cs(n, m) && Zt(a, t) && i(ze(
|
|
3800
|
+
if (m = E = f[h], process.env.NODE_ENV !== "production" && n !== m && !cs(n, m) && Zt(a, t) && i(ze(de.FALLBACK_TO_TRANSLATE, {
|
|
3801
3801
|
key: t,
|
|
3802
3802
|
target: m
|
|
3803
3803
|
})), process.env.NODE_ENV !== "production" && n !== m) {
|
|
@@ -3805,14 +3805,14 @@ function ds(e, t, n, r, a, s) {
|
|
|
3805
3805
|
I && I.emit("fallback", {
|
|
3806
3806
|
type: L,
|
|
3807
3807
|
key: t,
|
|
3808
|
-
from:
|
|
3808
|
+
from: v,
|
|
3809
3809
|
to: E,
|
|
3810
3810
|
groupId: `${L}:${t}`
|
|
3811
3811
|
});
|
|
3812
3812
|
}
|
|
3813
|
-
u = o[m] ||
|
|
3814
|
-
let g = null,
|
|
3815
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3813
|
+
u = o[m] || j();
|
|
3814
|
+
let g = null, T, b;
|
|
3815
|
+
if (process.env.NODE_ENV !== "production" && ve && (g = window.performance.now(), T = "intlify-message-resolve-start", b = "intlify-message-resolve-end", ge && ge(T)), (p = l(u, t)) === null && (p = u[t]), process.env.NODE_ENV !== "production" && ve) {
|
|
3816
3816
|
const I = window.performance.now(), w = e.__v_emitter;
|
|
3817
3817
|
w && g && p && w.emit("message-resolve", {
|
|
3818
3818
|
type: "message-resolve",
|
|
@@ -3820,7 +3820,7 @@ function ds(e, t, n, r, a, s) {
|
|
|
3820
3820
|
message: p,
|
|
3821
3821
|
time: I - g,
|
|
3822
3822
|
groupId: `${L}:${t}`
|
|
3823
|
-
}),
|
|
3823
|
+
}), T && b && ge && Je && (ge(b), Je("intlify message resolve", T, b));
|
|
3824
3824
|
}
|
|
3825
3825
|
if (C(p) || Se(p) || pe(p))
|
|
3826
3826
|
break;
|
|
@@ -3835,7 +3835,7 @@ function ds(e, t, n, r, a, s) {
|
|
|
3835
3835
|
);
|
|
3836
3836
|
I !== t && (p = I);
|
|
3837
3837
|
}
|
|
3838
|
-
|
|
3838
|
+
v = E;
|
|
3839
3839
|
}
|
|
3840
3840
|
return [p, m, u];
|
|
3841
3841
|
}
|
|
@@ -3850,9 +3850,9 @@ function ms(e, t, n, r, a, s) {
|
|
|
3850
3850
|
return m.locale = n, m.key = t, m;
|
|
3851
3851
|
}
|
|
3852
3852
|
let l = null, c, f;
|
|
3853
|
-
process.env.NODE_ENV !== "production" &&
|
|
3853
|
+
process.env.NODE_ENV !== "production" && ve && (l = window.performance.now(), c = "intlify-message-compilation-start", f = "intlify-message-compilation-end", ge && ge(c));
|
|
3854
3854
|
const u = o(r, Xl(e, n, a, r, i, s));
|
|
3855
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3855
|
+
if (process.env.NODE_ENV !== "production" && ve) {
|
|
3856
3856
|
const m = window.performance.now(), p = e.__v_emitter;
|
|
3857
3857
|
p && l && p.emit("message-compilation", {
|
|
3858
3858
|
type: "message-compilation",
|
|
@@ -3865,9 +3865,9 @@ function ms(e, t, n, r, a, s) {
|
|
|
3865
3865
|
}
|
|
3866
3866
|
function ql(e, t, n) {
|
|
3867
3867
|
let r = null, a, s;
|
|
3868
|
-
process.env.NODE_ENV !== "production" &&
|
|
3868
|
+
process.env.NODE_ENV !== "production" && ve && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", ge && ge(a));
|
|
3869
3869
|
const o = t(n);
|
|
3870
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3870
|
+
if (process.env.NODE_ENV !== "production" && ve) {
|
|
3871
3871
|
const i = window.performance.now(), l = e.__v_emitter;
|
|
3872
3872
|
l && r && l.emit("message-evaluation", {
|
|
3873
3873
|
type: "message-evaluation",
|
|
@@ -3879,11 +3879,11 @@ function ql(e, t, n) {
|
|
|
3879
3879
|
return o;
|
|
3880
3880
|
}
|
|
3881
3881
|
function Yn(...e) {
|
|
3882
|
-
const [t, n, r] = e, a =
|
|
3882
|
+
const [t, n, r] = e, a = j();
|
|
3883
3883
|
if (!C(t) && !ae(t) && !pe(t) && !Se(t))
|
|
3884
3884
|
throw we(le.INVALID_ARGUMENT);
|
|
3885
3885
|
const s = ae(t) ? String(t) : (pe(t), t);
|
|
3886
|
-
return ae(n) ? a.plural = n : C(n) ? a.default = n : G(n) && !Jt(n) ? a.named = n :
|
|
3886
|
+
return ae(n) ? a.plural = n : C(n) ? a.default = n : G(n) && !Jt(n) ? a.named = n : J(n) && (a.list = n), ae(r) ? a.plural = r : C(r) ? a.default = r : G(r) && ie(a, r), [s, a];
|
|
3887
3887
|
}
|
|
3888
3888
|
function Xl(e, t, n, r, a, s) {
|
|
3889
3889
|
return {
|
|
@@ -3917,9 +3917,9 @@ function Jl(e, t, n, r) {
|
|
|
3917
3917
|
locale: t,
|
|
3918
3918
|
modifiers: a,
|
|
3919
3919
|
pluralRules: s,
|
|
3920
|
-
messages: (p,
|
|
3920
|
+
messages: (p, v) => {
|
|
3921
3921
|
let E = o(n, p);
|
|
3922
|
-
if (E == null && (f ||
|
|
3922
|
+
if (E == null && (f || v)) {
|
|
3923
3923
|
const [, , L] = ds(
|
|
3924
3924
|
f || e,
|
|
3925
3925
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
@@ -4034,15 +4034,15 @@ function sc(e, t) {
|
|
|
4034
4034
|
}
|
|
4035
4035
|
}
|
|
4036
4036
|
/*!
|
|
4037
|
-
* vue-i18n v11.1.
|
|
4037
|
+
* vue-i18n v11.1.6
|
|
4038
4038
|
* (c) 2025 kazuya kawaguchi
|
|
4039
4039
|
* Released under the MIT License.
|
|
4040
4040
|
*/
|
|
4041
|
-
const oc = "11.1.
|
|
4041
|
+
const oc = "11.1.6";
|
|
4042
4042
|
function ic() {
|
|
4043
4043
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (qe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (qe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (qe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (qe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
4044
4044
|
}
|
|
4045
|
-
const
|
|
4045
|
+
const K = {
|
|
4046
4046
|
// composer module errors
|
|
4047
4047
|
UNEXPECTED_RETURN_TYPE: ml,
|
|
4048
4048
|
// 24
|
|
@@ -4062,23 +4062,26 @@ const X = {
|
|
|
4062
4062
|
// not compatible legacy vue-i18n constructor
|
|
4063
4063
|
NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
|
|
4064
4064
|
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
|
4065
|
-
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
4065
|
+
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34,
|
|
4066
|
+
// duplicate `useI18n` calling
|
|
4067
|
+
DUPLICATE_USE_I18N_CALLING: 35
|
|
4066
4068
|
};
|
|
4067
|
-
function
|
|
4069
|
+
function _e(e, ...t) {
|
|
4068
4070
|
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages: lc, args: t } : void 0);
|
|
4069
4071
|
}
|
|
4070
4072
|
const lc = {
|
|
4071
|
-
[
|
|
4072
|
-
[
|
|
4073
|
-
[
|
|
4074
|
-
[
|
|
4075
|
-
[
|
|
4076
|
-
[
|
|
4077
|
-
[
|
|
4078
|
-
[
|
|
4079
|
-
[
|
|
4080
|
-
[
|
|
4081
|
-
[
|
|
4073
|
+
[K.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
4074
|
+
[K.INVALID_ARGUMENT]: "Invalid argument",
|
|
4075
|
+
[K.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
4076
|
+
[K.NOT_INSTALLED]: "Need to install with `app.use` function",
|
|
4077
|
+
[K.UNEXPECTED_ERROR]: "Unexpected error",
|
|
4078
|
+
[K.REQUIRED_VALUE]: "Required in value: {0}",
|
|
4079
|
+
[K.INVALID_VALUE]: "Invalid value",
|
|
4080
|
+
[K.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
4081
|
+
[K.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
4082
|
+
[K.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
4083
|
+
[K.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly",
|
|
4084
|
+
[K.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope"
|
|
4082
4085
|
}, Kn = /* @__PURE__ */ Oe("__translateVNode"), jn = /* @__PURE__ */ Oe("__datetimeParts"), qn = /* @__PURE__ */ Oe("__numberParts"), Ze = /* @__PURE__ */ Oe("__enableEmitter"), Lt = /* @__PURE__ */ Oe("__disableEmitter"), gs = Oe("__setPluralRules"), ps = /* @__PURE__ */ Oe("__injectWithOption"), Xn = /* @__PURE__ */ Oe("__dispose"), Ne = {
|
|
4083
4086
|
FALLBACK_TO_ROOT: Il,
|
|
4084
4087
|
// 8
|
|
@@ -4113,7 +4116,7 @@ function wt(e) {
|
|
|
4113
4116
|
if (!V(e) || Se(e))
|
|
4114
4117
|
return e;
|
|
4115
4118
|
for (const t in e)
|
|
4116
|
-
if (
|
|
4119
|
+
if (Ae(e, t))
|
|
4117
4120
|
if (!t.includes("."))
|
|
4118
4121
|
V(e[t]) && wt(e[t]);
|
|
4119
4122
|
else {
|
|
@@ -4122,7 +4125,7 @@ function wt(e) {
|
|
|
4122
4125
|
for (let o = 0; o < r; o++) {
|
|
4123
4126
|
if (n[o] === "__proto__")
|
|
4124
4127
|
throw new Error(`unsafe key: ${n[o]}`);
|
|
4125
|
-
if (n[o] in a || (a[n[o]] =
|
|
4128
|
+
if (n[o] in a || (a[n[o]] = j()), !V(a[n[o]])) {
|
|
4126
4129
|
process.env.NODE_ENV !== "production" && (kt(Ne.IGNORE_OBJ_FLATTEN, {
|
|
4127
4130
|
key: n[o]
|
|
4128
4131
|
}), void 0), s = !0;
|
|
@@ -4138,23 +4141,23 @@ function wt(e) {
|
|
|
4138
4141
|
return e;
|
|
4139
4142
|
}
|
|
4140
4143
|
function hr(e, t) {
|
|
4141
|
-
const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, o = G(n) ? n :
|
|
4142
|
-
if (
|
|
4144
|
+
const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, o = G(n) ? n : J(r) ? j() : { [e]: j() };
|
|
4145
|
+
if (J(r) && r.forEach((i) => {
|
|
4143
4146
|
if ("locale" in i && "resource" in i) {
|
|
4144
4147
|
const { locale: l, resource: c } = i;
|
|
4145
|
-
l ? (o[l] = o[l] ||
|
|
4148
|
+
l ? (o[l] = o[l] || j(), Yt(c, o[l])) : Yt(c, o);
|
|
4146
4149
|
} else
|
|
4147
4150
|
C(i) && Yt(JSON.parse(i), o);
|
|
4148
4151
|
}), a == null && s)
|
|
4149
4152
|
for (const i in o)
|
|
4150
|
-
|
|
4153
|
+
Ae(o, i) && wt(o[i]);
|
|
4151
4154
|
return o;
|
|
4152
4155
|
}
|
|
4153
4156
|
function Es(e) {
|
|
4154
4157
|
return e.type;
|
|
4155
4158
|
}
|
|
4156
4159
|
function Ss(e, t, n) {
|
|
4157
|
-
let r = V(t.messages) ? t.messages :
|
|
4160
|
+
let r = V(t.messages) ? t.messages : j();
|
|
4158
4161
|
"__i18nGlobal" in n && (r = hr(e.locale.value, {
|
|
4159
4162
|
messages: r,
|
|
4160
4163
|
__i18n: n.__i18nGlobal
|
|
@@ -4192,19 +4195,19 @@ const fc = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
4192
4195
|
return e && (t = Es(e)[Qr]) ? { [Qr]: t } : null;
|
|
4193
4196
|
};
|
|
4194
4197
|
function gr(e = {}) {
|
|
4195
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s =
|
|
4198
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = ve ? ks : Fs;
|
|
4196
4199
|
let o = $(e.inheritLocale) ? e.inheritLocale : !0;
|
|
4197
4200
|
const i = s(
|
|
4198
4201
|
// prettier-ignore
|
|
4199
4202
|
t && o ? t.locale.value : C(e.locale) ? e.locale : Ct
|
|
4200
4203
|
), l = s(
|
|
4201
4204
|
// prettier-ignore
|
|
4202
|
-
t && o ? t.fallbackLocale.value : C(e.fallbackLocale) ||
|
|
4205
|
+
t && o ? t.fallbackLocale.value : C(e.fallbackLocale) || J(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
4203
4206
|
), c = s(hr(i.value, e)), f = s(G(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), u = s(G(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
4204
|
-
let m = t ? t.missingWarn : $(e.missingWarn) || ct(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : $(e.fallbackWarn) || ct(e.fallbackWarn) ? e.fallbackWarn : !0,
|
|
4207
|
+
let m = t ? t.missingWarn : $(e.missingWarn) || ct(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : $(e.fallbackWarn) || ct(e.fallbackWarn) ? e.fallbackWarn : !0, v = t ? t.fallbackRoot : $(e.fallbackRoot) ? e.fallbackRoot : !0, E = !!e.fallbackFormat, L = X(e.missing) ? e.missing : null, h = X(e.missing) ? Zr(e.missing) : null, g = X(e.postTranslation) ? e.postTranslation : null, T = t ? t.warnHtmlMessage : $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter;
|
|
4205
4208
|
const I = t ? t.modifiers : G(e.modifiers) ? e.modifiers : {};
|
|
4206
|
-
let w = e.pluralRules || t && t.pluralRules,
|
|
4207
|
-
|
|
4209
|
+
let w = e.pluralRules || t && t.pluralRules, A;
|
|
4210
|
+
A = (() => {
|
|
4208
4211
|
r && xr(null);
|
|
4209
4212
|
const S = {
|
|
4210
4213
|
version: oc,
|
|
@@ -4219,16 +4222,16 @@ function gr(e = {}) {
|
|
|
4219
4222
|
fallbackFormat: E,
|
|
4220
4223
|
unresolving: !0,
|
|
4221
4224
|
postTranslation: g === null ? void 0 : g,
|
|
4222
|
-
warnHtmlMessage:
|
|
4225
|
+
warnHtmlMessage: T,
|
|
4223
4226
|
escapeParameter: b,
|
|
4224
4227
|
messageResolver: e.messageResolver,
|
|
4225
4228
|
messageCompiler: e.messageCompiler,
|
|
4226
4229
|
__meta: { framework: "vue" }
|
|
4227
4230
|
};
|
|
4228
|
-
S.datetimeFormats = f.value, S.numberFormats = u.value, S.__datetimeFormatters = G(
|
|
4229
|
-
const
|
|
4230
|
-
return r && xr(
|
|
4231
|
-
})(), St(
|
|
4231
|
+
S.datetimeFormats = f.value, S.numberFormats = u.value, S.__datetimeFormatters = G(A) ? A.__datetimeFormatters : void 0, S.__numberFormatters = G(A) ? A.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (S.__v_emitter = G(A) ? A.__v_emitter : void 0);
|
|
4232
|
+
const N = Ul(S);
|
|
4233
|
+
return r && xr(N), N;
|
|
4234
|
+
})(), St(A, i.value, l.value);
|
|
4232
4235
|
function Y() {
|
|
4233
4236
|
return [
|
|
4234
4237
|
i.value,
|
|
@@ -4241,76 +4244,76 @@ function gr(e = {}) {
|
|
|
4241
4244
|
const se = gt({
|
|
4242
4245
|
get: () => i.value,
|
|
4243
4246
|
set: (S) => {
|
|
4244
|
-
|
|
4247
|
+
A.locale = S, i.value = S;
|
|
4245
4248
|
}
|
|
4246
4249
|
}), be = gt({
|
|
4247
4250
|
get: () => l.value,
|
|
4248
4251
|
set: (S) => {
|
|
4249
|
-
|
|
4252
|
+
A.fallbackLocale = S, l.value = S, St(A, i.value, S);
|
|
4250
4253
|
}
|
|
4251
4254
|
}), oe = gt(() => c.value), et = /* @__PURE__ */ gt(() => f.value), an = /* @__PURE__ */ gt(() => u.value);
|
|
4252
4255
|
function sn() {
|
|
4253
|
-
return
|
|
4256
|
+
return X(g) ? g : null;
|
|
4254
4257
|
}
|
|
4255
4258
|
function on(S) {
|
|
4256
|
-
g = S,
|
|
4259
|
+
g = S, A.postTranslation = S;
|
|
4257
4260
|
}
|
|
4258
4261
|
function ln() {
|
|
4259
4262
|
return L;
|
|
4260
4263
|
}
|
|
4261
4264
|
function cn(S) {
|
|
4262
|
-
S !== null && (h = Zr(S)), L = S,
|
|
4265
|
+
S !== null && (h = Zr(S)), L = S, A.missing = h;
|
|
4263
4266
|
}
|
|
4264
|
-
function un(S,
|
|
4265
|
-
return S !== "translate" || !
|
|
4267
|
+
function un(S, N) {
|
|
4268
|
+
return S !== "translate" || !N.resolvedMessage;
|
|
4266
4269
|
}
|
|
4267
|
-
const Ie = (S,
|
|
4270
|
+
const Ie = (S, N, H, ne, Ye, Ut) => {
|
|
4268
4271
|
Y();
|
|
4269
4272
|
let tt;
|
|
4270
4273
|
try {
|
|
4271
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (
|
|
4274
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (A.fallbackContext = t ? Ml() : void 0), tt = S(A);
|
|
4272
4275
|
} finally {
|
|
4273
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (
|
|
4276
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (A.fallbackContext = void 0);
|
|
4274
4277
|
}
|
|
4275
4278
|
if (H !== "translate exists" && // for not `te` (e.g `t`)
|
|
4276
4279
|
ae(tt) && tt === zt || H === "translate exists" && !tt) {
|
|
4277
|
-
const [He, Rs] =
|
|
4278
|
-
if (process.env.NODE_ENV !== "production" && t && C(He) && un(H, Rs) && (
|
|
4280
|
+
const [He, Rs] = N();
|
|
4281
|
+
if (process.env.NODE_ENV !== "production" && t && C(He) && un(H, Rs) && (v && (Zt(p, He) || ls(m, He)) && (kt(Ne.FALLBACK_TO_ROOT, {
|
|
4279
4282
|
key: He,
|
|
4280
4283
|
type: H
|
|
4281
4284
|
}), void 0), process.env.NODE_ENV !== "production")) {
|
|
4282
|
-
const { __v_emitter:
|
|
4283
|
-
|
|
4285
|
+
const { __v_emitter: Ar } = A;
|
|
4286
|
+
Ar && v && Ar.emit("fallback", {
|
|
4284
4287
|
type: H,
|
|
4285
4288
|
key: He,
|
|
4286
4289
|
to: "global",
|
|
4287
4290
|
groupId: `${H}:${He}`
|
|
4288
4291
|
});
|
|
4289
4292
|
}
|
|
4290
|
-
return t &&
|
|
4293
|
+
return t && v ? ne(t) : Ye(He);
|
|
4291
4294
|
} else {
|
|
4292
4295
|
if (Ut(tt))
|
|
4293
4296
|
return tt;
|
|
4294
|
-
throw
|
|
4297
|
+
throw _e(K.UNEXPECTED_RETURN_TYPE);
|
|
4295
4298
|
}
|
|
4296
4299
|
};
|
|
4297
4300
|
function _t(...S) {
|
|
4298
|
-
return Ie((
|
|
4301
|
+
return Ie((N) => Reflect.apply(qr, null, [N, ...S]), () => Yn(...S), "translate", (N) => Reflect.apply(N.t, N, [...S]), (N) => N, (N) => C(N));
|
|
4299
4302
|
}
|
|
4300
4303
|
function fn(...S) {
|
|
4301
|
-
const [
|
|
4302
|
-
if (
|
|
4303
|
-
throw
|
|
4304
|
-
return _t(
|
|
4304
|
+
const [N, H, ne] = S;
|
|
4305
|
+
if (ne && !V(ne))
|
|
4306
|
+
throw _e(K.INVALID_ARGUMENT);
|
|
4307
|
+
return _t(N, H, ie({ resolvedMessage: !0 }, ne || {}));
|
|
4305
4308
|
}
|
|
4306
4309
|
function _n(...S) {
|
|
4307
|
-
return Ie((
|
|
4310
|
+
return Ie((N) => Reflect.apply($r, null, [N, ...S]), () => $n(...S), "datetime format", (N) => Reflect.apply(N.d, N, [...S]), () => jt, (N) => C(N) || J(N));
|
|
4308
4311
|
}
|
|
4309
4312
|
function dn(...S) {
|
|
4310
|
-
return Ie((
|
|
4313
|
+
return Ie((N) => Reflect.apply(Yr, null, [N, ...S]), () => Wn(...S), "number format", (N) => Reflect.apply(N.n, N, [...S]), () => jt, (N) => C(N) || J(N));
|
|
4311
4314
|
}
|
|
4312
4315
|
function mn(S) {
|
|
4313
|
-
return S.map((
|
|
4316
|
+
return S.map((N) => C(N) || ae(N) || $(N) ? Xr(String(N)) : N);
|
|
4314
4317
|
}
|
|
4315
4318
|
const hn = {
|
|
4316
4319
|
normalize: mn,
|
|
@@ -4318,92 +4321,92 @@ function gr(e = {}) {
|
|
|
4318
4321
|
type: "vnode"
|
|
4319
4322
|
};
|
|
4320
4323
|
function Mt(...S) {
|
|
4321
|
-
return Ie((
|
|
4324
|
+
return Ie((N) => {
|
|
4322
4325
|
let H;
|
|
4323
|
-
const
|
|
4326
|
+
const ne = N;
|
|
4324
4327
|
try {
|
|
4325
|
-
|
|
4328
|
+
ne.processor = hn, H = Reflect.apply(qr, null, [ne, ...S]);
|
|
4326
4329
|
} finally {
|
|
4327
|
-
|
|
4330
|
+
ne.processor = null;
|
|
4328
4331
|
}
|
|
4329
4332
|
return H;
|
|
4330
|
-
}, () => Yn(...S), "translate", (
|
|
4333
|
+
}, () => Yn(...S), "translate", (N) => N[Kn](...S), (N) => [Xr(N)], (N) => J(N));
|
|
4331
4334
|
}
|
|
4332
4335
|
function gn(...S) {
|
|
4333
|
-
return Ie((
|
|
4336
|
+
return Ie((N) => Reflect.apply(Yr, null, [N, ...S]), () => Wn(...S), "number format", (N) => N[qn](...S), Jr, (N) => C(N) || J(N));
|
|
4334
4337
|
}
|
|
4335
4338
|
function pn(...S) {
|
|
4336
|
-
return Ie((
|
|
4339
|
+
return Ie((N) => Reflect.apply($r, null, [N, ...S]), () => $n(...S), "datetime format", (N) => N[jn](...S), Jr, (N) => C(N) || J(N));
|
|
4337
4340
|
}
|
|
4338
4341
|
function En(S) {
|
|
4339
|
-
w = S,
|
|
4342
|
+
w = S, A.pluralRules = w;
|
|
4340
4343
|
}
|
|
4341
|
-
function Sn(S,
|
|
4344
|
+
function Sn(S, N) {
|
|
4342
4345
|
return Ie(() => {
|
|
4343
4346
|
if (!S)
|
|
4344
4347
|
return !1;
|
|
4345
|
-
const H = C(
|
|
4348
|
+
const H = C(N) ? N : i.value, ne = We(H), Ye = A.messageResolver(ne, S);
|
|
4346
4349
|
return Se(Ye) || pe(Ye) || C(Ye);
|
|
4347
|
-
}, () => [S], "translate exists", (H) => Reflect.apply(H.te, H, [S,
|
|
4350
|
+
}, () => [S], "translate exists", (H) => Reflect.apply(H.te, H, [S, N]), uc, (H) => $(H));
|
|
4348
4351
|
}
|
|
4349
4352
|
function dt(S) {
|
|
4350
|
-
let
|
|
4351
|
-
const H = ns(
|
|
4352
|
-
for (let
|
|
4353
|
-
const Ye = c.value[H[
|
|
4353
|
+
let N = null;
|
|
4354
|
+
const H = ns(A, l.value, i.value);
|
|
4355
|
+
for (let ne = 0; ne < H.length; ne++) {
|
|
4356
|
+
const Ye = c.value[H[ne]] || {}, Ut = A.messageResolver(Ye, S);
|
|
4354
4357
|
if (Ut != null) {
|
|
4355
|
-
|
|
4358
|
+
N = Ut;
|
|
4356
4359
|
break;
|
|
4357
4360
|
}
|
|
4358
4361
|
}
|
|
4359
|
-
return
|
|
4362
|
+
return N;
|
|
4360
4363
|
}
|
|
4361
4364
|
function mt(S) {
|
|
4362
|
-
const
|
|
4363
|
-
return
|
|
4365
|
+
const N = dt(S);
|
|
4366
|
+
return N ?? (t ? t.tm(S) || {} : {});
|
|
4364
4367
|
}
|
|
4365
4368
|
function We(S) {
|
|
4366
4369
|
return c.value[S] || {};
|
|
4367
4370
|
}
|
|
4368
|
-
function ht(S,
|
|
4371
|
+
function ht(S, N) {
|
|
4369
4372
|
if (a) {
|
|
4370
|
-
const H = { [S]:
|
|
4371
|
-
for (const
|
|
4372
|
-
|
|
4373
|
-
|
|
4373
|
+
const H = { [S]: N };
|
|
4374
|
+
for (const ne in H)
|
|
4375
|
+
Ae(H, ne) && wt(H[ne]);
|
|
4376
|
+
N = H[S];
|
|
4374
4377
|
}
|
|
4375
|
-
c.value[S] =
|
|
4378
|
+
c.value[S] = N, A.messages = c.value;
|
|
4376
4379
|
}
|
|
4377
|
-
function bn(S,
|
|
4380
|
+
function bn(S, N) {
|
|
4378
4381
|
c.value[S] = c.value[S] || {};
|
|
4379
|
-
const H = { [S]:
|
|
4382
|
+
const H = { [S]: N };
|
|
4380
4383
|
if (a)
|
|
4381
|
-
for (const
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
+
for (const ne in H)
|
|
4385
|
+
Ae(H, ne) && wt(H[ne]);
|
|
4386
|
+
N = H[S], Yt(N, c.value[S]), A.messages = c.value;
|
|
4384
4387
|
}
|
|
4385
4388
|
function _(S) {
|
|
4386
4389
|
return f.value[S] || {};
|
|
4387
4390
|
}
|
|
4388
|
-
function d(S,
|
|
4389
|
-
f.value[S] =
|
|
4391
|
+
function d(S, N) {
|
|
4392
|
+
f.value[S] = N, A.datetimeFormats = f.value, Wr(A, S, N);
|
|
4390
4393
|
}
|
|
4391
|
-
function y(S,
|
|
4392
|
-
f.value[S] = ie(f.value[S] || {},
|
|
4394
|
+
function y(S, N) {
|
|
4395
|
+
f.value[S] = ie(f.value[S] || {}, N), A.datetimeFormats = f.value, Wr(A, S, N);
|
|
4393
4396
|
}
|
|
4394
|
-
function
|
|
4397
|
+
function k(S) {
|
|
4395
4398
|
return u.value[S] || {};
|
|
4396
4399
|
}
|
|
4397
|
-
function
|
|
4398
|
-
u.value[S] =
|
|
4400
|
+
function ee(S, N) {
|
|
4401
|
+
u.value[S] = N, A.numberFormats = u.value, Hr(A, S, N);
|
|
4399
4402
|
}
|
|
4400
|
-
function
|
|
4401
|
-
u.value[S] = ie(u.value[S] || {},
|
|
4403
|
+
function te(S, N) {
|
|
4404
|
+
u.value[S] = ie(u.value[S] || {}, N), A.numberFormats = u.value, Hr(A, S, N);
|
|
4402
4405
|
}
|
|
4403
|
-
zr++, t &&
|
|
4404
|
-
o && (i.value = S,
|
|
4406
|
+
zr++, t && ve && (Rn(t.locale, (S) => {
|
|
4407
|
+
o && (i.value = S, A.locale = S, St(A, i.value, l.value));
|
|
4405
4408
|
}), Rn(t.fallbackLocale, (S) => {
|
|
4406
|
-
o && (l.value = S,
|
|
4409
|
+
o && (l.value = S, A.fallbackLocale = S, St(A, i.value, l.value));
|
|
4407
4410
|
}));
|
|
4408
4411
|
const W = {
|
|
4409
4412
|
id: zr,
|
|
@@ -4413,7 +4416,7 @@ function gr(e = {}) {
|
|
|
4413
4416
|
return o;
|
|
4414
4417
|
},
|
|
4415
4418
|
set inheritLocale(S) {
|
|
4416
|
-
o = S, S && t && (i.value = t.locale.value, l.value = t.fallbackLocale.value, St(
|
|
4419
|
+
o = S, S && t && (i.value = t.locale.value, l.value = t.fallbackLocale.value, St(A, i.value, l.value));
|
|
4417
4420
|
},
|
|
4418
4421
|
get availableLocales() {
|
|
4419
4422
|
return Object.keys(c.value).sort();
|
|
@@ -4432,37 +4435,37 @@ function gr(e = {}) {
|
|
|
4432
4435
|
return m;
|
|
4433
4436
|
},
|
|
4434
4437
|
set missingWarn(S) {
|
|
4435
|
-
m = S,
|
|
4438
|
+
m = S, A.missingWarn = m;
|
|
4436
4439
|
},
|
|
4437
4440
|
get fallbackWarn() {
|
|
4438
4441
|
return p;
|
|
4439
4442
|
},
|
|
4440
4443
|
set fallbackWarn(S) {
|
|
4441
|
-
p = S,
|
|
4444
|
+
p = S, A.fallbackWarn = p;
|
|
4442
4445
|
},
|
|
4443
4446
|
get fallbackRoot() {
|
|
4444
|
-
return
|
|
4447
|
+
return v;
|
|
4445
4448
|
},
|
|
4446
4449
|
set fallbackRoot(S) {
|
|
4447
|
-
|
|
4450
|
+
v = S;
|
|
4448
4451
|
},
|
|
4449
4452
|
get fallbackFormat() {
|
|
4450
4453
|
return E;
|
|
4451
4454
|
},
|
|
4452
4455
|
set fallbackFormat(S) {
|
|
4453
|
-
E = S,
|
|
4456
|
+
E = S, A.fallbackFormat = E;
|
|
4454
4457
|
},
|
|
4455
4458
|
get warnHtmlMessage() {
|
|
4456
|
-
return
|
|
4459
|
+
return T;
|
|
4457
4460
|
},
|
|
4458
4461
|
set warnHtmlMessage(S) {
|
|
4459
|
-
|
|
4462
|
+
T = S, A.warnHtmlMessage = S;
|
|
4460
4463
|
},
|
|
4461
4464
|
get escapeParameter() {
|
|
4462
4465
|
return b;
|
|
4463
4466
|
},
|
|
4464
4467
|
set escapeParameter(S) {
|
|
4465
|
-
b = S,
|
|
4468
|
+
b = S, A.escapeParameter = S;
|
|
4466
4469
|
},
|
|
4467
4470
|
t: _t,
|
|
4468
4471
|
getLocaleMessage: We,
|
|
@@ -4474,10 +4477,10 @@ function gr(e = {}) {
|
|
|
4474
4477
|
setMissingHandler: cn,
|
|
4475
4478
|
[gs]: En
|
|
4476
4479
|
};
|
|
4477
|
-
return W.datetimeFormats = et, W.numberFormats = an, W.rt = fn, W.te = Sn, W.tm = mt, W.d = _n, W.n = dn, W.getDateTimeFormat = _, W.setDateTimeFormat = d, W.mergeDateTimeFormat = y, W.getNumberFormat =
|
|
4478
|
-
|
|
4480
|
+
return W.datetimeFormats = et, W.numberFormats = an, W.rt = fn, W.te = Sn, W.tm = mt, W.d = _n, W.n = dn, W.getDateTimeFormat = _, W.setDateTimeFormat = d, W.mergeDateTimeFormat = y, W.getNumberFormat = k, W.setNumberFormat = ee, W.mergeNumberFormat = te, W[ps] = n, W[Kn] = Mt, W[jn] = pn, W[qn] = gn, process.env.NODE_ENV !== "production" && (W[Ze] = (S) => {
|
|
4481
|
+
A.__v_emitter = S;
|
|
4479
4482
|
}, W[Lt] = () => {
|
|
4480
|
-
|
|
4483
|
+
A.__v_emitter = void 0;
|
|
4481
4484
|
}), W;
|
|
4482
4485
|
}
|
|
4483
4486
|
const bs = "vue-i18n: composer properties", On = {
|
|
@@ -4518,14 +4521,14 @@ async function mc(e, t) {
|
|
|
4518
4521
|
const s = /* @__PURE__ */ new Map();
|
|
4519
4522
|
a.on.getInspectorState(async (o) => {
|
|
4520
4523
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
4521
|
-
if (a.unhighlightElement(),
|
|
4524
|
+
if (a.unhighlightElement(), vc(o, t), o.nodeId === "global") {
|
|
4522
4525
|
if (!s.has(o.app)) {
|
|
4523
4526
|
const [i] = await a.getComponentInstances(o.app);
|
|
4524
4527
|
s.set(o.app, i);
|
|
4525
4528
|
}
|
|
4526
4529
|
a.highlightElement(s.get(o.app));
|
|
4527
4530
|
} else {
|
|
4528
|
-
const i =
|
|
4531
|
+
const i = Ac(o.nodeId, t);
|
|
4529
4532
|
i && a.highlightElement(i);
|
|
4530
4533
|
}
|
|
4531
4534
|
}), a.on.editInspectorState((o) => {
|
|
@@ -4541,14 +4544,14 @@ async function mc(e, t) {
|
|
|
4541
4544
|
}
|
|
4542
4545
|
});
|
|
4543
4546
|
}
|
|
4544
|
-
function
|
|
4547
|
+
function As(e) {
|
|
4545
4548
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
4546
4549
|
}
|
|
4547
4550
|
function hc(e, t, n) {
|
|
4548
4551
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
4549
4552
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
|
|
4550
4553
|
const a = {
|
|
4551
|
-
label: `i18n (${
|
|
4554
|
+
label: `i18n (${As(e)} Scope)`,
|
|
4552
4555
|
textColor: 0,
|
|
4553
4556
|
backgroundColor: 16764185
|
|
4554
4557
|
};
|
|
@@ -4598,7 +4601,7 @@ function pr(e) {
|
|
|
4598
4601
|
const t = {};
|
|
4599
4602
|
return Object.keys(e).forEach((n) => {
|
|
4600
4603
|
const r = e[n];
|
|
4601
|
-
|
|
4604
|
+
X(r) && "source" in r ? t[n] = Sc(r) : Se(r) && r.loc && r.loc.source ? t[n] = r.loc.source : V(r) ? t[n] = pr(r) : t[n] = r;
|
|
4602
4605
|
}), t;
|
|
4603
4606
|
}
|
|
4604
4607
|
const gc = {
|
|
@@ -4631,11 +4634,11 @@ function bc(e, t) {
|
|
|
4631
4634
|
const s = t.mode === "composition" ? a : a.__composer;
|
|
4632
4635
|
n !== s && e.rootNodes.push({
|
|
4633
4636
|
id: s.id.toString(),
|
|
4634
|
-
label: `${
|
|
4637
|
+
label: `${As(r)} Scope`
|
|
4635
4638
|
});
|
|
4636
4639
|
}
|
|
4637
4640
|
}
|
|
4638
|
-
function
|
|
4641
|
+
function Ac(e, t) {
|
|
4639
4642
|
let n = null;
|
|
4640
4643
|
if (e !== "global") {
|
|
4641
4644
|
for (const [r, a] of t.__instances.entries())
|
|
@@ -4646,7 +4649,7 @@ function vc(e, t) {
|
|
|
4646
4649
|
}
|
|
4647
4650
|
return n;
|
|
4648
4651
|
}
|
|
4649
|
-
function
|
|
4652
|
+
function vs(e, t) {
|
|
4650
4653
|
if (e === "global")
|
|
4651
4654
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
4652
4655
|
{
|
|
@@ -4654,8 +4657,8 @@ function As(e, t) {
|
|
|
4654
4657
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
4655
4658
|
}
|
|
4656
4659
|
}
|
|
4657
|
-
function
|
|
4658
|
-
const n =
|
|
4660
|
+
function vc(e, t) {
|
|
4661
|
+
const n = vs(e.nodeId, t);
|
|
4659
4662
|
return n && (e.state = yc(n)), null;
|
|
4660
4663
|
}
|
|
4661
4664
|
function yc(e) {
|
|
@@ -4734,30 +4737,30 @@ function Dt(e, t) {
|
|
|
4734
4737
|
}
|
|
4735
4738
|
}
|
|
4736
4739
|
function Nc(e, t) {
|
|
4737
|
-
const n =
|
|
4740
|
+
const n = vs(e.nodeId, t);
|
|
4738
4741
|
if (n) {
|
|
4739
4742
|
const [r] = e.path;
|
|
4740
|
-
r === "locale" && C(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (C(e.state.value) ||
|
|
4743
|
+
r === "locale" && C(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (C(e.state.value) || J(e.state.value) || V(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && $(e.state.value) && (n.inheritLocale = e.state.value);
|
|
4741
4744
|
}
|
|
4742
4745
|
}
|
|
4743
4746
|
function Tc(e) {
|
|
4744
|
-
const t = C(e.locale) ? e.locale : Ct, n = C(e.fallbackLocale) ||
|
|
4745
|
-
let
|
|
4747
|
+
const t = C(e.locale) ? e.locale : Ct, n = C(e.fallbackLocale) || J(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = X(e.missing) ? e.missing : void 0, a = $(e.silentTranslationWarn) || ct(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = $(e.silentFallbackWarn) || ct(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = $(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, l = G(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, f = X(e.postTranslation) ? e.postTranslation : void 0, u = C(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, m = !!e.escapeParameterHtml, p = $(e.sync) ? e.sync : !0;
|
|
4748
|
+
let v = e.messages;
|
|
4746
4749
|
if (G(e.sharedMessages)) {
|
|
4747
4750
|
const I = e.sharedMessages;
|
|
4748
|
-
|
|
4749
|
-
const Y =
|
|
4750
|
-
return ie(Y, I[x]),
|
|
4751
|
-
},
|
|
4751
|
+
v = Object.keys(I).reduce((A, x) => {
|
|
4752
|
+
const Y = A[x] || (A[x] = {});
|
|
4753
|
+
return ie(Y, I[x]), A;
|
|
4754
|
+
}, v || {});
|
|
4752
4755
|
}
|
|
4753
|
-
const { __i18n: E, __root: L, __injectWithOption: h } = e, g = e.datetimeFormats,
|
|
4756
|
+
const { __i18n: E, __root: L, __injectWithOption: h } = e, g = e.datetimeFormats, T = e.numberFormats, b = e.flatJson;
|
|
4754
4757
|
return {
|
|
4755
4758
|
locale: t,
|
|
4756
4759
|
fallbackLocale: n,
|
|
4757
|
-
messages:
|
|
4760
|
+
messages: v,
|
|
4758
4761
|
flatJson: b,
|
|
4759
4762
|
datetimeFormats: g,
|
|
4760
|
-
numberFormats:
|
|
4763
|
+
numberFormats: T,
|
|
4761
4764
|
missing: r,
|
|
4762
4765
|
missingWarn: a,
|
|
4763
4766
|
fallbackWarn: s,
|
|
@@ -4949,7 +4952,7 @@ function Oc(e, t, n) {
|
|
|
4949
4952
|
beforeCreate() {
|
|
4950
4953
|
const r = Nt();
|
|
4951
4954
|
if (!r)
|
|
4952
|
-
throw
|
|
4955
|
+
throw _e(K.UNEXPECTED_ERROR);
|
|
4953
4956
|
const a = this.$options;
|
|
4954
4957
|
if (a.i18n) {
|
|
4955
4958
|
const s = a.i18n;
|
|
@@ -4988,7 +4991,7 @@ function Oc(e, t, n) {
|
|
|
4988
4991
|
unmounted() {
|
|
4989
4992
|
const r = Nt();
|
|
4990
4993
|
if (!r)
|
|
4991
|
-
throw
|
|
4994
|
+
throw _e(K.UNEXPECTED_ERROR);
|
|
4992
4995
|
const a = this.$i18n;
|
|
4993
4996
|
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", Dt), delete this.__v_emitter), this.$i18n && (a.__disableEmitter && a.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), n.__deleteInstance(r), delete this.$i18n;
|
|
4994
4997
|
}
|
|
@@ -5028,7 +5031,7 @@ function Ic({ slots: e }, t) {
|
|
|
5028
5031
|
], []) : t.reduce((n, r) => {
|
|
5029
5032
|
const a = e[r];
|
|
5030
5033
|
return a && (n[r] = a()), n;
|
|
5031
|
-
},
|
|
5034
|
+
}, j());
|
|
5032
5035
|
}
|
|
5033
5036
|
function ys() {
|
|
5034
5037
|
return he;
|
|
@@ -5054,30 +5057,30 @@ const Cc = /* @__PURE__ */ Zn({
|
|
|
5054
5057
|
__useComponent: !0
|
|
5055
5058
|
});
|
|
5056
5059
|
return () => {
|
|
5057
|
-
const s = Object.keys(n).filter((u) => u !== "_"), o =
|
|
5060
|
+
const s = Object.keys(n).filter((u) => u[0] !== "_"), o = j();
|
|
5058
5061
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = C(e.plural) ? +e.plural : e.plural);
|
|
5059
|
-
const i = Ic(t, s), l = a[Kn](e.keypath, i, o), c = ie(
|
|
5060
|
-
return
|
|
5062
|
+
const i = Ic(t, s), l = a[Kn](e.keypath, i, o), c = ie(j(), r), f = C(e.tag) || V(e.tag) ? e.tag : ys();
|
|
5063
|
+
return va(f, c, l);
|
|
5061
5064
|
};
|
|
5062
5065
|
}
|
|
5063
5066
|
}), na = Cc;
|
|
5064
5067
|
function Lc(e) {
|
|
5065
|
-
return
|
|
5068
|
+
return J(e) && !C(e[0]);
|
|
5066
5069
|
}
|
|
5067
5070
|
function Ns(e, t, n, r) {
|
|
5068
5071
|
const { slots: a, attrs: s } = t;
|
|
5069
5072
|
return () => {
|
|
5070
5073
|
const o = { part: !0 };
|
|
5071
|
-
let i =
|
|
5072
|
-
e.locale && (o.locale = e.locale), C(e.format) ? o.key = e.format : V(e.format) && (C(e.format.key) && (o.key = e.format.key), i = Object.keys(e.format).reduce((m, p) => n.includes(p) ? ie(
|
|
5074
|
+
let i = j();
|
|
5075
|
+
e.locale && (o.locale = e.locale), C(e.format) ? o.key = e.format : V(e.format) && (C(e.format.key) && (o.key = e.format.key), i = Object.keys(e.format).reduce((m, p) => n.includes(p) ? ie(j(), m, { [p]: e.format[p] }) : m, j()));
|
|
5073
5076
|
const l = r(e.value, o, i);
|
|
5074
5077
|
let c = [o.key];
|
|
5075
|
-
|
|
5076
|
-
const
|
|
5078
|
+
J(l) ? c = l.map((m, p) => {
|
|
5079
|
+
const v = a[m.type], E = v ? v({ [m.type]: m.value, index: p, parts: l }) : [m.value];
|
|
5077
5080
|
return Lc(E) && (E[0].key = `${m.type}-${p}`), E;
|
|
5078
5081
|
}) : C(l) && (c = [l]);
|
|
5079
|
-
const f = ie(
|
|
5080
|
-
return
|
|
5082
|
+
const f = ie(j(), s), u = C(e.tag) || V(e.tag) ? e.tag : ys();
|
|
5083
|
+
return va(u, f, c);
|
|
5081
5084
|
};
|
|
5082
5085
|
}
|
|
5083
5086
|
const wc = /* @__PURE__ */ Zn({
|
|
@@ -5119,7 +5122,7 @@ function Rc(e) {
|
|
|
5119
5122
|
process.env.NODE_ENV !== "production" && cr(kt(Ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
5120
5123
|
const { instance: i, value: l } = o;
|
|
5121
5124
|
if (!i || !i.$)
|
|
5122
|
-
throw
|
|
5125
|
+
throw _e(K.UNEXPECTED_ERROR);
|
|
5123
5126
|
const c = Dc(e, i.$), f = aa(l);
|
|
5124
5127
|
return [
|
|
5125
5128
|
Reflect.apply(c.t, c, [...sa(f)]),
|
|
@@ -5129,12 +5132,12 @@ function Rc(e) {
|
|
|
5129
5132
|
return {
|
|
5130
5133
|
created: (o, i) => {
|
|
5131
5134
|
const [l, c] = t(i);
|
|
5132
|
-
|
|
5135
|
+
ve && e.global === c && (o.__i18nWatcher = Rn(c.locale, () => {
|
|
5133
5136
|
i.instance && i.instance.$forceUpdate();
|
|
5134
5137
|
})), o.__composer = c, o.textContent = l;
|
|
5135
5138
|
},
|
|
5136
5139
|
unmounted: (o) => {
|
|
5137
|
-
|
|
5140
|
+
ve && o.__i18nWatcher && (o.__i18nWatcher(), o.__i18nWatcher = void 0, delete o.__i18nWatcher), o.__composer && (o.__composer = void 0, delete o.__composer);
|
|
5138
5141
|
},
|
|
5139
5142
|
beforeUpdate: (o, { value: i }) => {
|
|
5140
5143
|
if (o.__composer) {
|
|
@@ -5155,10 +5158,10 @@ function aa(e) {
|
|
|
5155
5158
|
return { path: e };
|
|
5156
5159
|
if (G(e)) {
|
|
5157
5160
|
if (!("path" in e))
|
|
5158
|
-
throw
|
|
5161
|
+
throw _e(K.REQUIRED_VALUE, "path");
|
|
5159
5162
|
return e;
|
|
5160
5163
|
} else
|
|
5161
|
-
throw
|
|
5164
|
+
throw _e(K.INVALID_VALUE);
|
|
5162
5165
|
}
|
|
5163
5166
|
function sa(e) {
|
|
5164
5167
|
const { path: t, locale: n, args: r, choice: a, plural: s } = e, o = {}, i = r || {};
|
|
@@ -5195,12 +5198,12 @@ function Fc(e = {}) {
|
|
|
5195
5198
|
}
|
|
5196
5199
|
let p = null;
|
|
5197
5200
|
!t && n && (p = Yc(u, f.global)), __VUE_I18N_FULL_INSTALL__ && Pc(u, f, ...m), __VUE_I18N_LEGACY_API__ && t && u.mixin(Oc(s, s.__composer, f));
|
|
5198
|
-
const
|
|
5201
|
+
const v = u.unmount;
|
|
5199
5202
|
if (u.unmount = () => {
|
|
5200
|
-
p && p(), f.dispose(),
|
|
5203
|
+
p && p(), f.dispose(), v();
|
|
5201
5204
|
}, process.env.NODE_ENV !== "production") {
|
|
5202
5205
|
if (!await mc(u, f))
|
|
5203
|
-
throw
|
|
5206
|
+
throw _e(K.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
5204
5207
|
const L = ur();
|
|
5205
5208
|
if (t) {
|
|
5206
5209
|
const h = s;
|
|
@@ -5233,9 +5236,9 @@ function Fc(e = {}) {
|
|
|
5233
5236
|
function Sr(e = {}) {
|
|
5234
5237
|
const t = Nt();
|
|
5235
5238
|
if (t == null)
|
|
5236
|
-
throw
|
|
5239
|
+
throw _e(K.MUST_BE_CALL_SETUP_TOP);
|
|
5237
5240
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
5238
|
-
throw
|
|
5241
|
+
throw _e(K.NOT_INSTALLED);
|
|
5239
5242
|
const n = Uc(t), r = xc(n), a = Es(t), s = Bc(e, a);
|
|
5240
5243
|
if (s === "global")
|
|
5241
5244
|
return Ss(r, e, a), r;
|
|
@@ -5248,19 +5251,20 @@ function Sr(e = {}) {
|
|
|
5248
5251
|
if (i == null) {
|
|
5249
5252
|
const l = ie({}, e);
|
|
5250
5253
|
"__i18n" in a && (l.__i18n = a.__i18n), r && (l.__root = r), i = gr(l), o.__composerExtend && (i[Xn] = o.__composerExtend(i)), $c(o, t, i), o.__setInstance(t, i);
|
|
5251
|
-
}
|
|
5254
|
+
} else if (process.env.NODE_ENV !== "production" && s === "local")
|
|
5255
|
+
throw _e(K.DUPLICATE_USE_I18N_CALLING);
|
|
5252
5256
|
return i;
|
|
5253
5257
|
}
|
|
5254
5258
|
function Mc(e, t) {
|
|
5255
5259
|
const n = Ps(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Jn(e)) : n.run(() => gr(e));
|
|
5256
5260
|
if (r == null)
|
|
5257
|
-
throw
|
|
5261
|
+
throw _e(K.UNEXPECTED_ERROR);
|
|
5258
5262
|
return [n, r];
|
|
5259
5263
|
}
|
|
5260
5264
|
function Uc(e) {
|
|
5261
5265
|
const t = Us(e.isCE ? kc : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
5262
5266
|
if (!t)
|
|
5263
|
-
throw
|
|
5267
|
+
throw _e(e.isCE ? K.NOT_INSTALLED_WITH_PROVIDE : K.UNEXPECTED_ERROR);
|
|
5264
5268
|
return t;
|
|
5265
5269
|
}
|
|
5266
5270
|
function Bc(e, t) {
|
|
@@ -5315,7 +5319,7 @@ function Yc(e, t) {
|
|
|
5315
5319
|
return Wc.forEach((a) => {
|
|
5316
5320
|
const s = Object.getOwnPropertyDescriptor(t, a);
|
|
5317
5321
|
if (!s)
|
|
5318
|
-
throw
|
|
5322
|
+
throw _e(K.UNEXPECTED_ERROR);
|
|
5319
5323
|
const o = Ms(s.value) ? {
|
|
5320
5324
|
get() {
|
|
5321
5325
|
return s.value.value;
|
|
@@ -5333,7 +5337,7 @@ function Yc(e, t) {
|
|
|
5333
5337
|
}), e.config.globalProperties.$i18n = n, oa.forEach((a) => {
|
|
5334
5338
|
const s = Object.getOwnPropertyDescriptor(t, a);
|
|
5335
5339
|
if (!s || !s.value)
|
|
5336
|
-
throw
|
|
5340
|
+
throw _e(K.UNEXPECTED_ERROR);
|
|
5337
5341
|
Object.defineProperty(e.config.globalProperties, `$${a}`, s);
|
|
5338
5342
|
}), () => {
|
|
5339
5343
|
delete e.config.globalProperties.$i18n, oa.forEach((a) => {
|
|
@@ -5540,7 +5544,7 @@ const xe = De("cloudSdkThemesStore", {
|
|
|
5540
5544
|
*/
|
|
5541
5545
|
SA_THEMES_SET(e) {
|
|
5542
5546
|
if (this.themesName = e || "light", !ua()) {
|
|
5543
|
-
__cc_isEEUiApp ?
|
|
5547
|
+
__cc_isEEUiApp ? vr.warning("仅Android设置支持主题功能") : vr.warning("仅客户端或Chrome浏览器支持主题功能");
|
|
5544
5548
|
return;
|
|
5545
5549
|
}
|
|
5546
5550
|
this.synchTheme(e);
|
|
@@ -5641,6 +5645,8 @@ const $t = Os(), tu = Is(), Cn = eu(), Cs = De("cloudSdkWindowStore", {
|
|
|
5641
5645
|
state: () => ({
|
|
5642
5646
|
// ServerUrl
|
|
5643
5647
|
cacheServerUrl: "",
|
|
5648
|
+
// 客户端信息
|
|
5649
|
+
cacheClientInfo: {},
|
|
5644
5650
|
// 客户端ID(希望不变的,除非清除浏览器缓存或者卸载应用)
|
|
5645
5651
|
cacheClientId: "",
|
|
5646
5652
|
// 缓存版本号(如果想升级后清除客户端缓存则修改此参数值)
|
|
@@ -5769,7 +5775,7 @@ const $t = Os(), tu = Is(), Cn = eu(), Cs = De("cloudSdkWindowStore", {
|
|
|
5769
5775
|
function zn(e) {
|
|
5770
5776
|
return typeof e == "string" && e.trim() !== "" && e !== "undefined";
|
|
5771
5777
|
}
|
|
5772
|
-
const Me = "syCacheAppInfo", Ue = "syCacheAppToken",
|
|
5778
|
+
const Me = "syCacheAppInfo", Ue = "syCacheAppToken", At = "syCacheAppJwt", vt = "syCacheAppRbac", ha = {
|
|
5773
5779
|
nickname: "",
|
|
5774
5780
|
staff_nickname: "",
|
|
5775
5781
|
id: 0,
|
|
@@ -5798,7 +5804,7 @@ const Me = "syCacheAppInfo", Ue = "syCacheAppToken", vt = "syCacheAppJwt", At =
|
|
|
5798
5804
|
// 账号信息
|
|
5799
5805
|
accountInfo: O.localGet(Me) || {},
|
|
5800
5806
|
accountToken: O.localGet(Ue) || "",
|
|
5801
|
-
accountJwt: O.localGet(
|
|
5807
|
+
accountJwt: O.localGet(At) || ""
|
|
5802
5808
|
}),
|
|
5803
5809
|
getters: {
|
|
5804
5810
|
cacheBizsId: (e) => {
|
|
@@ -5881,21 +5887,21 @@ const Me = "syCacheAppInfo", Ue = "syCacheAppToken", vt = "syCacheAppJwt", At =
|
|
|
5881
5887
|
return this.account_nick;
|
|
5882
5888
|
},
|
|
5883
5889
|
SA_ACCOUNT_REFRESH() {
|
|
5884
|
-
this.accountInfo = O.localGet(Me) || ha, this.accountToken = O.localGet(Ue) || "", this.accountJwt = O.localGet(
|
|
5890
|
+
this.accountInfo = O.localGet(Me) || ha, this.accountToken = O.localGet(Ue) || "", this.accountJwt = O.localGet(At) || "", ue.setDefHeaders({
|
|
5885
5891
|
syOpenAppToken: this.accountToken || "",
|
|
5886
5892
|
Authorization: "Bearer " + this.accountJwt || ""
|
|
5887
5893
|
});
|
|
5888
5894
|
},
|
|
5889
5895
|
// 登录
|
|
5890
5896
|
async SA_ACCOUNT_SIGNIN(e) {
|
|
5891
|
-
e = this.SA_ACCOUNT_INFO_PARSE(e), O.localSet(Me, e), O.localSet(Ue, e.token_access || ""), O.localSet(
|
|
5897
|
+
e = this.SA_ACCOUNT_INFO_PARSE(e), O.localSet(Me, e), O.localSet(Ue, e.token_access || ""), O.localSet(At, e.token_jwt || ""), O.localSet(vt, ""), this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0), O.idbSave(Ue, e.token_access || ""), Tt().QK_SEND_LOGIN_MSG();
|
|
5892
5898
|
},
|
|
5893
5899
|
/**
|
|
5894
5900
|
* 登出(打开登录页面)
|
|
5895
5901
|
* @param appendFrom
|
|
5896
5902
|
*/
|
|
5897
5903
|
SA_ACCOUNT_LOGOUT() {
|
|
5898
|
-
this.ACCOUNT_SET_PREV(), O.sessionClear(), O.localSet(Me, ""), O.localSet(Ue, ""), O.localSet(
|
|
5904
|
+
this.ACCOUNT_SET_PREV(), O.sessionClear(), O.localSet(Me, ""), O.localSet(Ue, ""), O.localSet(At, ""), O.localSet(vt, ""), O.localDel(Me), O.localDel(Ue), O.localDel(At), O.localDel(vt), this.SA_ACCOUNT_REFRESH(), Tt().QK_SEND_LOGOUT_MSG();
|
|
5899
5905
|
},
|
|
5900
5906
|
/**
|
|
5901
5907
|
* @param {Boolean} isForce 是否强制刷新
|
|
@@ -5903,9 +5909,9 @@ const Me = "syCacheAppInfo", Ue = "syCacheAppToken", vt = "syCacheAppJwt", At =
|
|
|
5903
5909
|
async SA_ACCOUNT_RBAC_REFRESH(e) {
|
|
5904
5910
|
return e = e || !1, new Promise(async (t) => {
|
|
5905
5911
|
if (this.accountToken) {
|
|
5906
|
-
let n = O.localGet(
|
|
5912
|
+
let n = O.localGet(vt) || "";
|
|
5907
5913
|
e && n == "" ? await ue.flagGet("ORG_SYS_BASE_MYRBAC", {}).then((r) => {
|
|
5908
|
-
r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (O.localSet(
|
|
5914
|
+
r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (O.localSet(vt, r.data || ""), t(r.data || ""));
|
|
5909
5915
|
}).catch(() => {
|
|
5910
5916
|
t("");
|
|
5911
5917
|
}) : t(n);
|
|
@@ -6018,7 +6024,7 @@ const tn = De("cloudSdkProductStore", {
|
|
|
6018
6024
|
isAlone: !0,
|
|
6019
6025
|
name: "login",
|
|
6020
6026
|
path: "/login",
|
|
6021
|
-
component: () => import("./login-
|
|
6027
|
+
component: () => import("./login-Ck4AmN-v.js")
|
|
6022
6028
|
}
|
|
6023
6029
|
], ou = [
|
|
6024
6030
|
{
|
|
@@ -6026,14 +6032,14 @@ const tn = De("cloudSdkProductStore", {
|
|
|
6026
6032
|
isAlone: !0,
|
|
6027
6033
|
name: "alone_run",
|
|
6028
6034
|
path: "/alone_run",
|
|
6029
|
-
component: () => import("./alone_run-
|
|
6035
|
+
component: () => import("./alone_run-BFVXgGM5.js")
|
|
6030
6036
|
},
|
|
6031
6037
|
{
|
|
6032
6038
|
meta: { title: "错误", isAlone: !0 },
|
|
6033
6039
|
isAlone: !0,
|
|
6034
6040
|
name: "404",
|
|
6035
6041
|
path: "/:catchAll(.*)",
|
|
6036
|
-
component: () => import("./404-
|
|
6042
|
+
component: () => import("./404-W2ex1LOt.js")
|
|
6037
6043
|
}
|
|
6038
6044
|
], iu = [
|
|
6039
6045
|
{
|
|
@@ -6041,7 +6047,7 @@ const tn = De("cloudSdkProductStore", {
|
|
|
6041
6047
|
isAlone: !1,
|
|
6042
6048
|
name: "none",
|
|
6043
6049
|
path: "/none",
|
|
6044
|
-
component: () => import("./none-
|
|
6050
|
+
component: () => import("./none-C0SUxMqb.js")
|
|
6045
6051
|
}
|
|
6046
6052
|
], nn = De("cloudSdkPermissionStore", {
|
|
6047
6053
|
state: () => ({
|
|
@@ -6247,8 +6253,8 @@ const ke = (e, t) => {
|
|
|
6247
6253
|
}
|
|
6248
6254
|
}, du = { class: "cloud-sett-drawer-body" }, mu = { class: "cloud-sett-drawer-skin" };
|
|
6249
6255
|
function hu(e, t, n, r, a, s) {
|
|
6250
|
-
const o = B("el-card"), i = B("el-form-item"), l = B("el-option"), c = B("el-select"), f = B("cv-icons"), u = B("el-button"), m = B("el-switch"), p = B("el-form"),
|
|
6251
|
-
return U(),
|
|
6256
|
+
const o = B("el-card"), i = B("el-form-item"), l = B("el-option"), c = B("el-select"), f = B("cv-icons"), u = B("el-button"), m = B("el-switch"), p = B("el-form"), v = B("el-drawer");
|
|
6257
|
+
return U(), z(v, {
|
|
6252
6258
|
title: "系统设置",
|
|
6253
6259
|
modelValue: a.localVal,
|
|
6254
6260
|
"onUpdate:modelValue": t[6] || (t[6] = (E) => a.localVal = E),
|
|
@@ -6256,19 +6262,19 @@ function hu(e, t, n, r, a, s) {
|
|
|
6256
6262
|
size: "450px",
|
|
6257
6263
|
"before-close": s.frameTopSysSettClose
|
|
6258
6264
|
}, {
|
|
6259
|
-
default:
|
|
6260
|
-
|
|
6265
|
+
default: P(() => [
|
|
6266
|
+
R("div", du, [
|
|
6261
6267
|
D(p, {
|
|
6262
6268
|
labelWidth: "auto",
|
|
6263
6269
|
"label-position": "left"
|
|
6264
6270
|
}, {
|
|
6265
|
-
default:
|
|
6271
|
+
default: P(() => [
|
|
6266
6272
|
D(i, {
|
|
6267
6273
|
label: "风格",
|
|
6268
6274
|
"label-position": "top"
|
|
6269
6275
|
}, {
|
|
6270
|
-
default:
|
|
6271
|
-
|
|
6276
|
+
default: P(() => [
|
|
6277
|
+
R("div", mu, [
|
|
6272
6278
|
D(o),
|
|
6273
6279
|
D(o),
|
|
6274
6280
|
D(o)
|
|
@@ -6277,21 +6283,21 @@ function hu(e, t, n, r, a, s) {
|
|
|
6277
6283
|
_: 1
|
|
6278
6284
|
}),
|
|
6279
6285
|
D(i, { label: "主题" }, {
|
|
6280
|
-
default:
|
|
6286
|
+
default: P(() => [
|
|
6281
6287
|
D(c, {
|
|
6282
6288
|
modelValue: a.frameSysTheme,
|
|
6283
6289
|
"onUpdate:modelValue": t[0] || (t[0] = (E) => a.frameSysTheme = E),
|
|
6284
6290
|
placeholder: e.$t("选项主题"),
|
|
6285
6291
|
style: { width: "150px" }
|
|
6286
6292
|
}, {
|
|
6287
|
-
default:
|
|
6288
|
-
(U(!0), Q(he, null, Qe(e.themesList, (E, L) => (U(),
|
|
6293
|
+
default: P(() => [
|
|
6294
|
+
(U(!0), Q(he, null, Qe(e.themesList, (E, L) => (U(), z(l, {
|
|
6289
6295
|
label: e.$t(E.name),
|
|
6290
6296
|
value: E.value,
|
|
6291
6297
|
key: L
|
|
6292
6298
|
}, {
|
|
6293
|
-
default:
|
|
6294
|
-
|
|
6299
|
+
default: P(() => [
|
|
6300
|
+
re(Z(e.$t(E.name)), 1)
|
|
6295
6301
|
]),
|
|
6296
6302
|
_: 2
|
|
6297
6303
|
}, 1032, ["label", "value"]))), 128))
|
|
@@ -6302,23 +6308,23 @@ function hu(e, t, n, r, a, s) {
|
|
|
6302
6308
|
_: 1
|
|
6303
6309
|
}),
|
|
6304
6310
|
D(i, { label: "暗黑模式" }, {
|
|
6305
|
-
default:
|
|
6306
|
-
a.frameSysTheme == "light" ? (U(),
|
|
6311
|
+
default: P(() => [
|
|
6312
|
+
a.frameSysTheme == "light" ? (U(), z(u, {
|
|
6307
6313
|
key: 0,
|
|
6308
6314
|
onClick: t[1] || (t[1] = (E) => a.frameSysTheme = "dark"),
|
|
6309
6315
|
class: "light-switch"
|
|
6310
6316
|
}, {
|
|
6311
|
-
default:
|
|
6317
|
+
default: P(() => [
|
|
6312
6318
|
D(f, { type: "cvSvgViewModeDark" })
|
|
6313
6319
|
]),
|
|
6314
6320
|
_: 1
|
|
6315
6321
|
})) : fe("", !0),
|
|
6316
|
-
a.frameSysTheme == "dark" ? (U(),
|
|
6322
|
+
a.frameSysTheme == "dark" ? (U(), z(u, {
|
|
6317
6323
|
key: 1,
|
|
6318
6324
|
onClick: t[2] || (t[2] = (E) => a.frameSysTheme = "light"),
|
|
6319
6325
|
class: "dark-switch"
|
|
6320
6326
|
}, {
|
|
6321
|
-
default:
|
|
6327
|
+
default: P(() => [
|
|
6322
6328
|
D(f, { type: "cvSvgViewModeLight" })
|
|
6323
6329
|
]),
|
|
6324
6330
|
_: 1
|
|
@@ -6327,7 +6333,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
6327
6333
|
_: 1
|
|
6328
6334
|
}),
|
|
6329
6335
|
D(i, { label: "侧栏显示" }, {
|
|
6330
|
-
default:
|
|
6336
|
+
default: P(() => [
|
|
6331
6337
|
D(m, {
|
|
6332
6338
|
modelValue: a.frameSidebarState,
|
|
6333
6339
|
"onUpdate:modelValue": t[3] || (t[3] = (E) => a.frameSidebarState = E),
|
|
@@ -6340,7 +6346,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
6340
6346
|
_: 1
|
|
6341
6347
|
}),
|
|
6342
6348
|
D(i, { label: "导航标签栏" }, {
|
|
6343
|
-
default:
|
|
6349
|
+
default: P(() => [
|
|
6344
6350
|
D(m, {
|
|
6345
6351
|
modelValue: a.frameSysNavTabs,
|
|
6346
6352
|
"onUpdate:modelValue": t[4] || (t[4] = (E) => a.frameSysNavTabs = E),
|
|
@@ -6353,20 +6359,20 @@ function hu(e, t, n, r, a, s) {
|
|
|
6353
6359
|
_: 1
|
|
6354
6360
|
}),
|
|
6355
6361
|
D(i, { label: "语言" }, {
|
|
6356
|
-
default:
|
|
6362
|
+
default: P(() => [
|
|
6357
6363
|
D(c, {
|
|
6358
6364
|
modelValue: a.frameSysLanguage,
|
|
6359
6365
|
"onUpdate:modelValue": t[5] || (t[5] = (E) => a.frameSysLanguage = E),
|
|
6360
6366
|
placeholder: e.$t("选项语言"),
|
|
6361
6367
|
style: { width: "150px" }
|
|
6362
6368
|
}, {
|
|
6363
|
-
default:
|
|
6364
|
-
(U(!0), Q(he, null, Qe(e.languageSelect, (E, L) => (U(),
|
|
6369
|
+
default: P(() => [
|
|
6370
|
+
(U(!0), Q(he, null, Qe(e.languageSelect, (E, L) => (U(), z(l, {
|
|
6365
6371
|
label: E.label,
|
|
6366
6372
|
value: E.value
|
|
6367
6373
|
}, {
|
|
6368
|
-
default:
|
|
6369
|
-
|
|
6374
|
+
default: P(() => [
|
|
6375
|
+
re(Z(E.label), 1)
|
|
6370
6376
|
]),
|
|
6371
6377
|
_: 2
|
|
6372
6378
|
}, 1032, ["label", "value"]))), 256))
|
|
@@ -6377,10 +6383,10 @@ function hu(e, t, n, r, a, s) {
|
|
|
6377
6383
|
_: 1
|
|
6378
6384
|
}),
|
|
6379
6385
|
D(i, { label: "版本" }, {
|
|
6380
|
-
default:
|
|
6386
|
+
default: P(() => [
|
|
6381
6387
|
D(u, { onClick: s.frameUpdateVersion }, {
|
|
6382
|
-
default:
|
|
6383
|
-
|
|
6388
|
+
default: P(() => [
|
|
6389
|
+
re(Z(e.$t("更新版本")), 1)
|
|
6384
6390
|
]),
|
|
6385
6391
|
_: 1
|
|
6386
6392
|
}, 8, ["onClick"])
|
|
@@ -6388,10 +6394,10 @@ function hu(e, t, n, r, a, s) {
|
|
|
6388
6394
|
_: 1
|
|
6389
6395
|
}),
|
|
6390
6396
|
D(i, { label: "缓存" }, {
|
|
6391
|
-
default:
|
|
6397
|
+
default: P(() => [
|
|
6392
6398
|
D(u, { onClick: s.frameClearCache }, {
|
|
6393
|
-
default:
|
|
6394
|
-
|
|
6399
|
+
default: P(() => [
|
|
6400
|
+
re(Z(e.$t("清除缓存")), 1)
|
|
6395
6401
|
]),
|
|
6396
6402
|
_: 1
|
|
6397
6403
|
}, 8, ["onClick"])
|
|
@@ -6430,19 +6436,19 @@ const gu = /* @__PURE__ */ ke(_u, [["render", hu]]), pu = {
|
|
|
6430
6436
|
};
|
|
6431
6437
|
function Eu(e, t, n, r, a, s) {
|
|
6432
6438
|
const o = B("router-view");
|
|
6433
|
-
return U(),
|
|
6434
|
-
default:
|
|
6439
|
+
return U(), z(o, { key: a.routeRefreshNum }, {
|
|
6440
|
+
default: P(({ Component: i, route: l }) => [
|
|
6435
6441
|
D(Vs, {
|
|
6436
6442
|
name: a.routeRefreshAnimation,
|
|
6437
6443
|
mode: "out-in",
|
|
6438
6444
|
appear: ""
|
|
6439
6445
|
}, {
|
|
6440
|
-
default:
|
|
6446
|
+
default: P(() => [
|
|
6441
6447
|
(U(), Q("div", {
|
|
6442
6448
|
class: ya(n.className),
|
|
6443
6449
|
key: l.path
|
|
6444
6450
|
}, [
|
|
6445
|
-
(U(),
|
|
6451
|
+
(U(), z($s(i)))
|
|
6446
6452
|
], 2))
|
|
6447
6453
|
]),
|
|
6448
6454
|
_: 2
|
|
@@ -6451,7 +6457,7 @@ function Eu(e, t, n, r, a, s) {
|
|
|
6451
6457
|
_: 1
|
|
6452
6458
|
});
|
|
6453
6459
|
}
|
|
6454
|
-
const Su = /* @__PURE__ */ ke(pu, [["render", Eu]]), Ea = (e) => Math.pow(e, 3), bu = (e) => e < 0.5 ? Ea(e * 2) / 2 : 1 - Ea((1 - e) * 2) / 2,
|
|
6460
|
+
const Su = /* @__PURE__ */ ke(pu, [["render", Eu]]), Ea = (e) => Math.pow(e, 3), bu = (e) => e < 0.5 ? Ea(e * 2) / 2 : 1 - Ea((1 - e) * 2) / 2, Au = {
|
|
6455
6461
|
name: "SameNavTabs",
|
|
6456
6462
|
data() {
|
|
6457
6463
|
return {
|
|
@@ -6573,25 +6579,25 @@ const Su = /* @__PURE__ */ ke(pu, [["render", Eu]]), Ea = (e) => Math.pow(e, 3),
|
|
|
6573
6579
|
this.contextMenuVisible = !1;
|
|
6574
6580
|
}
|
|
6575
6581
|
}
|
|
6576
|
-
},
|
|
6582
|
+
}, vu = { class: "cloud-navtabs__wrap" }, yu = { class: "cloud-navtabs__box" }, Nu = { class: "cloud-navtabs__main" }, Tu = { class: "cloud-navtabs__tags" };
|
|
6577
6583
|
function Ou(e, t, n, r, a, s) {
|
|
6578
6584
|
const o = B("cv-icons"), i = B("cv-btn-base"), l = B("el-tag"), c = B("el-scrollbar"), f = B("cv-btn-text");
|
|
6579
|
-
return U(), Q("div",
|
|
6580
|
-
|
|
6585
|
+
return U(), Q("div", vu, [
|
|
6586
|
+
R("div", yu, [
|
|
6581
6587
|
D(i, {
|
|
6582
6588
|
class: "btn-opt-left",
|
|
6583
6589
|
onClick: s.changeGdtLeft
|
|
6584
6590
|
}, {
|
|
6585
|
-
default:
|
|
6591
|
+
default: P(() => [
|
|
6586
6592
|
D(o, { type: "ElIconArrowLeft" })
|
|
6587
6593
|
]),
|
|
6588
6594
|
_: 1
|
|
6589
6595
|
}, 8, ["onClick"]),
|
|
6590
|
-
|
|
6596
|
+
R("div", Nu, [
|
|
6591
6597
|
D(c, { ref: "navScroll1" }, {
|
|
6592
|
-
default:
|
|
6593
|
-
|
|
6594
|
-
(U(!0), Q(he, null, Qe(a.sett_tags, (u, m) => (U(),
|
|
6598
|
+
default: P(() => [
|
|
6599
|
+
R("div", Tu, [
|
|
6600
|
+
(U(!0), Q(he, null, Qe(a.sett_tags, (u, m) => (U(), z(l, {
|
|
6595
6601
|
id: a.activeTag == u.name ? "tagId" : "",
|
|
6596
6602
|
class: ya(["tag xxxxxx-tag", a.activeTag == u.name ? "active" : ""]),
|
|
6597
6603
|
key: u.name,
|
|
@@ -6601,8 +6607,8 @@ function Ou(e, t, n, r, a, s) {
|
|
|
6601
6607
|
"disable-transitions": "",
|
|
6602
6608
|
onContextmenu: Ws(s.openContextMenu, ["prevent"])
|
|
6603
6609
|
}, {
|
|
6604
|
-
default:
|
|
6605
|
-
|
|
6610
|
+
default: P(() => [
|
|
6611
|
+
re(Z(u.title), 1)
|
|
6606
6612
|
]),
|
|
6607
6613
|
_: 2
|
|
6608
6614
|
}, 1032, ["id", "class", "closable", "onClose", "onClick", "onContextmenu"]))), 128))
|
|
@@ -6615,78 +6621,78 @@ function Ou(e, t, n, r, a, s) {
|
|
|
6615
6621
|
class: "btn-opt-right",
|
|
6616
6622
|
onClick: s.changeGdtRight
|
|
6617
6623
|
}, {
|
|
6618
|
-
default:
|
|
6624
|
+
default: P(() => [
|
|
6619
6625
|
D(o, { type: "ElIconArrowRight" })
|
|
6620
6626
|
]),
|
|
6621
6627
|
_: 1
|
|
6622
6628
|
}, 8, ["onClick"]),
|
|
6623
6629
|
D(i, { class: "btn-opt-close" }, {
|
|
6624
|
-
default:
|
|
6625
|
-
t[5] || (t[5] =
|
|
6630
|
+
default: P(() => [
|
|
6631
|
+
t[5] || (t[5] = re(" 关闭操作 ")),
|
|
6626
6632
|
D(o, { type: "ElIconCaretBottom" })
|
|
6627
6633
|
]),
|
|
6628
6634
|
_: 1,
|
|
6629
6635
|
__: [5]
|
|
6630
6636
|
}),
|
|
6631
|
-
Na(
|
|
6637
|
+
Na(R("div", {
|
|
6632
6638
|
class: "cloud-navtabs__contextmenu",
|
|
6633
6639
|
style: Pn(a.contextMenuStyle)
|
|
6634
6640
|
}, [
|
|
6635
|
-
|
|
6641
|
+
R("ul", {
|
|
6636
6642
|
style: Pn({ left: a.left + "px", top: a.top + "px" })
|
|
6637
6643
|
}, [
|
|
6638
|
-
|
|
6644
|
+
R("li", null, [
|
|
6639
6645
|
D(f, {
|
|
6640
6646
|
onClick: t[0] || (t[0] = (u) => s.curTabReload())
|
|
6641
6647
|
}, {
|
|
6642
|
-
default:
|
|
6643
|
-
|
|
6648
|
+
default: P(() => t[6] || (t[6] = [
|
|
6649
|
+
re("重新加载")
|
|
6644
6650
|
])),
|
|
6645
6651
|
_: 1,
|
|
6646
6652
|
__: [6]
|
|
6647
6653
|
})
|
|
6648
6654
|
]),
|
|
6649
|
-
|
|
6655
|
+
R("li", null, [
|
|
6650
6656
|
D(f, {
|
|
6651
6657
|
onClick: t[1] || (t[1] = (u) => s.closeAllTabs())
|
|
6652
6658
|
}, {
|
|
6653
|
-
default:
|
|
6654
|
-
|
|
6659
|
+
default: P(() => t[7] || (t[7] = [
|
|
6660
|
+
re("关闭所有")
|
|
6655
6661
|
])),
|
|
6656
6662
|
_: 1,
|
|
6657
6663
|
__: [7]
|
|
6658
6664
|
})
|
|
6659
6665
|
]),
|
|
6660
|
-
|
|
6666
|
+
R("li", null, [
|
|
6661
6667
|
D(f, {
|
|
6662
6668
|
onClick: t[2] || (t[2] = (u) => s.closeOtherTabs("left")),
|
|
6663
6669
|
disabled: a.isDisabledCloseLeftBtnFlag
|
|
6664
6670
|
}, {
|
|
6665
|
-
default:
|
|
6666
|
-
|
|
6671
|
+
default: P(() => t[8] || (t[8] = [
|
|
6672
|
+
re("关闭左边")
|
|
6667
6673
|
])),
|
|
6668
6674
|
_: 1,
|
|
6669
6675
|
__: [8]
|
|
6670
6676
|
}, 8, ["disabled"])
|
|
6671
6677
|
]),
|
|
6672
|
-
|
|
6678
|
+
R("li", null, [
|
|
6673
6679
|
D(f, {
|
|
6674
6680
|
onClick: t[3] || (t[3] = (u) => s.closeOtherTabs("right")),
|
|
6675
6681
|
disabled: a.isDisabledCloseRightBtnFlag
|
|
6676
6682
|
}, {
|
|
6677
|
-
default:
|
|
6678
|
-
|
|
6683
|
+
default: P(() => t[9] || (t[9] = [
|
|
6684
|
+
re("关闭右边")
|
|
6679
6685
|
])),
|
|
6680
6686
|
_: 1,
|
|
6681
6687
|
__: [9]
|
|
6682
6688
|
}, 8, ["disabled"])
|
|
6683
6689
|
]),
|
|
6684
|
-
|
|
6690
|
+
R("li", null, [
|
|
6685
6691
|
D(f, {
|
|
6686
6692
|
onClick: t[4] || (t[4] = (u) => s.closeOtherTabs("other"))
|
|
6687
6693
|
}, {
|
|
6688
|
-
default:
|
|
6689
|
-
|
|
6694
|
+
default: P(() => t[10] || (t[10] = [
|
|
6695
|
+
re("关闭其他")
|
|
6690
6696
|
])),
|
|
6691
6697
|
_: 1,
|
|
6692
6698
|
__: [10]
|
|
@@ -6699,7 +6705,7 @@ function Ou(e, t, n, r, a, s) {
|
|
|
6699
6705
|
])
|
|
6700
6706
|
]);
|
|
6701
6707
|
}
|
|
6702
|
-
const Iu = /* @__PURE__ */ ke(
|
|
6708
|
+
const Iu = /* @__PURE__ */ ke(Au, [["render", Ou]]), Cu = {
|
|
6703
6709
|
name: "SidebarMenuItem",
|
|
6704
6710
|
props: {
|
|
6705
6711
|
menuData: {
|
|
@@ -6755,22 +6761,22 @@ function Pu(e, t, n, r, a, s) {
|
|
|
6755
6761
|
const o = B("cv-icons"), i = B("SidebarMenuItem", !0), l = B("el-sub-menu"), c = B("cv-badge"), f = B("el-menu-item");
|
|
6756
6762
|
return U(!0), Q(he, null, Qe(n.menuData, (u) => (U(), Q(he, null, [
|
|
6757
6763
|
u.isMenu == !0 ? (U(), Q(he, { key: 0 }, [
|
|
6758
|
-
u.children && u.children.length > 0 && u.children_menu_num > 0 ? (U(),
|
|
6764
|
+
u.children && u.children.length > 0 && u.children_menu_num > 0 ? (U(), z(l, {
|
|
6759
6765
|
key: u.name,
|
|
6760
6766
|
index: u.name
|
|
6761
6767
|
}, {
|
|
6762
|
-
title:
|
|
6763
|
-
|
|
6764
|
-
u.meta.icon ? (U(),
|
|
6768
|
+
title: P(() => [
|
|
6769
|
+
R("div", Lu, [
|
|
6770
|
+
u.meta.icon ? (U(), z(o, {
|
|
6765
6771
|
key: 0,
|
|
6766
6772
|
type: u.meta.icon,
|
|
6767
6773
|
size: "16"
|
|
6768
6774
|
}, null, 8, ["type"])) : fe("", !0),
|
|
6769
|
-
!u.meta.icon && n.collapse ? (U(), Q("span", wu,
|
|
6775
|
+
!u.meta.icon && n.collapse ? (U(), Q("span", wu, Z(u.meta.short || u.meta.title), 1)) : fe("", !0)
|
|
6770
6776
|
]),
|
|
6771
|
-
|
|
6777
|
+
R("span", null, Z(u.meta.title || u.meta.short), 1)
|
|
6772
6778
|
]),
|
|
6773
|
-
default:
|
|
6779
|
+
default: P(() => [
|
|
6774
6780
|
D(i, {
|
|
6775
6781
|
appData: n.appData,
|
|
6776
6782
|
menuData: u.children,
|
|
@@ -6779,24 +6785,24 @@ function Pu(e, t, n, r, a, s) {
|
|
|
6779
6785
|
}, null, 8, ["appData", "menuData", "collapse"])
|
|
6780
6786
|
]),
|
|
6781
6787
|
_: 2
|
|
6782
|
-
}, 1032, ["index"])) : (U(),
|
|
6788
|
+
}, 1032, ["index"])) : (U(), z(f, {
|
|
6783
6789
|
index: u.name,
|
|
6784
6790
|
key: "b" + u.name,
|
|
6785
6791
|
onClick: (m) => s.handleOpenMenu(u)
|
|
6786
6792
|
}, {
|
|
6787
|
-
title:
|
|
6788
|
-
|
|
6793
|
+
title: P(() => [
|
|
6794
|
+
re(Z(u.meta.short || u.meta.title), 1)
|
|
6789
6795
|
]),
|
|
6790
|
-
default:
|
|
6791
|
-
!u.meta.icon && n.collapse && !n.isChildren ? (U(), Q("div", Du,
|
|
6792
|
-
u.meta.icon ? (U(),
|
|
6796
|
+
default: P(() => [
|
|
6797
|
+
!u.meta.icon && n.collapse && !n.isChildren ? (U(), Q("div", Du, Z(u.meta.short || u.meta.title), 1)) : (U(), Q("div", Ru, [
|
|
6798
|
+
u.meta.icon ? (U(), z(o, {
|
|
6793
6799
|
key: 0,
|
|
6794
6800
|
type: u.meta.icon,
|
|
6795
6801
|
size: "16"
|
|
6796
6802
|
}, null, 8, ["type"])) : fe("", !0)
|
|
6797
6803
|
])),
|
|
6798
6804
|
u.meta.badge && s.currBadge(u.meta.badge) ? (U(), Q(he, { key: 2 }, [
|
|
6799
|
-
s.currBadge(u.meta.badge) > 0 ? (U(),
|
|
6805
|
+
s.currBadge(u.meta.badge) > 0 ? (U(), z(c, {
|
|
6800
6806
|
key: 0,
|
|
6801
6807
|
class: "menu-badge",
|
|
6802
6808
|
type: "danger",
|
|
@@ -6859,8 +6865,8 @@ const ku = /* @__PURE__ */ ke(Cu, [["render", Pu]]), Fu = {
|
|
|
6859
6865
|
function xu(e, t, n, r, a, s) {
|
|
6860
6866
|
const o = B("SidebarMenuItem"), i = B("el-menu");
|
|
6861
6867
|
return U(), Q("div", Mu, [
|
|
6862
|
-
|
|
6863
|
-
|
|
6868
|
+
R("div", Uu, Z(e.openCaseInfo.LAST_IP_TITLE), 1),
|
|
6869
|
+
R("div", Bu, [
|
|
6864
6870
|
D(i, {
|
|
6865
6871
|
collapse: n.collapse,
|
|
6866
6872
|
"default-openeds": a.menuDefaultOpeneds,
|
|
@@ -6868,7 +6874,7 @@ function xu(e, t, n, r, a, s) {
|
|
|
6868
6874
|
onOpen: s.handleOpen,
|
|
6869
6875
|
onClose: s.handleClose
|
|
6870
6876
|
}, {
|
|
6871
|
-
default:
|
|
6877
|
+
default: P(() => [
|
|
6872
6878
|
D(o, {
|
|
6873
6879
|
appData: e.openCaseInfo,
|
|
6874
6880
|
menuData: a.menuCurrList,
|
|
@@ -6942,18 +6948,18 @@ const Gu = /* @__PURE__ */ ke(Fu, [["render", xu]]), Vu = {
|
|
|
6942
6948
|
}, $u = { class: "dialog-footer" };
|
|
6943
6949
|
function Wu(e, t, n, r, a, s) {
|
|
6944
6950
|
const o = B("el-input"), i = B("el-form-item"), l = B("el-form"), c = B("el-button"), f = B("el-dialog");
|
|
6945
|
-
return U(),
|
|
6951
|
+
return U(), z(f, {
|
|
6946
6952
|
width: 520,
|
|
6947
6953
|
modelValue: a.visible,
|
|
6948
6954
|
"onUpdate:modelValue": t[3] || (t[3] = (u) => a.visible = u),
|
|
6949
6955
|
title: "修改密码",
|
|
6950
6956
|
onClose: s.handleCancel
|
|
6951
6957
|
}, {
|
|
6952
|
-
footer:
|
|
6953
|
-
|
|
6958
|
+
footer: P(() => [
|
|
6959
|
+
R("div", $u, [
|
|
6954
6960
|
D(c, { onClick: s.handleCancel }, {
|
|
6955
|
-
default:
|
|
6956
|
-
|
|
6961
|
+
default: P(() => t[4] || (t[4] = [
|
|
6962
|
+
re("取 消")
|
|
6957
6963
|
])),
|
|
6958
6964
|
_: 1,
|
|
6959
6965
|
__: [4]
|
|
@@ -6962,25 +6968,25 @@ function Wu(e, t, n, r, a, s) {
|
|
|
6962
6968
|
type: "primary",
|
|
6963
6969
|
onClick: s.handleBeforeOk
|
|
6964
6970
|
}, {
|
|
6965
|
-
default:
|
|
6966
|
-
|
|
6971
|
+
default: P(() => t[5] || (t[5] = [
|
|
6972
|
+
re("确 定")
|
|
6967
6973
|
])),
|
|
6968
6974
|
_: 1,
|
|
6969
6975
|
__: [5]
|
|
6970
6976
|
}, 8, ["onClick"])
|
|
6971
6977
|
])
|
|
6972
6978
|
]),
|
|
6973
|
-
default:
|
|
6979
|
+
default: P(() => [
|
|
6974
6980
|
D(l, {
|
|
6975
6981
|
model: a.formData,
|
|
6976
6982
|
"label-width": "auto"
|
|
6977
6983
|
}, {
|
|
6978
|
-
default:
|
|
6984
|
+
default: P(() => [
|
|
6979
6985
|
D(i, {
|
|
6980
6986
|
prop: "old_pwd",
|
|
6981
6987
|
label: "原密码"
|
|
6982
6988
|
}, {
|
|
6983
|
-
default:
|
|
6989
|
+
default: P(() => [
|
|
6984
6990
|
D(o, {
|
|
6985
6991
|
type: "password",
|
|
6986
6992
|
"show-password": "",
|
|
@@ -6994,7 +7000,7 @@ function Wu(e, t, n, r, a, s) {
|
|
|
6994
7000
|
prop: "new_pwd1",
|
|
6995
7001
|
label: "新密码"
|
|
6996
7002
|
}, {
|
|
6997
|
-
default:
|
|
7003
|
+
default: P(() => [
|
|
6998
7004
|
D(o, {
|
|
6999
7005
|
type: "password",
|
|
7000
7006
|
"show-password": "",
|
|
@@ -7008,7 +7014,7 @@ function Wu(e, t, n, r, a, s) {
|
|
|
7008
7014
|
prop: "new_pwd2",
|
|
7009
7015
|
label: "确认密码"
|
|
7010
7016
|
}, {
|
|
7011
|
-
default:
|
|
7017
|
+
default: P(() => [
|
|
7012
7018
|
D(o, {
|
|
7013
7019
|
type: "password",
|
|
7014
7020
|
"show-password": "",
|
|
@@ -7114,17 +7120,17 @@ const Yu = /* @__PURE__ */ ke(Vu, [["render", Wu]]), Hu = {
|
|
|
7114
7120
|
function lf(e, t, n, r, a, s) {
|
|
7115
7121
|
const o = B("el-input"), i = B("el-button"), l = B("cv-icons");
|
|
7116
7122
|
return U(), Q("div", Ku, [
|
|
7117
|
-
|
|
7118
|
-
|
|
7123
|
+
R("div", ju, [
|
|
7124
|
+
R("div", {
|
|
7119
7125
|
class: "cloud-login-change-reset",
|
|
7120
7126
|
onClick: t[0] || (t[0] = (...c) => s.chainReselection && s.chainReselection(...c))
|
|
7121
|
-
},
|
|
7122
|
-
t[3] || (t[3] =
|
|
7123
|
-
t[4] || (t[4] =
|
|
7124
|
-
|
|
7125
|
-
|
|
7127
|
+
}, Z(n.reselectTitle), 1),
|
|
7128
|
+
t[3] || (t[3] = R("div", { class: "cloud-login-change-title" }, "选择商户", -1)),
|
|
7129
|
+
t[4] || (t[4] = R("div", { class: "cloud-login-change-desc" }, [
|
|
7130
|
+
R("p", null, "为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),
|
|
7131
|
+
R("p", null, "后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")
|
|
7126
7132
|
], -1)),
|
|
7127
|
-
|
|
7133
|
+
R("div", qu, [
|
|
7128
7134
|
D(o, {
|
|
7129
7135
|
modelValue: a.chainKeyword,
|
|
7130
7136
|
"onUpdate:modelValue": t[1] || (t[1] = (c) => a.chainKeyword = c),
|
|
@@ -7138,38 +7144,38 @@ function lf(e, t, n, r, a, s) {
|
|
|
7138
7144
|
size: "large",
|
|
7139
7145
|
onClick: s.handleSearch
|
|
7140
7146
|
}, {
|
|
7141
|
-
default:
|
|
7142
|
-
|
|
7147
|
+
default: P(() => t[2] || (t[2] = [
|
|
7148
|
+
re("搜索")
|
|
7143
7149
|
])),
|
|
7144
7150
|
_: 1,
|
|
7145
7151
|
__: [2]
|
|
7146
7152
|
}, 8, ["onClick"])
|
|
7147
7153
|
]),
|
|
7148
|
-
|
|
7149
|
-
|
|
7154
|
+
R("div", Xu, [
|
|
7155
|
+
R("div", Qu, [
|
|
7150
7156
|
(U(!0), Q(he, null, Qe(a.chainLastList, (c, f) => (U(), Q("div", {
|
|
7151
7157
|
class: "cloud-login-change-group-item",
|
|
7152
7158
|
key: f
|
|
7153
7159
|
}, [
|
|
7154
|
-
|
|
7155
|
-
|
|
7160
|
+
R("div", Ju, Z(c.title || "无") + "(" + Z(c.total) + ")", 1),
|
|
7161
|
+
R("div", zu, [
|
|
7156
7162
|
(U(!0), Q(he, null, Qe(c.list, (u, m) => (U(), Q("div", {
|
|
7157
7163
|
class: "cloud-login-change-item-bao",
|
|
7158
7164
|
key: m,
|
|
7159
7165
|
onClick: (p) => s.chainSelection(u)
|
|
7160
7166
|
}, [
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7167
|
+
R("div", ef, [
|
|
7168
|
+
R("div", tf, [
|
|
7169
|
+
R("img", {
|
|
7164
7170
|
src: u.business_icon_cdn
|
|
7165
7171
|
}, null, 8, nf)
|
|
7166
7172
|
])
|
|
7167
7173
|
]),
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7174
|
+
R("div", rf, [
|
|
7175
|
+
R("div", af, Z(u.business_name), 1),
|
|
7176
|
+
R("div", sf, "【" + Z(u.acc_rules_type_str) + "】", 1)
|
|
7171
7177
|
]),
|
|
7172
|
-
|
|
7178
|
+
R("div", of, [
|
|
7173
7179
|
D(l, { type: "ElIconArrowRight" })
|
|
7174
7180
|
])
|
|
7175
7181
|
], 8, Zu))), 128))
|
|
@@ -7213,8 +7219,11 @@ const cf = /* @__PURE__ */ ke(Hu, [["render", lf]]), uf = {
|
|
|
7213
7219
|
},
|
|
7214
7220
|
computed: {
|
|
7215
7221
|
headerInfoName() {
|
|
7216
|
-
|
|
7217
|
-
|
|
7222
|
+
return (this.accountInfo || {}).business_name || "";
|
|
7223
|
+
},
|
|
7224
|
+
headerInfoNick() {
|
|
7225
|
+
let e = this.accountInfo || {};
|
|
7226
|
+
return e.staff_nick || e.account_mobile_hide || e.account_nick;
|
|
7218
7227
|
}
|
|
7219
7228
|
},
|
|
7220
7229
|
watch: {
|
|
@@ -7331,37 +7340,37 @@ const cf = /* @__PURE__ */ ke(Hu, [["render", lf]]), uf = {
|
|
|
7331
7340
|
}, Sf = {
|
|
7332
7341
|
key: 0,
|
|
7333
7342
|
class: "chopt-num"
|
|
7334
|
-
}, bf = { class: "cloud-header__info" },
|
|
7335
|
-
function
|
|
7336
|
-
const o = B("cv-icons"), i = B("el-breadcrumb-item"), l = B("el-breadcrumb"), c = B("el-dropdown-item"), f = B("el-dropdown-menu"), u = B("el-dropdown"), m = B("SidebarMenuBox"), p = B("SameNavTabs"),
|
|
7343
|
+
}, bf = { class: "cloud-header__info" }, Af = ["src"], vf = { class: "chinfo-infoname" }, yf = { class: "chinfo-infobname" }, Nf = { class: "chinfo-infouname" }, Tf = { class: "cloud-sidebar__wrap" }, Of = { class: "cloud-pages__wrap" };
|
|
7344
|
+
function If(e, t, n, r, a, s) {
|
|
7345
|
+
const o = B("cv-icons"), i = B("el-breadcrumb-item"), l = B("el-breadcrumb"), c = B("el-dropdown-item"), f = B("el-dropdown-menu"), u = B("el-dropdown"), m = B("SidebarMenuBox"), p = B("SameNavTabs"), v = B("SameRouteView"), E = B("HeaderSysSettDrawer"), L = B("ChangePassword"), h = B("SwitchBusiness");
|
|
7337
7346
|
return U(), Q("div", ff, [
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7347
|
+
R("header", _f, [
|
|
7348
|
+
R("div", df, [
|
|
7349
|
+
R("a", mf, [
|
|
7350
|
+
R("img", {
|
|
7342
7351
|
class: "cloud-header__logo-img",
|
|
7343
7352
|
src: e.openCaseInfo.LAST_IP_LOGO,
|
|
7344
7353
|
alt: ""
|
|
7345
7354
|
}, null, 8, hf)
|
|
7346
7355
|
]),
|
|
7347
|
-
|
|
7356
|
+
R("div", gf, Z(e.openCaseInfo.LAST_IP_BRAND), 1)
|
|
7348
7357
|
]),
|
|
7349
|
-
|
|
7358
|
+
R("div", {
|
|
7350
7359
|
class: "cloud-header__opt",
|
|
7351
7360
|
onClick: t[0] || (t[0] = (...g) => s.frameSwicthMenu && s.frameSwicthMenu(...g))
|
|
7352
7361
|
}, [
|
|
7353
|
-
a.frameSidebarOpen == "on" ? (U(),
|
|
7362
|
+
a.frameSidebarOpen == "on" ? (U(), z(o, {
|
|
7354
7363
|
key: 0,
|
|
7355
7364
|
type: "ElIconFold",
|
|
7356
7365
|
size: "20"
|
|
7357
7366
|
})) : fe("", !0),
|
|
7358
|
-
a.frameSidebarOpen == "off" ? (U(),
|
|
7367
|
+
a.frameSidebarOpen == "off" ? (U(), z(o, {
|
|
7359
7368
|
key: 1,
|
|
7360
7369
|
type: "ElIconExpand",
|
|
7361
7370
|
size: "20"
|
|
7362
7371
|
})) : fe("", !0)
|
|
7363
7372
|
]),
|
|
7364
|
-
|
|
7373
|
+
R("div", {
|
|
7365
7374
|
class: "cloud-header__opt",
|
|
7366
7375
|
onClick: t[1] || (t[1] = (...g) => s.framePageRefresh && s.framePageRefresh(...g))
|
|
7367
7376
|
}, [
|
|
@@ -7370,24 +7379,24 @@ function Tf(e, t, n, r, a, s) {
|
|
|
7370
7379
|
size: "20"
|
|
7371
7380
|
})
|
|
7372
7381
|
]),
|
|
7373
|
-
|
|
7382
|
+
R("div", pf, [
|
|
7374
7383
|
D(l, { separator: "/" }, {
|
|
7375
|
-
default:
|
|
7376
|
-
(U(!0), Q(he, null, Qe(a.breadcrumbPath, (g,
|
|
7377
|
-
|
|
7378
|
-
key:
|
|
7384
|
+
default: P(() => [
|
|
7385
|
+
(U(!0), Q(he, null, Qe(a.breadcrumbPath, (g, T) => (U(), Q(he, null, [
|
|
7386
|
+
T == a.breadcrumbPath.length - 1 || !g.path || g.path == "" ? (U(), z(i, {
|
|
7387
|
+
key: T,
|
|
7379
7388
|
class: "no-redirect"
|
|
7380
7389
|
}, {
|
|
7381
|
-
default:
|
|
7382
|
-
|
|
7390
|
+
default: P(() => [
|
|
7391
|
+
re(Z(g.title), 1)
|
|
7383
7392
|
]),
|
|
7384
7393
|
_: 2
|
|
7385
|
-
}, 1024)) : (U(),
|
|
7386
|
-
key: "b" +
|
|
7394
|
+
}, 1024)) : (U(), z(i, {
|
|
7395
|
+
key: "b" + T,
|
|
7387
7396
|
to: { path: g.path }
|
|
7388
7397
|
}, {
|
|
7389
|
-
default:
|
|
7390
|
-
|
|
7398
|
+
default: P(() => [
|
|
7399
|
+
re(Z(g.title), 1)
|
|
7391
7400
|
]),
|
|
7392
7401
|
_: 2
|
|
7393
7402
|
}, 1032, ["to"]))
|
|
@@ -7396,8 +7405,8 @@ function Tf(e, t, n, r, a, s) {
|
|
|
7396
7405
|
_: 1
|
|
7397
7406
|
})
|
|
7398
7407
|
]),
|
|
7399
|
-
t[13] || (t[13] =
|
|
7400
|
-
|
|
7408
|
+
t[13] || (t[13] = R("div", { class: "cloud-header__seat" }, null, -1)),
|
|
7409
|
+
R("div", {
|
|
7401
7410
|
class: "cloud-header__opt chopt-relative",
|
|
7402
7411
|
onClick: t[2] || (t[2] = (g) => s.frameHandleCommand("msg"))
|
|
7403
7412
|
}, [
|
|
@@ -7405,9 +7414,9 @@ function Tf(e, t, n, r, a, s) {
|
|
|
7405
7414
|
type: "ElIconChatLineRound",
|
|
7406
7415
|
size: "20"
|
|
7407
7416
|
}),
|
|
7408
|
-
a.chatUnreadTotal > 0 ? (U(), Q("em", Ef,
|
|
7417
|
+
a.chatUnreadTotal > 0 ? (U(), Q("em", Ef, Z(a.chatUnreadTotal > 99 ? "99+" : a.chatUnreadTotal), 1)) : fe("", !0)
|
|
7409
7418
|
]),
|
|
7410
|
-
|
|
7419
|
+
R("div", {
|
|
7411
7420
|
class: "cloud-header__opt chopt-relative",
|
|
7412
7421
|
onClick: t[3] || (t[3] = (g) => s.frameHandleCommand("gongdan"))
|
|
7413
7422
|
}, [
|
|
@@ -7415,34 +7424,34 @@ function Tf(e, t, n, r, a, s) {
|
|
|
7415
7424
|
type: "ElIconMessage",
|
|
7416
7425
|
size: "20"
|
|
7417
7426
|
}),
|
|
7418
|
-
a.emailUnreadTotal > 0 ? (U(), Q("em", Sf,
|
|
7427
|
+
a.emailUnreadTotal > 0 ? (U(), Q("em", Sf, Z(a.emailUnreadTotal > 99 ? "99+" : a.emailUnreadTotal), 1)) : fe("", !0)
|
|
7419
7428
|
]),
|
|
7420
|
-
|
|
7429
|
+
R("div", bf, [
|
|
7421
7430
|
D(u, {
|
|
7422
7431
|
onCommand: s.frameHandleCommand,
|
|
7423
7432
|
"popper-class": "cloud-header__info_dropdown"
|
|
7424
7433
|
}, {
|
|
7425
|
-
dropdown:
|
|
7434
|
+
dropdown: P(() => [
|
|
7426
7435
|
D(f, null, {
|
|
7427
|
-
default:
|
|
7436
|
+
default: P(() => [
|
|
7428
7437
|
D(c, { command: "account_change" }, {
|
|
7429
|
-
default:
|
|
7438
|
+
default: P(() => [
|
|
7430
7439
|
D(o, {
|
|
7431
7440
|
type: "cvSvgPeopleSwitch",
|
|
7432
7441
|
size: "15"
|
|
7433
7442
|
}),
|
|
7434
|
-
t[9] || (t[9] =
|
|
7443
|
+
t[9] || (t[9] = re(" 切换账号 "))
|
|
7435
7444
|
]),
|
|
7436
7445
|
_: 1,
|
|
7437
7446
|
__: [9]
|
|
7438
7447
|
}),
|
|
7439
7448
|
D(c, { command: "account_chgpwd" }, {
|
|
7440
|
-
default:
|
|
7449
|
+
default: P(() => [
|
|
7441
7450
|
D(o, {
|
|
7442
7451
|
type: "cvSvgBaseLockOff",
|
|
7443
7452
|
size: "15"
|
|
7444
7453
|
}),
|
|
7445
|
-
t[10] || (t[10] =
|
|
7454
|
+
t[10] || (t[10] = re(" 修改密码 "))
|
|
7446
7455
|
]),
|
|
7447
7456
|
_: 1,
|
|
7448
7457
|
__: [10]
|
|
@@ -7451,23 +7460,23 @@ function Tf(e, t, n, r, a, s) {
|
|
|
7451
7460
|
command: "clearCache",
|
|
7452
7461
|
divided: ""
|
|
7453
7462
|
}, {
|
|
7454
|
-
default:
|
|
7463
|
+
default: P(() => [
|
|
7455
7464
|
D(o, {
|
|
7456
7465
|
type: "ElIconDelete",
|
|
7457
7466
|
size: "15"
|
|
7458
7467
|
}),
|
|
7459
|
-
t[11] || (t[11] =
|
|
7468
|
+
t[11] || (t[11] = re(" 清除缓存 "))
|
|
7460
7469
|
]),
|
|
7461
7470
|
_: 1,
|
|
7462
7471
|
__: [11]
|
|
7463
7472
|
}),
|
|
7464
7473
|
D(c, { command: "logout" }, {
|
|
7465
|
-
default:
|
|
7474
|
+
default: P(() => [
|
|
7466
7475
|
D(o, {
|
|
7467
7476
|
type: "cvSvgArrowExportRight",
|
|
7468
7477
|
size: "14"
|
|
7469
7478
|
}),
|
|
7470
|
-
t[12] || (t[12] =
|
|
7479
|
+
t[12] || (t[12] = re(" 退出登录 "))
|
|
7471
7480
|
]),
|
|
7472
7481
|
_: 1,
|
|
7473
7482
|
__: [12]
|
|
@@ -7476,38 +7485,41 @@ function Tf(e, t, n, r, a, s) {
|
|
|
7476
7485
|
_: 1
|
|
7477
7486
|
})
|
|
7478
7487
|
]),
|
|
7479
|
-
default:
|
|
7480
|
-
|
|
7481
|
-
|
|
7488
|
+
default: P(() => [
|
|
7489
|
+
R("span", null, [
|
|
7490
|
+
R("img", {
|
|
7482
7491
|
class: "chinfo-avatar",
|
|
7483
7492
|
src: e.accountInfo.account_avatar_cdn,
|
|
7484
7493
|
title: "头像"
|
|
7485
|
-
}, null, 8,
|
|
7486
|
-
|
|
7494
|
+
}, null, 8, Af),
|
|
7495
|
+
R("div", vf, [
|
|
7496
|
+
R("div", yf, Z(s.headerInfoName), 1),
|
|
7497
|
+
R("div", Nf, Z(s.headerInfoNick), 1)
|
|
7498
|
+
]),
|
|
7487
7499
|
D(o, { type: "ElIconArrowDown" })
|
|
7488
7500
|
])
|
|
7489
7501
|
]),
|
|
7490
7502
|
_: 1
|
|
7491
7503
|
}, 8, ["onCommand"])
|
|
7492
7504
|
]),
|
|
7493
|
-
|
|
7505
|
+
R("div", {
|
|
7494
7506
|
title: "全屏",
|
|
7495
7507
|
class: "cloud-header__opt",
|
|
7496
7508
|
onClick: t[4] || (t[4] = (...g) => s.frameFullScreen && s.frameFullScreen(...g)),
|
|
7497
7509
|
style: { "min-width": "50px" }
|
|
7498
7510
|
}, [
|
|
7499
|
-
a.full_screen ? fe("", !0) : (U(),
|
|
7511
|
+
a.full_screen ? fe("", !0) : (U(), z(o, {
|
|
7500
7512
|
key: 0,
|
|
7501
7513
|
type: "cvSvgArrowScreenUnfold",
|
|
7502
7514
|
size: "20"
|
|
7503
7515
|
})),
|
|
7504
|
-
a.full_screen ? (U(),
|
|
7516
|
+
a.full_screen ? (U(), z(o, {
|
|
7505
7517
|
key: 1,
|
|
7506
7518
|
type: "cvSvgArrowScreenFold",
|
|
7507
7519
|
size: "20"
|
|
7508
7520
|
})) : fe("", !0)
|
|
7509
7521
|
]),
|
|
7510
|
-
|
|
7522
|
+
R("div", {
|
|
7511
7523
|
title: "设置",
|
|
7512
7524
|
class: "cloud-header__opt",
|
|
7513
7525
|
onClick: t[5] || (t[5] = (...g) => s.frameTopSysSettOpen && s.frameTopSysSettOpen(...g)),
|
|
@@ -7519,16 +7531,16 @@ function Tf(e, t, n, r, a, s) {
|
|
|
7519
7531
|
})
|
|
7520
7532
|
])
|
|
7521
7533
|
]),
|
|
7522
|
-
|
|
7534
|
+
R("section", Tf, [
|
|
7523
7535
|
D(m, {
|
|
7524
7536
|
collapse: a.frameSidebarOpen == "off"
|
|
7525
7537
|
}, null, 8, ["collapse"])
|
|
7526
7538
|
]),
|
|
7527
|
-
|
|
7539
|
+
R("section", Of, [
|
|
7528
7540
|
Na(D(p, null, null, 512), [
|
|
7529
7541
|
[Ta, e.layoutNavTabs == "on"]
|
|
7530
7542
|
]),
|
|
7531
|
-
D(
|
|
7543
|
+
D(v, { className: "cloud-pages__box" })
|
|
7532
7544
|
]),
|
|
7533
7545
|
D(E, {
|
|
7534
7546
|
modelValue: a.frameHeadSysSettDia,
|
|
@@ -7538,7 +7550,7 @@ function Tf(e, t, n, r, a, s) {
|
|
|
7538
7550
|
modelValue: a.changeShowFlag,
|
|
7539
7551
|
"onUpdate:modelValue": t[7] || (t[7] = (g) => a.changeShowFlag = g)
|
|
7540
7552
|
}, null, 8, ["modelValue"]),
|
|
7541
|
-
a.chainShowFlag ? (U(),
|
|
7553
|
+
a.chainShowFlag ? (U(), z(h, {
|
|
7542
7554
|
key: 0,
|
|
7543
7555
|
modelValue: a.chainAccountList,
|
|
7544
7556
|
"onUpdate:modelValue": t[8] || (t[8] = (g) => a.chainAccountList = g),
|
|
@@ -7549,7 +7561,7 @@ function Tf(e, t, n, r, a, s) {
|
|
|
7549
7561
|
}, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) : fe("", !0)
|
|
7550
7562
|
]);
|
|
7551
7563
|
}
|
|
7552
|
-
const
|
|
7564
|
+
const Xf = /* @__PURE__ */ ke(uf, [["render", If]]), Cf = {
|
|
7553
7565
|
data() {
|
|
7554
7566
|
return {
|
|
7555
7567
|
watemarkText: "shiyun"
|
|
@@ -7575,16 +7587,16 @@ const jf = /* @__PURE__ */ ke(uf, [["render", Tf]]), Of = {
|
|
|
7575
7587
|
}
|
|
7576
7588
|
}
|
|
7577
7589
|
};
|
|
7578
|
-
function
|
|
7590
|
+
function Lf(e, t, n, r, a, s) {
|
|
7579
7591
|
const o = B("el-watermark");
|
|
7580
|
-
return U(),
|
|
7581
|
-
default:
|
|
7592
|
+
return U(), z(o, Ys(s.watemarkConf, { style: { height: "100%" } }), {
|
|
7593
|
+
default: P(() => [
|
|
7582
7594
|
Hs(e.$slots, "default")
|
|
7583
7595
|
]),
|
|
7584
7596
|
_: 3
|
|
7585
7597
|
}, 16);
|
|
7586
7598
|
}
|
|
7587
|
-
const
|
|
7599
|
+
const Qf = /* @__PURE__ */ ke(Cf, [["render", Lf]]);
|
|
7588
7600
|
(function() {
|
|
7589
7601
|
if (typeof EventTarget < "u") {
|
|
7590
7602
|
let e = EventTarget.prototype.addEventListener;
|
|
@@ -7593,7 +7605,7 @@ const qf = /* @__PURE__ */ ke(Of, [["render", If]]);
|
|
|
7593
7605
|
};
|
|
7594
7606
|
}
|
|
7595
7607
|
})();
|
|
7596
|
-
function
|
|
7608
|
+
function wf(e, t, n = !1) {
|
|
7597
7609
|
return n ? !!t.find((r) => r && r.indexOf("*") && new RegExp("^" + r.replace(/[-\/\\^$+?.()|[\]{}]/g, "\\$&").replace(/\*/g, ".*") + "$", "g").test(e) ? !0 : r == e) : t.includes(e);
|
|
7598
7610
|
}
|
|
7599
7611
|
const Sa = {
|
|
@@ -7700,15 +7712,15 @@ class rn {
|
|
|
7700
7712
|
return this.flagMap = Object.assign({}, this.flagMap, t || {}), this;
|
|
7701
7713
|
}
|
|
7702
7714
|
setApiAuth(t) {
|
|
7703
|
-
return this.
|
|
7715
|
+
return this.flagAuth = t || {}, this;
|
|
7704
7716
|
}
|
|
7705
7717
|
appendApiAuth(t) {
|
|
7706
|
-
return this.
|
|
7718
|
+
return this.flagAuth = Object.assign({}, this.flagAuth, t || {}), this;
|
|
7707
7719
|
}
|
|
7708
7720
|
/**
|
|
7709
7721
|
* 设置header参数
|
|
7710
7722
|
* @param {Object} options
|
|
7711
|
-
* @
|
|
7723
|
+
* @return {Class} this
|
|
7712
7724
|
*/
|
|
7713
7725
|
setDefHeaders(t) {
|
|
7714
7726
|
return this.headers = Object.assign({}, this.headers, t || {}), this.requestHandle.defaults.headers = this.headers, this;
|
|
@@ -7719,7 +7731,7 @@ class rn {
|
|
|
7719
7731
|
/**
|
|
7720
7732
|
* 设置requests参数
|
|
7721
7733
|
* @param {Object} options
|
|
7722
|
-
* @
|
|
7734
|
+
* @return {Class} this
|
|
7723
7735
|
*/
|
|
7724
7736
|
setDefRequests(t) {
|
|
7725
7737
|
return this.requests = Object.assign({}, this.requests, t || {}), this.requestHandle.defaults.requests = this.requests, this;
|
|
@@ -7731,7 +7743,7 @@ class rn {
|
|
|
7731
7743
|
* 设置body 参数
|
|
7732
7744
|
* 设置 额外参数
|
|
7733
7745
|
* @param {Object} options
|
|
7734
|
-
* @
|
|
7746
|
+
* @return {Class} this
|
|
7735
7747
|
*/
|
|
7736
7748
|
setOptions(t = {}) {
|
|
7737
7749
|
return this.canshuOpt = Object.assign({}, this.canshuOpt, t || {}), this;
|
|
@@ -7757,6 +7769,14 @@ class rn {
|
|
|
7757
7769
|
encrypt() {
|
|
7758
7770
|
return this.encryptFlag = !0, this;
|
|
7759
7771
|
}
|
|
7772
|
+
__encryp_parse(t) {
|
|
7773
|
+
let n = !1;
|
|
7774
|
+
if (this.encryptURL && wf(t, this.encryptURL, !0) && (n = !0), this.encryptFlag && (n = !0), n) {
|
|
7775
|
+
const r = window.navigator.userAgent;
|
|
7776
|
+
(/Windows NT 5.1|Windows XP/.test(r) || r.indexOf("Windows NT 6.0") !== -1 || r.indexOf("Windows NT 6.1") !== -1 || r.indexOf("Windows NT 6.2") !== -1) && (n = !1);
|
|
7777
|
+
}
|
|
7778
|
+
return n;
|
|
7779
|
+
}
|
|
7760
7780
|
/**
|
|
7761
7781
|
* 请求成功
|
|
7762
7782
|
*/
|
|
@@ -7802,15 +7822,16 @@ class rn {
|
|
|
7802
7822
|
* 设置自定义业务响应
|
|
7803
7823
|
*/
|
|
7804
7824
|
resetNetResponse(t) {
|
|
7805
|
-
let n = t.status || t.code || -1;
|
|
7825
|
+
let n = t.status || t.code || -1, r = t.msg || t.message || "操作失败";
|
|
7806
7826
|
switch (n = parseInt(n), n) {
|
|
7807
7827
|
// 没有凭证,请登录
|
|
7808
7828
|
case 100101:
|
|
7809
|
-
this.resetNetError({ type: "error", message:
|
|
7829
|
+
this.resetNetError({ type: "error", message: r });
|
|
7810
7830
|
break;
|
|
7811
7831
|
// 无效凭证,请重新登录
|
|
7812
7832
|
case 100102:
|
|
7813
|
-
|
|
7833
|
+
let a = Object.assign(t, { type: "error", message: r });
|
|
7834
|
+
this.resetNetError(a);
|
|
7814
7835
|
break;
|
|
7815
7836
|
// 凭证过期,请重新登录
|
|
7816
7837
|
case 100103:
|
|
@@ -7821,8 +7842,8 @@ class rn {
|
|
|
7821
7842
|
break;
|
|
7822
7843
|
case 404:
|
|
7823
7844
|
case 100404:
|
|
7824
|
-
let
|
|
7825
|
-
return this.resetNetError({ type: "error", message: `${
|
|
7845
|
+
let s = t.msg || "操作失败";
|
|
7846
|
+
return this.resetNetError({ type: "error", message: `${s}` }), Promise.reject(t);
|
|
7826
7847
|
// 处理成功
|
|
7827
7848
|
case 200:
|
|
7828
7849
|
return t;
|
|
@@ -7846,13 +7867,9 @@ class rn {
|
|
|
7846
7867
|
apiAll(t, n, r) {
|
|
7847
7868
|
n.includes("http://") || n.includes("https://"), n = n.replace(/([^:]\/)\/+/g, "$1"), this.requestHandle.defaults.headers = this.headers, this.requestHandle.defaults.requests = this.requests;
|
|
7848
7869
|
let a = this.canshuOpt || {};
|
|
7849
|
-
this.canshuOpt = {};
|
|
7850
|
-
let s =
|
|
7851
|
-
if (
|
|
7852
|
-
const o = window.navigator.userAgent;
|
|
7853
|
-
(/Windows NT 5.1|Windows XP/.test(o) || o.indexOf("Windows NT 6.0") !== -1 || o.indexOf("Windows NT 6.1") !== -1 || o.indexOf("Windows NT 6.2") !== -1) && (s = !1);
|
|
7854
|
-
}
|
|
7855
|
-
if (t == "POST")
|
|
7870
|
+
this.canshuOpt = {}, this.__encryp_parse(n);
|
|
7871
|
+
let s = this.__parse_method_type(t);
|
|
7872
|
+
if (s == "POST")
|
|
7856
7873
|
return this.requestHandle.post(n, r, {
|
|
7857
7874
|
...a
|
|
7858
7875
|
// headers: {
|
|
@@ -7860,28 +7877,28 @@ class rn {
|
|
|
7860
7877
|
// 'Accept': 'application/json, text/javascript, */*; q=0.01',
|
|
7861
7878
|
// }
|
|
7862
7879
|
});
|
|
7863
|
-
if (
|
|
7880
|
+
if (s == "GET")
|
|
7864
7881
|
return this.requestHandle.get(n, {
|
|
7865
7882
|
...a,
|
|
7866
7883
|
params: {
|
|
7867
7884
|
...r
|
|
7868
7885
|
}
|
|
7869
7886
|
});
|
|
7870
|
-
if (
|
|
7887
|
+
if (s == "PUT")
|
|
7871
7888
|
return this.requestHandle.put(n, {
|
|
7872
7889
|
...r
|
|
7873
7890
|
});
|
|
7874
|
-
if (
|
|
7891
|
+
if (s == "PATCH")
|
|
7875
7892
|
return this.requestHandle.patch(n, {
|
|
7876
7893
|
...r
|
|
7877
7894
|
});
|
|
7878
|
-
if (
|
|
7895
|
+
if (s == "DELETE")
|
|
7879
7896
|
return this.requestHandle.delete(n, {
|
|
7880
7897
|
data: {
|
|
7881
7898
|
...r
|
|
7882
7899
|
}
|
|
7883
7900
|
});
|
|
7884
|
-
if (
|
|
7901
|
+
if (s == "UPLOAD")
|
|
7885
7902
|
return this.requestHandle.post(n, r, {
|
|
7886
7903
|
...a,
|
|
7887
7904
|
headers: {
|
|
@@ -7889,6 +7906,9 @@ class rn {
|
|
|
7889
7906
|
}
|
|
7890
7907
|
});
|
|
7891
7908
|
}
|
|
7909
|
+
__parse_method_type(t) {
|
|
7910
|
+
return t;
|
|
7911
|
+
}
|
|
7892
7912
|
/**
|
|
7893
7913
|
* GET 请求
|
|
7894
7914
|
*/
|
|
@@ -7968,35 +7988,35 @@ class rn {
|
|
|
7968
7988
|
unifyApi(t, n, r) {
|
|
7969
7989
|
let a = this, s = r.length || 0;
|
|
7970
7990
|
if (s <= 0 || s > 3) {
|
|
7971
|
-
let
|
|
7972
|
-
return new Promise((
|
|
7991
|
+
let l = `-- ${n} : 参数为(1-3)个---`;
|
|
7992
|
+
return new Promise((c, f) => (this.resetNetError({ message: l }), f({ message: l })));
|
|
7973
7993
|
}
|
|
7974
7994
|
let o = "", i = "";
|
|
7975
7995
|
if (t == "flag") {
|
|
7976
|
-
let
|
|
7977
|
-
typeof
|
|
7996
|
+
let l = r[0];
|
|
7997
|
+
typeof l == "string" && (l = l || "", o = l == "" ? "" : this.flagMap[l] || ""), i = " flag" + n + `:传入的标示 { ${l} },未匹配到 apiUrl `;
|
|
7978
7998
|
}
|
|
7979
7999
|
if (t == "url" && (o = r[0], typeof o == "string" && (o = o || ""), i = " 未匹配到 apiUrl "), o == "")
|
|
7980
|
-
return new Promise((
|
|
8000
|
+
return new Promise((l, c) => (this.resetNetError({ message: i }), c({ message: i })));
|
|
7981
8001
|
if (s == 1)
|
|
7982
|
-
return function(
|
|
7983
|
-
return a.apiAll(n, o,
|
|
8002
|
+
return function(l) {
|
|
8003
|
+
return a.apiAll(n, o, l);
|
|
7984
8004
|
};
|
|
7985
8005
|
if (s == 2 || s == 3) {
|
|
7986
|
-
let
|
|
7987
|
-
if (
|
|
7988
|
-
|
|
7989
|
-
if (
|
|
8006
|
+
let l = {}, c = r[1], f = Object.prototype.toString.call(c);
|
|
8007
|
+
if (f === "[object String]" || f === "[object Number]") {
|
|
8008
|
+
let u = String(c).trim();
|
|
8009
|
+
if (/^\d+$/.test(u) && (o.endsWith("/") || (o += "/"), o += u), s == 3) {
|
|
7990
8010
|
let m = r[2];
|
|
7991
|
-
Object.prototype.toString.call(m) === "[object Object]" && (
|
|
8011
|
+
Object.prototype.toString.call(m) === "[object Object]" && (l = m || {});
|
|
7992
8012
|
}
|
|
7993
|
-
} else
|
|
7994
|
-
return a.apiAll(n, o,
|
|
8013
|
+
} else f === "[object Object]" ? l = c || {} : f === "[object FormData]" && (l = c || new FormData());
|
|
8014
|
+
return a.apiAll(n, o, l);
|
|
7995
8015
|
} else
|
|
7996
|
-
return new Promise((
|
|
8016
|
+
return new Promise((l, c) => c({ message: " 请求错误 " }));
|
|
7997
8017
|
}
|
|
7998
8018
|
}
|
|
7999
|
-
const
|
|
8019
|
+
const Df = {
|
|
8000
8020
|
BASE_LOAD_COMMON_API_FLAG: "/base.base_load/common/api_flag",
|
|
8001
8021
|
BASE_LOAD_COMMON_API_AUTH: "/base.base_load/common/api_auth",
|
|
8002
8022
|
BASE_LOAD_COMMON_API_CODE: "/base.base_load/common/api_code",
|
|
@@ -8004,7 +8024,7 @@ const Lf = {
|
|
|
8004
8024
|
BASE_SYS_COMMON_PLAT_SETTING: "/base.base_sys/common/plat_setting",
|
|
8005
8025
|
BASE_SYS_COMMON_SYS_INFO: "/base.base_sys/common/system_info",
|
|
8006
8026
|
SDK_FILE_COMMON_UPLOAD_SIGNATURE: "/sdks.sdk_file/common/upload_signature"
|
|
8007
|
-
},
|
|
8027
|
+
}, Rf = {
|
|
8008
8028
|
BASE_LOAD_COMMON_API_FLAG: "app:true;auth:false;",
|
|
8009
8029
|
BASE_LOAD_COMMON_API_AUTH: "app:true;auth:false;",
|
|
8010
8030
|
BASE_LOAD_COMMON_API_CODE: "app:true;auth:false;",
|
|
@@ -8073,22 +8093,22 @@ function Ds(e = {}) {
|
|
|
8073
8093
|
});
|
|
8074
8094
|
let n = {}, r = {};
|
|
8075
8095
|
e && (n = e.ApiFlagSet || {}, r = e.ApiAuthSet || {});
|
|
8076
|
-
let a = Object.assign({},
|
|
8096
|
+
let a = Object.assign({}, Df, n, t.syOpenApiFlag), s = Object.assign({}, Rf, r, t.syOpenApiAuth);
|
|
8077
8097
|
return Xe.setApiFlag(a), Xe.setApiAuth(s), Xe;
|
|
8078
8098
|
}
|
|
8079
|
-
function
|
|
8099
|
+
function Pf() {
|
|
8080
8100
|
return Xe || (Xe = Ds()), Xe;
|
|
8081
8101
|
}
|
|
8082
8102
|
const ue = new Proxy(
|
|
8083
8103
|
{},
|
|
8084
8104
|
{
|
|
8085
8105
|
get(e, t) {
|
|
8086
|
-
const n =
|
|
8106
|
+
const n = Pf();
|
|
8087
8107
|
return typeof n[t] == "function" ? n[t].bind(n) : n[t];
|
|
8088
8108
|
}
|
|
8089
8109
|
}
|
|
8090
8110
|
);
|
|
8091
|
-
var
|
|
8111
|
+
var kf = {
|
|
8092
8112
|
methods: {
|
|
8093
8113
|
// 打开协议
|
|
8094
8114
|
jumpsXieyi(e) {
|
|
@@ -8141,25 +8161,25 @@ var Rf = {
|
|
|
8141
8161
|
}
|
|
8142
8162
|
}
|
|
8143
8163
|
};
|
|
8144
|
-
function
|
|
8145
|
-
e.mixin(
|
|
8164
|
+
function Ff(e) {
|
|
8165
|
+
e.mixin(kf);
|
|
8146
8166
|
}
|
|
8147
|
-
function
|
|
8167
|
+
function Aa(e, t, n) {
|
|
8148
8168
|
const r = t.value;
|
|
8149
8169
|
if (r)
|
|
8150
8170
|
ws(r) || !1 || e.parentNode && e.parentNode.removeChild(e);
|
|
8151
8171
|
else
|
|
8152
8172
|
throw new Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`);
|
|
8153
8173
|
}
|
|
8154
|
-
function
|
|
8174
|
+
function Mf(e, t, n) {
|
|
8155
8175
|
n = n || "vue3", n == "vue2" ? e.directive("auth", {
|
|
8156
|
-
inserted:
|
|
8176
|
+
inserted: Aa
|
|
8157
8177
|
}) : e.directive("auth", {
|
|
8158
|
-
mounted:
|
|
8178
|
+
mounted: Aa
|
|
8159
8179
|
}), t.$_auth = ws;
|
|
8160
8180
|
}
|
|
8161
|
-
/*! Element Plus v2.
|
|
8162
|
-
var
|
|
8181
|
+
/*! Element Plus v2.10.2 */
|
|
8182
|
+
var Uf = {
|
|
8163
8183
|
name: "zh-cn",
|
|
8164
8184
|
el: {
|
|
8165
8185
|
breadcrumb: {
|
|
@@ -8337,15 +8357,15 @@ var Ff = {
|
|
|
8337
8357
|
}
|
|
8338
8358
|
}
|
|
8339
8359
|
};
|
|
8340
|
-
function
|
|
8360
|
+
function Bf(e) {
|
|
8341
8361
|
e.use(Ks, {
|
|
8342
8362
|
// size: 'default',
|
|
8343
|
-
locale:
|
|
8363
|
+
locale: Uf
|
|
8344
8364
|
});
|
|
8345
8365
|
for (const [t, n] of Object.entries(Xs))
|
|
8346
8366
|
e.component("ElIcon" + t, n);
|
|
8347
8367
|
}
|
|
8348
|
-
function
|
|
8368
|
+
function xf(e) {
|
|
8349
8369
|
const t = Rt(), n = {
|
|
8350
8370
|
// upAction: lastConfig.VITE_SY_API_URL + 'sdks.sdk_file/common/upload_image',
|
|
8351
8371
|
signatureFn: ue.flagPost("SDK_FILE_COMMON_UPLOAD_SIGNATURE"),
|
|
@@ -8408,38 +8428,38 @@ function Uf(e) {
|
|
|
8408
8428
|
for (const [r, a] of Object.entries(Js))
|
|
8409
8429
|
e.component("cvSvg" + r, a);
|
|
8410
8430
|
}
|
|
8411
|
-
async function
|
|
8431
|
+
async function Jf(e, t) {
|
|
8412
8432
|
Zs(t), Ds(e), Ft().init(), xe().init(), await en().init(), await Te().init();
|
|
8413
8433
|
}
|
|
8414
|
-
async function
|
|
8434
|
+
async function zf(e, t, n, r, a = "", s = null) {
|
|
8415
8435
|
tn().init(r), nn().init(n);
|
|
8416
8436
|
let o = e.config.globalProperties;
|
|
8417
8437
|
o.$onLaunched = new Promise((l) => {
|
|
8418
8438
|
o.$isResolve = l;
|
|
8419
|
-
}), o.$request = ue, o.$cache = O,
|
|
8439
|
+
}), o.$request = ue, o.$cache = O, Bf(e), xf(e), Mf(e, o), e.mixin(fu()), Ff(e), await Gf(t, r, a), e.use(Ts);
|
|
8420
8440
|
let i = Ft().SA_LANGUAGE_GET();
|
|
8421
8441
|
Kc(i, s), window.$t = je.t;
|
|
8422
8442
|
}
|
|
8423
|
-
async function
|
|
8443
|
+
async function Gf(e, t, n) {
|
|
8424
8444
|
const r = Tt(), a = Te(), s = tn(), o = nn();
|
|
8425
8445
|
r.QK_SEND_MSG_REG_SUBMENU(t);
|
|
8426
8446
|
let i = Rt().syProductSign || "";
|
|
8427
8447
|
o.SA_PERMS_ROUTER_ADD(e, i), s.SA_MENU_PARSE(), r.QK_SEND_MSG_ROUTER_BEFORE(n);
|
|
8428
8448
|
let l = !1, c = !1, f = !1;
|
|
8429
8449
|
e.beforeEach((u, m, p) => {
|
|
8430
|
-
const
|
|
8450
|
+
const v = u.path || "", E = m.path, L = u.query || {};
|
|
8431
8451
|
let h = a.accountIsLogin;
|
|
8432
8452
|
if (me.__POWERED_BY_QIANKUN__ && (h = a.SA_ACCOUNT_IS_LOGGED()), L.token, h) {
|
|
8433
|
-
if (l || (s.SA_MENU_PARSE(), l = !0), E == "/" &&
|
|
8453
|
+
if (l || (s.SA_MENU_PARSE(), l = !0), E == "/" && v == "/none") {
|
|
8434
8454
|
if (o.SA_PERMS_ROUTER_CHECK({ name: "index" }))
|
|
8435
8455
|
return p({ path: "/" });
|
|
8436
8456
|
} else if (!o.SA_PERMS_ROUTER_CHECK(u))
|
|
8437
8457
|
return p({ path: "/none", replace: !0 });
|
|
8438
|
-
if ((E == "/login" || E == "/index") && (c || (r.QK_SEND_LOGIN_MSG(), c = !0, f = !1)), ["/login", "/alone_run"].includes(
|
|
8458
|
+
if ((E == "/login" || E == "/index") && (c || (r.QK_SEND_LOGIN_MSG(), c = !0, f = !1)), ["/login", "/alone_run"].includes(v))
|
|
8439
8459
|
return p({ path: "/" });
|
|
8440
8460
|
p();
|
|
8441
8461
|
} else {
|
|
8442
|
-
if (s.SA_MENU_PARSE(), l = !1, f || (r.QK_SEND_LOGOUT_MSG(), c = !1, f = !0), !["/login", "/alone_run"].includes(
|
|
8462
|
+
if (s.SA_MENU_PARSE(), l = !1, f || (r.QK_SEND_LOGOUT_MSG(), c = !1, f = !0), !["/login", "/alone_run"].includes(v))
|
|
8443
8463
|
return p({ path: "/login", replace: !0 });
|
|
8444
8464
|
p();
|
|
8445
8465
|
}
|
|
@@ -8447,12 +8467,12 @@ async function Bf(e, t, n) {
|
|
|
8447
8467
|
}), e.afterEach(function(u, m) {
|
|
8448
8468
|
var p;
|
|
8449
8469
|
if ((p = u == null ? void 0 : u.meta) != null && p.title && !me.__POWERED_BY_QIANKUN__) {
|
|
8450
|
-
let
|
|
8451
|
-
document.title = E ? `${E} - ${
|
|
8470
|
+
let v = "管理系统", E = u.meta.title;
|
|
8471
|
+
document.title = E ? `${E} - ${v}` : `${v}`;
|
|
8452
8472
|
}
|
|
8453
8473
|
});
|
|
8454
8474
|
}
|
|
8455
|
-
async function
|
|
8475
|
+
async function Zf(e, t, n) {
|
|
8456
8476
|
me.__POWERED_BY_QIANKUN__ ? fi(e, t, n) : t();
|
|
8457
8477
|
}
|
|
8458
8478
|
export {
|
|
@@ -8464,17 +8484,17 @@ export {
|
|
|
8464
8484
|
Te as c,
|
|
8465
8485
|
en as d,
|
|
8466
8486
|
Rt as e,
|
|
8467
|
-
|
|
8487
|
+
Xf as f,
|
|
8468
8488
|
Su as g,
|
|
8469
|
-
|
|
8489
|
+
Qf as h,
|
|
8470
8490
|
Tt as i,
|
|
8471
8491
|
Cs as j,
|
|
8472
8492
|
tn as k,
|
|
8473
8493
|
nn as l,
|
|
8474
8494
|
Ds as m,
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8495
|
+
Jf as n,
|
|
8496
|
+
zf as o,
|
|
8497
|
+
Zf as p,
|
|
8478
8498
|
me as q,
|
|
8479
8499
|
Zs as s,
|
|
8480
8500
|
Ft as u
|