vue-stack-tabs 0.1.41 → 0.1.43
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/favicon.svg +9 -9
- package/dist/src/lib/StackTabs.vue.d.ts +3 -0
- package/dist/src/lib/hooks/useTabpanel.d.ts +1 -0
- package/dist/vue-stack-tabs.es.js +774 -770
- package/dist/vue-stack-tabs.umd.js +2 -2
- package/package.json +1 -1
- package/src/lib/StackTabs.vue +141 -138
- package/src/lib/assets/style/transition.scss +62 -62
- package/src/lib/components/TabHeader/TabHeaderScroll.vue +1 -1
- package/src/lib/hooks/useStackTab.ts +119 -119
- package/src/lib/hooks/useTabRouter.ts +103 -103
- package/src/lib/hooks/useTabpanel.tsx +9 -4
- package/src/lib/utils/TabIdHelper.ts +70 -70
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { inject as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
const
|
|
1
|
+
var vn = Object.defineProperty;
|
|
2
|
+
var mn = (t, e, n) => e in t ? vn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var kt = (t, e, n) => mn(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { inject as at, ref as $, reactive as Ie, readonly as _t, toRaw as gn, defineComponent as ee, openBlock as R, createElementBlock as V, createElementVNode as Q, createCommentVNode as se, unref as x, nextTick as le, onMounted as Fe, onDeactivated as yn, onActivated as wn, onUnmounted as He, createVNode as W, resolveComponent as jt, normalizeClass as fe, withModifiers as _e, toDisplayString as Xt, normalizeStyle as ct, Fragment as Ze, renderList as lt, createBlock as me, computed as we, renderSlot as xe, watch as kn, withDirectives as Gt, vShow as Yt, withCtx as ue, TransitionGroup as Kt, mergeProps as _n, Transition as Jt, provide as xn, onBeforeMount as Tn, onBeforeUnmount as xt, KeepAlive as Sn, resolveDynamicComponent as On, getCurrentInstance as Qt } from "vue";
|
|
5
|
+
import { useRouter as ut, useRoute as An } from "vue-router";
|
|
6
|
+
const En = {
|
|
7
7
|
VueStackTab: {
|
|
8
8
|
close: "close",
|
|
9
9
|
closeLeft: "close left",
|
|
@@ -17,10 +17,10 @@ const An = {
|
|
|
17
17
|
undefined: "undefined",
|
|
18
18
|
loading: "loading"
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
21
|
__proto__: null,
|
|
22
|
-
default:
|
|
23
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
22
|
+
default: En
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" })), Bn = {
|
|
24
24
|
VueStackTab: {
|
|
25
25
|
close: "关闭",
|
|
26
26
|
closeLeft: "关闭左侧",
|
|
@@ -34,27 +34,27 @@ const An = {
|
|
|
34
34
|
undefined: "未命名",
|
|
35
35
|
loading: "加载中"
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
38
|
__proto__: null,
|
|
39
|
-
default:
|
|
39
|
+
default: Bn
|
|
40
40
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
41
41
|
/*!
|
|
42
42
|
* vue-i18n-lite v1.0.2
|
|
43
43
|
* (c) 2021 Erik Pham
|
|
44
44
|
* @license MIT
|
|
45
45
|
*/
|
|
46
|
-
const
|
|
47
|
-
function
|
|
46
|
+
const Cn = ["__proto__", "prototype", "constructor"];
|
|
47
|
+
function Ln(t) {
|
|
48
48
|
const e = typeof t;
|
|
49
49
|
return t !== null && (e === "object" || e === "function");
|
|
50
50
|
}
|
|
51
|
-
function Ln(t) {
|
|
52
|
-
return !(Array.isArray(t) ? t.length : Object.keys(t).length);
|
|
53
|
-
}
|
|
54
51
|
function zn(t) {
|
|
55
|
-
return !
|
|
52
|
+
return !(Array.isArray(t) ? t.length : Object.keys(t).length);
|
|
56
53
|
}
|
|
57
54
|
function Rn(t) {
|
|
55
|
+
return !t.some((e) => Cn.indexOf(e) !== -1);
|
|
56
|
+
}
|
|
57
|
+
function Dn(t) {
|
|
58
58
|
const e = t.split("."), n = [];
|
|
59
59
|
for (let s = 0; s < e.length; s++) {
|
|
60
60
|
let r = e[s];
|
|
@@ -62,12 +62,12 @@ function Rn(t) {
|
|
|
62
62
|
r = r.slice(0, -1) + ".", r += e[++s];
|
|
63
63
|
n.push(r);
|
|
64
64
|
}
|
|
65
|
-
return
|
|
65
|
+
return Rn(n) ? n : [];
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
if (!
|
|
67
|
+
function Tt(t, e) {
|
|
68
|
+
if (!Ln(t))
|
|
69
69
|
return "";
|
|
70
|
-
const n =
|
|
70
|
+
const n = Dn(e);
|
|
71
71
|
if (n.length === 0)
|
|
72
72
|
return "";
|
|
73
73
|
let s = Object.assign({}, t);
|
|
@@ -82,7 +82,7 @@ function xt(t, e) {
|
|
|
82
82
|
}
|
|
83
83
|
return "";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function $n(t, e) {
|
|
86
86
|
if (Array.isArray(e)) {
|
|
87
87
|
const n = {}, s = [...t.matchAll(/{(.+?)}/g)];
|
|
88
88
|
return s && s.forEach((r, o) => {
|
|
@@ -91,22 +91,22 @@ function Dn(t, e) {
|
|
|
91
91
|
}
|
|
92
92
|
return e;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Pn(t, e) {
|
|
95
95
|
for (const n in e)
|
|
96
96
|
t = t.replace(`{${n}}`, String(e[n]));
|
|
97
97
|
return t;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function en(t, e) {
|
|
100
100
|
return Object.keys(e).forEach((n) => {
|
|
101
|
-
e[n] instanceof Object && n in t && (e[n] = { ...e[n], ...
|
|
101
|
+
e[n] instanceof Object && n in t && (e[n] = { ...e[n], ...en(t[n], e[n]) });
|
|
102
102
|
}), { ...t || {}, ...e };
|
|
103
103
|
}
|
|
104
|
-
const Nn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol",
|
|
104
|
+
const Nn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", Wn = (t) => Nn ? Symbol(t) : "_vt_" + t, tn = /* @__PURE__ */ Wn("i18n");
|
|
105
105
|
function Me() {
|
|
106
|
-
return
|
|
106
|
+
return at(tn);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
const e = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, t), n =
|
|
108
|
+
function Vn(t) {
|
|
109
|
+
const e = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, t), n = $(e.locale), s = Ie({});
|
|
110
110
|
return Object.entries(e.messages).forEach(([r, o]) => {
|
|
111
111
|
s[r] = o;
|
|
112
112
|
}), {
|
|
@@ -114,40 +114,40 @@ function Wn(t) {
|
|
|
114
114
|
if (!r)
|
|
115
115
|
return "";
|
|
116
116
|
const i = typeof o == "string" && o ? o : n.value;
|
|
117
|
-
let
|
|
117
|
+
let d = Tt(s[i], r) || Tt(s[e.fallbackLocale], r);
|
|
118
118
|
if (o && typeof o != "string") {
|
|
119
|
-
const a =
|
|
120
|
-
|
|
119
|
+
const a = $n(d, o);
|
|
120
|
+
zn(a) || (d = Pn(d, a));
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return d || r;
|
|
123
123
|
},
|
|
124
|
-
current:
|
|
125
|
-
options:
|
|
124
|
+
current: _t(n),
|
|
125
|
+
options: _t(t || {}),
|
|
126
126
|
install(r) {
|
|
127
127
|
const o = this;
|
|
128
|
-
r.config.globalProperties.$t = o.t, r.provide(
|
|
128
|
+
r.config.globalProperties.$t = o.t, r.provide(tn, o);
|
|
129
129
|
},
|
|
130
130
|
changeLocale(r) {
|
|
131
131
|
n.value = r;
|
|
132
132
|
},
|
|
133
133
|
setLocaleMessage(r, o) {
|
|
134
|
-
s[r] =
|
|
134
|
+
s[r] = en(gn(s[r] || {}), o);
|
|
135
135
|
},
|
|
136
136
|
getLocaleMessage(r) {
|
|
137
137
|
return s[r] || {};
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
const t = /* @__PURE__ */ Object.assign({ "./lang/en.ts":
|
|
141
|
+
const Un = () => {
|
|
142
|
+
const t = /* @__PURE__ */ Object.assign({ "./lang/en.ts": In, "./lang/zh-CN.ts": Mn });
|
|
143
143
|
function e(r, o) {
|
|
144
144
|
for (const i in r)
|
|
145
145
|
if (r[i].default) {
|
|
146
|
-
const
|
|
147
|
-
o[
|
|
148
|
-
...r[
|
|
146
|
+
const d = i.substring(i.lastIndexOf("/") + 1, i.lastIndexOf("."));
|
|
147
|
+
o[d] ? o[d] = {
|
|
148
|
+
...r[d],
|
|
149
149
|
...r[i].default
|
|
150
|
-
} : o[
|
|
150
|
+
} : o[d] = r[i].default;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
const n = () => {
|
|
@@ -160,14 +160,14 @@ const Vn = () => {
|
|
|
160
160
|
if (r)
|
|
161
161
|
for (const i of r)
|
|
162
162
|
o[i.locale] = i.messages;
|
|
163
|
-
return
|
|
163
|
+
return Vn({
|
|
164
164
|
locale: "zh-CN",
|
|
165
165
|
fallbackLocale: "en",
|
|
166
166
|
messages: o
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
|
-
},
|
|
170
|
+
}, nn = ({
|
|
171
171
|
wrap: t,
|
|
172
172
|
left: e = 0,
|
|
173
173
|
top: n = 0,
|
|
@@ -179,7 +179,7 @@ const Vn = () => {
|
|
|
179
179
|
behavior: s ? "smooth" : "auto"
|
|
180
180
|
}) : (t.scrollLeft = e, t.scrollTop = n));
|
|
181
181
|
};
|
|
182
|
-
function
|
|
182
|
+
function qn({
|
|
183
183
|
el: t,
|
|
184
184
|
wrap: e,
|
|
185
185
|
block: n = "start",
|
|
@@ -190,11 +190,11 @@ function Un({
|
|
|
190
190
|
t.scrollIntoView({ behavior: "smooth", block: n, inline: s });
|
|
191
191
|
else {
|
|
192
192
|
const { offsetLeft: r, offsetTop: o } = t;
|
|
193
|
-
let i,
|
|
194
|
-
n === "center" ?
|
|
193
|
+
let i, d;
|
|
194
|
+
n === "center" ? d = o + (t.clientHeight - e.clientHeight) / 2 : d = o, s === "center" ? i = r + (t.clientWidth - e.clientWidth) / 2 : i = r, nn({ wrap: e, left: i, top: d });
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const sn = (t = ".stack-tab__container *") => {
|
|
198
198
|
const e = Array.from(document.querySelectorAll(t)).map(
|
|
199
199
|
(n) => +window.getComputedStyle(n).zIndex || 0
|
|
200
200
|
);
|
|
@@ -205,7 +205,7 @@ class je {
|
|
|
205
205
|
//
|
|
206
206
|
constructor(e) {
|
|
207
207
|
// 存储的Map
|
|
208
|
-
|
|
208
|
+
kt(this, "items");
|
|
209
209
|
if (this.items = /* @__PURE__ */ new Map(), e)
|
|
210
210
|
for (const n of e)
|
|
211
211
|
this.push(n);
|
|
@@ -278,30 +278,30 @@ function We(t) {
|
|
|
278
278
|
var e = new Error(t);
|
|
279
279
|
return e.source = "ulid", e;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
function
|
|
281
|
+
var ft = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Oe = ft.length, St = Math.pow(2, 48) - 1, Fn = 10, Hn = 16;
|
|
282
|
+
function Zn(t) {
|
|
283
283
|
var e = Math.floor(t() * Oe);
|
|
284
|
-
return e === Oe && (e = Oe - 1),
|
|
284
|
+
return e === Oe && (e = Oe - 1), ft.charAt(e);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function jn(t, e) {
|
|
287
287
|
if (isNaN(t))
|
|
288
288
|
throw new Error(t + " must be a number");
|
|
289
|
-
if (t >
|
|
290
|
-
throw We("cannot encode time greater than " +
|
|
289
|
+
if (t > St)
|
|
290
|
+
throw We("cannot encode time greater than " + St);
|
|
291
291
|
if (t < 0)
|
|
292
292
|
throw We("time must be positive");
|
|
293
293
|
if (Number.isInteger(t) === !1)
|
|
294
294
|
throw We("time must be an integer");
|
|
295
295
|
for (var n = void 0, s = ""; e > 0; e--)
|
|
296
|
-
n = t % Oe, s =
|
|
296
|
+
n = t % Oe, s = ft.charAt(n) + s, t = (t - n) / Oe;
|
|
297
297
|
return s;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Xn(t, e) {
|
|
300
300
|
for (var n = ""; t > 0; t--)
|
|
301
|
-
n =
|
|
301
|
+
n = Zn(e) + n;
|
|
302
302
|
return n;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Gn() {
|
|
305
305
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, e = arguments[1];
|
|
306
306
|
e || (e = typeof window < "u" ? window : null);
|
|
307
307
|
var n = e && (e.crypto || e.msCrypto);
|
|
@@ -327,13 +327,13 @@ function Xn() {
|
|
|
327
327
|
}
|
|
328
328
|
throw We("secure crypto unusable, insecure Math.random not allowed");
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
return t || (t =
|
|
332
|
-
return isNaN(n) && (n = Date.now()),
|
|
330
|
+
function Yn(t) {
|
|
331
|
+
return t || (t = Gn()), function(n) {
|
|
332
|
+
return isNaN(n) && (n = Date.now()), jn(n, Fn) + Xn(Hn, t);
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
var
|
|
336
|
-
|
|
335
|
+
var et = Yn(), dt = { exports: {} };
|
|
336
|
+
dt.exports;
|
|
337
337
|
(function(t) {
|
|
338
338
|
var e = function() {
|
|
339
339
|
var n = String.fromCharCode, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", o = {};
|
|
@@ -345,10 +345,10 @@ ft.exports;
|
|
|
345
345
|
}
|
|
346
346
|
return o[a][c];
|
|
347
347
|
}
|
|
348
|
-
var
|
|
348
|
+
var d = {
|
|
349
349
|
compressToBase64: function(a) {
|
|
350
350
|
if (a == null) return "";
|
|
351
|
-
var c =
|
|
351
|
+
var c = d._compress(a, 6, function(p) {
|
|
352
352
|
return s.charAt(p);
|
|
353
353
|
});
|
|
354
354
|
switch (c.length % 4) {
|
|
@@ -364,258 +364,258 @@ ft.exports;
|
|
|
364
364
|
}
|
|
365
365
|
},
|
|
366
366
|
decompressFromBase64: function(a) {
|
|
367
|
-
return a == null ? "" : a == "" ? null :
|
|
367
|
+
return a == null ? "" : a == "" ? null : d._decompress(a.length, 32, function(c) {
|
|
368
368
|
return i(s, a.charAt(c));
|
|
369
369
|
});
|
|
370
370
|
},
|
|
371
371
|
compressToUTF16: function(a) {
|
|
372
|
-
return a == null ? "" :
|
|
372
|
+
return a == null ? "" : d._compress(a, 15, function(c) {
|
|
373
373
|
return n(c + 32);
|
|
374
374
|
}) + " ";
|
|
375
375
|
},
|
|
376
376
|
decompressFromUTF16: function(a) {
|
|
377
|
-
return a == null ? "" : a == "" ? null :
|
|
377
|
+
return a == null ? "" : a == "" ? null : d._decompress(a.length, 16384, function(c) {
|
|
378
378
|
return a.charCodeAt(c) - 32;
|
|
379
379
|
});
|
|
380
380
|
},
|
|
381
381
|
//compress into uint8array (UCS-2 big endian format)
|
|
382
382
|
compressToUint8Array: function(a) {
|
|
383
|
-
for (var c =
|
|
384
|
-
var
|
|
385
|
-
p[
|
|
383
|
+
for (var c = d.compress(a), p = new Uint8Array(c.length * 2), f = 0, l = c.length; f < l; f++) {
|
|
384
|
+
var m = c.charCodeAt(f);
|
|
385
|
+
p[f * 2] = m >>> 8, p[f * 2 + 1] = m % 256;
|
|
386
386
|
}
|
|
387
387
|
return p;
|
|
388
388
|
},
|
|
389
389
|
//decompress from uint8array (UCS-2 big endian format)
|
|
390
390
|
decompressFromUint8Array: function(a) {
|
|
391
391
|
if (a == null)
|
|
392
|
-
return
|
|
393
|
-
for (var c = new Array(a.length / 2), p = 0,
|
|
392
|
+
return d.decompress(a);
|
|
393
|
+
for (var c = new Array(a.length / 2), p = 0, f = c.length; p < f; p++)
|
|
394
394
|
c[p] = a[p * 2] * 256 + a[p * 2 + 1];
|
|
395
395
|
var l = [];
|
|
396
|
-
return c.forEach(function(
|
|
397
|
-
l.push(n(
|
|
398
|
-
}),
|
|
396
|
+
return c.forEach(function(m) {
|
|
397
|
+
l.push(n(m));
|
|
398
|
+
}), d.decompress(l.join(""));
|
|
399
399
|
},
|
|
400
400
|
//compress into a string that is already URI encoded
|
|
401
401
|
compressToEncodedURIComponent: function(a) {
|
|
402
|
-
return a == null ? "" :
|
|
402
|
+
return a == null ? "" : d._compress(a, 6, function(c) {
|
|
403
403
|
return r.charAt(c);
|
|
404
404
|
});
|
|
405
405
|
},
|
|
406
406
|
//decompress from an output of compressToEncodedURIComponent
|
|
407
407
|
decompressFromEncodedURIComponent: function(a) {
|
|
408
|
-
return a == null ? "" : a == "" ? null : (a = a.replace(/ /g, "+"),
|
|
408
|
+
return a == null ? "" : a == "" ? null : (a = a.replace(/ /g, "+"), d._decompress(a.length, 32, function(c) {
|
|
409
409
|
return i(r, a.charAt(c));
|
|
410
410
|
}));
|
|
411
411
|
},
|
|
412
412
|
compress: function(a) {
|
|
413
|
-
return
|
|
413
|
+
return d._compress(a, 16, function(c) {
|
|
414
414
|
return n(c);
|
|
415
415
|
});
|
|
416
416
|
},
|
|
417
417
|
_compress: function(a, c, p) {
|
|
418
418
|
if (a == null) return "";
|
|
419
|
-
var
|
|
420
|
-
for (
|
|
421
|
-
if (
|
|
422
|
-
y =
|
|
419
|
+
var f, l, m = {}, S = {}, I = "", B = "", y = "", w = 2, T = 3, g = 2, O = [], u = 0, _ = 0, k;
|
|
420
|
+
for (k = 0; k < a.length; k += 1)
|
|
421
|
+
if (I = a.charAt(k), Object.prototype.hasOwnProperty.call(m, I) || (m[I] = T++, S[I] = !0), B = y + I, Object.prototype.hasOwnProperty.call(m, B))
|
|
422
|
+
y = B;
|
|
423
423
|
else {
|
|
424
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
424
|
+
if (Object.prototype.hasOwnProperty.call(S, y)) {
|
|
425
425
|
if (y.charCodeAt(0) < 256) {
|
|
426
|
-
for (
|
|
427
|
-
|
|
428
|
-
for (l = y.charCodeAt(0),
|
|
429
|
-
|
|
426
|
+
for (f = 0; f < g; f++)
|
|
427
|
+
u = u << 1, _ == c - 1 ? (_ = 0, O.push(p(u)), u = 0) : _++;
|
|
428
|
+
for (l = y.charCodeAt(0), f = 0; f < 8; f++)
|
|
429
|
+
u = u << 1 | l & 1, _ == c - 1 ? (_ = 0, O.push(p(u)), u = 0) : _++, l = l >> 1;
|
|
430
430
|
} else {
|
|
431
|
-
for (l = 1,
|
|
432
|
-
|
|
433
|
-
for (l = y.charCodeAt(0),
|
|
434
|
-
|
|
431
|
+
for (l = 1, f = 0; f < g; f++)
|
|
432
|
+
u = u << 1 | l, _ == c - 1 ? (_ = 0, O.push(p(u)), u = 0) : _++, l = 0;
|
|
433
|
+
for (l = y.charCodeAt(0), f = 0; f < 16; f++)
|
|
434
|
+
u = u << 1 | l & 1, _ == c - 1 ? (_ = 0, O.push(p(u)), u = 0) : _++, l = l >> 1;
|
|
435
435
|
}
|
|
436
|
-
w--, w == 0 && (w = Math.pow(2, g), g++), delete
|
|
436
|
+
w--, w == 0 && (w = Math.pow(2, g), g++), delete S[y];
|
|
437
437
|
} else
|
|
438
|
-
for (l =
|
|
439
|
-
|
|
440
|
-
w--, w == 0 && (w = Math.pow(2, g), g++),
|
|
438
|
+
for (l = m[y], f = 0; f < g; f++)
|
|
439
|
+
u = u << 1 | l & 1, _ == c - 1 ? (_ = 0, O.push(p(u)), u = 0) : _++, l = l >> 1;
|
|
440
|
+
w--, w == 0 && (w = Math.pow(2, g), g++), m[B] = T++, y = String(I);
|
|
441
441
|
}
|
|
442
442
|
if (y !== "") {
|
|
443
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
443
|
+
if (Object.prototype.hasOwnProperty.call(S, y)) {
|
|
444
444
|
if (y.charCodeAt(0) < 256) {
|
|
445
|
-
for (
|
|
446
|
-
|
|
447
|
-
for (l = y.charCodeAt(0),
|
|
448
|
-
|
|
445
|
+
for (f = 0; f < g; f++)
|
|
446
|
+
u = u << 1, _ == c - 1 ? (_ = 0, O.push(p(u)), u = 0) : _++;
|
|
447
|
+
for (l = y.charCodeAt(0), f = 0; f < 8; f++)
|
|
448
|
+
u = u << 1 | l & 1, _ == c - 1 ? (_ = 0, O.push(p(u)), u = 0) : _++, l = l >> 1;
|
|
449
449
|
} else {
|
|
450
|
-
for (l = 1,
|
|
451
|
-
|
|
452
|
-
for (l = y.charCodeAt(0),
|
|
453
|
-
|
|
450
|
+
for (l = 1, f = 0; f < g; f++)
|
|
451
|
+
u = u << 1 | l, _ == c - 1 ? (_ = 0, O.push(p(u)), u = 0) : _++, l = 0;
|
|
452
|
+
for (l = y.charCodeAt(0), f = 0; f < 16; f++)
|
|
453
|
+
u = u << 1 | l & 1, _ == c - 1 ? (_ = 0, O.push(p(u)), u = 0) : _++, l = l >> 1;
|
|
454
454
|
}
|
|
455
|
-
w--, w == 0 && (w = Math.pow(2, g), g++), delete
|
|
455
|
+
w--, w == 0 && (w = Math.pow(2, g), g++), delete S[y];
|
|
456
456
|
} else
|
|
457
|
-
for (l =
|
|
458
|
-
|
|
457
|
+
for (l = m[y], f = 0; f < g; f++)
|
|
458
|
+
u = u << 1 | l & 1, _ == c - 1 ? (_ = 0, O.push(p(u)), u = 0) : _++, l = l >> 1;
|
|
459
459
|
w--, w == 0 && (w = Math.pow(2, g), g++);
|
|
460
460
|
}
|
|
461
|
-
for (l = 2,
|
|
462
|
-
|
|
461
|
+
for (l = 2, f = 0; f < g; f++)
|
|
462
|
+
u = u << 1 | l & 1, _ == c - 1 ? (_ = 0, O.push(p(u)), u = 0) : _++, l = l >> 1;
|
|
463
463
|
for (; ; )
|
|
464
|
-
if (
|
|
465
|
-
|
|
464
|
+
if (u = u << 1, _ == c - 1) {
|
|
465
|
+
O.push(p(u));
|
|
466
466
|
break;
|
|
467
|
-
} else
|
|
468
|
-
return
|
|
467
|
+
} else _++;
|
|
468
|
+
return O.join("");
|
|
469
469
|
},
|
|
470
470
|
decompress: function(a) {
|
|
471
|
-
return a == null ? "" : a == "" ? null :
|
|
471
|
+
return a == null ? "" : a == "" ? null : d._decompress(a.length, 32768, function(c) {
|
|
472
472
|
return a.charCodeAt(c);
|
|
473
473
|
});
|
|
474
474
|
},
|
|
475
475
|
_decompress: function(a, c, p) {
|
|
476
|
-
var
|
|
476
|
+
var f = [], l = 4, m = 4, S = 3, I = "", B = [], y, w, T, g, O, u, _, k = { val: p(0), position: c, index: 1 };
|
|
477
477
|
for (y = 0; y < 3; y += 1)
|
|
478
|
-
|
|
479
|
-
for (T = 0,
|
|
480
|
-
g =
|
|
478
|
+
f[y] = y;
|
|
479
|
+
for (T = 0, O = Math.pow(2, 2), u = 1; u != O; )
|
|
480
|
+
g = k.val & k.position, k.position >>= 1, k.position == 0 && (k.position = c, k.val = p(k.index++)), T |= (g > 0 ? 1 : 0) * u, u <<= 1;
|
|
481
481
|
switch (T) {
|
|
482
482
|
case 0:
|
|
483
|
-
for (T = 0,
|
|
484
|
-
g =
|
|
485
|
-
|
|
483
|
+
for (T = 0, O = Math.pow(2, 8), u = 1; u != O; )
|
|
484
|
+
g = k.val & k.position, k.position >>= 1, k.position == 0 && (k.position = c, k.val = p(k.index++)), T |= (g > 0 ? 1 : 0) * u, u <<= 1;
|
|
485
|
+
_ = n(T);
|
|
486
486
|
break;
|
|
487
487
|
case 1:
|
|
488
|
-
for (T = 0,
|
|
489
|
-
g =
|
|
490
|
-
|
|
488
|
+
for (T = 0, O = Math.pow(2, 16), u = 1; u != O; )
|
|
489
|
+
g = k.val & k.position, k.position >>= 1, k.position == 0 && (k.position = c, k.val = p(k.index++)), T |= (g > 0 ? 1 : 0) * u, u <<= 1;
|
|
490
|
+
_ = n(T);
|
|
491
491
|
break;
|
|
492
492
|
case 2:
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
|
-
for (
|
|
496
|
-
if (
|
|
495
|
+
for (f[3] = _, w = _, B.push(_); ; ) {
|
|
496
|
+
if (k.index > a)
|
|
497
497
|
return "";
|
|
498
|
-
for (T = 0,
|
|
499
|
-
g =
|
|
500
|
-
switch (
|
|
498
|
+
for (T = 0, O = Math.pow(2, S), u = 1; u != O; )
|
|
499
|
+
g = k.val & k.position, k.position >>= 1, k.position == 0 && (k.position = c, k.val = p(k.index++)), T |= (g > 0 ? 1 : 0) * u, u <<= 1;
|
|
500
|
+
switch (_ = T) {
|
|
501
501
|
case 0:
|
|
502
|
-
for (T = 0,
|
|
503
|
-
g =
|
|
504
|
-
|
|
502
|
+
for (T = 0, O = Math.pow(2, 8), u = 1; u != O; )
|
|
503
|
+
g = k.val & k.position, k.position >>= 1, k.position == 0 && (k.position = c, k.val = p(k.index++)), T |= (g > 0 ? 1 : 0) * u, u <<= 1;
|
|
504
|
+
f[m++] = n(T), _ = m - 1, l--;
|
|
505
505
|
break;
|
|
506
506
|
case 1:
|
|
507
|
-
for (T = 0,
|
|
508
|
-
g =
|
|
509
|
-
|
|
507
|
+
for (T = 0, O = Math.pow(2, 16), u = 1; u != O; )
|
|
508
|
+
g = k.val & k.position, k.position >>= 1, k.position == 0 && (k.position = c, k.val = p(k.index++)), T |= (g > 0 ? 1 : 0) * u, u <<= 1;
|
|
509
|
+
f[m++] = n(T), _ = m - 1, l--;
|
|
510
510
|
break;
|
|
511
511
|
case 2:
|
|
512
|
-
return
|
|
512
|
+
return B.join("");
|
|
513
513
|
}
|
|
514
|
-
if (l == 0 && (l = Math.pow(2,
|
|
515
|
-
|
|
516
|
-
else if (
|
|
517
|
-
|
|
514
|
+
if (l == 0 && (l = Math.pow(2, S), S++), f[_])
|
|
515
|
+
I = f[_];
|
|
516
|
+
else if (_ === m)
|
|
517
|
+
I = w + w.charAt(0);
|
|
518
518
|
else
|
|
519
519
|
return null;
|
|
520
|
-
|
|
520
|
+
B.push(I), f[m++] = w + I.charAt(0), l--, w = I, l == 0 && (l = Math.pow(2, S), S++);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
|
-
return
|
|
524
|
+
return d;
|
|
525
525
|
}();
|
|
526
526
|
t != null ? t.exports = e : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
|
|
527
527
|
return e;
|
|
528
528
|
});
|
|
529
|
-
})(
|
|
530
|
-
var
|
|
531
|
-
const
|
|
529
|
+
})(dt);
|
|
530
|
+
var rn = dt.exports;
|
|
531
|
+
const Kn = new TextEncoder(), Jn = new TextDecoder("utf-8", { ignoreBOM: !0 }), Ot = {
|
|
532
532
|
/* API */
|
|
533
|
-
encode: (t) =>
|
|
534
|
-
decode: (t) =>
|
|
535
|
-
},
|
|
533
|
+
encode: (t) => Kn.encode(t),
|
|
534
|
+
decode: (t) => Jn.decode(t)
|
|
535
|
+
}, on = (() => {
|
|
536
536
|
const e = [..."0123456789abcdef"], n = new Array(256);
|
|
537
537
|
for (let s = 0; s < 256; s++)
|
|
538
538
|
n[s] = `${e[s >>> 4 & 15]}${e[s & 15]}`;
|
|
539
539
|
return n;
|
|
540
|
-
})(),
|
|
540
|
+
})(), Qn = (() => {
|
|
541
541
|
const t = {};
|
|
542
542
|
for (let e = 0; e < 256; e++) {
|
|
543
|
-
const n =
|
|
543
|
+
const n = on[e], s = n[0], r = s.toUpperCase(), o = n[1], i = o.toUpperCase();
|
|
544
544
|
t[n] = e, t[`${s}${i}`] = e, t[`${r}${o}`] = e, t[`${r}${i}`] = e;
|
|
545
545
|
}
|
|
546
546
|
return t;
|
|
547
|
-
})(),
|
|
547
|
+
})(), es = (t) => !(t.length % 2 || !/^[a-fA-F0-9]*$/.test(t)), tt = {
|
|
548
548
|
/* API */
|
|
549
549
|
encode: (t) => {
|
|
550
550
|
let e = "";
|
|
551
551
|
for (let n = 0, s = t.length; n < s; n++)
|
|
552
|
-
e +=
|
|
552
|
+
e += on[t[n]];
|
|
553
553
|
return e;
|
|
554
554
|
},
|
|
555
|
-
encodeStr: (t) =>
|
|
555
|
+
encodeStr: (t) => tt.encode(Ot.encode(t)),
|
|
556
556
|
decode: (t) => {
|
|
557
557
|
const e = t.length / 2, n = new Uint8Array(e);
|
|
558
558
|
for (let s = 0; s < e; s++)
|
|
559
|
-
n[s] =
|
|
559
|
+
n[s] = Qn[t.slice(s * 2, s * 2 + 2)];
|
|
560
560
|
return n;
|
|
561
561
|
},
|
|
562
|
-
decodeStr: (t) =>
|
|
563
|
-
is:
|
|
562
|
+
decodeStr: (t) => Ot.decode(tt.decode(t)),
|
|
563
|
+
is: es
|
|
564
564
|
};
|
|
565
565
|
function Ae(t) {
|
|
566
566
|
if (!Number.isSafeInteger(t) || t < 0)
|
|
567
567
|
throw new Error(`positive integer expected, not ${t}`);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function ts(t) {
|
|
570
570
|
return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
if (!
|
|
572
|
+
function ht(t, ...e) {
|
|
573
|
+
if (!ts(t))
|
|
574
574
|
throw new Error("Uint8Array expected");
|
|
575
575
|
if (e.length > 0 && !e.includes(t.length))
|
|
576
576
|
throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function nt(t, e = !0) {
|
|
579
579
|
if (t.destroyed)
|
|
580
580
|
throw new Error("Hash instance has been destroyed");
|
|
581
581
|
if (e && t.finished)
|
|
582
582
|
throw new Error("Hash#digest() has already been called");
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
|
|
584
|
+
function an(t, e) {
|
|
585
|
+
ht(t);
|
|
586
586
|
const n = e.outputLen;
|
|
587
587
|
if (t.length < n)
|
|
588
588
|
throw new Error(`digestInto() expects output buffer of length at least ${n}`);
|
|
589
589
|
}
|
|
590
|
-
const Re = /* @__PURE__ */ BigInt(2 ** 32 - 1),
|
|
591
|
-
function
|
|
592
|
-
return e ? { h: Number(t & Re), l: Number(t >>
|
|
590
|
+
const Re = /* @__PURE__ */ BigInt(2 ** 32 - 1), At = /* @__PURE__ */ BigInt(32);
|
|
591
|
+
function Et(t, e = !1) {
|
|
592
|
+
return e ? { h: Number(t & Re), l: Number(t >> At & Re) } : { h: Number(t >> At & Re) | 0, l: Number(t & Re) | 0 };
|
|
593
593
|
}
|
|
594
594
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
595
|
-
const
|
|
595
|
+
const ns = (t) => new Uint8Array(t.buffer, t.byteOffset, t.byteLength), Ue = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), qe = (t, e) => t << 32 - e | t >>> e, j = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, cn = (t) => t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255, ss = j ? (t) => t : (t) => cn(t);
|
|
596
596
|
function H(t) {
|
|
597
597
|
for (let e = 0; e < t.length; e++)
|
|
598
|
-
t[e] =
|
|
598
|
+
t[e] = cn(t[e]);
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function rs(t) {
|
|
601
601
|
if (typeof t != "string")
|
|
602
602
|
throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
|
|
603
603
|
return new Uint8Array(new TextEncoder().encode(t));
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
return typeof t == "string" && (t =
|
|
605
|
+
function pt(t) {
|
|
606
|
+
return typeof t == "string" && (t = rs(t)), ht(t), t;
|
|
607
607
|
}
|
|
608
|
-
class
|
|
608
|
+
class os {
|
|
609
609
|
// Safe version that clones internal state
|
|
610
610
|
clone() {
|
|
611
611
|
return this._cloneInto();
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
function
|
|
615
|
-
const e = (s, r) => t(r).update(
|
|
614
|
+
function is(t) {
|
|
615
|
+
const e = (s, r) => t(r).update(pt(s)).digest(), n = t({});
|
|
616
616
|
return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = (s) => t(s), e;
|
|
617
617
|
}
|
|
618
|
-
class
|
|
618
|
+
class as extends os {
|
|
619
619
|
constructor(e, n, s = {}, r, o, i) {
|
|
620
620
|
if (super(), this.blockLen = e, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1, Ae(e), Ae(n), Ae(r), n < 0 || n > r)
|
|
621
621
|
throw new Error("outputLen bigger than keyLen");
|
|
@@ -628,19 +628,19 @@ class is extends rs {
|
|
|
628
628
|
this.buffer32 = Ue(this.buffer = new Uint8Array(e));
|
|
629
629
|
}
|
|
630
630
|
update(e) {
|
|
631
|
-
|
|
631
|
+
nt(this);
|
|
632
632
|
const { blockLen: n, buffer: s, buffer32: r } = this;
|
|
633
|
-
e =
|
|
634
|
-
const o = e.length, i = e.byteOffset,
|
|
633
|
+
e = pt(e);
|
|
634
|
+
const o = e.length, i = e.byteOffset, d = e.buffer;
|
|
635
635
|
for (let a = 0; a < o; ) {
|
|
636
636
|
this.pos === n && (j || H(r), this.compress(r, 0, !1), j || H(r), this.pos = 0);
|
|
637
637
|
const c = Math.min(n - this.pos, o - a), p = i + a;
|
|
638
638
|
if (c === n && !(p % 4) && a + c < o) {
|
|
639
|
-
const
|
|
640
|
-
j || H(
|
|
639
|
+
const f = new Uint32Array(d, p, Math.floor((o - a) / 4));
|
|
640
|
+
j || H(f);
|
|
641
641
|
for (let l = 0; a + n < o; l += r.length, a += n)
|
|
642
|
-
this.length += n, this.compress(
|
|
643
|
-
j || H(
|
|
642
|
+
this.length += n, this.compress(f, l, !1);
|
|
643
|
+
j || H(f);
|
|
644
644
|
continue;
|
|
645
645
|
}
|
|
646
646
|
s.set(e.subarray(a, a + c), this.pos), this.pos += c, this.length += c, a += c;
|
|
@@ -648,11 +648,11 @@ class is extends rs {
|
|
|
648
648
|
return this;
|
|
649
649
|
}
|
|
650
650
|
digestInto(e) {
|
|
651
|
-
|
|
651
|
+
nt(this), an(e, this);
|
|
652
652
|
const { pos: n, buffer32: s } = this;
|
|
653
653
|
this.finished = !0, this.buffer.subarray(n).fill(0), j || H(s), this.compress(s, 0, !0), j || H(s);
|
|
654
654
|
const r = Ue(e);
|
|
655
|
-
this.get().forEach((o, i) => r[i] =
|
|
655
|
+
this.get().forEach((o, i) => r[i] = ss(o));
|
|
656
656
|
}
|
|
657
657
|
digest() {
|
|
658
658
|
const { buffer: e, outputLen: n } = this;
|
|
@@ -661,8 +661,8 @@ class is extends rs {
|
|
|
661
661
|
return this.destroy(), s;
|
|
662
662
|
}
|
|
663
663
|
_cloneInto(e) {
|
|
664
|
-
const { buffer: n, length: s, finished: r, destroyed: o, outputLen: i, pos:
|
|
665
|
-
return e || (e = new this.constructor({ dkLen: i })), e.set(...this.get()), e.length = s, e.finished = r, e.destroyed = o, e.outputLen = i, e.buffer.set(n), e.pos =
|
|
664
|
+
const { buffer: n, length: s, finished: r, destroyed: o, outputLen: i, pos: d } = this;
|
|
665
|
+
return e || (e = new this.constructor({ dkLen: i })), e.set(...this.get()), e.length = s, e.finished = r, e.destroyed = o, e.outputLen = i, e.buffer.set(n), e.pos = d, e;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
const te = /* @__PURE__ */ new Uint32Array([
|
|
@@ -681,29 +681,29 @@ function oe(t, e, n, s, r) {
|
|
|
681
681
|
function ie(t, e, n, s, r) {
|
|
682
682
|
return t = t + e + r | 0, s = qe(s ^ t, 8), n = n + s | 0, e = qe(e ^ n, 7), { a: t, b: e, c: n, d: s };
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function It(t, e, n, s, r, o, i, d, a, c, p, f, l, m, S, I, B, y, w, T) {
|
|
685
685
|
let g = 0;
|
|
686
|
-
for (let
|
|
687
|
-
({ a: r, b: a, c: l, d:
|
|
688
|
-
return { v0: r, v1: o, v2: i, v3:
|
|
686
|
+
for (let O = 0; O < s; O++)
|
|
687
|
+
({ a: r, b: a, c: l, d: B } = oe(r, a, l, B, n[e + t[g++]])), { a: r, b: a, c: l, d: B } = ie(r, a, l, B, n[e + t[g++]]), { a: o, b: c, c: m, d: y } = oe(o, c, m, y, n[e + t[g++]]), { a: o, b: c, c: m, d: y } = ie(o, c, m, y, n[e + t[g++]]), { a: i, b: p, c: S, d: w } = oe(i, p, S, w, n[e + t[g++]]), { a: i, b: p, c: S, d: w } = ie(i, p, S, w, n[e + t[g++]]), { a: d, b: f, c: I, d: T } = oe(d, f, I, T, n[e + t[g++]]), { a: d, b: f, c: I, d: T } = ie(d, f, I, T, n[e + t[g++]]), { a: r, b: c, c: S, d: T } = oe(r, c, S, T, n[e + t[g++]]), { a: r, b: c, c: S, d: T } = ie(r, c, S, T, n[e + t[g++]]), { a: o, b: p, c: I, d: B } = oe(o, p, I, B, n[e + t[g++]]), { a: o, b: p, c: I, d: B } = ie(o, p, I, B, n[e + t[g++]]), { a: i, b: f, c: l, d: y } = oe(i, f, l, y, n[e + t[g++]]), { a: i, b: f, c: l, d: y } = ie(i, f, l, y, n[e + t[g++]]), { a: d, b: a, c: m, d: w } = oe(d, a, m, w, n[e + t[g++]]), { a: d, b: a, c: m, d: w } = ie(d, a, m, w, n[e + t[g++]]);
|
|
688
|
+
return { v0: r, v1: o, v2: i, v3: d, v4: a, v5: c, v6: p, v7: f, v8: l, v9: m, v10: S, v11: I, v12: B, v13: y, v14: w, v15: T };
|
|
689
689
|
}
|
|
690
|
-
const
|
|
690
|
+
const Bt = /* @__PURE__ */ (() => {
|
|
691
691
|
const t = Array.from({ length: 16 }, (s, r) => r), e = (s) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((r) => s[r]), n = [];
|
|
692
692
|
for (let s = 0, r = t; s < 7; s++, r = e(r))
|
|
693
693
|
n.push(...r);
|
|
694
694
|
return Uint8Array.from(n);
|
|
695
695
|
})();
|
|
696
|
-
class
|
|
696
|
+
class bt extends as {
|
|
697
697
|
constructor(e = {}, n = 0) {
|
|
698
698
|
if (super(64, e.dkLen === void 0 ? 32 : e.dkLen, {}, Number.MAX_SAFE_INTEGER, 0, 0), this.flags = 0, this.chunkPos = 0, this.chunksDone = 0, this.stack = [], this.posOut = 0, this.bufferOut32 = new Uint32Array(16), this.chunkOut = 0, this.enableXOF = !0, this.outputLen = e.dkLen === void 0 ? 32 : e.dkLen, Ae(this.outputLen), e.key !== void 0 && e.context !== void 0)
|
|
699
699
|
throw new Error("Blake3: only key or context can be specified at same time");
|
|
700
700
|
if (e.key !== void 0) {
|
|
701
|
-
const s =
|
|
701
|
+
const s = pt(e.key).slice();
|
|
702
702
|
if (s.length !== 32)
|
|
703
703
|
throw new Error("Blake3: key should be 32 byte");
|
|
704
704
|
this.IV = Ue(s), j || H(this.IV), this.flags = n | 16;
|
|
705
705
|
} else if (e.context !== void 0) {
|
|
706
|
-
const s = new
|
|
706
|
+
const s = new bt(
|
|
707
707
|
{ dkLen: 32 },
|
|
708
708
|
32
|
|
709
709
|
/* B3_Flags.DERIVE_KEY_CONTEXT */
|
|
@@ -711,7 +711,7 @@ class pt extends is {
|
|
|
711
711
|
this.IV = Ue(s), j || H(this.IV), this.flags = n | 64;
|
|
712
712
|
} else
|
|
713
713
|
this.IV = te.slice(), this.flags = n;
|
|
714
|
-
this.state = this.IV.slice(), this.bufferOut =
|
|
714
|
+
this.state = this.IV.slice(), this.bufferOut = ns(this.bufferOut32);
|
|
715
715
|
}
|
|
716
716
|
// Unused
|
|
717
717
|
get() {
|
|
@@ -720,15 +720,15 @@ class pt extends is {
|
|
|
720
720
|
set() {
|
|
721
721
|
}
|
|
722
722
|
b2Compress(e, n, s, r = 0) {
|
|
723
|
-
const { state: o, pos: i } = this, { h:
|
|
724
|
-
o[0] = c ^ y, o[1] = p ^ w, o[2] =
|
|
723
|
+
const { state: o, pos: i } = this, { h: d, l: a } = Et(BigInt(e), !0), { v0: c, v1: p, v2: f, v3: l, v4: m, v5: S, v6: I, v7: B, v8: y, v9: w, v10: T, v11: g, v12: O, v13: u, v14: _, v15: k } = It(Bt, r, s, 7, o[0], o[1], o[2], o[3], o[4], o[5], o[6], o[7], te[0], te[1], te[2], te[3], d, a, i, n);
|
|
724
|
+
o[0] = c ^ y, o[1] = p ^ w, o[2] = f ^ T, o[3] = l ^ g, o[4] = m ^ O, o[5] = S ^ u, o[6] = I ^ _, o[7] = B ^ k;
|
|
725
725
|
}
|
|
726
726
|
compress(e, n = 0, s = !1) {
|
|
727
727
|
let r = this.flags;
|
|
728
728
|
if (this.chunkPos || (r |= 1), (this.chunkPos === 15 || s) && (r |= 2), s || (this.pos = this.blockLen), this.b2Compress(this.chunksDone, r, e, n), this.chunkPos += 1, this.chunkPos === 16 || s) {
|
|
729
729
|
let o = this.state;
|
|
730
730
|
this.state = this.IV.slice();
|
|
731
|
-
for (let i,
|
|
731
|
+
for (let i, d = this.chunksDone + 1; (s || !(d & 1)) && (i = this.stack.pop()); d >>= 1)
|
|
732
732
|
this.buffer32.set(i, 0), this.buffer32.set(o, 8), this.pos = this.blockLen, this.b2Compress(0, this.flags | 4, this.buffer32, 0), o = this.state, this.state = this.IV.slice();
|
|
733
733
|
this.chunksDone++, this.chunkPos = 0, this.stack.push(o);
|
|
734
734
|
}
|
|
@@ -736,8 +736,8 @@ class pt extends is {
|
|
|
736
736
|
}
|
|
737
737
|
_cloneInto(e) {
|
|
738
738
|
e = super._cloneInto(e);
|
|
739
|
-
const { IV: n, flags: s, state: r, chunkPos: o, posOut: i, chunkOut:
|
|
740
|
-
return e.state.set(r.slice()), e.stack = a.map((p) => Uint32Array.from(p)), e.IV.set(n), e.flags = s, e.chunkPos = o, e.chunksDone = c, e.posOut = i, e.chunkOut =
|
|
739
|
+
const { IV: n, flags: s, state: r, chunkPos: o, posOut: i, chunkOut: d, stack: a, chunksDone: c } = this;
|
|
740
|
+
return e.state.set(r.slice()), e.stack = a.map((p) => Uint32Array.from(p)), e.IV.set(n), e.flags = s, e.chunkPos = o, e.chunksDone = c, e.posOut = i, e.chunkOut = d, e.enableXOF = this.enableXOF, e.bufferOut32.set(this.bufferOut32), e;
|
|
741
741
|
}
|
|
742
742
|
destroy() {
|
|
743
743
|
this.destroyed = !0, this.state.fill(0), this.buffer32.fill(0), this.IV.fill(0), this.bufferOut32.fill(0);
|
|
@@ -746,10 +746,10 @@ class pt extends is {
|
|
|
746
746
|
}
|
|
747
747
|
// Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8)
|
|
748
748
|
b2CompressOut() {
|
|
749
|
-
const { state: e, pos: n, flags: s, buffer32: r, bufferOut32: o } = this, { h: i, l:
|
|
749
|
+
const { state: e, pos: n, flags: s, buffer32: r, bufferOut32: o } = this, { h: i, l: d } = Et(BigInt(this.chunkOut++));
|
|
750
750
|
j || H(r);
|
|
751
|
-
const { v0: a, v1: c, v2: p, v3:
|
|
752
|
-
o[0] = a ^
|
|
751
|
+
const { v0: a, v1: c, v2: p, v3: f, v4: l, v5: m, v6: S, v7: I, v8: B, v9: y, v10: w, v11: T, v12: g, v13: O, v14: u, v15: _ } = It(Bt, 0, r, 7, e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], te[0], te[1], te[2], te[3], d, i, n, s);
|
|
752
|
+
o[0] = a ^ B, o[1] = c ^ y, o[2] = p ^ w, o[3] = f ^ T, o[4] = l ^ g, o[5] = m ^ O, o[6] = S ^ u, o[7] = I ^ _, o[8] = e[0] ^ B, o[9] = e[1] ^ y, o[10] = e[2] ^ w, o[11] = e[3] ^ T, o[12] = e[4] ^ g, o[13] = e[5] ^ O, o[14] = e[6] ^ u, o[15] = e[7] ^ _, j || (H(r), H(o)), this.posOut = 0;
|
|
753
753
|
}
|
|
754
754
|
finish() {
|
|
755
755
|
if (this.finished)
|
|
@@ -759,7 +759,7 @@ class pt extends is {
|
|
|
759
759
|
this.stack.length ? (e |= 4, j || H(this.buffer32), this.compress(this.buffer32, 0, !0), j || H(this.buffer32), this.chunksDone = 0, this.pos = this.blockLen) : e |= (this.chunkPos ? 0 : 1) | 2, this.flags = e, this.b2CompressOut();
|
|
760
760
|
}
|
|
761
761
|
writeInto(e) {
|
|
762
|
-
|
|
762
|
+
nt(this, !1), ht(e), this.finish();
|
|
763
763
|
const { blockLen: n, bufferOut: s } = this;
|
|
764
764
|
for (let r = 0, o = e.length; r < o; ) {
|
|
765
765
|
this.posOut >= n && this.b2CompressOut();
|
|
@@ -777,7 +777,7 @@ class pt extends is {
|
|
|
777
777
|
return Ae(e), this.xofInto(new Uint8Array(e));
|
|
778
778
|
}
|
|
779
779
|
digestInto(e) {
|
|
780
|
-
if (
|
|
780
|
+
if (an(e, this), this.finished)
|
|
781
781
|
throw new Error("digest() was already called");
|
|
782
782
|
return this.enableXOF = !1, this.writeInto(e), this.destroy(), e;
|
|
783
783
|
}
|
|
@@ -785,11 +785,11 @@ class pt extends is {
|
|
|
785
785
|
return this.digestInto(new Uint8Array(this.outputLen));
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
|
-
const
|
|
788
|
+
const cs = /* @__PURE__ */ is((t) => new bt(t)), st = (t) => {
|
|
789
789
|
const e = `${t.id}|${t.title}|${t.iframe ? "Y" : "N"}|${t.closable ? "Y" : "N"}|${t.refreshable ? "Y" : "N"}`;
|
|
790
|
-
return
|
|
791
|
-
},
|
|
792
|
-
const n =
|
|
790
|
+
return rn.compressToEncodedURIComponent(e);
|
|
791
|
+
}, ls = (t) => {
|
|
792
|
+
const n = rn.decompressFromEncodedURIComponent(t).split("|");
|
|
793
793
|
return {
|
|
794
794
|
id: n[0],
|
|
795
795
|
title: n[1],
|
|
@@ -797,7 +797,7 @@ const as = /* @__PURE__ */ os((t) => new pt(t)), nt = (t) => {
|
|
|
797
797
|
closable: n[3] === "Y",
|
|
798
798
|
refreshable: n[4] === "Y"
|
|
799
799
|
};
|
|
800
|
-
},
|
|
800
|
+
}, Mt = (t, e, n) => {
|
|
801
801
|
const s = [];
|
|
802
802
|
for (const o in n)
|
|
803
803
|
o.startsWith("__") || s.push({
|
|
@@ -805,11 +805,11 @@ const as = /* @__PURE__ */ os((t) => new pt(t)), nt = (t) => {
|
|
|
805
805
|
value: n[o]
|
|
806
806
|
});
|
|
807
807
|
s.sort((o, i) => {
|
|
808
|
-
let
|
|
809
|
-
return o.key > i.key ?
|
|
808
|
+
let d = 0;
|
|
809
|
+
return o.key > i.key ? d = 1 : o.key < i.key && (d = -1), d;
|
|
810
810
|
});
|
|
811
|
-
const r =
|
|
812
|
-
return
|
|
811
|
+
const r = cs(`${t}|${e}|${JSON.stringify(s)}`);
|
|
812
|
+
return tt.encode(r);
|
|
813
813
|
};
|
|
814
814
|
function Xe(t) {
|
|
815
815
|
if (t === null || typeof t != "object")
|
|
@@ -817,15 +817,15 @@ function Xe(t) {
|
|
|
817
817
|
const e = Object.getPrototypeOf(t);
|
|
818
818
|
return e !== null && e !== Object.prototype && Object.getPrototypeOf(e) !== null || Symbol.iterator in t ? !1 : Symbol.toStringTag in t ? Object.prototype.toString.call(t) === "[object Module]" : !0;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function rt(t, e, n = ".", s) {
|
|
821
821
|
if (!Xe(e))
|
|
822
|
-
return
|
|
822
|
+
return rt(t, {}, n, s);
|
|
823
823
|
const r = Object.assign({}, e);
|
|
824
824
|
for (const o in t) {
|
|
825
825
|
if (o === "__proto__" || o === "constructor")
|
|
826
826
|
continue;
|
|
827
827
|
const i = t[o];
|
|
828
|
-
i != null && (s && s(r, o, i, n) || (Array.isArray(i) && Array.isArray(r[o]) ? r[o] = [...i, ...r[o]] : Xe(i) && Xe(r[o]) ? r[o] =
|
|
828
|
+
i != null && (s && s(r, o, i, n) || (Array.isArray(i) && Array.isArray(r[o]) ? r[o] = [...i, ...r[o]] : Xe(i) && Xe(r[o]) ? r[o] = rt(
|
|
829
829
|
i,
|
|
830
830
|
r[o],
|
|
831
831
|
(n ? `${n}.` : "") + o.toString(),
|
|
@@ -834,13 +834,13 @@ function st(t, e, n = ".", s) {
|
|
|
834
834
|
}
|
|
835
835
|
return r;
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function us(t) {
|
|
838
838
|
return (...e) => (
|
|
839
839
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
840
|
-
e.reduce((n, s) =>
|
|
840
|
+
e.reduce((n, s) => rt(n, s, "", t), {})
|
|
841
841
|
);
|
|
842
842
|
}
|
|
843
|
-
const ne =
|
|
843
|
+
const ne = us(), vt = (t) => {
|
|
844
844
|
const e = t.split("?");
|
|
845
845
|
if (e.length <= 1)
|
|
846
846
|
return {
|
|
@@ -859,7 +859,7 @@ const ne = ls(), bt = (t) => {
|
|
|
859
859
|
};
|
|
860
860
|
}
|
|
861
861
|
};
|
|
862
|
-
function
|
|
862
|
+
function fs(t) {
|
|
863
863
|
return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, n) {
|
|
864
864
|
var s = t.get(e);
|
|
865
865
|
s ? s.push(n) : t.set(e, [n]);
|
|
@@ -875,45 +875,45 @@ function us(t) {
|
|
|
875
875
|
});
|
|
876
876
|
} };
|
|
877
877
|
}
|
|
878
|
-
const
|
|
878
|
+
const ds = fs(), hs = {
|
|
879
879
|
install(t) {
|
|
880
|
-
t.provide("tabEmitter",
|
|
880
|
+
t.provide("tabEmitter", ds);
|
|
881
881
|
}
|
|
882
|
-
}, ge = () =>
|
|
882
|
+
}, ge = () => at("tabEmitter");
|
|
883
883
|
var Z = /* @__PURE__ */ ((t) => (t.PAGE_LOADING = "PAGE_LOADING", t.TAB_ACTIVE = "TAB_ACTIVE", t))(Z || {});
|
|
884
|
-
const
|
|
884
|
+
const ps = {
|
|
885
885
|
key: 0,
|
|
886
886
|
class: "stack-tab-loading-mask"
|
|
887
|
-
},
|
|
887
|
+
}, bs = /* @__PURE__ */ ee({
|
|
888
888
|
__name: "PageLoading",
|
|
889
889
|
props: {
|
|
890
890
|
tId: {}
|
|
891
891
|
},
|
|
892
892
|
setup(t) {
|
|
893
|
-
const e = t, n = ge(), s =
|
|
893
|
+
const e = t, n = ge(), s = $(!1);
|
|
894
894
|
return n.on(Z.PAGE_LOADING, ({ tId: r, value: o }) => {
|
|
895
895
|
r === e.tId && (s.value = o);
|
|
896
|
-
}), (r, o) => s.value ? (R(), V("div",
|
|
896
|
+
}), (r, o) => s.value ? (R(), V("div", ps, o[0] || (o[0] = [
|
|
897
897
|
Q("div", { class: "stack-tab-loading--spin turn" }, null, -1)
|
|
898
898
|
]))) : se("", !0);
|
|
899
899
|
}
|
|
900
|
-
}), M =
|
|
901
|
-
let
|
|
900
|
+
}), M = $([]), Ge = [], N = $([]), ae = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Set(), F = /* @__PURE__ */ new Set(), de = $(!0), Ye = "stacktab-active-tab", he = /* @__PURE__ */ new Map();
|
|
901
|
+
let Ct = !1, De = 0, Lt = !1, Ke = "";
|
|
902
902
|
const Ce = () => {
|
|
903
|
-
const t =
|
|
903
|
+
const t = ut(), e = ge(), {
|
|
904
904
|
t: n
|
|
905
|
-
} = Me(), s = () => M.value.length, r = (
|
|
906
|
-
for (const E of
|
|
905
|
+
} = Me(), s = () => M.value.length, r = (b) => {
|
|
906
|
+
for (const E of b) {
|
|
907
907
|
const h = ne(E, {
|
|
908
|
-
id:
|
|
908
|
+
id: et(),
|
|
909
909
|
refreshable: !0,
|
|
910
910
|
closable: !0,
|
|
911
911
|
iframe: !1
|
|
912
|
-
}), L =
|
|
912
|
+
}), L = st(h), q = vt(h.path), P = ne(h, {
|
|
913
913
|
closable: !0,
|
|
914
914
|
refreshable: !0,
|
|
915
915
|
iframe: !1
|
|
916
|
-
}), ze =
|
|
916
|
+
}), ze = Mt(h.id, q.path, q.query), X = {
|
|
917
917
|
id: ze,
|
|
918
918
|
tabId: h.id,
|
|
919
919
|
path: q.path,
|
|
@@ -924,10 +924,10 @@ const Ce = () => {
|
|
|
924
924
|
ye.push(X);
|
|
925
925
|
const Y = {
|
|
926
926
|
id: h.id,
|
|
927
|
-
title:
|
|
928
|
-
closable:
|
|
929
|
-
refreshable:
|
|
930
|
-
iframe:
|
|
927
|
+
title: P.title,
|
|
928
|
+
closable: P.closable,
|
|
929
|
+
refreshable: P.refreshable,
|
|
930
|
+
iframe: P.iframe,
|
|
931
931
|
active: !1,
|
|
932
932
|
pages: ye
|
|
933
933
|
};
|
|
@@ -935,9 +935,9 @@ const Ce = () => {
|
|
|
935
935
|
...Y
|
|
936
936
|
});
|
|
937
937
|
}
|
|
938
|
-
const
|
|
939
|
-
if (
|
|
940
|
-
const E = JSON.parse(
|
|
938
|
+
const v = window.sessionStorage.getItem(Ye);
|
|
939
|
+
if (v != null) {
|
|
940
|
+
const E = JSON.parse(v, (L, q) => L === "pages" ? new je(q) : q);
|
|
941
941
|
let h = !1;
|
|
942
942
|
for (const L of M.value)
|
|
943
943
|
if (L.id === E.id) {
|
|
@@ -946,41 +946,41 @@ const Ce = () => {
|
|
|
946
946
|
}
|
|
947
947
|
h || M.value.push(E);
|
|
948
948
|
}
|
|
949
|
-
|
|
950
|
-
}, o = (
|
|
951
|
-
for (const
|
|
952
|
-
if (
|
|
949
|
+
Ct = !0;
|
|
950
|
+
}, o = (b) => {
|
|
951
|
+
for (const v of M.value)
|
|
952
|
+
if (v.id === b)
|
|
953
953
|
return !0;
|
|
954
954
|
return !1;
|
|
955
|
-
}, i = () => De <= 0 || De > 0 && De > M.value.length,
|
|
956
|
-
M.value.push(
|
|
957
|
-
}), a = (
|
|
958
|
-
for (const
|
|
959
|
-
if (
|
|
960
|
-
return
|
|
955
|
+
}, i = () => De <= 0 || De > 0 && De > M.value.length, d = (b) => new Promise((v) => {
|
|
956
|
+
M.value.push(b), v(!0);
|
|
957
|
+
}), a = (b) => {
|
|
958
|
+
for (const v of M.value)
|
|
959
|
+
if (v.id === b)
|
|
960
|
+
return v;
|
|
961
961
|
return null;
|
|
962
|
-
}, c = (
|
|
962
|
+
}, c = (b, v) => {
|
|
963
963
|
let E, h;
|
|
964
|
-
if (
|
|
965
|
-
id:
|
|
964
|
+
if (b.query.__tab ? h = ls(b.query.__tab) : (h = {
|
|
965
|
+
id: et(),
|
|
966
966
|
title: n("VueStackTab.undefined"),
|
|
967
967
|
closable: !0,
|
|
968
968
|
refreshable: !0,
|
|
969
969
|
iframe: !1
|
|
970
|
-
},
|
|
970
|
+
}, b.query.__tab = st(h)), F.has(h.id) || !v)
|
|
971
971
|
return;
|
|
972
|
-
const L =
|
|
973
|
-
if (Te.has(
|
|
974
|
-
return ae.get(
|
|
975
|
-
const ze =
|
|
972
|
+
const L = b.matched[b.matched.length - 1].path, q = b.path.endsWith("/") ? b.path.substring(0, b.path.length - 1) : b.path, P = Mt(h.id, L === q ? q : b.path, b.query.valueOf());
|
|
973
|
+
if (Te.has(P))
|
|
974
|
+
return ae.get(P);
|
|
975
|
+
const ze = b.query.__src;
|
|
976
976
|
let X = null;
|
|
977
|
-
for (const Y of
|
|
977
|
+
for (const Y of x(M))
|
|
978
978
|
Y.active = !1, Y.id === h.id && (X = Y);
|
|
979
979
|
const ye = {
|
|
980
|
-
id:
|
|
980
|
+
id: P,
|
|
981
981
|
tabId: h.id,
|
|
982
|
-
path:
|
|
983
|
-
query:
|
|
982
|
+
path: b.path,
|
|
983
|
+
query: b.query
|
|
984
984
|
};
|
|
985
985
|
if (X === null) {
|
|
986
986
|
const Y = new je();
|
|
@@ -993,7 +993,7 @@ const Ce = () => {
|
|
|
993
993
|
url: decodeURIComponent(ze),
|
|
994
994
|
active: !0,
|
|
995
995
|
pages: Y
|
|
996
|
-
},
|
|
996
|
+
}, d(X).then(() => {
|
|
997
997
|
e.emit(Z.TAB_ACTIVE, {
|
|
998
998
|
id: h.id,
|
|
999
999
|
isRoute: !1
|
|
@@ -1001,165 +1001,165 @@ const Ce = () => {
|
|
|
1001
1001
|
});
|
|
1002
1002
|
} else
|
|
1003
1003
|
X.active = !0, (X.pages.isEmpty() || X.pages.peek().id !== ye.id) && X.pages.push(ye);
|
|
1004
|
-
return U(X), ae.has(
|
|
1005
|
-
name:
|
|
1004
|
+
return U(X), ae.has(P) ? E = ae.get(P) : (E = /* @__PURE__ */ ee({
|
|
1005
|
+
name: P,
|
|
1006
1006
|
components: {
|
|
1007
|
-
DynamicComponent:
|
|
1007
|
+
DynamicComponent: v
|
|
1008
1008
|
},
|
|
1009
1009
|
emits: {
|
|
1010
1010
|
onLoaded: null
|
|
1011
1011
|
},
|
|
1012
|
-
setup(Y,
|
|
1012
|
+
setup(Y, wt) {
|
|
1013
1013
|
return Fe(() => {
|
|
1014
|
-
|
|
1015
|
-
}), gn(() => {
|
|
1016
|
-
u($);
|
|
1014
|
+
wt.emit("onLoaded"), m(P, ".cache-page-wrapper");
|
|
1017
1015
|
}), yn(() => {
|
|
1018
|
-
|
|
1016
|
+
f(P);
|
|
1017
|
+
}), wn(() => {
|
|
1018
|
+
wt.emit("onLoaded"), p(P), D(), F.clear(), v.props = null;
|
|
1019
1019
|
}), He(() => {
|
|
1020
|
-
l(
|
|
1021
|
-
}), () =>
|
|
1020
|
+
l(P);
|
|
1021
|
+
}), () => W("div", {
|
|
1022
1022
|
class: "cache-page-wrapper",
|
|
1023
1023
|
id: "W-" + h.id,
|
|
1024
|
-
style: [
|
|
1025
|
-
}, [
|
|
1024
|
+
style: [Lt ? "overflow:auto" : "overflow:hidden"]
|
|
1025
|
+
}, [W(jt("dynamic-component"), {
|
|
1026
1026
|
tId: h.id,
|
|
1027
|
-
pId:
|
|
1028
|
-
}, null),
|
|
1027
|
+
pId: P
|
|
1028
|
+
}, null), W(bs, {
|
|
1029
1029
|
tId: h.id
|
|
1030
1030
|
}, null)]);
|
|
1031
1031
|
}
|
|
1032
|
-
}), ae.set(
|
|
1033
|
-
}, p = (
|
|
1034
|
-
const
|
|
1035
|
-
if (
|
|
1036
|
-
for (const E of
|
|
1032
|
+
}), ae.set(P, E)), A(P), E;
|
|
1033
|
+
}, p = (b) => {
|
|
1034
|
+
const v = he.get(b);
|
|
1035
|
+
if (v) {
|
|
1036
|
+
for (const E of v.keys())
|
|
1037
1037
|
if (document.querySelector(E)) {
|
|
1038
|
-
const h =
|
|
1038
|
+
const h = v.get(E);
|
|
1039
1039
|
document.querySelector(E).scrollTop = h.top, document.querySelector(E).scrollLeft = h.left;
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
|
-
},
|
|
1042
|
+
}, f = (b) => {
|
|
1043
1043
|
var E, h;
|
|
1044
|
-
const
|
|
1045
|
-
if (
|
|
1046
|
-
for (const L of
|
|
1044
|
+
const v = he.get(b);
|
|
1045
|
+
if (v)
|
|
1046
|
+
for (const L of v.keys()) {
|
|
1047
1047
|
const q = {
|
|
1048
1048
|
top: ((E = document.querySelector(L)) == null ? void 0 : E.scrollTop) ?? 0,
|
|
1049
1049
|
left: ((h = document.querySelector(L)) == null ? void 0 : h.scrollLeft) ?? 0
|
|
1050
1050
|
};
|
|
1051
|
-
|
|
1051
|
+
v.set(L, q);
|
|
1052
1052
|
}
|
|
1053
|
-
}, l = (
|
|
1054
|
-
const
|
|
1055
|
-
|
|
1056
|
-
},
|
|
1057
|
-
he.has(
|
|
1058
|
-
const E = he.get(
|
|
1059
|
-
for (const h of
|
|
1053
|
+
}, l = (b) => {
|
|
1054
|
+
const v = he.get(b);
|
|
1055
|
+
v && (v.clear(), he.delete(b));
|
|
1056
|
+
}, m = (b, ...v) => {
|
|
1057
|
+
he.has(b) || he.set(b, /* @__PURE__ */ new Map());
|
|
1058
|
+
const E = he.get(b);
|
|
1059
|
+
for (const h of v)
|
|
1060
1060
|
E.set(h, {
|
|
1061
1061
|
top: 0,
|
|
1062
1062
|
left: 0
|
|
1063
1063
|
});
|
|
1064
|
-
},
|
|
1065
|
-
const
|
|
1066
|
-
for (const E of
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
},
|
|
1070
|
-
let
|
|
1071
|
-
const E = a(
|
|
1064
|
+
}, S = (b) => {
|
|
1065
|
+
const v = a(b.id);
|
|
1066
|
+
for (const E of v.pages.list())
|
|
1067
|
+
z(E.id);
|
|
1068
|
+
D(), v.pages.clear();
|
|
1069
|
+
}, I = (b) => {
|
|
1070
|
+
let v = "";
|
|
1071
|
+
const E = a(b);
|
|
1072
1072
|
for (let h = M.value.length - 1; h >= 0; h--)
|
|
1073
|
-
if (
|
|
1074
|
-
if (!
|
|
1075
|
-
return
|
|
1076
|
-
for (const L of
|
|
1077
|
-
|
|
1078
|
-
|
|
1073
|
+
if (b === x(M)[h].id) {
|
|
1074
|
+
if (!x(M)[h].closable)
|
|
1075
|
+
return b;
|
|
1076
|
+
for (const L of x(M)[h].pages.list())
|
|
1077
|
+
k(L.id), z(L.id), F.add(x(M)[h].id);
|
|
1078
|
+
x(M)[h].pages.clear(), M.value.length > 1 && x(M)[h].active && (h === 0 ? v = x(M)[h + 1].id : v = x(M)[h - 1].id), x(M).splice(h, 1);
|
|
1079
1079
|
break;
|
|
1080
1080
|
}
|
|
1081
|
-
return
|
|
1082
|
-
id:
|
|
1083
|
-
}), E != null && E.active || (
|
|
1084
|
-
},
|
|
1085
|
-
const
|
|
1086
|
-
for (let
|
|
1087
|
-
if (v
|
|
1088
|
-
for (const E of v
|
|
1089
|
-
|
|
1090
|
-
|
|
1081
|
+
return v !== "" && e.emit(Z.TAB_ACTIVE, {
|
|
1082
|
+
id: v
|
|
1083
|
+
}), E != null && E.active || (D(), F.clear()), v;
|
|
1084
|
+
}, B = () => {
|
|
1085
|
+
const b = x(M);
|
|
1086
|
+
for (let v = b.length - 1; v >= 0; v--)
|
|
1087
|
+
if (b[v].closable) {
|
|
1088
|
+
for (const E of b[v].pages.list())
|
|
1089
|
+
k(E.id), z(E.id), F.add(b[v].id);
|
|
1090
|
+
x(M)[v].pages.clear(), x(M).splice(v, 1);
|
|
1091
1091
|
}
|
|
1092
|
-
for (const
|
|
1093
|
-
if (
|
|
1094
|
-
|
|
1092
|
+
for (const v of b)
|
|
1093
|
+
if (v.active) {
|
|
1094
|
+
D(), F.clear();
|
|
1095
1095
|
return;
|
|
1096
1096
|
}
|
|
1097
1097
|
e.emit(Z.TAB_ACTIVE, {
|
|
1098
|
-
id:
|
|
1098
|
+
id: b[b.length - 1].id
|
|
1099
1099
|
});
|
|
1100
|
-
}, y = (
|
|
1101
|
-
const
|
|
1100
|
+
}, y = (b) => {
|
|
1101
|
+
const v = x(M);
|
|
1102
1102
|
let E;
|
|
1103
|
-
for (let h =
|
|
1104
|
-
if (
|
|
1105
|
-
E =
|
|
1106
|
-
else if (
|
|
1107
|
-
for (const L of
|
|
1108
|
-
|
|
1109
|
-
|
|
1103
|
+
for (let h = v.length - 1; h >= 0; h--)
|
|
1104
|
+
if (v[h].id === b)
|
|
1105
|
+
E = v[h];
|
|
1106
|
+
else if (v[h].closable && v[h].id !== b) {
|
|
1107
|
+
for (const L of v[h].pages.list())
|
|
1108
|
+
k(L.id), z(L.id), F.add(v[h].id);
|
|
1109
|
+
x(M)[h].pages.clear(), x(M).splice(h, 1);
|
|
1110
1110
|
}
|
|
1111
|
-
E.active ? (
|
|
1112
|
-
id:
|
|
1111
|
+
E.active ? (D(), F.clear()) : e.emit(Z.TAB_ACTIVE, {
|
|
1112
|
+
id: b
|
|
1113
1113
|
});
|
|
1114
|
-
}, w = (
|
|
1115
|
-
let
|
|
1116
|
-
const E =
|
|
1114
|
+
}, w = (b) => {
|
|
1115
|
+
let v = -1;
|
|
1116
|
+
const E = x(M);
|
|
1117
1117
|
for (let h = 0; h < E.length; h++)
|
|
1118
|
-
if (E[h].id ===
|
|
1119
|
-
|
|
1118
|
+
if (E[h].id === b) {
|
|
1119
|
+
v = h - 1;
|
|
1120
1120
|
break;
|
|
1121
1121
|
}
|
|
1122
|
-
for (let h =
|
|
1122
|
+
for (let h = v; h >= 0; h--)
|
|
1123
1123
|
if (E[h].closable) {
|
|
1124
1124
|
for (const L of E[h].pages.list())
|
|
1125
|
-
|
|
1126
|
-
|
|
1125
|
+
k(L.id), z(L.id), F.add(E[h].id);
|
|
1126
|
+
x(M)[h].pages.clear(), x(M).splice(h, 1);
|
|
1127
1127
|
}
|
|
1128
1128
|
for (const h of E)
|
|
1129
1129
|
if (h.active) {
|
|
1130
|
-
|
|
1130
|
+
D(), F.clear();
|
|
1131
1131
|
return;
|
|
1132
1132
|
}
|
|
1133
1133
|
e.emit(Z.TAB_ACTIVE, {
|
|
1134
1134
|
id: E[0].id
|
|
1135
1135
|
});
|
|
1136
|
-
}, T = (
|
|
1137
|
-
const
|
|
1138
|
-
let E =
|
|
1139
|
-
for (let h = 0; h <
|
|
1140
|
-
if (
|
|
1136
|
+
}, T = (b) => {
|
|
1137
|
+
const v = x(M);
|
|
1138
|
+
let E = v.length;
|
|
1139
|
+
for (let h = 0; h < v.length; h++)
|
|
1140
|
+
if (v[h].id === b) {
|
|
1141
1141
|
E = h + 1;
|
|
1142
1142
|
break;
|
|
1143
1143
|
}
|
|
1144
|
-
for (let h =
|
|
1145
|
-
if (
|
|
1146
|
-
for (const L of
|
|
1147
|
-
|
|
1148
|
-
|
|
1144
|
+
for (let h = v.length - 1; h >= E; h--)
|
|
1145
|
+
if (v[h].closable) {
|
|
1146
|
+
for (const L of v[h].pages.list())
|
|
1147
|
+
k(L.id), z(L.id), F.add(v[h].id);
|
|
1148
|
+
x(M)[h].pages.clear(), x(M).splice(h, 1);
|
|
1149
1149
|
}
|
|
1150
|
-
for (const h of
|
|
1150
|
+
for (const h of v)
|
|
1151
1151
|
if (h.active) {
|
|
1152
|
-
|
|
1152
|
+
D(), F.clear();
|
|
1153
1153
|
return;
|
|
1154
1154
|
}
|
|
1155
1155
|
e.emit(Z.TAB_ACTIVE, {
|
|
1156
|
-
id:
|
|
1156
|
+
id: v[v.length - 1].id
|
|
1157
1157
|
});
|
|
1158
|
-
}, g = (
|
|
1159
|
-
var
|
|
1160
|
-
for (const E of
|
|
1161
|
-
if (E.id ===
|
|
1162
|
-
const h = (
|
|
1158
|
+
}, g = (b) => {
|
|
1159
|
+
var v;
|
|
1160
|
+
for (const E of x(M))
|
|
1161
|
+
if (E.id === b) {
|
|
1162
|
+
const h = (v = E.pages.peek()) == null ? void 0 : v.id;
|
|
1163
1163
|
for (let L = N.value.length - 1; L >= 0; L--)
|
|
1164
1164
|
if (N.value[L] === h) {
|
|
1165
1165
|
N.value.splice(L, 1), E.active && (de.value = !1, le(() => {
|
|
@@ -1169,14 +1169,14 @@ const Ce = () => {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
break;
|
|
1171
1171
|
}
|
|
1172
|
-
},
|
|
1173
|
-
const
|
|
1174
|
-
M.value.forEach((
|
|
1175
|
-
|
|
1172
|
+
}, O = () => {
|
|
1173
|
+
const b = /* @__PURE__ */ new Set();
|
|
1174
|
+
M.value.forEach((v) => {
|
|
1175
|
+
b.add(v.pages.peek().id);
|
|
1176
1176
|
});
|
|
1177
|
-
for (let
|
|
1178
|
-
const E = N.value[
|
|
1179
|
-
|
|
1177
|
+
for (let v = N.value.length - 1; v >= 0; v--) {
|
|
1178
|
+
const E = N.value[v];
|
|
1179
|
+
b.has(E) && N.value.splice(v, 1);
|
|
1180
1180
|
}
|
|
1181
1181
|
le(() => {
|
|
1182
1182
|
de.value = !1, le(() => {
|
|
@@ -1185,29 +1185,29 @@ const Ce = () => {
|
|
|
1185
1185
|
}, 300);
|
|
1186
1186
|
});
|
|
1187
1187
|
});
|
|
1188
|
-
},
|
|
1189
|
-
ae.set(
|
|
1190
|
-
},
|
|
1191
|
-
ae.delete(
|
|
1192
|
-
}, z = (
|
|
1193
|
-
Te.add(
|
|
1194
|
-
},
|
|
1195
|
-
for (let v = N.value.length - 1; v >= 0; v--)
|
|
1196
|
-
Te.has(N.value[v]) && (S(N).splice(v, 1), m(N.value[v]));
|
|
1197
|
-
Te.clear();
|
|
1198
|
-
}, G = (v) => {
|
|
1188
|
+
}, u = (b, v) => {
|
|
1189
|
+
ae.set(b, v);
|
|
1190
|
+
}, _ = (b) => ae.get(b), k = (b) => {
|
|
1191
|
+
ae.delete(b);
|
|
1192
|
+
}, z = (b) => {
|
|
1193
|
+
Te.add(b);
|
|
1194
|
+
}, D = () => {
|
|
1199
1195
|
for (let b = N.value.length - 1; b >= 0; b--)
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1196
|
+
Te.has(N.value[b]) && (x(N).splice(b, 1), k(N.value[b]));
|
|
1197
|
+
Te.clear();
|
|
1198
|
+
}, G = (b) => {
|
|
1199
|
+
for (let v = N.value.length - 1; v >= 0; v--)
|
|
1200
|
+
b === N.value[v] && x(N).splice(v, 1);
|
|
1201
|
+
}, A = (b) => {
|
|
1202
|
+
new Set(N.value).has(b) || N.value.push(b);
|
|
1203
|
+
}, C = (b, v = !0) => {
|
|
1204
1204
|
e.emit("FORWARD");
|
|
1205
1205
|
for (let E = M.value.length - 1; E >= 0; E--) {
|
|
1206
1206
|
const h = M.value[E];
|
|
1207
|
-
if (h.id ===
|
|
1207
|
+
if (h.id === b) {
|
|
1208
1208
|
if (h.active)
|
|
1209
1209
|
break;
|
|
1210
|
-
if (h.active = !0, U(h),
|
|
1210
|
+
if (h.active = !0, U(h), v) {
|
|
1211
1211
|
const L = h.pages.peek();
|
|
1212
1212
|
t.push({
|
|
1213
1213
|
path: L.path,
|
|
@@ -1217,68 +1217,71 @@ const Ce = () => {
|
|
|
1217
1217
|
} else
|
|
1218
1218
|
M.value[E].active = !1;
|
|
1219
1219
|
}
|
|
1220
|
-
}, U = (
|
|
1221
|
-
window.sessionStorage.setItem(Ye, JSON.stringify(
|
|
1220
|
+
}, U = (b) => {
|
|
1221
|
+
window.sessionStorage.setItem(Ke + Ye, JSON.stringify(b));
|
|
1222
1222
|
}, re = () => {
|
|
1223
|
-
window.sessionStorage.removeItem(Ye);
|
|
1223
|
+
window.sessionStorage.removeItem(Ke + Ye);
|
|
1224
1224
|
}, Le = () => {
|
|
1225
|
-
de.value = !1,
|
|
1226
|
-
|
|
1225
|
+
de.value = !1, yt(), le(() => {
|
|
1226
|
+
x(M).push(...Ge), e.emit(Z.TAB_ACTIVE, {
|
|
1227
1227
|
id: Ge[0].id
|
|
1228
1228
|
}), le(() => {
|
|
1229
1229
|
de.value = !0;
|
|
1230
1230
|
});
|
|
1231
1231
|
});
|
|
1232
|
-
},
|
|
1233
|
-
|
|
1232
|
+
}, yt = () => {
|
|
1233
|
+
x(M).splice(0), ae.clear(), Te.clear(), F.clear(), x(N).splice(0);
|
|
1234
1234
|
};
|
|
1235
1235
|
return {
|
|
1236
1236
|
tabs: M,
|
|
1237
1237
|
caches: N,
|
|
1238
1238
|
pageShown: de,
|
|
1239
|
-
initialed:
|
|
1240
|
-
setMaxSize: (
|
|
1241
|
-
De =
|
|
1239
|
+
initialed: Ct,
|
|
1240
|
+
setMaxSize: (b) => {
|
|
1241
|
+
De = b;
|
|
1242
1242
|
},
|
|
1243
1243
|
canAddTab: i,
|
|
1244
1244
|
initial: r,
|
|
1245
1245
|
size: s,
|
|
1246
1246
|
active: C,
|
|
1247
|
-
destroy:
|
|
1247
|
+
destroy: yt,
|
|
1248
1248
|
reset: Le,
|
|
1249
1249
|
addCache: A,
|
|
1250
1250
|
removeCache: G,
|
|
1251
1251
|
getTab: a,
|
|
1252
|
-
addTab:
|
|
1253
|
-
removeTab:
|
|
1254
|
-
removeAllTabs:
|
|
1252
|
+
addTab: d,
|
|
1253
|
+
removeTab: I,
|
|
1254
|
+
removeAllTabs: B,
|
|
1255
1255
|
removeLeftTabs: w,
|
|
1256
1256
|
removeRightTabs: T,
|
|
1257
1257
|
removeOtherTabs: y,
|
|
1258
1258
|
hasTab: o,
|
|
1259
|
-
renewTab:
|
|
1259
|
+
renewTab: S,
|
|
1260
1260
|
addPage: c,
|
|
1261
|
-
addComponent:
|
|
1262
|
-
getComponent:
|
|
1263
|
-
removeComponent:
|
|
1261
|
+
addComponent: u,
|
|
1262
|
+
getComponent: _,
|
|
1263
|
+
removeComponent: k,
|
|
1264
1264
|
markDeletableCache: z,
|
|
1265
|
-
removeDeletableCache:
|
|
1265
|
+
removeDeletableCache: D,
|
|
1266
1266
|
refreshTab: g,
|
|
1267
|
-
refreshAllTabs:
|
|
1268
|
-
addPageScroller:
|
|
1269
|
-
setGlobalScroll: (
|
|
1270
|
-
|
|
1267
|
+
refreshAllTabs: O,
|
|
1268
|
+
addPageScroller: m,
|
|
1269
|
+
setGlobalScroll: (b) => {
|
|
1270
|
+
Lt = b;
|
|
1271
1271
|
},
|
|
1272
|
-
clearSession: re
|
|
1272
|
+
clearSession: re,
|
|
1273
|
+
setSessionPrefix: (b) => {
|
|
1274
|
+
Ke = b;
|
|
1275
|
+
}
|
|
1273
1276
|
};
|
|
1274
|
-
},
|
|
1277
|
+
}, vs = { class: "stack-tab__contextmenu-item" }, ce = /* @__PURE__ */ ee({
|
|
1275
1278
|
__name: "ContextMenuItem",
|
|
1276
1279
|
props: {
|
|
1277
1280
|
icon: {},
|
|
1278
1281
|
title: {}
|
|
1279
1282
|
},
|
|
1280
1283
|
setup(t) {
|
|
1281
|
-
return (e, n) => (R(), V("div",
|
|
1284
|
+
return (e, n) => (R(), V("div", vs, [
|
|
1282
1285
|
Q("div", {
|
|
1283
1286
|
class: fe(["stack-tab__contextmenu-icon", e.icon])
|
|
1284
1287
|
}, null, 2),
|
|
@@ -1286,13 +1289,13 @@ const Ce = () => {
|
|
|
1286
1289
|
style: { "margin-left": "8px" },
|
|
1287
1290
|
onContextmenu: n[0] || (n[0] = _e(() => {
|
|
1288
1291
|
}, ["prevent"]))
|
|
1289
|
-
},
|
|
1292
|
+
}, Xt(e.title), 33)
|
|
1290
1293
|
]));
|
|
1291
1294
|
}
|
|
1292
|
-
}),
|
|
1295
|
+
}), ms = {
|
|
1293
1296
|
key: 0,
|
|
1294
1297
|
class: "divider div-transparent"
|
|
1295
|
-
},
|
|
1298
|
+
}, gs = /* @__PURE__ */ ee({
|
|
1296
1299
|
__name: "index",
|
|
1297
1300
|
props: {
|
|
1298
1301
|
index: {},
|
|
@@ -1303,101 +1306,101 @@ const Ce = () => {
|
|
|
1303
1306
|
max: {}
|
|
1304
1307
|
},
|
|
1305
1308
|
setup(t) {
|
|
1306
|
-
const e = t, { t: n } = Me(), s =
|
|
1309
|
+
const e = t, { t: n } = Me(), s = $(), r = Ie({
|
|
1307
1310
|
left: e.left,
|
|
1308
1311
|
top: e.top
|
|
1309
1312
|
}), {
|
|
1310
1313
|
removeTab: o,
|
|
1311
1314
|
removeAllTabs: i,
|
|
1312
|
-
removeLeftTabs:
|
|
1315
|
+
removeLeftTabs: d,
|
|
1313
1316
|
removeRightTabs: a,
|
|
1314
1317
|
refreshTab: c,
|
|
1315
1318
|
refreshAllTabs: p,
|
|
1316
|
-
removeOtherTabs:
|
|
1319
|
+
removeOtherTabs: f
|
|
1317
1320
|
} = Ce();
|
|
1318
1321
|
return Fe(() => {
|
|
1319
|
-
const l = s.value ? s.value.clientWidth : 0,
|
|
1320
|
-
r.left + l >
|
|
1321
|
-
}), (l,
|
|
1322
|
+
const l = s.value ? s.value.clientWidth : 0, m = window.innerWidth;
|
|
1323
|
+
r.left + l > m && (r.left = m - l - 5);
|
|
1324
|
+
}), (l, m) => (R(), V("div", {
|
|
1322
1325
|
ref_key: "contextmenu",
|
|
1323
1326
|
ref: s,
|
|
1324
1327
|
class: "stack-tab__contextmenu",
|
|
1325
|
-
style:
|
|
1328
|
+
style: ct({
|
|
1326
1329
|
left: `${r.left}px`,
|
|
1327
1330
|
top: `${r.top}px`,
|
|
1328
|
-
"z-index":
|
|
1331
|
+
"z-index": x(sn)(".stack-tab,.stack-tab *")
|
|
1329
1332
|
})
|
|
1330
1333
|
}, [
|
|
1331
|
-
|
|
1334
|
+
W(ce, {
|
|
1332
1335
|
icon: "stack-tab__icon-reload svg-mask",
|
|
1333
|
-
title:
|
|
1334
|
-
onClick:
|
|
1336
|
+
title: x(n)("VueStackTab.reload"),
|
|
1337
|
+
onClick: m[0] || (m[0] = (S) => x(c)(l.tabItem.id))
|
|
1335
1338
|
}, null, 8, ["title"]),
|
|
1336
|
-
|
|
1339
|
+
W(ce, {
|
|
1337
1340
|
icon: "stack-tab__icon-reload-all svg-mask",
|
|
1338
|
-
title:
|
|
1339
|
-
onClick:
|
|
1341
|
+
title: x(n)("VueStackTab.reloadAll"),
|
|
1342
|
+
onClick: x(p)
|
|
1340
1343
|
}, null, 8, ["title", "onClick"]),
|
|
1341
|
-
|
|
1344
|
+
W(ce, {
|
|
1342
1345
|
icon: "stack-tab__icon-close svg-mask",
|
|
1343
|
-
title:
|
|
1346
|
+
title: x(n)("VueStackTab.close"),
|
|
1344
1347
|
disabled: l.tabItem.closable ? null : "disabled",
|
|
1345
|
-
onClick:
|
|
1348
|
+
onClick: m[1] || (m[1] = (S) => x(o)(l.tabItem.id))
|
|
1346
1349
|
}, null, 8, ["title", "disabled"]),
|
|
1347
|
-
|
|
1350
|
+
W(ce, {
|
|
1348
1351
|
icon: "stack-tab__icon-close-lefts svg-mask",
|
|
1349
|
-
title:
|
|
1352
|
+
title: x(n)("VueStackTab.closeLeft"),
|
|
1350
1353
|
disabled: l.index <= 0 ? "disabled" : null,
|
|
1351
|
-
onClick:
|
|
1354
|
+
onClick: m[2] || (m[2] = (S) => x(d)(l.tabItem.id))
|
|
1352
1355
|
}, null, 8, ["title", "disabled"]),
|
|
1353
|
-
|
|
1356
|
+
W(ce, {
|
|
1354
1357
|
icon: "stack-tab__icon-close-rights svg-mask",
|
|
1355
|
-
title:
|
|
1358
|
+
title: x(n)("VueStackTab.closeRight"),
|
|
1356
1359
|
disabled: l.index >= l.max - 1 ? "disabled" : null,
|
|
1357
|
-
onClick:
|
|
1360
|
+
onClick: m[3] || (m[3] = (S) => x(a)(l.tabItem.id))
|
|
1358
1361
|
}, null, 8, ["title", "disabled"]),
|
|
1359
|
-
|
|
1362
|
+
W(ce, {
|
|
1360
1363
|
icon: "stack-tab__icon-close-others svg-mask",
|
|
1361
|
-
title:
|
|
1362
|
-
onClick:
|
|
1364
|
+
title: x(n)("VueStackTab.closeOthers"),
|
|
1365
|
+
onClick: m[4] || (m[4] = (S) => x(f)(l.tabItem.id))
|
|
1363
1366
|
}, null, 8, ["title"]),
|
|
1364
|
-
|
|
1367
|
+
W(ce, {
|
|
1365
1368
|
icon: "stack-tab__icon-close-all svg-mask",
|
|
1366
|
-
title:
|
|
1367
|
-
onClick:
|
|
1369
|
+
title: x(n)("VueStackTab.closeAll"),
|
|
1370
|
+
onClick: x(i)
|
|
1368
1371
|
}, null, 8, ["title", "onClick"]),
|
|
1369
|
-
l.contextMenu !== void 0 && l.contextMenu.length > 0 ? (R(), V("div",
|
|
1370
|
-
(R(!0), V(Ze, null,
|
|
1371
|
-
key:
|
|
1372
|
-
icon:
|
|
1373
|
-
title:
|
|
1374
|
-
disabled:
|
|
1375
|
-
onClick: (
|
|
1372
|
+
l.contextMenu !== void 0 && l.contextMenu.length > 0 ? (R(), V("div", ms)) : se("", !0),
|
|
1373
|
+
(R(!0), V(Ze, null, lt(l.contextMenu, (S, I) => (R(), me(ce, {
|
|
1374
|
+
key: I,
|
|
1375
|
+
icon: S.icon,
|
|
1376
|
+
title: S.title,
|
|
1377
|
+
disabled: S.disabled(l.tabItem) ? "disabled" : null,
|
|
1378
|
+
onClick: (B) => !S.disabled && S.callback(l.tabItem.id)
|
|
1376
1379
|
}, null, 8, ["icon", "title", "disabled", "onClick"]))), 128))
|
|
1377
1380
|
], 4));
|
|
1378
1381
|
}
|
|
1379
|
-
}),
|
|
1382
|
+
}), ys = (t, e) => {
|
|
1380
1383
|
const n = t.__vccOpts || t;
|
|
1381
1384
|
for (const [s, r] of e)
|
|
1382
1385
|
n[s] = r;
|
|
1383
1386
|
return n;
|
|
1384
|
-
},
|
|
1387
|
+
}, ws = /* @__PURE__ */ ys(gs, [["__scopeId", "data-v-d598be6e"]]), ks = () => {
|
|
1385
1388
|
const t = Ie({
|
|
1386
1389
|
item: {},
|
|
1387
1390
|
index: -1,
|
|
1388
1391
|
left: 0,
|
|
1389
1392
|
top: 0,
|
|
1390
1393
|
max: 0
|
|
1391
|
-
}), e =
|
|
1394
|
+
}), e = $(!1);
|
|
1392
1395
|
Fe(() => {
|
|
1393
1396
|
document.addEventListener("click", s);
|
|
1394
1397
|
}), He(() => {
|
|
1395
1398
|
document.removeEventListener("click", s);
|
|
1396
1399
|
});
|
|
1397
|
-
const n = async (r, o, i,
|
|
1400
|
+
const n = async (r, o, i, d) => {
|
|
1398
1401
|
e.value = !1, await le(() => {
|
|
1399
1402
|
const { clientY: a, clientX: c } = r;
|
|
1400
|
-
e.value = !0, Object.assign(t, { item: o, index: i, top: a, left: c, max:
|
|
1403
|
+
e.value = !0, Object.assign(t, { item: o, index: i, top: a, left: c, max: d });
|
|
1401
1404
|
});
|
|
1402
1405
|
}, s = (r) => {
|
|
1403
1406
|
r.target.classList.contains("stack-tab__contextmenu") || (e.value = !1);
|
|
@@ -1407,96 +1410,96 @@ const Ce = () => {
|
|
|
1407
1410
|
contextMenuData: t,
|
|
1408
1411
|
showContextMenu: n
|
|
1409
1412
|
};
|
|
1410
|
-
},
|
|
1413
|
+
}, _s = { class: "stack-tab__item-title" }, xs = ["title"], Ts = ["title"], Ss = /* @__PURE__ */ ee({
|
|
1411
1414
|
__name: "TabHeaderItem",
|
|
1412
1415
|
props: {
|
|
1413
1416
|
item: {}
|
|
1414
1417
|
},
|
|
1415
1418
|
emits: ["close", "active"],
|
|
1416
1419
|
setup(t, { emit: e }) {
|
|
1417
|
-
const n = e, s = ge(), { t: r } = Me(), o =
|
|
1418
|
-
s.on(Z.TAB_ACTIVE, ({ id: p, isRoute:
|
|
1419
|
-
i.item.id === p && c(
|
|
1420
|
+
const n = e, s = ge(), { t: r } = Me(), o = $(), i = t;
|
|
1421
|
+
s.on(Z.TAB_ACTIVE, ({ id: p, isRoute: f }) => {
|
|
1422
|
+
i.item.id === p && c(f);
|
|
1420
1423
|
});
|
|
1421
|
-
const
|
|
1424
|
+
const d = we(() => i.item.title || r("undefined")), a = () => {
|
|
1422
1425
|
n("close", i.item);
|
|
1423
1426
|
}, c = (p = !0) => {
|
|
1424
1427
|
n("active", i.item, o, p);
|
|
1425
1428
|
};
|
|
1426
|
-
return (p,
|
|
1429
|
+
return (p, f) => (R(), V("li", {
|
|
1427
1430
|
ref_key: "curtab",
|
|
1428
1431
|
ref: o,
|
|
1429
1432
|
class: fe(["stack-tab__item", {
|
|
1430
1433
|
"is-active": p.item.active,
|
|
1431
1434
|
"is-icon": p.item.closable
|
|
1432
1435
|
}]),
|
|
1433
|
-
onClick:
|
|
1436
|
+
onClick: f[0] || (f[0] = (l) => c(!0))
|
|
1434
1437
|
}, [
|
|
1435
|
-
Q("div",
|
|
1438
|
+
Q("div", _s, [
|
|
1436
1439
|
Q("div", {
|
|
1437
1440
|
class: "stack-tab__item-title-content",
|
|
1438
|
-
title:
|
|
1439
|
-
},
|
|
1441
|
+
title: d.value
|
|
1442
|
+
}, Xt(d.value), 9, xs)
|
|
1440
1443
|
]),
|
|
1441
1444
|
p.item.closable ? (R(), V("div", {
|
|
1442
1445
|
key: 0,
|
|
1443
1446
|
class: "stack-tab__icon-close-fill stack-tab__item-button",
|
|
1444
|
-
title:
|
|
1447
|
+
title: x(r)("VueStackTab.close"),
|
|
1445
1448
|
onClick: _e(a, ["stop"])
|
|
1446
|
-
}, null, 8,
|
|
1449
|
+
}, null, 8, Ts)) : se("", !0)
|
|
1447
1450
|
], 2));
|
|
1448
1451
|
}
|
|
1449
1452
|
});
|
|
1450
|
-
var be = [],
|
|
1453
|
+
var be = [], Os = function() {
|
|
1451
1454
|
return be.some(function(t) {
|
|
1452
1455
|
return t.activeTargets.length > 0;
|
|
1453
1456
|
});
|
|
1454
|
-
},
|
|
1457
|
+
}, As = function() {
|
|
1455
1458
|
return be.some(function(t) {
|
|
1456
1459
|
return t.skippedTargets.length > 0;
|
|
1457
1460
|
});
|
|
1458
|
-
},
|
|
1461
|
+
}, zt = "ResizeObserver loop completed with undelivered notifications.", Es = function() {
|
|
1459
1462
|
var t;
|
|
1460
1463
|
typeof ErrorEvent == "function" ? t = new ErrorEvent("error", {
|
|
1461
|
-
message:
|
|
1462
|
-
}) : (t = document.createEvent("Event"), t.initEvent("error", !1, !1), t.message =
|
|
1464
|
+
message: zt
|
|
1465
|
+
}) : (t = document.createEvent("Event"), t.initEvent("error", !1, !1), t.message = zt), window.dispatchEvent(t);
|
|
1463
1466
|
}, Be;
|
|
1464
1467
|
(function(t) {
|
|
1465
1468
|
t.BORDER_BOX = "border-box", t.CONTENT_BOX = "content-box", t.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
1466
1469
|
})(Be || (Be = {}));
|
|
1467
1470
|
var ve = function(t) {
|
|
1468
1471
|
return Object.freeze(t);
|
|
1469
|
-
},
|
|
1472
|
+
}, Is = /* @__PURE__ */ function() {
|
|
1470
1473
|
function t(e, n) {
|
|
1471
1474
|
this.inlineSize = e, this.blockSize = n, ve(this);
|
|
1472
1475
|
}
|
|
1473
1476
|
return t;
|
|
1474
|
-
}(),
|
|
1477
|
+
}(), ln = function() {
|
|
1475
1478
|
function t(e, n, s, r) {
|
|
1476
1479
|
return this.x = e, this.y = n, this.width = s, this.height = r, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, ve(this);
|
|
1477
1480
|
}
|
|
1478
1481
|
return t.prototype.toJSON = function() {
|
|
1479
|
-
var e = this, n = e.x, s = e.y, r = e.top, o = e.right, i = e.bottom,
|
|
1480
|
-
return { x: n, y: s, top: r, right: o, bottom: i, left:
|
|
1482
|
+
var e = this, n = e.x, s = e.y, r = e.top, o = e.right, i = e.bottom, d = e.left, a = e.width, c = e.height;
|
|
1483
|
+
return { x: n, y: s, top: r, right: o, bottom: i, left: d, width: a, height: c };
|
|
1481
1484
|
}, t.fromRect = function(e) {
|
|
1482
1485
|
return new t(e.x, e.y, e.width, e.height);
|
|
1483
1486
|
}, t;
|
|
1484
|
-
}(),
|
|
1487
|
+
}(), mt = function(t) {
|
|
1485
1488
|
return t instanceof SVGElement && "getBBox" in t;
|
|
1486
|
-
},
|
|
1487
|
-
if (
|
|
1489
|
+
}, un = function(t) {
|
|
1490
|
+
if (mt(t)) {
|
|
1488
1491
|
var e = t.getBBox(), n = e.width, s = e.height;
|
|
1489
1492
|
return !n && !s;
|
|
1490
1493
|
}
|
|
1491
1494
|
var r = t, o = r.offsetWidth, i = r.offsetHeight;
|
|
1492
1495
|
return !(o || i || t.getClientRects().length);
|
|
1493
|
-
},
|
|
1496
|
+
}, Rt = function(t) {
|
|
1494
1497
|
var e;
|
|
1495
1498
|
if (t instanceof Element)
|
|
1496
1499
|
return !0;
|
|
1497
1500
|
var n = (e = t == null ? void 0 : t.ownerDocument) === null || e === void 0 ? void 0 : e.defaultView;
|
|
1498
1501
|
return !!(n && t instanceof n.Element);
|
|
1499
|
-
},
|
|
1502
|
+
}, Bs = function(t) {
|
|
1500
1503
|
switch (t.tagName) {
|
|
1501
1504
|
case "INPUT":
|
|
1502
1505
|
if (t.type !== "image")
|
|
@@ -1511,29 +1514,29 @@ var ve = function(t) {
|
|
|
1511
1514
|
return !0;
|
|
1512
1515
|
}
|
|
1513
1516
|
return !1;
|
|
1514
|
-
}, Ee = typeof window < "u" ? window : {}, $e = /* @__PURE__ */ new WeakMap(),
|
|
1517
|
+
}, Ee = typeof window < "u" ? window : {}, $e = /* @__PURE__ */ new WeakMap(), Dt = /auto|scroll/, Ms = /^tb|vertical/, Cs = /msie|trident/i.test(Ee.navigator && Ee.navigator.userAgent), K = function(t) {
|
|
1515
1518
|
return parseFloat(t || "0");
|
|
1516
1519
|
}, ke = function(t, e, n) {
|
|
1517
|
-
return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new
|
|
1518
|
-
},
|
|
1520
|
+
return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new Is((n ? e : t) || 0, (n ? t : e) || 0);
|
|
1521
|
+
}, $t = ve({
|
|
1519
1522
|
devicePixelContentBoxSize: ke(),
|
|
1520
1523
|
borderBoxSize: ke(),
|
|
1521
1524
|
contentBoxSize: ke(),
|
|
1522
|
-
contentRect: new
|
|
1523
|
-
}),
|
|
1525
|
+
contentRect: new ln(0, 0, 0, 0)
|
|
1526
|
+
}), fn = function(t, e) {
|
|
1524
1527
|
if (e === void 0 && (e = !1), $e.has(t) && !e)
|
|
1525
1528
|
return $e.get(t);
|
|
1526
|
-
if (
|
|
1527
|
-
return $e.set(t,
|
|
1528
|
-
var n = getComputedStyle(t), s =
|
|
1529
|
-
devicePixelContentBoxSize: ke(Math.round(
|
|
1530
|
-
borderBoxSize: ke(
|
|
1531
|
-
contentBoxSize: ke(
|
|
1532
|
-
contentRect: new
|
|
1529
|
+
if (un(t))
|
|
1530
|
+
return $e.set(t, $t), $t;
|
|
1531
|
+
var n = getComputedStyle(t), s = mt(t) && t.ownerSVGElement && t.getBBox(), r = !Cs && n.boxSizing === "border-box", o = Ms.test(n.writingMode || ""), i = !s && Dt.test(n.overflowY || ""), d = !s && Dt.test(n.overflowX || ""), a = s ? 0 : K(n.paddingTop), c = s ? 0 : K(n.paddingRight), p = s ? 0 : K(n.paddingBottom), f = s ? 0 : K(n.paddingLeft), l = s ? 0 : K(n.borderTopWidth), m = s ? 0 : K(n.borderRightWidth), S = s ? 0 : K(n.borderBottomWidth), I = s ? 0 : K(n.borderLeftWidth), B = f + c, y = a + p, w = I + m, T = l + S, g = d ? t.offsetHeight - T - t.clientHeight : 0, O = i ? t.offsetWidth - w - t.clientWidth : 0, u = r ? B + w : 0, _ = r ? y + T : 0, k = s ? s.width : K(n.width) - u - O, z = s ? s.height : K(n.height) - _ - g, D = k + B + O + w, G = z + y + g + T, A = ve({
|
|
1532
|
+
devicePixelContentBoxSize: ke(Math.round(k * devicePixelRatio), Math.round(z * devicePixelRatio), o),
|
|
1533
|
+
borderBoxSize: ke(D, G, o),
|
|
1534
|
+
contentBoxSize: ke(k, z, o),
|
|
1535
|
+
contentRect: new ln(f, a, k, z)
|
|
1533
1536
|
});
|
|
1534
1537
|
return $e.set(t, A), A;
|
|
1535
|
-
},
|
|
1536
|
-
var s =
|
|
1538
|
+
}, dn = function(t, e, n) {
|
|
1539
|
+
var s = fn(t, n), r = s.borderBoxSize, o = s.contentBoxSize, i = s.devicePixelContentBoxSize;
|
|
1537
1540
|
switch (e) {
|
|
1538
1541
|
case Be.DEVICE_PIXEL_CONTENT_BOX:
|
|
1539
1542
|
return i;
|
|
@@ -1542,28 +1545,28 @@ var ve = function(t) {
|
|
|
1542
1545
|
default:
|
|
1543
1546
|
return o;
|
|
1544
1547
|
}
|
|
1545
|
-
},
|
|
1548
|
+
}, Ls = /* @__PURE__ */ function() {
|
|
1546
1549
|
function t(e) {
|
|
1547
|
-
var n =
|
|
1550
|
+
var n = fn(e);
|
|
1548
1551
|
this.target = e, this.contentRect = n.contentRect, this.borderBoxSize = ve([n.borderBoxSize]), this.contentBoxSize = ve([n.contentBoxSize]), this.devicePixelContentBoxSize = ve([n.devicePixelContentBoxSize]);
|
|
1549
1552
|
}
|
|
1550
1553
|
return t;
|
|
1551
|
-
}(),
|
|
1552
|
-
if (
|
|
1554
|
+
}(), hn = function(t) {
|
|
1555
|
+
if (un(t))
|
|
1553
1556
|
return 1 / 0;
|
|
1554
1557
|
for (var e = 0, n = t.parentNode; n; )
|
|
1555
1558
|
e += 1, n = n.parentNode;
|
|
1556
1559
|
return e;
|
|
1557
|
-
},
|
|
1560
|
+
}, zs = function() {
|
|
1558
1561
|
var t = 1 / 0, e = [];
|
|
1559
1562
|
be.forEach(function(i) {
|
|
1560
1563
|
if (i.activeTargets.length !== 0) {
|
|
1561
|
-
var
|
|
1564
|
+
var d = [];
|
|
1562
1565
|
i.activeTargets.forEach(function(c) {
|
|
1563
|
-
var p = new
|
|
1564
|
-
|
|
1566
|
+
var p = new Ls(c.target), f = hn(c.target);
|
|
1567
|
+
d.push(p), c.lastReportedSize = dn(c.target, c.observedBox), f < t && (t = f);
|
|
1565
1568
|
}), e.push(function() {
|
|
1566
|
-
i.callback.call(i.observer,
|
|
1569
|
+
i.callback.call(i.observer, d, i.observer);
|
|
1567
1570
|
}), i.activeTargets.splice(0, i.activeTargets.length);
|
|
1568
1571
|
}
|
|
1569
1572
|
});
|
|
@@ -1572,38 +1575,38 @@ var ve = function(t) {
|
|
|
1572
1575
|
r();
|
|
1573
1576
|
}
|
|
1574
1577
|
return t;
|
|
1575
|
-
},
|
|
1578
|
+
}, Pt = function(t) {
|
|
1576
1579
|
be.forEach(function(n) {
|
|
1577
1580
|
n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(r) {
|
|
1578
|
-
r.isActive() && (
|
|
1581
|
+
r.isActive() && (hn(r.target) > t ? n.activeTargets.push(r) : n.skippedTargets.push(r));
|
|
1579
1582
|
});
|
|
1580
1583
|
});
|
|
1581
|
-
},
|
|
1584
|
+
}, Rs = function() {
|
|
1582
1585
|
var t = 0;
|
|
1583
|
-
for (
|
|
1584
|
-
t =
|
|
1585
|
-
return
|
|
1586
|
-
},
|
|
1587
|
-
return
|
|
1586
|
+
for (Pt(t); Os(); )
|
|
1587
|
+
t = zs(), Pt(t);
|
|
1588
|
+
return As() && Es(), t > 0;
|
|
1589
|
+
}, Je, pn = [], Ds = function() {
|
|
1590
|
+
return pn.splice(0).forEach(function(t) {
|
|
1588
1591
|
return t();
|
|
1589
1592
|
});
|
|
1590
|
-
},
|
|
1591
|
-
if (!
|
|
1593
|
+
}, $s = function(t) {
|
|
1594
|
+
if (!Je) {
|
|
1592
1595
|
var e = 0, n = document.createTextNode(""), s = { characterData: !0 };
|
|
1593
1596
|
new MutationObserver(function() {
|
|
1594
|
-
return
|
|
1595
|
-
}).observe(n, s),
|
|
1597
|
+
return Ds();
|
|
1598
|
+
}).observe(n, s), Je = function() {
|
|
1596
1599
|
n.textContent = "".concat(e ? e-- : e++);
|
|
1597
1600
|
};
|
|
1598
1601
|
}
|
|
1599
|
-
|
|
1600
|
-
},
|
|
1601
|
-
|
|
1602
|
+
pn.push(t), Je();
|
|
1603
|
+
}, Ps = function(t) {
|
|
1604
|
+
$s(function() {
|
|
1602
1605
|
requestAnimationFrame(t);
|
|
1603
1606
|
});
|
|
1604
1607
|
}, Ve = 0, Ns = function() {
|
|
1605
1608
|
return !!Ve;
|
|
1606
|
-
},
|
|
1609
|
+
}, Ws = 250, Vs = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, Nt = [
|
|
1607
1610
|
"resize",
|
|
1608
1611
|
"load",
|
|
1609
1612
|
"transitionend",
|
|
@@ -1618,9 +1621,9 @@ var ve = function(t) {
|
|
|
1618
1621
|
"mouseout",
|
|
1619
1622
|
"blur",
|
|
1620
1623
|
"focus"
|
|
1621
|
-
],
|
|
1624
|
+
], Wt = function(t) {
|
|
1622
1625
|
return t === void 0 && (t = 0), Date.now() + t;
|
|
1623
|
-
},
|
|
1626
|
+
}, Qe = !1, Us = function() {
|
|
1624
1627
|
function t() {
|
|
1625
1628
|
var e = this;
|
|
1626
1629
|
this.stopped = !0, this.listener = function() {
|
|
@@ -1629,15 +1632,15 @@ var ve = function(t) {
|
|
|
1629
1632
|
}
|
|
1630
1633
|
return t.prototype.run = function(e) {
|
|
1631
1634
|
var n = this;
|
|
1632
|
-
if (e === void 0 && (e =
|
|
1633
|
-
|
|
1634
|
-
var s =
|
|
1635
|
-
|
|
1635
|
+
if (e === void 0 && (e = Ws), !Qe) {
|
|
1636
|
+
Qe = !0;
|
|
1637
|
+
var s = Wt(e);
|
|
1638
|
+
Ps(function() {
|
|
1636
1639
|
var r = !1;
|
|
1637
1640
|
try {
|
|
1638
|
-
r =
|
|
1641
|
+
r = Rs();
|
|
1639
1642
|
} finally {
|
|
1640
|
-
if (
|
|
1643
|
+
if (Qe = !1, e = s - Wt(), !Ns())
|
|
1641
1644
|
return;
|
|
1642
1645
|
r ? n.run(1e3) : e > 0 ? n.run(e) : n.start();
|
|
1643
1646
|
}
|
|
@@ -1647,7 +1650,7 @@ var ve = function(t) {
|
|
|
1647
1650
|
this.stop(), this.run();
|
|
1648
1651
|
}, t.prototype.observe = function() {
|
|
1649
1652
|
var e = this, n = function() {
|
|
1650
|
-
return e.observer && e.observer.observe(document.body,
|
|
1653
|
+
return e.observer && e.observer.observe(document.body, Vs);
|
|
1651
1654
|
};
|
|
1652
1655
|
document.body ? n() : Ee.addEventListener("DOMContentLoaded", n);
|
|
1653
1656
|
}, t.prototype.start = function() {
|
|
@@ -1661,11 +1664,11 @@ var ve = function(t) {
|
|
|
1661
1664
|
return Ee.removeEventListener(n, e.listener, !0);
|
|
1662
1665
|
}), this.stopped = !0);
|
|
1663
1666
|
}, t;
|
|
1664
|
-
}(),
|
|
1665
|
-
!Ve && t > 0 &&
|
|
1666
|
-
},
|
|
1667
|
-
return !
|
|
1668
|
-
},
|
|
1667
|
+
}(), ot = new Us(), Vt = function(t) {
|
|
1668
|
+
!Ve && t > 0 && ot.start(), Ve += t, !Ve && ot.stop();
|
|
1669
|
+
}, qs = function(t) {
|
|
1670
|
+
return !mt(t) && !Bs(t) && getComputedStyle(t).display === "inline";
|
|
1671
|
+
}, Fs = function() {
|
|
1669
1672
|
function t(e, n) {
|
|
1670
1673
|
this.target = e, this.observedBox = n || Be.CONTENT_BOX, this.lastReportedSize = {
|
|
1671
1674
|
inlineSize: 0,
|
|
@@ -1673,67 +1676,67 @@ var ve = function(t) {
|
|
|
1673
1676
|
};
|
|
1674
1677
|
}
|
|
1675
1678
|
return t.prototype.isActive = function() {
|
|
1676
|
-
var e =
|
|
1677
|
-
return
|
|
1679
|
+
var e = dn(this.target, this.observedBox, !0);
|
|
1680
|
+
return qs(this.target) && (this.lastReportedSize = e), this.lastReportedSize.inlineSize !== e.inlineSize || this.lastReportedSize.blockSize !== e.blockSize;
|
|
1678
1681
|
}, t;
|
|
1679
|
-
}(),
|
|
1682
|
+
}(), Hs = /* @__PURE__ */ function() {
|
|
1680
1683
|
function t(e, n) {
|
|
1681
1684
|
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = e, this.callback = n;
|
|
1682
1685
|
}
|
|
1683
1686
|
return t;
|
|
1684
|
-
}(),
|
|
1687
|
+
}(), Pe = /* @__PURE__ */ new WeakMap(), Ut = function(t, e) {
|
|
1685
1688
|
for (var n = 0; n < t.length; n += 1)
|
|
1686
1689
|
if (t[n].target === e)
|
|
1687
1690
|
return n;
|
|
1688
1691
|
return -1;
|
|
1689
|
-
},
|
|
1692
|
+
}, Ne = function() {
|
|
1690
1693
|
function t() {
|
|
1691
1694
|
}
|
|
1692
1695
|
return t.connect = function(e, n) {
|
|
1693
|
-
var s = new
|
|
1694
|
-
|
|
1696
|
+
var s = new Hs(e, n);
|
|
1697
|
+
Pe.set(e, s);
|
|
1695
1698
|
}, t.observe = function(e, n, s) {
|
|
1696
|
-
var r =
|
|
1697
|
-
|
|
1699
|
+
var r = Pe.get(e), o = r.observationTargets.length === 0;
|
|
1700
|
+
Ut(r.observationTargets, n) < 0 && (o && be.push(r), r.observationTargets.push(new Fs(n, s && s.box)), Vt(1), ot.schedule());
|
|
1698
1701
|
}, t.unobserve = function(e, n) {
|
|
1699
|
-
var s =
|
|
1700
|
-
r >= 0 && (o && be.splice(be.indexOf(s), 1), s.observationTargets.splice(r, 1),
|
|
1702
|
+
var s = Pe.get(e), r = Ut(s.observationTargets, n), o = s.observationTargets.length === 1;
|
|
1703
|
+
r >= 0 && (o && be.splice(be.indexOf(s), 1), s.observationTargets.splice(r, 1), Vt(-1));
|
|
1701
1704
|
}, t.disconnect = function(e) {
|
|
1702
|
-
var n = this, s =
|
|
1705
|
+
var n = this, s = Pe.get(e);
|
|
1703
1706
|
s.observationTargets.slice().forEach(function(r) {
|
|
1704
1707
|
return n.unobserve(e, r.target);
|
|
1705
1708
|
}), s.activeTargets.splice(0, s.activeTargets.length);
|
|
1706
1709
|
}, t;
|
|
1707
|
-
}(),
|
|
1710
|
+
}(), qt = function() {
|
|
1708
1711
|
function t(e) {
|
|
1709
1712
|
if (arguments.length === 0)
|
|
1710
1713
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1711
1714
|
if (typeof e != "function")
|
|
1712
1715
|
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
1713
|
-
|
|
1716
|
+
Ne.connect(this, e);
|
|
1714
1717
|
}
|
|
1715
1718
|
return t.prototype.observe = function(e, n) {
|
|
1716
1719
|
if (arguments.length === 0)
|
|
1717
1720
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1718
|
-
if (!
|
|
1721
|
+
if (!Rt(e))
|
|
1719
1722
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1720
|
-
|
|
1723
|
+
Ne.observe(this, e, n);
|
|
1721
1724
|
}, t.prototype.unobserve = function(e) {
|
|
1722
1725
|
if (arguments.length === 0)
|
|
1723
1726
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1724
|
-
if (!
|
|
1727
|
+
if (!Rt(e))
|
|
1725
1728
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1726
|
-
|
|
1729
|
+
Ne.unobserve(this, e);
|
|
1727
1730
|
}, t.prototype.disconnect = function() {
|
|
1728
|
-
|
|
1731
|
+
Ne.disconnect(this);
|
|
1729
1732
|
}, t.toString = function() {
|
|
1730
1733
|
return "function ResizeObserver () { [polyfill code] }";
|
|
1731
1734
|
}, t;
|
|
1732
1735
|
}();
|
|
1733
|
-
const
|
|
1736
|
+
const Zs = ["disabled", "title"], js = {
|
|
1734
1737
|
key: 1,
|
|
1735
1738
|
class: "stack-tab__button"
|
|
1736
|
-
},
|
|
1739
|
+
}, it = /* @__PURE__ */ ee({
|
|
1737
1740
|
__name: "TabHeaderButton",
|
|
1738
1741
|
props: {
|
|
1739
1742
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1754,12 +1757,12 @@ const Hs = ["disabled", "title"], Zs = {
|
|
|
1754
1757
|
key: 0,
|
|
1755
1758
|
class: fe(["stack-tab__mask-button", e.iconClass])
|
|
1756
1759
|
}, null, 2)),
|
|
1757
|
-
"icon" in e.$slots ? (R(), V("div",
|
|
1760
|
+
"icon" in e.$slots ? (R(), V("div", js, [
|
|
1758
1761
|
xe(e.$slots, "icon")
|
|
1759
1762
|
])) : se("", !0)
|
|
1760
|
-
], 10,
|
|
1763
|
+
], 10, Zs));
|
|
1761
1764
|
}
|
|
1762
|
-
}),
|
|
1765
|
+
}), Xs = /* @__PURE__ */ ee({
|
|
1763
1766
|
__name: "TabHeaderScroll",
|
|
1764
1767
|
props: {
|
|
1765
1768
|
space: { default: 300 },
|
|
@@ -1767,7 +1770,7 @@ const Hs = ["disabled", "title"], Zs = {
|
|
|
1767
1770
|
isScrollButton: { type: Boolean, default: !0 }
|
|
1768
1771
|
},
|
|
1769
1772
|
setup(t, { expose: e }) {
|
|
1770
|
-
const n =
|
|
1773
|
+
const n = $(null), s = $(null), r = $(null), o = $(!1), i = $(!1), d = $(!1), a = $(!0), c = $(), p = t, f = Ie({
|
|
1771
1774
|
clientWidth: 0,
|
|
1772
1775
|
scrollWidth: 0,
|
|
1773
1776
|
scrollLeft: 0
|
|
@@ -1777,58 +1780,58 @@ const Hs = ["disabled", "title"], Zs = {
|
|
|
1777
1780
|
startThumbLeft: 0,
|
|
1778
1781
|
startPageX: 0
|
|
1779
1782
|
});
|
|
1780
|
-
|
|
1781
|
-
|
|
1783
|
+
kn(f, (A) => {
|
|
1784
|
+
m(A);
|
|
1782
1785
|
});
|
|
1783
|
-
const
|
|
1784
|
-
i.value = A.scrollLeft <= 10,
|
|
1785
|
-
},
|
|
1786
|
-
if (!
|
|
1787
|
-
const { clientWidth: A, scrollWidth: C } =
|
|
1786
|
+
const m = (A) => {
|
|
1787
|
+
i.value = A.scrollLeft <= 10, d.value = A.clientWidth + A.scrollLeft - A.scrollWidth >= -10, a.value = A.scrollWidth !== A.clientWidth;
|
|
1788
|
+
}, S = we(() => f.scrollWidth > f.clientWidth), I = we(() => {
|
|
1789
|
+
if (!S.value) return 0;
|
|
1790
|
+
const { clientWidth: A, scrollWidth: C } = f;
|
|
1788
1791
|
return A / C * A;
|
|
1789
|
-
}),
|
|
1790
|
-
if (!
|
|
1791
|
-
const { clientWidth: A, scrollWidth: C, scrollLeft: U } =
|
|
1792
|
-
return (A -
|
|
1792
|
+
}), B = we(() => {
|
|
1793
|
+
if (!S.value) return 0;
|
|
1794
|
+
const { clientWidth: A, scrollWidth: C, scrollLeft: U } = f;
|
|
1795
|
+
return (A - I.value) * (U / (C - A));
|
|
1793
1796
|
}), y = () => {
|
|
1794
1797
|
if (n.value === null || n.value === void 0)
|
|
1795
1798
|
return;
|
|
1796
1799
|
const { clientWidth: A, scrollWidth: C, scrollLeft: U } = n.value;
|
|
1797
|
-
Object.assign(
|
|
1798
|
-
}, w = new
|
|
1800
|
+
Object.assign(f, { clientWidth: A, scrollWidth: C, scrollLeft: U });
|
|
1801
|
+
}, w = new qt(() => {
|
|
1799
1802
|
var C;
|
|
1800
1803
|
y();
|
|
1801
1804
|
const A = (C = n.value) == null ? void 0 : C.querySelector(".stack-tab__item.is-active");
|
|
1802
|
-
A && (G(A) ||
|
|
1803
|
-
}), T = new
|
|
1805
|
+
A && (G(A) || D(A));
|
|
1806
|
+
}), T = new qt(() => {
|
|
1804
1807
|
var A;
|
|
1805
|
-
if (!
|
|
1808
|
+
if (!S.value) {
|
|
1806
1809
|
const C = (A = n.value) == null ? void 0 : A.querySelector(".stack-tab__item.is-active");
|
|
1807
|
-
C && (G(C) ||
|
|
1810
|
+
C && (G(C) || D(C));
|
|
1808
1811
|
}
|
|
1809
1812
|
y();
|
|
1810
1813
|
}), g = (A, C = !0) => {
|
|
1811
|
-
|
|
1812
|
-
},
|
|
1814
|
+
nn({ wrap: n.value, left: A, smooth: C });
|
|
1815
|
+
}, O = (A) => {
|
|
1813
1816
|
g(n.value.scrollLeft + A);
|
|
1814
|
-
},
|
|
1817
|
+
}, u = (A) => {
|
|
1815
1818
|
const C = A.deltaY < 0;
|
|
1816
1819
|
g(n.value.scrollLeft + (C ? -p.space : p.space));
|
|
1817
|
-
},
|
|
1820
|
+
}, _ = (A) => {
|
|
1818
1821
|
var C;
|
|
1819
1822
|
Object.assign(l, {
|
|
1820
1823
|
startPageX: A.pageX,
|
|
1821
1824
|
startScrollLeft: (C = n.value) == null ? void 0 : C.scrollLeft,
|
|
1822
|
-
startThumbLeft:
|
|
1823
|
-
thumbLeft:
|
|
1824
|
-
}), o.value = !0, document.addEventListener("mousemove",
|
|
1825
|
-
},
|
|
1826
|
-
const { clientWidth: C, scrollWidth: U } =
|
|
1825
|
+
startThumbLeft: B.value,
|
|
1826
|
+
thumbLeft: B.value
|
|
1827
|
+
}), o.value = !0, document.addEventListener("mousemove", k), document.addEventListener("mouseup", z);
|
|
1828
|
+
}, k = (A) => {
|
|
1829
|
+
const { clientWidth: C, scrollWidth: U } = f;
|
|
1827
1830
|
let re = l.startThumbLeft + A.pageX - l.startPageX;
|
|
1828
|
-
const Le = C -
|
|
1829
|
-
re < 0 ? re = 0 : re > Le && (re = Le), l.thumbLeft = re, g(re * (U - C) / (C -
|
|
1831
|
+
const Le = C - I.value;
|
|
1832
|
+
re < 0 ? re = 0 : re > Le && (re = Le), l.thumbLeft = re, g(re * (U - C) / (C - I.value), !1), A.preventDefault();
|
|
1830
1833
|
}, z = (A) => {
|
|
1831
|
-
o.value = !1, document.removeEventListener("mousemove",
|
|
1834
|
+
o.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", z), A.preventDefault();
|
|
1832
1835
|
};
|
|
1833
1836
|
Fe(() => {
|
|
1834
1837
|
var C;
|
|
@@ -1838,40 +1841,40 @@ const Hs = ["disabled", "title"], Zs = {
|
|
|
1838
1841
|
}), He(() => {
|
|
1839
1842
|
w.disconnect(), T.disconnect();
|
|
1840
1843
|
});
|
|
1841
|
-
const
|
|
1842
|
-
|
|
1844
|
+
const D = (A) => {
|
|
1845
|
+
qn({ el: A, wrap: n, block: "end", inline: "center" });
|
|
1843
1846
|
}, G = (A) => {
|
|
1844
|
-
if (!
|
|
1847
|
+
if (!S.value)
|
|
1845
1848
|
return !0;
|
|
1846
1849
|
const C = A.offsetLeft, U = n.value.scrollLeft;
|
|
1847
1850
|
return !(C < U || C + A.clientWidth > U + n.value.clientWidth);
|
|
1848
1851
|
};
|
|
1849
|
-
return e({ scrollIntoView:
|
|
1850
|
-
a.value ? (R(), me(
|
|
1852
|
+
return e({ scrollIntoView: D, isInView: G }), (A, C) => (R(), V(Ze, null, [
|
|
1853
|
+
a.value ? (R(), me(it, {
|
|
1851
1854
|
key: 0,
|
|
1852
1855
|
"icon-class": "stack-tab__icon-left-arrow",
|
|
1853
1856
|
disabled: i.value,
|
|
1854
|
-
onClick: C[0] || (C[0] = (U) => !i.value &&
|
|
1857
|
+
onClick: C[0] || (C[0] = (U) => !i.value && O(-1 * A.space))
|
|
1855
1858
|
}, null, 8, ["disabled"])) : se("", !0),
|
|
1856
1859
|
Q("div", {
|
|
1857
1860
|
ref_key: "headerScroll",
|
|
1858
1861
|
ref: c,
|
|
1859
1862
|
class: "stack-tab__scroll",
|
|
1860
|
-
|
|
1863
|
+
onWheelPassive: _e(u, ["prevent"])
|
|
1861
1864
|
}, [
|
|
1862
1865
|
Q("div", {
|
|
1863
1866
|
ref_key: "container",
|
|
1864
1867
|
ref: n,
|
|
1865
1868
|
class: fe(["stack-tab__scroll-container", {
|
|
1866
|
-
"stack-tab__shadow-inset-left": !i.value &&
|
|
1867
|
-
"stack-tab__shadow-inset-right": !
|
|
1868
|
-
"stack-tab__shadow-inset-all": !i.value && !
|
|
1869
|
+
"stack-tab__shadow-inset-left": !i.value && d.value,
|
|
1870
|
+
"stack-tab__shadow-inset-right": !d.value && i.value,
|
|
1871
|
+
"stack-tab__shadow-inset-all": !i.value && !d.value
|
|
1869
1872
|
}]),
|
|
1870
1873
|
onScrollPassive: y
|
|
1871
1874
|
}, [
|
|
1872
1875
|
xe(A.$slots, "default")
|
|
1873
1876
|
], 34),
|
|
1874
|
-
|
|
1877
|
+
Gt(Q("div", {
|
|
1875
1878
|
ref_key: "bar",
|
|
1876
1879
|
ref: s,
|
|
1877
1880
|
class: fe(["stack-tab__scrollbar", { "is-dragging": o.value }])
|
|
@@ -1880,25 +1883,25 @@ const Hs = ["disabled", "title"], Zs = {
|
|
|
1880
1883
|
ref_key: "thumb",
|
|
1881
1884
|
ref: r,
|
|
1882
1885
|
class: fe(["stack-tab__scrollbar-thumb", { "is-dragging": o.value }]),
|
|
1883
|
-
style:
|
|
1884
|
-
width: `${
|
|
1885
|
-
transform: `translateX(${
|
|
1886
|
+
style: ct({
|
|
1887
|
+
width: `${I.value}px`,
|
|
1888
|
+
transform: `translateX(${B.value}px)`
|
|
1886
1889
|
}),
|
|
1887
|
-
onMousedown: _e(
|
|
1890
|
+
onMousedown: _e(_, ["prevent"])
|
|
1888
1891
|
}, null, 38)
|
|
1889
1892
|
], 2), [
|
|
1890
|
-
[
|
|
1893
|
+
[Yt, S.value]
|
|
1891
1894
|
])
|
|
1892
1895
|
], 544),
|
|
1893
|
-
a.value ? (R(), me(
|
|
1896
|
+
a.value ? (R(), me(it, {
|
|
1894
1897
|
key: 1,
|
|
1895
1898
|
"icon-class": "stack-tab__icon-right-arrow",
|
|
1896
|
-
disabled:
|
|
1897
|
-
onClick: C[1] || (C[1] = (U) => !
|
|
1899
|
+
disabled: d.value,
|
|
1900
|
+
onClick: C[1] || (C[1] = (U) => !d.value && O(A.space))
|
|
1898
1901
|
}, null, 8, ["disabled"])) : se("", !0)
|
|
1899
1902
|
], 64));
|
|
1900
1903
|
}
|
|
1901
|
-
}),
|
|
1904
|
+
}), Gs = { class: "stack-tab__header" }, Ys = /* @__PURE__ */ ee({
|
|
1902
1905
|
__name: "index",
|
|
1903
1906
|
props: {
|
|
1904
1907
|
space: {},
|
|
@@ -1911,41 +1914,41 @@ const Hs = ["disabled", "title"], Zs = {
|
|
|
1911
1914
|
},
|
|
1912
1915
|
emits: ["active"],
|
|
1913
1916
|
setup(t, { emit: e }) {
|
|
1914
|
-
const { t: n } = Me(), s =
|
|
1917
|
+
const { t: n } = Me(), s = at("maximum"), r = e, o = $(), { shown: i, contextMenuData: d, showContextMenu: a } = ks(), c = t, { removeTab: p, active: f, tabs: l } = Ce(), m = we(() => typeof c.tabTransition == "string" ? {
|
|
1915
1918
|
name: c.tabTransition
|
|
1916
|
-
} : c.tabTransition),
|
|
1919
|
+
} : c.tabTransition), S = we(() => c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.BUTTON), I = c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.WHEEL, B = (w) => {
|
|
1917
1920
|
w.closable && p(w.id), i.value = !1;
|
|
1918
1921
|
}, y = (w, T, g) => {
|
|
1919
1922
|
o.value && (le(() => {
|
|
1920
1923
|
o.value.isInView(T.value) || o.value.scrollIntoView(T.value);
|
|
1921
|
-
}),
|
|
1924
|
+
}), f(w.id, g), r("active", w.id));
|
|
1922
1925
|
};
|
|
1923
|
-
return (w, T) => (R(), V("div",
|
|
1926
|
+
return (w, T) => (R(), V("div", Gs, [
|
|
1924
1927
|
xe(w.$slots, "leftButton"),
|
|
1925
|
-
|
|
1928
|
+
W(Xs, {
|
|
1926
1929
|
ref_key: "scroll",
|
|
1927
1930
|
ref: o,
|
|
1928
1931
|
space: w.space,
|
|
1929
|
-
"is-scroll-wheel":
|
|
1930
|
-
"is-scroll-button":
|
|
1932
|
+
"is-scroll-wheel": x(I),
|
|
1933
|
+
"is-scroll-button": S.value
|
|
1931
1934
|
}, {
|
|
1932
1935
|
default: ue(() => [
|
|
1933
|
-
|
|
1936
|
+
W(Kt, _n({
|
|
1934
1937
|
key: "tabItemTrans",
|
|
1935
1938
|
tag: "ul",
|
|
1936
1939
|
class: "stack-tab__nav"
|
|
1937
|
-
},
|
|
1940
|
+
}, m.value, { appear: "" }), {
|
|
1938
1941
|
default: ue(() => [
|
|
1939
|
-
(R(!0), V(Ze, null,
|
|
1942
|
+
(R(!0), V(Ze, null, lt(x(l), (g, O) => (R(), me(Ss, {
|
|
1940
1943
|
key: g.id,
|
|
1941
1944
|
contextmenu: w.contextmenu,
|
|
1942
1945
|
item: g,
|
|
1943
1946
|
onContextmenu: _e(
|
|
1944
|
-
(
|
|
1947
|
+
(u) => x(a)(u, g, O, x(l).length),
|
|
1945
1948
|
["prevent"]
|
|
1946
1949
|
),
|
|
1947
|
-
onMouseup: _e((
|
|
1948
|
-
onClose:
|
|
1950
|
+
onMouseup: _e((u) => B(g), ["middle", "prevent"]),
|
|
1951
|
+
onClose: B,
|
|
1949
1952
|
onActive: y
|
|
1950
1953
|
}, null, 8, ["contextmenu", "item", "onContextmenu", "onMouseup"]))), 128))
|
|
1951
1954
|
]),
|
|
@@ -1955,23 +1958,23 @@ const Hs = ["disabled", "title"], Zs = {
|
|
|
1955
1958
|
_: 1
|
|
1956
1959
|
}, 8, ["space", "is-scroll-wheel", "is-scroll-button"]),
|
|
1957
1960
|
xe(w.$slots, "rightButton"),
|
|
1958
|
-
|
|
1959
|
-
"icon-class":
|
|
1960
|
-
title:
|
|
1961
|
-
onClick: T[0] || (T[0] = (g) => s.value = !
|
|
1961
|
+
W(it, {
|
|
1962
|
+
"icon-class": x(s) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
|
|
1963
|
+
title: x(n)("VueStackTab.maximum"),
|
|
1964
|
+
onClick: T[0] || (T[0] = (g) => s.value = !x(s))
|
|
1962
1965
|
}, null, 8, ["icon-class", "title"]),
|
|
1963
|
-
|
|
1966
|
+
W(Jt, {
|
|
1964
1967
|
name: "stack-tab-zoom",
|
|
1965
1968
|
appear: ""
|
|
1966
1969
|
}, {
|
|
1967
1970
|
default: ue(() => [
|
|
1968
|
-
|
|
1971
|
+
x(i) ? (R(), me(ws, {
|
|
1969
1972
|
key: "tabMenuTrans",
|
|
1970
|
-
left:
|
|
1971
|
-
top:
|
|
1972
|
-
"tab-item":
|
|
1973
|
-
max:
|
|
1974
|
-
index:
|
|
1973
|
+
left: x(d).left,
|
|
1974
|
+
top: x(d).top,
|
|
1975
|
+
"tab-item": x(d).item,
|
|
1976
|
+
max: x(d).max,
|
|
1977
|
+
index: x(d).index
|
|
1975
1978
|
}, null, 8, ["left", "top", "tab-item", "max", "index"])) : se("", !0)
|
|
1976
1979
|
]),
|
|
1977
1980
|
_: 1
|
|
@@ -1979,83 +1982,83 @@ const Hs = ["disabled", "title"], Zs = {
|
|
|
1979
1982
|
]));
|
|
1980
1983
|
}
|
|
1981
1984
|
});
|
|
1982
|
-
function
|
|
1983
|
-
var s = {}, r = s.noTrailing, o = r === void 0 ? !1 : r, i = s.noLeading,
|
|
1984
|
-
function
|
|
1985
|
+
function Ks(t, e, n) {
|
|
1986
|
+
var s = {}, r = s.noTrailing, o = r === void 0 ? !1 : r, i = s.noLeading, d = i === void 0 ? !1 : i, a = s.debounceMode, c = a === void 0 ? void 0 : a, p, f = !1, l = 0;
|
|
1987
|
+
function m() {
|
|
1985
1988
|
p && clearTimeout(p);
|
|
1986
1989
|
}
|
|
1987
|
-
function
|
|
1988
|
-
var y =
|
|
1989
|
-
|
|
1990
|
+
function S(B) {
|
|
1991
|
+
var y = B || {}, w = y.upcomingOnly, T = w === void 0 ? !1 : w;
|
|
1992
|
+
m(), f = !T;
|
|
1990
1993
|
}
|
|
1991
|
-
function
|
|
1992
|
-
for (var
|
|
1994
|
+
function I() {
|
|
1995
|
+
for (var B = arguments.length, y = new Array(B), w = 0; w < B; w++)
|
|
1993
1996
|
y[w] = arguments[w];
|
|
1994
1997
|
var T = this, g = Date.now() - l;
|
|
1995
|
-
if (
|
|
1998
|
+
if (f)
|
|
1996
1999
|
return;
|
|
1997
|
-
function
|
|
2000
|
+
function O() {
|
|
1998
2001
|
l = Date.now(), e.apply(T, y);
|
|
1999
2002
|
}
|
|
2000
|
-
function
|
|
2003
|
+
function u() {
|
|
2001
2004
|
p = void 0;
|
|
2002
2005
|
}
|
|
2003
|
-
!
|
|
2006
|
+
!d && c && !p && O(), m(), c === void 0 && g > t ? d ? (l = Date.now(), o || (p = setTimeout(c ? u : O, t))) : O() : o !== !0 && (p = setTimeout(c ? u : O, c === void 0 ? t - g : t));
|
|
2004
2007
|
}
|
|
2005
|
-
return
|
|
2008
|
+
return I.cancel = S, I;
|
|
2006
2009
|
}
|
|
2007
|
-
let
|
|
2008
|
-
const
|
|
2009
|
-
const t =
|
|
2010
|
+
let Ft;
|
|
2011
|
+
const Js = () => {
|
|
2012
|
+
const t = ut(), { active: e, hasTab: n, pageShown: s, reset: r, canAddTab: o, renewTab: i, getTab: d } = Ce(), a = ge(), c = Ks(500, (m, S = !1) => new Promise((I, B) => {
|
|
2010
2013
|
if (!s.value) {
|
|
2011
|
-
|
|
2014
|
+
B();
|
|
2012
2015
|
return;
|
|
2013
2016
|
}
|
|
2014
|
-
const y = ne(
|
|
2017
|
+
const y = ne(m, {
|
|
2015
2018
|
refreshable: !0,
|
|
2016
2019
|
closable: !0,
|
|
2017
2020
|
iframe: !1
|
|
2018
2021
|
});
|
|
2019
|
-
if (y.id &&
|
|
2020
|
-
i(
|
|
2021
|
-
const w =
|
|
2022
|
+
if (y.id && S && n(y.id)) {
|
|
2023
|
+
i(m);
|
|
2024
|
+
const w = d(m.id);
|
|
2022
2025
|
w != null && w.active && (s.value = !1, le(() => {
|
|
2023
2026
|
s.value = !0;
|
|
2024
2027
|
}));
|
|
2025
2028
|
}
|
|
2026
|
-
if (n(y.id) && !
|
|
2027
|
-
a.emit(Z.TAB_ACTIVE, { id: y.id }),
|
|
2029
|
+
if (n(y.id) && !S) {
|
|
2030
|
+
a.emit(Z.TAB_ACTIVE, { id: y.id }), I(y.id);
|
|
2028
2031
|
return;
|
|
2029
2032
|
}
|
|
2030
|
-
if (y.id || (y.id =
|
|
2031
|
-
|
|
2033
|
+
if (y.id || (y.id = et()), !o()) {
|
|
2034
|
+
B("Max Size");
|
|
2032
2035
|
return;
|
|
2033
2036
|
}
|
|
2034
|
-
p(
|
|
2035
|
-
})), p = (
|
|
2036
|
-
const
|
|
2037
|
-
let
|
|
2037
|
+
p(m, y), I(y.id);
|
|
2038
|
+
})), p = (m, S) => {
|
|
2039
|
+
const I = st(S);
|
|
2040
|
+
let B = ne(
|
|
2038
2041
|
{
|
|
2039
|
-
__tab:
|
|
2042
|
+
__tab: I
|
|
2040
2043
|
},
|
|
2041
|
-
|
|
2044
|
+
m.query
|
|
2042
2045
|
), y;
|
|
2043
|
-
if (
|
|
2044
|
-
const w = encodeURIComponent(
|
|
2045
|
-
y =
|
|
2046
|
+
if (m.iframe) {
|
|
2047
|
+
const w = encodeURIComponent(m.path);
|
|
2048
|
+
y = Ft, B.__src = w;
|
|
2046
2049
|
} else {
|
|
2047
|
-
const w =
|
|
2048
|
-
y = w.path,
|
|
2050
|
+
const w = vt(m.path);
|
|
2051
|
+
y = w.path, B = ne(w.query, B);
|
|
2049
2052
|
}
|
|
2050
2053
|
t.push({
|
|
2051
2054
|
path: y,
|
|
2052
|
-
query:
|
|
2055
|
+
query: B
|
|
2053
2056
|
});
|
|
2054
2057
|
};
|
|
2055
|
-
return { openNewTab: c, setIFramePath: (
|
|
2056
|
-
|
|
2058
|
+
return { openNewTab: c, setIFramePath: (m) => {
|
|
2059
|
+
Ft = m;
|
|
2057
2060
|
}, active: e, reset: r, getWrapper: () => document.getElementsByClassName("cache-page-wrapper")[0] };
|
|
2058
|
-
},
|
|
2061
|
+
}, Qs = { class: "stack-tab__container" }, er = ["src"], tr = /* @__PURE__ */ ee({
|
|
2059
2062
|
__name: "StackTabs",
|
|
2060
2063
|
props: {
|
|
2061
2064
|
defaultTabs: { default: () => [] },
|
|
@@ -2071,68 +2074,69 @@ const Ks = () => {
|
|
|
2071
2074
|
i18n: { default: "zh-CN" },
|
|
2072
2075
|
space: { default: 300 },
|
|
2073
2076
|
globalScroll: { type: Boolean, default: !1 },
|
|
2074
|
-
iframePath: {}
|
|
2077
|
+
iframePath: {},
|
|
2078
|
+
sessionPrefix: { default: "" }
|
|
2075
2079
|
},
|
|
2076
2080
|
emits: ["onActive", "onPageLoaded"],
|
|
2077
2081
|
setup(t, { emit: e }) {
|
|
2078
|
-
const { tabs: n, pageShown: s, caches: r, destroy: o, addPage: i, initial:
|
|
2079
|
-
|
|
2080
|
-
const { setIFramePath: B } =
|
|
2081
|
-
B(
|
|
2082
|
-
|
|
2082
|
+
const { tabs: n, pageShown: s, caches: r, destroy: o, addPage: i, initial: d, setMaxSize: a, setGlobalScroll: c, clearSession: p, setSessionPrefix: f } = Ce(), l = e, m = t, { changeLocale: S } = Me(), I = $(!1);
|
|
2083
|
+
xn("maximum", I);
|
|
2084
|
+
const { setIFramePath: B } = Js();
|
|
2085
|
+
B(m.iframePath), c(m.globalScroll), S(m.i18n), Tn(() => {
|
|
2086
|
+
d(m.defaultTabs), f(m.sessionPrefix);
|
|
2083
2087
|
});
|
|
2084
|
-
const
|
|
2085
|
-
|
|
2088
|
+
const y = (u, _) => i(u, _), w = (u) => {
|
|
2089
|
+
l("onActive", u);
|
|
2086
2090
|
};
|
|
2087
|
-
a(
|
|
2091
|
+
a(m.max), xt(() => {
|
|
2088
2092
|
o();
|
|
2089
2093
|
});
|
|
2090
|
-
const
|
|
2091
|
-
|
|
2092
|
-
},
|
|
2093
|
-
return
|
|
2094
|
-
|
|
2095
|
-
}),
|
|
2096
|
-
|
|
2097
|
-
}),
|
|
2094
|
+
const T = () => {
|
|
2095
|
+
l("onPageLoaded");
|
|
2096
|
+
}, g = $(m.pageTransition), O = ge();
|
|
2097
|
+
return O.on("FORWARD", () => {
|
|
2098
|
+
g.value = m.pageTransition;
|
|
2099
|
+
}), O.on("BACKWARD", () => {
|
|
2100
|
+
g.value = m.pageTransitionBack;
|
|
2101
|
+
}), xt(() => {
|
|
2098
2102
|
p();
|
|
2099
|
-
}), (
|
|
2100
|
-
const
|
|
2103
|
+
}), (u, _) => {
|
|
2104
|
+
const k = jt("router-view");
|
|
2101
2105
|
return R(), V("div", {
|
|
2102
|
-
class: fe(["stack-tab", { "stack-tab__maximum":
|
|
2103
|
-
style:
|
|
2104
|
-
width:
|
|
2105
|
-
height:
|
|
2106
|
-
"z-index":
|
|
2106
|
+
class: fe(["stack-tab", { "stack-tab__maximum": I.value }]),
|
|
2107
|
+
style: ct({
|
|
2108
|
+
width: u.width,
|
|
2109
|
+
height: u.height,
|
|
2110
|
+
"z-index": I.value ? x(sn)("body *:not(.stack-tab,.stack-tab *)") : void 0
|
|
2107
2111
|
})
|
|
2108
2112
|
}, [
|
|
2109
|
-
|
|
2110
|
-
space:
|
|
2111
|
-
onActive:
|
|
2112
|
-
"tab-transition":
|
|
2113
|
-
max:
|
|
2113
|
+
W(Ys, {
|
|
2114
|
+
space: u.space,
|
|
2115
|
+
onActive: w,
|
|
2116
|
+
"tab-transition": u.tabTransition,
|
|
2117
|
+
max: u.max
|
|
2114
2118
|
}, {
|
|
2115
2119
|
leftButton: ue(() => [
|
|
2116
|
-
xe(
|
|
2120
|
+
xe(u.$slots, "leftButton")
|
|
2117
2121
|
]),
|
|
2118
2122
|
rightButton: ue(() => [
|
|
2119
|
-
xe(
|
|
2123
|
+
xe(u.$slots, "rightButton")
|
|
2120
2124
|
]),
|
|
2121
2125
|
_: 3
|
|
2122
2126
|
}, 8, ["space", "tab-transition", "max"]),
|
|
2123
|
-
Q("div",
|
|
2124
|
-
|
|
2125
|
-
default: ue(({ Component:
|
|
2126
|
-
|
|
2127
|
-
name:
|
|
2127
|
+
Q("div", Qs, [
|
|
2128
|
+
W(k, null, {
|
|
2129
|
+
default: ue(({ Component: z, route: D }) => [
|
|
2130
|
+
W(Jt, {
|
|
2131
|
+
name: g.value,
|
|
2128
2132
|
appear: "",
|
|
2129
2133
|
mode: "out-in"
|
|
2130
2134
|
}, {
|
|
2131
2135
|
default: ue(() => [
|
|
2132
|
-
(R(), me(
|
|
2133
|
-
|
|
2134
|
-
key:
|
|
2135
|
-
onOnLoaded:
|
|
2136
|
+
(R(), me(Sn, { include: x(r) }, [
|
|
2137
|
+
x(s) ? (R(), me(On(y(D, z)), {
|
|
2138
|
+
key: D.fullPath,
|
|
2139
|
+
onOnLoaded: T
|
|
2136
2140
|
}, null, 32)) : se("", !0)
|
|
2137
2141
|
], 1032, ["include"]))
|
|
2138
2142
|
]),
|
|
@@ -2141,18 +2145,18 @@ const Ks = () => {
|
|
|
2141
2145
|
]),
|
|
2142
2146
|
_: 1
|
|
2143
2147
|
}),
|
|
2144
|
-
|
|
2145
|
-
name:
|
|
2148
|
+
W(Kt, {
|
|
2149
|
+
name: u.pageTransition,
|
|
2146
2150
|
appear: ""
|
|
2147
2151
|
}, {
|
|
2148
2152
|
default: ue(() => [
|
|
2149
|
-
(R(!0), V(Ze, null,
|
|
2150
|
-
key:
|
|
2153
|
+
(R(!0), V(Ze, null, lt(x(n).filter((z) => z.iframe), (z) => Gt((R(), V("iframe", {
|
|
2154
|
+
key: z.id,
|
|
2151
2155
|
class: "stack-tab__iframe",
|
|
2152
|
-
src: /^(javascript|data):/i.test(
|
|
2156
|
+
src: /^(javascript|data):/i.test(z.url ?? "") ? "about:blank" : z.url,
|
|
2153
2157
|
frameborder: "0"
|
|
2154
|
-
}, null, 8,
|
|
2155
|
-
[
|
|
2158
|
+
}, null, 8, er)), [
|
|
2159
|
+
[Yt, z.active]
|
|
2156
2160
|
])), 128))
|
|
2157
2161
|
]),
|
|
2158
2162
|
_: 1
|
|
@@ -2161,30 +2165,30 @@ const Ks = () => {
|
|
|
2161
2165
|
], 6);
|
|
2162
2166
|
};
|
|
2163
2167
|
}
|
|
2164
|
-
}),
|
|
2168
|
+
}), gt = typeof Buffer == "function";
|
|
2165
2169
|
typeof TextDecoder == "function" && new TextDecoder();
|
|
2166
|
-
const
|
|
2170
|
+
const Ht = typeof TextEncoder == "function" ? new TextEncoder() : void 0, nr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Se = Array.prototype.slice.call(nr);
|
|
2167
2171
|
((t) => {
|
|
2168
2172
|
let e = {};
|
|
2169
2173
|
return t.forEach((n, s) => e[n] = s), e;
|
|
2170
2174
|
})(Se);
|
|
2171
2175
|
const J = String.fromCharCode.bind(String);
|
|
2172
2176
|
typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
|
|
2173
|
-
const
|
|
2177
|
+
const sr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), rr = (t) => {
|
|
2174
2178
|
let e, n, s, r, o = "";
|
|
2175
2179
|
const i = t.length % 3;
|
|
2176
|
-
for (let
|
|
2177
|
-
if ((n = t.charCodeAt(
|
|
2180
|
+
for (let d = 0; d < t.length; ) {
|
|
2181
|
+
if ((n = t.charCodeAt(d++)) > 255 || (s = t.charCodeAt(d++)) > 255 || (r = t.charCodeAt(d++)) > 255)
|
|
2178
2182
|
throw new TypeError("invalid character found");
|
|
2179
2183
|
e = n << 16 | s << 8 | r, o += Se[e >> 18 & 63] + Se[e >> 12 & 63] + Se[e >> 6 & 63] + Se[e & 63];
|
|
2180
2184
|
}
|
|
2181
2185
|
return i ? o.slice(0, i - 3) + "===".substring(i) : o;
|
|
2182
|
-
},
|
|
2186
|
+
}, bn = typeof btoa == "function" ? (t) => btoa(t) : gt ? (t) => Buffer.from(t, "binary").toString("base64") : rr, or = gt ? (t) => Buffer.from(t).toString("base64") : (t) => {
|
|
2183
2187
|
let n = [];
|
|
2184
2188
|
for (let s = 0, r = t.length; s < r; s += 4096)
|
|
2185
2189
|
n.push(J.apply(null, t.subarray(s, s + 4096)));
|
|
2186
|
-
return
|
|
2187
|
-
},
|
|
2190
|
+
return bn(n.join(""));
|
|
2191
|
+
}, ir = (t) => {
|
|
2188
2192
|
if (t.length < 2) {
|
|
2189
2193
|
var e = t.charCodeAt(0);
|
|
2190
2194
|
return e < 128 ? t : e < 2048 ? J(192 | e >>> 6) + J(128 | e & 63) : J(224 | e >>> 12 & 15) + J(128 | e >>> 6 & 63) + J(128 | e & 63);
|
|
@@ -2192,17 +2196,17 @@ const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
|
|
|
2192
2196
|
var e = 65536 + (t.charCodeAt(0) - 55296) * 1024 + (t.charCodeAt(1) - 56320);
|
|
2193
2197
|
return J(240 | e >>> 18 & 7) + J(128 | e >>> 12 & 63) + J(128 | e >>> 6 & 63) + J(128 | e & 63);
|
|
2194
2198
|
}
|
|
2195
|
-
},
|
|
2196
|
-
const s = `<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${t}</tspan></text></g></svg>`, i = "data:image/svg+xml;base64," + cr(s), f = "font-size: 1px; padding: " + Math.floor(100 / 4) + "px " + Math.floor(580 / 2) + "px; line-height: " + Math.floor(100 / 2) + "px;";
|
|
2199
|
+
}, ar = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, cr = (t) => t.replace(ar, ir), Zt = gt ? (t) => Buffer.from(t, "utf8").toString("base64") : Ht ? (t) => or(Ht.encode(t)) : (t) => bn(cr(t)), lr = (t, e = !1) => e ? sr(Zt(t)) : Zt(t), ur = (t) => {
|
|
2200
|
+
const s = `<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${t}</tspan></text></g></svg>`, i = "data:image/svg+xml;base64," + lr(s), d = "font-size: 1px; padding: " + Math.floor(100 / 4) + "px " + Math.floor(580 / 2) + "px; line-height: " + Math.floor(100 / 2) + "px;";
|
|
2197
2201
|
window.console.log(
|
|
2198
2202
|
"%c+",
|
|
2199
|
-
|
|
2203
|
+
d + `background-image: url(${i});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
|
|
2200
2204
|
);
|
|
2201
|
-
},
|
|
2202
|
-
const { attrs: t, props: e } =
|
|
2203
|
-
let
|
|
2204
|
-
|
|
2205
|
-
const
|
|
2205
|
+
}, fr = () => {
|
|
2206
|
+
const { attrs: t, props: e } = Qt(), { pageShown: n, getTab: s, markDeletableCache: r, removeComponent: o, getComponent: i, addPageScroller: d } = Ce(), a = An(), c = ut(), p = ge();
|
|
2207
|
+
let f = "", l = "";
|
|
2208
|
+
f = t.tId || e.tId;
|
|
2209
|
+
const m = t.pId || e.pId;
|
|
2206
2210
|
return l = a.query.__tab, {
|
|
2207
2211
|
forward: (y) => {
|
|
2208
2212
|
const w = ne(
|
|
@@ -2217,54 +2221,54 @@ const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
|
|
|
2217
2221
|
});
|
|
2218
2222
|
},
|
|
2219
2223
|
backward: (y, w) => {
|
|
2220
|
-
const T = s(
|
|
2224
|
+
const T = s(f);
|
|
2221
2225
|
if (!T)
|
|
2222
2226
|
return;
|
|
2223
2227
|
const g = T.pages;
|
|
2224
|
-
let
|
|
2228
|
+
let O = 0;
|
|
2225
2229
|
if (typeof y == "number")
|
|
2226
|
-
|
|
2230
|
+
O = Math.abs(y);
|
|
2227
2231
|
else {
|
|
2228
|
-
let
|
|
2229
|
-
const
|
|
2232
|
+
let k = 1, z = !1;
|
|
2233
|
+
const D = g.list(), G = vt(y);
|
|
2230
2234
|
w = ne(G.query, w);
|
|
2231
2235
|
for (let A = g.size() - 2; A >= 0; A--) {
|
|
2232
|
-
if (
|
|
2236
|
+
if (D[A].path === G.path) {
|
|
2233
2237
|
z = !0;
|
|
2234
2238
|
break;
|
|
2235
2239
|
}
|
|
2236
|
-
|
|
2240
|
+
k += 1;
|
|
2237
2241
|
}
|
|
2238
|
-
z && (
|
|
2242
|
+
z && (O = k);
|
|
2239
2243
|
}
|
|
2240
|
-
if (
|
|
2244
|
+
if (O === 0 || g.size() <= O)
|
|
2241
2245
|
return;
|
|
2242
|
-
for (let
|
|
2246
|
+
for (let k = 0; k < O; k++) {
|
|
2243
2247
|
const z = g.pop();
|
|
2244
2248
|
r(z.id);
|
|
2245
2249
|
}
|
|
2246
|
-
const
|
|
2247
|
-
if (
|
|
2248
|
-
const
|
|
2249
|
-
|
|
2250
|
+
const u = g == null ? void 0 : g.peek(), _ = i(u.id);
|
|
2251
|
+
if (_ != null) {
|
|
2252
|
+
const k = _.components.DynamicComponent;
|
|
2253
|
+
k.props = ne(w, k.props);
|
|
2250
2254
|
}
|
|
2251
2255
|
p.emit("BACKWARD"), c.push({
|
|
2252
|
-
path:
|
|
2253
|
-
query:
|
|
2256
|
+
path: u.path,
|
|
2257
|
+
query: u.query
|
|
2254
2258
|
});
|
|
2255
2259
|
},
|
|
2256
2260
|
addScroller: (...y) => {
|
|
2257
|
-
|
|
2261
|
+
d(m, ...y);
|
|
2258
2262
|
}
|
|
2259
2263
|
};
|
|
2260
|
-
},
|
|
2264
|
+
}, gr = /* @__PURE__ */ ee({
|
|
2261
2265
|
__name: "iframe",
|
|
2262
2266
|
setup(t) {
|
|
2263
|
-
return
|
|
2267
|
+
return fr(), () => {
|
|
2264
2268
|
};
|
|
2265
2269
|
}
|
|
2266
|
-
}),
|
|
2267
|
-
const t = ge(), { attrs: e } =
|
|
2270
|
+
}), yr = () => {
|
|
2271
|
+
const t = ge(), { attrs: e } = Qt();
|
|
2268
2272
|
He(() => {
|
|
2269
2273
|
s();
|
|
2270
2274
|
});
|
|
@@ -2274,19 +2278,19 @@ const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
|
|
|
2274
2278
|
t.emit(Z.PAGE_LOADING, { tId: e.tId, value: !1 });
|
|
2275
2279
|
};
|
|
2276
2280
|
return { openTabLoading: n, closeTabLoading: s };
|
|
2277
|
-
},
|
|
2281
|
+
}, wr = {
|
|
2278
2282
|
install(t, e) {
|
|
2279
|
-
|
|
2283
|
+
ur("0.1.43"), t.component("VueStackTabs", tr).use(hs).use(Un().getI18n(e));
|
|
2280
2284
|
}
|
|
2281
2285
|
};
|
|
2282
2286
|
export {
|
|
2283
|
-
|
|
2287
|
+
gr as IFrame,
|
|
2284
2288
|
je as Stack,
|
|
2285
|
-
|
|
2286
|
-
|
|
2289
|
+
tr as StackTab,
|
|
2290
|
+
it as TabHeaderButton,
|
|
2287
2291
|
pe as TabScrollMode,
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
+
wr as default,
|
|
2293
|
+
Js as useStackTab,
|
|
2294
|
+
yr as useTabLoading,
|
|
2295
|
+
fr as useTabRouter
|
|
2292
2296
|
};
|