yxuse 1.0.39 → 1.0.41
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/README.md +316 -7
- package/lib/index.cjs4.js +1 -1
- package/lib/index.cjs4.js.map +1 -1
- package/lib/index.cjs5.js +9 -9
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs5.js.map +1 -1
- package/lib/index.es4.js +67 -36
- package/lib/index.es4.js.map +1 -1
- package/lib/index.es5.js +159 -158
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es5.js.map +1 -1
- package/package.json +1 -1
package/lib/index.es5.js
CHANGED
|
@@ -3169,7 +3169,7 @@ function zt(e, t, n, o) {
|
|
|
3169
3169
|
}
|
|
3170
3170
|
}
|
|
3171
3171
|
const or = "components";
|
|
3172
|
-
function
|
|
3172
|
+
function fE(e, t) {
|
|
3173
3173
|
return cl(or, e, !0, t) || e;
|
|
3174
3174
|
}
|
|
3175
3175
|
const il = Symbol();
|
|
@@ -3209,7 +3209,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3209
3209
|
function Fi(e, t) {
|
|
3210
3210
|
return e && (e[t] || e[nt(t)] || e[ln(nt(t))]);
|
|
3211
3211
|
}
|
|
3212
|
-
function
|
|
3212
|
+
function dE(e, t, n, o) {
|
|
3213
3213
|
let r;
|
|
3214
3214
|
const s = n && n[o];
|
|
3215
3215
|
if (U(e) || ae(e)) {
|
|
@@ -7298,15 +7298,15 @@ const Oy = "/login", Cy = (e, t) => {
|
|
|
7298
7298
|
}
|
|
7299
7299
|
};
|
|
7300
7300
|
var iu = /* @__PURE__ */ ((e) => (e[e.SUCCESS = 200] = "SUCCESS", e[e.ERROR = 500] = "ERROR", e[e.OVERDUE = 401] = "OVERDUE", e[e.TIMEOUT = 3e4] = "TIMEOUT", e.TYPE = "success", e))(iu || {});
|
|
7301
|
-
const Ir = () => {
|
|
7301
|
+
const xy = () => sessionStorage.removeItem("GlobalState"), Ir = () => {
|
|
7302
7302
|
var n;
|
|
7303
7303
|
const e = sessionStorage.getItem("GlobalState");
|
|
7304
7304
|
return ((n = JSON.parse(e)) == null ? void 0 : n.token) || null;
|
|
7305
|
-
},
|
|
7305
|
+
}, Sy = () => {
|
|
7306
7306
|
var n;
|
|
7307
7307
|
const e = sessionStorage.getItem("GlobalState");
|
|
7308
7308
|
return ((n = JSON.parse(e)) == null ? void 0 : n.userInfo) || null;
|
|
7309
|
-
},
|
|
7309
|
+
}, Ty = async () => Ir() ? await Cu.request("/account/home/menu", "GET", "", !1, !0) : [], Dy = async (e) => {
|
|
7310
7310
|
if (!Ir())
|
|
7311
7311
|
return null;
|
|
7312
7312
|
try {
|
|
@@ -7318,7 +7318,7 @@ const Ir = () => {
|
|
|
7318
7318
|
} catch (t) {
|
|
7319
7319
|
return console.log("===", t), null;
|
|
7320
7320
|
}
|
|
7321
|
-
},
|
|
7321
|
+
}, Py = (e, t, n) => {
|
|
7322
7322
|
let o = [];
|
|
7323
7323
|
return e.forEach((r) => {
|
|
7324
7324
|
const s = `/src/views${r.routeView}/config.ts`, i = `/src/views${r.routeView}/index.vue`;
|
|
@@ -7335,30 +7335,31 @@ const Ir = () => {
|
|
|
7335
7335
|
o.push(c);
|
|
7336
7336
|
}
|
|
7337
7337
|
}), o;
|
|
7338
|
-
},
|
|
7338
|
+
}, pE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7339
7339
|
__proto__: null,
|
|
7340
7340
|
getToken: Ir,
|
|
7341
|
-
getUserInfo:
|
|
7342
|
-
getUserPermissions:
|
|
7343
|
-
getUserRouteList:
|
|
7344
|
-
getUserRouter:
|
|
7341
|
+
getUserInfo: Sy,
|
|
7342
|
+
getUserPermissions: Dy,
|
|
7343
|
+
getUserRouteList: Ty,
|
|
7344
|
+
getUserRouter: Py,
|
|
7345
|
+
removeToken: xy
|
|
7345
7346
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7346
|
-
function
|
|
7347
|
+
function $y() {
|
|
7347
7348
|
return au().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
7348
7349
|
}
|
|
7349
7350
|
function au() {
|
|
7350
7351
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
7351
7352
|
}
|
|
7352
|
-
const
|
|
7353
|
+
const Ry = typeof Proxy == "function", Ay = "devtools-plugin:setup", Iy = "plugin:settings:set";
|
|
7353
7354
|
let vn, Os;
|
|
7354
|
-
function
|
|
7355
|
+
function Vy() {
|
|
7355
7356
|
var e;
|
|
7356
7357
|
return vn !== void 0 || (typeof window < "u" && window.performance ? (vn = !0, Os = window.performance) : typeof global < "u" && (!((e = global.perf_hooks) === null || e === void 0) && e.performance) ? (vn = !0, Os = global.perf_hooks.performance) : vn = !1), vn;
|
|
7357
7358
|
}
|
|
7358
|
-
function
|
|
7359
|
-
return
|
|
7359
|
+
function ky() {
|
|
7360
|
+
return Vy() ? Os.now() : Date.now();
|
|
7360
7361
|
}
|
|
7361
|
-
class
|
|
7362
|
+
class My {
|
|
7362
7363
|
constructor(t, n) {
|
|
7363
7364
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
7364
7365
|
const o = {};
|
|
@@ -7386,9 +7387,9 @@ class ky {
|
|
|
7386
7387
|
s = i;
|
|
7387
7388
|
},
|
|
7388
7389
|
now() {
|
|
7389
|
-
return
|
|
7390
|
+
return ky();
|
|
7390
7391
|
}
|
|
7391
|
-
}, n && n.on(
|
|
7392
|
+
}, n && n.on(Iy, (i, a) => {
|
|
7392
7393
|
i === this.plugin.id && this.fallbacks.setSettings(a);
|
|
7393
7394
|
}), this.proxiedOn = new Proxy({}, {
|
|
7394
7395
|
get: (i, a) => this.target ? this.target.on[a] : (...c) => {
|
|
@@ -7420,12 +7421,12 @@ class ky {
|
|
|
7420
7421
|
n.resolve(await this.target[n.method](...n.args));
|
|
7421
7422
|
}
|
|
7422
7423
|
}
|
|
7423
|
-
function
|
|
7424
|
-
const n = e, o = au(), r =
|
|
7424
|
+
function Ly(e, t) {
|
|
7425
|
+
const n = e, o = au(), r = $y(), s = Ry && n.enableEarlyProxy;
|
|
7425
7426
|
if (r && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
7426
|
-
r.emit(
|
|
7427
|
+
r.emit(Ay, e, t);
|
|
7427
7428
|
else {
|
|
7428
|
-
const i = s ? new
|
|
7429
|
+
const i = s ? new My(n, r) : null;
|
|
7429
7430
|
(o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
7430
7431
|
pluginDescriptor: n,
|
|
7431
7432
|
setupFn: t,
|
|
@@ -7439,7 +7440,7 @@ function My(e, t) {
|
|
|
7439
7440
|
* @license MIT
|
|
7440
7441
|
*/
|
|
7441
7442
|
const vt = typeof window < "u";
|
|
7442
|
-
function
|
|
7443
|
+
function jy(e) {
|
|
7443
7444
|
return e.__esModule || e[Symbol.toStringTag] === "Module";
|
|
7444
7445
|
}
|
|
7445
7446
|
const ce = Object.assign;
|
|
@@ -7457,19 +7458,19 @@ function ne(e) {
|
|
|
7457
7458
|
const t = Array.from(arguments).slice(1);
|
|
7458
7459
|
console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
|
|
7459
7460
|
}
|
|
7460
|
-
const
|
|
7461
|
+
const Fy = /\/$/, By = (e) => e.replace(Fy, "");
|
|
7461
7462
|
function Yr(e, t, n = "/") {
|
|
7462
7463
|
let o, r = {}, s = "", i = "";
|
|
7463
7464
|
const a = t.indexOf("#");
|
|
7464
7465
|
let c = t.indexOf("?");
|
|
7465
|
-
return a < c && a >= 0 && (c = -1), c > -1 && (o = t.slice(0, c), s = t.slice(c + 1, a > -1 ? a : t.length), r = e(s)), a > -1 && (o = o || t.slice(0, a), i = t.slice(a, t.length)), o =
|
|
7466
|
+
return a < c && a >= 0 && (c = -1), c > -1 && (o = t.slice(0, c), s = t.slice(c + 1, a > -1 ? a : t.length), r = e(s)), a > -1 && (o = o || t.slice(0, a), i = t.slice(a, t.length)), o = zy(o ?? t, n), {
|
|
7466
7467
|
fullPath: o + (s && "?") + s + i,
|
|
7467
7468
|
path: o,
|
|
7468
7469
|
query: r,
|
|
7469
7470
|
hash: i
|
|
7470
7471
|
};
|
|
7471
7472
|
}
|
|
7472
|
-
function
|
|
7473
|
+
function Uy(e, t) {
|
|
7473
7474
|
const n = t.query ? e(t.query) : "";
|
|
7474
7475
|
return t.path + (n && "?") + n + (t.hash || "");
|
|
7475
7476
|
}
|
|
@@ -7487,17 +7488,17 @@ function cu(e, t) {
|
|
|
7487
7488
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
7488
7489
|
return !1;
|
|
7489
7490
|
for (const n in e)
|
|
7490
|
-
if (!
|
|
7491
|
+
if (!Hy(e[n], t[n]))
|
|
7491
7492
|
return !1;
|
|
7492
7493
|
return !0;
|
|
7493
7494
|
}
|
|
7494
|
-
function
|
|
7495
|
+
function Hy(e, t) {
|
|
7495
7496
|
return Ke(e) ? Da(e, t) : Ke(t) ? Da(t, e) : e === t;
|
|
7496
7497
|
}
|
|
7497
7498
|
function Da(e, t) {
|
|
7498
7499
|
return Ke(t) ? e.length === t.length && e.every((n, o) => n === t[o]) : e.length === 1 && e[0] === t;
|
|
7499
7500
|
}
|
|
7500
|
-
function
|
|
7501
|
+
function zy(e, t) {
|
|
7501
7502
|
if (e.startsWith("/"))
|
|
7502
7503
|
return e;
|
|
7503
7504
|
if (process.env.NODE_ENV !== "production" && !t.startsWith("/"))
|
|
@@ -7522,20 +7523,20 @@ var Zn;
|
|
|
7522
7523
|
(function(e) {
|
|
7523
7524
|
e.back = "back", e.forward = "forward", e.unknown = "";
|
|
7524
7525
|
})(Zn || (Zn = {}));
|
|
7525
|
-
function
|
|
7526
|
+
function Ky(e) {
|
|
7526
7527
|
if (!e)
|
|
7527
7528
|
if (vt) {
|
|
7528
7529
|
const t = document.querySelector("base");
|
|
7529
7530
|
e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
|
|
7530
7531
|
} else
|
|
7531
7532
|
e = "/";
|
|
7532
|
-
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e),
|
|
7533
|
-
}
|
|
7534
|
-
const Ky = /^[^#]+#/;
|
|
7535
|
-
function qy(e, t) {
|
|
7536
|
-
return e.replace(Ky, "#") + t;
|
|
7533
|
+
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), By(e);
|
|
7537
7534
|
}
|
|
7535
|
+
const qy = /^[^#]+#/;
|
|
7538
7536
|
function Wy(e, t) {
|
|
7537
|
+
return e.replace(qy, "#") + t;
|
|
7538
|
+
}
|
|
7539
|
+
function Jy(e, t) {
|
|
7539
7540
|
const n = document.documentElement.getBoundingClientRect(), o = e.getBoundingClientRect();
|
|
7540
7541
|
return {
|
|
7541
7542
|
behavior: t.behavior,
|
|
@@ -7547,7 +7548,7 @@ const Vr = () => ({
|
|
|
7547
7548
|
left: window.pageXOffset,
|
|
7548
7549
|
top: window.pageYOffset
|
|
7549
7550
|
});
|
|
7550
|
-
function
|
|
7551
|
+
function Gy(e) {
|
|
7551
7552
|
let t;
|
|
7552
7553
|
if ("el" in e) {
|
|
7553
7554
|
const n = e.el, o = typeof n == "string" && n.startsWith("#");
|
|
@@ -7567,7 +7568,7 @@ function Jy(e) {
|
|
|
7567
7568
|
process.env.NODE_ENV !== "production" && ne(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
|
|
7568
7569
|
return;
|
|
7569
7570
|
}
|
|
7570
|
-
t =
|
|
7571
|
+
t = Jy(r, e);
|
|
7571
7572
|
} else
|
|
7572
7573
|
t = e;
|
|
7573
7574
|
"scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.pageXOffset, t.top != null ? t.top : window.pageYOffset);
|
|
@@ -7576,14 +7577,14 @@ function Pa(e, t) {
|
|
|
7576
7577
|
return (history.state ? history.state.position - t : -1) + e;
|
|
7577
7578
|
}
|
|
7578
7579
|
const Cs = /* @__PURE__ */ new Map();
|
|
7579
|
-
function
|
|
7580
|
+
function Yy(e, t) {
|
|
7580
7581
|
Cs.set(e, t);
|
|
7581
7582
|
}
|
|
7582
|
-
function
|
|
7583
|
+
function Qy(e) {
|
|
7583
7584
|
const t = Cs.get(e);
|
|
7584
7585
|
return Cs.delete(e), t;
|
|
7585
7586
|
}
|
|
7586
|
-
let
|
|
7587
|
+
let Zy = () => location.protocol + "//" + location.host;
|
|
7587
7588
|
function lu(e, t) {
|
|
7588
7589
|
const { pathname: n, search: o, hash: r } = t, s = e.indexOf("#");
|
|
7589
7590
|
if (s > -1) {
|
|
@@ -7592,7 +7593,7 @@ function lu(e, t) {
|
|
|
7592
7593
|
}
|
|
7593
7594
|
return Sa(n, e) + o + r;
|
|
7594
7595
|
}
|
|
7595
|
-
function
|
|
7596
|
+
function Xy(e, t, n, o) {
|
|
7596
7597
|
let r = [], s = [], i = null;
|
|
7597
7598
|
const a = ({ state: d }) => {
|
|
7598
7599
|
const m = lu(e, location), g = n.value, v = t.value;
|
|
@@ -7649,7 +7650,7 @@ function $a(e, t, n, o = !1, r = !1) {
|
|
|
7649
7650
|
scroll: r ? Vr() : null
|
|
7650
7651
|
};
|
|
7651
7652
|
}
|
|
7652
|
-
function
|
|
7653
|
+
function e_(e) {
|
|
7653
7654
|
const { history: t, location: n } = window, o = {
|
|
7654
7655
|
value: lu(e, n)
|
|
7655
7656
|
}, r = { value: t.state };
|
|
@@ -7665,7 +7666,7 @@ function Xy(e) {
|
|
|
7665
7666
|
scroll: null
|
|
7666
7667
|
}, !0);
|
|
7667
7668
|
function s(c, l, u) {
|
|
7668
|
-
const f = e.indexOf("#"), d = f > -1 ? (n.host && document.querySelector("base") ? e : e.slice(f)) + c :
|
|
7669
|
+
const f = e.indexOf("#"), d = f > -1 ? (n.host && document.querySelector("base") ? e : e.slice(f)) + c : Zy() + e + c;
|
|
7669
7670
|
try {
|
|
7670
7671
|
t[u ? "replaceState" : "pushState"](l, "", d), r.value = l;
|
|
7671
7672
|
} catch (m) {
|
|
@@ -7710,9 +7711,9 @@ You can find more information at https://next.router.vuejs.org/guide/migration/#
|
|
|
7710
7711
|
replace: i
|
|
7711
7712
|
};
|
|
7712
7713
|
}
|
|
7713
|
-
function
|
|
7714
|
-
e =
|
|
7715
|
-
const t =
|
|
7714
|
+
function t_(e) {
|
|
7715
|
+
e = Ky(e);
|
|
7716
|
+
const t = e_(e), n = Xy(e, t.state, t.location, t.replace);
|
|
7716
7717
|
function o(s, i = !0) {
|
|
7717
7718
|
i || n.pauseListeners(), history.go(s);
|
|
7718
7719
|
}
|
|
@@ -7721,7 +7722,7 @@ function e_(e) {
|
|
|
7721
7722
|
location: "",
|
|
7722
7723
|
base: e,
|
|
7723
7724
|
go: o,
|
|
7724
|
-
createHref:
|
|
7725
|
+
createHref: Wy.bind(null, e)
|
|
7725
7726
|
}, t, n);
|
|
7726
7727
|
return Object.defineProperty(r, "location", {
|
|
7727
7728
|
enumerable: !0,
|
|
@@ -7731,11 +7732,11 @@ function e_(e) {
|
|
|
7731
7732
|
get: () => t.state.value
|
|
7732
7733
|
}), r;
|
|
7733
7734
|
}
|
|
7734
|
-
function
|
|
7735
|
+
function n_(e) {
|
|
7735
7736
|
return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), process.env.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && ne(`A hash base must end with a "#":
|
|
7736
|
-
"${e}" should be "${e.replace(/#.*$/, "#")}".`),
|
|
7737
|
+
"${e}" should be "${e.replace(/#.*$/, "#")}".`), t_(e);
|
|
7737
7738
|
}
|
|
7738
|
-
function
|
|
7739
|
+
function o_(e) {
|
|
7739
7740
|
return typeof e == "string" || e && typeof e == "object";
|
|
7740
7741
|
}
|
|
7741
7742
|
function uu(e) {
|
|
@@ -7756,7 +7757,7 @@ var Ra;
|
|
|
7756
7757
|
(function(e) {
|
|
7757
7758
|
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
|
7758
7759
|
})(Ra || (Ra = {}));
|
|
7759
|
-
const
|
|
7760
|
+
const r_ = {
|
|
7760
7761
|
[
|
|
7761
7762
|
1
|
|
7762
7763
|
/* ErrorTypes.MATCHER_NOT_FOUND */
|
|
@@ -7770,7 +7771,7 @@ while being at
|
|
|
7770
7771
|
2
|
|
7771
7772
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
7772
7773
|
]({ from: e, to: t }) {
|
|
7773
|
-
return `Redirected from "${e.fullPath}" to "${
|
|
7774
|
+
return `Redirected from "${e.fullPath}" to "${i_(t)}" via a navigation guard.`;
|
|
7774
7775
|
},
|
|
7775
7776
|
[
|
|
7776
7777
|
4
|
|
@@ -7792,7 +7793,7 @@ while being at
|
|
|
7792
7793
|
}
|
|
7793
7794
|
};
|
|
7794
7795
|
function Pn(e, t) {
|
|
7795
|
-
return process.env.NODE_ENV !== "production" ? ce(new Error(
|
|
7796
|
+
return process.env.NODE_ENV !== "production" ? ce(new Error(r_[e](t)), {
|
|
7796
7797
|
type: e,
|
|
7797
7798
|
[xs]: !0
|
|
7798
7799
|
}, t) : ce(new Error(), {
|
|
@@ -7803,25 +7804,25 @@ function Pn(e, t) {
|
|
|
7803
7804
|
function ht(e, t) {
|
|
7804
7805
|
return e instanceof Error && xs in e && (t == null || !!(e.type & t));
|
|
7805
7806
|
}
|
|
7806
|
-
const
|
|
7807
|
-
function
|
|
7807
|
+
const s_ = ["params", "query", "hash"];
|
|
7808
|
+
function i_(e) {
|
|
7808
7809
|
if (typeof e == "string")
|
|
7809
7810
|
return e;
|
|
7810
7811
|
if ("path" in e)
|
|
7811
7812
|
return e.path;
|
|
7812
7813
|
const t = {};
|
|
7813
|
-
for (const n of
|
|
7814
|
+
for (const n of s_)
|
|
7814
7815
|
n in e && (t[n] = e[n]);
|
|
7815
7816
|
return JSON.stringify(t, null, 2);
|
|
7816
7817
|
}
|
|
7817
|
-
const Aa = "[^/]+?",
|
|
7818
|
+
const Aa = "[^/]+?", a_ = {
|
|
7818
7819
|
sensitive: !1,
|
|
7819
7820
|
strict: !1,
|
|
7820
7821
|
start: !0,
|
|
7821
7822
|
end: !0
|
|
7822
|
-
},
|
|
7823
|
-
function
|
|
7824
|
-
const n = ce({},
|
|
7823
|
+
}, c_ = /[.+*?^${}()[\]/\\]/g;
|
|
7824
|
+
function l_(e, t) {
|
|
7825
|
+
const n = ce({}, a_, t), o = [];
|
|
7825
7826
|
let r = n.start ? "^" : "";
|
|
7826
7827
|
const s = [];
|
|
7827
7828
|
for (const l of e) {
|
|
@@ -7834,7 +7835,7 @@ function c_(e, t) {
|
|
|
7834
7835
|
const d = l[f];
|
|
7835
7836
|
let m = 40 + (n.sensitive ? 0.25 : 0);
|
|
7836
7837
|
if (d.type === 0)
|
|
7837
|
-
f || (r += "/"), r += d.value.replace(
|
|
7838
|
+
f || (r += "/"), r += d.value.replace(c_, "\\$&"), m += 40;
|
|
7838
7839
|
else if (d.type === 1) {
|
|
7839
7840
|
const { value: g, repeatable: v, optional: w, regexp: C } = d;
|
|
7840
7841
|
s.push({
|
|
@@ -7906,7 +7907,7 @@ function c_(e, t) {
|
|
|
7906
7907
|
stringify: c
|
|
7907
7908
|
};
|
|
7908
7909
|
}
|
|
7909
|
-
function
|
|
7910
|
+
function u_(e, t) {
|
|
7910
7911
|
let n = 0;
|
|
7911
7912
|
for (; n < e.length && n < t.length; ) {
|
|
7912
7913
|
const o = t[n] - e[n];
|
|
@@ -7916,11 +7917,11 @@ function l_(e, t) {
|
|
|
7916
7917
|
}
|
|
7917
7918
|
return e.length < t.length ? e.length === 1 && e[0] === 40 + 40 ? -1 : 1 : e.length > t.length ? t.length === 1 && t[0] === 40 + 40 ? 1 : -1 : 0;
|
|
7918
7919
|
}
|
|
7919
|
-
function
|
|
7920
|
+
function f_(e, t) {
|
|
7920
7921
|
let n = 0;
|
|
7921
7922
|
const o = e.score, r = t.score;
|
|
7922
7923
|
for (; n < o.length && n < r.length; ) {
|
|
7923
|
-
const s =
|
|
7924
|
+
const s = u_(o[n], r[n]);
|
|
7924
7925
|
if (s)
|
|
7925
7926
|
return s;
|
|
7926
7927
|
n++;
|
|
@@ -7937,15 +7938,15 @@ function Ia(e) {
|
|
|
7937
7938
|
const t = e[e.length - 1];
|
|
7938
7939
|
return e.length > 0 && t[t.length - 1] < 0;
|
|
7939
7940
|
}
|
|
7940
|
-
const
|
|
7941
|
+
const d_ = {
|
|
7941
7942
|
type: 0,
|
|
7942
7943
|
value: ""
|
|
7943
|
-
},
|
|
7944
|
-
function
|
|
7944
|
+
}, p_ = /[a-zA-Z0-9_]/;
|
|
7945
|
+
function h_(e) {
|
|
7945
7946
|
if (!e)
|
|
7946
7947
|
return [[]];
|
|
7947
7948
|
if (e === "/")
|
|
7948
|
-
return [[
|
|
7949
|
+
return [[d_]];
|
|
7949
7950
|
if (!e.startsWith("/"))
|
|
7950
7951
|
throw new Error(process.env.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
|
|
7951
7952
|
function t(m) {
|
|
@@ -7986,7 +7987,7 @@ function p_(e) {
|
|
|
7986
7987
|
d(), n = o;
|
|
7987
7988
|
break;
|
|
7988
7989
|
case 1:
|
|
7989
|
-
c === "(" ? n = 2 :
|
|
7990
|
+
c === "(" ? n = 2 : p_.test(c) ? d() : (f(), n = 0, c !== "*" && c !== "?" && c !== "+" && a--);
|
|
7990
7991
|
break;
|
|
7991
7992
|
case 2:
|
|
7992
7993
|
c === ")" ? u[u.length - 1] == "\\" ? u = u.slice(0, -1) + c : n = 3 : u += c;
|
|
@@ -8001,8 +8002,8 @@ function p_(e) {
|
|
|
8001
8002
|
}
|
|
8002
8003
|
return n === 2 && t(`Unfinished custom RegExp for param "${l}"`), f(), i(), r;
|
|
8003
8004
|
}
|
|
8004
|
-
function
|
|
8005
|
-
const o =
|
|
8005
|
+
function m_(e, t, n) {
|
|
8006
|
+
const o = l_(h_(e.path), n);
|
|
8006
8007
|
if (process.env.NODE_ENV !== "production") {
|
|
8007
8008
|
const s = /* @__PURE__ */ new Set();
|
|
8008
8009
|
for (const i of o.keys)
|
|
@@ -8017,15 +8018,15 @@ function h_(e, t, n) {
|
|
|
8017
8018
|
});
|
|
8018
8019
|
return t && !r.record.aliasOf == !t.record.aliasOf && t.children.push(r), r;
|
|
8019
8020
|
}
|
|
8020
|
-
function
|
|
8021
|
+
function g_(e, t) {
|
|
8021
8022
|
const n = [], o = /* @__PURE__ */ new Map();
|
|
8022
8023
|
t = Ma({ strict: !1, end: !0, sensitive: !1 }, t);
|
|
8023
8024
|
function r(u) {
|
|
8024
8025
|
return o.get(u);
|
|
8025
8026
|
}
|
|
8026
8027
|
function s(u, f, d) {
|
|
8027
|
-
const m = !d, g =
|
|
8028
|
-
process.env.NODE_ENV !== "production" &&
|
|
8028
|
+
const m = !d, g = v_(u);
|
|
8029
|
+
process.env.NODE_ENV !== "production" && b_(g, f), g.aliasOf = d && d.record;
|
|
8029
8030
|
const v = Ma(t, u), w = [
|
|
8030
8031
|
g
|
|
8031
8032
|
];
|
|
@@ -8053,7 +8054,7 @@ function m_(e, t) {
|
|
|
8053
8054
|
if (process.env.NODE_ENV !== "production" && D.path === "*")
|
|
8054
8055
|
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
8055
8056
|
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);
|
|
8056
|
-
if (C =
|
|
8057
|
+
if (C = m_(D, f, v), process.env.NODE_ENV !== "production" && f && V[0] === "/" && N_(C, f), d ? (d.alias.push(C), process.env.NODE_ENV !== "production" && E_(d, C)) : (A = A || C, A !== C && A.alias.push(C), m && u.name && !ka(C) && i(u.name)), g.children) {
|
|
8057
8058
|
const z = g.children;
|
|
8058
8059
|
for (let me = 0; me < z.length; me++)
|
|
8059
8060
|
s(z[me], C, d && d.children[me]);
|
|
@@ -8078,7 +8079,7 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
|
|
|
8078
8079
|
}
|
|
8079
8080
|
function c(u) {
|
|
8080
8081
|
let f = 0;
|
|
8081
|
-
for (; f < n.length &&
|
|
8082
|
+
for (; f < n.length && f_(u, n[f]) >= 0 && // Adding children with empty path should still appear before the parent
|
|
8082
8083
|
// https://github.com/vuejs/router/issues/1124
|
|
8083
8084
|
(u.record.path !== n[f].record.path || !fu(u, n[f])); )
|
|
8084
8085
|
f++;
|
|
@@ -8126,7 +8127,7 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
|
|
|
8126
8127
|
path: g,
|
|
8127
8128
|
params: m,
|
|
8128
8129
|
matched: w,
|
|
8129
|
-
meta:
|
|
8130
|
+
meta: __(w)
|
|
8130
8131
|
};
|
|
8131
8132
|
}
|
|
8132
8133
|
return e.forEach((u) => s(u)), { addRoute: s, resolve: l, removeRoute: i, getRoutes: a, getRecordMatcher: r };
|
|
@@ -8137,7 +8138,7 @@ function Va(e, t) {
|
|
|
8137
8138
|
o in e && (n[o] = e[o]);
|
|
8138
8139
|
return n;
|
|
8139
8140
|
}
|
|
8140
|
-
function
|
|
8141
|
+
function v_(e) {
|
|
8141
8142
|
return {
|
|
8142
8143
|
path: e.path,
|
|
8143
8144
|
redirect: e.redirect,
|
|
@@ -8145,7 +8146,7 @@ function g_(e) {
|
|
|
8145
8146
|
meta: e.meta || {},
|
|
8146
8147
|
aliasOf: void 0,
|
|
8147
8148
|
beforeEnter: e.beforeEnter,
|
|
8148
|
-
props:
|
|
8149
|
+
props: y_(e),
|
|
8149
8150
|
children: e.children || [],
|
|
8150
8151
|
instances: {},
|
|
8151
8152
|
leaveGuards: /* @__PURE__ */ new Set(),
|
|
@@ -8154,7 +8155,7 @@ function g_(e) {
|
|
|
8154
8155
|
components: "components" in e ? e.components || null : e.component && { default: e.component }
|
|
8155
8156
|
};
|
|
8156
8157
|
}
|
|
8157
|
-
function
|
|
8158
|
+
function y_(e) {
|
|
8158
8159
|
const t = {}, n = e.props || !1;
|
|
8159
8160
|
if ("component" in e)
|
|
8160
8161
|
t.default = n;
|
|
@@ -8171,7 +8172,7 @@ function ka(e) {
|
|
|
8171
8172
|
}
|
|
8172
8173
|
return !1;
|
|
8173
8174
|
}
|
|
8174
|
-
function
|
|
8175
|
+
function __(e) {
|
|
8175
8176
|
return e.reduce((t, n) => ce(t, n.meta), {});
|
|
8176
8177
|
}
|
|
8177
8178
|
function Ma(e, t) {
|
|
@@ -8183,7 +8184,7 @@ function Ma(e, t) {
|
|
|
8183
8184
|
function Ss(e, t) {
|
|
8184
8185
|
return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
|
|
8185
8186
|
}
|
|
8186
|
-
function
|
|
8187
|
+
function E_(e, t) {
|
|
8187
8188
|
for (const n of e.keys)
|
|
8188
8189
|
if (!n.optional && !t.keys.find(Ss.bind(null, n)))
|
|
8189
8190
|
return ne(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
|
@@ -8191,10 +8192,10 @@ function __(e, t) {
|
|
|
8191
8192
|
if (!n.optional && !e.keys.find(Ss.bind(null, n)))
|
|
8192
8193
|
return ne(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
|
8193
8194
|
}
|
|
8194
|
-
function
|
|
8195
|
+
function b_(e, t) {
|
|
8195
8196
|
t && t.record.name && !e.name && !e.path && ne(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
|
|
8196
8197
|
}
|
|
8197
|
-
function
|
|
8198
|
+
function N_(e, t) {
|
|
8198
8199
|
for (const n of t.keys)
|
|
8199
8200
|
if (!e.keys.find(Ss.bind(null, n)))
|
|
8200
8201
|
return ne(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
|
|
@@ -8202,24 +8203,24 @@ function b_(e, t) {
|
|
|
8202
8203
|
function fu(e, t) {
|
|
8203
8204
|
return t.children.some((n) => n === e || fu(e, n));
|
|
8204
8205
|
}
|
|
8205
|
-
const du = /#/g,
|
|
8206
|
+
const du = /#/g, w_ = /&/g, O_ = /\//g, C_ = /=/g, x_ = /\?/g, pu = /\+/g, S_ = /%5B/g, T_ = /%5D/g, hu = /%5E/g, D_ = /%60/g, mu = /%7B/g, P_ = /%7C/g, gu = /%7D/g, $_ = /%20/g;
|
|
8206
8207
|
function fi(e) {
|
|
8207
|
-
return encodeURI("" + e).replace(
|
|
8208
|
+
return encodeURI("" + e).replace(P_, "|").replace(S_, "[").replace(T_, "]");
|
|
8208
8209
|
}
|
|
8209
|
-
function
|
|
8210
|
+
function R_(e) {
|
|
8210
8211
|
return fi(e).replace(mu, "{").replace(gu, "}").replace(hu, "^");
|
|
8211
8212
|
}
|
|
8212
8213
|
function Ts(e) {
|
|
8213
|
-
return fi(e).replace(pu, "%2B").replace(
|
|
8214
|
-
}
|
|
8215
|
-
function R_(e) {
|
|
8216
|
-
return Ts(e).replace(O_, "%3D");
|
|
8214
|
+
return fi(e).replace(pu, "%2B").replace($_, "+").replace(du, "%23").replace(w_, "%26").replace(D_, "`").replace(mu, "{").replace(gu, "}").replace(hu, "^");
|
|
8217
8215
|
}
|
|
8218
8216
|
function A_(e) {
|
|
8219
|
-
return
|
|
8217
|
+
return Ts(e).replace(C_, "%3D");
|
|
8220
8218
|
}
|
|
8221
8219
|
function I_(e) {
|
|
8222
|
-
return e
|
|
8220
|
+
return fi(e).replace(du, "%23").replace(x_, "%3F");
|
|
8221
|
+
}
|
|
8222
|
+
function V_(e) {
|
|
8223
|
+
return e == null ? "" : I_(e).replace(O_, "%2F");
|
|
8223
8224
|
}
|
|
8224
8225
|
function po(e) {
|
|
8225
8226
|
try {
|
|
@@ -8229,7 +8230,7 @@ function po(e) {
|
|
|
8229
8230
|
}
|
|
8230
8231
|
return "" + e;
|
|
8231
8232
|
}
|
|
8232
|
-
function
|
|
8233
|
+
function k_(e) {
|
|
8233
8234
|
const t = {};
|
|
8234
8235
|
if (e === "" || e === "?")
|
|
8235
8236
|
return t;
|
|
@@ -8248,7 +8249,7 @@ function La(e) {
|
|
|
8248
8249
|
let t = "";
|
|
8249
8250
|
for (let n in e) {
|
|
8250
8251
|
const o = e[n];
|
|
8251
|
-
if (n =
|
|
8252
|
+
if (n = A_(n), o == null) {
|
|
8252
8253
|
o !== void 0 && (t += (t.length ? "&" : "") + n);
|
|
8253
8254
|
continue;
|
|
8254
8255
|
}
|
|
@@ -8258,7 +8259,7 @@ function La(e) {
|
|
|
8258
8259
|
}
|
|
8259
8260
|
return t;
|
|
8260
8261
|
}
|
|
8261
|
-
function
|
|
8262
|
+
function M_(e) {
|
|
8262
8263
|
const t = {};
|
|
8263
8264
|
for (const n in e) {
|
|
8264
8265
|
const o = e[n];
|
|
@@ -8266,7 +8267,7 @@ function k_(e) {
|
|
|
8266
8267
|
}
|
|
8267
8268
|
return t;
|
|
8268
8269
|
}
|
|
8269
|
-
const
|
|
8270
|
+
const L_ = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : ""), ja = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : ""), di = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), vu = Symbol(process.env.NODE_ENV !== "production" ? "route location" : ""), Ds = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
8270
8271
|
function Hn() {
|
|
8271
8272
|
let e = [];
|
|
8272
8273
|
function t(o) {
|
|
@@ -8292,12 +8293,12 @@ function At(e, t, n, o, r) {
|
|
|
8292
8293
|
f === !1 ? a(Pn(4, {
|
|
8293
8294
|
from: n,
|
|
8294
8295
|
to: t
|
|
8295
|
-
})) : f instanceof Error ? a(f) :
|
|
8296
|
+
})) : f instanceof Error ? a(f) : o_(f) ? a(Pn(2, {
|
|
8296
8297
|
from: t,
|
|
8297
8298
|
to: f
|
|
8298
8299
|
})) : (s && // since enterCallbackArray is truthy, both record and name also are
|
|
8299
8300
|
o.enterCallbacks[r] === s && typeof f == "function" && s.push(f), i());
|
|
8300
|
-
}, l = e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ?
|
|
8301
|
+
}, l = e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ? j_(c, t, n) : c);
|
|
8301
8302
|
let u = Promise.resolve(l);
|
|
8302
8303
|
if (e.length < 3 && (u = u.then(c)), process.env.NODE_ENV !== "production" && e.length > 2) {
|
|
8303
8304
|
const f = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
|
|
@@ -8313,7 +8314,7 @@ ${e.toString()}
|
|
|
8313
8314
|
u.catch((f) => a(f));
|
|
8314
8315
|
});
|
|
8315
8316
|
}
|
|
8316
|
-
function
|
|
8317
|
+
function j_(e, t, n) {
|
|
8317
8318
|
let o = 0;
|
|
8318
8319
|
return function() {
|
|
8319
8320
|
o++ === 1 && ne(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`), e._called = !0, o === 1 && e.apply(null, arguments);
|
|
@@ -8337,7 +8338,7 @@ function Qr(e, t, n, o) {
|
|
|
8337
8338
|
!a.__warnedDefineAsync && (a.__warnedDefineAsync = !0, ne(`Component "${i}" in record with path "${s.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
|
|
8338
8339
|
}
|
|
8339
8340
|
if (!(t !== "beforeRouteEnter" && !s.instances[i]))
|
|
8340
|
-
if (
|
|
8341
|
+
if (F_(a)) {
|
|
8341
8342
|
const l = (a.__vccOpts || a)[t];
|
|
8342
8343
|
l && r.push(At(l, n, o, s, i));
|
|
8343
8344
|
} else {
|
|
@@ -8345,7 +8346,7 @@ function Qr(e, t, n, o) {
|
|
|
8345
8346
|
process.env.NODE_ENV !== "production" && !("catch" in c) && (ne(`Component "${i}" in record with path "${s.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), c = Promise.resolve(c)), r.push(() => c.then((l) => {
|
|
8346
8347
|
if (!l)
|
|
8347
8348
|
return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));
|
|
8348
|
-
const u =
|
|
8349
|
+
const u = jy(l) ? l.default : l;
|
|
8349
8350
|
s.components[i] = u;
|
|
8350
8351
|
const d = (u.__vccOpts || u)[t];
|
|
8351
8352
|
return d && At(d, n, o, s, i)();
|
|
@@ -8355,7 +8356,7 @@ function Qr(e, t, n, o) {
|
|
|
8355
8356
|
}
|
|
8356
8357
|
return r;
|
|
8357
8358
|
}
|
|
8358
|
-
function
|
|
8359
|
+
function F_(e) {
|
|
8359
8360
|
return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
|
|
8360
8361
|
}
|
|
8361
8362
|
function Fa(e) {
|
|
@@ -8375,9 +8376,9 @@ function Fa(e) {
|
|
|
8375
8376
|
Ba(u) === m && // avoid comparing the child with its parent
|
|
8376
8377
|
f[f.length - 1].path !== m ? f.findIndex(Ft.bind(null, c[l - 2])) : d
|
|
8377
8378
|
);
|
|
8378
|
-
}), s = G(() => r.value > -1 &&
|
|
8379
|
+
}), s = G(() => r.value > -1 && z_(n.params, o.value.params)), i = G(() => r.value > -1 && r.value === n.matched.length - 1 && cu(n.params, o.value.params));
|
|
8379
8380
|
function a(c = {}) {
|
|
8380
|
-
return
|
|
8381
|
+
return H_(c) ? t[F(e.replace) ? "replace" : "push"](
|
|
8381
8382
|
F(e.to)
|
|
8382
8383
|
// avoid uncaught errors are they are logged anyway
|
|
8383
8384
|
).catch(Qn) : Promise.resolve();
|
|
@@ -8403,7 +8404,7 @@ function Fa(e) {
|
|
|
8403
8404
|
navigate: a
|
|
8404
8405
|
};
|
|
8405
8406
|
}
|
|
8406
|
-
const
|
|
8407
|
+
const B_ = /* @__PURE__ */ Ge({
|
|
8407
8408
|
name: "RouterLink",
|
|
8408
8409
|
compatConfig: { MODE: 3 },
|
|
8409
8410
|
props: {
|
|
@@ -8444,8 +8445,8 @@ const F_ = /* @__PURE__ */ Ge({
|
|
|
8444
8445
|
}, s);
|
|
8445
8446
|
};
|
|
8446
8447
|
}
|
|
8447
|
-
}),
|
|
8448
|
-
function
|
|
8448
|
+
}), U_ = B_;
|
|
8449
|
+
function H_(e) {
|
|
8449
8450
|
if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
|
|
8450
8451
|
if (e.currentTarget && e.currentTarget.getAttribute) {
|
|
8451
8452
|
const t = e.currentTarget.getAttribute("target");
|
|
@@ -8455,7 +8456,7 @@ function U_(e) {
|
|
|
8455
8456
|
return e.preventDefault && e.preventDefault(), !0;
|
|
8456
8457
|
}
|
|
8457
8458
|
}
|
|
8458
|
-
function
|
|
8459
|
+
function z_(e, t) {
|
|
8459
8460
|
for (const n in t) {
|
|
8460
8461
|
const o = t[n], r = e[n];
|
|
8461
8462
|
if (typeof o == "string") {
|
|
@@ -8469,7 +8470,7 @@ function H_(e, t) {
|
|
|
8469
8470
|
function Ba(e) {
|
|
8470
8471
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
8471
8472
|
}
|
|
8472
|
-
const Ua = (e, t, n) => e ?? t ?? n,
|
|
8473
|
+
const Ua = (e, t, n) => e ?? t ?? n, K_ = /* @__PURE__ */ Ge({
|
|
8473
8474
|
name: "RouterView",
|
|
8474
8475
|
// #674 we manually inherit them
|
|
8475
8476
|
inheritAttrs: !1,
|
|
@@ -8484,7 +8485,7 @@ const Ua = (e, t, n) => e ?? t ?? n, z_ = /* @__PURE__ */ Ge({
|
|
|
8484
8485
|
// https://github.com/vuejs/router/issues/1315
|
|
8485
8486
|
compatConfig: { MODE: 3 },
|
|
8486
8487
|
setup(e, { attrs: t, slots: n }) {
|
|
8487
|
-
process.env.NODE_ENV !== "production" &&
|
|
8488
|
+
process.env.NODE_ENV !== "production" && W_();
|
|
8488
8489
|
const o = ze(Ds), r = G(() => e.route || o.value), s = ze(ja, 0), i = G(() => {
|
|
8489
8490
|
let l = F(s);
|
|
8490
8491
|
const { matched: u } = r.value;
|
|
@@ -8493,7 +8494,7 @@ const Ua = (e, t, n) => e ?? t ?? n, z_ = /* @__PURE__ */ Ge({
|
|
|
8493
8494
|
l++;
|
|
8494
8495
|
return l;
|
|
8495
8496
|
}), a = G(() => r.value.matched[i.value]);
|
|
8496
|
-
Jn(ja, G(() => i.value + 1)), Jn(
|
|
8497
|
+
Jn(ja, G(() => i.value + 1)), Jn(L_, a), Jn(Ds, r);
|
|
8497
8498
|
const c = Me();
|
|
8498
8499
|
return bt(() => [c.value, a.value, e.name], ([l, u, f], [d, m, g]) => {
|
|
8499
8500
|
u && (u.instances[f] = l, m && m !== u && l && l === d && (u.leaveGuards.size || (u.leaveGuards = m.leaveGuards), u.updateGuards.size || (u.updateGuards = m.updateGuards))), l && u && // if there is no instance but to and from are the same this might be
|
|
@@ -8534,8 +8535,8 @@ function Ha(e, t) {
|
|
|
8534
8535
|
const n = e(t);
|
|
8535
8536
|
return n.length === 1 ? n[0] : n;
|
|
8536
8537
|
}
|
|
8537
|
-
const
|
|
8538
|
-
function
|
|
8538
|
+
const q_ = K_;
|
|
8539
|
+
function W_() {
|
|
8539
8540
|
const e = Ut(), t = e.parent && e.parent.type.name;
|
|
8540
8541
|
if (t && (t === "KeepAlive" || t.includes("Transition"))) {
|
|
8541
8542
|
const n = t === "KeepAlive" ? "keep-alive" : "transition";
|
|
@@ -8552,7 +8553,7 @@ Use slot props instead:
|
|
|
8552
8553
|
function zn(e, t) {
|
|
8553
8554
|
const n = ce({}, e, {
|
|
8554
8555
|
// remove variables that can contain vue instances
|
|
8555
|
-
matched: e.matched.map((o) =>
|
|
8556
|
+
matched: e.matched.map((o) => nE(o, ["instances", "children", "aliasOf"]))
|
|
8556
8557
|
});
|
|
8557
8558
|
return {
|
|
8558
8559
|
_custom: {
|
|
@@ -8571,13 +8572,13 @@ function Ao(e) {
|
|
|
8571
8572
|
}
|
|
8572
8573
|
};
|
|
8573
8574
|
}
|
|
8574
|
-
let
|
|
8575
|
-
function
|
|
8575
|
+
let J_ = 0;
|
|
8576
|
+
function G_(e, t, n) {
|
|
8576
8577
|
if (t.__hasDevtools)
|
|
8577
8578
|
return;
|
|
8578
8579
|
t.__hasDevtools = !0;
|
|
8579
|
-
const o =
|
|
8580
|
-
|
|
8580
|
+
const o = J_++;
|
|
8581
|
+
Ly({
|
|
8581
8582
|
id: "org.vuejs.router" + (o ? "." + o : ""),
|
|
8582
8583
|
label: "Vue Router",
|
|
8583
8584
|
packageName: "vue-router",
|
|
@@ -8700,16 +8701,16 @@ function J_(e, t, n) {
|
|
|
8700
8701
|
if (u.app === e && u.inspectorId === a) {
|
|
8701
8702
|
const d = n.getRoutes().find((m) => m.record.__vd_id === u.nodeId);
|
|
8702
8703
|
d && (u.state = {
|
|
8703
|
-
options:
|
|
8704
|
+
options: Q_(d)
|
|
8704
8705
|
});
|
|
8705
8706
|
}
|
|
8706
8707
|
}), r.sendInspectorTree(a), r.sendInspectorState(a);
|
|
8707
8708
|
});
|
|
8708
8709
|
}
|
|
8709
|
-
function
|
|
8710
|
+
function Y_(e) {
|
|
8710
8711
|
return e.optional ? e.repeatable ? "*" : "?" : e.repeatable ? "+" : "";
|
|
8711
8712
|
}
|
|
8712
|
-
function
|
|
8713
|
+
function Q_(e) {
|
|
8713
8714
|
const { record: t } = e, n = [
|
|
8714
8715
|
{ editable: !1, key: "path", value: t.path }
|
|
8715
8716
|
];
|
|
@@ -8724,7 +8725,7 @@ function Y_(e) {
|
|
|
8724
8725
|
_custom: {
|
|
8725
8726
|
type: null,
|
|
8726
8727
|
readOnly: !0,
|
|
8727
|
-
display: e.keys.map((o) => `${o.name}${
|
|
8728
|
+
display: e.keys.map((o) => `${o.name}${Y_(o)}`).join(" "),
|
|
8728
8729
|
tooltip: "Param keys",
|
|
8729
8730
|
value: e.keys
|
|
8730
8731
|
}
|
|
@@ -8755,13 +8756,13 @@ function Y_(e) {
|
|
|
8755
8756
|
}
|
|
8756
8757
|
}), n;
|
|
8757
8758
|
}
|
|
8758
|
-
const yu = 15485081, _u = 2450411, Eu = 8702998,
|
|
8759
|
+
const yu = 15485081, _u = 2450411, Eu = 8702998, Z_ = 2282478, bu = 16486972, X_ = 6710886;
|
|
8759
8760
|
function Nu(e) {
|
|
8760
8761
|
const t = [], { record: n } = e;
|
|
8761
8762
|
n.name != null && t.push({
|
|
8762
8763
|
label: String(n.name),
|
|
8763
8764
|
textColor: 0,
|
|
8764
|
-
backgroundColor:
|
|
8765
|
+
backgroundColor: Z_
|
|
8765
8766
|
}), n.aliasOf && t.push({
|
|
8766
8767
|
label: "alias",
|
|
8767
8768
|
textColor: 0,
|
|
@@ -8781,18 +8782,18 @@ function Nu(e) {
|
|
|
8781
8782
|
}), n.redirect && t.push({
|
|
8782
8783
|
label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
|
|
8783
8784
|
textColor: 16777215,
|
|
8784
|
-
backgroundColor:
|
|
8785
|
+
backgroundColor: X_
|
|
8785
8786
|
});
|
|
8786
8787
|
let o = n.__vd_id;
|
|
8787
|
-
return o == null && (o = String(
|
|
8788
|
+
return o == null && (o = String(eE++), n.__vd_id = o), {
|
|
8788
8789
|
id: o,
|
|
8789
8790
|
label: n.path,
|
|
8790
8791
|
tags: t,
|
|
8791
8792
|
children: e.children.map(Nu)
|
|
8792
8793
|
};
|
|
8793
8794
|
}
|
|
8794
|
-
let
|
|
8795
|
-
const
|
|
8795
|
+
let eE = 0;
|
|
8796
|
+
const tE = /^\/(.*)\/([a-z]*)$/;
|
|
8796
8797
|
function wu(e, t) {
|
|
8797
8798
|
const n = t.matched.length && Ft(t.matched[t.matched.length - 1], e.record);
|
|
8798
8799
|
e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((o) => Ft(o, e.record))), e.children.forEach((o) => wu(o, t));
|
|
@@ -8801,7 +8802,7 @@ function Ou(e) {
|
|
|
8801
8802
|
e.__vd_match = !1, e.children.forEach(Ou);
|
|
8802
8803
|
}
|
|
8803
8804
|
function Ps(e, t) {
|
|
8804
|
-
const n = String(e.re).match(
|
|
8805
|
+
const n = String(e.re).match(tE);
|
|
8805
8806
|
if (e.__vd_match = !1, !n || n.length < 3)
|
|
8806
8807
|
return !1;
|
|
8807
8808
|
if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
|
|
@@ -8809,20 +8810,20 @@ function Ps(e, t) {
|
|
|
8809
8810
|
const r = e.record.path.toLowerCase(), s = po(r);
|
|
8810
8811
|
return !t.startsWith("/") && (s.includes(t) || r.includes(t)) || s.startsWith(t) || r.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((i) => Ps(i, t));
|
|
8811
8812
|
}
|
|
8812
|
-
function
|
|
8813
|
+
function nE(e, t) {
|
|
8813
8814
|
const n = {};
|
|
8814
8815
|
for (const o in e)
|
|
8815
8816
|
t.includes(o) || (n[o] = e[o]);
|
|
8816
8817
|
return n;
|
|
8817
8818
|
}
|
|
8818
|
-
function
|
|
8819
|
-
const t =
|
|
8819
|
+
function oE(e) {
|
|
8820
|
+
const t = g_(e.routes, e), n = e.parseQuery || k_, o = e.stringifyQuery || La, r = e.history;
|
|
8820
8821
|
if (process.env.NODE_ENV !== "production" && !r)
|
|
8821
8822
|
throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');
|
|
8822
8823
|
const s = Hn(), i = Hn(), a = Hn(), c = kd(Pt);
|
|
8823
8824
|
let l = Pt;
|
|
8824
8825
|
vt && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
|
8825
|
-
const u = Gr.bind(null, (_) => "" + _), f = Gr.bind(null,
|
|
8826
|
+
const u = Gr.bind(null, (_) => "" + _), f = Gr.bind(null, V_), d = (
|
|
8826
8827
|
// @ts-expect-error: intentionally avoid the type check
|
|
8827
8828
|
Gr.bind(null, po)
|
|
8828
8829
|
);
|
|
@@ -8867,8 +8868,8 @@ function nE(e) {
|
|
|
8867
8868
|
}
|
|
8868
8869
|
const L = t.resolve($, k), re = _.hash || "";
|
|
8869
8870
|
process.env.NODE_ENV !== "production" && re && !re.startsWith("#") && ne(`A \`hash\` should always start with the character "#". Replace "${re}" with "#${re}".`), L.params = u(d(L.params));
|
|
8870
|
-
const pe =
|
|
8871
|
-
hash:
|
|
8871
|
+
const pe = Uy(o, ce({}, _, {
|
|
8872
|
+
hash: R_(re),
|
|
8872
8873
|
path: L.path
|
|
8873
8874
|
})), Q = r.createHref(pe);
|
|
8874
8875
|
return process.env.NODE_ENV !== "production" && (Q.startsWith("//") ? ne(`Location "${_}" resolved to "${Q}". A resolved location cannot start with multiple slashes.`) : L.matched.length || ne(`No match found for location with path "${"path" in _ ? _.path : _}"`)), ce({
|
|
@@ -8882,7 +8883,7 @@ function nE(e) {
|
|
|
8882
8883
|
// numbers at `$route.query`, but at the point, the user will have to
|
|
8883
8884
|
// use their own type anyway.
|
|
8884
8885
|
// https://github.com/vuejs/router/issues/328#issuecomment-649481567
|
|
8885
|
-
o === La ?
|
|
8886
|
+
o === La ? M_(_.query) : _.query || {}
|
|
8886
8887
|
)
|
|
8887
8888
|
}, L, {
|
|
8888
8889
|
redirectedFrom: void 0,
|
|
@@ -8995,7 +8996,7 @@ ${JSON.stringify(L, null, 2)}
|
|
|
8995
8996
|
}
|
|
8996
8997
|
function oe(_, k) {
|
|
8997
8998
|
let $;
|
|
8998
|
-
const [L, re, pe] =
|
|
8999
|
+
const [L, re, pe] = rE(_, k);
|
|
8999
9000
|
$ = Qr(L.reverse(), "beforeRouteLeave", _, k);
|
|
9000
9001
|
for (const J of L)
|
|
9001
9002
|
J.leaveGuards.forEach((p) => {
|
|
@@ -9058,7 +9059,7 @@ ${JSON.stringify(L, null, 2)}
|
|
|
9058
9059
|
}
|
|
9059
9060
|
l = L;
|
|
9060
9061
|
const pe = c.value;
|
|
9061
|
-
vt &&
|
|
9062
|
+
vt && Yy(Pa(pe.fullPath, $.delta), Vr()), oe(L, pe).catch((Q) => ht(
|
|
9062
9063
|
Q,
|
|
9063
9064
|
12
|
|
9064
9065
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
@@ -9114,8 +9115,8 @@ ${JSON.stringify(L, null, 2)}
|
|
|
9114
9115
|
const { scrollBehavior: re } = e;
|
|
9115
9116
|
if (!vt || !re)
|
|
9116
9117
|
return Promise.resolve();
|
|
9117
|
-
const pe = !$ &&
|
|
9118
|
-
return vo().then(() => re(_, k, pe)).then((Q) => Q &&
|
|
9118
|
+
const pe = !$ && Qy(Pa(_.fullPath, 0)) || (L || !$) && history.state && history.state.scroll || null;
|
|
9119
|
+
return vo().then(() => re(_, k, pe)).then((Q) => Q && Gy(Q)).catch((Q) => X(Q, _, k));
|
|
9119
9120
|
}
|
|
9120
9121
|
const pt = (_) => r.go(_);
|
|
9121
9122
|
let st;
|
|
@@ -9141,7 +9142,7 @@ ${JSON.stringify(L, null, 2)}
|
|
|
9141
9142
|
isReady: ee,
|
|
9142
9143
|
install(_) {
|
|
9143
9144
|
const k = this;
|
|
9144
|
-
_.component("RouterLink",
|
|
9145
|
+
_.component("RouterLink", U_), _.component("RouterView", q_), _.config.globalProperties.$router = k, Object.defineProperty(_.config.globalProperties, "$route", {
|
|
9145
9146
|
enumerable: !0,
|
|
9146
9147
|
get: () => F(c)
|
|
9147
9148
|
}), vt && // used for the initial navigation client side to avoid pushing
|
|
@@ -9156,14 +9157,14 @@ ${JSON.stringify(L, null, 2)}
|
|
|
9156
9157
|
const L = _.unmount;
|
|
9157
9158
|
qe.add(_), _.unmount = function() {
|
|
9158
9159
|
qe.delete(_), qe.size < 1 && (l = Pt, I && I(), I = null, c.value = Pt, st = !1, ve = !1), L();
|
|
9159
|
-
}, process.env.NODE_ENV !== "production" && vt &&
|
|
9160
|
+
}, process.env.NODE_ENV !== "production" && vt && G_(_, k, t);
|
|
9160
9161
|
}
|
|
9161
9162
|
};
|
|
9162
9163
|
}
|
|
9163
9164
|
function yn(e) {
|
|
9164
9165
|
return e.reduce((t, n) => t.then(() => n()), Promise.resolve());
|
|
9165
9166
|
}
|
|
9166
|
-
function
|
|
9167
|
+
function rE(e, t) {
|
|
9167
9168
|
const n = [], o = [], r = [], s = Math.max(t.matched.length, e.matched.length);
|
|
9168
9169
|
for (let i = 0; i < s; i++) {
|
|
9169
9170
|
const a = t.matched[i];
|
|
@@ -9173,7 +9174,7 @@ function oE(e, t) {
|
|
|
9173
9174
|
}
|
|
9174
9175
|
return [n, o, r];
|
|
9175
9176
|
}
|
|
9176
|
-
const
|
|
9177
|
+
const sE = [
|
|
9177
9178
|
{
|
|
9178
9179
|
path: "/table",
|
|
9179
9180
|
name: "Table",
|
|
@@ -9182,11 +9183,11 @@ const rE = [
|
|
|
9182
9183
|
title: "表格"
|
|
9183
9184
|
}
|
|
9184
9185
|
}
|
|
9185
|
-
], za =
|
|
9186
|
-
history:
|
|
9186
|
+
], za = oE({
|
|
9187
|
+
history: n_("./"),
|
|
9187
9188
|
strict: !1,
|
|
9188
|
-
routes:
|
|
9189
|
-
}),
|
|
9189
|
+
routes: sE
|
|
9190
|
+
}), iE = "/gateway/integrated-management/api/v1", aE = {
|
|
9190
9191
|
timeout: 1e4 * 6,
|
|
9191
9192
|
headers: {
|
|
9192
9193
|
Accept: "application/json, text/plain, */*",
|
|
@@ -9199,13 +9200,13 @@ let Ka = {
|
|
|
9199
9200
|
text: "加载中...",
|
|
9200
9201
|
background: "rgba(0, 0, 0, 0.6)"
|
|
9201
9202
|
};
|
|
9202
|
-
const
|
|
9203
|
+
const cE = ["put", "delete"], dr = class {
|
|
9203
9204
|
/** 响应拦截 */
|
|
9204
9205
|
httpInterceptorsResponse() {
|
|
9205
9206
|
dr.axiosInstance.interceptors.response.use(
|
|
9206
9207
|
(n) => {
|
|
9207
9208
|
const o = n.data.code;
|
|
9208
|
-
return o === 200 &&
|
|
9209
|
+
return o === 200 && cE.includes(n.config.method) && Ae.success("操作成功"), o !== 200 && Cy(o, n.data.resultMsg), n.data;
|
|
9209
9210
|
},
|
|
9210
9211
|
(n) => {
|
|
9211
9212
|
var r, s, i;
|
|
@@ -9233,7 +9234,7 @@ const aE = ["put", "delete"], dr = class {
|
|
|
9233
9234
|
let a = null;
|
|
9234
9235
|
s && i && (Ka.text = i), s && (a = Yv.service(Ka));
|
|
9235
9236
|
const c = {
|
|
9236
|
-
url: `${
|
|
9237
|
+
url: `${iE}${t}`,
|
|
9237
9238
|
headers: {
|
|
9238
9239
|
token: Ir()
|
|
9239
9240
|
},
|
|
@@ -9260,7 +9261,7 @@ const aE = ["put", "delete"], dr = class {
|
|
|
9260
9261
|
};
|
|
9261
9262
|
let qo = dr;
|
|
9262
9263
|
/** 保存当前Axios实例对象 */
|
|
9263
|
-
gi(qo, "axiosInstance", Bf.create(
|
|
9264
|
+
gi(qo, "axiosInstance", Bf.create(aE));
|
|
9264
9265
|
const Cu = new qo();
|
|
9265
9266
|
export {
|
|
9266
9267
|
Ve as F,
|
|
@@ -9270,16 +9271,16 @@ export {
|
|
|
9270
9271
|
Ge as d,
|
|
9271
9272
|
en as e,
|
|
9272
9273
|
we as f,
|
|
9273
|
-
|
|
9274
|
+
fE as g,
|
|
9274
9275
|
Cu as h,
|
|
9275
|
-
|
|
9276
|
+
pE as i,
|
|
9276
9277
|
rt as j,
|
|
9277
9278
|
Me as k,
|
|
9278
|
-
|
|
9279
|
+
Dy as l,
|
|
9279
9280
|
wl as m,
|
|
9280
9281
|
uh as n,
|
|
9281
9282
|
ye as o,
|
|
9282
|
-
|
|
9283
|
+
dE as r,
|
|
9283
9284
|
Jo as t,
|
|
9284
9285
|
F as u,
|
|
9285
9286
|
Et as w
|