vue-stack-tabs 0.1.28 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/favicon.svg +9 -9
- package/dist/src/lib/hooks/useStackTab.d.ts +1 -1
- package/dist/src/lib/hooks/useTabpanel.d.ts +1 -1
- package/dist/vue-stack-tabs.es.js +1044 -1031
- package/dist/vue-stack-tabs.umd.js +3 -3
- package/package.json +1 -1
- package/src/lib/StackTabs.vue +12 -5
- package/src/lib/components/TabHeader/index.vue +1 -1
- package/src/lib/hooks/useTabRouter.ts +2 -2
- package/src/lib/hooks/useTabpanel.tsx +650 -602
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { inject as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
const
|
|
1
|
+
var _n = Object.defineProperty;
|
|
2
|
+
var Tn = (e, t, n) => t in e ? _n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var yt = (e, t, n) => (Tn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { inject as at, ref as $, reactive as Ie, readonly as wt, toRaw as xn, defineComponent as Q, openBlock as z, createElementBlock as P, createCommentVNode as ne, createElementVNode as K, unref as x, nextTick as de, onMounted as qe, onDeactivated as Sn, onActivated as On, onUnmounted as Ge, createVNode as N, resolveComponent as Zt, normalizeClass as ce, withModifiers as we, toDisplayString as Xt, normalizeStyle as ct, Fragment as He, renderList as lt, createBlock as ve, computed as ge, renderSlot as ke, watch as En, withDirectives as Yt, vShow as Jt, withCtx as ae, TransitionGroup as Kt, mergeProps as An, Transition as Qt, provide as In, onBeforeMount as Bn, onBeforeUnmount as Cn, KeepAlive as Mn, resolveDynamicComponent as Ln, getCurrentInstance as en } from "vue";
|
|
5
|
+
import { useRouter as ut, useRoute as zn } from "vue-router";
|
|
6
|
+
const $n = {
|
|
7
7
|
VueStackTab: {
|
|
8
8
|
close: "close",
|
|
9
9
|
closeLeft: "close left",
|
|
@@ -17,10 +17,10 @@ const zn = {
|
|
|
17
17
|
undefined: "undefined",
|
|
18
18
|
loading: "loading"
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
21
|
__proto__: null,
|
|
22
|
-
default:
|
|
23
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
22
|
+
default: $n
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" })), Nn = {
|
|
24
24
|
VueStackTab: {
|
|
25
25
|
close: "关闭",
|
|
26
26
|
closeLeft: "关闭左侧",
|
|
@@ -34,27 +34,27 @@ const zn = {
|
|
|
34
34
|
undefined: "未命名",
|
|
35
35
|
loading: "加载中"
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
38
|
__proto__: null,
|
|
39
|
-
default:
|
|
39
|
+
default: Nn
|
|
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 Dn = ["__proto__", "prototype", "constructor"];
|
|
47
|
+
function jn(e) {
|
|
48
48
|
const t = typeof e;
|
|
49
49
|
return e !== null && (t === "object" || t === "function");
|
|
50
50
|
}
|
|
51
|
-
function jn(e) {
|
|
52
|
-
return !(Array.isArray(e) ? e.length : Object.keys(e).length);
|
|
53
|
-
}
|
|
54
51
|
function Wn(e) {
|
|
55
|
-
return !
|
|
52
|
+
return !(Array.isArray(e) ? e.length : Object.keys(e).length);
|
|
56
53
|
}
|
|
57
54
|
function Un(e) {
|
|
55
|
+
return !e.some((t) => Dn.indexOf(t) !== -1);
|
|
56
|
+
}
|
|
57
|
+
function Vn(e) {
|
|
58
58
|
const t = e.split("."), n = [];
|
|
59
59
|
for (let r = 0; r < t.length; r++) {
|
|
60
60
|
let s = t[r];
|
|
@@ -62,12 +62,12 @@ function Un(e) {
|
|
|
62
62
|
s = s.slice(0, -1) + ".", s += t[++r];
|
|
63
63
|
n.push(s);
|
|
64
64
|
}
|
|
65
|
-
return
|
|
65
|
+
return Un(n) ? n : [];
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
if (!
|
|
67
|
+
function kt(e, t) {
|
|
68
|
+
if (!jn(e))
|
|
69
69
|
return "";
|
|
70
|
-
const n =
|
|
70
|
+
const n = Vn(t);
|
|
71
71
|
if (n.length === 0)
|
|
72
72
|
return "";
|
|
73
73
|
let r = Object.assign({}, e);
|
|
@@ -82,7 +82,7 @@ function yt(e, t) {
|
|
|
82
82
|
}
|
|
83
83
|
return "";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Fn(e, t) {
|
|
86
86
|
if (Array.isArray(t)) {
|
|
87
87
|
const n = {}, r = [...e.matchAll(/{(.+?)}/g)];
|
|
88
88
|
return r && r.forEach((s, o) => {
|
|
@@ -91,22 +91,22 @@ function Vn(e, t) {
|
|
|
91
91
|
}
|
|
92
92
|
return t;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function qn(e, t) {
|
|
95
95
|
for (const n in t)
|
|
96
96
|
e = e.replace(`{${n}}`, String(t[n]));
|
|
97
97
|
return e;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function tn(e, t) {
|
|
100
100
|
return Object.keys(t).forEach((n) => {
|
|
101
|
-
t[n] instanceof Object && n in e && (t[n] = { ...t[n], ...
|
|
101
|
+
t[n] instanceof Object && n in e && (t[n] = { ...t[n], ...tn(e[n], t[n]) });
|
|
102
102
|
}), { ...e || {}, ...t };
|
|
103
103
|
}
|
|
104
|
-
const
|
|
105
|
-
function
|
|
106
|
-
return
|
|
104
|
+
const Gn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", Hn = (e) => Gn ? Symbol(e) : "_vt_" + e, nn = /* @__PURE__ */ Hn("i18n");
|
|
105
|
+
function Ze() {
|
|
106
|
+
return at(nn);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
const t = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, e), n =
|
|
108
|
+
function Zn(e) {
|
|
109
|
+
const t = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, e), n = $(t.locale), r = Ie({});
|
|
110
110
|
return Object.entries(t.messages).forEach(([s, o]) => {
|
|
111
111
|
r[s] = o;
|
|
112
112
|
}), {
|
|
@@ -114,32 +114,32 @@ function Hn(e) {
|
|
|
114
114
|
if (!s)
|
|
115
115
|
return "";
|
|
116
116
|
const i = typeof o == "string" && o ? o : n.value;
|
|
117
|
-
let u =
|
|
117
|
+
let u = kt(r[i], s) || kt(r[t.fallbackLocale], s);
|
|
118
118
|
if (o && typeof o != "string") {
|
|
119
|
-
const
|
|
120
|
-
|
|
119
|
+
const c = Fn(u, o);
|
|
120
|
+
Wn(c) || (u = qn(u, c));
|
|
121
121
|
}
|
|
122
122
|
return u || s;
|
|
123
123
|
},
|
|
124
|
-
current:
|
|
125
|
-
options:
|
|
124
|
+
current: wt(n),
|
|
125
|
+
options: wt(e || {}),
|
|
126
126
|
install(s) {
|
|
127
127
|
const o = this;
|
|
128
|
-
s.config.globalProperties.$t = o.t, s.provide(
|
|
128
|
+
s.config.globalProperties.$t = o.t, s.provide(nn, o);
|
|
129
129
|
},
|
|
130
130
|
changeLocale(s) {
|
|
131
131
|
n.value = s;
|
|
132
132
|
},
|
|
133
133
|
setLocaleMessage(s, o) {
|
|
134
|
-
r[s] =
|
|
134
|
+
r[s] = tn(xn(r[s] || {}), o);
|
|
135
135
|
},
|
|
136
136
|
getLocaleMessage(s) {
|
|
137
137
|
return r[s] || {};
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
const e = /* @__PURE__ */ Object.assign({ "./lang/en.ts":
|
|
141
|
+
const Xn = () => {
|
|
142
|
+
const e = /* @__PURE__ */ Object.assign({ "./lang/en.ts": Rn, "./lang/zh-CN.ts": Pn });
|
|
143
143
|
function t(s, o) {
|
|
144
144
|
for (const i in s)
|
|
145
145
|
if (s[i].default) {
|
|
@@ -160,14 +160,14 @@ const Zn = () => {
|
|
|
160
160
|
if (s)
|
|
161
161
|
for (const i of s)
|
|
162
162
|
o[i.locale] = i.messages;
|
|
163
|
-
return
|
|
163
|
+
return Zn({
|
|
164
164
|
locale: "zh-CN",
|
|
165
165
|
fallbackLocale: "en",
|
|
166
166
|
messages: o
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
|
-
},
|
|
170
|
+
}, rn = ({
|
|
171
171
|
wrap: e,
|
|
172
172
|
left: t = 0,
|
|
173
173
|
top: n = 0,
|
|
@@ -179,7 +179,7 @@ const Zn = () => {
|
|
|
179
179
|
behavior: r ? "smooth" : "auto"
|
|
180
180
|
}) : (e.scrollLeft = t, e.scrollTop = n));
|
|
181
181
|
};
|
|
182
|
-
function
|
|
182
|
+
function Yn({
|
|
183
183
|
el: e,
|
|
184
184
|
wrap: t,
|
|
185
185
|
block: n = "start",
|
|
@@ -191,21 +191,21 @@ function Xn({
|
|
|
191
191
|
else {
|
|
192
192
|
const { offsetLeft: s, offsetTop: o } = e;
|
|
193
193
|
let i, u;
|
|
194
|
-
n === "center" ? u = o + (e.clientHeight - t.clientHeight) / 2 : u = o, r === "center" ? i = s + (e.clientWidth - t.clientWidth) / 2 : i = s,
|
|
194
|
+
n === "center" ? u = o + (e.clientHeight - t.clientHeight) / 2 : u = o, r === "center" ? i = s + (e.clientWidth - t.clientWidth) / 2 : i = s, rn({ wrap: t, left: i, top: u });
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const sn = (e = ".stack-tab__container *") => {
|
|
198
198
|
const t = Array.from(document.querySelectorAll(e)).map(
|
|
199
199
|
(n) => +window.getComputedStyle(n).zIndex || 0
|
|
200
200
|
);
|
|
201
201
|
return t.length ? Math.max(...t.filter((n) => n < 9e4)) + 1 : 1;
|
|
202
202
|
};
|
|
203
|
-
var
|
|
204
|
-
class
|
|
203
|
+
var he = /* @__PURE__ */ ((e) => (e.WHEEL = "wheel", e.BUTTON = "button", e.BOTH = "both", e))(he || {});
|
|
204
|
+
class Ye {
|
|
205
205
|
//
|
|
206
206
|
constructor(t) {
|
|
207
207
|
// 存储的Map
|
|
208
|
-
|
|
208
|
+
yt(this, "items");
|
|
209
209
|
if (this.items = /* @__PURE__ */ new Map(), t)
|
|
210
210
|
for (const n of t)
|
|
211
211
|
this.push(n);
|
|
@@ -274,21 +274,21 @@ class Ze {
|
|
|
274
274
|
return Array.from(this.items.values());
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
if (!
|
|
277
|
+
function Je(e) {
|
|
278
|
+
if (!ft(e))
|
|
279
279
|
throw new Error("Parameter was not an error");
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
281
|
+
function ft(e) {
|
|
282
|
+
return Jn(e) === "[object Error]" || e instanceof Error;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Jn(e) {
|
|
285
285
|
return Object.prototype.toString.call(e);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Kn(e) {
|
|
288
288
|
let t, n = "";
|
|
289
289
|
if (e.length === 0)
|
|
290
290
|
t = {};
|
|
291
|
-
else if (
|
|
291
|
+
else if (ft(e[0]))
|
|
292
292
|
t = {
|
|
293
293
|
cause: e[0]
|
|
294
294
|
}, n = e.slice(1).join(" ") || "";
|
|
@@ -303,9 +303,9 @@ function Jn(e) {
|
|
|
303
303
|
shortMessage: n
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
|
-
class
|
|
306
|
+
class Z extends Error {
|
|
307
307
|
constructor(t, n) {
|
|
308
|
-
const r = [...arguments], { options: s, shortMessage: o } =
|
|
308
|
+
const r = [...arguments], { options: s, shortMessage: o } = Kn(r);
|
|
309
309
|
let i = o;
|
|
310
310
|
if (s.cause && (i = `${i}: ${s.cause.message}`), super(i), this.message = i, s.name && typeof s.name == "string" ? this.name = s.name : this.name = "Layerr", s.cause && Object.defineProperty(this, "_cause", { value: s.cause }), Object.defineProperty(this, "_info", { value: {} }), s.info && typeof s.info == "object" && Object.assign(this._info, s.info), Error.captureStackTrace) {
|
|
311
311
|
const u = s.constructorOpt || this.constructor;
|
|
@@ -313,32 +313,32 @@ class H extends Error {
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
static cause(t) {
|
|
316
|
-
return
|
|
316
|
+
return Je(t), t._cause && ft(t._cause) ? t._cause : null;
|
|
317
317
|
}
|
|
318
318
|
static fullStack(t) {
|
|
319
|
-
|
|
320
|
-
const n =
|
|
319
|
+
Je(t);
|
|
320
|
+
const n = Z.cause(t);
|
|
321
321
|
return n ? `${t.stack}
|
|
322
|
-
caused by: ${
|
|
322
|
+
caused by: ${Z.fullStack(n)}` : t.stack;
|
|
323
323
|
}
|
|
324
324
|
static info(t) {
|
|
325
|
-
|
|
326
|
-
const n = {}, r =
|
|
327
|
-
return r && Object.assign(n,
|
|
325
|
+
Je(t);
|
|
326
|
+
const n = {}, r = Z.cause(t);
|
|
327
|
+
return r && Object.assign(n, Z.info(r)), t._info && Object.assign(n, t._info), n;
|
|
328
328
|
}
|
|
329
329
|
cause() {
|
|
330
|
-
return
|
|
330
|
+
return Z.cause(this);
|
|
331
331
|
}
|
|
332
332
|
toString() {
|
|
333
333
|
let t = this.name || this.constructor.name || this.constructor.prototype.name;
|
|
334
334
|
return this.message && (t = `${t}: ${this.message}`), t;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
const
|
|
337
|
+
const on = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Oe = 32, _t = 281474976710655, Qn = 10, er = 16, xe = Object.freeze({
|
|
338
338
|
source: "ulid"
|
|
339
339
|
});
|
|
340
|
-
function
|
|
341
|
-
const t = e ||
|
|
340
|
+
function tr(e) {
|
|
341
|
+
const t = e || nr(), n = t && (t.crypto || t.msCrypto) || null;
|
|
342
342
|
if (typeof (n == null ? void 0 : n.getRandomValues) == "function")
|
|
343
343
|
return () => {
|
|
344
344
|
const r = new Uint8Array(1);
|
|
@@ -346,85 +346,85 @@ function er(e) {
|
|
|
346
346
|
};
|
|
347
347
|
if (typeof (n == null ? void 0 : n.randomBytes) == "function")
|
|
348
348
|
return () => n.randomBytes(1).readUInt8() / 255;
|
|
349
|
-
throw new
|
|
349
|
+
throw new Z({
|
|
350
350
|
info: {
|
|
351
351
|
code: "PRNG_DETECT",
|
|
352
|
-
...
|
|
352
|
+
...xe
|
|
353
353
|
}
|
|
354
354
|
}, "Failed to find a reliable PRNG");
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
return
|
|
356
|
+
function nr() {
|
|
357
|
+
return or() ? self : typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : null;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function rr(e, t) {
|
|
360
360
|
let n = "";
|
|
361
361
|
for (; e > 0; e--)
|
|
362
|
-
n =
|
|
362
|
+
n = ir(t) + n;
|
|
363
363
|
return n;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function sr(e, t) {
|
|
366
366
|
if (isNaN(e))
|
|
367
|
-
throw new
|
|
367
|
+
throw new Z({
|
|
368
368
|
info: {
|
|
369
369
|
code: "ENC_TIME_NAN",
|
|
370
|
-
...
|
|
370
|
+
...xe
|
|
371
371
|
}
|
|
372
372
|
}, `Time must be a number: ${e}`);
|
|
373
|
-
if (e >
|
|
374
|
-
throw new
|
|
373
|
+
if (e > _t)
|
|
374
|
+
throw new Z({
|
|
375
375
|
info: {
|
|
376
376
|
code: "ENC_TIME_SIZE_EXCEED",
|
|
377
|
-
...
|
|
377
|
+
...xe
|
|
378
378
|
}
|
|
379
|
-
}, `Cannot encode a time larger than ${
|
|
379
|
+
}, `Cannot encode a time larger than ${_t}: ${e}`);
|
|
380
380
|
if (e < 0)
|
|
381
|
-
throw new
|
|
381
|
+
throw new Z({
|
|
382
382
|
info: {
|
|
383
383
|
code: "ENC_TIME_NEG",
|
|
384
|
-
...
|
|
384
|
+
...xe
|
|
385
385
|
}
|
|
386
386
|
}, `Time must be positive: ${e}`);
|
|
387
387
|
if (Number.isInteger(e) === !1)
|
|
388
|
-
throw new
|
|
388
|
+
throw new Z({
|
|
389
389
|
info: {
|
|
390
390
|
code: "ENC_TIME_TYPE",
|
|
391
|
-
...
|
|
391
|
+
...xe
|
|
392
392
|
}
|
|
393
393
|
}, `Time must be an integer: ${e}`);
|
|
394
394
|
let n, r = "";
|
|
395
395
|
for (let s = t; s > 0; s--)
|
|
396
|
-
n = e %
|
|
396
|
+
n = e % Oe, r = on.charAt(n) + r, e = (e - n) / Oe;
|
|
397
397
|
return r;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function or() {
|
|
400
400
|
return typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
let t = Math.floor(e() *
|
|
404
|
-
return t ===
|
|
402
|
+
function ir(e) {
|
|
403
|
+
let t = Math.floor(e() * Oe);
|
|
404
|
+
return t === Oe && (t = Oe - 1), on.charAt(t);
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
const n = t ||
|
|
408
|
-
return
|
|
406
|
+
function an(e, t) {
|
|
407
|
+
const n = t || tr(), r = isNaN(e) ? Date.now() : e;
|
|
408
|
+
return sr(r, Qn) + rr(er, n);
|
|
409
409
|
}
|
|
410
|
-
var
|
|
411
|
-
|
|
410
|
+
var dt = { exports: {} };
|
|
411
|
+
dt.exports;
|
|
412
412
|
(function(e) {
|
|
413
413
|
var t = function() {
|
|
414
414
|
var n = String.fromCharCode, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", o = {};
|
|
415
|
-
function i(
|
|
416
|
-
if (!o[
|
|
417
|
-
o[
|
|
418
|
-
for (var h = 0; h <
|
|
419
|
-
o[
|
|
415
|
+
function i(c, l) {
|
|
416
|
+
if (!o[c]) {
|
|
417
|
+
o[c] = {};
|
|
418
|
+
for (var h = 0; h < c.length; h++)
|
|
419
|
+
o[c][c.charAt(h)] = h;
|
|
420
420
|
}
|
|
421
|
-
return o[
|
|
421
|
+
return o[c][l];
|
|
422
422
|
}
|
|
423
423
|
var u = {
|
|
424
|
-
compressToBase64: function(
|
|
425
|
-
if (
|
|
424
|
+
compressToBase64: function(c) {
|
|
425
|
+
if (c == null)
|
|
426
426
|
return "";
|
|
427
|
-
var l = u._compress(
|
|
427
|
+
var l = u._compress(c, 6, function(h) {
|
|
428
428
|
return r.charAt(h);
|
|
429
429
|
});
|
|
430
430
|
switch (l.length % 4) {
|
|
@@ -439,163 +439,163 @@ ut.exports;
|
|
|
439
439
|
return l + "=";
|
|
440
440
|
}
|
|
441
441
|
},
|
|
442
|
-
decompressFromBase64: function(
|
|
443
|
-
return
|
|
444
|
-
return i(r,
|
|
442
|
+
decompressFromBase64: function(c) {
|
|
443
|
+
return c == null ? "" : c == "" ? null : u._decompress(c.length, 32, function(l) {
|
|
444
|
+
return i(r, c.charAt(l));
|
|
445
445
|
});
|
|
446
446
|
},
|
|
447
|
-
compressToUTF16: function(
|
|
448
|
-
return
|
|
447
|
+
compressToUTF16: function(c) {
|
|
448
|
+
return c == null ? "" : u._compress(c, 15, function(l) {
|
|
449
449
|
return n(l + 32);
|
|
450
450
|
}) + " ";
|
|
451
451
|
},
|
|
452
|
-
decompressFromUTF16: function(
|
|
453
|
-
return
|
|
454
|
-
return
|
|
452
|
+
decompressFromUTF16: function(c) {
|
|
453
|
+
return c == null ? "" : c == "" ? null : u._decompress(c.length, 16384, function(l) {
|
|
454
|
+
return c.charCodeAt(l) - 32;
|
|
455
455
|
});
|
|
456
456
|
},
|
|
457
457
|
//compress into uint8array (UCS-2 big endian format)
|
|
458
|
-
compressToUint8Array: function(
|
|
459
|
-
for (var l = u.compress(
|
|
460
|
-
var
|
|
461
|
-
h[f * 2] =
|
|
458
|
+
compressToUint8Array: function(c) {
|
|
459
|
+
for (var l = u.compress(c), h = new Uint8Array(l.length * 2), f = 0, d = l.length; f < d; f++) {
|
|
460
|
+
var w = l.charCodeAt(f);
|
|
461
|
+
h[f * 2] = w >>> 8, h[f * 2 + 1] = w % 256;
|
|
462
462
|
}
|
|
463
463
|
return h;
|
|
464
464
|
},
|
|
465
465
|
//decompress from uint8array (UCS-2 big endian format)
|
|
466
|
-
decompressFromUint8Array: function(
|
|
467
|
-
if (
|
|
468
|
-
return u.decompress(
|
|
469
|
-
for (var l = new Array(
|
|
470
|
-
l[h] =
|
|
466
|
+
decompressFromUint8Array: function(c) {
|
|
467
|
+
if (c == null)
|
|
468
|
+
return u.decompress(c);
|
|
469
|
+
for (var l = new Array(c.length / 2), h = 0, f = l.length; h < f; h++)
|
|
470
|
+
l[h] = c[h * 2] * 256 + c[h * 2 + 1];
|
|
471
471
|
var d = [];
|
|
472
|
-
return l.forEach(function(
|
|
473
|
-
d.push(n(
|
|
472
|
+
return l.forEach(function(w) {
|
|
473
|
+
d.push(n(w));
|
|
474
474
|
}), u.decompress(d.join(""));
|
|
475
475
|
},
|
|
476
476
|
//compress into a string that is already URI encoded
|
|
477
|
-
compressToEncodedURIComponent: function(
|
|
478
|
-
return
|
|
477
|
+
compressToEncodedURIComponent: function(c) {
|
|
478
|
+
return c == null ? "" : u._compress(c, 6, function(l) {
|
|
479
479
|
return s.charAt(l);
|
|
480
480
|
});
|
|
481
481
|
},
|
|
482
482
|
//decompress from an output of compressToEncodedURIComponent
|
|
483
|
-
decompressFromEncodedURIComponent: function(
|
|
484
|
-
return
|
|
485
|
-
return i(s,
|
|
483
|
+
decompressFromEncodedURIComponent: function(c) {
|
|
484
|
+
return c == null ? "" : c == "" ? null : (c = c.replace(/ /g, "+"), u._decompress(c.length, 32, function(l) {
|
|
485
|
+
return i(s, c.charAt(l));
|
|
486
486
|
}));
|
|
487
487
|
},
|
|
488
|
-
compress: function(
|
|
489
|
-
return u._compress(
|
|
488
|
+
compress: function(c) {
|
|
489
|
+
return u._compress(c, 16, function(l) {
|
|
490
490
|
return n(l);
|
|
491
491
|
});
|
|
492
492
|
},
|
|
493
|
-
_compress: function(
|
|
494
|
-
if (
|
|
493
|
+
_compress: function(c, l, h) {
|
|
494
|
+
if (c == null)
|
|
495
495
|
return "";
|
|
496
|
-
var f, d,
|
|
497
|
-
for (
|
|
498
|
-
if (B =
|
|
496
|
+
var f, d, w = {}, S = {}, B = "", I = "", T = "", _ = 2, k = 3, m = 2, O = [], a = 0, b = 0, y;
|
|
497
|
+
for (y = 0; y < c.length; y += 1)
|
|
498
|
+
if (B = c.charAt(y), Object.prototype.hasOwnProperty.call(w, B) || (w[B] = k++, S[B] = !0), I = T + B, Object.prototype.hasOwnProperty.call(w, I))
|
|
499
499
|
T = I;
|
|
500
500
|
else {
|
|
501
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
501
|
+
if (Object.prototype.hasOwnProperty.call(S, T)) {
|
|
502
502
|
if (T.charCodeAt(0) < 256) {
|
|
503
|
-
for (f = 0; f <
|
|
504
|
-
|
|
503
|
+
for (f = 0; f < m; f++)
|
|
504
|
+
a = a << 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++;
|
|
505
505
|
for (d = T.charCodeAt(0), f = 0; f < 8; f++)
|
|
506
|
-
|
|
506
|
+
a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
|
|
507
507
|
} else {
|
|
508
|
-
for (d = 1, f = 0; f <
|
|
509
|
-
|
|
508
|
+
for (d = 1, f = 0; f < m; f++)
|
|
509
|
+
a = a << 1 | d, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = 0;
|
|
510
510
|
for (d = T.charCodeAt(0), f = 0; f < 16; f++)
|
|
511
|
-
|
|
511
|
+
a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
|
|
512
512
|
}
|
|
513
|
-
|
|
513
|
+
_--, _ == 0 && (_ = Math.pow(2, m), m++), delete S[T];
|
|
514
514
|
} else
|
|
515
|
-
for (d =
|
|
516
|
-
|
|
517
|
-
|
|
515
|
+
for (d = w[T], f = 0; f < m; f++)
|
|
516
|
+
a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
|
|
517
|
+
_--, _ == 0 && (_ = Math.pow(2, m), m++), w[I] = k++, T = String(B);
|
|
518
518
|
}
|
|
519
519
|
if (T !== "") {
|
|
520
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
520
|
+
if (Object.prototype.hasOwnProperty.call(S, T)) {
|
|
521
521
|
if (T.charCodeAt(0) < 256) {
|
|
522
|
-
for (f = 0; f <
|
|
523
|
-
|
|
522
|
+
for (f = 0; f < m; f++)
|
|
523
|
+
a = a << 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++;
|
|
524
524
|
for (d = T.charCodeAt(0), f = 0; f < 8; f++)
|
|
525
|
-
|
|
525
|
+
a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
|
|
526
526
|
} else {
|
|
527
|
-
for (d = 1, f = 0; f <
|
|
528
|
-
|
|
527
|
+
for (d = 1, f = 0; f < m; f++)
|
|
528
|
+
a = a << 1 | d, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = 0;
|
|
529
529
|
for (d = T.charCodeAt(0), f = 0; f < 16; f++)
|
|
530
|
-
|
|
530
|
+
a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
|
|
531
531
|
}
|
|
532
|
-
|
|
532
|
+
_--, _ == 0 && (_ = Math.pow(2, m), m++), delete S[T];
|
|
533
533
|
} else
|
|
534
|
-
for (d =
|
|
535
|
-
|
|
536
|
-
|
|
534
|
+
for (d = w[T], f = 0; f < m; f++)
|
|
535
|
+
a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
|
|
536
|
+
_--, _ == 0 && (_ = Math.pow(2, m), m++);
|
|
537
537
|
}
|
|
538
|
-
for (d = 2, f = 0; f <
|
|
539
|
-
|
|
538
|
+
for (d = 2, f = 0; f < m; f++)
|
|
539
|
+
a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
|
|
540
540
|
for (; ; )
|
|
541
|
-
if (
|
|
542
|
-
|
|
541
|
+
if (a = a << 1, b == l - 1) {
|
|
542
|
+
O.push(h(a));
|
|
543
543
|
break;
|
|
544
544
|
} else
|
|
545
|
-
|
|
546
|
-
return
|
|
545
|
+
b++;
|
|
546
|
+
return O.join("");
|
|
547
547
|
},
|
|
548
|
-
decompress: function(
|
|
549
|
-
return
|
|
550
|
-
return
|
|
548
|
+
decompress: function(c) {
|
|
549
|
+
return c == null ? "" : c == "" ? null : u._decompress(c.length, 32768, function(l) {
|
|
550
|
+
return c.charCodeAt(l);
|
|
551
551
|
});
|
|
552
552
|
},
|
|
553
|
-
_decompress: function(
|
|
554
|
-
var f = [], d = 4,
|
|
553
|
+
_decompress: function(c, l, h) {
|
|
554
|
+
var f = [], d = 4, w = 4, S = 3, B = "", I = [], T, _, k, m, O, a, b, y = { val: h(0), position: l, index: 1 };
|
|
555
555
|
for (T = 0; T < 3; T += 1)
|
|
556
556
|
f[T] = T;
|
|
557
|
-
for (
|
|
558
|
-
|
|
559
|
-
switch (
|
|
557
|
+
for (k = 0, O = Math.pow(2, 2), a = 1; a != O; )
|
|
558
|
+
m = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = l, y.val = h(y.index++)), k |= (m > 0 ? 1 : 0) * a, a <<= 1;
|
|
559
|
+
switch (k) {
|
|
560
560
|
case 0:
|
|
561
|
-
for (
|
|
562
|
-
|
|
563
|
-
|
|
561
|
+
for (k = 0, O = Math.pow(2, 8), a = 1; a != O; )
|
|
562
|
+
m = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = l, y.val = h(y.index++)), k |= (m > 0 ? 1 : 0) * a, a <<= 1;
|
|
563
|
+
b = n(k);
|
|
564
564
|
break;
|
|
565
565
|
case 1:
|
|
566
|
-
for (
|
|
567
|
-
|
|
568
|
-
|
|
566
|
+
for (k = 0, O = Math.pow(2, 16), a = 1; a != O; )
|
|
567
|
+
m = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = l, y.val = h(y.index++)), k |= (m > 0 ? 1 : 0) * a, a <<= 1;
|
|
568
|
+
b = n(k);
|
|
569
569
|
break;
|
|
570
570
|
case 2:
|
|
571
571
|
return "";
|
|
572
572
|
}
|
|
573
|
-
for (f[3] =
|
|
574
|
-
if (
|
|
573
|
+
for (f[3] = b, _ = b, I.push(b); ; ) {
|
|
574
|
+
if (y.index > c)
|
|
575
575
|
return "";
|
|
576
|
-
for (
|
|
577
|
-
|
|
578
|
-
switch (
|
|
576
|
+
for (k = 0, O = Math.pow(2, S), a = 1; a != O; )
|
|
577
|
+
m = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = l, y.val = h(y.index++)), k |= (m > 0 ? 1 : 0) * a, a <<= 1;
|
|
578
|
+
switch (b = k) {
|
|
579
579
|
case 0:
|
|
580
|
-
for (
|
|
581
|
-
|
|
582
|
-
f[
|
|
580
|
+
for (k = 0, O = Math.pow(2, 8), a = 1; a != O; )
|
|
581
|
+
m = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = l, y.val = h(y.index++)), k |= (m > 0 ? 1 : 0) * a, a <<= 1;
|
|
582
|
+
f[w++] = n(k), b = w - 1, d--;
|
|
583
583
|
break;
|
|
584
584
|
case 1:
|
|
585
|
-
for (
|
|
586
|
-
|
|
587
|
-
f[
|
|
585
|
+
for (k = 0, O = Math.pow(2, 16), a = 1; a != O; )
|
|
586
|
+
m = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = l, y.val = h(y.index++)), k |= (m > 0 ? 1 : 0) * a, a <<= 1;
|
|
587
|
+
f[w++] = n(k), b = w - 1, d--;
|
|
588
588
|
break;
|
|
589
589
|
case 2:
|
|
590
590
|
return I.join("");
|
|
591
591
|
}
|
|
592
|
-
if (d == 0 && (d = Math.pow(2,
|
|
593
|
-
B = f[
|
|
594
|
-
else if (
|
|
595
|
-
B =
|
|
592
|
+
if (d == 0 && (d = Math.pow(2, S), S++), f[b])
|
|
593
|
+
B = f[b];
|
|
594
|
+
else if (b === w)
|
|
595
|
+
B = _ + _.charAt(0);
|
|
596
596
|
else
|
|
597
597
|
return null;
|
|
598
|
-
I.push(B), f[
|
|
598
|
+
I.push(B), f[w++] = _ + B.charAt(0), d--, _ = B, d == 0 && (d = Math.pow(2, S), S++);
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
};
|
|
@@ -604,102 +604,102 @@ ut.exports;
|
|
|
604
604
|
e != null ? e.exports = t : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
|
|
605
605
|
return t;
|
|
606
606
|
});
|
|
607
|
-
})(
|
|
608
|
-
var
|
|
609
|
-
const
|
|
607
|
+
})(dt);
|
|
608
|
+
var cn = dt.exports;
|
|
609
|
+
const ar = new TextEncoder(), cr = new TextDecoder("utf-8", { ignoreBOM: !0 }), Tt = {
|
|
610
610
|
/* API */
|
|
611
|
-
encode: (e) =>
|
|
612
|
-
decode: (e) =>
|
|
613
|
-
},
|
|
611
|
+
encode: (e) => ar.encode(e),
|
|
612
|
+
decode: (e) => cr.decode(e)
|
|
613
|
+
}, ln = (() => {
|
|
614
614
|
const t = [..."0123456789abcdef"], n = new Array(256);
|
|
615
615
|
for (let r = 0; r < 256; r++)
|
|
616
616
|
n[r] = `${t[r >>> 4 & 15]}${t[r & 15]}`;
|
|
617
617
|
return n;
|
|
618
|
-
})(),
|
|
618
|
+
})(), lr = (() => {
|
|
619
619
|
const e = {};
|
|
620
620
|
for (let t = 0; t < 256; t++) {
|
|
621
|
-
const n =
|
|
621
|
+
const n = ln[t], r = n[0], s = r.toUpperCase(), o = n[1], i = o.toUpperCase();
|
|
622
622
|
e[n] = t, e[`${r}${i}`] = t, e[`${s}${o}`] = t, e[`${s}${i}`] = t;
|
|
623
623
|
}
|
|
624
624
|
return e;
|
|
625
|
-
})(),
|
|
625
|
+
})(), ur = (e) => !(e.length % 2 || !/^[a-fA-F0-9]*$/.test(e)), nt = {
|
|
626
626
|
/* API */
|
|
627
627
|
encode: (e) => {
|
|
628
628
|
let t = "";
|
|
629
629
|
for (let n = 0, r = e.length; n < r; n++)
|
|
630
|
-
t +=
|
|
630
|
+
t += ln[e[n]];
|
|
631
631
|
return t;
|
|
632
632
|
},
|
|
633
|
-
encodeStr: (e) =>
|
|
633
|
+
encodeStr: (e) => nt.encode(Tt.encode(e)),
|
|
634
634
|
decode: (e) => {
|
|
635
635
|
const t = e.length / 2, n = new Uint8Array(t);
|
|
636
636
|
for (let r = 0; r < t; r++)
|
|
637
|
-
n[r] =
|
|
637
|
+
n[r] = lr[e.slice(r * 2, r * 2 + 2)];
|
|
638
638
|
return n;
|
|
639
639
|
},
|
|
640
|
-
decodeStr: (e) =>
|
|
641
|
-
is:
|
|
640
|
+
decodeStr: (e) => Tt.decode(nt.decode(e)),
|
|
641
|
+
is: ur
|
|
642
642
|
};
|
|
643
|
-
function
|
|
643
|
+
function Ee(e) {
|
|
644
644
|
if (!Number.isSafeInteger(e) || e < 0)
|
|
645
645
|
throw new Error(`Wrong positive integer: ${e}`);
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function fr(e) {
|
|
648
648
|
return e instanceof Uint8Array || e != null && typeof e == "object" && e.constructor.name === "Uint8Array";
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
if (!
|
|
650
|
+
function un(e, ...t) {
|
|
651
|
+
if (!fr(e))
|
|
652
652
|
throw new Error("Expected Uint8Array");
|
|
653
653
|
if (t.length > 0 && !t.includes(e.length))
|
|
654
654
|
throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`);
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function rt(e, t = !0) {
|
|
657
657
|
if (e.destroyed)
|
|
658
658
|
throw new Error("Hash instance has been destroyed");
|
|
659
659
|
if (t && e.finished)
|
|
660
660
|
throw new Error("Hash#digest() has already been called");
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
|
|
662
|
+
function fn(e, t) {
|
|
663
|
+
un(e);
|
|
664
664
|
const n = t.outputLen;
|
|
665
665
|
if (e.length < n)
|
|
666
666
|
throw new Error(`digestInto() expects output buffer of length at least ${n}`);
|
|
667
667
|
}
|
|
668
|
-
const
|
|
669
|
-
function
|
|
670
|
-
return t ? { h: Number(e &
|
|
668
|
+
const ze = /* @__PURE__ */ BigInt(2 ** 32 - 1), xt = /* @__PURE__ */ BigInt(32);
|
|
669
|
+
function St(e, t = !1) {
|
|
670
|
+
return t ? { h: Number(e & ze), l: Number(e >> xt & ze) } : { h: Number(e >> xt & ze) | 0, l: Number(e & ze) | 0 };
|
|
671
671
|
}
|
|
672
672
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
673
|
-
const
|
|
674
|
-
function
|
|
673
|
+
const dr = (e) => new Uint8Array(e.buffer, e.byteOffset, e.byteLength), We = (e) => new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
|
|
674
|
+
function hr(e) {
|
|
675
675
|
return e instanceof Uint8Array || e != null && typeof e == "object" && e.constructor.name === "Uint8Array";
|
|
676
676
|
}
|
|
677
|
-
const
|
|
678
|
-
if (!
|
|
677
|
+
const Ue = (e, t) => e << 32 - t | e >>> t, pr = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
678
|
+
if (!pr)
|
|
679
679
|
throw new Error("Non little-endian hardware is not supported");
|
|
680
|
-
function
|
|
680
|
+
function br(e) {
|
|
681
681
|
if (typeof e != "string")
|
|
682
682
|
throw new Error(`utf8ToBytes expected string, got ${typeof e}`);
|
|
683
683
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
if (typeof e == "string" && (e =
|
|
685
|
+
function ht(e) {
|
|
686
|
+
if (typeof e == "string" && (e = br(e)), !hr(e))
|
|
687
687
|
throw new Error(`expected Uint8Array, got ${typeof e}`);
|
|
688
688
|
return e;
|
|
689
689
|
}
|
|
690
|
-
class
|
|
690
|
+
class vr {
|
|
691
691
|
// Safe version that clones internal state
|
|
692
692
|
clone() {
|
|
693
693
|
return this._cloneInto();
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
const t = (r, s) => e(s).update(
|
|
696
|
+
function mr(e) {
|
|
697
|
+
const t = (r, s) => e(s).update(ht(r)).digest(), n = e({});
|
|
698
698
|
return t.outputLen = n.outputLen, t.blockLen = n.blockLen, t.create = (r) => e(r), t;
|
|
699
699
|
}
|
|
700
|
-
class
|
|
700
|
+
class gr extends vr {
|
|
701
701
|
constructor(t, n, r = {}, s, o, i) {
|
|
702
|
-
if (super(), this.blockLen = t, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1,
|
|
702
|
+
if (super(), this.blockLen = t, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1, Ee(t), Ee(n), Ee(s), n < 0 || n > s)
|
|
703
703
|
throw new Error("outputLen bigger than keyLen");
|
|
704
704
|
if (r.key !== void 0 && (r.key.length < 1 || r.key.length > s))
|
|
705
705
|
throw new Error(`key must be up 1..${s} byte long or undefined`);
|
|
@@ -707,31 +707,31 @@ class mr extends br {
|
|
|
707
707
|
throw new Error(`salt must be ${o} byte long or undefined`);
|
|
708
708
|
if (r.personalization !== void 0 && r.personalization.length !== i)
|
|
709
709
|
throw new Error(`personalization must be ${i} byte long or undefined`);
|
|
710
|
-
this.buffer32 =
|
|
710
|
+
this.buffer32 = We(this.buffer = new Uint8Array(t));
|
|
711
711
|
}
|
|
712
712
|
update(t) {
|
|
713
|
-
|
|
713
|
+
rt(this);
|
|
714
714
|
const { blockLen: n, buffer: r, buffer32: s } = this;
|
|
715
|
-
t =
|
|
715
|
+
t = ht(t);
|
|
716
716
|
const o = t.length, i = t.byteOffset, u = t.buffer;
|
|
717
|
-
for (let
|
|
717
|
+
for (let c = 0; c < o; ) {
|
|
718
718
|
this.pos === n && (this.compress(s, 0, !1), this.pos = 0);
|
|
719
|
-
const l = Math.min(n - this.pos, o -
|
|
720
|
-
if (l === n && !(h % 4) &&
|
|
721
|
-
const f = new Uint32Array(u, h, Math.floor((o -
|
|
722
|
-
for (let d = 0;
|
|
719
|
+
const l = Math.min(n - this.pos, o - c), h = i + c;
|
|
720
|
+
if (l === n && !(h % 4) && c + l < o) {
|
|
721
|
+
const f = new Uint32Array(u, h, Math.floor((o - c) / 4));
|
|
722
|
+
for (let d = 0; c + n < o; d += s.length, c += n)
|
|
723
723
|
this.length += n, this.compress(f, d, !1);
|
|
724
724
|
continue;
|
|
725
725
|
}
|
|
726
|
-
r.set(t.subarray(
|
|
726
|
+
r.set(t.subarray(c, c + l), this.pos), this.pos += l, this.length += l, c += l;
|
|
727
727
|
}
|
|
728
728
|
return this;
|
|
729
729
|
}
|
|
730
730
|
digestInto(t) {
|
|
731
|
-
|
|
731
|
+
rt(this), fn(t, this);
|
|
732
732
|
const { pos: n, buffer32: r } = this;
|
|
733
733
|
this.finished = !0, this.buffer.subarray(n).fill(0), this.compress(r, 0, !0);
|
|
734
|
-
const s =
|
|
734
|
+
const s = We(t);
|
|
735
735
|
this.get().forEach((o, i) => s[i] = o);
|
|
736
736
|
}
|
|
737
737
|
digest() {
|
|
@@ -745,44 +745,44 @@ class mr extends br {
|
|
|
745
745
|
return t || (t = new this.constructor({ dkLen: i })), t.set(...this.get()), t.length = r, t.finished = s, t.destroyed = o, t.outputLen = i, t.buffer.set(n), t.pos = u, t;
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
|
-
const
|
|
749
|
-
function ne(e, t, n, r, s) {
|
|
750
|
-
return e = e + t + s | 0, r = je(r ^ e, 16), n = n + r | 0, t = je(t ^ n, 12), { a: e, b: t, c: n, d: r };
|
|
751
|
-
}
|
|
748
|
+
const ee = /* @__PURE__ */ new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]);
|
|
752
749
|
function re(e, t, n, r, s) {
|
|
753
|
-
return e = e + t + s | 0, r =
|
|
750
|
+
return e = e + t + s | 0, r = Ue(r ^ e, 16), n = n + r | 0, t = Ue(t ^ n, 12), { a: e, b: t, c: n, d: r };
|
|
751
|
+
}
|
|
752
|
+
function se(e, t, n, r, s) {
|
|
753
|
+
return e = e + t + s | 0, r = Ue(r ^ e, 8), n = n + r | 0, t = Ue(t ^ n, 7), { a: e, b: t, c: n, d: r };
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
let
|
|
757
|
-
for (let
|
|
758
|
-
({ a: s, b:
|
|
759
|
-
return { v0: s, v1: o, v2: i, v3: u, v4:
|
|
755
|
+
function Ot(e, t, n, r, s, o, i, u, c, l, h, f, d, w, S, B, I, T, _, k) {
|
|
756
|
+
let m = 0;
|
|
757
|
+
for (let O = 0; O < r; O++)
|
|
758
|
+
({ a: s, b: c, c: d, d: I } = re(s, c, d, I, n[t + e[m++]])), { a: s, b: c, c: d, d: I } = se(s, c, d, I, n[t + e[m++]]), { a: o, b: l, c: w, d: T } = re(o, l, w, T, n[t + e[m++]]), { a: o, b: l, c: w, d: T } = se(o, l, w, T, n[t + e[m++]]), { a: i, b: h, c: S, d: _ } = re(i, h, S, _, n[t + e[m++]]), { a: i, b: h, c: S, d: _ } = se(i, h, S, _, n[t + e[m++]]), { a: u, b: f, c: B, d: k } = re(u, f, B, k, n[t + e[m++]]), { a: u, b: f, c: B, d: k } = se(u, f, B, k, n[t + e[m++]]), { a: s, b: l, c: S, d: k } = re(s, l, S, k, n[t + e[m++]]), { a: s, b: l, c: S, d: k } = se(s, l, S, k, n[t + e[m++]]), { a: o, b: h, c: B, d: I } = re(o, h, B, I, n[t + e[m++]]), { a: o, b: h, c: B, d: I } = se(o, h, B, I, n[t + e[m++]]), { a: i, b: f, c: d, d: T } = re(i, f, d, T, n[t + e[m++]]), { a: i, b: f, c: d, d: T } = se(i, f, d, T, n[t + e[m++]]), { a: u, b: c, c: w, d: _ } = re(u, c, w, _, n[t + e[m++]]), { a: u, b: c, c: w, d: _ } = se(u, c, w, _, n[t + e[m++]]);
|
|
759
|
+
return { v0: s, v1: o, v2: i, v3: u, v4: c, v5: l, v6: h, v7: f, v8: d, v9: w, v10: S, v11: B, v12: I, v13: T, v14: _, v15: k };
|
|
760
760
|
}
|
|
761
|
-
const
|
|
761
|
+
const Et = /* @__PURE__ */ (() => {
|
|
762
762
|
const e = Array.from({ length: 16 }, (r, s) => s), t = (r) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((s) => r[s]), n = [];
|
|
763
763
|
for (let r = 0, s = e; r < 7; r++, s = t(s))
|
|
764
764
|
n.push(...s);
|
|
765
765
|
return Uint8Array.from(n);
|
|
766
766
|
})();
|
|
767
|
-
class
|
|
767
|
+
class pt extends gr {
|
|
768
768
|
constructor(t = {}, n = 0) {
|
|
769
|
-
if (super(64, t.dkLen === void 0 ? 32 : t.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 = t.dkLen === void 0 ? 32 : t.dkLen,
|
|
769
|
+
if (super(64, t.dkLen === void 0 ? 32 : t.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 = t.dkLen === void 0 ? 32 : t.dkLen, Ee(this.outputLen), t.key !== void 0 && t.context !== void 0)
|
|
770
770
|
throw new Error("Blake3: only key or context can be specified at same time");
|
|
771
771
|
if (t.key !== void 0) {
|
|
772
|
-
const r =
|
|
772
|
+
const r = ht(t.key).slice();
|
|
773
773
|
if (r.length !== 32)
|
|
774
774
|
throw new Error("Blake3: key should be 32 byte");
|
|
775
|
-
this.IV =
|
|
775
|
+
this.IV = We(r), this.flags = n | 16;
|
|
776
776
|
} else if (t.context !== void 0) {
|
|
777
|
-
const r = new
|
|
777
|
+
const r = new pt(
|
|
778
778
|
{ dkLen: 32 },
|
|
779
779
|
32
|
|
780
780
|
/* Flags.DERIVE_KEY_CONTEXT */
|
|
781
781
|
).update(t.context).digest();
|
|
782
|
-
this.IV =
|
|
782
|
+
this.IV = We(r), this.flags = n | 64;
|
|
783
783
|
} else
|
|
784
|
-
this.IV =
|
|
785
|
-
this.state = this.IV.slice(), this.bufferOut =
|
|
784
|
+
this.IV = ee.slice(), this.flags = n;
|
|
785
|
+
this.state = this.IV.slice(), this.bufferOut = dr(this.bufferOut32);
|
|
786
786
|
}
|
|
787
787
|
// Unused
|
|
788
788
|
get() {
|
|
@@ -791,8 +791,8 @@ class dt extends mr {
|
|
|
791
791
|
set() {
|
|
792
792
|
}
|
|
793
793
|
b2Compress(t, n, r, s = 0) {
|
|
794
|
-
const { state: o, pos: i } = this, { h: u, l:
|
|
795
|
-
o[0] = l ^ T, o[1] = h ^
|
|
794
|
+
const { state: o, pos: i } = this, { h: u, l: c } = St(BigInt(t), !0), { v0: l, v1: h, v2: f, v3: d, v4: w, v5: S, v6: B, v7: I, v8: T, v9: _, v10: k, v11: m, v12: O, v13: a, v14: b, v15: y } = Ot(Et, s, r, 7, o[0], o[1], o[2], o[3], o[4], o[5], o[6], o[7], ee[0], ee[1], ee[2], ee[3], u, c, i, n);
|
|
795
|
+
o[0] = l ^ T, o[1] = h ^ _, o[2] = f ^ k, o[3] = d ^ m, o[4] = w ^ O, o[5] = S ^ a, o[6] = B ^ b, o[7] = I ^ y;
|
|
796
796
|
}
|
|
797
797
|
compress(t, n = 0, r = !1) {
|
|
798
798
|
let s = this.flags;
|
|
@@ -807,8 +807,8 @@ class dt extends mr {
|
|
|
807
807
|
}
|
|
808
808
|
_cloneInto(t) {
|
|
809
809
|
t = super._cloneInto(t);
|
|
810
|
-
const { IV: n, flags: r, state: s, chunkPos: o, posOut: i, chunkOut: u, stack:
|
|
811
|
-
return t.state.set(s.slice()), t.stack =
|
|
810
|
+
const { IV: n, flags: r, state: s, chunkPos: o, posOut: i, chunkOut: u, stack: c, chunksDone: l } = this;
|
|
811
|
+
return t.state.set(s.slice()), t.stack = c.map((h) => Uint32Array.from(h)), t.IV.set(n), t.flags = r, t.chunkPos = o, t.chunksDone = l, t.posOut = i, t.chunkOut = u, t.enableXOF = this.enableXOF, t.bufferOut32.set(this.bufferOut32), t;
|
|
812
812
|
}
|
|
813
813
|
destroy() {
|
|
814
814
|
this.destroyed = !0, this.state.fill(0), this.buffer32.fill(0), this.IV.fill(0), this.bufferOut32.fill(0);
|
|
@@ -817,8 +817,8 @@ class dt extends mr {
|
|
|
817
817
|
}
|
|
818
818
|
// Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8)
|
|
819
819
|
b2CompressOut() {
|
|
820
|
-
const { state: t, pos: n, flags: r, buffer32: s, bufferOut32: o } = this, { h: i, l: u } =
|
|
821
|
-
o[0] =
|
|
820
|
+
const { state: t, pos: n, flags: r, buffer32: s, bufferOut32: o } = this, { h: i, l: u } = St(BigInt(this.chunkOut++)), { v0: c, v1: l, v2: h, v3: f, v4: d, v5: w, v6: S, v7: B, v8: I, v9: T, v10: _, v11: k, v12: m, v13: O, v14: a, v15: b } = Ot(Et, 0, s, 7, t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], ee[0], ee[1], ee[2], ee[3], u, i, n, r);
|
|
821
|
+
o[0] = c ^ I, o[1] = l ^ T, o[2] = h ^ _, o[3] = f ^ k, o[4] = d ^ m, o[5] = w ^ O, o[6] = S ^ a, o[7] = B ^ b, o[8] = t[0] ^ I, o[9] = t[1] ^ T, o[10] = t[2] ^ _, o[11] = t[3] ^ k, o[12] = t[4] ^ m, o[13] = t[5] ^ O, o[14] = t[6] ^ a, o[15] = t[7] ^ b, this.posOut = 0;
|
|
822
822
|
}
|
|
823
823
|
finish() {
|
|
824
824
|
if (this.finished)
|
|
@@ -828,7 +828,7 @@ class dt extends mr {
|
|
|
828
828
|
this.stack.length ? (t |= 4, this.compress(this.buffer32, 0, !0), this.chunksDone = 0, this.pos = this.blockLen) : t |= (this.chunkPos ? 0 : 1) | 2, this.flags = t, this.b2CompressOut();
|
|
829
829
|
}
|
|
830
830
|
writeInto(t) {
|
|
831
|
-
|
|
831
|
+
rt(this, !1), un(t), this.finish();
|
|
832
832
|
const { blockLen: n, bufferOut: r } = this;
|
|
833
833
|
for (let s = 0, o = t.length; s < o; ) {
|
|
834
834
|
this.posOut >= n && this.b2CompressOut();
|
|
@@ -843,10 +843,10 @@ class dt extends mr {
|
|
|
843
843
|
return this.writeInto(t);
|
|
844
844
|
}
|
|
845
845
|
xof(t) {
|
|
846
|
-
return
|
|
846
|
+
return Ee(t), this.xofInto(new Uint8Array(t));
|
|
847
847
|
}
|
|
848
848
|
digestInto(t) {
|
|
849
|
-
if (
|
|
849
|
+
if (fn(t, this), this.finished)
|
|
850
850
|
throw new Error("digest() was already called");
|
|
851
851
|
return this.enableXOF = !1, this.writeInto(t), this.destroy(), t;
|
|
852
852
|
}
|
|
@@ -854,11 +854,11 @@ class dt extends mr {
|
|
|
854
854
|
return this.digestInto(new Uint8Array(this.outputLen));
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
const
|
|
857
|
+
const yr = /* @__PURE__ */ mr((e) => new pt(e)), dn = (e) => {
|
|
858
858
|
const t = `${e.id}|${e.title}|${e.iframe ? "Y" : "N"}|${e.closable ? "Y" : "N"}|${e.refreshable ? "Y" : "N"}`;
|
|
859
|
-
return
|
|
860
|
-
},
|
|
861
|
-
const n =
|
|
859
|
+
return cn.compressToEncodedURIComponent(t);
|
|
860
|
+
}, wr = (e) => {
|
|
861
|
+
const n = cn.decompressFromEncodedURIComponent(e).split("|");
|
|
862
862
|
return {
|
|
863
863
|
id: n[0],
|
|
864
864
|
title: n[1],
|
|
@@ -866,7 +866,7 @@ const gr = /* @__PURE__ */ vr((e) => new dt(e)), fn = (e) => {
|
|
|
866
866
|
closable: n[3] === "Y",
|
|
867
867
|
refreshable: n[4] === "Y"
|
|
868
868
|
};
|
|
869
|
-
},
|
|
869
|
+
}, At = (e, t, n) => {
|
|
870
870
|
const r = [];
|
|
871
871
|
for (const o in n)
|
|
872
872
|
o.startsWith("__") || r.push({
|
|
@@ -877,24 +877,24 @@ const gr = /* @__PURE__ */ vr((e) => new dt(e)), fn = (e) => {
|
|
|
877
877
|
let u = 0;
|
|
878
878
|
return o.key > i.key ? u = 1 : o.key < i.key && (u = -1), u;
|
|
879
879
|
});
|
|
880
|
-
const s =
|
|
881
|
-
return
|
|
880
|
+
const s = yr(`${e}|${t}|${JSON.stringify(r)}`);
|
|
881
|
+
return nt.encode(s);
|
|
882
882
|
};
|
|
883
|
-
function
|
|
883
|
+
function Ke(e) {
|
|
884
884
|
if (e === null || typeof e != "object")
|
|
885
885
|
return !1;
|
|
886
886
|
const t = Object.getPrototypeOf(e);
|
|
887
887
|
return t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null || Symbol.iterator in e ? !1 : Symbol.toStringTag in e ? Object.prototype.toString.call(e) === "[object Module]" : !0;
|
|
888
888
|
}
|
|
889
|
-
function
|
|
890
|
-
if (!
|
|
891
|
-
return
|
|
889
|
+
function st(e, t, n = ".", r) {
|
|
890
|
+
if (!Ke(t))
|
|
891
|
+
return st(e, {}, n, r);
|
|
892
892
|
const s = Object.assign({}, t);
|
|
893
893
|
for (const o in e) {
|
|
894
894
|
if (o === "__proto__" || o === "constructor")
|
|
895
895
|
continue;
|
|
896
896
|
const i = e[o];
|
|
897
|
-
i != null && (r && r(s, o, i, n) || (Array.isArray(i) && Array.isArray(s[o]) ? s[o] = [...i, ...s[o]] :
|
|
897
|
+
i != null && (r && r(s, o, i, n) || (Array.isArray(i) && Array.isArray(s[o]) ? s[o] = [...i, ...s[o]] : Ke(i) && Ke(s[o]) ? s[o] = st(
|
|
898
898
|
i,
|
|
899
899
|
s[o],
|
|
900
900
|
(n ? `${n}.` : "") + o.toString(),
|
|
@@ -906,10 +906,10 @@ function nt(e, t, n = ".", r) {
|
|
|
906
906
|
function kr(e) {
|
|
907
907
|
return (...t) => (
|
|
908
908
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
909
|
-
t.reduce((n, r) =>
|
|
909
|
+
t.reduce((n, r) => st(n, r, "", e), {})
|
|
910
910
|
);
|
|
911
911
|
}
|
|
912
|
-
const
|
|
912
|
+
const te = kr(), bt = (e) => {
|
|
913
913
|
const t = e.split("?");
|
|
914
914
|
if (t.length <= 1)
|
|
915
915
|
return {
|
|
@@ -928,7 +928,7 @@ const ee = kr(), ht = (e) => {
|
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
930
|
};
|
|
931
|
-
function
|
|
931
|
+
function _r(e) {
|
|
932
932
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
|
|
933
933
|
var r = e.get(t);
|
|
934
934
|
r ? r.push(n) : e.set(t, [n]);
|
|
@@ -944,385 +944,401 @@ function wr(e) {
|
|
|
944
944
|
});
|
|
945
945
|
} };
|
|
946
946
|
}
|
|
947
|
-
const
|
|
947
|
+
const Tr = _r(), xr = {
|
|
948
948
|
install(e) {
|
|
949
|
-
e.provide("tabEmitter",
|
|
949
|
+
e.provide("tabEmitter", Tr);
|
|
950
950
|
}
|
|
951
|
-
},
|
|
952
|
-
var
|
|
953
|
-
const
|
|
951
|
+
}, Ce = () => at("tabEmitter");
|
|
952
|
+
var F = /* @__PURE__ */ ((e) => (e.PAGE_LOADING = "PAGE_LOADING", e.TAB_ACTIVE = "TAB_ACTIVE", e))(F || {});
|
|
953
|
+
const Sr = {
|
|
954
954
|
key: 0,
|
|
955
955
|
class: "stack-tab-loading-mask"
|
|
956
|
-
},
|
|
957
|
-
|
|
958
|
-
],
|
|
956
|
+
}, Or = /* @__PURE__ */ K("div", { class: "stack-tab-loading--spin turn" }, null, -1), Er = [
|
|
957
|
+
Or
|
|
958
|
+
], Ar = /* @__PURE__ */ Q({
|
|
959
959
|
__name: "PageLoading",
|
|
960
960
|
props: {
|
|
961
961
|
tId: {}
|
|
962
962
|
},
|
|
963
963
|
setup(e) {
|
|
964
|
-
const t = e, n =
|
|
965
|
-
return n.on(
|
|
964
|
+
const t = e, n = Ce(), r = $(!1);
|
|
965
|
+
return n.on(F.PAGE_LOADING, ({ tId: s, value: o }) => {
|
|
966
966
|
s === t.tId && (r.value = o);
|
|
967
|
-
}), (s, o) => r.value ? (z(), P("div",
|
|
968
|
-
}
|
|
969
|
-
}), C =
|
|
970
|
-
let
|
|
971
|
-
const
|
|
972
|
-
const e =
|
|
973
|
-
|
|
974
|
-
for (const
|
|
975
|
-
const
|
|
976
|
-
id:
|
|
977
|
-
}), L =
|
|
967
|
+
}), (s, o) => r.value ? (z(), P("div", Sr, Er)) : ne("", !0);
|
|
968
|
+
}
|
|
969
|
+
}), C = $([]), $e = [], R = $([]), oe = /* @__PURE__ */ new Map(), _e = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Set(), ue = $(!0), It = "stacktab-active-tab", fe = /* @__PURE__ */ new Map();
|
|
970
|
+
let Bt = !1, Re = 0, Ct = !1;
|
|
971
|
+
const Me = () => {
|
|
972
|
+
const e = ut(), t = Ce(), n = () => C.value.length, r = (g) => {
|
|
973
|
+
$e.splice(0), R.value.splice(0), _e.clear(), W.clear(), oe.clear();
|
|
974
|
+
for (const A of g) {
|
|
975
|
+
const p = te(A, {
|
|
976
|
+
id: an()
|
|
977
|
+
}), L = dn(p), V = bt(p.path), D = te(p, {
|
|
978
978
|
closable: !0,
|
|
979
979
|
refreshable: !0,
|
|
980
980
|
iframe: !1
|
|
981
|
-
}),
|
|
982
|
-
id:
|
|
983
|
-
tabId:
|
|
984
|
-
path:
|
|
985
|
-
query:
|
|
981
|
+
}), Le = At(p.id, V.path, V.query), H = {
|
|
982
|
+
id: Le,
|
|
983
|
+
tabId: p.id,
|
|
984
|
+
path: V.path,
|
|
985
|
+
query: te(V.query, {
|
|
986
986
|
__tab: L
|
|
987
987
|
})
|
|
988
|
-
},
|
|
989
|
-
|
|
990
|
-
const
|
|
991
|
-
id:
|
|
992
|
-
title:
|
|
993
|
-
closable:
|
|
994
|
-
refreshable:
|
|
995
|
-
iframe:
|
|
988
|
+
}, me = new Ye();
|
|
989
|
+
me.push(H);
|
|
990
|
+
const X = {
|
|
991
|
+
id: p.id,
|
|
992
|
+
title: D.title,
|
|
993
|
+
closable: D.closable,
|
|
994
|
+
refreshable: D.refreshable,
|
|
995
|
+
iframe: D.iframe,
|
|
996
996
|
active: !1,
|
|
997
|
-
pages:
|
|
997
|
+
pages: me
|
|
998
998
|
};
|
|
999
|
-
|
|
999
|
+
$e.push(X), C.value.push({
|
|
1000
|
+
...X
|
|
1001
|
+
}), R.value.push(Le);
|
|
1000
1002
|
}
|
|
1001
|
-
const
|
|
1002
|
-
if (
|
|
1003
|
-
const
|
|
1004
|
-
let
|
|
1003
|
+
const v = window.sessionStorage.getItem(It);
|
|
1004
|
+
if (v != null) {
|
|
1005
|
+
const A = JSON.parse(v, (L, V) => L === "pages" ? new Ye(V) : V);
|
|
1006
|
+
let p = !1;
|
|
1005
1007
|
for (const L of C.value)
|
|
1006
|
-
if (L.id ===
|
|
1007
|
-
|
|
1008
|
+
if (L.id === A.id) {
|
|
1009
|
+
p = !0;
|
|
1008
1010
|
break;
|
|
1009
1011
|
}
|
|
1010
|
-
|
|
1012
|
+
p || C.value.push(A);
|
|
1011
1013
|
}
|
|
1012
|
-
|
|
1013
|
-
}, s = (
|
|
1014
|
-
for (const
|
|
1015
|
-
if (
|
|
1014
|
+
Bt = !0;
|
|
1015
|
+
}, s = (g) => {
|
|
1016
|
+
for (const v of C.value)
|
|
1017
|
+
if (v.id === g)
|
|
1016
1018
|
return !0;
|
|
1017
1019
|
return !1;
|
|
1018
|
-
}, o = () =>
|
|
1019
|
-
C.value.push(
|
|
1020
|
-
}), u = (
|
|
1021
|
-
for (const
|
|
1022
|
-
if (
|
|
1023
|
-
return
|
|
1020
|
+
}, o = () => Re <= 0 || Re > 0 && Re > C.value.length, i = (g) => new Promise((v) => {
|
|
1021
|
+
C.value.push(g), v(!0);
|
|
1022
|
+
}), u = (g) => {
|
|
1023
|
+
for (const v of C.value)
|
|
1024
|
+
if (v.id === g)
|
|
1025
|
+
return v;
|
|
1024
1026
|
return null;
|
|
1025
|
-
},
|
|
1026
|
-
let
|
|
1027
|
-
const
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1027
|
+
}, c = (g, v) => {
|
|
1028
|
+
let A;
|
|
1029
|
+
const p = wr(g.query.__tab);
|
|
1030
|
+
if (W.has(p.id))
|
|
1031
|
+
return;
|
|
1032
|
+
const L = g.matched[g.matched.length - 1].path, V = g.path.endsWith("/") ? g.path.substring(0, g.path.length - 1) : g.path, D = At(p.id, L === V ? V : g.path, g.query.valueOf()), Le = g.query.__src;
|
|
1033
|
+
let H = null;
|
|
1034
|
+
for (const X of x(C))
|
|
1035
|
+
X.active = !1, X.id === p.id && (H = X);
|
|
1036
|
+
const me = {
|
|
1037
|
+
id: D,
|
|
1038
|
+
tabId: p.id,
|
|
1039
|
+
path: g.path,
|
|
1040
|
+
query: g.query
|
|
1036
1041
|
};
|
|
1037
|
-
if (
|
|
1038
|
-
const
|
|
1039
|
-
|
|
1040
|
-
id:
|
|
1041
|
-
title:
|
|
1042
|
-
closable:
|
|
1043
|
-
refreshable:
|
|
1044
|
-
iframe:
|
|
1045
|
-
url: decodeURIComponent(
|
|
1042
|
+
if (H === null) {
|
|
1043
|
+
const X = new Ye();
|
|
1044
|
+
X.push(me), H = {
|
|
1045
|
+
id: p.id,
|
|
1046
|
+
title: p.title,
|
|
1047
|
+
closable: p.closable,
|
|
1048
|
+
refreshable: p.refreshable,
|
|
1049
|
+
iframe: p.iframe,
|
|
1050
|
+
url: decodeURIComponent(Le),
|
|
1046
1051
|
active: !0,
|
|
1047
|
-
pages:
|
|
1048
|
-
}, i(
|
|
1049
|
-
t.emit(
|
|
1050
|
-
id:
|
|
1052
|
+
pages: X
|
|
1053
|
+
}, i(H).then(() => {
|
|
1054
|
+
t.emit(F.TAB_ACTIVE, {
|
|
1055
|
+
id: p.id,
|
|
1051
1056
|
isRoute: !1
|
|
1052
1057
|
});
|
|
1053
1058
|
});
|
|
1054
1059
|
} else
|
|
1055
|
-
|
|
1056
|
-
return
|
|
1057
|
-
name:
|
|
1060
|
+
H.active = !0, (H.pages.isEmpty() || H.pages.peek().id !== me.id) && H.pages.push(me);
|
|
1061
|
+
return E(H), oe.has(D) ? A = oe.get(D) : (A = /* @__PURE__ */ Q({
|
|
1062
|
+
name: D,
|
|
1058
1063
|
components: {
|
|
1059
|
-
DynamicComponent:
|
|
1064
|
+
DynamicComponent: v
|
|
1060
1065
|
},
|
|
1061
1066
|
emits: {
|
|
1062
1067
|
onLoaded: null
|
|
1063
1068
|
},
|
|
1064
|
-
setup(
|
|
1065
|
-
return
|
|
1066
|
-
|
|
1067
|
-
}), xn(() => {
|
|
1068
|
-
h(j);
|
|
1069
|
+
setup(X, gt) {
|
|
1070
|
+
return qe(() => {
|
|
1071
|
+
gt.emit("onLoaded"), d(D, ".cache-page-wrapper");
|
|
1069
1072
|
}), Sn(() => {
|
|
1070
|
-
|
|
1071
|
-
}),
|
|
1072
|
-
|
|
1073
|
+
h(D);
|
|
1074
|
+
}), On(() => {
|
|
1075
|
+
gt.emit("onLoaded"), l(D), y(), W.clear(), v.props = null;
|
|
1076
|
+
}), Ge(() => {
|
|
1077
|
+
f(D);
|
|
1073
1078
|
}), () => N("div", {
|
|
1074
1079
|
class: "cache-page-wrapper",
|
|
1075
|
-
id: "W-" +
|
|
1076
|
-
style: [
|
|
1077
|
-
}, [N(
|
|
1078
|
-
tId:
|
|
1079
|
-
pId:
|
|
1080
|
-
}, null), N(
|
|
1081
|
-
tId:
|
|
1080
|
+
id: "W-" + p.id,
|
|
1081
|
+
style: [Ct ? "overflow:auto" : "overflow:hidden"]
|
|
1082
|
+
}, [N(Zt("dynamic-component"), {
|
|
1083
|
+
tId: p.id,
|
|
1084
|
+
pId: D
|
|
1085
|
+
}, null), N(Ar, {
|
|
1086
|
+
tId: p.id
|
|
1082
1087
|
}, null)]);
|
|
1083
1088
|
}
|
|
1084
|
-
}),
|
|
1085
|
-
}, l = (
|
|
1086
|
-
const
|
|
1087
|
-
if (
|
|
1088
|
-
for (const
|
|
1089
|
-
if (document.querySelector(
|
|
1090
|
-
const
|
|
1091
|
-
document.querySelector(
|
|
1089
|
+
}), oe.set(D, A)), q(D), A;
|
|
1090
|
+
}, l = (g) => {
|
|
1091
|
+
const v = fe.get(g);
|
|
1092
|
+
if (v) {
|
|
1093
|
+
for (const A of v.keys())
|
|
1094
|
+
if (document.querySelector(A)) {
|
|
1095
|
+
const p = v.get(A);
|
|
1096
|
+
document.querySelector(A).scrollTop = p.top, document.querySelector(A).scrollLeft = p.left;
|
|
1092
1097
|
}
|
|
1093
1098
|
}
|
|
1094
|
-
}, h = (
|
|
1095
|
-
var
|
|
1096
|
-
const
|
|
1097
|
-
if (
|
|
1098
|
-
for (const L of
|
|
1099
|
-
const
|
|
1100
|
-
top: ((
|
|
1101
|
-
left: ((
|
|
1099
|
+
}, h = (g) => {
|
|
1100
|
+
var A, p;
|
|
1101
|
+
const v = fe.get(g);
|
|
1102
|
+
if (v)
|
|
1103
|
+
for (const L of v.keys()) {
|
|
1104
|
+
const V = {
|
|
1105
|
+
top: ((A = document.querySelector(L)) == null ? void 0 : A.scrollTop) ?? 0,
|
|
1106
|
+
left: ((p = document.querySelector(L)) == null ? void 0 : p.scrollLeft) ?? 0
|
|
1102
1107
|
};
|
|
1103
|
-
|
|
1108
|
+
v.set(L, V);
|
|
1104
1109
|
}
|
|
1105
|
-
}, f = (
|
|
1106
|
-
const
|
|
1107
|
-
|
|
1108
|
-
}, d = (
|
|
1109
|
-
|
|
1110
|
-
const
|
|
1111
|
-
for (const
|
|
1112
|
-
|
|
1110
|
+
}, f = (g) => {
|
|
1111
|
+
const v = fe.get(g);
|
|
1112
|
+
v && (v.clear(), fe.delete(g));
|
|
1113
|
+
}, d = (g, ...v) => {
|
|
1114
|
+
fe.has(g) || fe.set(g, /* @__PURE__ */ new Map());
|
|
1115
|
+
const A = fe.get(g);
|
|
1116
|
+
for (const p of v)
|
|
1117
|
+
A.set(p, {
|
|
1113
1118
|
top: 0,
|
|
1114
1119
|
left: 0
|
|
1115
1120
|
});
|
|
1116
|
-
},
|
|
1117
|
-
let
|
|
1118
|
-
for (let
|
|
1119
|
-
if (
|
|
1120
|
-
if (!
|
|
1121
|
-
return
|
|
1122
|
-
for (const
|
|
1123
|
-
|
|
1124
|
-
|
|
1121
|
+
}, w = (g) => {
|
|
1122
|
+
let v = "";
|
|
1123
|
+
for (let p = C.value.length - 1; p >= 0; p--)
|
|
1124
|
+
if (g === x(C)[p].id) {
|
|
1125
|
+
if (!x(C)[p].closable)
|
|
1126
|
+
return g;
|
|
1127
|
+
for (const L of x(C)[p].pages.list())
|
|
1128
|
+
a(L.id), b(L.id), W.add(x(C)[p].id);
|
|
1129
|
+
x(C)[p].pages.clear(), C.value.length > 1 && x(C)[p].active && (p === 0 ? v = x(C)[p + 1].id : v = x(C)[p - 1].id), x(C).splice(p, 1);
|
|
1125
1130
|
break;
|
|
1126
1131
|
}
|
|
1127
|
-
|
|
1128
|
-
id:
|
|
1129
|
-
})
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1132
|
+
v !== "" && t.emit(F.TAB_ACTIVE, {
|
|
1133
|
+
id: v
|
|
1134
|
+
});
|
|
1135
|
+
const A = u(g);
|
|
1136
|
+
return A != null && A.active || (y(), W.clear()), v;
|
|
1137
|
+
}, S = () => {
|
|
1138
|
+
const g = x(C);
|
|
1139
|
+
for (let v = g.length - 1; v >= 0; v--)
|
|
1140
|
+
if (g[v].closable) {
|
|
1141
|
+
for (const A of g[v].pages.list())
|
|
1142
|
+
a(A.id), b(A.id), W.add(g[v].id);
|
|
1143
|
+
x(C)[v].pages.clear(), x(C).splice(v, 1);
|
|
1137
1144
|
}
|
|
1138
|
-
for (const
|
|
1139
|
-
if (
|
|
1140
|
-
|
|
1145
|
+
for (const v of g)
|
|
1146
|
+
if (v.active) {
|
|
1147
|
+
y(), W.clear();
|
|
1141
1148
|
return;
|
|
1142
1149
|
}
|
|
1143
|
-
t.emit(
|
|
1144
|
-
id:
|
|
1150
|
+
t.emit(F.TAB_ACTIVE, {
|
|
1151
|
+
id: g[g.length - 1].id
|
|
1145
1152
|
});
|
|
1146
|
-
}, B = (
|
|
1147
|
-
const
|
|
1148
|
-
let
|
|
1149
|
-
for (let
|
|
1150
|
-
if (
|
|
1151
|
-
|
|
1152
|
-
else if (
|
|
1153
|
-
for (const L of
|
|
1154
|
-
|
|
1155
|
-
|
|
1153
|
+
}, B = (g) => {
|
|
1154
|
+
const v = x(C);
|
|
1155
|
+
let A;
|
|
1156
|
+
for (let p = v.length - 1; p >= 0; p--)
|
|
1157
|
+
if (v[p].id === g)
|
|
1158
|
+
A = v[p];
|
|
1159
|
+
else if (v[p].closable && v[p].id !== g) {
|
|
1160
|
+
for (const L of v[p].pages.list())
|
|
1161
|
+
a(L.id), b(L.id), W.add(v[p].id);
|
|
1162
|
+
x(C)[p].pages.clear(), x(C).splice(p, 1);
|
|
1156
1163
|
}
|
|
1157
|
-
|
|
1158
|
-
id:
|
|
1164
|
+
A.active ? (y(), W.clear()) : t.emit(F.TAB_ACTIVE, {
|
|
1165
|
+
id: g
|
|
1159
1166
|
});
|
|
1160
|
-
}, I = (
|
|
1161
|
-
let
|
|
1162
|
-
const
|
|
1163
|
-
for (let
|
|
1164
|
-
if (
|
|
1165
|
-
|
|
1167
|
+
}, I = (g) => {
|
|
1168
|
+
let v = -1;
|
|
1169
|
+
const A = x(C);
|
|
1170
|
+
for (let p = 0; p < A.length; p++)
|
|
1171
|
+
if (A[p].id === g) {
|
|
1172
|
+
v = p - 1;
|
|
1166
1173
|
break;
|
|
1167
1174
|
}
|
|
1168
|
-
for (let
|
|
1169
|
-
if (
|
|
1170
|
-
for (const L of
|
|
1171
|
-
|
|
1172
|
-
|
|
1175
|
+
for (let p = v; p >= 0; p--)
|
|
1176
|
+
if (A[p].closable) {
|
|
1177
|
+
for (const L of A[p].pages.list())
|
|
1178
|
+
a(L.id), b(L.id), W.add(A[p].id);
|
|
1179
|
+
x(C)[p].pages.clear(), x(C).splice(p, 1);
|
|
1173
1180
|
}
|
|
1174
|
-
for (const
|
|
1175
|
-
if (
|
|
1176
|
-
|
|
1181
|
+
for (const p of A)
|
|
1182
|
+
if (p.active) {
|
|
1183
|
+
y(), W.clear();
|
|
1177
1184
|
return;
|
|
1178
1185
|
}
|
|
1179
|
-
t.emit(
|
|
1180
|
-
id:
|
|
1186
|
+
t.emit(F.TAB_ACTIVE, {
|
|
1187
|
+
id: A[0].id
|
|
1181
1188
|
});
|
|
1182
|
-
}, T = (
|
|
1183
|
-
const
|
|
1184
|
-
let
|
|
1185
|
-
for (let
|
|
1186
|
-
if (
|
|
1187
|
-
|
|
1189
|
+
}, T = (g) => {
|
|
1190
|
+
const v = x(C);
|
|
1191
|
+
let A = v.length;
|
|
1192
|
+
for (let p = 0; p < v.length; p++)
|
|
1193
|
+
if (v[p].id === g) {
|
|
1194
|
+
A = p + 1;
|
|
1188
1195
|
break;
|
|
1189
1196
|
}
|
|
1190
|
-
for (let
|
|
1191
|
-
if (
|
|
1192
|
-
for (const L of
|
|
1193
|
-
|
|
1194
|
-
|
|
1197
|
+
for (let p = v.length - 1; p >= A; p--)
|
|
1198
|
+
if (v[p].closable) {
|
|
1199
|
+
for (const L of v[p].pages.list())
|
|
1200
|
+
a(L.id), b(L.id), W.add(v[p].id);
|
|
1201
|
+
x(C)[p].pages.clear(), x(C).splice(p, 1);
|
|
1195
1202
|
}
|
|
1196
|
-
for (const
|
|
1197
|
-
if (
|
|
1198
|
-
|
|
1203
|
+
for (const p of v)
|
|
1204
|
+
if (p.active) {
|
|
1205
|
+
y(), W.clear();
|
|
1199
1206
|
return;
|
|
1200
1207
|
}
|
|
1201
|
-
t.emit(
|
|
1202
|
-
id:
|
|
1208
|
+
t.emit(F.TAB_ACTIVE, {
|
|
1209
|
+
id: v[v.length - 1].id
|
|
1203
1210
|
});
|
|
1204
|
-
},
|
|
1205
|
-
var
|
|
1206
|
-
for (const
|
|
1207
|
-
if (
|
|
1208
|
-
const
|
|
1209
|
-
for (let L =
|
|
1210
|
-
if (
|
|
1211
|
-
|
|
1211
|
+
}, _ = (g) => {
|
|
1212
|
+
var v;
|
|
1213
|
+
for (const A of x(C))
|
|
1214
|
+
if (A.id === g) {
|
|
1215
|
+
const p = (v = A.pages.peek()) == null ? void 0 : v.id;
|
|
1216
|
+
for (let L = R.value.length - 1; L >= 0; L--)
|
|
1217
|
+
if (R.value[L] === p) {
|
|
1218
|
+
R.value.splice(L, 1), A.active && (ue.value = !1, de(() => {
|
|
1219
|
+
ue.value = !0;
|
|
1220
|
+
}));
|
|
1212
1221
|
break;
|
|
1213
1222
|
}
|
|
1214
1223
|
break;
|
|
1215
1224
|
}
|
|
1216
|
-
},
|
|
1217
|
-
const
|
|
1218
|
-
C.value.forEach((
|
|
1219
|
-
|
|
1225
|
+
}, k = () => {
|
|
1226
|
+
const g = /* @__PURE__ */ new Set();
|
|
1227
|
+
C.value.forEach((v) => {
|
|
1228
|
+
g.add(v.pages.peek().id);
|
|
1220
1229
|
});
|
|
1221
|
-
for (let
|
|
1222
|
-
const
|
|
1223
|
-
|
|
1230
|
+
for (let v = R.value.length - 1; v >= 0; v--) {
|
|
1231
|
+
const A = R.value[v];
|
|
1232
|
+
g.has(A) && R.value.splice(v, 1);
|
|
1224
1233
|
}
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
},
|
|
1231
|
-
|
|
1232
|
-
},
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
},
|
|
1237
|
-
for (let
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1234
|
+
de(() => {
|
|
1235
|
+
ue.value = !1, de(() => {
|
|
1236
|
+
ue.value = !0;
|
|
1237
|
+
});
|
|
1238
|
+
});
|
|
1239
|
+
}, m = (g, v) => {
|
|
1240
|
+
oe.set(g, v);
|
|
1241
|
+
}, O = (g) => oe.get(g), a = (g) => {
|
|
1242
|
+
oe.delete(g);
|
|
1243
|
+
}, b = (g) => {
|
|
1244
|
+
_e.add(g);
|
|
1245
|
+
}, y = () => {
|
|
1246
|
+
for (let g = R.value.length - 1; g >= 0; g--)
|
|
1247
|
+
_e.has(R.value[g]) && x(R).splice(g, 1);
|
|
1248
|
+
_e.clear();
|
|
1249
|
+
}, j = (g) => {
|
|
1250
|
+
for (let v = R.value.length - 1; v >= 0; v--)
|
|
1251
|
+
g === R.value[v] && x(R).splice(v, 1);
|
|
1252
|
+
}, q = (g) => {
|
|
1253
|
+
new Set(R.value).has(g) || R.value.push(g);
|
|
1254
|
+
}, G = (g, v = !0) => {
|
|
1255
|
+
for (let A = C.value.length - 1; A >= 0; A--) {
|
|
1256
|
+
const p = C.value[A];
|
|
1257
|
+
if (p.id === g) {
|
|
1258
|
+
if (p.active)
|
|
1246
1259
|
break;
|
|
1247
|
-
if (
|
|
1248
|
-
const
|
|
1260
|
+
if (p.active = !0, E(p), v) {
|
|
1261
|
+
const L = p.pages.peek();
|
|
1249
1262
|
e.push({
|
|
1250
|
-
path:
|
|
1251
|
-
query:
|
|
1263
|
+
path: L.path,
|
|
1264
|
+
query: L.query
|
|
1252
1265
|
});
|
|
1253
1266
|
}
|
|
1254
1267
|
} else
|
|
1255
|
-
C.value[
|
|
1268
|
+
C.value[A].active = !1;
|
|
1256
1269
|
}
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
window.sessionStorage.setItem(Et, JSON.stringify(v));
|
|
1270
|
+
}, E = (g) => {
|
|
1271
|
+
window.sessionStorage.setItem(It, JSON.stringify(g));
|
|
1260
1272
|
}, M = () => {
|
|
1261
|
-
U(),
|
|
1262
|
-
|
|
1273
|
+
ue.value = !1, U(), de(() => {
|
|
1274
|
+
x(C).push(...$e), t.emit(F.TAB_ACTIVE, {
|
|
1275
|
+
id: $e[0].id
|
|
1276
|
+
}), de(() => {
|
|
1277
|
+
ue.value = !0;
|
|
1278
|
+
});
|
|
1263
1279
|
});
|
|
1264
1280
|
}, U = () => {
|
|
1265
|
-
|
|
1281
|
+
x(C).splice(0), oe.clear(), _e.clear(), W.clear(), x(R).splice(0);
|
|
1266
1282
|
};
|
|
1267
1283
|
return {
|
|
1268
1284
|
tabs: C,
|
|
1269
|
-
caches:
|
|
1270
|
-
pageShown:
|
|
1271
|
-
initialed:
|
|
1272
|
-
setMaxSize: (
|
|
1273
|
-
|
|
1285
|
+
caches: R,
|
|
1286
|
+
pageShown: ue,
|
|
1287
|
+
initialed: Bt,
|
|
1288
|
+
setMaxSize: (g) => {
|
|
1289
|
+
Re = g;
|
|
1274
1290
|
},
|
|
1275
1291
|
canAddTab: o,
|
|
1276
1292
|
initial: r,
|
|
1277
1293
|
size: n,
|
|
1278
|
-
active:
|
|
1294
|
+
active: G,
|
|
1279
1295
|
destroy: U,
|
|
1280
1296
|
reset: M,
|
|
1281
|
-
addCache:
|
|
1282
|
-
removeCache:
|
|
1297
|
+
addCache: q,
|
|
1298
|
+
removeCache: j,
|
|
1283
1299
|
getTab: u,
|
|
1284
1300
|
addTab: i,
|
|
1285
|
-
removeTab:
|
|
1286
|
-
removeAllTabs:
|
|
1301
|
+
removeTab: w,
|
|
1302
|
+
removeAllTabs: S,
|
|
1287
1303
|
removeLeftTabs: I,
|
|
1288
1304
|
removeRightTabs: T,
|
|
1289
1305
|
removeOtherTabs: B,
|
|
1290
1306
|
hasTab: s,
|
|
1291
|
-
addPage:
|
|
1292
|
-
addComponent:
|
|
1293
|
-
getComponent:
|
|
1294
|
-
removeComponent:
|
|
1295
|
-
markDeletableCache:
|
|
1296
|
-
removeDeletableCache:
|
|
1297
|
-
refreshTab:
|
|
1298
|
-
refreshAllTabs:
|
|
1307
|
+
addPage: c,
|
|
1308
|
+
addComponent: m,
|
|
1309
|
+
getComponent: O,
|
|
1310
|
+
removeComponent: a,
|
|
1311
|
+
markDeletableCache: b,
|
|
1312
|
+
removeDeletableCache: y,
|
|
1313
|
+
refreshTab: _,
|
|
1314
|
+
refreshAllTabs: k,
|
|
1299
1315
|
addPageScroller: d,
|
|
1300
|
-
setGlobalScroll: (
|
|
1301
|
-
|
|
1316
|
+
setGlobalScroll: (g) => {
|
|
1317
|
+
Ct = g;
|
|
1302
1318
|
}
|
|
1303
1319
|
};
|
|
1304
|
-
},
|
|
1320
|
+
}, Ir = { class: "stack-tab__contextmenu-item" }, ie = /* @__PURE__ */ Q({
|
|
1305
1321
|
__name: "ContextMenuItem",
|
|
1306
1322
|
props: {
|
|
1307
1323
|
icon: {},
|
|
1308
1324
|
title: {}
|
|
1309
1325
|
},
|
|
1310
1326
|
setup(e) {
|
|
1311
|
-
return (t, n) => (z(), P("div",
|
|
1312
|
-
|
|
1313
|
-
class:
|
|
1327
|
+
return (t, n) => (z(), P("div", Ir, [
|
|
1328
|
+
K("div", {
|
|
1329
|
+
class: ce(["stack-tab__contextmenu-icon", t.icon])
|
|
1314
1330
|
}, null, 2),
|
|
1315
|
-
|
|
1331
|
+
K("div", {
|
|
1316
1332
|
style: { "margin-left": "8px" },
|
|
1317
|
-
onContextmenu: n[0] || (n[0] =
|
|
1333
|
+
onContextmenu: n[0] || (n[0] = we(() => {
|
|
1318
1334
|
}, ["prevent"]))
|
|
1319
|
-
},
|
|
1335
|
+
}, Xt(t.title), 33)
|
|
1320
1336
|
]));
|
|
1321
1337
|
}
|
|
1322
|
-
}),
|
|
1338
|
+
}), Br = {
|
|
1323
1339
|
key: 0,
|
|
1324
1340
|
class: "divider div-transparent"
|
|
1325
|
-
},
|
|
1341
|
+
}, Cr = /* @__PURE__ */ Q({
|
|
1326
1342
|
__name: "index",
|
|
1327
1343
|
props: {
|
|
1328
1344
|
index: {},
|
|
@@ -1333,101 +1349,101 @@ const Ie = () => {
|
|
|
1333
1349
|
max: {}
|
|
1334
1350
|
},
|
|
1335
1351
|
setup(e) {
|
|
1336
|
-
const t = e, { t: n } =
|
|
1352
|
+
const t = e, { t: n } = Ze(), r = $(), s = Ie({
|
|
1337
1353
|
left: t.left,
|
|
1338
1354
|
top: t.top
|
|
1339
1355
|
}), {
|
|
1340
1356
|
removeTab: o,
|
|
1341
1357
|
removeAllTabs: i,
|
|
1342
1358
|
removeLeftTabs: u,
|
|
1343
|
-
removeRightTabs:
|
|
1359
|
+
removeRightTabs: c,
|
|
1344
1360
|
refreshTab: l,
|
|
1345
1361
|
refreshAllTabs: h,
|
|
1346
1362
|
removeOtherTabs: f
|
|
1347
|
-
} =
|
|
1348
|
-
return
|
|
1349
|
-
const d = r.value ? r.value.clientWidth : 0,
|
|
1350
|
-
s.left + d >
|
|
1351
|
-
}), (d,
|
|
1363
|
+
} = Me();
|
|
1364
|
+
return qe(() => {
|
|
1365
|
+
const d = r.value ? r.value.clientWidth : 0, w = window.innerWidth;
|
|
1366
|
+
s.left + d > w && (s.left = w - d - 5);
|
|
1367
|
+
}), (d, w) => (z(), P("div", {
|
|
1352
1368
|
ref_key: "contextmenu",
|
|
1353
1369
|
ref: r,
|
|
1354
1370
|
class: "stack-tab__contextmenu",
|
|
1355
|
-
style:
|
|
1371
|
+
style: ct({
|
|
1356
1372
|
left: `${s.left}px`,
|
|
1357
1373
|
top: `${s.top}px`,
|
|
1358
|
-
"z-index":
|
|
1374
|
+
"z-index": x(sn)(".stack-tab,.stack-tab *")
|
|
1359
1375
|
})
|
|
1360
1376
|
}, [
|
|
1361
|
-
N(
|
|
1377
|
+
N(ie, {
|
|
1362
1378
|
icon: "stack-tab__icon-reload svg-mask",
|
|
1363
|
-
title:
|
|
1364
|
-
onClick:
|
|
1379
|
+
title: x(n)("VueStackTab.reload"),
|
|
1380
|
+
onClick: w[0] || (w[0] = (S) => x(l)(d.tabItem.id))
|
|
1365
1381
|
}, null, 8, ["title"]),
|
|
1366
|
-
N(
|
|
1382
|
+
N(ie, {
|
|
1367
1383
|
icon: "stack-tab__icon-reload-all svg-mask",
|
|
1368
|
-
title:
|
|
1369
|
-
onClick:
|
|
1384
|
+
title: x(n)("VueStackTab.reloadAll"),
|
|
1385
|
+
onClick: x(h)
|
|
1370
1386
|
}, null, 8, ["title", "onClick"]),
|
|
1371
|
-
N(
|
|
1387
|
+
N(ie, {
|
|
1372
1388
|
icon: "stack-tab__icon-close svg-mask",
|
|
1373
|
-
title:
|
|
1389
|
+
title: x(n)("VueStackTab.close"),
|
|
1374
1390
|
disabled: d.tabItem.closable ? null : "disabled",
|
|
1375
|
-
onClick:
|
|
1391
|
+
onClick: w[1] || (w[1] = (S) => x(o)(d.tabItem.id))
|
|
1376
1392
|
}, null, 8, ["title", "disabled"]),
|
|
1377
|
-
N(
|
|
1393
|
+
N(ie, {
|
|
1378
1394
|
icon: "stack-tab__icon-close-lefts svg-mask",
|
|
1379
|
-
title:
|
|
1395
|
+
title: x(n)("VueStackTab.closeLeft"),
|
|
1380
1396
|
disabled: d.index <= 0 ? "disabled" : null,
|
|
1381
|
-
onClick:
|
|
1397
|
+
onClick: w[2] || (w[2] = (S) => x(u)(d.tabItem.id))
|
|
1382
1398
|
}, null, 8, ["title", "disabled"]),
|
|
1383
|
-
N(
|
|
1399
|
+
N(ie, {
|
|
1384
1400
|
icon: "stack-tab__icon-close-rights svg-mask",
|
|
1385
|
-
title:
|
|
1401
|
+
title: x(n)("VueStackTab.closeRight"),
|
|
1386
1402
|
disabled: d.index >= d.max - 1 ? "disabled" : null,
|
|
1387
|
-
onClick:
|
|
1403
|
+
onClick: w[3] || (w[3] = (S) => x(c)(d.tabItem.id))
|
|
1388
1404
|
}, null, 8, ["title", "disabled"]),
|
|
1389
|
-
N(
|
|
1405
|
+
N(ie, {
|
|
1390
1406
|
icon: "stack-tab__icon-close-others svg-mask",
|
|
1391
|
-
title:
|
|
1392
|
-
onClick:
|
|
1407
|
+
title: x(n)("VueStackTab.closeOthers"),
|
|
1408
|
+
onClick: w[4] || (w[4] = (S) => x(f)(d.tabItem.id))
|
|
1393
1409
|
}, null, 8, ["title"]),
|
|
1394
|
-
N(
|
|
1410
|
+
N(ie, {
|
|
1395
1411
|
icon: "stack-tab__icon-close-all svg-mask",
|
|
1396
|
-
title:
|
|
1397
|
-
onClick:
|
|
1412
|
+
title: x(n)("VueStackTab.closeAll"),
|
|
1413
|
+
onClick: x(i)
|
|
1398
1414
|
}, null, 8, ["title", "onClick"]),
|
|
1399
|
-
d.contextMenu !== void 0 && d.contextMenu.length > 0 ? (z(), P("div",
|
|
1400
|
-
(z(!0), P(
|
|
1415
|
+
d.contextMenu !== void 0 && d.contextMenu.length > 0 ? (z(), P("div", Br)) : ne("", !0),
|
|
1416
|
+
(z(!0), P(He, null, lt(d.contextMenu, (S, B) => (z(), ve(ie, {
|
|
1401
1417
|
key: B,
|
|
1402
|
-
icon:
|
|
1403
|
-
title:
|
|
1404
|
-
disabled:
|
|
1405
|
-
onClick: (I) => !
|
|
1418
|
+
icon: S.icon,
|
|
1419
|
+
title: S.title,
|
|
1420
|
+
disabled: S.disabled(d.tabItem) ? "disabled" : null,
|
|
1421
|
+
onClick: (I) => !S.disabled && S.callback(d.tabItem.id)
|
|
1406
1422
|
}, null, 8, ["icon", "title", "disabled", "onClick"]))), 128))
|
|
1407
1423
|
], 4));
|
|
1408
1424
|
}
|
|
1409
|
-
}),
|
|
1425
|
+
}), Mr = (e, t) => {
|
|
1410
1426
|
const n = e.__vccOpts || e;
|
|
1411
1427
|
for (const [r, s] of t)
|
|
1412
1428
|
n[r] = s;
|
|
1413
1429
|
return n;
|
|
1414
|
-
},
|
|
1415
|
-
const e =
|
|
1430
|
+
}, Lr = /* @__PURE__ */ Mr(Cr, [["__scopeId", "data-v-d598be6e"]]), zr = () => {
|
|
1431
|
+
const e = Ie({
|
|
1416
1432
|
item: {},
|
|
1417
1433
|
index: -1,
|
|
1418
1434
|
left: 0,
|
|
1419
1435
|
top: 0,
|
|
1420
1436
|
max: 0
|
|
1421
|
-
}), t =
|
|
1422
|
-
|
|
1437
|
+
}), t = $(!1);
|
|
1438
|
+
qe(() => {
|
|
1423
1439
|
document.addEventListener("click", r);
|
|
1424
|
-
}),
|
|
1440
|
+
}), Ge(() => {
|
|
1425
1441
|
document.removeEventListener("click", r);
|
|
1426
1442
|
});
|
|
1427
1443
|
const n = async (s, o, i, u) => {
|
|
1428
|
-
t.value = !1, await
|
|
1429
|
-
const { clientY:
|
|
1430
|
-
t.value = !0, Object.assign(e, { item: o, index: i, top:
|
|
1444
|
+
t.value = !1, await de(() => {
|
|
1445
|
+
const { clientY: c, clientX: l } = s;
|
|
1446
|
+
t.value = !0, Object.assign(e, { item: o, index: i, top: c, left: l, max: u });
|
|
1431
1447
|
});
|
|
1432
1448
|
}, r = (s) => {
|
|
1433
1449
|
s.target.classList.contains("stack-tab__contextmenu") || (t.value = !1);
|
|
@@ -1437,18 +1453,18 @@ const Ie = () => {
|
|
|
1437
1453
|
contextMenuData: e,
|
|
1438
1454
|
showContextMenu: n
|
|
1439
1455
|
};
|
|
1440
|
-
},
|
|
1456
|
+
}, $r = { class: "stack-tab__item-title" }, Rr = ["title"], Nr = ["title"], Pr = /* @__PURE__ */ Q({
|
|
1441
1457
|
__name: "TabHeaderItem",
|
|
1442
1458
|
props: {
|
|
1443
1459
|
item: {}
|
|
1444
1460
|
},
|
|
1445
1461
|
emits: ["close", "active"],
|
|
1446
1462
|
setup(e, { emit: t }) {
|
|
1447
|
-
const n = t, r =
|
|
1448
|
-
r.on(
|
|
1463
|
+
const n = t, r = Ce(), { t: s } = Ze(), o = $(), i = e;
|
|
1464
|
+
r.on(F.TAB_ACTIVE, ({ id: h, isRoute: f }) => {
|
|
1449
1465
|
i.item.id === h && l(f);
|
|
1450
1466
|
});
|
|
1451
|
-
const u =
|
|
1467
|
+
const u = ge(() => i.item.title || s("undefined")), c = () => {
|
|
1452
1468
|
n("close", i.item);
|
|
1453
1469
|
}, l = (h = !0) => {
|
|
1454
1470
|
n("active", i.item, o, h);
|
|
@@ -1456,77 +1472,77 @@ const Ie = () => {
|
|
|
1456
1472
|
return (h, f) => (z(), P("li", {
|
|
1457
1473
|
ref_key: "curtab",
|
|
1458
1474
|
ref: o,
|
|
1459
|
-
class:
|
|
1475
|
+
class: ce(["stack-tab__item", {
|
|
1460
1476
|
"is-active": h.item.active,
|
|
1461
1477
|
"is-icon": h.item.closable
|
|
1462
1478
|
}]),
|
|
1463
1479
|
onClick: f[0] || (f[0] = (d) => l(!0))
|
|
1464
1480
|
}, [
|
|
1465
|
-
|
|
1466
|
-
|
|
1481
|
+
K("div", $r, [
|
|
1482
|
+
K("div", {
|
|
1467
1483
|
class: "stack-tab__item-title-content",
|
|
1468
1484
|
title: u.value
|
|
1469
|
-
},
|
|
1485
|
+
}, Xt(u.value), 9, Rr)
|
|
1470
1486
|
]),
|
|
1471
1487
|
h.item.closable ? (z(), P("div", {
|
|
1472
1488
|
key: 0,
|
|
1473
1489
|
class: "stack-tab__icon-close-fill stack-tab__item-button",
|
|
1474
|
-
title:
|
|
1475
|
-
onClick:
|
|
1476
|
-
}, null, 8,
|
|
1490
|
+
title: x(s)("VueStackTab.close"),
|
|
1491
|
+
onClick: we(c, ["stop"])
|
|
1492
|
+
}, null, 8, Nr)) : ne("", !0)
|
|
1477
1493
|
], 2));
|
|
1478
1494
|
}
|
|
1479
1495
|
});
|
|
1480
|
-
var
|
|
1481
|
-
return
|
|
1496
|
+
var pe = [], Dr = function() {
|
|
1497
|
+
return pe.some(function(e) {
|
|
1482
1498
|
return e.activeTargets.length > 0;
|
|
1483
1499
|
});
|
|
1484
|
-
},
|
|
1485
|
-
return
|
|
1500
|
+
}, jr = function() {
|
|
1501
|
+
return pe.some(function(e) {
|
|
1486
1502
|
return e.skippedTargets.length > 0;
|
|
1487
1503
|
});
|
|
1488
|
-
},
|
|
1504
|
+
}, Mt = "ResizeObserver loop completed with undelivered notifications.", Wr = function() {
|
|
1489
1505
|
var e;
|
|
1490
1506
|
typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
|
|
1491
|
-
message:
|
|
1492
|
-
}) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message =
|
|
1493
|
-
},
|
|
1507
|
+
message: Mt
|
|
1508
|
+
}) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = Mt), window.dispatchEvent(e);
|
|
1509
|
+
}, Be;
|
|
1494
1510
|
(function(e) {
|
|
1495
1511
|
e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
1496
|
-
})(
|
|
1497
|
-
var
|
|
1512
|
+
})(Be || (Be = {}));
|
|
1513
|
+
var be = function(e) {
|
|
1498
1514
|
return Object.freeze(e);
|
|
1499
|
-
},
|
|
1515
|
+
}, Ur = /* @__PURE__ */ function() {
|
|
1500
1516
|
function e(t, n) {
|
|
1501
|
-
this.inlineSize = t, this.blockSize = n,
|
|
1517
|
+
this.inlineSize = t, this.blockSize = n, be(this);
|
|
1502
1518
|
}
|
|
1503
1519
|
return e;
|
|
1504
|
-
}(),
|
|
1520
|
+
}(), hn = function() {
|
|
1505
1521
|
function e(t, n, r, s) {
|
|
1506
|
-
return this.x = t, this.y = n, this.width = r, this.height = s, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width,
|
|
1522
|
+
return this.x = t, this.y = n, this.width = r, this.height = s, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, be(this);
|
|
1507
1523
|
}
|
|
1508
1524
|
return e.prototype.toJSON = function() {
|
|
1509
|
-
var t = this, n = t.x, r = t.y, s = t.top, o = t.right, i = t.bottom, u = t.left,
|
|
1510
|
-
return { x: n, y: r, top: s, right: o, bottom: i, left: u, width:
|
|
1525
|
+
var t = this, n = t.x, r = t.y, s = t.top, o = t.right, i = t.bottom, u = t.left, c = t.width, l = t.height;
|
|
1526
|
+
return { x: n, y: r, top: s, right: o, bottom: i, left: u, width: c, height: l };
|
|
1511
1527
|
}, e.fromRect = function(t) {
|
|
1512
1528
|
return new e(t.x, t.y, t.width, t.height);
|
|
1513
1529
|
}, e;
|
|
1514
|
-
}(),
|
|
1530
|
+
}(), vt = function(e) {
|
|
1515
1531
|
return e instanceof SVGElement && "getBBox" in e;
|
|
1516
|
-
},
|
|
1517
|
-
if (
|
|
1532
|
+
}, pn = function(e) {
|
|
1533
|
+
if (vt(e)) {
|
|
1518
1534
|
var t = e.getBBox(), n = t.width, r = t.height;
|
|
1519
1535
|
return !n && !r;
|
|
1520
1536
|
}
|
|
1521
1537
|
var s = e, o = s.offsetWidth, i = s.offsetHeight;
|
|
1522
1538
|
return !(o || i || e.getClientRects().length);
|
|
1523
|
-
},
|
|
1539
|
+
}, Lt = function(e) {
|
|
1524
1540
|
var t;
|
|
1525
1541
|
if (e instanceof Element)
|
|
1526
1542
|
return !0;
|
|
1527
1543
|
var n = (t = e == null ? void 0 : e.ownerDocument) === null || t === void 0 ? void 0 : t.defaultView;
|
|
1528
1544
|
return !!(n && e instanceof n.Element);
|
|
1529
|
-
},
|
|
1545
|
+
}, Vr = function(e) {
|
|
1530
1546
|
switch (e.tagName) {
|
|
1531
1547
|
case "INPUT":
|
|
1532
1548
|
if (e.type !== "image")
|
|
@@ -1541,57 +1557,57 @@ var de = function(e) {
|
|
|
1541
1557
|
return !0;
|
|
1542
1558
|
}
|
|
1543
1559
|
return !1;
|
|
1544
|
-
},
|
|
1560
|
+
}, Ae = typeof window < "u" ? window : {}, Ne = /* @__PURE__ */ new WeakMap(), zt = /auto|scroll/, Fr = /^tb|vertical/, qr = /msie|trident/i.test(Ae.navigator && Ae.navigator.userAgent), Y = function(e) {
|
|
1545
1561
|
return parseFloat(e || "0");
|
|
1546
|
-
},
|
|
1547
|
-
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new
|
|
1548
|
-
},
|
|
1549
|
-
devicePixelContentBoxSize:
|
|
1550
|
-
borderBoxSize:
|
|
1551
|
-
contentBoxSize:
|
|
1552
|
-
contentRect: new
|
|
1553
|
-
}),
|
|
1554
|
-
if (t === void 0 && (t = !1),
|
|
1555
|
-
return
|
|
1556
|
-
if (
|
|
1557
|
-
return
|
|
1558
|
-
var n = getComputedStyle(e), r =
|
|
1559
|
-
devicePixelContentBoxSize:
|
|
1560
|
-
borderBoxSize:
|
|
1561
|
-
contentBoxSize:
|
|
1562
|
-
contentRect: new
|
|
1562
|
+
}, ye = function(e, t, n) {
|
|
1563
|
+
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Ur((n ? t : e) || 0, (n ? e : t) || 0);
|
|
1564
|
+
}, $t = be({
|
|
1565
|
+
devicePixelContentBoxSize: ye(),
|
|
1566
|
+
borderBoxSize: ye(),
|
|
1567
|
+
contentBoxSize: ye(),
|
|
1568
|
+
contentRect: new hn(0, 0, 0, 0)
|
|
1569
|
+
}), bn = function(e, t) {
|
|
1570
|
+
if (t === void 0 && (t = !1), Ne.has(e) && !t)
|
|
1571
|
+
return Ne.get(e);
|
|
1572
|
+
if (pn(e))
|
|
1573
|
+
return Ne.set(e, $t), $t;
|
|
1574
|
+
var n = getComputedStyle(e), r = vt(e) && e.ownerSVGElement && e.getBBox(), s = !qr && n.boxSizing === "border-box", o = Fr.test(n.writingMode || ""), i = !r && zt.test(n.overflowY || ""), u = !r && zt.test(n.overflowX || ""), c = r ? 0 : Y(n.paddingTop), l = r ? 0 : Y(n.paddingRight), h = r ? 0 : Y(n.paddingBottom), f = r ? 0 : Y(n.paddingLeft), d = r ? 0 : Y(n.borderTopWidth), w = r ? 0 : Y(n.borderRightWidth), S = r ? 0 : Y(n.borderBottomWidth), B = r ? 0 : Y(n.borderLeftWidth), I = f + l, T = c + h, _ = B + w, k = d + S, m = u ? e.offsetHeight - k - e.clientHeight : 0, O = i ? e.offsetWidth - _ - e.clientWidth : 0, a = s ? I + _ : 0, b = s ? T + k : 0, y = r ? r.width : Y(n.width) - a - O, j = r ? r.height : Y(n.height) - b - m, q = y + I + O + _, G = j + T + m + k, E = be({
|
|
1575
|
+
devicePixelContentBoxSize: ye(Math.round(y * devicePixelRatio), Math.round(j * devicePixelRatio), o),
|
|
1576
|
+
borderBoxSize: ye(q, G, o),
|
|
1577
|
+
contentBoxSize: ye(y, j, o),
|
|
1578
|
+
contentRect: new hn(f, c, y, j)
|
|
1563
1579
|
});
|
|
1564
|
-
return
|
|
1565
|
-
},
|
|
1566
|
-
var r =
|
|
1580
|
+
return Ne.set(e, E), E;
|
|
1581
|
+
}, vn = function(e, t, n) {
|
|
1582
|
+
var r = bn(e, n), s = r.borderBoxSize, o = r.contentBoxSize, i = r.devicePixelContentBoxSize;
|
|
1567
1583
|
switch (t) {
|
|
1568
|
-
case
|
|
1584
|
+
case Be.DEVICE_PIXEL_CONTENT_BOX:
|
|
1569
1585
|
return i;
|
|
1570
|
-
case
|
|
1586
|
+
case Be.BORDER_BOX:
|
|
1571
1587
|
return s;
|
|
1572
1588
|
default:
|
|
1573
1589
|
return o;
|
|
1574
1590
|
}
|
|
1575
|
-
},
|
|
1591
|
+
}, Gr = /* @__PURE__ */ function() {
|
|
1576
1592
|
function e(t) {
|
|
1577
|
-
var n =
|
|
1578
|
-
this.target = t, this.contentRect = n.contentRect, this.borderBoxSize =
|
|
1593
|
+
var n = bn(t);
|
|
1594
|
+
this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = be([n.borderBoxSize]), this.contentBoxSize = be([n.contentBoxSize]), this.devicePixelContentBoxSize = be([n.devicePixelContentBoxSize]);
|
|
1579
1595
|
}
|
|
1580
1596
|
return e;
|
|
1581
|
-
}(),
|
|
1582
|
-
if (
|
|
1597
|
+
}(), mn = function(e) {
|
|
1598
|
+
if (pn(e))
|
|
1583
1599
|
return 1 / 0;
|
|
1584
1600
|
for (var t = 0, n = e.parentNode; n; )
|
|
1585
1601
|
t += 1, n = n.parentNode;
|
|
1586
1602
|
return t;
|
|
1587
|
-
},
|
|
1603
|
+
}, Hr = function() {
|
|
1588
1604
|
var e = 1 / 0, t = [];
|
|
1589
|
-
|
|
1605
|
+
pe.forEach(function(i) {
|
|
1590
1606
|
if (i.activeTargets.length !== 0) {
|
|
1591
1607
|
var u = [];
|
|
1592
1608
|
i.activeTargets.forEach(function(l) {
|
|
1593
|
-
var h = new
|
|
1594
|
-
u.push(h), l.lastReportedSize =
|
|
1609
|
+
var h = new Gr(l.target), f = mn(l.target);
|
|
1610
|
+
u.push(h), l.lastReportedSize = vn(l.target, l.observedBox), f < e && (e = f);
|
|
1595
1611
|
}), t.push(function() {
|
|
1596
1612
|
i.callback.call(i.observer, u, i.observer);
|
|
1597
1613
|
}), i.activeTargets.splice(0, i.activeTargets.length);
|
|
@@ -1602,38 +1618,38 @@ var de = function(e) {
|
|
|
1602
1618
|
s();
|
|
1603
1619
|
}
|
|
1604
1620
|
return e;
|
|
1605
|
-
},
|
|
1606
|
-
|
|
1621
|
+
}, Rt = function(e) {
|
|
1622
|
+
pe.forEach(function(n) {
|
|
1607
1623
|
n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(s) {
|
|
1608
|
-
s.isActive() && (
|
|
1624
|
+
s.isActive() && (mn(s.target) > e ? n.activeTargets.push(s) : n.skippedTargets.push(s));
|
|
1609
1625
|
});
|
|
1610
1626
|
});
|
|
1611
|
-
},
|
|
1627
|
+
}, Zr = function() {
|
|
1612
1628
|
var e = 0;
|
|
1613
|
-
for (
|
|
1614
|
-
e =
|
|
1615
|
-
return
|
|
1616
|
-
},
|
|
1617
|
-
return
|
|
1629
|
+
for (Rt(e); Dr(); )
|
|
1630
|
+
e = Hr(), Rt(e);
|
|
1631
|
+
return jr() && Wr(), e > 0;
|
|
1632
|
+
}, Qe, gn = [], Xr = function() {
|
|
1633
|
+
return gn.splice(0).forEach(function(e) {
|
|
1618
1634
|
return e();
|
|
1619
1635
|
});
|
|
1620
|
-
},
|
|
1621
|
-
if (!
|
|
1636
|
+
}, Yr = function(e) {
|
|
1637
|
+
if (!Qe) {
|
|
1622
1638
|
var t = 0, n = document.createTextNode(""), r = { characterData: !0 };
|
|
1623
1639
|
new MutationObserver(function() {
|
|
1624
|
-
return
|
|
1625
|
-
}).observe(n, r),
|
|
1640
|
+
return Xr();
|
|
1641
|
+
}).observe(n, r), Qe = function() {
|
|
1626
1642
|
n.textContent = "".concat(t ? t-- : t++);
|
|
1627
1643
|
};
|
|
1628
1644
|
}
|
|
1629
|
-
|
|
1630
|
-
},
|
|
1631
|
-
|
|
1645
|
+
gn.push(e), Qe();
|
|
1646
|
+
}, Jr = function(e) {
|
|
1647
|
+
Yr(function() {
|
|
1632
1648
|
requestAnimationFrame(e);
|
|
1633
1649
|
});
|
|
1634
|
-
},
|
|
1635
|
-
return !!
|
|
1636
|
-
},
|
|
1650
|
+
}, je = 0, Kr = function() {
|
|
1651
|
+
return !!je;
|
|
1652
|
+
}, Qr = 250, es = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, Nt = [
|
|
1637
1653
|
"resize",
|
|
1638
1654
|
"load",
|
|
1639
1655
|
"transitionend",
|
|
@@ -1648,9 +1664,9 @@ var de = function(e) {
|
|
|
1648
1664
|
"mouseout",
|
|
1649
1665
|
"blur",
|
|
1650
1666
|
"focus"
|
|
1651
|
-
],
|
|
1667
|
+
], Pt = function(e) {
|
|
1652
1668
|
return e === void 0 && (e = 0), Date.now() + e;
|
|
1653
|
-
},
|
|
1669
|
+
}, et = !1, ts = function() {
|
|
1654
1670
|
function e() {
|
|
1655
1671
|
var t = this;
|
|
1656
1672
|
this.stopped = !0, this.listener = function() {
|
|
@@ -1659,15 +1675,15 @@ var de = function(e) {
|
|
|
1659
1675
|
}
|
|
1660
1676
|
return e.prototype.run = function(t) {
|
|
1661
1677
|
var n = this;
|
|
1662
|
-
if (t === void 0 && (t =
|
|
1663
|
-
|
|
1664
|
-
var r =
|
|
1665
|
-
|
|
1678
|
+
if (t === void 0 && (t = Qr), !et) {
|
|
1679
|
+
et = !0;
|
|
1680
|
+
var r = Pt(t);
|
|
1681
|
+
Jr(function() {
|
|
1666
1682
|
var s = !1;
|
|
1667
1683
|
try {
|
|
1668
|
-
s =
|
|
1684
|
+
s = Zr();
|
|
1669
1685
|
} finally {
|
|
1670
|
-
if (
|
|
1686
|
+
if (et = !1, t = r - Pt(), !Kr())
|
|
1671
1687
|
return;
|
|
1672
1688
|
s ? n.run(1e3) : t > 0 ? n.run(t) : n.start();
|
|
1673
1689
|
}
|
|
@@ -1677,93 +1693,93 @@ var de = function(e) {
|
|
|
1677
1693
|
this.stop(), this.run();
|
|
1678
1694
|
}, e.prototype.observe = function() {
|
|
1679
1695
|
var t = this, n = function() {
|
|
1680
|
-
return t.observer && t.observer.observe(document.body,
|
|
1696
|
+
return t.observer && t.observer.observe(document.body, es);
|
|
1681
1697
|
};
|
|
1682
|
-
document.body ? n() :
|
|
1698
|
+
document.body ? n() : Ae.addEventListener("DOMContentLoaded", n);
|
|
1683
1699
|
}, e.prototype.start = function() {
|
|
1684
1700
|
var t = this;
|
|
1685
|
-
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(),
|
|
1686
|
-
return
|
|
1701
|
+
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Nt.forEach(function(n) {
|
|
1702
|
+
return Ae.addEventListener(n, t.listener, !0);
|
|
1687
1703
|
}));
|
|
1688
1704
|
}, e.prototype.stop = function() {
|
|
1689
1705
|
var t = this;
|
|
1690
|
-
this.stopped || (this.observer && this.observer.disconnect(),
|
|
1691
|
-
return
|
|
1706
|
+
this.stopped || (this.observer && this.observer.disconnect(), Nt.forEach(function(n) {
|
|
1707
|
+
return Ae.removeEventListener(n, t.listener, !0);
|
|
1692
1708
|
}), this.stopped = !0);
|
|
1693
1709
|
}, e;
|
|
1694
|
-
}(),
|
|
1695
|
-
!
|
|
1696
|
-
},
|
|
1697
|
-
return !
|
|
1698
|
-
},
|
|
1710
|
+
}(), ot = new ts(), Dt = function(e) {
|
|
1711
|
+
!je && e > 0 && ot.start(), je += e, !je && ot.stop();
|
|
1712
|
+
}, ns = function(e) {
|
|
1713
|
+
return !vt(e) && !Vr(e) && getComputedStyle(e).display === "inline";
|
|
1714
|
+
}, rs = function() {
|
|
1699
1715
|
function e(t, n) {
|
|
1700
|
-
this.target = t, this.observedBox = n ||
|
|
1716
|
+
this.target = t, this.observedBox = n || Be.CONTENT_BOX, this.lastReportedSize = {
|
|
1701
1717
|
inlineSize: 0,
|
|
1702
1718
|
blockSize: 0
|
|
1703
1719
|
};
|
|
1704
1720
|
}
|
|
1705
1721
|
return e.prototype.isActive = function() {
|
|
1706
|
-
var t =
|
|
1707
|
-
return
|
|
1722
|
+
var t = vn(this.target, this.observedBox, !0);
|
|
1723
|
+
return ns(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
|
|
1708
1724
|
}, e;
|
|
1709
|
-
}(),
|
|
1725
|
+
}(), ss = /* @__PURE__ */ function() {
|
|
1710
1726
|
function e(t, n) {
|
|
1711
1727
|
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t, this.callback = n;
|
|
1712
1728
|
}
|
|
1713
1729
|
return e;
|
|
1714
|
-
}(),
|
|
1730
|
+
}(), Pe = /* @__PURE__ */ new WeakMap(), jt = function(e, t) {
|
|
1715
1731
|
for (var n = 0; n < e.length; n += 1)
|
|
1716
1732
|
if (e[n].target === t)
|
|
1717
1733
|
return n;
|
|
1718
1734
|
return -1;
|
|
1719
|
-
},
|
|
1735
|
+
}, De = function() {
|
|
1720
1736
|
function e() {
|
|
1721
1737
|
}
|
|
1722
1738
|
return e.connect = function(t, n) {
|
|
1723
|
-
var r = new
|
|
1724
|
-
|
|
1739
|
+
var r = new ss(t, n);
|
|
1740
|
+
Pe.set(t, r);
|
|
1725
1741
|
}, e.observe = function(t, n, r) {
|
|
1726
|
-
var s =
|
|
1727
|
-
|
|
1742
|
+
var s = Pe.get(t), o = s.observationTargets.length === 0;
|
|
1743
|
+
jt(s.observationTargets, n) < 0 && (o && pe.push(s), s.observationTargets.push(new rs(n, r && r.box)), Dt(1), ot.schedule());
|
|
1728
1744
|
}, e.unobserve = function(t, n) {
|
|
1729
|
-
var r =
|
|
1730
|
-
s >= 0 && (o &&
|
|
1745
|
+
var r = Pe.get(t), s = jt(r.observationTargets, n), o = r.observationTargets.length === 1;
|
|
1746
|
+
s >= 0 && (o && pe.splice(pe.indexOf(r), 1), r.observationTargets.splice(s, 1), Dt(-1));
|
|
1731
1747
|
}, e.disconnect = function(t) {
|
|
1732
|
-
var n = this, r =
|
|
1748
|
+
var n = this, r = Pe.get(t);
|
|
1733
1749
|
r.observationTargets.slice().forEach(function(s) {
|
|
1734
1750
|
return n.unobserve(t, s.target);
|
|
1735
1751
|
}), r.activeTargets.splice(0, r.activeTargets.length);
|
|
1736
1752
|
}, e;
|
|
1737
|
-
}(),
|
|
1753
|
+
}(), Wt = function() {
|
|
1738
1754
|
function e(t) {
|
|
1739
1755
|
if (arguments.length === 0)
|
|
1740
1756
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1741
1757
|
if (typeof t != "function")
|
|
1742
1758
|
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
1743
|
-
|
|
1759
|
+
De.connect(this, t);
|
|
1744
1760
|
}
|
|
1745
1761
|
return e.prototype.observe = function(t, n) {
|
|
1746
1762
|
if (arguments.length === 0)
|
|
1747
1763
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1748
|
-
if (!
|
|
1764
|
+
if (!Lt(t))
|
|
1749
1765
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1750
|
-
|
|
1766
|
+
De.observe(this, t, n);
|
|
1751
1767
|
}, e.prototype.unobserve = function(t) {
|
|
1752
1768
|
if (arguments.length === 0)
|
|
1753
1769
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1754
|
-
if (!
|
|
1770
|
+
if (!Lt(t))
|
|
1755
1771
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1756
|
-
|
|
1772
|
+
De.unobserve(this, t);
|
|
1757
1773
|
}, e.prototype.disconnect = function() {
|
|
1758
|
-
|
|
1774
|
+
De.disconnect(this);
|
|
1759
1775
|
}, e.toString = function() {
|
|
1760
1776
|
return "function ResizeObserver () { [polyfill code] }";
|
|
1761
1777
|
}, e;
|
|
1762
1778
|
}();
|
|
1763
|
-
const
|
|
1779
|
+
const os = ["disabled", "title"], is = {
|
|
1764
1780
|
key: 1,
|
|
1765
1781
|
class: "stack-tab__button"
|
|
1766
|
-
},
|
|
1782
|
+
}, it = /* @__PURE__ */ Q({
|
|
1767
1783
|
__name: "TabHeaderButton",
|
|
1768
1784
|
props: {
|
|
1769
1785
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1773,23 +1789,23 @@ const ss = ["disabled", "title"], os = {
|
|
|
1773
1789
|
},
|
|
1774
1790
|
setup(e) {
|
|
1775
1791
|
return (t, n) => (z(), P("div", {
|
|
1776
|
-
class:
|
|
1792
|
+
class: ce(["stack-tab__header-button", {
|
|
1777
1793
|
"stack-tab__shadow-right": t.shadow === "right",
|
|
1778
1794
|
"stack-tab__shadow-left": t.shadow === "left"
|
|
1779
1795
|
}]),
|
|
1780
1796
|
disabled: t.disabled ? "disabled" : null,
|
|
1781
1797
|
title: t.title
|
|
1782
1798
|
}, [
|
|
1783
|
-
"icon" in t.$slots ?
|
|
1799
|
+
"icon" in t.$slots ? ne("", !0) : (z(), P("div", {
|
|
1784
1800
|
key: 0,
|
|
1785
|
-
class:
|
|
1801
|
+
class: ce(["stack-tab__mask-button", t.iconClass])
|
|
1786
1802
|
}, null, 2)),
|
|
1787
|
-
"icon" in t.$slots ? (z(), P("div",
|
|
1788
|
-
|
|
1789
|
-
])) :
|
|
1790
|
-
], 10,
|
|
1803
|
+
"icon" in t.$slots ? (z(), P("div", is, [
|
|
1804
|
+
ke(t.$slots, "icon")
|
|
1805
|
+
])) : ne("", !0)
|
|
1806
|
+
], 10, os));
|
|
1791
1807
|
}
|
|
1792
|
-
}),
|
|
1808
|
+
}), as = /* @__PURE__ */ Q({
|
|
1793
1809
|
__name: "TabHeaderScroll",
|
|
1794
1810
|
props: {
|
|
1795
1811
|
space: { default: 300 },
|
|
@@ -1797,144 +1813,144 @@ const ss = ["disabled", "title"], os = {
|
|
|
1797
1813
|
isScrollButton: { type: Boolean, default: !0 }
|
|
1798
1814
|
},
|
|
1799
1815
|
setup(e, { expose: t }) {
|
|
1800
|
-
const n =
|
|
1816
|
+
const n = $(null), r = $(null), s = $(null), o = $(!1), i = $(!1), u = $(!1), c = $(!0), l = $(), h = e, f = Ie({
|
|
1801
1817
|
clientWidth: 0,
|
|
1802
1818
|
scrollWidth: 0,
|
|
1803
1819
|
scrollLeft: 0
|
|
1804
|
-
}), d =
|
|
1820
|
+
}), d = Ie({
|
|
1805
1821
|
thumbLeft: 0,
|
|
1806
1822
|
startScrollLeft: 0,
|
|
1807
1823
|
startThumbLeft: 0,
|
|
1808
1824
|
startPageX: 0
|
|
1809
1825
|
});
|
|
1810
|
-
|
|
1811
|
-
|
|
1826
|
+
En(f, (E) => {
|
|
1827
|
+
w(E);
|
|
1812
1828
|
});
|
|
1813
|
-
const
|
|
1814
|
-
i.value =
|
|
1815
|
-
},
|
|
1816
|
-
if (!
|
|
1829
|
+
const w = (E) => {
|
|
1830
|
+
i.value = E.scrollLeft <= 10, u.value = E.clientWidth + E.scrollLeft - E.scrollWidth >= -10, c.value = E.scrollWidth !== E.clientWidth;
|
|
1831
|
+
}, S = ge(() => f.scrollWidth > f.clientWidth), B = ge(() => {
|
|
1832
|
+
if (!S.value)
|
|
1817
1833
|
return 0;
|
|
1818
|
-
const { clientWidth:
|
|
1819
|
-
return
|
|
1820
|
-
}), I =
|
|
1821
|
-
if (!
|
|
1834
|
+
const { clientWidth: E, scrollWidth: M } = f;
|
|
1835
|
+
return E / M * E;
|
|
1836
|
+
}), I = ge(() => {
|
|
1837
|
+
if (!S.value)
|
|
1822
1838
|
return 0;
|
|
1823
|
-
const { clientWidth:
|
|
1824
|
-
return (
|
|
1839
|
+
const { clientWidth: E, scrollWidth: M, scrollLeft: U } = f;
|
|
1840
|
+
return (E - B.value) * (U / (M - E));
|
|
1825
1841
|
}), T = () => {
|
|
1826
1842
|
if (n.value === null || n.value === void 0)
|
|
1827
1843
|
return;
|
|
1828
|
-
const { clientWidth:
|
|
1829
|
-
Object.assign(f, { clientWidth:
|
|
1830
|
-
},
|
|
1844
|
+
const { clientWidth: E, scrollWidth: M, scrollLeft: U } = n.value;
|
|
1845
|
+
Object.assign(f, { clientWidth: E, scrollWidth: M, scrollLeft: U });
|
|
1846
|
+
}, _ = new Wt(() => {
|
|
1831
1847
|
var M;
|
|
1832
1848
|
T();
|
|
1833
|
-
const
|
|
1834
|
-
|
|
1835
|
-
}),
|
|
1836
|
-
var
|
|
1837
|
-
if (!
|
|
1838
|
-
const M = (
|
|
1839
|
-
M && (
|
|
1849
|
+
const E = (M = n.value) == null ? void 0 : M.querySelector(".stack-tab__item.is-active");
|
|
1850
|
+
E && (G(E) || q(E));
|
|
1851
|
+
}), k = new Wt(() => {
|
|
1852
|
+
var E;
|
|
1853
|
+
if (!S.value) {
|
|
1854
|
+
const M = (E = n.value) == null ? void 0 : E.querySelector(".stack-tab__item.is-active");
|
|
1855
|
+
M && (G(M) || q(M));
|
|
1840
1856
|
}
|
|
1841
1857
|
T();
|
|
1842
|
-
}),
|
|
1843
|
-
|
|
1844
|
-
},
|
|
1845
|
-
|
|
1846
|
-
},
|
|
1847
|
-
const M =
|
|
1848
|
-
|
|
1849
|
-
},
|
|
1858
|
+
}), m = (E, M = !0) => {
|
|
1859
|
+
rn({ wrap: n.value, left: E, smooth: M });
|
|
1860
|
+
}, O = (E) => {
|
|
1861
|
+
m(n.value.scrollLeft + E);
|
|
1862
|
+
}, a = (E) => {
|
|
1863
|
+
const M = E.deltaY < 0;
|
|
1864
|
+
m(n.value.scrollLeft + (M ? -h.space : h.space));
|
|
1865
|
+
}, b = (E) => {
|
|
1850
1866
|
var M;
|
|
1851
1867
|
Object.assign(d, {
|
|
1852
|
-
startPageX:
|
|
1868
|
+
startPageX: E.pageX,
|
|
1853
1869
|
startScrollLeft: (M = n.value) == null ? void 0 : M.scrollLeft,
|
|
1854
1870
|
startThumbLeft: I.value,
|
|
1855
1871
|
thumbLeft: I.value
|
|
1856
|
-
}), o.value = !0, document.addEventListener("mousemove",
|
|
1857
|
-
},
|
|
1872
|
+
}), o.value = !0, document.addEventListener("mousemove", y), document.addEventListener("mouseup", j);
|
|
1873
|
+
}, y = (E) => {
|
|
1858
1874
|
const { clientWidth: M, scrollWidth: U } = f;
|
|
1859
|
-
let
|
|
1860
|
-
const
|
|
1861
|
-
|
|
1862
|
-
},
|
|
1863
|
-
o.value = !1, document.removeEventListener("mousemove",
|
|
1875
|
+
let le = d.startThumbLeft + E.pageX - d.startPageX;
|
|
1876
|
+
const Xe = M - B.value;
|
|
1877
|
+
le < 0 ? le = 0 : le > Xe && (le = Xe), d.thumbLeft = le, m(le * (U - M) / (M - B.value), !1), E.preventDefault();
|
|
1878
|
+
}, j = (E) => {
|
|
1879
|
+
o.value = !1, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", j), E.preventDefault();
|
|
1864
1880
|
};
|
|
1865
|
-
|
|
1881
|
+
qe(() => {
|
|
1866
1882
|
var M;
|
|
1867
|
-
|
|
1868
|
-
const
|
|
1869
|
-
|
|
1870
|
-
}),
|
|
1871
|
-
|
|
1883
|
+
_.observe(l.value);
|
|
1884
|
+
const E = (M = n.value) == null ? void 0 : M.querySelector(".stack-tab__nav");
|
|
1885
|
+
k.observe(E);
|
|
1886
|
+
}), Ge(() => {
|
|
1887
|
+
_.disconnect(), k.disconnect();
|
|
1872
1888
|
});
|
|
1873
|
-
const
|
|
1874
|
-
|
|
1875
|
-
},
|
|
1876
|
-
if (!
|
|
1889
|
+
const q = (E) => {
|
|
1890
|
+
Yn({ el: E, wrap: n, block: "end", inline: "center" });
|
|
1891
|
+
}, G = (E) => {
|
|
1892
|
+
if (!S.value)
|
|
1877
1893
|
return !0;
|
|
1878
|
-
const M =
|
|
1879
|
-
return !(M < U || M +
|
|
1894
|
+
const M = E.offsetLeft, U = n.value.scrollLeft;
|
|
1895
|
+
return !(M < U || M + E.clientWidth > U + n.value.clientWidth);
|
|
1880
1896
|
};
|
|
1881
|
-
return t({ scrollIntoView:
|
|
1882
|
-
|
|
1897
|
+
return t({ scrollIntoView: q, isInView: G }), (E, M) => (z(), P(He, null, [
|
|
1898
|
+
c.value ? (z(), ve(it, {
|
|
1883
1899
|
key: 0,
|
|
1884
1900
|
"icon-class": "stack-tab__icon-left-arrow",
|
|
1885
1901
|
disabled: i.value,
|
|
1886
|
-
onClick: M[0] || (M[0] = (U) => !i.value &&
|
|
1887
|
-
}, null, 8, ["disabled"])) :
|
|
1888
|
-
|
|
1902
|
+
onClick: M[0] || (M[0] = (U) => !i.value && O(-1 * E.space))
|
|
1903
|
+
}, null, 8, ["disabled"])) : ne("", !0),
|
|
1904
|
+
K("div", {
|
|
1889
1905
|
ref_key: "headerScroll",
|
|
1890
1906
|
ref: l,
|
|
1891
1907
|
class: "stack-tab__scroll",
|
|
1892
|
-
onWheel:
|
|
1908
|
+
onWheel: we(a, ["prevent"])
|
|
1893
1909
|
}, [
|
|
1894
|
-
|
|
1910
|
+
K("div", {
|
|
1895
1911
|
ref_key: "container",
|
|
1896
1912
|
ref: n,
|
|
1897
|
-
class:
|
|
1913
|
+
class: ce(["stack-tab__scroll-container", {
|
|
1898
1914
|
"stack-tab__shadow-inset-left": !i.value && u.value,
|
|
1899
1915
|
"stack-tab__shadow-inset-right": !u.value && i.value,
|
|
1900
1916
|
"stack-tab__shadow-inset-all": !i.value && !u.value
|
|
1901
1917
|
}]),
|
|
1902
1918
|
onScrollPassive: T
|
|
1903
1919
|
}, [
|
|
1904
|
-
|
|
1920
|
+
ke(E.$slots, "default")
|
|
1905
1921
|
], 34),
|
|
1906
|
-
|
|
1922
|
+
Yt(K("div", {
|
|
1907
1923
|
ref_key: "bar",
|
|
1908
1924
|
ref: r,
|
|
1909
|
-
class:
|
|
1925
|
+
class: ce(["stack-tab__scrollbar", { "is-dragging": o.value }])
|
|
1910
1926
|
}, [
|
|
1911
|
-
|
|
1927
|
+
K("div", {
|
|
1912
1928
|
ref_key: "thumb",
|
|
1913
1929
|
ref: s,
|
|
1914
|
-
class:
|
|
1915
|
-
style:
|
|
1930
|
+
class: ce(["stack-tab__scrollbar-thumb", { "is-dragging": o.value }]),
|
|
1931
|
+
style: ct({
|
|
1916
1932
|
width: `${B.value}px`,
|
|
1917
1933
|
transform: `translateX(${I.value}px)`
|
|
1918
1934
|
}),
|
|
1919
|
-
onMousedown:
|
|
1935
|
+
onMousedown: we(b, ["prevent"])
|
|
1920
1936
|
}, null, 38)
|
|
1921
1937
|
], 2), [
|
|
1922
|
-
[
|
|
1938
|
+
[Jt, S.value]
|
|
1923
1939
|
])
|
|
1924
1940
|
], 544),
|
|
1925
|
-
|
|
1941
|
+
c.value ? (z(), ve(it, {
|
|
1926
1942
|
key: 1,
|
|
1927
1943
|
"icon-class": "stack-tab__icon-right-arrow",
|
|
1928
1944
|
disabled: u.value,
|
|
1929
|
-
onClick: M[1] || (M[1] = (U) => !u.value &&
|
|
1930
|
-
}, null, 8, ["disabled"])) :
|
|
1945
|
+
onClick: M[1] || (M[1] = (U) => !u.value && O(E.space))
|
|
1946
|
+
}, null, 8, ["disabled"])) : ne("", !0)
|
|
1931
1947
|
], 64));
|
|
1932
1948
|
}
|
|
1933
|
-
}),
|
|
1949
|
+
}), cs = { class: "stack-tab__header" }, ls = /* @__PURE__ */ Q({
|
|
1934
1950
|
__name: "index",
|
|
1935
1951
|
props: {
|
|
1936
1952
|
space: {},
|
|
1937
|
-
tabScrollMode: { default:
|
|
1953
|
+
tabScrollMode: { default: he.BOTH },
|
|
1938
1954
|
tabTransition: { default: () => ({
|
|
1939
1955
|
name: "stack-tab-zoom"
|
|
1940
1956
|
}) },
|
|
@@ -1943,44 +1959,40 @@ const ss = ["disabled", "title"], os = {
|
|
|
1943
1959
|
},
|
|
1944
1960
|
emits: ["active"],
|
|
1945
1961
|
setup(e, { emit: t }) {
|
|
1946
|
-
const { t: n } =
|
|
1962
|
+
const { t: n } = Ze(), r = at("maximum"), s = t, o = $(), { shown: i, contextMenuData: u, showContextMenu: c } = zr(), l = e, { removeTab: h, active: f, tabs: d } = Me(), w = ge(() => typeof l.tabTransition == "string" ? {
|
|
1947
1963
|
name: l.tabTransition
|
|
1948
|
-
} : l.tabTransition),
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
}, T = (w, _, y) => {
|
|
1955
|
-
o.value && (Zt(() => {
|
|
1956
|
-
o.value.isInView(_.value) || o.value.scrollIntoView(_.value);
|
|
1957
|
-
}), f(w.id, y), s("active", w.id));
|
|
1964
|
+
} : l.tabTransition), S = ge(() => l.tabScrollMode === he.BOTH || l.tabScrollMode === he.BUTTON), B = l.tabScrollMode === he.BOTH || l.tabScrollMode === he.WHEEL, I = (_) => {
|
|
1965
|
+
_.closable && h(_.id), i.value = !1;
|
|
1966
|
+
}, T = (_, k, m) => {
|
|
1967
|
+
o.value && (de(() => {
|
|
1968
|
+
o.value.isInView(k.value) || o.value.scrollIntoView(k.value);
|
|
1969
|
+
}), f(_.id, m), s("active", _.id));
|
|
1958
1970
|
};
|
|
1959
|
-
return (
|
|
1960
|
-
|
|
1961
|
-
N(
|
|
1971
|
+
return (_, k) => (z(), P("div", cs, [
|
|
1972
|
+
ke(_.$slots, "leftButton"),
|
|
1973
|
+
N(as, {
|
|
1962
1974
|
ref_key: "scroll",
|
|
1963
1975
|
ref: o,
|
|
1964
|
-
space:
|
|
1965
|
-
"is-scroll-wheel":
|
|
1966
|
-
"is-scroll-button":
|
|
1976
|
+
space: _.space,
|
|
1977
|
+
"is-scroll-wheel": x(B),
|
|
1978
|
+
"is-scroll-button": S.value
|
|
1967
1979
|
}, {
|
|
1968
|
-
default:
|
|
1969
|
-
N(
|
|
1980
|
+
default: ae(() => [
|
|
1981
|
+
N(Kt, An({
|
|
1970
1982
|
key: "tabItemTrans",
|
|
1971
1983
|
tag: "ul",
|
|
1972
1984
|
class: "stack-tab__nav"
|
|
1973
|
-
},
|
|
1974
|
-
default:
|
|
1975
|
-
(z(!0), P(
|
|
1976
|
-
key:
|
|
1977
|
-
contextmenu:
|
|
1978
|
-
item:
|
|
1979
|
-
onContextmenu:
|
|
1980
|
-
(
|
|
1985
|
+
}, w.value, { appear: "" }), {
|
|
1986
|
+
default: ae(() => [
|
|
1987
|
+
(z(!0), P(He, null, lt(x(d), (m, O) => (z(), ve(Pr, {
|
|
1988
|
+
key: m.id,
|
|
1989
|
+
contextmenu: _.contextmenu,
|
|
1990
|
+
item: m,
|
|
1991
|
+
onContextmenu: we(
|
|
1992
|
+
(a) => x(c)(a, m, O, x(d).length),
|
|
1981
1993
|
["prevent"]
|
|
1982
1994
|
),
|
|
1983
|
-
onMouseup:
|
|
1995
|
+
onMouseup: we((a) => I(m), ["middle", "prevent"]),
|
|
1984
1996
|
onClose: I,
|
|
1985
1997
|
onActive: T
|
|
1986
1998
|
}, null, 8, ["contextmenu", "item", "onContextmenu", "onMouseup"]))), 128))
|
|
@@ -1990,189 +2002,189 @@ const ss = ["disabled", "title"], os = {
|
|
|
1990
2002
|
]),
|
|
1991
2003
|
_: 1
|
|
1992
2004
|
}, 8, ["space", "is-scroll-wheel", "is-scroll-button"]),
|
|
1993
|
-
|
|
1994
|
-
N(
|
|
1995
|
-
"icon-class":
|
|
1996
|
-
title:
|
|
1997
|
-
onClick:
|
|
2005
|
+
ke(_.$slots, "rightButton"),
|
|
2006
|
+
N(it, {
|
|
2007
|
+
"icon-class": x(r) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
|
|
2008
|
+
title: x(n)("VueStackTab.maximum"),
|
|
2009
|
+
onClick: k[0] || (k[0] = (m) => r.value = !x(r))
|
|
1998
2010
|
}, null, 8, ["icon-class", "title"]),
|
|
1999
|
-
N(
|
|
2011
|
+
N(Qt, {
|
|
2000
2012
|
name: "stack-tab-zoom",
|
|
2001
2013
|
appear: ""
|
|
2002
2014
|
}, {
|
|
2003
|
-
default:
|
|
2004
|
-
|
|
2015
|
+
default: ae(() => [
|
|
2016
|
+
x(i) ? (z(), ve(Lr, {
|
|
2005
2017
|
key: "tabMenuTrans",
|
|
2006
|
-
left:
|
|
2007
|
-
top:
|
|
2008
|
-
"tab-item":
|
|
2009
|
-
max:
|
|
2010
|
-
index:
|
|
2011
|
-
}, null, 8, ["left", "top", "tab-item", "max", "index"])) :
|
|
2018
|
+
left: x(u).left,
|
|
2019
|
+
top: x(u).top,
|
|
2020
|
+
"tab-item": x(u).item,
|
|
2021
|
+
max: x(u).max,
|
|
2022
|
+
index: x(u).index
|
|
2023
|
+
}, null, 8, ["left", "top", "tab-item", "max", "index"])) : ne("", !0)
|
|
2012
2024
|
]),
|
|
2013
2025
|
_: 1
|
|
2014
2026
|
})
|
|
2015
2027
|
]));
|
|
2016
2028
|
}
|
|
2017
2029
|
});
|
|
2018
|
-
var
|
|
2019
|
-
function
|
|
2020
|
-
var t =
|
|
2030
|
+
var us = typeof global == "object" && global && global.Object === Object && global, fs = typeof self == "object" && self && self.Object === Object && self, yn = us || fs || Function("return this")(), Ve = yn.Symbol, wn = Object.prototype, ds = wn.hasOwnProperty, hs = wn.toString, Te = Ve ? Ve.toStringTag : void 0;
|
|
2031
|
+
function ps(e) {
|
|
2032
|
+
var t = ds.call(e, Te), n = e[Te];
|
|
2021
2033
|
try {
|
|
2022
|
-
e[
|
|
2034
|
+
e[Te] = void 0;
|
|
2023
2035
|
var r = !0;
|
|
2024
2036
|
} catch {
|
|
2025
2037
|
}
|
|
2026
|
-
var s =
|
|
2027
|
-
return r && (t ? e[
|
|
2038
|
+
var s = hs.call(e);
|
|
2039
|
+
return r && (t ? e[Te] = n : delete e[Te]), s;
|
|
2028
2040
|
}
|
|
2029
|
-
var
|
|
2030
|
-
function
|
|
2031
|
-
return
|
|
2041
|
+
var bs = Object.prototype, vs = bs.toString;
|
|
2042
|
+
function ms(e) {
|
|
2043
|
+
return vs.call(e);
|
|
2032
2044
|
}
|
|
2033
|
-
var
|
|
2034
|
-
function
|
|
2035
|
-
return e == null ? e === void 0 ?
|
|
2045
|
+
var gs = "[object Null]", ys = "[object Undefined]", Ut = Ve ? Ve.toStringTag : void 0;
|
|
2046
|
+
function ws(e) {
|
|
2047
|
+
return e == null ? e === void 0 ? ys : gs : Ut && Ut in Object(e) ? ps(e) : ms(e);
|
|
2036
2048
|
}
|
|
2037
2049
|
function ks(e) {
|
|
2038
2050
|
return e != null && typeof e == "object";
|
|
2039
2051
|
}
|
|
2040
|
-
var
|
|
2041
|
-
function
|
|
2042
|
-
return typeof e == "symbol" || ks(e) &&
|
|
2052
|
+
var _s = "[object Symbol]";
|
|
2053
|
+
function Ts(e) {
|
|
2054
|
+
return typeof e == "symbol" || ks(e) && ws(e) == _s;
|
|
2043
2055
|
}
|
|
2044
|
-
var
|
|
2045
|
-
function
|
|
2046
|
-
for (var t = e.length; t-- &&
|
|
2056
|
+
var xs = /\s/;
|
|
2057
|
+
function Ss(e) {
|
|
2058
|
+
for (var t = e.length; t-- && xs.test(e.charAt(t)); )
|
|
2047
2059
|
;
|
|
2048
2060
|
return t;
|
|
2049
2061
|
}
|
|
2050
|
-
var
|
|
2051
|
-
function
|
|
2052
|
-
return e && e.slice(0,
|
|
2062
|
+
var Os = /^\s+/;
|
|
2063
|
+
function Es(e) {
|
|
2064
|
+
return e && e.slice(0, Ss(e) + 1).replace(Os, "");
|
|
2053
2065
|
}
|
|
2054
|
-
function
|
|
2066
|
+
function Fe(e) {
|
|
2055
2067
|
var t = typeof e;
|
|
2056
2068
|
return e != null && (t == "object" || t == "function");
|
|
2057
2069
|
}
|
|
2058
|
-
var
|
|
2059
|
-
function
|
|
2070
|
+
var Vt = NaN, As = /^[-+]0x[0-9a-f]+$/i, Is = /^0b[01]+$/i, Bs = /^0o[0-7]+$/i, Cs = parseInt;
|
|
2071
|
+
function Ft(e) {
|
|
2060
2072
|
if (typeof e == "number")
|
|
2061
2073
|
return e;
|
|
2062
|
-
if (
|
|
2063
|
-
return
|
|
2064
|
-
if (
|
|
2074
|
+
if (Ts(e))
|
|
2075
|
+
return Vt;
|
|
2076
|
+
if (Fe(e)) {
|
|
2065
2077
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
2066
|
-
e =
|
|
2078
|
+
e = Fe(t) ? t + "" : t;
|
|
2067
2079
|
}
|
|
2068
2080
|
if (typeof e != "string")
|
|
2069
2081
|
return e === 0 ? e : +e;
|
|
2070
|
-
e =
|
|
2071
|
-
var n =
|
|
2072
|
-
return n ||
|
|
2082
|
+
e = Es(e);
|
|
2083
|
+
var n = Is.test(e);
|
|
2084
|
+
return n || Bs.test(e) ? Cs(e.slice(2), n ? 2 : 8) : As.test(e) ? Vt : +e;
|
|
2073
2085
|
}
|
|
2074
|
-
var
|
|
2075
|
-
return
|
|
2076
|
-
},
|
|
2077
|
-
function
|
|
2078
|
-
var r, s, o, i, u,
|
|
2086
|
+
var tt = function() {
|
|
2087
|
+
return yn.Date.now();
|
|
2088
|
+
}, Ms = "Expected a function", Ls = Math.max, zs = Math.min;
|
|
2089
|
+
function $s(e, t, n) {
|
|
2090
|
+
var r, s, o, i, u, c, l = 0, h = !1, f = !1, d = !0;
|
|
2079
2091
|
if (typeof e != "function")
|
|
2080
|
-
throw new TypeError(
|
|
2081
|
-
t =
|
|
2082
|
-
function
|
|
2083
|
-
var
|
|
2084
|
-
return r = s = void 0, l =
|
|
2092
|
+
throw new TypeError(Ms);
|
|
2093
|
+
t = Ft(t) || 0, Fe(n) && (h = !!n.leading, f = "maxWait" in n, o = f ? Ls(Ft(n.maxWait) || 0, t) : o, d = "trailing" in n ? !!n.trailing : d);
|
|
2094
|
+
function w(a) {
|
|
2095
|
+
var b = r, y = s;
|
|
2096
|
+
return r = s = void 0, l = a, i = e.apply(y, b), i;
|
|
2085
2097
|
}
|
|
2086
|
-
function
|
|
2087
|
-
return l =
|
|
2098
|
+
function S(a) {
|
|
2099
|
+
return l = a, u = setTimeout(T, t), h ? w(a) : i;
|
|
2088
2100
|
}
|
|
2089
|
-
function B(
|
|
2090
|
-
var
|
|
2091
|
-
return f ?
|
|
2101
|
+
function B(a) {
|
|
2102
|
+
var b = a - c, y = a - l, j = t - b;
|
|
2103
|
+
return f ? zs(j, o - y) : j;
|
|
2092
2104
|
}
|
|
2093
|
-
function I(
|
|
2094
|
-
var
|
|
2095
|
-
return
|
|
2105
|
+
function I(a) {
|
|
2106
|
+
var b = a - c, y = a - l;
|
|
2107
|
+
return c === void 0 || b >= t || b < 0 || f && y >= o;
|
|
2096
2108
|
}
|
|
2097
2109
|
function T() {
|
|
2098
|
-
var
|
|
2099
|
-
if (I(
|
|
2100
|
-
return
|
|
2101
|
-
u = setTimeout(T, B(
|
|
2110
|
+
var a = tt();
|
|
2111
|
+
if (I(a))
|
|
2112
|
+
return _(a);
|
|
2113
|
+
u = setTimeout(T, B(a));
|
|
2102
2114
|
}
|
|
2103
|
-
function
|
|
2104
|
-
return u = void 0, d && r ?
|
|
2115
|
+
function _(a) {
|
|
2116
|
+
return u = void 0, d && r ? w(a) : (r = s = void 0, i);
|
|
2105
2117
|
}
|
|
2106
|
-
function
|
|
2107
|
-
u !== void 0 && clearTimeout(u), l = 0, r =
|
|
2118
|
+
function k() {
|
|
2119
|
+
u !== void 0 && clearTimeout(u), l = 0, r = c = s = u = void 0;
|
|
2108
2120
|
}
|
|
2109
|
-
function
|
|
2110
|
-
return u === void 0 ? i :
|
|
2121
|
+
function m() {
|
|
2122
|
+
return u === void 0 ? i : _(tt());
|
|
2111
2123
|
}
|
|
2112
|
-
function
|
|
2113
|
-
var
|
|
2114
|
-
if (r = arguments, s = this,
|
|
2124
|
+
function O() {
|
|
2125
|
+
var a = tt(), b = I(a);
|
|
2126
|
+
if (r = arguments, s = this, c = a, b) {
|
|
2115
2127
|
if (u === void 0)
|
|
2116
|
-
return
|
|
2128
|
+
return S(c);
|
|
2117
2129
|
if (f)
|
|
2118
|
-
return clearTimeout(u), u = setTimeout(T, t),
|
|
2130
|
+
return clearTimeout(u), u = setTimeout(T, t), w(c);
|
|
2119
2131
|
}
|
|
2120
2132
|
return u === void 0 && (u = setTimeout(T, t)), i;
|
|
2121
2133
|
}
|
|
2122
|
-
return
|
|
2134
|
+
return O.cancel = k, O.flush = m, O;
|
|
2123
2135
|
}
|
|
2124
|
-
var
|
|
2125
|
-
function
|
|
2136
|
+
var Rs = "Expected a function";
|
|
2137
|
+
function Ns(e, t, n) {
|
|
2126
2138
|
var r = !0, s = !0;
|
|
2127
2139
|
if (typeof e != "function")
|
|
2128
|
-
throw new TypeError(
|
|
2129
|
-
return
|
|
2140
|
+
throw new TypeError(Rs);
|
|
2141
|
+
return Fe(n) && (r = "leading" in n ? !!n.leading : r, s = "trailing" in n ? !!n.trailing : s), $s(e, t, {
|
|
2130
2142
|
leading: r,
|
|
2131
2143
|
maxWait: t,
|
|
2132
2144
|
trailing: s
|
|
2133
2145
|
});
|
|
2134
2146
|
}
|
|
2135
|
-
let
|
|
2136
|
-
const
|
|
2137
|
-
const e =
|
|
2147
|
+
let qt;
|
|
2148
|
+
const Ps = () => {
|
|
2149
|
+
const e = ut(), { active: t, hasTab: n, pageShown: r, reset: s, canAddTab: o } = Me(), i = Ce(), u = Ns((h) => new Promise((f, d) => {
|
|
2138
2150
|
if (!r.value) {
|
|
2139
2151
|
d();
|
|
2140
2152
|
return;
|
|
2141
2153
|
}
|
|
2142
|
-
const
|
|
2143
|
-
if (n(
|
|
2144
|
-
i.emit(
|
|
2154
|
+
const w = te(h, { refreshable: !0, closable: !0, iframe: !1 });
|
|
2155
|
+
if (n(w.id)) {
|
|
2156
|
+
i.emit(F.TAB_ACTIVE, { id: w.id }), f(w.id);
|
|
2145
2157
|
return;
|
|
2146
2158
|
}
|
|
2147
|
-
if (
|
|
2159
|
+
if (w.id || (w.id = an()), !o()) {
|
|
2148
2160
|
d("Max Size");
|
|
2149
2161
|
return;
|
|
2150
2162
|
}
|
|
2151
|
-
|
|
2152
|
-
}), 500),
|
|
2153
|
-
const d =
|
|
2154
|
-
let
|
|
2163
|
+
c(h, w), f(w.id);
|
|
2164
|
+
}), 500), c = (h, f) => {
|
|
2165
|
+
const d = dn(f);
|
|
2166
|
+
let w = te(
|
|
2155
2167
|
{
|
|
2156
2168
|
__tab: d
|
|
2157
2169
|
},
|
|
2158
2170
|
h.query
|
|
2159
|
-
),
|
|
2171
|
+
), S;
|
|
2160
2172
|
if (h.iframe) {
|
|
2161
2173
|
const B = encodeURIComponent(h.path);
|
|
2162
|
-
|
|
2174
|
+
S = qt, w.__src = B;
|
|
2163
2175
|
} else {
|
|
2164
|
-
const B =
|
|
2165
|
-
|
|
2176
|
+
const B = bt(h.path);
|
|
2177
|
+
S = B.path, w = te(B.query, w);
|
|
2166
2178
|
}
|
|
2167
2179
|
e.push({
|
|
2168
|
-
path:
|
|
2169
|
-
query:
|
|
2180
|
+
path: S,
|
|
2181
|
+
query: w
|
|
2170
2182
|
});
|
|
2171
2183
|
};
|
|
2172
2184
|
return { openNewTab: u, setIFramePath: (h) => {
|
|
2173
|
-
|
|
2185
|
+
qt = h;
|
|
2174
2186
|
}, active: t, reset: s };
|
|
2175
|
-
},
|
|
2187
|
+
}, Ds = { class: "stack-tab__container" }, js = ["src"], Ws = /* @__PURE__ */ Q({
|
|
2176
2188
|
__name: "StackTabs",
|
|
2177
2189
|
props: {
|
|
2178
2190
|
defaultTabs: { default: () => [] },
|
|
@@ -2181,7 +2193,7 @@ const Ns = () => {
|
|
|
2181
2193
|
contextmenu: { type: [Boolean, Object], default: !0 },
|
|
2182
2194
|
pageTransition: { default: "stack-tab-swap" },
|
|
2183
2195
|
tabTransition: { default: "stack-tab-zoom" },
|
|
2184
|
-
tabScrollMode: { default:
|
|
2196
|
+
tabScrollMode: { default: he.BOTH },
|
|
2185
2197
|
width: { default: "100%" },
|
|
2186
2198
|
height: { default: "100%" },
|
|
2187
2199
|
i18n: { default: "zh-CN" },
|
|
@@ -2191,59 +2203,61 @@ const Ns = () => {
|
|
|
2191
2203
|
},
|
|
2192
2204
|
emits: ["onActive", "onPageLoaded"],
|
|
2193
2205
|
setup(e, { emit: t }) {
|
|
2194
|
-
const { tabs: n, pageShown: r, caches: s, destroy: o, addPage: i, initial: u, setMaxSize:
|
|
2195
|
-
|
|
2196
|
-
const { setIFramePath:
|
|
2197
|
-
|
|
2206
|
+
const { tabs: n, pageShown: r, caches: s, destroy: o, addPage: i, initial: u, setMaxSize: c, setGlobalScroll: l } = Me(), h = t, f = e, { changeLocale: d } = Ze(), w = $(!1);
|
|
2207
|
+
In("maximum", w);
|
|
2208
|
+
const { setIFramePath: S } = Ps();
|
|
2209
|
+
S(f.iframePath), l(f.globalScroll), d(f.i18n), Bn(() => {
|
|
2198
2210
|
u(f.defaultTabs);
|
|
2199
2211
|
});
|
|
2200
|
-
const B = (
|
|
2201
|
-
h("onActive",
|
|
2212
|
+
const B = (k, m) => i(k, m), I = (k) => {
|
|
2213
|
+
h("onActive", k);
|
|
2202
2214
|
};
|
|
2203
|
-
|
|
2215
|
+
c(f.max), Cn(() => {
|
|
2204
2216
|
o();
|
|
2205
2217
|
});
|
|
2206
2218
|
const T = () => {
|
|
2207
2219
|
h("onPageLoaded");
|
|
2208
|
-
};
|
|
2209
|
-
return (
|
|
2210
|
-
const
|
|
2220
|
+
}, _ = $(!0);
|
|
2221
|
+
return (k, m) => {
|
|
2222
|
+
const O = Zt("router-view");
|
|
2211
2223
|
return z(), P("div", {
|
|
2212
|
-
class:
|
|
2213
|
-
style:
|
|
2214
|
-
width:
|
|
2215
|
-
height:
|
|
2216
|
-
"z-index":
|
|
2224
|
+
class: ce(["stack-tab", { "stack-tab__maximum": w.value }]),
|
|
2225
|
+
style: ct({
|
|
2226
|
+
width: k.width,
|
|
2227
|
+
height: k.height,
|
|
2228
|
+
"z-index": w.value ? x(sn)("body *:not(.stack-tab,.stack-tab *)") : void 0
|
|
2217
2229
|
})
|
|
2218
2230
|
}, [
|
|
2219
|
-
N(
|
|
2220
|
-
space:
|
|
2231
|
+
N(ls, {
|
|
2232
|
+
space: k.space,
|
|
2221
2233
|
onActive: I,
|
|
2222
|
-
"tab-transition":
|
|
2223
|
-
max:
|
|
2234
|
+
"tab-transition": k.tabTransition,
|
|
2235
|
+
max: k.max
|
|
2224
2236
|
}, {
|
|
2225
|
-
leftButton:
|
|
2226
|
-
|
|
2237
|
+
leftButton: ae(() => [
|
|
2238
|
+
ke(k.$slots, "leftButton")
|
|
2227
2239
|
]),
|
|
2228
|
-
rightButton:
|
|
2229
|
-
|
|
2240
|
+
rightButton: ae(() => [
|
|
2241
|
+
ke(k.$slots, "rightButton")
|
|
2230
2242
|
]),
|
|
2231
2243
|
_: 3
|
|
2232
2244
|
}, 8, ["space", "tab-transition", "max"]),
|
|
2233
|
-
|
|
2234
|
-
N(
|
|
2235
|
-
default:
|
|
2236
|
-
N(
|
|
2237
|
-
name:
|
|
2238
|
-
|
|
2245
|
+
K("div", Ds, [
|
|
2246
|
+
N(O, null, {
|
|
2247
|
+
default: ae(({ Component: a, route: b }) => [
|
|
2248
|
+
N(Qt, {
|
|
2249
|
+
name: k.pageTransition,
|
|
2250
|
+
onBeforeLeave: m[0] || (m[0] = (y) => _.value = !1),
|
|
2251
|
+
onAfterLeave: m[1] || (m[1] = (y) => _.value = !0),
|
|
2252
|
+
appear: "",
|
|
2239
2253
|
mode: "out-in"
|
|
2240
2254
|
}, {
|
|
2241
|
-
default:
|
|
2242
|
-
(z(),
|
|
2243
|
-
|
|
2244
|
-
key:
|
|
2255
|
+
default: ae(() => [
|
|
2256
|
+
(z(), ve(Mn, { include: x(s) }, [
|
|
2257
|
+
x(r) ? (z(), ve(Ln(B(b, a)), {
|
|
2258
|
+
key: b.fullPath,
|
|
2245
2259
|
onOnLoaded: T
|
|
2246
|
-
}, null, 32)) :
|
|
2260
|
+
}, null, 32)) : ne("", !0)
|
|
2247
2261
|
], 1032, ["include"]))
|
|
2248
2262
|
]),
|
|
2249
2263
|
_: 2
|
|
@@ -2251,18 +2265,19 @@ const Ns = () => {
|
|
|
2251
2265
|
]),
|
|
2252
2266
|
_: 1
|
|
2253
2267
|
}),
|
|
2254
|
-
N(
|
|
2255
|
-
name:
|
|
2256
|
-
appear: ""
|
|
2268
|
+
N(Kt, {
|
|
2269
|
+
name: k.pageTransition,
|
|
2270
|
+
appear: "",
|
|
2271
|
+
mode: "in-out"
|
|
2257
2272
|
}, {
|
|
2258
|
-
default:
|
|
2259
|
-
(z(!0), P(
|
|
2260
|
-
key:
|
|
2273
|
+
default: ae(() => [
|
|
2274
|
+
(z(!0), P(He, null, lt(x(n).filter((a) => a.iframe), (a) => Yt((z(), P("iframe", {
|
|
2275
|
+
key: a.id,
|
|
2261
2276
|
class: "stack-tab__iframe",
|
|
2262
|
-
src: /^(javascript|data):/i.test(
|
|
2277
|
+
src: /^(javascript|data):/i.test(a.url ?? "") ? "about:blank" : a.url,
|
|
2263
2278
|
frameborder: "0"
|
|
2264
|
-
}, null, 8,
|
|
2265
|
-
[
|
|
2279
|
+
}, null, 8, js)), [
|
|
2280
|
+
[Jt, a.active && _.value]
|
|
2266
2281
|
])), 128))
|
|
2267
2282
|
]),
|
|
2268
2283
|
_: 1
|
|
@@ -2271,52 +2286,51 @@ const Ns = () => {
|
|
|
2271
2286
|
], 6);
|
|
2272
2287
|
};
|
|
2273
2288
|
}
|
|
2274
|
-
}),
|
|
2289
|
+
}), mt = typeof Buffer == "function";
|
|
2275
2290
|
typeof TextDecoder == "function" && new TextDecoder();
|
|
2276
|
-
const
|
|
2291
|
+
const Gt = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Us = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Se = Array.prototype.slice.call(Us);
|
|
2277
2292
|
((e) => {
|
|
2278
2293
|
let t = {};
|
|
2279
2294
|
return e.forEach((n, r) => t[n] = r), t;
|
|
2280
|
-
})(
|
|
2281
|
-
const
|
|
2295
|
+
})(Se);
|
|
2296
|
+
const J = String.fromCharCode.bind(String);
|
|
2282
2297
|
typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
|
|
2283
|
-
const
|
|
2298
|
+
const Vs = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), Fs = (e) => {
|
|
2284
2299
|
let t, n, r, s, o = "";
|
|
2285
2300
|
const i = e.length % 3;
|
|
2286
2301
|
for (let u = 0; u < e.length; ) {
|
|
2287
2302
|
if ((n = e.charCodeAt(u++)) > 255 || (r = e.charCodeAt(u++)) > 255 || (s = e.charCodeAt(u++)) > 255)
|
|
2288
2303
|
throw new TypeError("invalid character found");
|
|
2289
|
-
t = n << 16 | r << 8 | s, o +=
|
|
2304
|
+
t = n << 16 | r << 8 | s, o += Se[t >> 18 & 63] + Se[t >> 12 & 63] + Se[t >> 6 & 63] + Se[t & 63];
|
|
2290
2305
|
}
|
|
2291
2306
|
return i ? o.slice(0, i - 3) + "===".substring(i) : o;
|
|
2292
|
-
}, kn = typeof btoa == "function" ? (e) => btoa(e) :
|
|
2307
|
+
}, kn = typeof btoa == "function" ? (e) => btoa(e) : mt ? (e) => Buffer.from(e, "binary").toString("base64") : Fs, qs = mt ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
2293
2308
|
let n = [];
|
|
2294
2309
|
for (let r = 0, s = e.length; r < s; r += 4096)
|
|
2295
|
-
n.push(
|
|
2310
|
+
n.push(J.apply(null, e.subarray(r, r + 4096)));
|
|
2296
2311
|
return kn(n.join(""));
|
|
2297
|
-
},
|
|
2312
|
+
}, Gs = (e) => {
|
|
2298
2313
|
if (e.length < 2) {
|
|
2299
2314
|
var t = e.charCodeAt(0);
|
|
2300
|
-
return t < 128 ? e : t < 2048 ?
|
|
2315
|
+
return t < 128 ? e : t < 2048 ? J(192 | t >>> 6) + J(128 | t & 63) : J(224 | t >>> 12 & 15) + J(128 | t >>> 6 & 63) + J(128 | t & 63);
|
|
2301
2316
|
} else {
|
|
2302
2317
|
var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
2303
|
-
return
|
|
2318
|
+
return J(240 | t >>> 18 & 7) + J(128 | t >>> 12 & 63) + J(128 | t >>> 6 & 63) + J(128 | t & 63);
|
|
2304
2319
|
}
|
|
2305
|
-
},
|
|
2306
|
-
const r = `<?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: ${e}</tspan></text></g></svg>`, i = "data:image/svg+xml;base64," + Zs(r), u = "font-size: 1px; padding: " + Math.floor(100 / 4) + "px " + Math.floor(580 / 2) + "px; line-height: " + Math.floor(100 / 2) + "px;";
|
|
2320
|
+
}, Hs = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Zs = (e) => e.replace(Hs, Gs), Ht = mt ? (e) => Buffer.from(e, "utf8").toString("base64") : Gt ? (e) => qs(Gt.encode(e)) : (e) => kn(Zs(e)), Xs = (e, t = !1) => t ? Vs(Ht(e)) : Ht(e), Ys = (e) => {
|
|
2321
|
+
const r = `<?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: ${e}</tspan></text></g></svg>`, i = "data:image/svg+xml;base64," + Xs(r), u = "font-size: 1px; padding: " + Math.floor(100 / 4) + "px " + Math.floor(580 / 2) + "px; line-height: " + Math.floor(100 / 2) + "px;";
|
|
2307
2322
|
window.console.log(
|
|
2308
2323
|
"%c+",
|
|
2309
2324
|
u + `background-image: url(${i});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
|
|
2310
2325
|
);
|
|
2311
|
-
},
|
|
2312
|
-
const { attrs: e, props: t } =
|
|
2326
|
+
}, Js = () => {
|
|
2327
|
+
const { attrs: e, props: t } = en(), { pageShown: n, getTab: r, markDeletableCache: s, removeComponent: o, getComponent: i, addPageScroller: u } = Me(), c = zn(), l = ut();
|
|
2313
2328
|
let h = "", f = "";
|
|
2314
2329
|
h = e.tId || t.tId;
|
|
2315
2330
|
const d = e.pId || t.pId;
|
|
2316
|
-
return f =
|
|
2331
|
+
return f = c.query.__tab, {
|
|
2317
2332
|
forward: (I) => {
|
|
2318
|
-
|
|
2319
|
-
const T = ee(
|
|
2333
|
+
const T = te(
|
|
2320
2334
|
{
|
|
2321
2335
|
__tab: f
|
|
2322
2336
|
},
|
|
@@ -2328,76 +2342,75 @@ const Us = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
2328
2342
|
});
|
|
2329
2343
|
},
|
|
2330
2344
|
backward: (I, T) => {
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
if (!w)
|
|
2345
|
+
const _ = r(h);
|
|
2346
|
+
if (!_)
|
|
2334
2347
|
return;
|
|
2335
|
-
const
|
|
2336
|
-
let
|
|
2348
|
+
const k = _.pages;
|
|
2349
|
+
let m = 0;
|
|
2337
2350
|
if (typeof I == "number")
|
|
2338
|
-
|
|
2351
|
+
m = Math.abs(I);
|
|
2339
2352
|
else {
|
|
2340
|
-
let
|
|
2341
|
-
const
|
|
2342
|
-
T =
|
|
2343
|
-
for (let
|
|
2344
|
-
if (
|
|
2345
|
-
|
|
2353
|
+
let b = 1, y = !1;
|
|
2354
|
+
const j = k.list(), q = bt(I);
|
|
2355
|
+
T = te(q.query, T);
|
|
2356
|
+
for (let G = k.size() - 2; G >= 0; G--) {
|
|
2357
|
+
if (j[G].path === q.path) {
|
|
2358
|
+
y = !0;
|
|
2346
2359
|
break;
|
|
2347
2360
|
}
|
|
2348
|
-
|
|
2361
|
+
b += 1;
|
|
2349
2362
|
}
|
|
2350
|
-
|
|
2363
|
+
y && (m = b);
|
|
2351
2364
|
}
|
|
2352
|
-
if (
|
|
2365
|
+
if (m === 0 || k.size() <= m)
|
|
2353
2366
|
return;
|
|
2354
|
-
for (let
|
|
2355
|
-
const
|
|
2356
|
-
o(
|
|
2367
|
+
for (let b = 0; b < m; b++) {
|
|
2368
|
+
const y = k.pop();
|
|
2369
|
+
o(y.id), s(y.id);
|
|
2357
2370
|
}
|
|
2358
|
-
const
|
|
2359
|
-
if (
|
|
2360
|
-
const
|
|
2361
|
-
|
|
2371
|
+
const O = k == null ? void 0 : k.peek(), a = i(O.id);
|
|
2372
|
+
if (a != null) {
|
|
2373
|
+
const b = a.components.DynamicComponent;
|
|
2374
|
+
b.props = te(T, b.props);
|
|
2362
2375
|
}
|
|
2363
2376
|
l.push({
|
|
2364
|
-
path:
|
|
2365
|
-
query:
|
|
2377
|
+
path: O.path,
|
|
2378
|
+
query: O.query
|
|
2366
2379
|
});
|
|
2367
2380
|
},
|
|
2368
2381
|
addScroller: (...I) => {
|
|
2369
2382
|
u(d, ...I);
|
|
2370
2383
|
}
|
|
2371
2384
|
};
|
|
2372
|
-
},
|
|
2385
|
+
}, to = /* @__PURE__ */ Q({
|
|
2373
2386
|
__name: "iframe",
|
|
2374
2387
|
setup(e) {
|
|
2375
|
-
return
|
|
2388
|
+
return Js(), (t, n) => (z(), P("div"));
|
|
2376
2389
|
}
|
|
2377
|
-
}),
|
|
2378
|
-
const e =
|
|
2379
|
-
|
|
2390
|
+
}), no = () => {
|
|
2391
|
+
const e = Ce(), { attrs: t } = en();
|
|
2392
|
+
Ge(() => {
|
|
2380
2393
|
r();
|
|
2381
2394
|
});
|
|
2382
2395
|
const n = () => {
|
|
2383
|
-
e.emit(
|
|
2396
|
+
e.emit(F.PAGE_LOADING, { tId: t.tId, value: !0 });
|
|
2384
2397
|
}, r = () => {
|
|
2385
|
-
e.emit(
|
|
2398
|
+
e.emit(F.PAGE_LOADING, { tId: t.tId, value: !1 });
|
|
2386
2399
|
};
|
|
2387
2400
|
return { openTabLoading: n, closeTabLoading: r };
|
|
2388
|
-
},
|
|
2401
|
+
}, ro = {
|
|
2389
2402
|
install(e, t) {
|
|
2390
|
-
|
|
2403
|
+
Ys("0.1.31"), e.component("VueStackTabs", Ws).use(xr).use(Xn().getI18n(t));
|
|
2391
2404
|
}
|
|
2392
2405
|
};
|
|
2393
2406
|
export {
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2407
|
+
to as IFrame,
|
|
2408
|
+
Ye as Stack,
|
|
2409
|
+
Ws as StackTab,
|
|
2410
|
+
it as TabHeaderButton,
|
|
2411
|
+
he as TabScrollMode,
|
|
2412
|
+
ro as default,
|
|
2413
|
+
Ps as useStackTab,
|
|
2414
|
+
no as useTabLoading,
|
|
2415
|
+
Js as useTabRouter
|
|
2403
2416
|
};
|