vue-stack-tabs 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue-stack-tabs.es.js +843 -841
- package/dist/vue-stack-tabs.umd.js +5 -5
- package/package.json +1 -1
- package/src/lib/components/OverlayLoading/{js/Component.vue → Component.vue} +5 -2
- package/src/lib/components/OverlayLoading/{js/api.ts → api.ts} +3 -2
- package/src/lib/components/OverlayLoading/{js/helpers.ts → helpers.ts} +7 -2
- package/src/lib/components/OverlayLoading/index.ts +2 -2
- package/src/lib/hooks/useTabpanel.tsx +8 -7
|
@@ -33,7 +33,7 @@ const Xa = Object.prototype.hasOwnProperty;
|
|
|
33
33
|
function rn(e, t) {
|
|
34
34
|
return Xa.call(e, t);
|
|
35
35
|
}
|
|
36
|
-
const q = Array.isArray, X = (e) => typeof e == "function", P = (e) => typeof e == "string",
|
|
36
|
+
const q = Array.isArray, X = (e) => typeof e == "function", P = (e) => typeof e == "string", B = (e) => typeof e == "boolean", G = (e) => e !== null && typeof e == "object", za = (e) => G(e) && X(e.then) && X(e.catch), As = Object.prototype.toString, Cs = (e) => As.call(e), V = (e) => {
|
|
37
37
|
if (!G(e))
|
|
38
38
|
return !1;
|
|
39
39
|
const t = Object.getPrototypeOf(e);
|
|
@@ -189,37 +189,37 @@ const ao = /<\/?[\w\s="/.':;#-\/]+>/, oo = (e) => ao.test(e), Re = " ", io = "\r
|
|
|
189
189
|
function uo(e) {
|
|
190
190
|
const t = e;
|
|
191
191
|
let n = 0, s = 1, a = 1, r = 0;
|
|
192
|
-
const o = (
|
|
192
|
+
const o = (y) => t[y] === io && t[y + 1] === _e, i = (y) => t[y] === _e, l = (y) => t[y] === co, c = (y) => t[y] === lo, h = (y) => o(y) || i(y) || l(y) || c(y), m = () => n, f = () => s, E = () => a, N = () => r, I = (y) => o(y) || l(y) || c(y) ? _e : t[y], S = () => I(n), d = () => I(n + r);
|
|
193
193
|
function p() {
|
|
194
194
|
return r = 0, h(n) && (s++, a = 0), o(n) && n++, n++, a++, t[n];
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function v() {
|
|
197
197
|
return o(n + r) && r++, r++, t[n + r];
|
|
198
198
|
}
|
|
199
199
|
function g() {
|
|
200
200
|
n = 0, s = 1, a = 1, r = 0;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
r =
|
|
202
|
+
function k(y = 0) {
|
|
203
|
+
r = y;
|
|
204
204
|
}
|
|
205
205
|
function b() {
|
|
206
|
-
const
|
|
207
|
-
for (;
|
|
206
|
+
const y = n + r;
|
|
207
|
+
for (; y !== n; )
|
|
208
208
|
p();
|
|
209
209
|
r = 0;
|
|
210
210
|
}
|
|
211
211
|
return {
|
|
212
212
|
index: m,
|
|
213
213
|
line: f,
|
|
214
|
-
column:
|
|
215
|
-
peekOffset:
|
|
214
|
+
column: E,
|
|
215
|
+
peekOffset: N,
|
|
216
216
|
charAt: I,
|
|
217
|
-
currentChar:
|
|
217
|
+
currentChar: S,
|
|
218
218
|
currentPeek: d,
|
|
219
219
|
next: p,
|
|
220
|
-
peek:
|
|
220
|
+
peek: v,
|
|
221
221
|
reset: g,
|
|
222
|
-
resetPeek:
|
|
222
|
+
resetPeek: k,
|
|
223
223
|
skipToPeek: b
|
|
224
224
|
};
|
|
225
225
|
}
|
|
@@ -238,27 +238,27 @@ function mo(e, t = {}) {
|
|
|
238
238
|
inLinked: !1,
|
|
239
239
|
text: ""
|
|
240
240
|
}, c = () => l, { onError: h } = t;
|
|
241
|
-
function m(_, u,
|
|
241
|
+
function m(_, u, L, ...F) {
|
|
242
242
|
const $ = c();
|
|
243
|
-
if (u.column +=
|
|
243
|
+
if (u.column += L, u.offset += L, h) {
|
|
244
244
|
const j = n ? In($.startLoc, u) : null, Oe = Ot(_, j, {
|
|
245
245
|
domain: _o,
|
|
246
|
-
args:
|
|
246
|
+
args: F
|
|
247
247
|
});
|
|
248
248
|
h(Oe);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
function f(_, u,
|
|
251
|
+
function f(_, u, L) {
|
|
252
252
|
_.endLoc = r(), _.currentType = u;
|
|
253
|
-
const
|
|
254
|
-
return n && (
|
|
253
|
+
const F = { type: u };
|
|
254
|
+
return n && (F.loc = In(_.startLoc, _.endLoc)), L != null && (F.value = L), F;
|
|
255
255
|
}
|
|
256
|
-
const
|
|
256
|
+
const E = (_) => f(
|
|
257
257
|
_,
|
|
258
258
|
14
|
|
259
259
|
/* TokenTypes.EOF */
|
|
260
260
|
);
|
|
261
|
-
function
|
|
261
|
+
function N(_, u) {
|
|
262
262
|
return _.currentChar() === u ? (_.next(), u) : (m(U.EXPECTED_TOKEN, r(), 0, u), "");
|
|
263
263
|
}
|
|
264
264
|
function I(_) {
|
|
@@ -267,7 +267,7 @@ function mo(e, t = {}) {
|
|
|
267
267
|
u += _.currentPeek(), _.peek();
|
|
268
268
|
return u;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function S(_) {
|
|
271
271
|
const u = I(_);
|
|
272
272
|
return _.skipToPeek(), u;
|
|
273
273
|
}
|
|
@@ -285,62 +285,62 @@ function mo(e, t = {}) {
|
|
|
285
285
|
const u = _.charCodeAt(0);
|
|
286
286
|
return u >= 48 && u <= 57;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
const { currentType:
|
|
290
|
-
if (
|
|
288
|
+
function v(_, u) {
|
|
289
|
+
const { currentType: L } = u;
|
|
290
|
+
if (L !== 2)
|
|
291
291
|
return !1;
|
|
292
292
|
I(_);
|
|
293
|
-
const
|
|
294
|
-
return _.resetPeek(),
|
|
293
|
+
const F = d(_.currentPeek());
|
|
294
|
+
return _.resetPeek(), F;
|
|
295
295
|
}
|
|
296
296
|
function g(_, u) {
|
|
297
|
-
const { currentType:
|
|
298
|
-
if (
|
|
297
|
+
const { currentType: L } = u;
|
|
298
|
+
if (L !== 2)
|
|
299
299
|
return !1;
|
|
300
300
|
I(_);
|
|
301
|
-
const
|
|
301
|
+
const F = _.currentPeek() === "-" ? _.peek() : _.currentPeek(), $ = p(F);
|
|
302
302
|
return _.resetPeek(), $;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
const { currentType:
|
|
306
|
-
if (
|
|
304
|
+
function k(_, u) {
|
|
305
|
+
const { currentType: L } = u;
|
|
306
|
+
if (L !== 2)
|
|
307
307
|
return !1;
|
|
308
308
|
I(_);
|
|
309
|
-
const
|
|
310
|
-
return _.resetPeek(),
|
|
309
|
+
const F = _.currentPeek() === Tr;
|
|
310
|
+
return _.resetPeek(), F;
|
|
311
311
|
}
|
|
312
312
|
function b(_, u) {
|
|
313
|
-
const { currentType:
|
|
314
|
-
if (
|
|
313
|
+
const { currentType: L } = u;
|
|
314
|
+
if (L !== 8)
|
|
315
315
|
return !1;
|
|
316
316
|
I(_);
|
|
317
|
-
const
|
|
318
|
-
return _.resetPeek(),
|
|
317
|
+
const F = _.currentPeek() === ".";
|
|
318
|
+
return _.resetPeek(), F;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
const { currentType:
|
|
322
|
-
if (
|
|
320
|
+
function y(_, u) {
|
|
321
|
+
const { currentType: L } = u;
|
|
322
|
+
if (L !== 9)
|
|
323
323
|
return !1;
|
|
324
324
|
I(_);
|
|
325
|
-
const
|
|
326
|
-
return _.resetPeek(),
|
|
325
|
+
const F = d(_.currentPeek());
|
|
326
|
+
return _.resetPeek(), F;
|
|
327
327
|
}
|
|
328
328
|
function C(_, u) {
|
|
329
|
-
const { currentType:
|
|
330
|
-
if (!(
|
|
329
|
+
const { currentType: L } = u;
|
|
330
|
+
if (!(L === 8 || L === 12))
|
|
331
331
|
return !1;
|
|
332
332
|
I(_);
|
|
333
|
-
const
|
|
334
|
-
return _.resetPeek(),
|
|
333
|
+
const F = _.currentPeek() === ":";
|
|
334
|
+
return _.resetPeek(), F;
|
|
335
335
|
}
|
|
336
336
|
function T(_, u) {
|
|
337
|
-
const { currentType:
|
|
338
|
-
if (
|
|
337
|
+
const { currentType: L } = u;
|
|
338
|
+
if (L !== 10)
|
|
339
339
|
return !1;
|
|
340
|
-
const
|
|
340
|
+
const F = () => {
|
|
341
341
|
const j = _.currentPeek();
|
|
342
|
-
return j === "{" ? d(_.peek()) : j === "@" || j === "%" || j === "|" || j === ":" || j === "." || j === Re || !j ? !1 : j === _e ? (_.peek(),
|
|
343
|
-
}, $ =
|
|
342
|
+
return j === "{" ? d(_.peek()) : j === "@" || j === "%" || j === "|" || j === ":" || j === "." || j === Re || !j ? !1 : j === _e ? (_.peek(), F()) : d(j);
|
|
343
|
+
}, $ = F();
|
|
344
344
|
return _.resetPeek(), $;
|
|
345
345
|
}
|
|
346
346
|
function w(_) {
|
|
@@ -348,103 +348,103 @@ function mo(e, t = {}) {
|
|
|
348
348
|
const u = _.currentPeek() === "|";
|
|
349
349
|
return _.resetPeek(), u;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
const u = I(_),
|
|
351
|
+
function D(_) {
|
|
352
|
+
const u = I(_), L = _.currentPeek() === "%" && _.peek() === "{";
|
|
353
353
|
return _.resetPeek(), {
|
|
354
|
-
isModulo:
|
|
354
|
+
isModulo: L,
|
|
355
355
|
hasSpace: u.length > 0
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
const
|
|
358
|
+
function O(_, u = !0) {
|
|
359
|
+
const L = ($ = !1, j = "", Oe = !1) => {
|
|
360
360
|
const we = _.currentPeek();
|
|
361
|
-
return we === "{" ? j === "%" ? !1 : $ : we === "@" || !we ? j === "%" ? !0 : $ : we === "%" ? (_.peek(),
|
|
362
|
-
},
|
|
363
|
-
return u && _.resetPeek(),
|
|
361
|
+
return we === "{" ? j === "%" ? !1 : $ : we === "@" || !we ? j === "%" ? !0 : $ : we === "%" ? (_.peek(), L($, "%", !0)) : we === "|" ? j === "%" || Oe ? !0 : !(j === Re || j === _e) : we === Re ? (_.peek(), L(!0, Re, Oe)) : we === _e ? (_.peek(), L(!0, _e, Oe)) : !0;
|
|
362
|
+
}, F = L();
|
|
363
|
+
return u && _.resetPeek(), F;
|
|
364
364
|
}
|
|
365
365
|
function M(_, u) {
|
|
366
|
-
const
|
|
367
|
-
return
|
|
366
|
+
const L = _.currentChar();
|
|
367
|
+
return L === He ? He : u(L) ? (_.next(), L) : null;
|
|
368
368
|
}
|
|
369
369
|
function Z(_) {
|
|
370
|
-
return M(_, (
|
|
371
|
-
const
|
|
372
|
-
return
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
370
|
+
return M(_, (L) => {
|
|
371
|
+
const F = L.charCodeAt(0);
|
|
372
|
+
return F >= 97 && F <= 122 || // a-z
|
|
373
|
+
F >= 65 && F <= 90 || // A-Z
|
|
374
|
+
F >= 48 && F <= 57 || // 0-9
|
|
375
|
+
F === 95 || // _
|
|
376
|
+
F === 36;
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
379
|
function K(_) {
|
|
380
|
-
return M(_, (
|
|
381
|
-
const
|
|
382
|
-
return
|
|
380
|
+
return M(_, (L) => {
|
|
381
|
+
const F = L.charCodeAt(0);
|
|
382
|
+
return F >= 48 && F <= 57;
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
function te(_) {
|
|
386
|
-
return M(_, (
|
|
387
|
-
const
|
|
388
|
-
return
|
|
389
|
-
|
|
390
|
-
|
|
386
|
+
return M(_, (L) => {
|
|
387
|
+
const F = L.charCodeAt(0);
|
|
388
|
+
return F >= 48 && F <= 57 || // 0-9
|
|
389
|
+
F >= 65 && F <= 70 || // A-F
|
|
390
|
+
F >= 97 && F <= 102;
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
393
|
function de(_) {
|
|
394
|
-
let u = "",
|
|
394
|
+
let u = "", L = "";
|
|
395
395
|
for (; u = K(_); )
|
|
396
|
-
|
|
397
|
-
return
|
|
396
|
+
L += u;
|
|
397
|
+
return L;
|
|
398
398
|
}
|
|
399
399
|
function Ve(_) {
|
|
400
|
-
|
|
400
|
+
S(_);
|
|
401
401
|
const u = _.currentChar();
|
|
402
402
|
return u !== "%" && m(U.EXPECTED_TOKEN, r(), 0, u), _.next(), "%";
|
|
403
403
|
}
|
|
404
404
|
function Ce(_) {
|
|
405
405
|
let u = "";
|
|
406
406
|
for (; ; ) {
|
|
407
|
-
const
|
|
408
|
-
if (
|
|
407
|
+
const L = _.currentChar();
|
|
408
|
+
if (L === "{" || L === "}" || L === "@" || L === "|" || !L)
|
|
409
409
|
break;
|
|
410
|
-
if (
|
|
411
|
-
if (
|
|
412
|
-
u +=
|
|
410
|
+
if (L === "%")
|
|
411
|
+
if (O(_))
|
|
412
|
+
u += L, _.next();
|
|
413
413
|
else
|
|
414
414
|
break;
|
|
415
|
-
else if (
|
|
416
|
-
if (
|
|
417
|
-
u +=
|
|
415
|
+
else if (L === Re || L === _e)
|
|
416
|
+
if (O(_))
|
|
417
|
+
u += L, _.next();
|
|
418
418
|
else {
|
|
419
419
|
if (w(_))
|
|
420
420
|
break;
|
|
421
|
-
u +=
|
|
421
|
+
u += L, _.next();
|
|
422
422
|
}
|
|
423
423
|
else
|
|
424
|
-
u +=
|
|
424
|
+
u += L, _.next();
|
|
425
425
|
}
|
|
426
426
|
return u;
|
|
427
427
|
}
|
|
428
428
|
function yt(_) {
|
|
429
|
-
|
|
430
|
-
let u = "",
|
|
429
|
+
S(_);
|
|
430
|
+
let u = "", L = "";
|
|
431
431
|
for (; u = Z(_); )
|
|
432
|
-
|
|
433
|
-
return _.currentChar() === He && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0),
|
|
432
|
+
L += u;
|
|
433
|
+
return _.currentChar() === He && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0), L;
|
|
434
434
|
}
|
|
435
435
|
function Lt(_) {
|
|
436
|
-
|
|
436
|
+
S(_);
|
|
437
437
|
let u = "";
|
|
438
438
|
return _.currentChar() === "-" ? (_.next(), u += `-${de(_)}`) : u += de(_), _.currentChar() === He && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0), u;
|
|
439
439
|
}
|
|
440
440
|
function Ee(_) {
|
|
441
|
-
|
|
442
|
-
let u = "",
|
|
443
|
-
const
|
|
444
|
-
for (; u = M(_,
|
|
445
|
-
u === "\\" ?
|
|
441
|
+
S(_), N(_, "'");
|
|
442
|
+
let u = "", L = "";
|
|
443
|
+
const F = (j) => j !== Tr && j !== _e;
|
|
444
|
+
for (; u = M(_, F); )
|
|
445
|
+
u === "\\" ? L += ft(_) : L += u;
|
|
446
446
|
const $ = _.currentChar();
|
|
447
|
-
return $ === _e || $ === He ? (m(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), $ === _e && (_.next(),
|
|
447
|
+
return $ === _e || $ === He ? (m(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), $ === _e && (_.next(), N(_, "'")), L) : (N(_, "'"), L);
|
|
448
448
|
}
|
|
449
449
|
function ft(_) {
|
|
450
450
|
const u = _.currentChar();
|
|
@@ -460,128 +460,128 @@ function mo(e, t = {}) {
|
|
|
460
460
|
return m(U.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, u), "";
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function dt(_, u,
|
|
464
|
-
|
|
465
|
-
let
|
|
466
|
-
for (let $ = 0; $ <
|
|
463
|
+
function dt(_, u, L) {
|
|
464
|
+
N(_, u);
|
|
465
|
+
let F = "";
|
|
466
|
+
for (let $ = 0; $ < L; $++) {
|
|
467
467
|
const j = te(_);
|
|
468
468
|
if (!j) {
|
|
469
|
-
m(U.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${u}${
|
|
469
|
+
m(U.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${u}${F}${_.currentChar()}`);
|
|
470
470
|
break;
|
|
471
471
|
}
|
|
472
|
-
|
|
472
|
+
F += j;
|
|
473
473
|
}
|
|
474
|
-
return `\\${u}${
|
|
474
|
+
return `\\${u}${F}`;
|
|
475
475
|
}
|
|
476
476
|
function It(_) {
|
|
477
|
-
|
|
478
|
-
let u = "",
|
|
479
|
-
const
|
|
480
|
-
for (; u = M(_,
|
|
481
|
-
|
|
482
|
-
return
|
|
477
|
+
S(_);
|
|
478
|
+
let u = "", L = "";
|
|
479
|
+
const F = ($) => $ !== "{" && $ !== "}" && $ !== Re && $ !== _e;
|
|
480
|
+
for (; u = M(_, F); )
|
|
481
|
+
L += u;
|
|
482
|
+
return L;
|
|
483
483
|
}
|
|
484
484
|
function kt(_) {
|
|
485
|
-
let u = "",
|
|
485
|
+
let u = "", L = "";
|
|
486
486
|
for (; u = Z(_); )
|
|
487
|
-
|
|
488
|
-
return
|
|
487
|
+
L += u;
|
|
488
|
+
return L;
|
|
489
489
|
}
|
|
490
490
|
function St(_) {
|
|
491
|
-
const u = (
|
|
491
|
+
const u = (L = !1, F) => {
|
|
492
492
|
const $ = _.currentChar();
|
|
493
|
-
return $ === "{" || $ === "%" || $ === "@" || $ === "|" || $ === "(" || $ === ")" || !$ || $ === Re ?
|
|
493
|
+
return $ === "{" || $ === "%" || $ === "@" || $ === "|" || $ === "(" || $ === ")" || !$ || $ === Re ? F : $ === _e || $ === fo ? (F += $, _.next(), u(L, F)) : (F += $, _.next(), u(!0, F));
|
|
494
494
|
};
|
|
495
495
|
return u(!1, "");
|
|
496
496
|
}
|
|
497
497
|
function _t(_) {
|
|
498
|
-
|
|
499
|
-
const u =
|
|
498
|
+
S(_);
|
|
499
|
+
const u = N(
|
|
500
500
|
_,
|
|
501
501
|
"|"
|
|
502
502
|
/* TokenChars.Pipe */
|
|
503
503
|
);
|
|
504
|
-
return
|
|
504
|
+
return S(_), u;
|
|
505
505
|
}
|
|
506
506
|
function Je(_, u) {
|
|
507
|
-
let
|
|
507
|
+
let L = null;
|
|
508
508
|
switch (_.currentChar()) {
|
|
509
509
|
case "{":
|
|
510
|
-
return u.braceNest >= 1 && m(U.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), _.next(),
|
|
510
|
+
return u.braceNest >= 1 && m(U.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), _.next(), L = f(
|
|
511
511
|
u,
|
|
512
512
|
2,
|
|
513
513
|
"{"
|
|
514
514
|
/* TokenChars.BraceLeft */
|
|
515
|
-
),
|
|
515
|
+
), S(_), u.braceNest++, L;
|
|
516
516
|
case "}":
|
|
517
|
-
return u.braceNest > 0 && u.currentType === 2 && m(U.EMPTY_PLACEHOLDER, r(), 0), _.next(),
|
|
517
|
+
return u.braceNest > 0 && u.currentType === 2 && m(U.EMPTY_PLACEHOLDER, r(), 0), _.next(), L = f(
|
|
518
518
|
u,
|
|
519
519
|
3,
|
|
520
520
|
"}"
|
|
521
521
|
/* TokenChars.BraceRight */
|
|
522
|
-
), u.braceNest--, u.braceNest > 0 &&
|
|
522
|
+
), u.braceNest--, u.braceNest > 0 && S(_), u.inLinked && u.braceNest === 0 && (u.inLinked = !1), L;
|
|
523
523
|
case "@":
|
|
524
|
-
return u.braceNest > 0 && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0),
|
|
524
|
+
return u.braceNest > 0 && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0), L = We(_, u) || E(u), u.braceNest = 0, L;
|
|
525
525
|
default:
|
|
526
526
|
let $ = !0, j = !0, Oe = !0;
|
|
527
527
|
if (w(_))
|
|
528
|
-
return u.braceNest > 0 && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0),
|
|
528
|
+
return u.braceNest > 0 && m(U.UNTERMINATED_CLOSING_BRACE, r(), 0), L = f(u, 1, _t(_)), u.braceNest = 0, u.inLinked = !1, L;
|
|
529
529
|
if (u.braceNest > 0 && (u.currentType === 5 || u.currentType === 6 || u.currentType === 7))
|
|
530
530
|
return m(U.UNTERMINATED_CLOSING_BRACE, r(), 0), u.braceNest = 0, Qe(_, u);
|
|
531
|
-
if ($ =
|
|
532
|
-
return
|
|
531
|
+
if ($ = v(_, u))
|
|
532
|
+
return L = f(u, 5, yt(_)), S(_), L;
|
|
533
533
|
if (j = g(_, u))
|
|
534
|
-
return
|
|
535
|
-
if (Oe =
|
|
536
|
-
return
|
|
534
|
+
return L = f(u, 6, Lt(_)), S(_), L;
|
|
535
|
+
if (Oe = k(_, u))
|
|
536
|
+
return L = f(u, 7, Ee(_)), S(_), L;
|
|
537
537
|
if (!$ && !j && !Oe)
|
|
538
|
-
return
|
|
538
|
+
return L = f(u, 13, It(_)), m(U.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, L.value), S(_), L;
|
|
539
539
|
break;
|
|
540
540
|
}
|
|
541
|
-
return
|
|
541
|
+
return L;
|
|
542
542
|
}
|
|
543
543
|
function We(_, u) {
|
|
544
|
-
const { currentType:
|
|
545
|
-
let
|
|
544
|
+
const { currentType: L } = u;
|
|
545
|
+
let F = null;
|
|
546
546
|
const $ = _.currentChar();
|
|
547
|
-
switch ((
|
|
547
|
+
switch ((L === 8 || L === 9 || L === 12 || L === 10) && ($ === _e || $ === Re) && m(U.INVALID_LINKED_FORMAT, r(), 0), $) {
|
|
548
548
|
case "@":
|
|
549
|
-
return _.next(),
|
|
549
|
+
return _.next(), F = f(
|
|
550
550
|
u,
|
|
551
551
|
8,
|
|
552
552
|
"@"
|
|
553
553
|
/* TokenChars.LinkedAlias */
|
|
554
|
-
), u.inLinked = !0,
|
|
554
|
+
), u.inLinked = !0, F;
|
|
555
555
|
case ".":
|
|
556
|
-
return
|
|
556
|
+
return S(_), _.next(), f(
|
|
557
557
|
u,
|
|
558
558
|
9,
|
|
559
559
|
"."
|
|
560
560
|
/* TokenChars.LinkedDot */
|
|
561
561
|
);
|
|
562
562
|
case ":":
|
|
563
|
-
return
|
|
563
|
+
return S(_), _.next(), f(
|
|
564
564
|
u,
|
|
565
565
|
10,
|
|
566
566
|
":"
|
|
567
567
|
/* TokenChars.LinkedDelimiter */
|
|
568
568
|
);
|
|
569
569
|
default:
|
|
570
|
-
return w(_) ? (
|
|
570
|
+
return w(_) ? (F = f(u, 1, _t(_)), u.braceNest = 0, u.inLinked = !1, F) : b(_, u) || C(_, u) ? (S(_), We(_, u)) : y(_, u) ? (S(_), f(u, 12, kt(_))) : T(_, u) ? (S(_), $ === "{" ? Je(_, u) || F : f(u, 11, St(_))) : (L === 8 && m(U.INVALID_LINKED_FORMAT, r(), 0), u.braceNest = 0, u.inLinked = !1, Qe(_, u));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
function Qe(_, u) {
|
|
574
|
-
let
|
|
574
|
+
let L = {
|
|
575
575
|
type: 14
|
|
576
576
|
/* TokenTypes.EOF */
|
|
577
577
|
};
|
|
578
578
|
if (u.braceNest > 0)
|
|
579
|
-
return Je(_, u) ||
|
|
579
|
+
return Je(_, u) || E(u);
|
|
580
580
|
if (u.inLinked)
|
|
581
|
-
return We(_, u) ||
|
|
581
|
+
return We(_, u) || E(u);
|
|
582
582
|
switch (_.currentChar()) {
|
|
583
583
|
case "{":
|
|
584
|
-
return Je(_, u) ||
|
|
584
|
+
return Je(_, u) || E(u);
|
|
585
585
|
case "}":
|
|
586
586
|
return m(U.UNBALANCED_CLOSING_BRACE, r(), 0), _.next(), f(
|
|
587
587
|
u,
|
|
@@ -590,22 +590,22 @@ function mo(e, t = {}) {
|
|
|
590
590
|
/* TokenChars.BraceRight */
|
|
591
591
|
);
|
|
592
592
|
case "@":
|
|
593
|
-
return We(_, u) ||
|
|
593
|
+
return We(_, u) || E(u);
|
|
594
594
|
default:
|
|
595
595
|
if (w(_))
|
|
596
|
-
return
|
|
597
|
-
const { isModulo: $, hasSpace: j } =
|
|
596
|
+
return L = f(u, 1, _t(_)), u.braceNest = 0, u.inLinked = !1, L;
|
|
597
|
+
const { isModulo: $, hasSpace: j } = D(_);
|
|
598
598
|
if ($)
|
|
599
599
|
return j ? f(u, 0, Ce(_)) : f(u, 4, Ve(_));
|
|
600
|
-
if (
|
|
600
|
+
if (O(_))
|
|
601
601
|
return f(u, 0, Ce(_));
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
|
-
return
|
|
604
|
+
return L;
|
|
605
605
|
}
|
|
606
606
|
function At() {
|
|
607
|
-
const { currentType: _, offset: u, startLoc:
|
|
608
|
-
return l.lastType = _, l.lastOffset = u, l.lastStartLoc =
|
|
607
|
+
const { currentType: _, offset: u, startLoc: L, endLoc: F } = l;
|
|
608
|
+
return l.lastType = _, l.lastOffset = u, l.lastStartLoc = L, l.lastEndLoc = F, l.offset = a(), l.startLoc = r(), s.currentChar() === He ? f(
|
|
609
609
|
l,
|
|
610
610
|
14
|
|
611
611
|
/* TokenTypes.EOF */
|
|
@@ -633,132 +633,132 @@ function go(e, t, n) {
|
|
|
633
633
|
}
|
|
634
634
|
function bo(e = {}) {
|
|
635
635
|
const t = e.location !== !1, { onError: n } = e;
|
|
636
|
-
function s(d, p,
|
|
636
|
+
function s(d, p, v, g, ...k) {
|
|
637
637
|
const b = d.currentPosition();
|
|
638
638
|
if (b.offset += g, b.column += g, n) {
|
|
639
|
-
const
|
|
639
|
+
const y = t ? In(v, b) : null, C = Ot(p, y, {
|
|
640
640
|
domain: ho,
|
|
641
|
-
args:
|
|
641
|
+
args: k
|
|
642
642
|
});
|
|
643
643
|
n(C);
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
function a(d, p,
|
|
646
|
+
function a(d, p, v) {
|
|
647
647
|
const g = { type: d };
|
|
648
|
-
return t && (g.start = p, g.end = p, g.loc = { start:
|
|
648
|
+
return t && (g.start = p, g.end = p, g.loc = { start: v, end: v }), g;
|
|
649
649
|
}
|
|
650
|
-
function r(d, p,
|
|
651
|
-
g && (d.type = g), t && (d.end = p, d.loc && (d.loc.end =
|
|
650
|
+
function r(d, p, v, g) {
|
|
651
|
+
g && (d.type = g), t && (d.end = p, d.loc && (d.loc.end = v));
|
|
652
652
|
}
|
|
653
653
|
function o(d, p) {
|
|
654
|
-
const
|
|
654
|
+
const v = d.context(), g = a(3, v.offset, v.startLoc);
|
|
655
655
|
return g.value = p, r(g, d.currentOffset(), d.currentPosition()), g;
|
|
656
656
|
}
|
|
657
657
|
function i(d, p) {
|
|
658
|
-
const
|
|
658
|
+
const v = d.context(), { lastOffset: g, lastStartLoc: k } = v, b = a(5, g, k);
|
|
659
659
|
return b.index = parseInt(p, 10), d.nextToken(), r(b, d.currentOffset(), d.currentPosition()), b;
|
|
660
660
|
}
|
|
661
661
|
function l(d, p) {
|
|
662
|
-
const
|
|
662
|
+
const v = d.context(), { lastOffset: g, lastStartLoc: k } = v, b = a(4, g, k);
|
|
663
663
|
return b.key = p, d.nextToken(), r(b, d.currentOffset(), d.currentPosition()), b;
|
|
664
664
|
}
|
|
665
665
|
function c(d, p) {
|
|
666
|
-
const
|
|
666
|
+
const v = d.context(), { lastOffset: g, lastStartLoc: k } = v, b = a(9, g, k);
|
|
667
667
|
return b.value = p.replace(po, go), d.nextToken(), r(b, d.currentOffset(), d.currentPosition()), b;
|
|
668
668
|
}
|
|
669
669
|
function h(d) {
|
|
670
|
-
const p = d.nextToken(),
|
|
671
|
-
return p.type !== 12 ? (s(d, U.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
670
|
+
const p = d.nextToken(), v = d.context(), { lastOffset: g, lastStartLoc: k } = v, b = a(8, g, k);
|
|
671
|
+
return p.type !== 12 ? (s(d, U.UNEXPECTED_EMPTY_LINKED_MODIFIER, v.lastStartLoc, 0), b.value = "", r(b, g, k), {
|
|
672
672
|
nextConsumeToken: p,
|
|
673
673
|
node: b
|
|
674
|
-
}) : (p.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
674
|
+
}) : (p.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ye(p)), b.value = p.value || "", r(b, d.currentOffset(), d.currentPosition()), {
|
|
675
675
|
node: b
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
678
|
function m(d, p) {
|
|
679
|
-
const
|
|
679
|
+
const v = d.context(), g = a(7, v.offset, v.startLoc);
|
|
680
680
|
return g.value = p, r(g, d.currentOffset(), d.currentPosition()), g;
|
|
681
681
|
}
|
|
682
682
|
function f(d) {
|
|
683
|
-
const p = d.context(),
|
|
683
|
+
const p = d.context(), v = a(6, p.offset, p.startLoc);
|
|
684
684
|
let g = d.nextToken();
|
|
685
685
|
if (g.type === 9) {
|
|
686
|
-
const
|
|
687
|
-
|
|
686
|
+
const k = h(d);
|
|
687
|
+
v.modifier = k.node, g = k.nextConsumeToken || d.nextToken();
|
|
688
688
|
}
|
|
689
689
|
switch (g.type !== 10 && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(g)), g = d.nextToken(), g.type === 2 && (g = d.nextToken()), g.type) {
|
|
690
690
|
case 11:
|
|
691
|
-
g.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(g)),
|
|
691
|
+
g.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(g)), v.key = m(d, g.value || "");
|
|
692
692
|
break;
|
|
693
693
|
case 5:
|
|
694
|
-
g.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(g)),
|
|
694
|
+
g.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(g)), v.key = l(d, g.value || "");
|
|
695
695
|
break;
|
|
696
696
|
case 6:
|
|
697
|
-
g.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(g)),
|
|
697
|
+
g.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(g)), v.key = i(d, g.value || "");
|
|
698
698
|
break;
|
|
699
699
|
case 7:
|
|
700
|
-
g.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(g)),
|
|
700
|
+
g.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(g)), v.key = c(d, g.value || "");
|
|
701
701
|
break;
|
|
702
702
|
default:
|
|
703
703
|
s(d, U.UNEXPECTED_EMPTY_LINKED_KEY, p.lastStartLoc, 0);
|
|
704
|
-
const
|
|
705
|
-
return b.value = "", r(b,
|
|
704
|
+
const k = d.context(), b = a(7, k.offset, k.startLoc);
|
|
705
|
+
return b.value = "", r(b, k.offset, k.startLoc), v.key = b, r(v, k.offset, k.startLoc), {
|
|
706
706
|
nextConsumeToken: g,
|
|
707
|
-
node:
|
|
707
|
+
node: v
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
|
-
return r(
|
|
711
|
-
node:
|
|
710
|
+
return r(v, d.currentOffset(), d.currentPosition()), {
|
|
711
|
+
node: v
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
const p = d.context(),
|
|
716
|
-
|
|
714
|
+
function E(d) {
|
|
715
|
+
const p = d.context(), v = p.currentType === 1 ? d.currentOffset() : p.offset, g = p.currentType === 1 ? p.endLoc : p.startLoc, k = a(2, v, g);
|
|
716
|
+
k.items = [];
|
|
717
717
|
let b = null;
|
|
718
718
|
do {
|
|
719
719
|
const T = b || d.nextToken();
|
|
720
720
|
switch (b = null, T.type) {
|
|
721
721
|
case 0:
|
|
722
|
-
T.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(T)),
|
|
722
|
+
T.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(T)), k.items.push(o(d, T.value || ""));
|
|
723
723
|
break;
|
|
724
724
|
case 6:
|
|
725
|
-
T.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(T)),
|
|
725
|
+
T.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(T)), k.items.push(i(d, T.value || ""));
|
|
726
726
|
break;
|
|
727
727
|
case 5:
|
|
728
|
-
T.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(T)),
|
|
728
|
+
T.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(T)), k.items.push(l(d, T.value || ""));
|
|
729
729
|
break;
|
|
730
730
|
case 7:
|
|
731
|
-
T.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(T)),
|
|
731
|
+
T.value == null && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ye(T)), k.items.push(c(d, T.value || ""));
|
|
732
732
|
break;
|
|
733
733
|
case 8:
|
|
734
734
|
const w = f(d);
|
|
735
|
-
|
|
735
|
+
k.items.push(w.node), b = w.nextConsumeToken || null;
|
|
736
736
|
break;
|
|
737
737
|
}
|
|
738
738
|
} while (p.currentType !== 14 && p.currentType !== 1);
|
|
739
|
-
const
|
|
740
|
-
return r(
|
|
739
|
+
const y = p.currentType === 1 ? p.lastOffset : d.currentOffset(), C = p.currentType === 1 ? p.lastEndLoc : d.currentPosition();
|
|
740
|
+
return r(k, y, C), k;
|
|
741
741
|
}
|
|
742
|
-
function
|
|
743
|
-
const
|
|
742
|
+
function N(d, p, v, g) {
|
|
743
|
+
const k = d.context();
|
|
744
744
|
let b = g.items.length === 0;
|
|
745
|
-
const
|
|
746
|
-
|
|
745
|
+
const y = a(1, p, v);
|
|
746
|
+
y.cases = [], y.cases.push(g);
|
|
747
747
|
do {
|
|
748
|
-
const C =
|
|
749
|
-
b || (b = C.items.length === 0),
|
|
750
|
-
} while (
|
|
751
|
-
return b && s(d, U.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
748
|
+
const C = E(d);
|
|
749
|
+
b || (b = C.items.length === 0), y.cases.push(C);
|
|
750
|
+
} while (k.currentType !== 14);
|
|
751
|
+
return b && s(d, U.MUST_HAVE_MESSAGES_IN_PLURAL, v, 0), r(y, d.currentOffset(), d.currentPosition()), y;
|
|
752
752
|
}
|
|
753
753
|
function I(d) {
|
|
754
|
-
const p = d.context(), { offset:
|
|
755
|
-
return p.currentType === 14 ?
|
|
754
|
+
const p = d.context(), { offset: v, startLoc: g } = p, k = E(d);
|
|
755
|
+
return p.currentType === 14 ? k : N(d, v, g, k);
|
|
756
756
|
}
|
|
757
|
-
function
|
|
758
|
-
const p = mo(d, Rs({}, e)),
|
|
759
|
-
return t && g.loc && (g.loc.source = d), g.body = I(p), e.onCacheKey && (g.cacheKey = e.onCacheKey(d)),
|
|
757
|
+
function S(d) {
|
|
758
|
+
const p = mo(d, Rs({}, e)), v = p.context(), g = a(0, v.offset, v.startLoc);
|
|
759
|
+
return t && g.loc && (g.loc.source = d), g.body = I(p), e.onCacheKey && (g.cacheKey = e.onCacheKey(d)), v.currentType !== 14 && s(p, U.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, d[v.offset] || ""), r(g, p.currentOffset(), p.currentPosition()), g;
|
|
760
760
|
}
|
|
761
|
-
return { parse:
|
|
761
|
+
return { parse: S };
|
|
762
762
|
}
|
|
763
763
|
function ye(e) {
|
|
764
764
|
if (e.type === 14)
|
|
@@ -912,22 +912,22 @@ function yo(e, t) {
|
|
|
912
912
|
};
|
|
913
913
|
o && e.loc && (i.source = e.loc.source);
|
|
914
914
|
const l = () => i;
|
|
915
|
-
function c(
|
|
916
|
-
i.code +=
|
|
915
|
+
function c(S, d) {
|
|
916
|
+
i.code += S;
|
|
917
917
|
}
|
|
918
|
-
function h(
|
|
918
|
+
function h(S, d = !0) {
|
|
919
919
|
const p = d ? a : "";
|
|
920
|
-
c(r ? p + " ".repeat(
|
|
920
|
+
c(r ? p + " ".repeat(S) : p);
|
|
921
921
|
}
|
|
922
|
-
function m(
|
|
922
|
+
function m(S = !0) {
|
|
923
923
|
const d = ++i.indentLevel;
|
|
924
|
-
|
|
924
|
+
S && h(d);
|
|
925
925
|
}
|
|
926
|
-
function f(
|
|
926
|
+
function f(S = !0) {
|
|
927
927
|
const d = --i.indentLevel;
|
|
928
|
-
|
|
928
|
+
S && h(d);
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function E() {
|
|
931
931
|
h(i.indentLevel);
|
|
932
932
|
}
|
|
933
933
|
return {
|
|
@@ -935,8 +935,8 @@ function yo(e, t) {
|
|
|
935
935
|
push: c,
|
|
936
936
|
indent: m,
|
|
937
937
|
deindent: f,
|
|
938
|
-
newline:
|
|
939
|
-
helper: (
|
|
938
|
+
newline: E,
|
|
939
|
+
helper: (S) => `_${S}`,
|
|
940
940
|
needIndent: () => i.needIndent
|
|
941
941
|
};
|
|
942
942
|
}
|
|
@@ -1294,16 +1294,16 @@ function xo(e) {
|
|
|
1294
1294
|
]();
|
|
1295
1295
|
}
|
|
1296
1296
|
};
|
|
1297
|
-
function
|
|
1298
|
-
const
|
|
1299
|
-
if (s === 5 &&
|
|
1300
|
-
return n++, i = "\\" +
|
|
1297
|
+
function E() {
|
|
1298
|
+
const N = e[n + 1];
|
|
1299
|
+
if (s === 5 && N === "'" || s === 6 && N === '"')
|
|
1300
|
+
return n++, i = "\\" + N, f[
|
|
1301
1301
|
0
|
|
1302
1302
|
/* Actions.APPEND */
|
|
1303
1303
|
](), !0;
|
|
1304
1304
|
}
|
|
1305
1305
|
for (; s !== null; )
|
|
1306
|
-
if (n++, r = e[n], !(r === "\\" &&
|
|
1306
|
+
if (n++, r = e[n], !(r === "\\" && E())) {
|
|
1307
1307
|
if (l = Do(r), m = Ze[s], c = m[l] || m.l || 8, c === 8 || (s = c[0], c[1] !== void 0 && (h = f[c[1]], h && (i = r, h() === !1))))
|
|
1308
1308
|
return;
|
|
1309
1309
|
if (s === 7)
|
|
@@ -1349,27 +1349,27 @@ function Xo(e = {}) {
|
|
|
1349
1349
|
const p = X(e.messages) ? e.messages(d) : G(e.messages) ? e.messages[d] : !1;
|
|
1350
1350
|
return p || (e.parent ? e.parent.message(d) : Wo);
|
|
1351
1351
|
}
|
|
1352
|
-
const m = (d) => e.modifiers ? e.modifiers[d] : Vo, f = V(e.processor) && X(e.processor.normalize) ? e.processor.normalize : Ho,
|
|
1352
|
+
const m = (d) => e.modifiers ? e.modifiers[d] : Vo, f = V(e.processor) && X(e.processor.normalize) ? e.processor.normalize : Ho, E = V(e.processor) && X(e.processor.interpolate) ? e.processor.interpolate : Go, N = V(e.processor) && P(e.processor.type) ? e.processor.type : Bo, S = {
|
|
1353
1353
|
list: i,
|
|
1354
1354
|
named: c,
|
|
1355
1355
|
plural: r,
|
|
1356
1356
|
linked: (d, ...p) => {
|
|
1357
|
-
const [
|
|
1358
|
-
let
|
|
1359
|
-
p.length === 1 ? G(
|
|
1360
|
-
const
|
|
1357
|
+
const [v, g] = p;
|
|
1358
|
+
let k = "text", b = "";
|
|
1359
|
+
p.length === 1 ? G(v) ? (b = v.modifier || b, k = v.type || k) : P(v) && (b = v || b) : p.length === 2 && (P(v) && (b = v || b), P(g) && (k = g || k));
|
|
1360
|
+
const y = h(d)(S), C = (
|
|
1361
1361
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1362
|
-
|
|
1362
|
+
k === "vnode" && q(y) && b ? y[0] : y
|
|
1363
1363
|
);
|
|
1364
|
-
return b ? m(b)(C,
|
|
1364
|
+
return b ? m(b)(C, k) : C;
|
|
1365
1365
|
},
|
|
1366
1366
|
message: h,
|
|
1367
|
-
type:
|
|
1368
|
-
interpolate:
|
|
1367
|
+
type: N,
|
|
1368
|
+
interpolate: E,
|
|
1369
1369
|
normalize: f,
|
|
1370
1370
|
values: ue({}, o, l)
|
|
1371
1371
|
};
|
|
1372
|
-
return
|
|
1372
|
+
return S;
|
|
1373
1373
|
}
|
|
1374
1374
|
let $t = null;
|
|
1375
1375
|
function zo(e) {
|
|
@@ -1483,7 +1483,7 @@ function Ds(e, t, n) {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
function kr(e, t, n) {
|
|
1485
1485
|
let s = !0;
|
|
1486
|
-
for (let a = 0; a < t.length &&
|
|
1486
|
+
for (let a = 0; a < t.length && B(s); a++) {
|
|
1487
1487
|
const r = t[a];
|
|
1488
1488
|
P(r) && (s = ti(e, t[a], n));
|
|
1489
1489
|
}
|
|
@@ -1537,11 +1537,11 @@ const Cr = (e) => {
|
|
|
1537
1537
|
}, ci = () => Vs;
|
|
1538
1538
|
let wr = 0;
|
|
1539
1539
|
function ui(e = {}) {
|
|
1540
|
-
const t = X(e.onWarn) ? e.onWarn : Ja, n = P(e.version) ? e.version : ri, s = P(e.locale) || X(e.locale) ? e.locale : Et, a = X(s) ? Et : s, r = q(e.fallbackLocale) || V(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = V(e.messages) ? e.messages : { [a]: {} }, i = V(e.datetimeFormats) ? e.datetimeFormats : { [a]: {} }, l = V(e.numberFormats) ? e.numberFormats : { [a]: {} }, c = ue({}, e.modifiers || {}, si()), h = e.pluralRules || {}, m = X(e.missing) ? e.missing : null, f =
|
|
1540
|
+
const t = X(e.onWarn) ? e.onWarn : Ja, n = P(e.version) ? e.version : ri, s = P(e.locale) || X(e.locale) ? e.locale : Et, a = X(s) ? Et : s, r = q(e.fallbackLocale) || V(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = V(e.messages) ? e.messages : { [a]: {} }, i = V(e.datetimeFormats) ? e.datetimeFormats : { [a]: {} }, l = V(e.numberFormats) ? e.numberFormats : { [a]: {} }, c = ue({}, e.modifiers || {}, si()), h = e.pluralRules || {}, m = X(e.missing) ? e.missing : null, f = B(e.missingWarn) || Ke(e.missingWarn) ? e.missingWarn : !0, E = B(e.fallbackWarn) || Ke(e.fallbackWarn) ? e.fallbackWarn : !0, N = !!e.fallbackFormat, I = !!e.unresolving, S = X(e.postTranslation) ? e.postTranslation : null, d = V(e.processor) ? e.processor : null, p = B(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, v = !!e.escapeParameter, g = X(e.messageCompiler) ? e.messageCompiler : Fs;
|
|
1541
1541
|
process.env.NODE_ENV !== "production" && X(e.messageCompiler) && ws(ct(me.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1542
|
-
const
|
|
1542
|
+
const k = X(e.messageResolver) ? e.messageResolver : xs || Uo, b = X(e.localeFallbacker) ? e.localeFallbacker : Us || ei, y = G(e.fallbackContext) ? e.fallbackContext : void 0, C = e, T = G(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), w = G(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), D = G(C.__meta) ? C.__meta : {};
|
|
1543
1543
|
wr++;
|
|
1544
|
-
const
|
|
1544
|
+
const O = {
|
|
1545
1545
|
version: n,
|
|
1546
1546
|
cid: wr,
|
|
1547
1547
|
locale: s,
|
|
@@ -1551,21 +1551,21 @@ function ui(e = {}) {
|
|
|
1551
1551
|
pluralRules: h,
|
|
1552
1552
|
missing: m,
|
|
1553
1553
|
missingWarn: f,
|
|
1554
|
-
fallbackWarn:
|
|
1555
|
-
fallbackFormat:
|
|
1554
|
+
fallbackWarn: E,
|
|
1555
|
+
fallbackFormat: N,
|
|
1556
1556
|
unresolving: I,
|
|
1557
|
-
postTranslation:
|
|
1557
|
+
postTranslation: S,
|
|
1558
1558
|
processor: d,
|
|
1559
1559
|
warnHtmlMessage: p,
|
|
1560
|
-
escapeParameter:
|
|
1560
|
+
escapeParameter: v,
|
|
1561
1561
|
messageCompiler: g,
|
|
1562
|
-
messageResolver:
|
|
1562
|
+
messageResolver: k,
|
|
1563
1563
|
localeFallbacker: b,
|
|
1564
|
-
fallbackContext:
|
|
1564
|
+
fallbackContext: y,
|
|
1565
1565
|
onWarn: t,
|
|
1566
|
-
__meta:
|
|
1566
|
+
__meta: D
|
|
1567
1567
|
};
|
|
1568
|
-
return
|
|
1568
|
+
return O.datetimeFormats = i, O.numberFormats = l, O.__datetimeFormatters = T, O.__numberFormatters = w, process.env.NODE_ENV !== "production" && (O.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Ko(O, n, D), O;
|
|
1569
1569
|
}
|
|
1570
1570
|
function _n(e, t) {
|
|
1571
1571
|
return e instanceof RegExp ? e.test(t) : e;
|
|
@@ -1663,7 +1663,7 @@ const _i = /* @__NO_SIDE_EFFECTS__ */ (e, t) => {
|
|
|
1663
1663
|
if (!P(e))
|
|
1664
1664
|
throw ke(ie.NOT_SUPPORT_NON_STRING_MESSAGE);
|
|
1665
1665
|
{
|
|
1666
|
-
const n =
|
|
1666
|
+
const n = B(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1667
1667
|
process.env.NODE_ENV !== "production" && Bs(e, n);
|
|
1668
1668
|
const a = (t.onCacheKey || Hs)(e), r = gt[a];
|
|
1669
1669
|
if (r)
|
|
@@ -1674,7 +1674,7 @@ const _i = /* @__NO_SIDE_EFFECTS__ */ (e, t) => {
|
|
|
1674
1674
|
};
|
|
1675
1675
|
function mi(e, t) {
|
|
1676
1676
|
if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && P(e)) {
|
|
1677
|
-
const n =
|
|
1677
|
+
const n = B(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1678
1678
|
process.env.NODE_ENV !== "production" && Bs(e, n);
|
|
1679
1679
|
const a = (t.onCacheKey || Hs)(e), r = gt[a];
|
|
1680
1680
|
if (r)
|
|
@@ -1698,35 +1698,35 @@ function mi(e, t) {
|
|
|
1698
1698
|
}
|
|
1699
1699
|
const Pr = () => "", be = (e) => X(e);
|
|
1700
1700
|
function Mr(e, ...t) {
|
|
1701
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: a, messageCompiler: r, fallbackLocale: o, messages: i } = e, [l, c] = Sn(...t), h =
|
|
1701
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: a, messageCompiler: r, fallbackLocale: o, messages: i } = e, [l, c] = Sn(...t), h = B(c.missingWarn) ? c.missingWarn : e.missingWarn, m = B(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, f = B(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, E = !!c.resolvedMessage, N = P(c.default) || B(c.default) ? B(c.default) ? r ? l : () => l : c.default : n ? r ? l : () => l : "", I = n || N !== "", S = er(e, c);
|
|
1702
1702
|
f && hi(c);
|
|
1703
|
-
let [d, p,
|
|
1703
|
+
let [d, p, v] = E ? [
|
|
1704
1704
|
l,
|
|
1705
|
-
|
|
1706
|
-
i[
|
|
1707
|
-
] : js(e, l,
|
|
1708
|
-
if (!
|
|
1705
|
+
S,
|
|
1706
|
+
i[S] || {}
|
|
1707
|
+
] : js(e, l, S, o, m, h), g = d, k = l;
|
|
1708
|
+
if (!E && !(P(g) || qe(g) || be(g)) && I && (g = N, k = g), !E && (!(P(g) || qe(g) || be(g)) || !P(p)))
|
|
1709
1709
|
return a ? dn : l;
|
|
1710
1710
|
if (process.env.NODE_ENV !== "production" && P(g) && e.messageCompiler == null)
|
|
1711
1711
|
return `${l}`, l;
|
|
1712
1712
|
let b = !1;
|
|
1713
|
-
const
|
|
1713
|
+
const y = () => {
|
|
1714
1714
|
b = !0;
|
|
1715
|
-
}, C = be(g) ? g : Ys(e, l, p, g,
|
|
1715
|
+
}, C = be(g) ? g : Ys(e, l, p, g, k, y);
|
|
1716
1716
|
if (b)
|
|
1717
1717
|
return g;
|
|
1718
|
-
const T = vi(e, p,
|
|
1718
|
+
const T = vi(e, p, v, c), w = Xo(T), D = pi(e, C, w), O = s ? s(D, l) : D;
|
|
1719
1719
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1720
1720
|
const M = {
|
|
1721
1721
|
timestamp: Date.now(),
|
|
1722
1722
|
key: P(l) ? l : be(g) ? g.key : "",
|
|
1723
1723
|
locale: p || (be(g) ? g.locale : ""),
|
|
1724
1724
|
format: P(g) ? g : be(g) ? g.source : "",
|
|
1725
|
-
message:
|
|
1725
|
+
message: O
|
|
1726
1726
|
};
|
|
1727
1727
|
M.meta = ue({}, e.__meta, /* @__PURE__ */ li() || {}), qo(M);
|
|
1728
1728
|
}
|
|
1729
|
-
return
|
|
1729
|
+
return O;
|
|
1730
1730
|
}
|
|
1731
1731
|
function hi(e) {
|
|
1732
1732
|
q(e.list) ? e.list = e.list.map((t) => P(t) ? gr(t) : t) : G(e.named) && Object.keys(e.named).forEach((t) => {
|
|
@@ -1735,8 +1735,8 @@ function hi(e) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
function js(e, t, n, s, a, r) {
|
|
1737
1737
|
const { messages: o, onWarn: i, messageResolver: l, localeFallbacker: c } = e, h = c(e, s, n);
|
|
1738
|
-
let m = {}, f,
|
|
1739
|
-
const
|
|
1738
|
+
let m = {}, f, E = null, N = n, I = null;
|
|
1739
|
+
const S = "translate";
|
|
1740
1740
|
for (let d = 0; d < h.length; d++) {
|
|
1741
1741
|
if (f = I = h[d], process.env.NODE_ENV !== "production" && n !== f && _n(a, t) && i(ct(me.FALLBACK_TO_TRANSLATE, {
|
|
1742
1742
|
key: t,
|
|
@@ -1744,38 +1744,38 @@ function js(e, t, n, s, a, r) {
|
|
|
1744
1744
|
})), process.env.NODE_ENV !== "production" && n !== f) {
|
|
1745
1745
|
const b = e.__v_emitter;
|
|
1746
1746
|
b && b.emit("fallback", {
|
|
1747
|
-
type:
|
|
1747
|
+
type: S,
|
|
1748
1748
|
key: t,
|
|
1749
|
-
from:
|
|
1749
|
+
from: N,
|
|
1750
1750
|
to: I,
|
|
1751
|
-
groupId: `${
|
|
1751
|
+
groupId: `${S}:${t}`
|
|
1752
1752
|
});
|
|
1753
1753
|
}
|
|
1754
1754
|
m = o[f] || {};
|
|
1755
|
-
let p = null,
|
|
1756
|
-
if (process.env.NODE_ENV !== "production" && Ne && (p = window.performance.now(),
|
|
1757
|
-
const b = window.performance.now(),
|
|
1758
|
-
|
|
1755
|
+
let p = null, v, g;
|
|
1756
|
+
if (process.env.NODE_ENV !== "production" && Ne && (p = window.performance.now(), v = "intlify-message-resolve-start", g = "intlify-message-resolve-end", ge && ge(v)), (E = l(m, t)) === null && (E = m[t]), process.env.NODE_ENV !== "production" && Ne) {
|
|
1757
|
+
const b = window.performance.now(), y = e.__v_emitter;
|
|
1758
|
+
y && p && E && y.emit("message-resolve", {
|
|
1759
1759
|
type: "message-resolve",
|
|
1760
1760
|
key: t,
|
|
1761
|
-
message:
|
|
1761
|
+
message: E,
|
|
1762
1762
|
time: b - p,
|
|
1763
|
-
groupId: `${
|
|
1764
|
-
}),
|
|
1763
|
+
groupId: `${S}:${t}`
|
|
1764
|
+
}), v && g && ge && lt && (ge(g), lt("intlify message resolve", v, g));
|
|
1765
1765
|
}
|
|
1766
|
-
if (P(
|
|
1766
|
+
if (P(E) || qe(E) || be(E))
|
|
1767
1767
|
break;
|
|
1768
|
-
const
|
|
1768
|
+
const k = tr(
|
|
1769
1769
|
e,
|
|
1770
1770
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1771
1771
|
t,
|
|
1772
1772
|
f,
|
|
1773
1773
|
r,
|
|
1774
|
-
|
|
1774
|
+
S
|
|
1775
1775
|
);
|
|
1776
|
-
|
|
1776
|
+
k !== t && (E = k), N = I;
|
|
1777
1777
|
}
|
|
1778
|
-
return [
|
|
1778
|
+
return [E, f, m];
|
|
1779
1779
|
}
|
|
1780
1780
|
function Ys(e, t, n, s, a, r) {
|
|
1781
1781
|
const { messageCompiler: o, warnHtmlMessage: i } = e;
|
|
@@ -1791,8 +1791,8 @@ function Ys(e, t, n, s, a, r) {
|
|
|
1791
1791
|
process.env.NODE_ENV !== "production" && Ne && (l = window.performance.now(), c = "intlify-message-compilation-start", h = "intlify-message-compilation-end", ge && ge(c));
|
|
1792
1792
|
const m = o(s, gi(e, n, a, s, i, r));
|
|
1793
1793
|
if (process.env.NODE_ENV !== "production" && Ne) {
|
|
1794
|
-
const f = window.performance.now(),
|
|
1795
|
-
|
|
1794
|
+
const f = window.performance.now(), E = e.__v_emitter;
|
|
1795
|
+
E && l && E.emit("message-compilation", {
|
|
1796
1796
|
type: "message-compilation",
|
|
1797
1797
|
message: s,
|
|
1798
1798
|
time: f - l,
|
|
@@ -1855,20 +1855,20 @@ function vi(e, t, n, s) {
|
|
|
1855
1855
|
locale: t,
|
|
1856
1856
|
modifiers: a,
|
|
1857
1857
|
pluralRules: r,
|
|
1858
|
-
messages: (
|
|
1859
|
-
let
|
|
1860
|
-
if (
|
|
1861
|
-
const [, , I] = js(h,
|
|
1862
|
-
|
|
1858
|
+
messages: (E) => {
|
|
1859
|
+
let N = o(n, E);
|
|
1860
|
+
if (N == null && h) {
|
|
1861
|
+
const [, , I] = js(h, E, t, i, l, c);
|
|
1862
|
+
N = o(I, E);
|
|
1863
1863
|
}
|
|
1864
|
-
if (P(
|
|
1864
|
+
if (P(N) || qe(N)) {
|
|
1865
1865
|
let I = !1;
|
|
1866
|
-
const d = Ys(e,
|
|
1866
|
+
const d = Ys(e, E, t, N, E, () => {
|
|
1867
1867
|
I = !0;
|
|
1868
1868
|
});
|
|
1869
1869
|
return I ? Pr : d;
|
|
1870
1870
|
} else
|
|
1871
|
-
return be(
|
|
1871
|
+
return be(N) ? N : Pr;
|
|
1872
1872
|
}
|
|
1873
1873
|
};
|
|
1874
1874
|
return e.processor && (f.processor = e.processor), s.list && (f.list = s.list), s.named && (f.named = s.named), re(s.plural) && (f.pluralIndex = s.plural), f;
|
|
@@ -1881,7 +1881,7 @@ function Fr(e, ...t) {
|
|
|
1881
1881
|
const { datetimeFormats: n, unresolving: s, fallbackLocale: a, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
1882
1882
|
if (process.env.NODE_ENV !== "production" && !Xs.dateTimeFormat)
|
|
1883
1883
|
return r(ct(me.CANNOT_FORMAT_DATE)), sn;
|
|
1884
|
-
const [l, c, h, m] = An(...t), f =
|
|
1884
|
+
const [l, c, h, m] = An(...t), f = B(h.missingWarn) ? h.missingWarn : e.missingWarn, E = B(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, N = !!h.part, I = er(e, h), S = o(
|
|
1885
1885
|
e,
|
|
1886
1886
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1887
1887
|
a,
|
|
@@ -1889,10 +1889,10 @@ function Fr(e, ...t) {
|
|
|
1889
1889
|
);
|
|
1890
1890
|
if (!P(l) || l === "")
|
|
1891
1891
|
return new Intl.DateTimeFormat(I, m).format(c);
|
|
1892
|
-
let d = {}, p,
|
|
1892
|
+
let d = {}, p, v = null, g = I, k = null;
|
|
1893
1893
|
const b = "datetime format";
|
|
1894
|
-
for (let T = 0; T <
|
|
1895
|
-
if (p =
|
|
1894
|
+
for (let T = 0; T < S.length; T++) {
|
|
1895
|
+
if (p = k = S[T], process.env.NODE_ENV !== "production" && I !== p && _n(E, l) && r(ct(me.FALLBACK_TO_DATE_FORMAT, {
|
|
1896
1896
|
key: l,
|
|
1897
1897
|
target: p
|
|
1898
1898
|
})), process.env.NODE_ENV !== "production" && I !== p) {
|
|
@@ -1901,20 +1901,20 @@ function Fr(e, ...t) {
|
|
|
1901
1901
|
type: b,
|
|
1902
1902
|
key: l,
|
|
1903
1903
|
from: g,
|
|
1904
|
-
to:
|
|
1904
|
+
to: k,
|
|
1905
1905
|
groupId: `${b}:${l}`
|
|
1906
1906
|
});
|
|
1907
1907
|
}
|
|
1908
|
-
if (d = n[p] || {},
|
|
1908
|
+
if (d = n[p] || {}, v = d[l], V(v))
|
|
1909
1909
|
break;
|
|
1910
|
-
tr(e, l, p, f, b), g =
|
|
1910
|
+
tr(e, l, p, f, b), g = k;
|
|
1911
1911
|
}
|
|
1912
|
-
if (!V(
|
|
1912
|
+
if (!V(v) || !P(p))
|
|
1913
1913
|
return s ? dn : l;
|
|
1914
|
-
let
|
|
1915
|
-
fn(m) || (
|
|
1916
|
-
let C = i.get(
|
|
1917
|
-
return C || (C = new Intl.DateTimeFormat(p, ue({},
|
|
1914
|
+
let y = `${p}__${l}`;
|
|
1915
|
+
fn(m) || (y = `${y}__${JSON.stringify(m)}`);
|
|
1916
|
+
let C = i.get(y);
|
|
1917
|
+
return C || (C = new Intl.DateTimeFormat(p, ue({}, v, m)), i.set(y, C)), N ? C.formatToParts(c) : C.format(c);
|
|
1918
1918
|
}
|
|
1919
1919
|
const zs = [
|
|
1920
1920
|
"localeMatcher",
|
|
@@ -1975,7 +1975,7 @@ function Ur(e, ...t) {
|
|
|
1975
1975
|
const { numberFormats: n, unresolving: s, fallbackLocale: a, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
1976
1976
|
if (process.env.NODE_ENV !== "production" && !Xs.numberFormat)
|
|
1977
1977
|
return r(ct(me.CANNOT_FORMAT_NUMBER)), sn;
|
|
1978
|
-
const [l, c, h, m] = Cn(...t), f =
|
|
1978
|
+
const [l, c, h, m] = Cn(...t), f = B(h.missingWarn) ? h.missingWarn : e.missingWarn, E = B(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, N = !!h.part, I = er(e, h), S = o(
|
|
1979
1979
|
e,
|
|
1980
1980
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1981
1981
|
a,
|
|
@@ -1983,10 +1983,10 @@ function Ur(e, ...t) {
|
|
|
1983
1983
|
);
|
|
1984
1984
|
if (!P(l) || l === "")
|
|
1985
1985
|
return new Intl.NumberFormat(I, m).format(c);
|
|
1986
|
-
let d = {}, p,
|
|
1986
|
+
let d = {}, p, v = null, g = I, k = null;
|
|
1987
1987
|
const b = "number format";
|
|
1988
|
-
for (let T = 0; T <
|
|
1989
|
-
if (p =
|
|
1988
|
+
for (let T = 0; T < S.length; T++) {
|
|
1989
|
+
if (p = k = S[T], process.env.NODE_ENV !== "production" && I !== p && _n(E, l) && r(ct(me.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1990
1990
|
key: l,
|
|
1991
1991
|
target: p
|
|
1992
1992
|
})), process.env.NODE_ENV !== "production" && I !== p) {
|
|
@@ -1995,20 +1995,20 @@ function Ur(e, ...t) {
|
|
|
1995
1995
|
type: b,
|
|
1996
1996
|
key: l,
|
|
1997
1997
|
from: g,
|
|
1998
|
-
to:
|
|
1998
|
+
to: k,
|
|
1999
1999
|
groupId: `${b}:${l}`
|
|
2000
2000
|
});
|
|
2001
2001
|
}
|
|
2002
|
-
if (d = n[p] || {},
|
|
2002
|
+
if (d = n[p] || {}, v = d[l], V(v))
|
|
2003
2003
|
break;
|
|
2004
|
-
tr(e, l, p, f, b), g =
|
|
2004
|
+
tr(e, l, p, f, b), g = k;
|
|
2005
2005
|
}
|
|
2006
|
-
if (!V(
|
|
2006
|
+
if (!V(v) || !P(p))
|
|
2007
2007
|
return s ? dn : l;
|
|
2008
|
-
let
|
|
2009
|
-
fn(m) || (
|
|
2010
|
-
let C = i.get(
|
|
2011
|
-
return C || (C = new Intl.NumberFormat(p, ue({},
|
|
2008
|
+
let y = `${p}__${l}`;
|
|
2009
|
+
fn(m) || (y = `${y}__${JSON.stringify(m)}`);
|
|
2010
|
+
let C = i.get(y);
|
|
2011
|
+
return C || (C = new Intl.NumberFormat(p, ue({}, v, m)), i.set(y, C)), N ? C.formatToParts(c) : C.format(c);
|
|
2012
2012
|
}
|
|
2013
2013
|
const Ks = [
|
|
2014
2014
|
"localeMatcher",
|
|
@@ -2327,188 +2327,188 @@ const Pi = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
2327
2327
|
function nr(e = {}, t) {
|
|
2328
2328
|
const { __root: n, __injectWithOption: s } = e, a = n === void 0, r = e.flatJson, o = Ne ? Q : Ns, i = !!e.translateExistCompatible;
|
|
2329
2329
|
process.env.NODE_ENV !== "production" && i && ws(pe(J.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));
|
|
2330
|
-
let l =
|
|
2330
|
+
let l = B(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2331
2331
|
const c = o(
|
|
2332
2332
|
// prettier-ignore
|
|
2333
2333
|
n && l ? n.locale.value : P(e.locale) ? e.locale : Et
|
|
2334
2334
|
), h = o(
|
|
2335
2335
|
// prettier-ignore
|
|
2336
2336
|
n && l ? n.fallbackLocale.value : P(e.fallbackLocale) || q(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
|
|
2337
|
-
), m = o(mn(c.value, e)), f = o(V(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }),
|
|
2338
|
-
let
|
|
2339
|
-
const
|
|
2337
|
+
), m = o(mn(c.value, e)), f = o(V(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), E = o(V(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
|
|
2338
|
+
let N = n ? n.missingWarn : B(e.missingWarn) || Ke(e.missingWarn) ? e.missingWarn : !0, I = n ? n.fallbackWarn : B(e.fallbackWarn) || Ke(e.fallbackWarn) ? e.fallbackWarn : !0, S = n ? n.fallbackRoot : B(e.fallbackRoot) ? e.fallbackRoot : !0, d = !!e.fallbackFormat, p = X(e.missing) ? e.missing : null, v = X(e.missing) ? Gr(e.missing) : null, g = X(e.postTranslation) ? e.postTranslation : null, k = n ? n.warnHtmlMessage : B(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter;
|
|
2339
|
+
const y = n ? n.modifiers : V(e.modifiers) ? e.modifiers : {};
|
|
2340
2340
|
let C = e.pluralRules || n && n.pluralRules, T;
|
|
2341
2341
|
T = (() => {
|
|
2342
2342
|
a && Cr(null);
|
|
2343
|
-
const
|
|
2343
|
+
const A = {
|
|
2344
2344
|
version: Si,
|
|
2345
2345
|
locale: c.value,
|
|
2346
2346
|
fallbackLocale: h.value,
|
|
2347
2347
|
messages: m.value,
|
|
2348
|
-
modifiers:
|
|
2348
|
+
modifiers: y,
|
|
2349
2349
|
pluralRules: C,
|
|
2350
|
-
missing:
|
|
2351
|
-
missingWarn:
|
|
2350
|
+
missing: v === null ? void 0 : v,
|
|
2351
|
+
missingWarn: N,
|
|
2352
2352
|
fallbackWarn: I,
|
|
2353
2353
|
fallbackFormat: d,
|
|
2354
2354
|
unresolving: !0,
|
|
2355
2355
|
postTranslation: g === null ? void 0 : g,
|
|
2356
|
-
warnHtmlMessage:
|
|
2356
|
+
warnHtmlMessage: k,
|
|
2357
2357
|
escapeParameter: b,
|
|
2358
2358
|
messageResolver: e.messageResolver,
|
|
2359
2359
|
messageCompiler: e.messageCompiler,
|
|
2360
2360
|
__meta: { framework: "vue" }
|
|
2361
2361
|
};
|
|
2362
|
-
|
|
2363
|
-
const R = ui(
|
|
2362
|
+
A.datetimeFormats = f.value, A.numberFormats = E.value, A.__datetimeFormatters = V(T) ? T.__datetimeFormatters : void 0, A.__numberFormatters = V(T) ? T.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (A.__v_emitter = V(T) ? T.__v_emitter : void 0);
|
|
2363
|
+
const R = ui(A);
|
|
2364
2364
|
return a && Cr(R), R;
|
|
2365
2365
|
})(), Ct(T, c.value, h.value);
|
|
2366
|
-
function
|
|
2366
|
+
function D() {
|
|
2367
2367
|
return [
|
|
2368
2368
|
c.value,
|
|
2369
2369
|
h.value,
|
|
2370
2370
|
m.value,
|
|
2371
2371
|
f.value,
|
|
2372
|
-
|
|
2372
|
+
E.value
|
|
2373
2373
|
];
|
|
2374
2374
|
}
|
|
2375
|
-
const
|
|
2375
|
+
const O = ce({
|
|
2376
2376
|
get: () => c.value,
|
|
2377
|
-
set: (
|
|
2378
|
-
c.value =
|
|
2377
|
+
set: (A) => {
|
|
2378
|
+
c.value = A, T.locale = c.value;
|
|
2379
2379
|
}
|
|
2380
2380
|
}), M = ce({
|
|
2381
2381
|
get: () => h.value,
|
|
2382
|
-
set: (
|
|
2383
|
-
h.value =
|
|
2382
|
+
set: (A) => {
|
|
2383
|
+
h.value = A, T.fallbackLocale = h.value, Ct(T, c.value, A);
|
|
2384
2384
|
}
|
|
2385
|
-
}), Z = ce(() => m.value), K = /* @__PURE__ */ ce(() => f.value), te = /* @__PURE__ */ ce(() =>
|
|
2385
|
+
}), Z = ce(() => m.value), K = /* @__PURE__ */ ce(() => f.value), te = /* @__PURE__ */ ce(() => E.value);
|
|
2386
2386
|
function de() {
|
|
2387
2387
|
return X(g) ? g : null;
|
|
2388
2388
|
}
|
|
2389
|
-
function Ve(
|
|
2390
|
-
g =
|
|
2389
|
+
function Ve(A) {
|
|
2390
|
+
g = A, T.postTranslation = A;
|
|
2391
2391
|
}
|
|
2392
2392
|
function Ce() {
|
|
2393
2393
|
return p;
|
|
2394
2394
|
}
|
|
2395
|
-
function yt(
|
|
2396
|
-
|
|
2395
|
+
function yt(A) {
|
|
2396
|
+
A !== null && (v = Gr(A)), p = A, T.missing = v;
|
|
2397
2397
|
}
|
|
2398
|
-
function Lt(
|
|
2399
|
-
return
|
|
2398
|
+
function Lt(A, R) {
|
|
2399
|
+
return A !== "translate" || !R.resolvedMessage;
|
|
2400
2400
|
}
|
|
2401
|
-
const Ee = (
|
|
2402
|
-
|
|
2401
|
+
const Ee = (A, R, Y, ee, Be, Yt) => {
|
|
2402
|
+
D();
|
|
2403
2403
|
let mt;
|
|
2404
2404
|
try {
|
|
2405
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (T.fallbackContext = n ? ci() : void 0), mt =
|
|
2405
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (T.fallbackContext = n ? ci() : void 0), mt = A(T);
|
|
2406
2406
|
} finally {
|
|
2407
2407
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (T.fallbackContext = void 0);
|
|
2408
2408
|
}
|
|
2409
2409
|
if (Y !== "translate exists" && // for not `te` (e.g `t`)
|
|
2410
2410
|
re(mt) && mt === dn || Y === "translate exists" && !mt) {
|
|
2411
2411
|
const [et, wa] = R();
|
|
2412
|
-
if (process.env.NODE_ENV !== "production" && n && P(et) && Lt(Y, wa) && (
|
|
2412
|
+
if (process.env.NODE_ENV !== "production" && n && P(et) && Lt(Y, wa) && (S && (_n(I, et) || Ws(N, et)) && (pe(J.FALLBACK_TO_ROOT, {
|
|
2413
2413
|
key: et,
|
|
2414
2414
|
type: Y
|
|
2415
2415
|
}), void 0), process.env.NODE_ENV !== "production")) {
|
|
2416
2416
|
const { __v_emitter: _r } = T;
|
|
2417
|
-
_r &&
|
|
2417
|
+
_r && S && _r.emit("fallback", {
|
|
2418
2418
|
type: Y,
|
|
2419
2419
|
key: et,
|
|
2420
2420
|
to: "global",
|
|
2421
2421
|
groupId: `${Y}:${et}`
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
-
return n &&
|
|
2424
|
+
return n && S ? ee(n) : Be(et);
|
|
2425
2425
|
} else {
|
|
2426
2426
|
if (Yt(mt))
|
|
2427
2427
|
return mt;
|
|
2428
2428
|
throw ae(H.UNEXPECTED_RETURN_TYPE);
|
|
2429
2429
|
}
|
|
2430
2430
|
};
|
|
2431
|
-
function ft(...
|
|
2432
|
-
return Ee((R) => Reflect.apply(Mr, null, [R, ...
|
|
2431
|
+
function ft(...A) {
|
|
2432
|
+
return Ee((R) => Reflect.apply(Mr, null, [R, ...A]), () => Sn(...A), "translate", (R) => Reflect.apply(R.t, R, [...A]), (R) => R, (R) => P(R));
|
|
2433
2433
|
}
|
|
2434
|
-
function dt(...
|
|
2435
|
-
const [R, Y, ee] =
|
|
2434
|
+
function dt(...A) {
|
|
2435
|
+
const [R, Y, ee] = A;
|
|
2436
2436
|
if (ee && !G(ee))
|
|
2437
2437
|
throw ae(H.INVALID_ARGUMENT);
|
|
2438
2438
|
return ft(R, Y, ue({ resolvedMessage: !0 }, ee || {}));
|
|
2439
2439
|
}
|
|
2440
|
-
function It(...
|
|
2441
|
-
return Ee((R) => Reflect.apply(Fr, null, [R, ...
|
|
2440
|
+
function It(...A) {
|
|
2441
|
+
return Ee((R) => Reflect.apply(Fr, null, [R, ...A]), () => An(...A), "datetime format", (R) => Reflect.apply(R.d, R, [...A]), () => sn, (R) => P(R));
|
|
2442
2442
|
}
|
|
2443
|
-
function kt(...
|
|
2444
|
-
return Ee((R) => Reflect.apply(Ur, null, [R, ...
|
|
2443
|
+
function kt(...A) {
|
|
2444
|
+
return Ee((R) => Reflect.apply(Ur, null, [R, ...A]), () => Cn(...A), "number format", (R) => Reflect.apply(R.n, R, [...A]), () => sn, (R) => P(R));
|
|
2445
2445
|
}
|
|
2446
|
-
function St(
|
|
2447
|
-
return
|
|
2446
|
+
function St(A) {
|
|
2447
|
+
return A.map((R) => P(R) || re(R) || B(R) ? Vr(String(R)) : R);
|
|
2448
2448
|
}
|
|
2449
2449
|
const Je = {
|
|
2450
2450
|
normalize: St,
|
|
2451
|
-
interpolate: (
|
|
2451
|
+
interpolate: (A) => A,
|
|
2452
2452
|
type: "vnode"
|
|
2453
2453
|
};
|
|
2454
|
-
function We(...
|
|
2454
|
+
function We(...A) {
|
|
2455
2455
|
return Ee(
|
|
2456
2456
|
(R) => {
|
|
2457
2457
|
let Y;
|
|
2458
2458
|
const ee = R;
|
|
2459
2459
|
try {
|
|
2460
|
-
ee.processor = Je, Y = Reflect.apply(Mr, null, [ee, ...
|
|
2460
|
+
ee.processor = Je, Y = Reflect.apply(Mr, null, [ee, ...A]);
|
|
2461
2461
|
} finally {
|
|
2462
2462
|
ee.processor = null;
|
|
2463
2463
|
}
|
|
2464
2464
|
return Y;
|
|
2465
2465
|
},
|
|
2466
|
-
() => Sn(...
|
|
2466
|
+
() => Sn(...A),
|
|
2467
2467
|
"translate",
|
|
2468
2468
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2469
|
-
(R) => R[Rn](...
|
|
2469
|
+
(R) => R[Rn](...A),
|
|
2470
2470
|
(R) => [Vr(R)],
|
|
2471
2471
|
(R) => q(R)
|
|
2472
2472
|
);
|
|
2473
2473
|
}
|
|
2474
|
-
function Qe(...
|
|
2474
|
+
function Qe(...A) {
|
|
2475
2475
|
return Ee(
|
|
2476
|
-
(R) => Reflect.apply(Ur, null, [R, ...
|
|
2477
|
-
() => Cn(...
|
|
2476
|
+
(R) => Reflect.apply(Ur, null, [R, ...A]),
|
|
2477
|
+
() => Cn(...A),
|
|
2478
2478
|
"number format",
|
|
2479
2479
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2480
|
-
(R) => R[Mn](...
|
|
2480
|
+
(R) => R[Mn](...A),
|
|
2481
2481
|
Br,
|
|
2482
2482
|
(R) => P(R) || q(R)
|
|
2483
2483
|
);
|
|
2484
2484
|
}
|
|
2485
|
-
function At(...
|
|
2485
|
+
function At(...A) {
|
|
2486
2486
|
return Ee(
|
|
2487
|
-
(R) => Reflect.apply(Fr, null, [R, ...
|
|
2488
|
-
() => An(...
|
|
2487
|
+
(R) => Reflect.apply(Fr, null, [R, ...A]),
|
|
2488
|
+
() => An(...A),
|
|
2489
2489
|
"datetime format",
|
|
2490
2490
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2491
|
-
(R) => R[Pn](...
|
|
2491
|
+
(R) => R[Pn](...A),
|
|
2492
2492
|
Br,
|
|
2493
2493
|
(R) => P(R) || q(R)
|
|
2494
2494
|
);
|
|
2495
2495
|
}
|
|
2496
|
-
function _(
|
|
2497
|
-
C =
|
|
2496
|
+
function _(A) {
|
|
2497
|
+
C = A, T.pluralRules = C;
|
|
2498
2498
|
}
|
|
2499
|
-
function u(
|
|
2499
|
+
function u(A, R) {
|
|
2500
2500
|
return Ee(() => {
|
|
2501
|
-
if (!
|
|
2501
|
+
if (!A)
|
|
2502
2502
|
return !1;
|
|
2503
|
-
const Y = P(R) ? R : c.value, ee = $(Y), Be = T.messageResolver(ee,
|
|
2503
|
+
const Y = P(R) ? R : c.value, ee = $(Y), Be = T.messageResolver(ee, A);
|
|
2504
2504
|
return i ? Be != null : qe(Be) || be(Be) || P(Be);
|
|
2505
|
-
}, () => [
|
|
2505
|
+
}, () => [A], "translate exists", (Y) => Reflect.apply(Y.te, Y, [A, R]), Ri, (Y) => B(Y));
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2507
|
+
function L(A) {
|
|
2508
2508
|
let R = null;
|
|
2509
2509
|
const Y = Ds(T, h.value, c.value);
|
|
2510
2510
|
for (let ee = 0; ee < Y.length; ee++) {
|
|
2511
|
-
const Be = m.value[Y[ee]] || {}, Yt = T.messageResolver(Be,
|
|
2511
|
+
const Be = m.value[Y[ee]] || {}, Yt = T.messageResolver(Be, A);
|
|
2512
2512
|
if (Yt != null) {
|
|
2513
2513
|
R = Yt;
|
|
2514
2514
|
break;
|
|
@@ -2516,69 +2516,69 @@ function nr(e = {}, t) {
|
|
|
2516
2516
|
}
|
|
2517
2517
|
return R;
|
|
2518
2518
|
}
|
|
2519
|
-
function
|
|
2520
|
-
const R =
|
|
2521
|
-
return R ?? (n ? n.tm(
|
|
2519
|
+
function F(A) {
|
|
2520
|
+
const R = L(A);
|
|
2521
|
+
return R ?? (n ? n.tm(A) || {} : {});
|
|
2522
2522
|
}
|
|
2523
|
-
function $(
|
|
2524
|
-
return m.value[
|
|
2523
|
+
function $(A) {
|
|
2524
|
+
return m.value[A] || {};
|
|
2525
2525
|
}
|
|
2526
|
-
function j(
|
|
2526
|
+
function j(A, R) {
|
|
2527
2527
|
if (r) {
|
|
2528
|
-
const Y = { [
|
|
2528
|
+
const Y = { [A]: R };
|
|
2529
2529
|
for (const ee in Y)
|
|
2530
2530
|
rn(Y, ee) && Wt(Y[ee]);
|
|
2531
|
-
R = Y[
|
|
2531
|
+
R = Y[A];
|
|
2532
2532
|
}
|
|
2533
|
-
m.value[
|
|
2533
|
+
m.value[A] = R, T.messages = m.value;
|
|
2534
2534
|
}
|
|
2535
|
-
function Oe(
|
|
2536
|
-
m.value[
|
|
2537
|
-
const Y = { [
|
|
2535
|
+
function Oe(A, R) {
|
|
2536
|
+
m.value[A] = m.value[A] || {};
|
|
2537
|
+
const Y = { [A]: R };
|
|
2538
2538
|
if (r)
|
|
2539
2539
|
for (const ee in Y)
|
|
2540
2540
|
rn(Y, ee) && Wt(Y[ee]);
|
|
2541
|
-
R = Y[
|
|
2541
|
+
R = Y[A], en(R, m.value[A]), T.messages = m.value;
|
|
2542
2542
|
}
|
|
2543
|
-
function we(
|
|
2544
|
-
return f.value[
|
|
2543
|
+
function we(A) {
|
|
2544
|
+
return f.value[A] || {};
|
|
2545
2545
|
}
|
|
2546
|
-
function Ia(
|
|
2547
|
-
f.value[
|
|
2546
|
+
function Ia(A, R) {
|
|
2547
|
+
f.value[A] = R, T.datetimeFormats = f.value, xr(T, A, R);
|
|
2548
2548
|
}
|
|
2549
|
-
function ka(
|
|
2550
|
-
f.value[
|
|
2549
|
+
function ka(A, R) {
|
|
2550
|
+
f.value[A] = ue(f.value[A] || {}, R), T.datetimeFormats = f.value, xr(T, A, R);
|
|
2551
2551
|
}
|
|
2552
|
-
function Sa(
|
|
2553
|
-
return
|
|
2552
|
+
function Sa(A) {
|
|
2553
|
+
return E.value[A] || {};
|
|
2554
2554
|
}
|
|
2555
|
-
function Aa(
|
|
2556
|
-
|
|
2555
|
+
function Aa(A, R) {
|
|
2556
|
+
E.value[A] = R, T.numberFormats = E.value, $r(T, A, R);
|
|
2557
2557
|
}
|
|
2558
|
-
function Ca(
|
|
2559
|
-
|
|
2558
|
+
function Ca(A, R) {
|
|
2559
|
+
E.value[A] = ue(E.value[A] || {}, R), T.numberFormats = E.value, $r(T, A, R);
|
|
2560
2560
|
}
|
|
2561
|
-
Hr++, n && Ne && (Xe(n.locale, (
|
|
2562
|
-
l && (c.value =
|
|
2563
|
-
}), Xe(n.fallbackLocale, (
|
|
2564
|
-
l && (h.value =
|
|
2561
|
+
Hr++, n && Ne && (Xe(n.locale, (A) => {
|
|
2562
|
+
l && (c.value = A, T.locale = A, Ct(T, c.value, h.value));
|
|
2563
|
+
}), Xe(n.fallbackLocale, (A) => {
|
|
2564
|
+
l && (h.value = A, T.fallbackLocale = A, Ct(T, c.value, h.value));
|
|
2565
2565
|
}));
|
|
2566
2566
|
const ne = {
|
|
2567
2567
|
id: Hr,
|
|
2568
|
-
locale:
|
|
2568
|
+
locale: O,
|
|
2569
2569
|
fallbackLocale: M,
|
|
2570
2570
|
get inheritLocale() {
|
|
2571
2571
|
return l;
|
|
2572
2572
|
},
|
|
2573
|
-
set inheritLocale(
|
|
2574
|
-
l =
|
|
2573
|
+
set inheritLocale(A) {
|
|
2574
|
+
l = A, A && n && (c.value = n.locale.value, h.value = n.fallbackLocale.value, Ct(T, c.value, h.value));
|
|
2575
2575
|
},
|
|
2576
2576
|
get availableLocales() {
|
|
2577
2577
|
return Object.keys(m.value).sort();
|
|
2578
2578
|
},
|
|
2579
2579
|
messages: Z,
|
|
2580
2580
|
get modifiers() {
|
|
2581
|
-
return
|
|
2581
|
+
return y;
|
|
2582
2582
|
},
|
|
2583
2583
|
get pluralRules() {
|
|
2584
2584
|
return C || {};
|
|
@@ -2587,40 +2587,40 @@ function nr(e = {}, t) {
|
|
|
2587
2587
|
return a;
|
|
2588
2588
|
},
|
|
2589
2589
|
get missingWarn() {
|
|
2590
|
-
return
|
|
2590
|
+
return N;
|
|
2591
2591
|
},
|
|
2592
|
-
set missingWarn(
|
|
2593
|
-
|
|
2592
|
+
set missingWarn(A) {
|
|
2593
|
+
N = A, T.missingWarn = N;
|
|
2594
2594
|
},
|
|
2595
2595
|
get fallbackWarn() {
|
|
2596
2596
|
return I;
|
|
2597
2597
|
},
|
|
2598
|
-
set fallbackWarn(
|
|
2599
|
-
I =
|
|
2598
|
+
set fallbackWarn(A) {
|
|
2599
|
+
I = A, T.fallbackWarn = I;
|
|
2600
2600
|
},
|
|
2601
2601
|
get fallbackRoot() {
|
|
2602
|
-
return
|
|
2602
|
+
return S;
|
|
2603
2603
|
},
|
|
2604
|
-
set fallbackRoot(
|
|
2605
|
-
|
|
2604
|
+
set fallbackRoot(A) {
|
|
2605
|
+
S = A;
|
|
2606
2606
|
},
|
|
2607
2607
|
get fallbackFormat() {
|
|
2608
2608
|
return d;
|
|
2609
2609
|
},
|
|
2610
|
-
set fallbackFormat(
|
|
2611
|
-
d =
|
|
2610
|
+
set fallbackFormat(A) {
|
|
2611
|
+
d = A, T.fallbackFormat = d;
|
|
2612
2612
|
},
|
|
2613
2613
|
get warnHtmlMessage() {
|
|
2614
|
-
return
|
|
2614
|
+
return k;
|
|
2615
2615
|
},
|
|
2616
|
-
set warnHtmlMessage(
|
|
2617
|
-
|
|
2616
|
+
set warnHtmlMessage(A) {
|
|
2617
|
+
k = A, T.warnHtmlMessage = A;
|
|
2618
2618
|
},
|
|
2619
2619
|
get escapeParameter() {
|
|
2620
2620
|
return b;
|
|
2621
2621
|
},
|
|
2622
|
-
set escapeParameter(
|
|
2623
|
-
b =
|
|
2622
|
+
set escapeParameter(A) {
|
|
2623
|
+
b = A, T.escapeParameter = A;
|
|
2624
2624
|
},
|
|
2625
2625
|
t: ft,
|
|
2626
2626
|
getLocaleMessage: $,
|
|
@@ -2632,31 +2632,31 @@ function nr(e = {}, t) {
|
|
|
2632
2632
|
setMissingHandler: yt,
|
|
2633
2633
|
[Qs]: _
|
|
2634
2634
|
};
|
|
2635
|
-
return ne.datetimeFormats = K, ne.numberFormats = te, ne.rt = dt, ne.te = u, ne.tm =
|
|
2636
|
-
T.__v_emitter =
|
|
2635
|
+
return ne.datetimeFormats = K, ne.numberFormats = te, ne.rt = dt, ne.te = u, ne.tm = F, ne.d = It, ne.n = kt, ne.getDateTimeFormat = we, ne.setDateTimeFormat = Ia, ne.mergeDateTimeFormat = ka, ne.getNumberFormat = Sa, ne.setNumberFormat = Aa, ne.mergeNumberFormat = Ca, ne[ea] = s, ne[Rn] = We, ne[Pn] = At, ne[Mn] = Qe, process.env.NODE_ENV !== "production" && (ne[ut] = (A) => {
|
|
2636
|
+
T.__v_emitter = A;
|
|
2637
2637
|
}, ne[Vt] = () => {
|
|
2638
2638
|
T.__v_emitter = void 0;
|
|
2639
2639
|
}), ne;
|
|
2640
2640
|
}
|
|
2641
2641
|
function Mi(e) {
|
|
2642
|
-
const t = P(e.locale) ? e.locale : Et, n = P(e.fallbackLocale) || q(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = X(e.missing) ? e.missing : void 0, a =
|
|
2642
|
+
const t = P(e.locale) ? e.locale : Et, n = P(e.fallbackLocale) || q(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = X(e.missing) ? e.missing : void 0, a = B(e.silentTranslationWarn) || Ke(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = B(e.silentFallbackWarn) || Ke(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = B(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, l = V(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, h = X(e.postTranslation) ? e.postTranslation : void 0, m = P(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, f = !!e.escapeParameterHtml, E = B(e.sync) ? e.sync : !0;
|
|
2643
2643
|
process.env.NODE_ENV !== "production" && e.formatter && (pe(J.NOT_SUPPORTED_FORMATTER), void 0), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && (pe(J.NOT_SUPPORTED_PRESERVE_DIRECTIVE), void 0);
|
|
2644
|
-
let
|
|
2644
|
+
let N = e.messages;
|
|
2645
2645
|
if (V(e.sharedMessages)) {
|
|
2646
2646
|
const b = e.sharedMessages;
|
|
2647
|
-
|
|
2647
|
+
N = Object.keys(b).reduce((C, T) => {
|
|
2648
2648
|
const w = C[T] || (C[T] = {});
|
|
2649
2649
|
return ue(w, b[T]), C;
|
|
2650
|
-
},
|
|
2650
|
+
}, N || {});
|
|
2651
2651
|
}
|
|
2652
|
-
const { __i18n: I, __root:
|
|
2652
|
+
const { __i18n: I, __root: S, __injectWithOption: d } = e, p = e.datetimeFormats, v = e.numberFormats, g = e.flatJson, k = e.translateExistCompatible;
|
|
2653
2653
|
return {
|
|
2654
2654
|
locale: t,
|
|
2655
2655
|
fallbackLocale: n,
|
|
2656
|
-
messages:
|
|
2656
|
+
messages: N,
|
|
2657
2657
|
flatJson: g,
|
|
2658
2658
|
datetimeFormats: p,
|
|
2659
|
-
numberFormats:
|
|
2659
|
+
numberFormats: v,
|
|
2660
2660
|
missing: s,
|
|
2661
2661
|
missingWarn: a,
|
|
2662
2662
|
fallbackWarn: r,
|
|
@@ -2668,10 +2668,10 @@ function Mi(e) {
|
|
|
2668
2668
|
warnHtmlMessage: m,
|
|
2669
2669
|
escapeParameter: f,
|
|
2670
2670
|
messageResolver: e.messageResolver,
|
|
2671
|
-
inheritLocale:
|
|
2672
|
-
translateExistCompatible:
|
|
2671
|
+
inheritLocale: E,
|
|
2672
|
+
translateExistCompatible: k,
|
|
2673
2673
|
__i18n: I,
|
|
2674
|
-
__root:
|
|
2674
|
+
__root: S,
|
|
2675
2675
|
__injectWithOption: d
|
|
2676
2676
|
};
|
|
2677
2677
|
}
|
|
@@ -2730,17 +2730,17 @@ function Fn(e = {}, t) {
|
|
|
2730
2730
|
},
|
|
2731
2731
|
// silentTranslationWarn
|
|
2732
2732
|
get silentTranslationWarn() {
|
|
2733
|
-
return
|
|
2733
|
+
return B(n.missingWarn) ? !n.missingWarn : n.missingWarn;
|
|
2734
2734
|
},
|
|
2735
2735
|
set silentTranslationWarn(r) {
|
|
2736
|
-
n.missingWarn =
|
|
2736
|
+
n.missingWarn = B(r) ? !r : r;
|
|
2737
2737
|
},
|
|
2738
2738
|
// silentFallbackWarn
|
|
2739
2739
|
get silentFallbackWarn() {
|
|
2740
|
-
return
|
|
2740
|
+
return B(n.fallbackWarn) ? !n.fallbackWarn : n.fallbackWarn;
|
|
2741
2741
|
},
|
|
2742
2742
|
set silentFallbackWarn(r) {
|
|
2743
|
-
n.fallbackWarn =
|
|
2743
|
+
n.fallbackWarn = B(r) ? !r : r;
|
|
2744
2744
|
},
|
|
2745
2745
|
// modifiers
|
|
2746
2746
|
get modifiers() {
|
|
@@ -2958,12 +2958,12 @@ function sa(e, t, n, s) {
|
|
|
2958
2958
|
return () => {
|
|
2959
2959
|
const o = { part: !0 };
|
|
2960
2960
|
let i = {};
|
|
2961
|
-
e.locale && (o.locale = e.locale), P(e.format) ? o.key = e.format : G(e.format) && (P(e.format.key) && (o.key = e.format.key), i = Object.keys(e.format).reduce((f,
|
|
2961
|
+
e.locale && (o.locale = e.locale), P(e.format) ? o.key = e.format : G(e.format) && (P(e.format.key) && (o.key = e.format.key), i = Object.keys(e.format).reduce((f, E) => n.includes(E) ? ue({}, f, { [E]: e.format[E] }) : f, {}));
|
|
2962
2962
|
const l = s(e.value, o, i);
|
|
2963
2963
|
let c = [o.key];
|
|
2964
|
-
q(l) ? c = l.map((f,
|
|
2965
|
-
const
|
|
2966
|
-
return xi(I) && (I[0].key = `${f.type}-${
|
|
2964
|
+
q(l) ? c = l.map((f, E) => {
|
|
2965
|
+
const N = a[f.type], I = N ? N({ [f.type]: f.value, index: E, parts: l }) : [f.value];
|
|
2966
|
+
return xi(I) && (I[0].key = `${f.type}-${E}`), I;
|
|
2967
2967
|
}) : P(l) && (c = [l]);
|
|
2968
2968
|
const h = ue({}, r), m = P(e.tag) || G(e.tag) ? e.tag : ra();
|
|
2969
2969
|
return Hn(m, h, c);
|
|
@@ -3079,7 +3079,7 @@ function zr(e) {
|
|
|
3079
3079
|
return P(n) && (o.locale = n), re(a) && (o.plural = a), re(r) && (o.plural = r), [t, i, o];
|
|
3080
3080
|
}
|
|
3081
3081
|
function Bi(e, t, ...n) {
|
|
3082
|
-
const s = V(n[0]) ? n[0] : {}, a = !!s.useI18nComponentName, r =
|
|
3082
|
+
const s = V(n[0]) ? n[0] : {}, a = !!s.useI18nComponentName, r = B(s.globalInstall) ? s.globalInstall : !0;
|
|
3083
3083
|
process.env.NODE_ENV !== "production" && r && a && (pe(J.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
|
3084
3084
|
name: bn.name
|
|
3085
3085
|
}), void 0), r && ([a ? "i18n" : bn.name, "I18nT"].forEach((o) => e.component(o, bn)), [jr.name, "I18nN"].forEach((o) => e.component(o, jr)), [Yr.name, "I18nD"].forEach((o) => e.component(o, Yr))), e.directive("t", Wi(t));
|
|
@@ -3356,7 +3356,7 @@ function tl(e, t) {
|
|
|
3356
3356
|
const n = ia(e.nodeId, t);
|
|
3357
3357
|
if (n) {
|
|
3358
3358
|
const [s] = e.path;
|
|
3359
|
-
s === "locale" && P(e.state.value) ? n.locale.value = e.state.value : s === "fallbackLocale" && (P(e.state.value) || q(e.state.value) || G(e.state.value)) ? n.fallbackLocale.value = e.state.value : s === "inheritLocale" &&
|
|
3359
|
+
s === "locale" && P(e.state.value) ? n.locale.value = e.state.value : s === "fallbackLocale" && (P(e.state.value) || q(e.state.value) || G(e.state.value)) ? n.fallbackLocale.value = e.state.value : s === "inheritLocale" && B(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3360
3360
|
}
|
|
3361
3361
|
}
|
|
3362
3362
|
function nl(e, t, n) {
|
|
@@ -3419,13 +3419,13 @@ function qr(e, t) {
|
|
|
3419
3419
|
}
|
|
3420
3420
|
const rl = /* @__PURE__ */ Ae("global-vue-i18n");
|
|
3421
3421
|
function sl(e = {}, t) {
|
|
3422
|
-
const n = __VUE_I18N_LEGACY_API__ &&
|
|
3422
|
+
const n = __VUE_I18N_LEGACY_API__ && B(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, s = B(e.globalInjection) ? e.globalInjection : !0, a = __VUE_I18N_LEGACY_API__ && n ? !!e.allowComposition : !0, r = /* @__PURE__ */ new Map(), [o, i] = al(e, n), l = /* @__PURE__ */ Ae(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3423
3423
|
process.env.NODE_ENV !== "production" && n && a && (pe(J.NOTICE_DROP_ALLOW_COMPOSITION), void 0);
|
|
3424
3424
|
function c(f) {
|
|
3425
3425
|
return r.get(f) || null;
|
|
3426
3426
|
}
|
|
3427
|
-
function h(f,
|
|
3428
|
-
r.set(f,
|
|
3427
|
+
function h(f, E) {
|
|
3428
|
+
r.set(f, E);
|
|
3429
3429
|
}
|
|
3430
3430
|
function m(f) {
|
|
3431
3431
|
r.delete(f);
|
|
@@ -3441,26 +3441,26 @@ function sl(e = {}, t) {
|
|
|
3441
3441
|
return a;
|
|
3442
3442
|
},
|
|
3443
3443
|
// install plugin
|
|
3444
|
-
async install(
|
|
3445
|
-
if (process.env.NODE_ENV !== "production" && (
|
|
3446
|
-
const d =
|
|
3444
|
+
async install(E, ...N) {
|
|
3445
|
+
if (process.env.NODE_ENV !== "production" && (E.__VUE_I18N__ = f), E.__VUE_I18N_SYMBOL__ = l, E.provide(E.__VUE_I18N_SYMBOL__, f), V(N[0])) {
|
|
3446
|
+
const d = N[0];
|
|
3447
3447
|
f.__composerExtend = d.__composerExtend, f.__vueI18nExtend = d.__vueI18nExtend;
|
|
3448
3448
|
}
|
|
3449
3449
|
let I = null;
|
|
3450
|
-
!n && s && (I = ml(
|
|
3451
|
-
const
|
|
3452
|
-
if (
|
|
3453
|
-
I && I(), f.dispose(),
|
|
3450
|
+
!n && s && (I = ml(E, f.global)), __VUE_I18N_FULL_INSTALL__ && Bi(E, f, ...N), __VUE_I18N_LEGACY_API__ && n && E.mixin(nl(i, i.__composer, f));
|
|
3451
|
+
const S = E.unmount;
|
|
3452
|
+
if (E.unmount = () => {
|
|
3453
|
+
I && I(), f.dispose(), S();
|
|
3454
3454
|
}, process.env.NODE_ENV !== "production") {
|
|
3455
|
-
if (!await ji(
|
|
3455
|
+
if (!await ji(E, f))
|
|
3456
3456
|
throw ae(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3457
3457
|
const p = Jn();
|
|
3458
3458
|
if (n) {
|
|
3459
|
-
const
|
|
3460
|
-
|
|
3459
|
+
const v = i;
|
|
3460
|
+
v.__enableEmitter && v.__enableEmitter(p);
|
|
3461
3461
|
} else {
|
|
3462
|
-
const
|
|
3463
|
-
|
|
3462
|
+
const v = i;
|
|
3463
|
+
v[ut] && v[ut](p);
|
|
3464
3464
|
}
|
|
3465
3465
|
p.on("*", Bt);
|
|
3466
3466
|
}
|
|
@@ -3573,13 +3573,13 @@ function dl(e, t, n, s = {}) {
|
|
|
3573
3573
|
const a = t === "local", r = Ns(null);
|
|
3574
3574
|
if (a && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
|
|
3575
3575
|
throw ae(H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
|
|
3576
|
-
const o =
|
|
3576
|
+
const o = B(s.inheritLocale) ? s.inheritLocale : !P(s.locale), i = Q(
|
|
3577
3577
|
// prettier-ignore
|
|
3578
3578
|
!a || o ? n.locale.value : P(s.locale) ? s.locale : Et
|
|
3579
3579
|
), l = Q(
|
|
3580
3580
|
// prettier-ignore
|
|
3581
3581
|
!a || o ? n.fallbackLocale.value : P(s.fallbackLocale) || q(s.fallbackLocale) || V(s.fallbackLocale) || s.fallbackLocale === !1 ? s.fallbackLocale : i.value
|
|
3582
|
-
), c = Q(mn(i.value, s)), h = Q(V(s.datetimeFormats) ? s.datetimeFormats : { [i.value]: {} }), m = Q(V(s.numberFormats) ? s.numberFormats : { [i.value]: {} }), f = a ? n.missingWarn :
|
|
3582
|
+
), c = Q(mn(i.value, s)), h = Q(V(s.datetimeFormats) ? s.datetimeFormats : { [i.value]: {} }), m = Q(V(s.numberFormats) ? s.numberFormats : { [i.value]: {} }), f = a ? n.missingWarn : B(s.missingWarn) || Ke(s.missingWarn) ? s.missingWarn : !0, E = a ? n.fallbackWarn : B(s.fallbackWarn) || Ke(s.fallbackWarn) ? s.fallbackWarn : !0, N = a ? n.fallbackRoot : B(s.fallbackRoot) ? s.fallbackRoot : !0, I = !!s.fallbackFormat, S = X(s.missing) ? s.missing : null, d = X(s.postTranslation) ? s.postTranslation : null, p = a ? n.warnHtmlMessage : B(s.warnHtmlMessage) ? s.warnHtmlMessage : !0, v = !!s.escapeParameter, g = a ? n.modifiers : V(s.modifiers) ? s.modifiers : {}, k = s.pluralRules || a && n.pluralRules;
|
|
3583
3583
|
function b() {
|
|
3584
3584
|
return [
|
|
3585
3585
|
i.value,
|
|
@@ -3589,7 +3589,7 @@ function dl(e, t, n, s = {}) {
|
|
|
3589
3589
|
m.value
|
|
3590
3590
|
];
|
|
3591
3591
|
}
|
|
3592
|
-
const
|
|
3592
|
+
const y = ce({
|
|
3593
3593
|
get: () => r.value ? r.value.locale.value : i.value,
|
|
3594
3594
|
set: (u) => {
|
|
3595
3595
|
r.value && (r.value.locale.value = u), i.value = u;
|
|
@@ -3599,15 +3599,15 @@ function dl(e, t, n, s = {}) {
|
|
|
3599
3599
|
set: (u) => {
|
|
3600
3600
|
r.value && (r.value.fallbackLocale.value = u), l.value = u;
|
|
3601
3601
|
}
|
|
3602
|
-
}), T = ce(() => r.value ? r.value.messages.value : c.value), w = ce(() => h.value),
|
|
3603
|
-
function
|
|
3602
|
+
}), T = ce(() => r.value ? r.value.messages.value : c.value), w = ce(() => h.value), D = ce(() => m.value);
|
|
3603
|
+
function O() {
|
|
3604
3604
|
return r.value ? r.value.getPostTranslationHandler() : d;
|
|
3605
3605
|
}
|
|
3606
3606
|
function M(u) {
|
|
3607
3607
|
r.value && r.value.setPostTranslationHandler(u);
|
|
3608
3608
|
}
|
|
3609
3609
|
function Z() {
|
|
3610
|
-
return r.value ? r.value.getMissingHandler() :
|
|
3610
|
+
return r.value ? r.value.getMissingHandler() : S;
|
|
3611
3611
|
}
|
|
3612
3612
|
function K(u) {
|
|
3613
3613
|
r.value && r.value.setMissingHandler(u);
|
|
@@ -3630,45 +3630,45 @@ function dl(e, t, n, s = {}) {
|
|
|
3630
3630
|
function Lt(u) {
|
|
3631
3631
|
return r.value ? r.value.tm(u) : {};
|
|
3632
3632
|
}
|
|
3633
|
-
function Ee(u,
|
|
3634
|
-
return r.value ? r.value.te(u,
|
|
3633
|
+
function Ee(u, L) {
|
|
3634
|
+
return r.value ? r.value.te(u, L) : !1;
|
|
3635
3635
|
}
|
|
3636
3636
|
function ft(u) {
|
|
3637
3637
|
return r.value ? r.value.getLocaleMessage(u) : {};
|
|
3638
3638
|
}
|
|
3639
|
-
function dt(u,
|
|
3640
|
-
r.value && (r.value.setLocaleMessage(u,
|
|
3639
|
+
function dt(u, L) {
|
|
3640
|
+
r.value && (r.value.setLocaleMessage(u, L), c.value[u] = L);
|
|
3641
3641
|
}
|
|
3642
|
-
function It(u,
|
|
3643
|
-
r.value && r.value.mergeLocaleMessage(u,
|
|
3642
|
+
function It(u, L) {
|
|
3643
|
+
r.value && r.value.mergeLocaleMessage(u, L);
|
|
3644
3644
|
}
|
|
3645
3645
|
function kt(u) {
|
|
3646
3646
|
return r.value ? r.value.getDateTimeFormat(u) : {};
|
|
3647
3647
|
}
|
|
3648
|
-
function St(u,
|
|
3649
|
-
r.value && (r.value.setDateTimeFormat(u,
|
|
3648
|
+
function St(u, L) {
|
|
3649
|
+
r.value && (r.value.setDateTimeFormat(u, L), h.value[u] = L);
|
|
3650
3650
|
}
|
|
3651
|
-
function _t(u,
|
|
3652
|
-
r.value && r.value.mergeDateTimeFormat(u,
|
|
3651
|
+
function _t(u, L) {
|
|
3652
|
+
r.value && r.value.mergeDateTimeFormat(u, L);
|
|
3653
3653
|
}
|
|
3654
3654
|
function Je(u) {
|
|
3655
3655
|
return r.value ? r.value.getNumberFormat(u) : {};
|
|
3656
3656
|
}
|
|
3657
|
-
function We(u,
|
|
3658
|
-
r.value && (r.value.setNumberFormat(u,
|
|
3657
|
+
function We(u, L) {
|
|
3658
|
+
r.value && (r.value.setNumberFormat(u, L), m.value[u] = L);
|
|
3659
3659
|
}
|
|
3660
|
-
function Qe(u,
|
|
3661
|
-
r.value && r.value.mergeNumberFormat(u,
|
|
3660
|
+
function Qe(u, L) {
|
|
3661
|
+
r.value && r.value.mergeNumberFormat(u, L);
|
|
3662
3662
|
}
|
|
3663
3663
|
const At = {
|
|
3664
3664
|
get id() {
|
|
3665
3665
|
return r.value ? r.value.id : -1;
|
|
3666
3666
|
},
|
|
3667
|
-
locale:
|
|
3667
|
+
locale: y,
|
|
3668
3668
|
fallbackLocale: C,
|
|
3669
3669
|
messages: T,
|
|
3670
3670
|
datetimeFormats: w,
|
|
3671
|
-
numberFormats:
|
|
3671
|
+
numberFormats: D,
|
|
3672
3672
|
get inheritLocale() {
|
|
3673
3673
|
return r.value ? r.value.inheritLocale : o;
|
|
3674
3674
|
},
|
|
@@ -3682,7 +3682,7 @@ function dl(e, t, n, s = {}) {
|
|
|
3682
3682
|
return r.value ? r.value.modifiers : g;
|
|
3683
3683
|
},
|
|
3684
3684
|
get pluralRules() {
|
|
3685
|
-
return r.value ? r.value.pluralRules :
|
|
3685
|
+
return r.value ? r.value.pluralRules : k;
|
|
3686
3686
|
},
|
|
3687
3687
|
get isGlobal() {
|
|
3688
3688
|
return r.value ? r.value.isGlobal : !1;
|
|
@@ -3694,13 +3694,13 @@ function dl(e, t, n, s = {}) {
|
|
|
3694
3694
|
r.value && (r.value.missingWarn = u);
|
|
3695
3695
|
},
|
|
3696
3696
|
get fallbackWarn() {
|
|
3697
|
-
return r.value ? r.value.fallbackWarn :
|
|
3697
|
+
return r.value ? r.value.fallbackWarn : E;
|
|
3698
3698
|
},
|
|
3699
3699
|
set fallbackWarn(u) {
|
|
3700
3700
|
r.value && (r.value.missingWarn = u);
|
|
3701
3701
|
},
|
|
3702
3702
|
get fallbackRoot() {
|
|
3703
|
-
return r.value ? r.value.fallbackRoot :
|
|
3703
|
+
return r.value ? r.value.fallbackRoot : N;
|
|
3704
3704
|
},
|
|
3705
3705
|
set fallbackRoot(u) {
|
|
3706
3706
|
r.value && (r.value.fallbackRoot = u);
|
|
@@ -3718,13 +3718,13 @@ function dl(e, t, n, s = {}) {
|
|
|
3718
3718
|
r.value && (r.value.warnHtmlMessage = u);
|
|
3719
3719
|
},
|
|
3720
3720
|
get escapeParameter() {
|
|
3721
|
-
return r.value ? r.value.escapeParameter :
|
|
3721
|
+
return r.value ? r.value.escapeParameter : v;
|
|
3722
3722
|
},
|
|
3723
3723
|
set escapeParameter(u) {
|
|
3724
3724
|
r.value && (r.value.escapeParameter = u);
|
|
3725
3725
|
},
|
|
3726
3726
|
t: de,
|
|
3727
|
-
getPostTranslationHandler:
|
|
3727
|
+
getPostTranslationHandler: O,
|
|
3728
3728
|
setPostTranslationHandler: M,
|
|
3729
3729
|
getMissingHandler: Z,
|
|
3730
3730
|
setMissingHandler: K,
|
|
@@ -3744,13 +3744,13 @@ function dl(e, t, n, s = {}) {
|
|
|
3744
3744
|
mergeNumberFormat: Qe
|
|
3745
3745
|
};
|
|
3746
3746
|
function _(u) {
|
|
3747
|
-
u.locale.value = i.value, u.fallbackLocale.value = l.value, Object.keys(c.value).forEach((
|
|
3748
|
-
u.mergeLocaleMessage(
|
|
3749
|
-
}), Object.keys(h.value).forEach((
|
|
3750
|
-
u.mergeDateTimeFormat(
|
|
3751
|
-
}), Object.keys(m.value).forEach((
|
|
3752
|
-
u.mergeNumberFormat(
|
|
3753
|
-
}), u.escapeParameter =
|
|
3747
|
+
u.locale.value = i.value, u.fallbackLocale.value = l.value, Object.keys(c.value).forEach((L) => {
|
|
3748
|
+
u.mergeLocaleMessage(L, c.value[L]);
|
|
3749
|
+
}), Object.keys(h.value).forEach((L) => {
|
|
3750
|
+
u.mergeDateTimeFormat(L, h.value[L]);
|
|
3751
|
+
}), Object.keys(m.value).forEach((L) => {
|
|
3752
|
+
u.mergeNumberFormat(L, m.value[L]);
|
|
3753
|
+
}), u.escapeParameter = v, u.fallbackFormat = I, u.fallbackRoot = N, u.fallbackWarn = E, u.missingWarn = f, u.warnHtmlMessage = p;
|
|
3754
3754
|
}
|
|
3755
3755
|
return Os(() => {
|
|
3756
3756
|
if (e.proxy == null || e.proxy.$i18n == null)
|
|
@@ -4150,8 +4150,8 @@ ir.exports;
|
|
|
4150
4150
|
//compress into uint8array (UCS-2 big endian format)
|
|
4151
4151
|
compressToUint8Array: function(l) {
|
|
4152
4152
|
for (var c = i.compress(l), h = new Uint8Array(c.length * 2), m = 0, f = c.length; m < f; m++) {
|
|
4153
|
-
var
|
|
4154
|
-
h[m * 2] =
|
|
4153
|
+
var E = c.charCodeAt(m);
|
|
4154
|
+
h[m * 2] = E >>> 8, h[m * 2 + 1] = E % 256;
|
|
4155
4155
|
}
|
|
4156
4156
|
return h;
|
|
4157
4157
|
},
|
|
@@ -4162,8 +4162,8 @@ ir.exports;
|
|
|
4162
4162
|
for (var c = new Array(l.length / 2), h = 0, m = c.length; h < m; h++)
|
|
4163
4163
|
c[h] = l[h * 2] * 256 + l[h * 2 + 1];
|
|
4164
4164
|
var f = [];
|
|
4165
|
-
return c.forEach(function(
|
|
4166
|
-
f.push(n(
|
|
4165
|
+
return c.forEach(function(E) {
|
|
4166
|
+
f.push(n(E));
|
|
4167
4167
|
}), i.decompress(f.join(""));
|
|
4168
4168
|
},
|
|
4169
4169
|
//compress into a string that is already URI encoded
|
|
@@ -4186,57 +4186,57 @@ ir.exports;
|
|
|
4186
4186
|
_compress: function(l, c, h) {
|
|
4187
4187
|
if (l == null)
|
|
4188
4188
|
return "";
|
|
4189
|
-
var m, f,
|
|
4189
|
+
var m, f, E = {}, N = {}, I = "", S = "", d = "", p = 2, v = 3, g = 2, k = [], b = 0, y = 0, C;
|
|
4190
4190
|
for (C = 0; C < l.length; C += 1)
|
|
4191
|
-
if (I = l.charAt(C), Object.prototype.hasOwnProperty.call(
|
|
4192
|
-
d =
|
|
4191
|
+
if (I = l.charAt(C), Object.prototype.hasOwnProperty.call(E, I) || (E[I] = v++, N[I] = !0), S = d + I, Object.prototype.hasOwnProperty.call(E, S))
|
|
4192
|
+
d = S;
|
|
4193
4193
|
else {
|
|
4194
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4194
|
+
if (Object.prototype.hasOwnProperty.call(N, d)) {
|
|
4195
4195
|
if (d.charCodeAt(0) < 256) {
|
|
4196
4196
|
for (m = 0; m < g; m++)
|
|
4197
|
-
b = b << 1,
|
|
4197
|
+
b = b << 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++;
|
|
4198
4198
|
for (f = d.charCodeAt(0), m = 0; m < 8; m++)
|
|
4199
|
-
b = b << 1 | f & 1,
|
|
4199
|
+
b = b << 1 | f & 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = f >> 1;
|
|
4200
4200
|
} else {
|
|
4201
4201
|
for (f = 1, m = 0; m < g; m++)
|
|
4202
|
-
b = b << 1 | f,
|
|
4202
|
+
b = b << 1 | f, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = 0;
|
|
4203
4203
|
for (f = d.charCodeAt(0), m = 0; m < 16; m++)
|
|
4204
|
-
b = b << 1 | f & 1,
|
|
4204
|
+
b = b << 1 | f & 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = f >> 1;
|
|
4205
4205
|
}
|
|
4206
|
-
p--, p == 0 && (p = Math.pow(2, g), g++), delete
|
|
4206
|
+
p--, p == 0 && (p = Math.pow(2, g), g++), delete N[d];
|
|
4207
4207
|
} else
|
|
4208
|
-
for (f =
|
|
4209
|
-
b = b << 1 | f & 1,
|
|
4210
|
-
p--, p == 0 && (p = Math.pow(2, g), g++),
|
|
4208
|
+
for (f = E[d], m = 0; m < g; m++)
|
|
4209
|
+
b = b << 1 | f & 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = f >> 1;
|
|
4210
|
+
p--, p == 0 && (p = Math.pow(2, g), g++), E[S] = v++, d = String(I);
|
|
4211
4211
|
}
|
|
4212
4212
|
if (d !== "") {
|
|
4213
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4213
|
+
if (Object.prototype.hasOwnProperty.call(N, d)) {
|
|
4214
4214
|
if (d.charCodeAt(0) < 256) {
|
|
4215
4215
|
for (m = 0; m < g; m++)
|
|
4216
|
-
b = b << 1,
|
|
4216
|
+
b = b << 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++;
|
|
4217
4217
|
for (f = d.charCodeAt(0), m = 0; m < 8; m++)
|
|
4218
|
-
b = b << 1 | f & 1,
|
|
4218
|
+
b = b << 1 | f & 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = f >> 1;
|
|
4219
4219
|
} else {
|
|
4220
4220
|
for (f = 1, m = 0; m < g; m++)
|
|
4221
|
-
b = b << 1 | f,
|
|
4221
|
+
b = b << 1 | f, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = 0;
|
|
4222
4222
|
for (f = d.charCodeAt(0), m = 0; m < 16; m++)
|
|
4223
|
-
b = b << 1 | f & 1,
|
|
4223
|
+
b = b << 1 | f & 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = f >> 1;
|
|
4224
4224
|
}
|
|
4225
|
-
p--, p == 0 && (p = Math.pow(2, g), g++), delete
|
|
4225
|
+
p--, p == 0 && (p = Math.pow(2, g), g++), delete N[d];
|
|
4226
4226
|
} else
|
|
4227
|
-
for (f =
|
|
4228
|
-
b = b << 1 | f & 1,
|
|
4227
|
+
for (f = E[d], m = 0; m < g; m++)
|
|
4228
|
+
b = b << 1 | f & 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = f >> 1;
|
|
4229
4229
|
p--, p == 0 && (p = Math.pow(2, g), g++);
|
|
4230
4230
|
}
|
|
4231
4231
|
for (f = 2, m = 0; m < g; m++)
|
|
4232
|
-
b = b << 1 | f & 1,
|
|
4232
|
+
b = b << 1 | f & 1, y == c - 1 ? (y = 0, k.push(h(b)), b = 0) : y++, f = f >> 1;
|
|
4233
4233
|
for (; ; )
|
|
4234
|
-
if (b = b << 1,
|
|
4235
|
-
|
|
4234
|
+
if (b = b << 1, y == c - 1) {
|
|
4235
|
+
k.push(h(b));
|
|
4236
4236
|
break;
|
|
4237
4237
|
} else
|
|
4238
|
-
|
|
4239
|
-
return
|
|
4238
|
+
y++;
|
|
4239
|
+
return k.join("");
|
|
4240
4240
|
},
|
|
4241
4241
|
decompress: function(l) {
|
|
4242
4242
|
return l == null ? "" : l == "" ? null : i._decompress(l.length, 32768, function(c) {
|
|
@@ -4244,51 +4244,51 @@ ir.exports;
|
|
|
4244
4244
|
});
|
|
4245
4245
|
},
|
|
4246
4246
|
_decompress: function(l, c, h) {
|
|
4247
|
-
var m = [], f = 4,
|
|
4247
|
+
var m = [], f = 4, E = 4, N = 3, I = "", S = [], d, p, v, g, k, b, y, C = { val: h(0), position: c, index: 1 };
|
|
4248
4248
|
for (d = 0; d < 3; d += 1)
|
|
4249
4249
|
m[d] = d;
|
|
4250
|
-
for (
|
|
4251
|
-
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)),
|
|
4252
|
-
switch (
|
|
4250
|
+
for (v = 0, k = Math.pow(2, 2), b = 1; b != k; )
|
|
4251
|
+
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)), v |= (g > 0 ? 1 : 0) * b, b <<= 1;
|
|
4252
|
+
switch (v) {
|
|
4253
4253
|
case 0:
|
|
4254
|
-
for (
|
|
4255
|
-
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)),
|
|
4256
|
-
|
|
4254
|
+
for (v = 0, k = Math.pow(2, 8), b = 1; b != k; )
|
|
4255
|
+
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)), v |= (g > 0 ? 1 : 0) * b, b <<= 1;
|
|
4256
|
+
y = n(v);
|
|
4257
4257
|
break;
|
|
4258
4258
|
case 1:
|
|
4259
|
-
for (
|
|
4260
|
-
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)),
|
|
4261
|
-
|
|
4259
|
+
for (v = 0, k = Math.pow(2, 16), b = 1; b != k; )
|
|
4260
|
+
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)), v |= (g > 0 ? 1 : 0) * b, b <<= 1;
|
|
4261
|
+
y = n(v);
|
|
4262
4262
|
break;
|
|
4263
4263
|
case 2:
|
|
4264
4264
|
return "";
|
|
4265
4265
|
}
|
|
4266
|
-
for (m[3] =
|
|
4266
|
+
for (m[3] = y, p = y, S.push(y); ; ) {
|
|
4267
4267
|
if (C.index > l)
|
|
4268
4268
|
return "";
|
|
4269
|
-
for (
|
|
4270
|
-
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)),
|
|
4271
|
-
switch (
|
|
4269
|
+
for (v = 0, k = Math.pow(2, N), b = 1; b != k; )
|
|
4270
|
+
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)), v |= (g > 0 ? 1 : 0) * b, b <<= 1;
|
|
4271
|
+
switch (y = v) {
|
|
4272
4272
|
case 0:
|
|
4273
|
-
for (
|
|
4274
|
-
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)),
|
|
4275
|
-
m[
|
|
4273
|
+
for (v = 0, k = Math.pow(2, 8), b = 1; b != k; )
|
|
4274
|
+
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)), v |= (g > 0 ? 1 : 0) * b, b <<= 1;
|
|
4275
|
+
m[E++] = n(v), y = E - 1, f--;
|
|
4276
4276
|
break;
|
|
4277
4277
|
case 1:
|
|
4278
|
-
for (
|
|
4279
|
-
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)),
|
|
4280
|
-
m[
|
|
4278
|
+
for (v = 0, k = Math.pow(2, 16), b = 1; b != k; )
|
|
4279
|
+
g = C.val & C.position, C.position >>= 1, C.position == 0 && (C.position = c, C.val = h(C.index++)), v |= (g > 0 ? 1 : 0) * b, b <<= 1;
|
|
4280
|
+
m[E++] = n(v), y = E - 1, f--;
|
|
4281
4281
|
break;
|
|
4282
4282
|
case 2:
|
|
4283
|
-
return
|
|
4283
|
+
return S.join("");
|
|
4284
4284
|
}
|
|
4285
|
-
if (f == 0 && (f = Math.pow(2,
|
|
4286
|
-
I = m[
|
|
4287
|
-
else if (
|
|
4285
|
+
if (f == 0 && (f = Math.pow(2, N), N++), m[y])
|
|
4286
|
+
I = m[y];
|
|
4287
|
+
else if (y === E)
|
|
4288
4288
|
I = p + p.charAt(0);
|
|
4289
4289
|
else
|
|
4290
4290
|
return null;
|
|
4291
|
-
|
|
4291
|
+
S.push(I), m[E++] = p + I.charAt(0), f--, p = I, f == 0 && (f = Math.pow(2, N), N++);
|
|
4292
4292
|
}
|
|
4293
4293
|
}
|
|
4294
4294
|
};
|
|
@@ -4445,11 +4445,11 @@ function Ge(e, t, n, s, a) {
|
|
|
4445
4445
|
function je(e, t, n, s, a) {
|
|
4446
4446
|
return e = e + t + a | 0, s = on(s ^ e, 8), n = n + s | 0, t = on(t ^ n, 7), { a: e, b: t, c: n, d: s };
|
|
4447
4447
|
}
|
|
4448
|
-
function ns(e, t, n, s, a, r, o, i, l, c, h, m, f,
|
|
4448
|
+
function ns(e, t, n, s, a, r, o, i, l, c, h, m, f, E, N, I, S, d, p, v) {
|
|
4449
4449
|
let g = 0;
|
|
4450
|
-
for (let
|
|
4451
|
-
({ a, b: l, c: f, d:
|
|
4452
|
-
return { v0: a, v1: r, v2: o, v3: i, v4: l, v5: c, v6: h, v7: m, v8: f, v9:
|
|
4450
|
+
for (let k = 0; k < s; k++)
|
|
4451
|
+
({ a, b: l, c: f, d: S } = Ge(a, l, f, S, n[t + e[g++]])), { a, b: l, c: f, d: S } = je(a, l, f, S, n[t + e[g++]]), { a: r, b: c, c: E, d } = Ge(r, c, E, d, n[t + e[g++]]), { a: r, b: c, c: E, d } = je(r, c, E, d, n[t + e[g++]]), { a: o, b: h, c: N, d: p } = Ge(o, h, N, p, n[t + e[g++]]), { a: o, b: h, c: N, d: p } = je(o, h, N, p, n[t + e[g++]]), { a: i, b: m, c: I, d: v } = Ge(i, m, I, v, n[t + e[g++]]), { a: i, b: m, c: I, d: v } = je(i, m, I, v, n[t + e[g++]]), { a, b: c, c: N, d: v } = Ge(a, c, N, v, n[t + e[g++]]), { a, b: c, c: N, d: v } = je(a, c, N, v, n[t + e[g++]]), { a: r, b: h, c: I, d: S } = Ge(r, h, I, S, n[t + e[g++]]), { a: r, b: h, c: I, d: S } = je(r, h, I, S, n[t + e[g++]]), { a: o, b: m, c: f, d } = Ge(o, m, f, d, n[t + e[g++]]), { a: o, b: m, c: f, d } = je(o, m, f, d, n[t + e[g++]]), { a: i, b: l, c: E, d: p } = Ge(i, l, E, p, n[t + e[g++]]), { a: i, b: l, c: E, d: p } = je(i, l, E, p, n[t + e[g++]]);
|
|
4452
|
+
return { v0: a, v1: r, v2: o, v3: i, v4: l, v5: c, v6: h, v7: m, v8: f, v9: E, v10: N, v11: I, v12: S, v13: d, v14: p, v15: v };
|
|
4453
4453
|
}
|
|
4454
4454
|
const rs = /* @__PURE__ */ (() => {
|
|
4455
4455
|
const e = Array.from({ length: 16 }, (s, a) => a), t = (s) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((a) => s[a]), n = [];
|
|
@@ -4484,8 +4484,8 @@ class cr extends Bl {
|
|
|
4484
4484
|
set() {
|
|
4485
4485
|
}
|
|
4486
4486
|
b2Compress(t, n, s, a = 0) {
|
|
4487
|
-
const { state: r, pos: o } = this, { h: i, l } = ts(BigInt(t), !0), { v0: c, v1: h, v2: m, v3: f, v4:
|
|
4488
|
-
r[0] = c ^ d, r[1] = h ^ p, r[2] = m ^
|
|
4487
|
+
const { state: r, pos: o } = this, { h: i, l } = ts(BigInt(t), !0), { v0: c, v1: h, v2: m, v3: f, v4: E, v5: N, v6: I, v7: S, v8: d, v9: p, v10: v, v11: g, v12: k, v13: b, v14: y, v15: C } = ns(rs, a, s, 7, r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], Me[0], Me[1], Me[2], Me[3], i, l, o, n);
|
|
4488
|
+
r[0] = c ^ d, r[1] = h ^ p, r[2] = m ^ v, r[3] = f ^ g, r[4] = E ^ k, r[5] = N ^ b, r[6] = I ^ y, r[7] = S ^ C;
|
|
4489
4489
|
}
|
|
4490
4490
|
compress(t, n = 0, s = !1) {
|
|
4491
4491
|
let a = this.flags;
|
|
@@ -4510,8 +4510,8 @@ class cr extends Bl {
|
|
|
4510
4510
|
}
|
|
4511
4511
|
// Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8)
|
|
4512
4512
|
b2CompressOut() {
|
|
4513
|
-
const { state: t, pos: n, flags: s, buffer32: a, bufferOut32: r } = this, { h: o, l: i } = ts(BigInt(this.chunkOut++)), { v0: l, v1: c, v2: h, v3: m, v4: f, v5:
|
|
4514
|
-
r[0] = l ^
|
|
4513
|
+
const { state: t, pos: n, flags: s, buffer32: a, bufferOut32: r } = this, { h: o, l: i } = ts(BigInt(this.chunkOut++)), { v0: l, v1: c, v2: h, v3: m, v4: f, v5: E, v6: N, v7: I, v8: S, v9: d, v10: p, v11: v, v12: g, v13: k, v14: b, v15: y } = ns(rs, 0, a, 7, t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], Me[0], Me[1], Me[2], Me[3], i, o, n, s);
|
|
4514
|
+
r[0] = l ^ S, r[1] = c ^ d, r[2] = h ^ p, r[3] = m ^ v, r[4] = f ^ g, r[5] = E ^ k, r[6] = N ^ b, r[7] = I ^ y, r[8] = t[0] ^ S, r[9] = t[1] ^ d, r[10] = t[2] ^ p, r[11] = t[3] ^ v, r[12] = t[4] ^ g, r[13] = t[5] ^ k, r[14] = t[6] ^ b, r[15] = t[7] ^ y, this.posOut = 0;
|
|
4515
4515
|
}
|
|
4516
4516
|
finish() {
|
|
4517
4517
|
if (this.finished)
|
|
@@ -4620,19 +4620,19 @@ const Se = jl(), ur = (e) => {
|
|
|
4620
4620
|
query: s
|
|
4621
4621
|
};
|
|
4622
4622
|
}
|
|
4623
|
-
},
|
|
4624
|
-
const e = un(), t = () =>
|
|
4623
|
+
}, W = Q([]), Kt = [], le = Q([]), nt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Set(), wt = Q(!0), as = "stacktab-active-tab", jt = () => {
|
|
4624
|
+
const e = un(), t = () => W.value.length, n = (T) => {
|
|
4625
4625
|
Kt.splice(0);
|
|
4626
|
-
for (const
|
|
4627
|
-
const
|
|
4628
|
-
id:
|
|
4629
|
-
})), Z = ur(
|
|
4626
|
+
for (const D of T) {
|
|
4627
|
+
const O = fa(), M = pa(Se(D, {
|
|
4628
|
+
id: O
|
|
4629
|
+
})), Z = ur(D.path), K = Se(D, {
|
|
4630
4630
|
closable: !0,
|
|
4631
4631
|
refreshable: !0,
|
|
4632
4632
|
iframe: !1
|
|
4633
|
-
}), te = ss(
|
|
4633
|
+
}), te = ss(O, Z.path, Z.query), de = {
|
|
4634
4634
|
id: te,
|
|
4635
|
-
tabId:
|
|
4635
|
+
tabId: O,
|
|
4636
4636
|
path: Z.path,
|
|
4637
4637
|
query: Se(Z.query, {
|
|
4638
4638
|
__tab: M
|
|
@@ -4640,7 +4640,7 @@ const Se = jl(), ur = (e) => {
|
|
|
4640
4640
|
}, Ve = new En();
|
|
4641
4641
|
Ve.push(de);
|
|
4642
4642
|
const Ce = {
|
|
4643
|
-
id:
|
|
4643
|
+
id: O,
|
|
4644
4644
|
title: K.title,
|
|
4645
4645
|
closable: K.closable,
|
|
4646
4646
|
refreshable: K.refreshable,
|
|
@@ -4648,40 +4648,40 @@ const Se = jl(), ur = (e) => {
|
|
|
4648
4648
|
active: !1,
|
|
4649
4649
|
pages: Ve
|
|
4650
4650
|
};
|
|
4651
|
-
Kt.push(Ce),
|
|
4651
|
+
Kt.push(Ce), W.value.push(Ce), le.value.push(te);
|
|
4652
4652
|
}
|
|
4653
4653
|
const w = window.sessionStorage.getItem(as);
|
|
4654
4654
|
if (w != null) {
|
|
4655
|
-
const
|
|
4655
|
+
const D = Se({
|
|
4656
4656
|
pages: new En()
|
|
4657
4657
|
}, JSON.parse(w));
|
|
4658
|
-
let
|
|
4659
|
-
for (const M of
|
|
4660
|
-
if (M.id ===
|
|
4661
|
-
|
|
4658
|
+
let O = !1;
|
|
4659
|
+
for (const M of W.value)
|
|
4660
|
+
if (M.id === D.id) {
|
|
4661
|
+
O = !0;
|
|
4662
4662
|
break;
|
|
4663
4663
|
}
|
|
4664
|
-
|
|
4664
|
+
O || W.value.push(D);
|
|
4665
4665
|
}
|
|
4666
4666
|
}, s = (T) => {
|
|
4667
|
-
for (const w of
|
|
4667
|
+
for (const w of W.value)
|
|
4668
4668
|
if (w.id === T)
|
|
4669
4669
|
return !0;
|
|
4670
4670
|
return !1;
|
|
4671
4671
|
}, a = (T) => {
|
|
4672
|
-
|
|
4672
|
+
W.value.push(T);
|
|
4673
4673
|
}, r = (T) => {
|
|
4674
|
-
for (const w of
|
|
4674
|
+
for (const w of W.value)
|
|
4675
4675
|
if (w.id === T)
|
|
4676
4676
|
return w;
|
|
4677
4677
|
return null;
|
|
4678
4678
|
}, o = (T, w) => {
|
|
4679
|
-
let
|
|
4680
|
-
const
|
|
4679
|
+
let D;
|
|
4680
|
+
const O = Gl(T.query.__tab), M = ss(O.id, T.path, T.query.valueOf()), Z = T.query.__src;
|
|
4681
4681
|
if (nt.has(M))
|
|
4682
|
-
|
|
4682
|
+
D = nt.get(M);
|
|
4683
4683
|
else {
|
|
4684
|
-
|
|
4684
|
+
D = /* @__PURE__ */ fe({
|
|
4685
4685
|
name: M,
|
|
4686
4686
|
components: {
|
|
4687
4687
|
DynamicComponent: w
|
|
@@ -4692,142 +4692,142 @@ const Se = jl(), ur = (e) => {
|
|
|
4692
4692
|
}), Tt(() => {
|
|
4693
4693
|
}), () => oe("div", {
|
|
4694
4694
|
class: "cache-page-wrapper",
|
|
4695
|
-
id:
|
|
4695
|
+
id: O.id
|
|
4696
4696
|
}, [oe(ys("dynamic-component"), {
|
|
4697
|
-
tId:
|
|
4697
|
+
tId: O.id,
|
|
4698
4698
|
pId: M
|
|
4699
4699
|
}, null)]);
|
|
4700
4700
|
}
|
|
4701
|
-
}), nt.set(M,
|
|
4701
|
+
}), nt.set(M, D);
|
|
4702
4702
|
let K = null;
|
|
4703
|
-
for (const de of x(
|
|
4704
|
-
de.active = !1, de.id ===
|
|
4703
|
+
for (const de of x(W))
|
|
4704
|
+
de.active = !1, de.id === O.id && (K = de);
|
|
4705
4705
|
const te = {
|
|
4706
4706
|
id: M,
|
|
4707
|
-
tabId:
|
|
4707
|
+
tabId: O.id,
|
|
4708
4708
|
path: T.path,
|
|
4709
4709
|
query: T.query
|
|
4710
4710
|
};
|
|
4711
4711
|
if (K === null) {
|
|
4712
4712
|
const de = new En();
|
|
4713
4713
|
de.push(te), K = {
|
|
4714
|
-
id:
|
|
4715
|
-
title:
|
|
4716
|
-
closable:
|
|
4717
|
-
refreshable:
|
|
4718
|
-
iframe:
|
|
4714
|
+
id: O.id,
|
|
4715
|
+
title: O.title,
|
|
4716
|
+
closable: O.closable,
|
|
4717
|
+
refreshable: O.refreshable,
|
|
4718
|
+
iframe: O.iframe,
|
|
4719
4719
|
url: decodeURIComponent(Z),
|
|
4720
4720
|
active: !0,
|
|
4721
4721
|
pages: de
|
|
4722
|
-
},
|
|
4722
|
+
}, W.value.push(K);
|
|
4723
4723
|
} else
|
|
4724
4724
|
K.active = !0, (K.pages.isEmpty() || K.pages.peek().id !== te.id) && K.pages.push(te);
|
|
4725
4725
|
b(K);
|
|
4726
4726
|
}
|
|
4727
|
-
return g(M),
|
|
4727
|
+
return g(M), D;
|
|
4728
4728
|
}, i = (T) => {
|
|
4729
4729
|
let w = "";
|
|
4730
|
-
for (let
|
|
4731
|
-
if (T === x(
|
|
4732
|
-
if (!x(
|
|
4733
|
-
|
|
4734
|
-
for (const
|
|
4735
|
-
|
|
4736
|
-
x(
|
|
4730
|
+
for (let D = W.value.length - 1; D >= 0; D--)
|
|
4731
|
+
if (T === x(W)[D].id) {
|
|
4732
|
+
if (!x(W)[D].closable)
|
|
4733
|
+
return T;
|
|
4734
|
+
for (const O of x(W)[D].pages.list())
|
|
4735
|
+
S(O.id), d(O.id);
|
|
4736
|
+
x(W)[D].pages.clear(), W.value.length > 1 && x(W)[D].active && (D === 0 ? w = x(W)[D + 1].id : w = x(W)[D - 1].id), x(W).splice(D, 1);
|
|
4737
4737
|
break;
|
|
4738
4738
|
}
|
|
4739
|
-
return
|
|
4739
|
+
return w !== "" && k(w), p(), w;
|
|
4740
4740
|
}, l = () => {
|
|
4741
|
-
const T = x(
|
|
4741
|
+
const T = x(W);
|
|
4742
4742
|
for (let w = T.length - 1; w >= 0; w--)
|
|
4743
4743
|
if (T[w].closable) {
|
|
4744
|
-
for (const
|
|
4745
|
-
|
|
4746
|
-
x(
|
|
4744
|
+
for (const D of T[w].pages.list())
|
|
4745
|
+
S(D.id), d(D.id);
|
|
4746
|
+
x(W)[w].pages.clear(), x(W).splice(w, 1);
|
|
4747
4747
|
}
|
|
4748
4748
|
for (const w of T)
|
|
4749
4749
|
if (w.active) {
|
|
4750
4750
|
p();
|
|
4751
4751
|
return;
|
|
4752
4752
|
}
|
|
4753
|
-
|
|
4753
|
+
k(T[T.length - 1].id);
|
|
4754
4754
|
}, c = (T) => {
|
|
4755
|
-
const w = x(
|
|
4756
|
-
let
|
|
4757
|
-
for (let
|
|
4758
|
-
if (w[
|
|
4759
|
-
|
|
4760
|
-
else if (w[
|
|
4761
|
-
for (const M of w[
|
|
4762
|
-
|
|
4763
|
-
x(
|
|
4755
|
+
const w = x(W);
|
|
4756
|
+
let D;
|
|
4757
|
+
for (let O = w.length - 1; O >= 0; O--)
|
|
4758
|
+
if (w[O].id === T)
|
|
4759
|
+
D = w[O];
|
|
4760
|
+
else if (w[O].closable && w[O].id !== T) {
|
|
4761
|
+
for (const M of w[O].pages.list())
|
|
4762
|
+
S(M.id), d(M.id);
|
|
4763
|
+
x(W)[O].pages.clear(), x(W).splice(O, 1);
|
|
4764
4764
|
}
|
|
4765
|
-
|
|
4765
|
+
D.active ? p() : k(T);
|
|
4766
4766
|
}, h = (T) => {
|
|
4767
4767
|
let w = -1;
|
|
4768
|
-
const
|
|
4769
|
-
for (let
|
|
4770
|
-
if (
|
|
4771
|
-
w =
|
|
4768
|
+
const D = x(W);
|
|
4769
|
+
for (let O = 0; O < D.length; O++)
|
|
4770
|
+
if (D[O].id === T) {
|
|
4771
|
+
w = O - 1;
|
|
4772
4772
|
break;
|
|
4773
4773
|
}
|
|
4774
|
-
for (let
|
|
4775
|
-
if (
|
|
4776
|
-
for (const M of
|
|
4777
|
-
|
|
4778
|
-
x(
|
|
4774
|
+
for (let O = w; O >= 0; O--)
|
|
4775
|
+
if (D[O].closable) {
|
|
4776
|
+
for (const M of D[O].pages.list())
|
|
4777
|
+
S(M.id), d(M.id);
|
|
4778
|
+
x(W)[O].pages.clear(), x(W).splice(O, 1);
|
|
4779
4779
|
}
|
|
4780
|
-
for (const
|
|
4781
|
-
if (
|
|
4780
|
+
for (const O of D)
|
|
4781
|
+
if (O.active) {
|
|
4782
4782
|
p();
|
|
4783
4783
|
return;
|
|
4784
4784
|
}
|
|
4785
|
-
|
|
4785
|
+
k(D[0].id);
|
|
4786
4786
|
}, m = (T) => {
|
|
4787
|
-
const w = x(
|
|
4788
|
-
let
|
|
4789
|
-
for (let
|
|
4790
|
-
if (w[
|
|
4791
|
-
|
|
4787
|
+
const w = x(W);
|
|
4788
|
+
let D = w.length;
|
|
4789
|
+
for (let O = 0; O < w.length; O++)
|
|
4790
|
+
if (w[O].id === T) {
|
|
4791
|
+
D = O + 1;
|
|
4792
4792
|
break;
|
|
4793
4793
|
}
|
|
4794
|
-
for (let
|
|
4795
|
-
if (w[
|
|
4796
|
-
for (const M of w[
|
|
4797
|
-
|
|
4798
|
-
x(
|
|
4794
|
+
for (let O = w.length - 1; O >= D; O--)
|
|
4795
|
+
if (w[O].closable) {
|
|
4796
|
+
for (const M of w[O].pages.list())
|
|
4797
|
+
S(M.id), d(M.id);
|
|
4798
|
+
x(W)[O].pages.clear(), x(W).splice(O, 1);
|
|
4799
4799
|
}
|
|
4800
|
-
for (const
|
|
4801
|
-
if (
|
|
4800
|
+
for (const O of w)
|
|
4801
|
+
if (O.active) {
|
|
4802
4802
|
p();
|
|
4803
4803
|
return;
|
|
4804
4804
|
}
|
|
4805
|
-
|
|
4805
|
+
k(w[w.length - 1].id);
|
|
4806
4806
|
}, f = (T) => {
|
|
4807
4807
|
var w;
|
|
4808
|
-
for (const
|
|
4809
|
-
if (
|
|
4810
|
-
const
|
|
4808
|
+
for (const D of x(W))
|
|
4809
|
+
if (D.id === T) {
|
|
4810
|
+
const O = (w = D.pages.peek()) == null ? void 0 : w.id;
|
|
4811
4811
|
for (let M = le.value.length - 1; M >= 0; M--)
|
|
4812
|
-
if (le.value[M] ===
|
|
4813
|
-
le.value.splice(M, 1),
|
|
4812
|
+
if (le.value[M] === O) {
|
|
4813
|
+
le.value.splice(M, 1), D.active && (wt.value = !1);
|
|
4814
4814
|
break;
|
|
4815
4815
|
}
|
|
4816
4816
|
break;
|
|
4817
4817
|
}
|
|
4818
|
-
},
|
|
4818
|
+
}, E = () => {
|
|
4819
4819
|
const T = /* @__PURE__ */ new Set();
|
|
4820
|
-
|
|
4820
|
+
W.value.forEach((w) => {
|
|
4821
4821
|
T.add(w.pages.peek().id);
|
|
4822
4822
|
});
|
|
4823
4823
|
for (let w = le.value.length - 1; w >= 0; w--) {
|
|
4824
|
-
const
|
|
4825
|
-
T.has(
|
|
4824
|
+
const D = le.value[w];
|
|
4825
|
+
T.has(D) && le.value.splice(w, 1);
|
|
4826
4826
|
}
|
|
4827
4827
|
wt.value = !1;
|
|
4828
|
-
},
|
|
4828
|
+
}, N = (T, w) => {
|
|
4829
4829
|
nt.set(T, w);
|
|
4830
|
-
}, I = (T) => nt.get(T),
|
|
4830
|
+
}, I = (T) => nt.get(T), S = (T) => {
|
|
4831
4831
|
nt.delete(T);
|
|
4832
4832
|
}, d = (T) => {
|
|
4833
4833
|
qt.add(T);
|
|
@@ -4835,45 +4835,45 @@ const Se = jl(), ur = (e) => {
|
|
|
4835
4835
|
for (let T = le.value.length - 1; T >= 0; T--)
|
|
4836
4836
|
qt.has(le.value[T]) && x(le).splice(T, 1);
|
|
4837
4837
|
qt.clear();
|
|
4838
|
-
},
|
|
4838
|
+
}, v = (T) => {
|
|
4839
4839
|
for (let w = le.value.length - 1; w >= 0; w--)
|
|
4840
4840
|
T === le.value[w] && x(le).splice(w, 1);
|
|
4841
4841
|
}, g = (T) => {
|
|
4842
4842
|
new Set(le.value).has(T) || le.value.push(T);
|
|
4843
|
-
},
|
|
4844
|
-
for (let
|
|
4845
|
-
const
|
|
4846
|
-
if (
|
|
4847
|
-
if (
|
|
4843
|
+
}, k = (T, w = !0) => {
|
|
4844
|
+
for (let D = W.value.length - 1; D >= 0; D--) {
|
|
4845
|
+
const O = W.value[D];
|
|
4846
|
+
if (O.id === T) {
|
|
4847
|
+
if (O.active)
|
|
4848
4848
|
break;
|
|
4849
|
-
if (
|
|
4850
|
-
const M =
|
|
4849
|
+
if (O.active = !0, wt.value = !1, b(O), w) {
|
|
4850
|
+
const M = O.pages.peek();
|
|
4851
4851
|
e.push({
|
|
4852
4852
|
path: M.path,
|
|
4853
4853
|
query: M.query
|
|
4854
4854
|
});
|
|
4855
4855
|
}
|
|
4856
4856
|
} else
|
|
4857
|
-
|
|
4857
|
+
W.value[D].active = !1;
|
|
4858
4858
|
}
|
|
4859
4859
|
}, b = (T) => {
|
|
4860
4860
|
window.sessionStorage.setItem(as, JSON.stringify(T));
|
|
4861
|
-
},
|
|
4862
|
-
C(), x(
|
|
4861
|
+
}, y = () => {
|
|
4862
|
+
C(), x(W).push(...Kt), k(Kt[0].id);
|
|
4863
4863
|
}, C = () => {
|
|
4864
|
-
x(
|
|
4864
|
+
x(W).splice(0), nt.clear(), qt.clear(), x(le).splice(0), wt.value = !0;
|
|
4865
4865
|
};
|
|
4866
4866
|
return {
|
|
4867
|
-
tabs:
|
|
4867
|
+
tabs: W,
|
|
4868
4868
|
caches: le,
|
|
4869
4869
|
pageShown: wt,
|
|
4870
4870
|
initial: n,
|
|
4871
4871
|
size: t,
|
|
4872
|
-
active:
|
|
4872
|
+
active: k,
|
|
4873
4873
|
destroy: C,
|
|
4874
|
-
reset:
|
|
4874
|
+
reset: y,
|
|
4875
4875
|
addCache: g,
|
|
4876
|
-
removeCache:
|
|
4876
|
+
removeCache: v,
|
|
4877
4877
|
getTab: r,
|
|
4878
4878
|
addTab: a,
|
|
4879
4879
|
removeTab: i,
|
|
@@ -4883,13 +4883,13 @@ const Se = jl(), ur = (e) => {
|
|
|
4883
4883
|
removeOtherTabs: c,
|
|
4884
4884
|
hasTab: s,
|
|
4885
4885
|
addPage: o,
|
|
4886
|
-
addComponent:
|
|
4886
|
+
addComponent: N,
|
|
4887
4887
|
getComponent: I,
|
|
4888
|
-
removeComponent:
|
|
4888
|
+
removeComponent: S,
|
|
4889
4889
|
markDeletableCache: d,
|
|
4890
4890
|
removeDeletableCache: p,
|
|
4891
4891
|
refreshTab: f,
|
|
4892
|
-
refreshAllTabs:
|
|
4892
|
+
refreshAllTabs: E
|
|
4893
4893
|
};
|
|
4894
4894
|
}, Yl = { class: "stack-tab__contextmenu-item" }, Ye = /* @__PURE__ */ fe({
|
|
4895
4895
|
__name: "ContextMenuItem",
|
|
@@ -4936,9 +4936,9 @@ const Se = jl(), ur = (e) => {
|
|
|
4936
4936
|
removeOtherTabs: m
|
|
4937
4937
|
} = jt();
|
|
4938
4938
|
return Gt(() => {
|
|
4939
|
-
const f = s.value ? s.value.clientWidth : 0,
|
|
4940
|
-
a.left + f >
|
|
4941
|
-
}), (f,
|
|
4939
|
+
const f = s.value ? s.value.clientWidth : 0, E = window.innerWidth;
|
|
4940
|
+
a.left + f > E && (a.left = E - f - 5);
|
|
4941
|
+
}), (f, E) => (z(), se("div", {
|
|
4942
4942
|
ref_key: "contextmenu",
|
|
4943
4943
|
ref: s,
|
|
4944
4944
|
class: "stack-tab__contextmenu",
|
|
@@ -4951,7 +4951,7 @@ const Se = jl(), ur = (e) => {
|
|
|
4951
4951
|
oe(Ye, {
|
|
4952
4952
|
icon: "stack-tab__icon-reload svg-mask",
|
|
4953
4953
|
title: x(n)("VueStackTab.reload"),
|
|
4954
|
-
onClick:
|
|
4954
|
+
onClick: E[0] || (E[0] = (N) => x(c)(f.tabItem.id))
|
|
4955
4955
|
}, null, 8, ["title"]),
|
|
4956
4956
|
oe(Ye, {
|
|
4957
4957
|
icon: "stack-tab__icon-reload-all svg-mask",
|
|
@@ -4962,24 +4962,24 @@ const Se = jl(), ur = (e) => {
|
|
|
4962
4962
|
icon: "stack-tab__icon-close svg-mask",
|
|
4963
4963
|
title: x(n)("VueStackTab.close"),
|
|
4964
4964
|
disabled: f.tabItem.closable ? null : "disabled",
|
|
4965
|
-
onClick:
|
|
4965
|
+
onClick: E[1] || (E[1] = (N) => x(r)(f.tabItem.id))
|
|
4966
4966
|
}, null, 8, ["title", "disabled"]),
|
|
4967
4967
|
oe(Ye, {
|
|
4968
4968
|
icon: "stack-tab__icon-close-lefts svg-mask",
|
|
4969
4969
|
title: x(n)("VueStackTab.closeLefts"),
|
|
4970
4970
|
disabled: f.index <= 0 ? "disabled" : null,
|
|
4971
|
-
onClick:
|
|
4971
|
+
onClick: E[2] || (E[2] = (N) => x(i)(f.tabItem.id))
|
|
4972
4972
|
}, null, 8, ["title", "disabled"]),
|
|
4973
4973
|
oe(Ye, {
|
|
4974
4974
|
icon: "stack-tab__icon-close-rights svg-mask",
|
|
4975
4975
|
title: x(n)("VueStackTab.closeRights"),
|
|
4976
4976
|
disabled: f.index >= f.max - 1 ? "disabled" : null,
|
|
4977
|
-
onClick:
|
|
4977
|
+
onClick: E[3] || (E[3] = (N) => x(l)(f.tabItem.id))
|
|
4978
4978
|
}, null, 8, ["title", "disabled"]),
|
|
4979
4979
|
oe(Ye, {
|
|
4980
4980
|
icon: "stack-tab__icon-close-others svg-mask",
|
|
4981
4981
|
title: x(n)("VueStackTab.closeOthers"),
|
|
4982
|
-
onClick:
|
|
4982
|
+
onClick: E[4] || (E[4] = (N) => x(m)(f.tabItem.id))
|
|
4983
4983
|
}, null, 8, ["title"]),
|
|
4984
4984
|
oe(Ye, {
|
|
4985
4985
|
icon: "stack-tab__icon-close-all svg-mask",
|
|
@@ -4987,12 +4987,12 @@ const Se = jl(), ur = (e) => {
|
|
|
4987
4987
|
onClick: x(o)
|
|
4988
4988
|
}, null, 8, ["title", "onClick"]),
|
|
4989
4989
|
f.contextMenu !== void 0 && f.contextMenu.length > 0 ? (z(), se("div", Xl)) : ze("", !0),
|
|
4990
|
-
(z(!0), se(Nt, null, jn(f.contextMenu, (
|
|
4990
|
+
(z(!0), se(Nt, null, jn(f.contextMenu, (N, I) => (z(), $e(Ye, {
|
|
4991
4991
|
key: I,
|
|
4992
|
-
icon:
|
|
4993
|
-
title:
|
|
4994
|
-
disabled:
|
|
4995
|
-
onClick: (
|
|
4992
|
+
icon: N.icon,
|
|
4993
|
+
title: N.title,
|
|
4994
|
+
disabled: N.disabled(f.tabItem) ? "disabled" : null,
|
|
4995
|
+
onClick: (S) => !N.disabled && N.callback(f.tabItem.id)
|
|
4996
4996
|
}, null, 8, ["icon", "title", "disabled", "onClick"]))), 128))
|
|
4997
4997
|
], 4));
|
|
4998
4998
|
}
|
|
@@ -5148,13 +5148,13 @@ var at = function(e) {
|
|
|
5148
5148
|
return Zt.get(e);
|
|
5149
5149
|
if (ba(e))
|
|
5150
5150
|
return Zt.set(e, cs), cs;
|
|
5151
|
-
var n = getComputedStyle(e), s = fr(e) && e.ownerSVGElement && e.getBBox(), a = !lc && n.boxSizing === "border-box", r = ic.test(n.writingMode || ""), o = !s && ls.test(n.overflowY || ""), i = !s && ls.test(n.overflowX || ""), l = s ? 0 : Le(n.paddingTop), c = s ? 0 : Le(n.paddingRight), h = s ? 0 : Le(n.paddingBottom), m = s ? 0 : Le(n.paddingLeft), f = s ? 0 : Le(n.borderTopWidth),
|
|
5151
|
+
var n = getComputedStyle(e), s = fr(e) && e.ownerSVGElement && e.getBBox(), a = !lc && n.boxSizing === "border-box", r = ic.test(n.writingMode || ""), o = !s && ls.test(n.overflowY || ""), i = !s && ls.test(n.overflowX || ""), l = s ? 0 : Le(n.paddingTop), c = s ? 0 : Le(n.paddingRight), h = s ? 0 : Le(n.paddingBottom), m = s ? 0 : Le(n.paddingLeft), f = s ? 0 : Le(n.borderTopWidth), E = s ? 0 : Le(n.borderRightWidth), N = s ? 0 : Le(n.borderBottomWidth), I = s ? 0 : Le(n.borderLeftWidth), S = m + c, d = l + h, p = I + E, v = f + N, g = i ? e.offsetHeight - v - e.clientHeight : 0, k = o ? e.offsetWidth - p - e.clientWidth : 0, b = a ? S + p : 0, y = a ? d + v : 0, C = s ? s.width : Le(n.width) - b - k, T = s ? s.height : Le(n.height) - y - g, w = C + S + k + p, D = T + d + g + v, O = at({
|
|
5152
5152
|
devicePixelContentBoxSize: bt(Math.round(C * devicePixelRatio), Math.round(T * devicePixelRatio), r),
|
|
5153
|
-
borderBoxSize: bt(w,
|
|
5153
|
+
borderBoxSize: bt(w, D, r),
|
|
5154
5154
|
contentBoxSize: bt(C, T, r),
|
|
5155
5155
|
contentRect: new ga(m, l, C, T)
|
|
5156
5156
|
});
|
|
5157
|
-
return Zt.set(e,
|
|
5157
|
+
return Zt.set(e, O), O;
|
|
5158
5158
|
}, Ea = function(e, t, n) {
|
|
5159
5159
|
var s = va(e, n), a = s.borderBoxSize, r = s.contentBoxSize, o = s.devicePixelContentBoxSize;
|
|
5160
5160
|
switch (t) {
|
|
@@ -5400,83 +5400,83 @@ const Nc = ["disabled", "title"], Oc = {
|
|
|
5400
5400
|
startThumbLeft: 0,
|
|
5401
5401
|
startPageX: 0
|
|
5402
5402
|
});
|
|
5403
|
-
Xe(m, (
|
|
5404
|
-
|
|
5403
|
+
Xe(m, (O) => {
|
|
5404
|
+
E(O);
|
|
5405
5405
|
});
|
|
5406
|
-
const
|
|
5407
|
-
o.value =
|
|
5408
|
-
},
|
|
5409
|
-
if (!
|
|
5406
|
+
const E = (O) => {
|
|
5407
|
+
o.value = O.scrollLeft <= 10, i.value = O.clientWidth + O.scrollLeft - O.scrollWidth >= -10, l.value = O.scrollWidth !== O.clientWidth;
|
|
5408
|
+
}, N = ce(() => m.scrollWidth > m.clientWidth), I = ce(() => {
|
|
5409
|
+
if (!N.value)
|
|
5410
5410
|
return 0;
|
|
5411
|
-
const { clientWidth:
|
|
5412
|
-
return
|
|
5413
|
-
}),
|
|
5414
|
-
if (!
|
|
5411
|
+
const { clientWidth: O, scrollWidth: M } = m;
|
|
5412
|
+
return O / M * O;
|
|
5413
|
+
}), S = ce(() => {
|
|
5414
|
+
if (!N.value)
|
|
5415
5415
|
return 0;
|
|
5416
|
-
const { clientWidth:
|
|
5417
|
-
return (
|
|
5416
|
+
const { clientWidth: O, scrollWidth: M, scrollLeft: Z } = m;
|
|
5417
|
+
return (O - I.value) * (Z / (M - O));
|
|
5418
5418
|
}), d = () => {
|
|
5419
5419
|
if (n.value === null || n.value === void 0)
|
|
5420
5420
|
return;
|
|
5421
|
-
const { clientWidth:
|
|
5422
|
-
Object.assign(m, { clientWidth:
|
|
5421
|
+
const { clientWidth: O, scrollWidth: M, scrollLeft: Z } = n.value;
|
|
5422
|
+
Object.assign(m, { clientWidth: O, scrollWidth: M, scrollLeft: Z });
|
|
5423
5423
|
}, p = new hs(() => {
|
|
5424
5424
|
var M;
|
|
5425
5425
|
d();
|
|
5426
|
-
const
|
|
5427
|
-
|
|
5428
|
-
}),
|
|
5429
|
-
var
|
|
5430
|
-
if (!
|
|
5431
|
-
const M = (
|
|
5432
|
-
M && (
|
|
5426
|
+
const O = (M = n.value) == null ? void 0 : M.querySelector(".stack-tab__item.is-active");
|
|
5427
|
+
O && (D(O) || w(O));
|
|
5428
|
+
}), v = new hs(() => {
|
|
5429
|
+
var O;
|
|
5430
|
+
if (!N.value) {
|
|
5431
|
+
const M = (O = n.value) == null ? void 0 : O.querySelector(".stack-tab__item.is-active");
|
|
5432
|
+
M && (D(M) || w(M));
|
|
5433
5433
|
}
|
|
5434
5434
|
d();
|
|
5435
|
-
}), g = (
|
|
5436
|
-
la({ wrap: n.value, left:
|
|
5437
|
-
},
|
|
5438
|
-
g(n.value.scrollLeft +
|
|
5439
|
-
}, b = (
|
|
5440
|
-
const M =
|
|
5435
|
+
}), g = (O, M = !0) => {
|
|
5436
|
+
la({ wrap: n.value, left: O, smooth: M });
|
|
5437
|
+
}, k = (O) => {
|
|
5438
|
+
g(n.value.scrollLeft + O);
|
|
5439
|
+
}, b = (O) => {
|
|
5440
|
+
const M = O.deltaY < 0;
|
|
5441
5441
|
g(n.value.scrollLeft + (M ? -h.space : h.space));
|
|
5442
|
-
},
|
|
5442
|
+
}, y = (O) => {
|
|
5443
5443
|
var M;
|
|
5444
5444
|
Object.assign(f, {
|
|
5445
|
-
startPageX:
|
|
5445
|
+
startPageX: O.pageX,
|
|
5446
5446
|
startScrollLeft: (M = n.value) == null ? void 0 : M.scrollLeft,
|
|
5447
|
-
startThumbLeft:
|
|
5448
|
-
thumbLeft:
|
|
5447
|
+
startThumbLeft: S.value,
|
|
5448
|
+
thumbLeft: S.value
|
|
5449
5449
|
}), r.value = !0, document.addEventListener("mousemove", C), document.addEventListener("mouseup", T);
|
|
5450
|
-
}, C = (
|
|
5450
|
+
}, C = (O) => {
|
|
5451
5451
|
const { clientWidth: M, scrollWidth: Z } = m;
|
|
5452
|
-
let K = f.startThumbLeft +
|
|
5452
|
+
let K = f.startThumbLeft + O.pageX - f.startPageX;
|
|
5453
5453
|
const te = M - I.value;
|
|
5454
|
-
K < 0 ? K = 0 : K > te && (K = te), f.thumbLeft = K, g(K * (Z - M) / (M - I.value), !1),
|
|
5455
|
-
}, T = (
|
|
5456
|
-
r.value = !1, document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", T),
|
|
5454
|
+
K < 0 ? K = 0 : K > te && (K = te), f.thumbLeft = K, g(K * (Z - M) / (M - I.value), !1), O.preventDefault();
|
|
5455
|
+
}, T = (O) => {
|
|
5456
|
+
r.value = !1, document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", T), O.preventDefault();
|
|
5457
5457
|
};
|
|
5458
5458
|
Gt(() => {
|
|
5459
5459
|
var M;
|
|
5460
5460
|
p.observe(c.value);
|
|
5461
|
-
const
|
|
5462
|
-
|
|
5461
|
+
const O = (M = n.value) == null ? void 0 : M.querySelector(".stack-tab__nav");
|
|
5462
|
+
v.observe(O);
|
|
5463
5463
|
}), Tt(() => {
|
|
5464
|
-
p.disconnect(),
|
|
5464
|
+
p.disconnect(), v.disconnect();
|
|
5465
5465
|
});
|
|
5466
|
-
const w = (
|
|
5467
|
-
hl({ el:
|
|
5468
|
-
},
|
|
5469
|
-
if (!
|
|
5466
|
+
const w = (O) => {
|
|
5467
|
+
hl({ el: O, wrap: n, block: "end", inline: "center" });
|
|
5468
|
+
}, D = (O) => {
|
|
5469
|
+
if (!N.value)
|
|
5470
5470
|
return !0;
|
|
5471
|
-
const M =
|
|
5472
|
-
return !(M < Z || M +
|
|
5471
|
+
const M = O.offsetLeft, Z = n.value.scrollLeft;
|
|
5472
|
+
return !(M < Z || M + O.clientWidth > Z + n.value.clientWidth);
|
|
5473
5473
|
};
|
|
5474
|
-
return t({ scrollIntoView: w, isInView:
|
|
5474
|
+
return t({ scrollIntoView: w, isInView: D }), (O, M) => (z(), se(Nt, null, [
|
|
5475
5475
|
l.value ? (z(), $e(Bn, {
|
|
5476
5476
|
key: 0,
|
|
5477
5477
|
"icon-class": "stack-tab__icon-left-arrow",
|
|
5478
5478
|
disabled: o.value,
|
|
5479
|
-
onClick: M[0] || (M[0] = (Z) => !o.value &&
|
|
5479
|
+
onClick: M[0] || (M[0] = (Z) => !o.value && k(-1 * O.space))
|
|
5480
5480
|
}, null, 8, ["disabled"])) : ze("", !0),
|
|
5481
5481
|
ve("div", {
|
|
5482
5482
|
ref_key: "headerScroll",
|
|
@@ -5494,7 +5494,7 @@ const Nc = ["disabled", "title"], Oc = {
|
|
|
5494
5494
|
}]),
|
|
5495
5495
|
onScrollPassive: d
|
|
5496
5496
|
}, [
|
|
5497
|
-
Ue(
|
|
5497
|
+
Ue(O.$slots, "default")
|
|
5498
5498
|
], 34),
|
|
5499
5499
|
Yn(ve("div", {
|
|
5500
5500
|
ref_key: "bar",
|
|
@@ -5507,19 +5507,19 @@ const Nc = ["disabled", "title"], Oc = {
|
|
|
5507
5507
|
class: xe(["stack-tab__scrollbar-thumb", { "is-dragging": r.value }]),
|
|
5508
5508
|
style: Ut({
|
|
5509
5509
|
width: `${I.value}px`,
|
|
5510
|
-
transform: `translateX(${
|
|
5510
|
+
transform: `translateX(${S.value}px)`
|
|
5511
5511
|
}),
|
|
5512
|
-
onMousedown: it(
|
|
5512
|
+
onMousedown: it(y, ["prevent"])
|
|
5513
5513
|
}, null, 38)
|
|
5514
5514
|
], 2), [
|
|
5515
|
-
[Xn,
|
|
5515
|
+
[Xn, N.value]
|
|
5516
5516
|
])
|
|
5517
5517
|
], 544),
|
|
5518
5518
|
l.value ? (z(), $e(Bn, {
|
|
5519
5519
|
key: 1,
|
|
5520
5520
|
"icon-class": "stack-tab__icon-right-arrow",
|
|
5521
5521
|
disabled: i.value,
|
|
5522
|
-
onClick: M[1] || (M[1] = (Z) => !i.value &&
|
|
5522
|
+
onClick: M[1] || (M[1] = (Z) => !i.value && k(O.space))
|
|
5523
5523
|
}, null, 8, ["disabled"])) : ze("", !0)
|
|
5524
5524
|
], 64));
|
|
5525
5525
|
}
|
|
@@ -5536,43 +5536,43 @@ const Nc = ["disabled", "title"], Oc = {
|
|
|
5536
5536
|
},
|
|
5537
5537
|
emits: ["active"],
|
|
5538
5538
|
setup(e, { emit: t }) {
|
|
5539
|
-
const { t: n } = ar().getI18n(), s = Gn("maximum"), a = t, r = Q(), { shown: o, contextMenuData: i, showContextMenu: l } = Zl(), c = e, { removeTab: h, active: m, tabs: f } = jt(),
|
|
5539
|
+
const { t: n } = ar().getI18n(), s = Gn("maximum"), a = t, r = Q(), { shown: o, contextMenuData: i, showContextMenu: l } = Zl(), c = e, { removeTab: h, active: m, tabs: f } = jt(), E = ce(() => typeof c.tabTransition == "string" ? {
|
|
5540
5540
|
name: c.tabTransition
|
|
5541
|
-
} : c.tabTransition),
|
|
5541
|
+
} : c.tabTransition), N = ce(() => c.tabScrollMode === rt.BOTH || c.tabScrollMode === rt.BUTTON), I = c.tabScrollMode === rt.BOTH || c.tabScrollMode === rt.WHEEL, S = (p) => {
|
|
5542
5542
|
if (p.closable) {
|
|
5543
|
-
const
|
|
5544
|
-
a("active",
|
|
5543
|
+
const v = h(p.id);
|
|
5544
|
+
a("active", v);
|
|
5545
5545
|
}
|
|
5546
5546
|
o.value = !1;
|
|
5547
|
-
}, d = (p,
|
|
5548
|
-
r.value && (r.value.isInView(
|
|
5547
|
+
}, d = (p, v) => {
|
|
5548
|
+
r.value && (r.value.isInView(v.value) || r.value.scrollIntoView(v.value), m(p.id), a("active", p.id));
|
|
5549
5549
|
};
|
|
5550
|
-
return (p,
|
|
5550
|
+
return (p, v) => (z(), se("div", Lc, [
|
|
5551
5551
|
Ue(p.$slots, "leftButton"),
|
|
5552
5552
|
oe(yc, {
|
|
5553
5553
|
ref_key: "scroll",
|
|
5554
5554
|
ref: r,
|
|
5555
5555
|
space: p.space,
|
|
5556
5556
|
"is-scroll-wheel": x(I),
|
|
5557
|
-
"is-scroll-button":
|
|
5557
|
+
"is-scroll-button": N.value
|
|
5558
5558
|
}, {
|
|
5559
5559
|
default: De(() => [
|
|
5560
5560
|
oe(Is, $a({
|
|
5561
5561
|
key: "tabItemTrans",
|
|
5562
5562
|
tag: "ul",
|
|
5563
5563
|
class: "stack-tab__nav"
|
|
5564
|
-
},
|
|
5564
|
+
}, E.value, { appear: "" }), {
|
|
5565
5565
|
default: De(() => [
|
|
5566
|
-
(z(!0), se(Nt, null, jn(x(f), (g,
|
|
5566
|
+
(z(!0), se(Nt, null, jn(x(f), (g, k) => (z(), $e(tc, {
|
|
5567
5567
|
key: g.id,
|
|
5568
5568
|
contextmenu: p.contextmenu,
|
|
5569
5569
|
item: g,
|
|
5570
5570
|
onContextmenu: it(
|
|
5571
|
-
(b) => x(l)(b, g,
|
|
5571
|
+
(b) => x(l)(b, g, k, x(f).length),
|
|
5572
5572
|
["prevent"]
|
|
5573
5573
|
),
|
|
5574
|
-
onMouseup: it((b) =>
|
|
5575
|
-
onClose:
|
|
5574
|
+
onMouseup: it((b) => S(g), ["middle", "prevent"]),
|
|
5575
|
+
onClose: S,
|
|
5576
5576
|
onActive: d
|
|
5577
5577
|
}, null, 8, ["contextmenu", "item", "onContextmenu", "onMouseup"]))), 128))
|
|
5578
5578
|
]),
|
|
@@ -5585,7 +5585,7 @@ const Nc = ["disabled", "title"], Oc = {
|
|
|
5585
5585
|
oe(Bn, {
|
|
5586
5586
|
"icon-class": x(s) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
|
|
5587
5587
|
title: x(n)("VueStackTab.maximum"),
|
|
5588
|
-
onClick:
|
|
5588
|
+
onClick: v[0] || (v[0] = (g) => s.value = !x(s))
|
|
5589
5589
|
}, null, 8, ["icon-class", "title"]),
|
|
5590
5590
|
oe(zn, {
|
|
5591
5591
|
name: "stack-tab-zoom",
|
|
@@ -5670,47 +5670,47 @@ function Jc(e, t, n) {
|
|
|
5670
5670
|
if (typeof e != "function")
|
|
5671
5671
|
throw new TypeError(Kc);
|
|
5672
5672
|
t = bs(t) || 0, cn(n) && (h = !!n.leading, m = "maxWait" in n, r = m ? qc(bs(n.maxWait) || 0, t) : r, f = "trailing" in n ? !!n.trailing : f);
|
|
5673
|
-
function
|
|
5674
|
-
var
|
|
5675
|
-
return s = a = void 0, c = b, o = e.apply(C,
|
|
5673
|
+
function E(b) {
|
|
5674
|
+
var y = s, C = a;
|
|
5675
|
+
return s = a = void 0, c = b, o = e.apply(C, y), o;
|
|
5676
5676
|
}
|
|
5677
|
-
function
|
|
5678
|
-
return c = b, i = setTimeout(d, t), h ?
|
|
5677
|
+
function N(b) {
|
|
5678
|
+
return c = b, i = setTimeout(d, t), h ? E(b) : o;
|
|
5679
5679
|
}
|
|
5680
5680
|
function I(b) {
|
|
5681
|
-
var
|
|
5681
|
+
var y = b - l, C = b - c, T = t - y;
|
|
5682
5682
|
return m ? Zc(T, r - C) : T;
|
|
5683
5683
|
}
|
|
5684
|
-
function
|
|
5685
|
-
var
|
|
5686
|
-
return l === void 0 ||
|
|
5684
|
+
function S(b) {
|
|
5685
|
+
var y = b - l, C = b - c;
|
|
5686
|
+
return l === void 0 || y >= t || y < 0 || m && C >= r;
|
|
5687
5687
|
}
|
|
5688
5688
|
function d() {
|
|
5689
5689
|
var b = Ln();
|
|
5690
|
-
if (
|
|
5690
|
+
if (S(b))
|
|
5691
5691
|
return p(b);
|
|
5692
5692
|
i = setTimeout(d, I(b));
|
|
5693
5693
|
}
|
|
5694
5694
|
function p(b) {
|
|
5695
|
-
return i = void 0, f && s ?
|
|
5695
|
+
return i = void 0, f && s ? E(b) : (s = a = void 0, o);
|
|
5696
5696
|
}
|
|
5697
|
-
function
|
|
5697
|
+
function v() {
|
|
5698
5698
|
i !== void 0 && clearTimeout(i), c = 0, s = l = a = i = void 0;
|
|
5699
5699
|
}
|
|
5700
5700
|
function g() {
|
|
5701
5701
|
return i === void 0 ? o : p(Ln());
|
|
5702
5702
|
}
|
|
5703
|
-
function
|
|
5704
|
-
var b = Ln(),
|
|
5705
|
-
if (s = arguments, a = this, l = b,
|
|
5703
|
+
function k() {
|
|
5704
|
+
var b = Ln(), y = S(b);
|
|
5705
|
+
if (s = arguments, a = this, l = b, y) {
|
|
5706
5706
|
if (i === void 0)
|
|
5707
|
-
return
|
|
5707
|
+
return N(l);
|
|
5708
5708
|
if (m)
|
|
5709
|
-
return clearTimeout(i), i = setTimeout(d, t),
|
|
5709
|
+
return clearTimeout(i), i = setTimeout(d, t), E(l);
|
|
5710
5710
|
}
|
|
5711
5711
|
return i === void 0 && (i = setTimeout(d, t)), o;
|
|
5712
5712
|
}
|
|
5713
|
-
return
|
|
5713
|
+
return k.cancel = v, k.flush = g, k;
|
|
5714
5714
|
}
|
|
5715
5715
|
var Qc = "Expected a function";
|
|
5716
5716
|
function eu(e, t, n) {
|
|
@@ -5832,16 +5832,16 @@ const tu = () => {
|
|
|
5832
5832
|
m(c.iframePath), Os(() => {
|
|
5833
5833
|
i(c.defaultTabs);
|
|
5834
5834
|
});
|
|
5835
|
-
const f = (I,
|
|
5835
|
+
const f = (I, S) => r(I, S), E = (I) => {
|
|
5836
5836
|
l("onActive", I);
|
|
5837
5837
|
};
|
|
5838
5838
|
Tt(() => {
|
|
5839
5839
|
o();
|
|
5840
5840
|
});
|
|
5841
|
-
const
|
|
5842
|
-
return Xe(() =>
|
|
5841
|
+
const N = un();
|
|
5842
|
+
return Xe(() => N.currentRoute.value.fullPath, () => {
|
|
5843
5843
|
s.value = !0;
|
|
5844
|
-
}), (I,
|
|
5844
|
+
}), (I, S) => {
|
|
5845
5845
|
const d = ys("router-view");
|
|
5846
5846
|
return z(), se("div", {
|
|
5847
5847
|
class: xe(["stack-tab", {
|
|
@@ -5854,7 +5854,7 @@ const tu = () => {
|
|
|
5854
5854
|
})
|
|
5855
5855
|
}, [oe(Ic, {
|
|
5856
5856
|
space: I.space,
|
|
5857
|
-
onActive:
|
|
5857
|
+
onActive: E,
|
|
5858
5858
|
"tab-transition": I.tabTransition,
|
|
5859
5859
|
max: I.max
|
|
5860
5860
|
}, {
|
|
@@ -5864,16 +5864,16 @@ const tu = () => {
|
|
|
5864
5864
|
}, 8, ["space", "tab-transition", "max"]), ve("div", nu, [oe(d, null, {
|
|
5865
5865
|
default: De(({
|
|
5866
5866
|
Component: p,
|
|
5867
|
-
route:
|
|
5867
|
+
route: v
|
|
5868
5868
|
}) => [oe(zn, {
|
|
5869
5869
|
name: I.pageTransition,
|
|
5870
5870
|
appear: "",
|
|
5871
|
-
onAfterLeave:
|
|
5871
|
+
onAfterLeave: S[0] || (S[0] = (g) => s.value = !0)
|
|
5872
5872
|
}, {
|
|
5873
5873
|
default: De(() => [(z(), $e(Va, {
|
|
5874
5874
|
include: x(a)
|
|
5875
|
-
}, [x(s) ? (z(), $e(ks(f(
|
|
5876
|
-
key:
|
|
5875
|
+
}, [x(s) ? (z(), $e(ks(f(v, p)), {
|
|
5876
|
+
key: v.fullPath
|
|
5877
5877
|
})) : ze("", !0)], 1032, ["include"]))]),
|
|
5878
5878
|
_: 2
|
|
5879
5879
|
}, 1032, ["name"])]),
|
|
@@ -5960,7 +5960,7 @@ const ou = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
5960
5960
|
return l = e.tId, c = o.query.__tab, {
|
|
5961
5961
|
forward: (f) => {
|
|
5962
5962
|
t.value = !1;
|
|
5963
|
-
const
|
|
5963
|
+
const E = Se(
|
|
5964
5964
|
{
|
|
5965
5965
|
__tab: c
|
|
5966
5966
|
},
|
|
@@ -5968,41 +5968,41 @@ const ou = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
5968
5968
|
);
|
|
5969
5969
|
i.push({
|
|
5970
5970
|
path: f.path,
|
|
5971
|
-
query:
|
|
5971
|
+
query: E
|
|
5972
5972
|
});
|
|
5973
5973
|
},
|
|
5974
|
-
backward: (f,
|
|
5974
|
+
backward: (f, E) => {
|
|
5975
5975
|
t.value = !1;
|
|
5976
|
-
const
|
|
5977
|
-
if (!
|
|
5976
|
+
const N = n(l);
|
|
5977
|
+
if (!N)
|
|
5978
5978
|
return;
|
|
5979
|
-
const I =
|
|
5980
|
-
let
|
|
5979
|
+
const I = N.pages;
|
|
5980
|
+
let S = 0;
|
|
5981
5981
|
if (typeof f == "number")
|
|
5982
|
-
|
|
5982
|
+
S = Math.abs(f);
|
|
5983
5983
|
else {
|
|
5984
|
-
let
|
|
5985
|
-
const
|
|
5986
|
-
|
|
5987
|
-
for (let
|
|
5988
|
-
if (
|
|
5984
|
+
let v = 1, g = !1;
|
|
5985
|
+
const k = I.list(), b = ur(f);
|
|
5986
|
+
E = Se(b.query, E);
|
|
5987
|
+
for (let y = I.size() - 2; y >= 0; y--) {
|
|
5988
|
+
if (k[y].path === b.path) {
|
|
5989
5989
|
g = !0;
|
|
5990
5990
|
break;
|
|
5991
5991
|
}
|
|
5992
|
-
|
|
5992
|
+
v += 1;
|
|
5993
5993
|
}
|
|
5994
|
-
g && (
|
|
5994
|
+
g && (S = v);
|
|
5995
5995
|
}
|
|
5996
|
-
if (
|
|
5996
|
+
if (S === 0 || I.size() <= S)
|
|
5997
5997
|
return;
|
|
5998
|
-
for (let
|
|
5998
|
+
for (let v = 0; v < S; v++) {
|
|
5999
5999
|
const g = I.pop();
|
|
6000
6000
|
a(g.id), s(g.id);
|
|
6001
6001
|
}
|
|
6002
6002
|
const d = I == null ? void 0 : I.peek(), p = r(d.id);
|
|
6003
6003
|
if (p != null) {
|
|
6004
|
-
const
|
|
6005
|
-
|
|
6004
|
+
const v = p.components.DynamicComponent;
|
|
6005
|
+
v.props = Se(E, v.props);
|
|
6006
6006
|
}
|
|
6007
6007
|
i.push({
|
|
6008
6008
|
path: d.path,
|
|
@@ -6103,77 +6103,79 @@ const gu = ["width", "height", "stroke"], bu = /* @__PURE__ */ Kn('<g fill="none
|
|
|
6103
6103
|
loader: { default: "spinner" }
|
|
6104
6104
|
},
|
|
6105
6105
|
emits: ["hide", "update:active"],
|
|
6106
|
-
setup(e, {
|
|
6107
|
-
const
|
|
6108
|
-
!
|
|
6109
|
-
}, i = () => {
|
|
6110
|
-
r("hide"), r("update:active", !1), n.programmatic && (a.value = !1, setTimeout(() => {
|
|
6111
|
-
const v = s.value.parentElement;
|
|
6112
|
-
Ss(null, v), hu(v);
|
|
6113
|
-
}, 150));
|
|
6106
|
+
setup(e, { expose: t, emit: n }) {
|
|
6107
|
+
const s = e, a = Q(), r = Q(s.active), o = n, i = () => {
|
|
6108
|
+
!s.canCancel || !r.value || (l(), s.onCancel.apply(null, null));
|
|
6114
6109
|
}, l = () => {
|
|
6115
|
-
|
|
6110
|
+
o("hide"), o("update:active", !1), s.programmatic && (r.value = !1, setTimeout(() => {
|
|
6111
|
+
const N = a.value.parentElement;
|
|
6112
|
+
Ss(null, N), hu(N);
|
|
6113
|
+
}, 150));
|
|
6116
6114
|
}, c = () => {
|
|
6117
|
-
|
|
6118
|
-
}, h = (
|
|
6119
|
-
|
|
6120
|
-
}, m = (
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6115
|
+
s.isFullPage && s.lockScroll && document.body.classList.add("vl-shown");
|
|
6116
|
+
}, h = () => {
|
|
6117
|
+
s.isFullPage && s.lockScroll && document.body.classList.remove("vl-shown");
|
|
6118
|
+
}, m = (N) => {
|
|
6119
|
+
N.code === "Escape" && i();
|
|
6120
|
+
}, f = (N) => {
|
|
6121
|
+
if (!r.value || // Event target is the loading div element itself
|
|
6122
|
+
N.target === a.value || // Event target is inside the loading div
|
|
6123
|
+
a.value.contains(N.target))
|
|
6124
6124
|
return;
|
|
6125
|
-
const
|
|
6125
|
+
const I = s.container ? s.container : s.isFullPage ? null : a.value.parentElement;
|
|
6126
6126
|
// Always prevent when loading is full screen
|
|
6127
|
-
(
|
|
6127
|
+
(s.isFullPage || // When a parent exist means loader is running inside a container
|
|
6128
6128
|
// When loading is NOT full screen and event target is inside the given container
|
|
6129
|
-
|
|
6130
|
-
},
|
|
6131
|
-
background:
|
|
6132
|
-
opacity:
|
|
6129
|
+
I && I.contains(N.target)) && (N.preventDefault(), a.value.focus());
|
|
6130
|
+
}, E = ce(() => ({
|
|
6131
|
+
background: s.backgroundColor,
|
|
6132
|
+
opacity: s.opacity
|
|
6133
6133
|
}));
|
|
6134
6134
|
return Xe(
|
|
6135
|
-
() =>
|
|
6136
|
-
(
|
|
6137
|
-
|
|
6135
|
+
() => s.active,
|
|
6136
|
+
(N) => {
|
|
6137
|
+
r.value = N;
|
|
6138
6138
|
}
|
|
6139
6139
|
), Xe(
|
|
6140
|
-
() =>
|
|
6141
|
-
(
|
|
6142
|
-
|
|
6140
|
+
() => r,
|
|
6141
|
+
(N) => {
|
|
6142
|
+
N ? c() : h();
|
|
6143
6143
|
}
|
|
6144
6144
|
), Gt(() => {
|
|
6145
|
-
|
|
6145
|
+
s.enforceFocus && document.addEventListener("focusin", f), document.addEventListener("keyup", m);
|
|
6146
6146
|
}), Wa(() => {
|
|
6147
|
-
document.removeEventListener("keyup",
|
|
6148
|
-
}), (
|
|
6147
|
+
document.removeEventListener("keyup", m), document.removeEventListener("focusin", f);
|
|
6148
|
+
}), t({
|
|
6149
|
+
hide: l
|
|
6150
|
+
}), (N, I) => (z(), $e(zn, { name: N.transition }, {
|
|
6149
6151
|
default: De(() => [
|
|
6150
6152
|
Yn(ve("div", {
|
|
6151
6153
|
tabindex: "0",
|
|
6152
|
-
class: xe(["vl-overlay vl-active", { "vl-full-page":
|
|
6153
|
-
"aria-busy":
|
|
6154
|
+
class: xe(["vl-overlay vl-active", { "vl-full-page": N.isFullPage }]),
|
|
6155
|
+
"aria-busy": r.value,
|
|
6154
6156
|
"aria-label": "Loading",
|
|
6155
|
-
style: Ut({ zIndex:
|
|
6157
|
+
style: Ut({ zIndex: N.zIndex }),
|
|
6156
6158
|
ref_key: "overlay",
|
|
6157
|
-
ref:
|
|
6159
|
+
ref: a
|
|
6158
6160
|
}, [
|
|
6159
6161
|
ve("div", {
|
|
6160
6162
|
class: "vl-background",
|
|
6161
|
-
onClick: it(
|
|
6162
|
-
style: Ut(
|
|
6163
|
+
onClick: it(i, ["prevent"]),
|
|
6164
|
+
style: Ut(E.value)
|
|
6163
6165
|
}, null, 4),
|
|
6164
6166
|
ve("div", wu, [
|
|
6165
|
-
Ue(
|
|
6166
|
-
Ue(
|
|
6167
|
-
(z(), $e(ks(x(Au)[
|
|
6168
|
-
color:
|
|
6169
|
-
width:
|
|
6170
|
-
height:
|
|
6167
|
+
Ue(N.$slots, "before"),
|
|
6168
|
+
Ue(N.$slots, "default", {}, () => [
|
|
6169
|
+
(z(), $e(ks(x(Au)[N.loader]), {
|
|
6170
|
+
color: N.color,
|
|
6171
|
+
width: N.width,
|
|
6172
|
+
height: N.height
|
|
6171
6173
|
}, null, 8, ["color", "width", "height"]))
|
|
6172
6174
|
]),
|
|
6173
|
-
Ue(
|
|
6175
|
+
Ue(N.$slots, "after")
|
|
6174
6176
|
])
|
|
6175
6177
|
], 14, Cu), [
|
|
6176
|
-
[Xn,
|
|
6178
|
+
[Xn, r.value]
|
|
6177
6179
|
])
|
|
6178
6180
|
]),
|
|
6179
6181
|
_: 3
|
|
@@ -6191,7 +6193,7 @@ const gu = ["width", "height", "stroke"], bu = /* @__PURE__ */ Kn('<g fill="none
|
|
|
6191
6193
|
r.container || (o = document.body, r.isFullPage = !0);
|
|
6192
6194
|
const i = { ...t, ...s };
|
|
6193
6195
|
return {
|
|
6194
|
-
hide: pu(Ru, r, o, i).
|
|
6196
|
+
hide: pu(Ru, r, o, i).exposed.hide
|
|
6195
6197
|
};
|
|
6196
6198
|
}
|
|
6197
6199
|
}), $u = () => {
|
|
@@ -6221,7 +6223,7 @@ const gu = ["width", "height", "stroke"], bu = /* @__PURE__ */ Kn('<g fill="none
|
|
|
6221
6223
|
fallbackLocale: "en-US"
|
|
6222
6224
|
}), Vu = {
|
|
6223
6225
|
install(e) {
|
|
6224
|
-
_u("0.1.
|
|
6226
|
+
_u("0.1.7"), e.component("VueStackTabs", su).use(Mu);
|
|
6225
6227
|
}
|
|
6226
6228
|
};
|
|
6227
6229
|
export {
|