@anzusystems/common-admin 0.0.3
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/LICENSE +201 -0
- package/README.md +37 -0
- package/dist/common-admin.es.d.ts +1 -0
- package/dist/common-admin.es.js +4616 -0
- package/dist/common-admin.umd.js +32 -0
- package/dist/components/ABooleanValue.vue.d.ts +45 -0
- package/dist/components/ARow.vue.d.ts +38 -0
- package/dist/lib.d.ts +6 -0
- package/dist/locales/index.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/types/common.d.ts +6 -0
- package/dist/utils/common.d.ts +13 -0
- package/dist/utils/object.d.ts +8 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,4616 @@
|
|
|
1
|
+
import { h as Oe, getCurrentInstance as Ye, inject as Ke, onMounted as sr, onUnmounted as Ia, ref as te, computed as M, watch as he, Fragment as nn, createVNode as P, Text as lr, reactive as or, watchEffect as ir, toRefs as ur, capitalize as _t, unref as Ne, provide as gt, effectScope as Aa, onScopeDispose as ka, shallowRef as Da, shallowReactive as Pa, toRaw as wa, mergeProps as cr, isRef as Xe, toRef as Ce, Transition as rn, onBeforeMount as Ra, nextTick as $a, withDirectives as ot, resolveDirective as fr, vShow as dr, onBeforeUnmount as mr, defineComponent as an, TransitionGroup as Ma, camelize as Fa, resolveDynamicComponent as Va, openBlock as it, createBlock as _r, withCtx as Bt, createTextVNode as Ua, toDisplayString as ut, createElementBlock as gr, createCommentVNode as xa, renderSlot as Wa, createElementVNode as Ba } from "vue";
|
|
2
|
+
/*!
|
|
3
|
+
* shared v9.2.2
|
|
4
|
+
* (c) 2022 kazuya kawaguchi
|
|
5
|
+
* Released under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
const ye = typeof window < "u";
|
|
8
|
+
let ae, Se;
|
|
9
|
+
if (process.env.NODE_ENV !== "production") {
|
|
10
|
+
const e = ye && window.performance;
|
|
11
|
+
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (ae = (t) => e.mark(t), Se = (t, n, r) => {
|
|
12
|
+
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const Ga = /\{([0-9a-zA-Z]+)\}/g;
|
|
16
|
+
function vt(e, ...t) {
|
|
17
|
+
return t.length === 1 && x(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ga, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
18
|
+
}
|
|
19
|
+
const ja = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", ve = (e) => ja ? Symbol(e) : e, za = (e, t, n) => Ha({ l: e, k: t, s: n }), Ha = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), X = (e) => typeof e == "number" && isFinite(e), Ya = (e) => on(e) === "[object Date]", ct = (e) => on(e) === "[object RegExp]", pt = (e) => V(e) && Object.keys(e).length === 0;
|
|
20
|
+
function qe(e, t) {
|
|
21
|
+
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
22
|
+
}
|
|
23
|
+
const Y = Object.assign;
|
|
24
|
+
let Tn;
|
|
25
|
+
const sn = () => Tn || (Tn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
26
|
+
function Ln(e) {
|
|
27
|
+
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
28
|
+
}
|
|
29
|
+
const Ka = Object.prototype.hasOwnProperty;
|
|
30
|
+
function ln(e, t) {
|
|
31
|
+
return Ka.call(e, t);
|
|
32
|
+
}
|
|
33
|
+
const j = Array.isArray, H = (e) => typeof e == "function", k = (e) => typeof e == "string", G = (e) => typeof e == "boolean", x = (e) => (
|
|
34
|
+
// eslint-disable-line
|
|
35
|
+
e !== null && typeof e == "object"
|
|
36
|
+
), vr = Object.prototype.toString, on = (e) => vr.call(e), V = (e) => on(e) === "[object Object]", Xa = (e) => e == null ? "" : j(e) || V(e) && e.toString === vr ? JSON.stringify(e, null, 2) : String(e), Cn = 2;
|
|
37
|
+
function qa(e, t = 0, n = e.length) {
|
|
38
|
+
const r = e.split(/\r?\n/);
|
|
39
|
+
let a = 0;
|
|
40
|
+
const s = [];
|
|
41
|
+
for (let l = 0; l < r.length; l++)
|
|
42
|
+
if (a += r[l].length + 1, a >= t) {
|
|
43
|
+
for (let i = l - Cn; i <= l + Cn || n > a; i++) {
|
|
44
|
+
if (i < 0 || i >= r.length)
|
|
45
|
+
continue;
|
|
46
|
+
const o = i + 1;
|
|
47
|
+
s.push(`${o}${" ".repeat(3 - String(o).length)}| ${r[i]}`);
|
|
48
|
+
const m = r[i].length;
|
|
49
|
+
if (i === l) {
|
|
50
|
+
const v = t - (a - m) + 1, _ = Math.max(1, n > a ? m - v : n - t);
|
|
51
|
+
s.push(" | " + " ".repeat(v) + "^".repeat(_));
|
|
52
|
+
} else if (i > l) {
|
|
53
|
+
if (n > a) {
|
|
54
|
+
const v = Math.max(Math.min(n - a, m), 1);
|
|
55
|
+
s.push(" | " + "^".repeat(v));
|
|
56
|
+
}
|
|
57
|
+
a += m + 1;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
return s.join(`
|
|
63
|
+
`);
|
|
64
|
+
}
|
|
65
|
+
function Ja() {
|
|
66
|
+
const e = /* @__PURE__ */ new Map();
|
|
67
|
+
return {
|
|
68
|
+
events: e,
|
|
69
|
+
on(n, r) {
|
|
70
|
+
const a = e.get(n);
|
|
71
|
+
a && a.push(r) || e.set(n, [r]);
|
|
72
|
+
},
|
|
73
|
+
off(n, r) {
|
|
74
|
+
const a = e.get(n);
|
|
75
|
+
a && a.splice(a.indexOf(r) >>> 0, 1);
|
|
76
|
+
},
|
|
77
|
+
emit(n, r) {
|
|
78
|
+
(e.get(n) || []).slice().map((a) => a(r)), (e.get("*") || []).slice().map((a) => a(n, r));
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/*!
|
|
83
|
+
* message-compiler v9.2.2
|
|
84
|
+
* (c) 2022 kazuya kawaguchi
|
|
85
|
+
* Released under the MIT License.
|
|
86
|
+
*/
|
|
87
|
+
const R = {
|
|
88
|
+
// tokenizer error codes
|
|
89
|
+
EXPECTED_TOKEN: 1,
|
|
90
|
+
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
91
|
+
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
92
|
+
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
|
93
|
+
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
|
94
|
+
UNBALANCED_CLOSING_BRACE: 6,
|
|
95
|
+
UNTERMINATED_CLOSING_BRACE: 7,
|
|
96
|
+
EMPTY_PLACEHOLDER: 8,
|
|
97
|
+
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
|
98
|
+
INVALID_LINKED_FORMAT: 10,
|
|
99
|
+
// parser error codes
|
|
100
|
+
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
|
101
|
+
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
102
|
+
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
103
|
+
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
104
|
+
// Special value for higher-order compilers to pick up the last code
|
|
105
|
+
// to avoid collision of error codes. This should always be kept as the last
|
|
106
|
+
// item.
|
|
107
|
+
__EXTEND_POINT__: 15
|
|
108
|
+
}, Qa = {
|
|
109
|
+
// tokenizer error messages
|
|
110
|
+
[R.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
111
|
+
[R.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
112
|
+
[R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
113
|
+
[R.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
114
|
+
[R.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
115
|
+
[R.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
116
|
+
[R.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
117
|
+
[R.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
118
|
+
[R.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
119
|
+
[R.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
120
|
+
// parser error messages
|
|
121
|
+
[R.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
122
|
+
[R.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
123
|
+
[R.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
124
|
+
[R.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
|
|
125
|
+
};
|
|
126
|
+
function Et(e, t, n = {}) {
|
|
127
|
+
const { domain: r, messages: a, args: s } = n, l = process.env.NODE_ENV !== "production" ? vt((a || Qa)[e] || "", ...s || []) : e, i = new SyntaxError(String(l));
|
|
128
|
+
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
129
|
+
}
|
|
130
|
+
function Za(e) {
|
|
131
|
+
throw e;
|
|
132
|
+
}
|
|
133
|
+
function es(e, t, n) {
|
|
134
|
+
return { line: e, column: t, offset: n };
|
|
135
|
+
}
|
|
136
|
+
function Gt(e, t, n) {
|
|
137
|
+
const r = { start: e, end: t };
|
|
138
|
+
return n != null && (r.source = n), r;
|
|
139
|
+
}
|
|
140
|
+
const me = " ", ts = "\r", J = `
|
|
141
|
+
`, ns = String.fromCharCode(8232), rs = String.fromCharCode(8233);
|
|
142
|
+
function as(e) {
|
|
143
|
+
const t = e;
|
|
144
|
+
let n = 0, r = 1, a = 1, s = 0;
|
|
145
|
+
const l = (O) => t[O] === ts && t[O + 1] === J, i = (O) => t[O] === J, o = (O) => t[O] === rs, m = (O) => t[O] === ns, v = (O) => l(O) || i(O) || o(O) || m(O), _ = () => n, f = () => r, b = () => a, A = () => s, N = (O) => l(O) || o(O) || m(O) ? J : t[O], C = () => N(n), d = () => N(n + s);
|
|
146
|
+
function h() {
|
|
147
|
+
return s = 0, v(n) && (r++, a = 0), l(n) && n++, n++, a++, t[n];
|
|
148
|
+
}
|
|
149
|
+
function T() {
|
|
150
|
+
return l(n + s) && s++, s++, t[n + s];
|
|
151
|
+
}
|
|
152
|
+
function g() {
|
|
153
|
+
n = 0, r = 1, a = 1, s = 0;
|
|
154
|
+
}
|
|
155
|
+
function p(O = 0) {
|
|
156
|
+
s = O;
|
|
157
|
+
}
|
|
158
|
+
function S() {
|
|
159
|
+
const O = n + s;
|
|
160
|
+
for (; O !== n; )
|
|
161
|
+
h();
|
|
162
|
+
s = 0;
|
|
163
|
+
}
|
|
164
|
+
return {
|
|
165
|
+
index: _,
|
|
166
|
+
line: f,
|
|
167
|
+
column: b,
|
|
168
|
+
peekOffset: A,
|
|
169
|
+
charAt: N,
|
|
170
|
+
currentChar: C,
|
|
171
|
+
currentPeek: d,
|
|
172
|
+
next: h,
|
|
173
|
+
peek: T,
|
|
174
|
+
reset: g,
|
|
175
|
+
resetPeek: p,
|
|
176
|
+
skipToPeek: S
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
const Ee = void 0, Sn = "'", ss = "tokenizer";
|
|
180
|
+
function ls(e, t = {}) {
|
|
181
|
+
const n = t.location !== !1, r = as(e), a = () => r.index(), s = () => es(r.line(), r.column(), r.index()), l = s(), i = a(), o = {
|
|
182
|
+
currentType: 14,
|
|
183
|
+
offset: i,
|
|
184
|
+
startLoc: l,
|
|
185
|
+
endLoc: l,
|
|
186
|
+
lastType: 14,
|
|
187
|
+
lastOffset: i,
|
|
188
|
+
lastStartLoc: l,
|
|
189
|
+
lastEndLoc: l,
|
|
190
|
+
braceNest: 0,
|
|
191
|
+
inLinked: !1,
|
|
192
|
+
text: ""
|
|
193
|
+
}, m = () => o, { onError: v } = t;
|
|
194
|
+
function _(u, c, y, ...I) {
|
|
195
|
+
const $ = m();
|
|
196
|
+
if (c.column += y, c.offset += y, v) {
|
|
197
|
+
const U = Gt($.startLoc, c), ue = Et(u, U, {
|
|
198
|
+
domain: ss,
|
|
199
|
+
args: I
|
|
200
|
+
});
|
|
201
|
+
v(ue);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function f(u, c, y) {
|
|
205
|
+
u.endLoc = s(), u.currentType = c;
|
|
206
|
+
const I = { type: c };
|
|
207
|
+
return n && (I.loc = Gt(u.startLoc, u.endLoc)), y != null && (I.value = y), I;
|
|
208
|
+
}
|
|
209
|
+
const b = (u) => f(
|
|
210
|
+
u,
|
|
211
|
+
14
|
|
212
|
+
/* EOF */
|
|
213
|
+
);
|
|
214
|
+
function A(u, c) {
|
|
215
|
+
return u.currentChar() === c ? (u.next(), c) : (_(R.EXPECTED_TOKEN, s(), 0, c), "");
|
|
216
|
+
}
|
|
217
|
+
function N(u) {
|
|
218
|
+
let c = "";
|
|
219
|
+
for (; u.currentPeek() === me || u.currentPeek() === J; )
|
|
220
|
+
c += u.currentPeek(), u.peek();
|
|
221
|
+
return c;
|
|
222
|
+
}
|
|
223
|
+
function C(u) {
|
|
224
|
+
const c = N(u);
|
|
225
|
+
return u.skipToPeek(), c;
|
|
226
|
+
}
|
|
227
|
+
function d(u) {
|
|
228
|
+
if (u === Ee)
|
|
229
|
+
return !1;
|
|
230
|
+
const c = u.charCodeAt(0);
|
|
231
|
+
return c >= 97 && c <= 122 || // a-z
|
|
232
|
+
c >= 65 && c <= 90 || // A-Z
|
|
233
|
+
c === 95;
|
|
234
|
+
}
|
|
235
|
+
function h(u) {
|
|
236
|
+
if (u === Ee)
|
|
237
|
+
return !1;
|
|
238
|
+
const c = u.charCodeAt(0);
|
|
239
|
+
return c >= 48 && c <= 57;
|
|
240
|
+
}
|
|
241
|
+
function T(u, c) {
|
|
242
|
+
const { currentType: y } = c;
|
|
243
|
+
if (y !== 2)
|
|
244
|
+
return !1;
|
|
245
|
+
N(u);
|
|
246
|
+
const I = d(u.currentPeek());
|
|
247
|
+
return u.resetPeek(), I;
|
|
248
|
+
}
|
|
249
|
+
function g(u, c) {
|
|
250
|
+
const { currentType: y } = c;
|
|
251
|
+
if (y !== 2)
|
|
252
|
+
return !1;
|
|
253
|
+
N(u);
|
|
254
|
+
const I = u.currentPeek() === "-" ? u.peek() : u.currentPeek(), $ = h(I);
|
|
255
|
+
return u.resetPeek(), $;
|
|
256
|
+
}
|
|
257
|
+
function p(u, c) {
|
|
258
|
+
const { currentType: y } = c;
|
|
259
|
+
if (y !== 2)
|
|
260
|
+
return !1;
|
|
261
|
+
N(u);
|
|
262
|
+
const I = u.currentPeek() === Sn;
|
|
263
|
+
return u.resetPeek(), I;
|
|
264
|
+
}
|
|
265
|
+
function S(u, c) {
|
|
266
|
+
const { currentType: y } = c;
|
|
267
|
+
if (y !== 8)
|
|
268
|
+
return !1;
|
|
269
|
+
N(u);
|
|
270
|
+
const I = u.currentPeek() === ".";
|
|
271
|
+
return u.resetPeek(), I;
|
|
272
|
+
}
|
|
273
|
+
function O(u, c) {
|
|
274
|
+
const { currentType: y } = c;
|
|
275
|
+
if (y !== 9)
|
|
276
|
+
return !1;
|
|
277
|
+
N(u);
|
|
278
|
+
const I = d(u.currentPeek());
|
|
279
|
+
return u.resetPeek(), I;
|
|
280
|
+
}
|
|
281
|
+
function D(u, c) {
|
|
282
|
+
const { currentType: y } = c;
|
|
283
|
+
if (!(y === 8 || y === 12))
|
|
284
|
+
return !1;
|
|
285
|
+
N(u);
|
|
286
|
+
const I = u.currentPeek() === ":";
|
|
287
|
+
return u.resetPeek(), I;
|
|
288
|
+
}
|
|
289
|
+
function w(u, c) {
|
|
290
|
+
const { currentType: y } = c;
|
|
291
|
+
if (y !== 10)
|
|
292
|
+
return !1;
|
|
293
|
+
const I = () => {
|
|
294
|
+
const U = u.currentPeek();
|
|
295
|
+
return U === "{" ? d(u.peek()) : U === "@" || U === "%" || U === "|" || U === ":" || U === "." || U === me || !U ? !1 : U === J ? (u.peek(), I()) : d(U);
|
|
296
|
+
}, $ = I();
|
|
297
|
+
return u.resetPeek(), $;
|
|
298
|
+
}
|
|
299
|
+
function F(u) {
|
|
300
|
+
N(u);
|
|
301
|
+
const c = u.currentPeek() === "|";
|
|
302
|
+
return u.resetPeek(), c;
|
|
303
|
+
}
|
|
304
|
+
function z(u) {
|
|
305
|
+
const c = N(u), y = u.currentPeek() === "%" && u.peek() === "{";
|
|
306
|
+
return u.resetPeek(), {
|
|
307
|
+
isModulo: y,
|
|
308
|
+
hasSpace: c.length > 0
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
function oe(u, c = !0) {
|
|
312
|
+
const y = ($ = !1, U = "", ue = !1) => {
|
|
313
|
+
const de = u.currentPeek();
|
|
314
|
+
return de === "{" ? U === "%" ? !1 : $ : de === "@" || !de ? U === "%" ? !0 : $ : de === "%" ? (u.peek(), y($, "%", !0)) : de === "|" ? U === "%" || ue ? !0 : !(U === me || U === J) : de === me ? (u.peek(), y(!0, me, ue)) : de === J ? (u.peek(), y(!0, J, ue)) : !0;
|
|
315
|
+
}, I = y();
|
|
316
|
+
return c && u.resetPeek(), I;
|
|
317
|
+
}
|
|
318
|
+
function ie(u, c) {
|
|
319
|
+
const y = u.currentChar();
|
|
320
|
+
return y === Ee ? Ee : c(y) ? (u.next(), y) : null;
|
|
321
|
+
}
|
|
322
|
+
function Ze(u) {
|
|
323
|
+
return ie(u, (y) => {
|
|
324
|
+
const I = y.charCodeAt(0);
|
|
325
|
+
return I >= 97 && I <= 122 || // a-z
|
|
326
|
+
I >= 65 && I <= 90 || // A-Z
|
|
327
|
+
I >= 48 && I <= 57 || // 0-9
|
|
328
|
+
I === 95 || // _
|
|
329
|
+
I === 36;
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
function Ot(u) {
|
|
333
|
+
return ie(u, (y) => {
|
|
334
|
+
const I = y.charCodeAt(0);
|
|
335
|
+
return I >= 48 && I <= 57;
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
function It(u) {
|
|
339
|
+
return ie(u, (y) => {
|
|
340
|
+
const I = y.charCodeAt(0);
|
|
341
|
+
return I >= 48 && I <= 57 || // 0-9
|
|
342
|
+
I >= 65 && I <= 70 || // A-F
|
|
343
|
+
I >= 97 && I <= 102;
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
function et(u) {
|
|
347
|
+
let c = "", y = "";
|
|
348
|
+
for (; c = Ot(u); )
|
|
349
|
+
y += c;
|
|
350
|
+
return y;
|
|
351
|
+
}
|
|
352
|
+
function pe(u) {
|
|
353
|
+
C(u);
|
|
354
|
+
const c = u.currentChar();
|
|
355
|
+
return c !== "%" && _(R.EXPECTED_TOKEN, s(), 0, c), u.next(), "%";
|
|
356
|
+
}
|
|
357
|
+
function Fe(u) {
|
|
358
|
+
let c = "";
|
|
359
|
+
for (; ; ) {
|
|
360
|
+
const y = u.currentChar();
|
|
361
|
+
if (y === "{" || y === "}" || y === "@" || y === "|" || !y)
|
|
362
|
+
break;
|
|
363
|
+
if (y === "%")
|
|
364
|
+
if (oe(u))
|
|
365
|
+
c += y, u.next();
|
|
366
|
+
else
|
|
367
|
+
break;
|
|
368
|
+
else if (y === me || y === J)
|
|
369
|
+
if (oe(u))
|
|
370
|
+
c += y, u.next();
|
|
371
|
+
else {
|
|
372
|
+
if (F(u))
|
|
373
|
+
break;
|
|
374
|
+
c += y, u.next();
|
|
375
|
+
}
|
|
376
|
+
else
|
|
377
|
+
c += y, u.next();
|
|
378
|
+
}
|
|
379
|
+
return c;
|
|
380
|
+
}
|
|
381
|
+
function At(u) {
|
|
382
|
+
C(u);
|
|
383
|
+
let c = "", y = "";
|
|
384
|
+
for (; c = Ze(u); )
|
|
385
|
+
y += c;
|
|
386
|
+
return u.currentChar() === Ee && _(R.UNTERMINATED_CLOSING_BRACE, s(), 0), y;
|
|
387
|
+
}
|
|
388
|
+
function kt(u) {
|
|
389
|
+
C(u);
|
|
390
|
+
let c = "";
|
|
391
|
+
return u.currentChar() === "-" ? (u.next(), c += `-${et(u)}`) : c += et(u), u.currentChar() === Ee && _(R.UNTERMINATED_CLOSING_BRACE, s(), 0), c;
|
|
392
|
+
}
|
|
393
|
+
function Dt(u) {
|
|
394
|
+
C(u), A(u, "'");
|
|
395
|
+
let c = "", y = "";
|
|
396
|
+
const I = (U) => U !== Sn && U !== J;
|
|
397
|
+
for (; c = ie(u, I); )
|
|
398
|
+
c === "\\" ? y += Pt(u) : y += c;
|
|
399
|
+
const $ = u.currentChar();
|
|
400
|
+
return $ === J || $ === Ee ? (_(R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), $ === J && (u.next(), A(u, "'")), y) : (A(u, "'"), y);
|
|
401
|
+
}
|
|
402
|
+
function Pt(u) {
|
|
403
|
+
const c = u.currentChar();
|
|
404
|
+
switch (c) {
|
|
405
|
+
case "\\":
|
|
406
|
+
case "'":
|
|
407
|
+
return u.next(), `\\${c}`;
|
|
408
|
+
case "u":
|
|
409
|
+
return wt(u, c, 4);
|
|
410
|
+
case "U":
|
|
411
|
+
return wt(u, c, 6);
|
|
412
|
+
default:
|
|
413
|
+
return _(R.UNKNOWN_ESCAPE_SEQUENCE, s(), 0, c), "";
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
function wt(u, c, y) {
|
|
417
|
+
A(u, c);
|
|
418
|
+
let I = "";
|
|
419
|
+
for (let $ = 0; $ < y; $++) {
|
|
420
|
+
const U = It(u);
|
|
421
|
+
if (!U) {
|
|
422
|
+
_(R.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${c}${I}${u.currentChar()}`);
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
I += U;
|
|
426
|
+
}
|
|
427
|
+
return `\\${c}${I}`;
|
|
428
|
+
}
|
|
429
|
+
function Rt(u) {
|
|
430
|
+
C(u);
|
|
431
|
+
let c = "", y = "";
|
|
432
|
+
const I = ($) => $ !== "{" && $ !== "}" && $ !== me && $ !== J;
|
|
433
|
+
for (; c = ie(u, I); )
|
|
434
|
+
y += c;
|
|
435
|
+
return y;
|
|
436
|
+
}
|
|
437
|
+
function $t(u) {
|
|
438
|
+
let c = "", y = "";
|
|
439
|
+
for (; c = Ze(u); )
|
|
440
|
+
y += c;
|
|
441
|
+
return y;
|
|
442
|
+
}
|
|
443
|
+
function Mt(u) {
|
|
444
|
+
const c = (y = !1, I) => {
|
|
445
|
+
const $ = u.currentChar();
|
|
446
|
+
return $ === "{" || $ === "%" || $ === "@" || $ === "|" || !$ || $ === me ? I : $ === J ? (I += $, u.next(), c(y, I)) : (I += $, u.next(), c(!0, I));
|
|
447
|
+
};
|
|
448
|
+
return c(!1, "");
|
|
449
|
+
}
|
|
450
|
+
function Ve(u) {
|
|
451
|
+
C(u);
|
|
452
|
+
const c = A(
|
|
453
|
+
u,
|
|
454
|
+
"|"
|
|
455
|
+
/* Pipe */
|
|
456
|
+
);
|
|
457
|
+
return C(u), c;
|
|
458
|
+
}
|
|
459
|
+
function Ue(u, c) {
|
|
460
|
+
let y = null;
|
|
461
|
+
switch (u.currentChar()) {
|
|
462
|
+
case "{":
|
|
463
|
+
return c.braceNest >= 1 && _(R.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), u.next(), y = f(
|
|
464
|
+
c,
|
|
465
|
+
2,
|
|
466
|
+
"{"
|
|
467
|
+
/* BraceLeft */
|
|
468
|
+
), C(u), c.braceNest++, y;
|
|
469
|
+
case "}":
|
|
470
|
+
return c.braceNest > 0 && c.currentType === 2 && _(R.EMPTY_PLACEHOLDER, s(), 0), u.next(), y = f(
|
|
471
|
+
c,
|
|
472
|
+
3,
|
|
473
|
+
"}"
|
|
474
|
+
/* BraceRight */
|
|
475
|
+
), c.braceNest--, c.braceNest > 0 && C(u), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), y;
|
|
476
|
+
case "@":
|
|
477
|
+
return c.braceNest > 0 && _(R.UNTERMINATED_CLOSING_BRACE, s(), 0), y = Ie(u, c) || b(c), c.braceNest = 0, y;
|
|
478
|
+
default:
|
|
479
|
+
let $ = !0, U = !0, ue = !0;
|
|
480
|
+
if (F(u))
|
|
481
|
+
return c.braceNest > 0 && _(R.UNTERMINATED_CLOSING_BRACE, s(), 0), y = f(c, 1, Ve(u)), c.braceNest = 0, c.inLinked = !1, y;
|
|
482
|
+
if (c.braceNest > 0 && (c.currentType === 5 || c.currentType === 6 || c.currentType === 7))
|
|
483
|
+
return _(R.UNTERMINATED_CLOSING_BRACE, s(), 0), c.braceNest = 0, xe(u, c);
|
|
484
|
+
if ($ = T(u, c))
|
|
485
|
+
return y = f(c, 5, At(u)), C(u), y;
|
|
486
|
+
if (U = g(u, c))
|
|
487
|
+
return y = f(c, 6, kt(u)), C(u), y;
|
|
488
|
+
if (ue = p(u, c))
|
|
489
|
+
return y = f(c, 7, Dt(u)), C(u), y;
|
|
490
|
+
if (!$ && !U && !ue)
|
|
491
|
+
return y = f(c, 13, Rt(u)), _(R.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, y.value), C(u), y;
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
return y;
|
|
495
|
+
}
|
|
496
|
+
function Ie(u, c) {
|
|
497
|
+
const { currentType: y } = c;
|
|
498
|
+
let I = null;
|
|
499
|
+
const $ = u.currentChar();
|
|
500
|
+
switch ((y === 8 || y === 9 || y === 12 || y === 10) && ($ === J || $ === me) && _(R.INVALID_LINKED_FORMAT, s(), 0), $) {
|
|
501
|
+
case "@":
|
|
502
|
+
return u.next(), I = f(
|
|
503
|
+
c,
|
|
504
|
+
8,
|
|
505
|
+
"@"
|
|
506
|
+
/* LinkedAlias */
|
|
507
|
+
), c.inLinked = !0, I;
|
|
508
|
+
case ".":
|
|
509
|
+
return C(u), u.next(), f(
|
|
510
|
+
c,
|
|
511
|
+
9,
|
|
512
|
+
"."
|
|
513
|
+
/* LinkedDot */
|
|
514
|
+
);
|
|
515
|
+
case ":":
|
|
516
|
+
return C(u), u.next(), f(
|
|
517
|
+
c,
|
|
518
|
+
10,
|
|
519
|
+
":"
|
|
520
|
+
/* LinkedDelimiter */
|
|
521
|
+
);
|
|
522
|
+
default:
|
|
523
|
+
return F(u) ? (I = f(c, 1, Ve(u)), c.braceNest = 0, c.inLinked = !1, I) : S(u, c) || D(u, c) ? (C(u), Ie(u, c)) : O(u, c) ? (C(u), f(c, 12, $t(u))) : w(u, c) ? (C(u), $ === "{" ? Ue(u, c) || I : f(c, 11, Mt(u))) : (y === 8 && _(R.INVALID_LINKED_FORMAT, s(), 0), c.braceNest = 0, c.inLinked = !1, xe(u, c));
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
function xe(u, c) {
|
|
527
|
+
let y = {
|
|
528
|
+
type: 14
|
|
529
|
+
/* EOF */
|
|
530
|
+
};
|
|
531
|
+
if (c.braceNest > 0)
|
|
532
|
+
return Ue(u, c) || b(c);
|
|
533
|
+
if (c.inLinked)
|
|
534
|
+
return Ie(u, c) || b(c);
|
|
535
|
+
switch (u.currentChar()) {
|
|
536
|
+
case "{":
|
|
537
|
+
return Ue(u, c) || b(c);
|
|
538
|
+
case "}":
|
|
539
|
+
return _(R.UNBALANCED_CLOSING_BRACE, s(), 0), u.next(), f(
|
|
540
|
+
c,
|
|
541
|
+
3,
|
|
542
|
+
"}"
|
|
543
|
+
/* BraceRight */
|
|
544
|
+
);
|
|
545
|
+
case "@":
|
|
546
|
+
return Ie(u, c) || b(c);
|
|
547
|
+
default:
|
|
548
|
+
if (F(u))
|
|
549
|
+
return y = f(c, 1, Ve(u)), c.braceNest = 0, c.inLinked = !1, y;
|
|
550
|
+
const { isModulo: $, hasSpace: U } = z(u);
|
|
551
|
+
if ($)
|
|
552
|
+
return U ? f(c, 0, Fe(u)) : f(c, 4, pe(u));
|
|
553
|
+
if (oe(u))
|
|
554
|
+
return f(c, 0, Fe(u));
|
|
555
|
+
break;
|
|
556
|
+
}
|
|
557
|
+
return y;
|
|
558
|
+
}
|
|
559
|
+
function Ft() {
|
|
560
|
+
const { currentType: u, offset: c, startLoc: y, endLoc: I } = o;
|
|
561
|
+
return o.lastType = u, o.lastOffset = c, o.lastStartLoc = y, o.lastEndLoc = I, o.offset = a(), o.startLoc = s(), r.currentChar() === Ee ? f(
|
|
562
|
+
o,
|
|
563
|
+
14
|
|
564
|
+
/* EOF */
|
|
565
|
+
) : xe(r, o);
|
|
566
|
+
}
|
|
567
|
+
return {
|
|
568
|
+
nextToken: Ft,
|
|
569
|
+
currentOffset: a,
|
|
570
|
+
currentPosition: s,
|
|
571
|
+
context: m
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
const os = "parser", is = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
575
|
+
function us(e, t, n) {
|
|
576
|
+
switch (e) {
|
|
577
|
+
case "\\\\":
|
|
578
|
+
return "\\";
|
|
579
|
+
case "\\'":
|
|
580
|
+
return "'";
|
|
581
|
+
default: {
|
|
582
|
+
const r = parseInt(t || n, 16);
|
|
583
|
+
return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
function cs(e = {}) {
|
|
588
|
+
const t = e.location !== !1, { onError: n } = e;
|
|
589
|
+
function r(d, h, T, g, ...p) {
|
|
590
|
+
const S = d.currentPosition();
|
|
591
|
+
if (S.offset += g, S.column += g, n) {
|
|
592
|
+
const O = Gt(T, S), D = Et(h, O, {
|
|
593
|
+
domain: os,
|
|
594
|
+
args: p
|
|
595
|
+
});
|
|
596
|
+
n(D);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
function a(d, h, T) {
|
|
600
|
+
const g = {
|
|
601
|
+
type: d,
|
|
602
|
+
start: h,
|
|
603
|
+
end: h
|
|
604
|
+
};
|
|
605
|
+
return t && (g.loc = { start: T, end: T }), g;
|
|
606
|
+
}
|
|
607
|
+
function s(d, h, T, g) {
|
|
608
|
+
d.end = h, g && (d.type = g), t && d.loc && (d.loc.end = T);
|
|
609
|
+
}
|
|
610
|
+
function l(d, h) {
|
|
611
|
+
const T = d.context(), g = a(3, T.offset, T.startLoc);
|
|
612
|
+
return g.value = h, s(g, d.currentOffset(), d.currentPosition()), g;
|
|
613
|
+
}
|
|
614
|
+
function i(d, h) {
|
|
615
|
+
const T = d.context(), { lastOffset: g, lastStartLoc: p } = T, S = a(5, g, p);
|
|
616
|
+
return S.index = parseInt(h, 10), d.nextToken(), s(S, d.currentOffset(), d.currentPosition()), S;
|
|
617
|
+
}
|
|
618
|
+
function o(d, h) {
|
|
619
|
+
const T = d.context(), { lastOffset: g, lastStartLoc: p } = T, S = a(4, g, p);
|
|
620
|
+
return S.key = h, d.nextToken(), s(S, d.currentOffset(), d.currentPosition()), S;
|
|
621
|
+
}
|
|
622
|
+
function m(d, h) {
|
|
623
|
+
const T = d.context(), { lastOffset: g, lastStartLoc: p } = T, S = a(9, g, p);
|
|
624
|
+
return S.value = h.replace(is, us), d.nextToken(), s(S, d.currentOffset(), d.currentPosition()), S;
|
|
625
|
+
}
|
|
626
|
+
function v(d) {
|
|
627
|
+
const h = d.nextToken(), T = d.context(), { lastOffset: g, lastStartLoc: p } = T, S = a(8, g, p);
|
|
628
|
+
return h.type !== 12 ? (r(d, R.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), S.value = "", s(S, g, p), {
|
|
629
|
+
nextConsumeToken: h,
|
|
630
|
+
node: S
|
|
631
|
+
}) : (h.value == null && r(d, R.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, ce(h)), S.value = h.value || "", s(S, d.currentOffset(), d.currentPosition()), {
|
|
632
|
+
node: S
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
function _(d, h) {
|
|
636
|
+
const T = d.context(), g = a(7, T.offset, T.startLoc);
|
|
637
|
+
return g.value = h, s(g, d.currentOffset(), d.currentPosition()), g;
|
|
638
|
+
}
|
|
639
|
+
function f(d) {
|
|
640
|
+
const h = d.context(), T = a(6, h.offset, h.startLoc);
|
|
641
|
+
let g = d.nextToken();
|
|
642
|
+
if (g.type === 9) {
|
|
643
|
+
const p = v(d);
|
|
644
|
+
T.modifier = p.node, g = p.nextConsumeToken || d.nextToken();
|
|
645
|
+
}
|
|
646
|
+
switch (g.type !== 10 && r(d, R.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ce(g)), g = d.nextToken(), g.type === 2 && (g = d.nextToken()), g.type) {
|
|
647
|
+
case 11:
|
|
648
|
+
g.value == null && r(d, R.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ce(g)), T.key = _(d, g.value || "");
|
|
649
|
+
break;
|
|
650
|
+
case 5:
|
|
651
|
+
g.value == null && r(d, R.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ce(g)), T.key = o(d, g.value || "");
|
|
652
|
+
break;
|
|
653
|
+
case 6:
|
|
654
|
+
g.value == null && r(d, R.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ce(g)), T.key = i(d, g.value || "");
|
|
655
|
+
break;
|
|
656
|
+
case 7:
|
|
657
|
+
g.value == null && r(d, R.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ce(g)), T.key = m(d, g.value || "");
|
|
658
|
+
break;
|
|
659
|
+
default:
|
|
660
|
+
r(d, R.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
661
|
+
const p = d.context(), S = a(7, p.offset, p.startLoc);
|
|
662
|
+
return S.value = "", s(S, p.offset, p.startLoc), T.key = S, s(T, p.offset, p.startLoc), {
|
|
663
|
+
nextConsumeToken: g,
|
|
664
|
+
node: T
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
return s(T, d.currentOffset(), d.currentPosition()), {
|
|
668
|
+
node: T
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
function b(d) {
|
|
672
|
+
const h = d.context(), T = h.currentType === 1 ? d.currentOffset() : h.offset, g = h.currentType === 1 ? h.endLoc : h.startLoc, p = a(2, T, g);
|
|
673
|
+
p.items = [];
|
|
674
|
+
let S = null;
|
|
675
|
+
do {
|
|
676
|
+
const w = S || d.nextToken();
|
|
677
|
+
switch (S = null, w.type) {
|
|
678
|
+
case 0:
|
|
679
|
+
w.value == null && r(d, R.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ce(w)), p.items.push(l(d, w.value || ""));
|
|
680
|
+
break;
|
|
681
|
+
case 6:
|
|
682
|
+
w.value == null && r(d, R.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ce(w)), p.items.push(i(d, w.value || ""));
|
|
683
|
+
break;
|
|
684
|
+
case 5:
|
|
685
|
+
w.value == null && r(d, R.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ce(w)), p.items.push(o(d, w.value || ""));
|
|
686
|
+
break;
|
|
687
|
+
case 7:
|
|
688
|
+
w.value == null && r(d, R.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ce(w)), p.items.push(m(d, w.value || ""));
|
|
689
|
+
break;
|
|
690
|
+
case 8:
|
|
691
|
+
const F = f(d);
|
|
692
|
+
p.items.push(F.node), S = F.nextConsumeToken || null;
|
|
693
|
+
break;
|
|
694
|
+
}
|
|
695
|
+
} while (h.currentType !== 14 && h.currentType !== 1);
|
|
696
|
+
const O = h.currentType === 1 ? h.lastOffset : d.currentOffset(), D = h.currentType === 1 ? h.lastEndLoc : d.currentPosition();
|
|
697
|
+
return s(p, O, D), p;
|
|
698
|
+
}
|
|
699
|
+
function A(d, h, T, g) {
|
|
700
|
+
const p = d.context();
|
|
701
|
+
let S = g.items.length === 0;
|
|
702
|
+
const O = a(1, h, T);
|
|
703
|
+
O.cases = [], O.cases.push(g);
|
|
704
|
+
do {
|
|
705
|
+
const D = b(d);
|
|
706
|
+
S || (S = D.items.length === 0), O.cases.push(D);
|
|
707
|
+
} while (p.currentType !== 14);
|
|
708
|
+
return S && r(d, R.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0), s(O, d.currentOffset(), d.currentPosition()), O;
|
|
709
|
+
}
|
|
710
|
+
function N(d) {
|
|
711
|
+
const h = d.context(), { offset: T, startLoc: g } = h, p = b(d);
|
|
712
|
+
return h.currentType === 14 ? p : A(d, T, g, p);
|
|
713
|
+
}
|
|
714
|
+
function C(d) {
|
|
715
|
+
const h = ls(d, Y({}, e)), T = h.context(), g = a(0, T.offset, T.startLoc);
|
|
716
|
+
return t && g.loc && (g.loc.source = d), g.body = N(h), T.currentType !== 14 && r(h, R.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, d[T.offset] || ""), s(g, h.currentOffset(), h.currentPosition()), g;
|
|
717
|
+
}
|
|
718
|
+
return { parse: C };
|
|
719
|
+
}
|
|
720
|
+
function ce(e) {
|
|
721
|
+
if (e.type === 14)
|
|
722
|
+
return "EOF";
|
|
723
|
+
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
724
|
+
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
725
|
+
}
|
|
726
|
+
function fs(e, t = {}) {
|
|
727
|
+
const n = {
|
|
728
|
+
ast: e,
|
|
729
|
+
helpers: /* @__PURE__ */ new Set()
|
|
730
|
+
};
|
|
731
|
+
return { context: () => n, helper: (s) => (n.helpers.add(s), s) };
|
|
732
|
+
}
|
|
733
|
+
function On(e, t) {
|
|
734
|
+
for (let n = 0; n < e.length; n++)
|
|
735
|
+
un(e[n], t);
|
|
736
|
+
}
|
|
737
|
+
function un(e, t) {
|
|
738
|
+
switch (e.type) {
|
|
739
|
+
case 1:
|
|
740
|
+
On(e.cases, t), t.helper(
|
|
741
|
+
"plural"
|
|
742
|
+
/* PLURAL */
|
|
743
|
+
);
|
|
744
|
+
break;
|
|
745
|
+
case 2:
|
|
746
|
+
On(e.items, t);
|
|
747
|
+
break;
|
|
748
|
+
case 6:
|
|
749
|
+
un(e.key, t), t.helper(
|
|
750
|
+
"linked"
|
|
751
|
+
/* LINKED */
|
|
752
|
+
), t.helper(
|
|
753
|
+
"type"
|
|
754
|
+
/* TYPE */
|
|
755
|
+
);
|
|
756
|
+
break;
|
|
757
|
+
case 5:
|
|
758
|
+
t.helper(
|
|
759
|
+
"interpolate"
|
|
760
|
+
/* INTERPOLATE */
|
|
761
|
+
), t.helper(
|
|
762
|
+
"list"
|
|
763
|
+
/* LIST */
|
|
764
|
+
);
|
|
765
|
+
break;
|
|
766
|
+
case 4:
|
|
767
|
+
t.helper(
|
|
768
|
+
"interpolate"
|
|
769
|
+
/* INTERPOLATE */
|
|
770
|
+
), t.helper(
|
|
771
|
+
"named"
|
|
772
|
+
/* NAMED */
|
|
773
|
+
);
|
|
774
|
+
break;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
function ds(e, t = {}) {
|
|
778
|
+
const n = fs(e);
|
|
779
|
+
n.helper(
|
|
780
|
+
"normalize"
|
|
781
|
+
/* NORMALIZE */
|
|
782
|
+
), e.body && un(e.body, n);
|
|
783
|
+
const r = n.context();
|
|
784
|
+
e.helpers = Array.from(r.helpers);
|
|
785
|
+
}
|
|
786
|
+
function ms(e, t) {
|
|
787
|
+
const { sourceMap: n, filename: r, breakLineCode: a, needIndent: s } = t, l = {
|
|
788
|
+
source: e.loc.source,
|
|
789
|
+
filename: r,
|
|
790
|
+
code: "",
|
|
791
|
+
column: 1,
|
|
792
|
+
line: 1,
|
|
793
|
+
offset: 0,
|
|
794
|
+
map: void 0,
|
|
795
|
+
breakLineCode: a,
|
|
796
|
+
needIndent: s,
|
|
797
|
+
indentLevel: 0
|
|
798
|
+
}, i = () => l;
|
|
799
|
+
function o(N, C) {
|
|
800
|
+
l.code += N;
|
|
801
|
+
}
|
|
802
|
+
function m(N, C = !0) {
|
|
803
|
+
const d = C ? a : "";
|
|
804
|
+
o(s ? d + " ".repeat(N) : d);
|
|
805
|
+
}
|
|
806
|
+
function v(N = !0) {
|
|
807
|
+
const C = ++l.indentLevel;
|
|
808
|
+
N && m(C);
|
|
809
|
+
}
|
|
810
|
+
function _(N = !0) {
|
|
811
|
+
const C = --l.indentLevel;
|
|
812
|
+
N && m(C);
|
|
813
|
+
}
|
|
814
|
+
function f() {
|
|
815
|
+
m(l.indentLevel);
|
|
816
|
+
}
|
|
817
|
+
return {
|
|
818
|
+
context: i,
|
|
819
|
+
push: o,
|
|
820
|
+
indent: v,
|
|
821
|
+
deindent: _,
|
|
822
|
+
newline: f,
|
|
823
|
+
helper: (N) => `_${N}`,
|
|
824
|
+
needIndent: () => l.needIndent
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
function _s(e, t) {
|
|
828
|
+
const { helper: n } = e;
|
|
829
|
+
e.push(`${n(
|
|
830
|
+
"linked"
|
|
831
|
+
/* LINKED */
|
|
832
|
+
)}(`), we(e, t.key), t.modifier ? (e.push(", "), we(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
833
|
+
}
|
|
834
|
+
function gs(e, t) {
|
|
835
|
+
const { helper: n, needIndent: r } = e;
|
|
836
|
+
e.push(`${n(
|
|
837
|
+
"normalize"
|
|
838
|
+
/* NORMALIZE */
|
|
839
|
+
)}([`), e.indent(r());
|
|
840
|
+
const a = t.items.length;
|
|
841
|
+
for (let s = 0; s < a && (we(e, t.items[s]), s !== a - 1); s++)
|
|
842
|
+
e.push(", ");
|
|
843
|
+
e.deindent(r()), e.push("])");
|
|
844
|
+
}
|
|
845
|
+
function vs(e, t) {
|
|
846
|
+
const { helper: n, needIndent: r } = e;
|
|
847
|
+
if (t.cases.length > 1) {
|
|
848
|
+
e.push(`${n(
|
|
849
|
+
"plural"
|
|
850
|
+
/* PLURAL */
|
|
851
|
+
)}([`), e.indent(r());
|
|
852
|
+
const a = t.cases.length;
|
|
853
|
+
for (let s = 0; s < a && (we(e, t.cases[s]), s !== a - 1); s++)
|
|
854
|
+
e.push(", ");
|
|
855
|
+
e.deindent(r()), e.push("])");
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
function ps(e, t) {
|
|
859
|
+
t.body ? we(e, t.body) : e.push("null");
|
|
860
|
+
}
|
|
861
|
+
function we(e, t) {
|
|
862
|
+
const { helper: n } = e;
|
|
863
|
+
switch (t.type) {
|
|
864
|
+
case 0:
|
|
865
|
+
ps(e, t);
|
|
866
|
+
break;
|
|
867
|
+
case 1:
|
|
868
|
+
vs(e, t);
|
|
869
|
+
break;
|
|
870
|
+
case 2:
|
|
871
|
+
gs(e, t);
|
|
872
|
+
break;
|
|
873
|
+
case 6:
|
|
874
|
+
_s(e, t);
|
|
875
|
+
break;
|
|
876
|
+
case 8:
|
|
877
|
+
e.push(JSON.stringify(t.value), t);
|
|
878
|
+
break;
|
|
879
|
+
case 7:
|
|
880
|
+
e.push(JSON.stringify(t.value), t);
|
|
881
|
+
break;
|
|
882
|
+
case 5:
|
|
883
|
+
e.push(`${n(
|
|
884
|
+
"interpolate"
|
|
885
|
+
/* INTERPOLATE */
|
|
886
|
+
)}(${n(
|
|
887
|
+
"list"
|
|
888
|
+
/* LIST */
|
|
889
|
+
)}(${t.index}))`, t);
|
|
890
|
+
break;
|
|
891
|
+
case 4:
|
|
892
|
+
e.push(`${n(
|
|
893
|
+
"interpolate"
|
|
894
|
+
/* INTERPOLATE */
|
|
895
|
+
)}(${n(
|
|
896
|
+
"named"
|
|
897
|
+
/* NAMED */
|
|
898
|
+
)}(${JSON.stringify(t.key)}))`, t);
|
|
899
|
+
break;
|
|
900
|
+
case 9:
|
|
901
|
+
e.push(JSON.stringify(t.value), t);
|
|
902
|
+
break;
|
|
903
|
+
case 3:
|
|
904
|
+
e.push(JSON.stringify(t.value), t);
|
|
905
|
+
break;
|
|
906
|
+
default:
|
|
907
|
+
if (process.env.NODE_ENV !== "production")
|
|
908
|
+
throw new Error(`unhandled codegen node type: ${t.type}`);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
const Es = (e, t = {}) => {
|
|
912
|
+
const n = k(t.mode) ? t.mode : "normal", r = k(t.filename) ? t.filename : "message.intl", a = !!t.sourceMap, s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
913
|
+
`, l = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], o = ms(e, {
|
|
914
|
+
mode: n,
|
|
915
|
+
filename: r,
|
|
916
|
+
sourceMap: a,
|
|
917
|
+
breakLineCode: s,
|
|
918
|
+
needIndent: l
|
|
919
|
+
});
|
|
920
|
+
o.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), o.indent(l), i.length > 0 && (o.push(`const { ${i.map((_) => `${_}: _${_}`).join(", ")} } = ctx`), o.newline()), o.push("return "), we(o, e), o.deindent(l), o.push("}");
|
|
921
|
+
const { code: m, map: v } = o.context();
|
|
922
|
+
return {
|
|
923
|
+
ast: e,
|
|
924
|
+
code: m,
|
|
925
|
+
map: v ? v.toJSON() : void 0
|
|
926
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
927
|
+
};
|
|
928
|
+
};
|
|
929
|
+
function hs(e, t = {}) {
|
|
930
|
+
const n = Y({}, t), a = cs(n).parse(e);
|
|
931
|
+
return ds(a, n), Es(a, n);
|
|
932
|
+
}
|
|
933
|
+
/*!
|
|
934
|
+
* devtools-if v9.2.2
|
|
935
|
+
* (c) 2022 kazuya kawaguchi
|
|
936
|
+
* Released under the MIT License.
|
|
937
|
+
*/
|
|
938
|
+
const pr = {
|
|
939
|
+
I18nInit: "i18n:init",
|
|
940
|
+
FunctionTranslate: "function:translate"
|
|
941
|
+
};
|
|
942
|
+
/*!
|
|
943
|
+
* core-base v9.2.2
|
|
944
|
+
* (c) 2022 kazuya kawaguchi
|
|
945
|
+
* Released under the MIT License.
|
|
946
|
+
*/
|
|
947
|
+
const be = [];
|
|
948
|
+
be[
|
|
949
|
+
0
|
|
950
|
+
/* BEFORE_PATH */
|
|
951
|
+
] = {
|
|
952
|
+
w: [
|
|
953
|
+
0
|
|
954
|
+
/* BEFORE_PATH */
|
|
955
|
+
],
|
|
956
|
+
i: [
|
|
957
|
+
3,
|
|
958
|
+
0
|
|
959
|
+
/* APPEND */
|
|
960
|
+
],
|
|
961
|
+
[
|
|
962
|
+
"["
|
|
963
|
+
/* LEFT_BRACKET */
|
|
964
|
+
]: [
|
|
965
|
+
4
|
|
966
|
+
/* IN_SUB_PATH */
|
|
967
|
+
],
|
|
968
|
+
o: [
|
|
969
|
+
7
|
|
970
|
+
/* AFTER_PATH */
|
|
971
|
+
]
|
|
972
|
+
};
|
|
973
|
+
be[
|
|
974
|
+
1
|
|
975
|
+
/* IN_PATH */
|
|
976
|
+
] = {
|
|
977
|
+
w: [
|
|
978
|
+
1
|
|
979
|
+
/* IN_PATH */
|
|
980
|
+
],
|
|
981
|
+
[
|
|
982
|
+
"."
|
|
983
|
+
/* DOT */
|
|
984
|
+
]: [
|
|
985
|
+
2
|
|
986
|
+
/* BEFORE_IDENT */
|
|
987
|
+
],
|
|
988
|
+
[
|
|
989
|
+
"["
|
|
990
|
+
/* LEFT_BRACKET */
|
|
991
|
+
]: [
|
|
992
|
+
4
|
|
993
|
+
/* IN_SUB_PATH */
|
|
994
|
+
],
|
|
995
|
+
o: [
|
|
996
|
+
7
|
|
997
|
+
/* AFTER_PATH */
|
|
998
|
+
]
|
|
999
|
+
};
|
|
1000
|
+
be[
|
|
1001
|
+
2
|
|
1002
|
+
/* BEFORE_IDENT */
|
|
1003
|
+
] = {
|
|
1004
|
+
w: [
|
|
1005
|
+
2
|
|
1006
|
+
/* BEFORE_IDENT */
|
|
1007
|
+
],
|
|
1008
|
+
i: [
|
|
1009
|
+
3,
|
|
1010
|
+
0
|
|
1011
|
+
/* APPEND */
|
|
1012
|
+
],
|
|
1013
|
+
[
|
|
1014
|
+
0
|
|
1015
|
+
/* ZERO */
|
|
1016
|
+
]: [
|
|
1017
|
+
3,
|
|
1018
|
+
0
|
|
1019
|
+
/* APPEND */
|
|
1020
|
+
]
|
|
1021
|
+
};
|
|
1022
|
+
be[
|
|
1023
|
+
3
|
|
1024
|
+
/* IN_IDENT */
|
|
1025
|
+
] = {
|
|
1026
|
+
i: [
|
|
1027
|
+
3,
|
|
1028
|
+
0
|
|
1029
|
+
/* APPEND */
|
|
1030
|
+
],
|
|
1031
|
+
[
|
|
1032
|
+
0
|
|
1033
|
+
/* ZERO */
|
|
1034
|
+
]: [
|
|
1035
|
+
3,
|
|
1036
|
+
0
|
|
1037
|
+
/* APPEND */
|
|
1038
|
+
],
|
|
1039
|
+
w: [
|
|
1040
|
+
1,
|
|
1041
|
+
1
|
|
1042
|
+
/* PUSH */
|
|
1043
|
+
],
|
|
1044
|
+
[
|
|
1045
|
+
"."
|
|
1046
|
+
/* DOT */
|
|
1047
|
+
]: [
|
|
1048
|
+
2,
|
|
1049
|
+
1
|
|
1050
|
+
/* PUSH */
|
|
1051
|
+
],
|
|
1052
|
+
[
|
|
1053
|
+
"["
|
|
1054
|
+
/* LEFT_BRACKET */
|
|
1055
|
+
]: [
|
|
1056
|
+
4,
|
|
1057
|
+
1
|
|
1058
|
+
/* PUSH */
|
|
1059
|
+
],
|
|
1060
|
+
o: [
|
|
1061
|
+
7,
|
|
1062
|
+
1
|
|
1063
|
+
/* PUSH */
|
|
1064
|
+
]
|
|
1065
|
+
};
|
|
1066
|
+
be[
|
|
1067
|
+
4
|
|
1068
|
+
/* IN_SUB_PATH */
|
|
1069
|
+
] = {
|
|
1070
|
+
[
|
|
1071
|
+
"'"
|
|
1072
|
+
/* SINGLE_QUOTE */
|
|
1073
|
+
]: [
|
|
1074
|
+
5,
|
|
1075
|
+
0
|
|
1076
|
+
/* APPEND */
|
|
1077
|
+
],
|
|
1078
|
+
[
|
|
1079
|
+
'"'
|
|
1080
|
+
/* DOUBLE_QUOTE */
|
|
1081
|
+
]: [
|
|
1082
|
+
6,
|
|
1083
|
+
0
|
|
1084
|
+
/* APPEND */
|
|
1085
|
+
],
|
|
1086
|
+
[
|
|
1087
|
+
"["
|
|
1088
|
+
/* LEFT_BRACKET */
|
|
1089
|
+
]: [
|
|
1090
|
+
4,
|
|
1091
|
+
2
|
|
1092
|
+
/* INC_SUB_PATH_DEPTH */
|
|
1093
|
+
],
|
|
1094
|
+
[
|
|
1095
|
+
"]"
|
|
1096
|
+
/* RIGHT_BRACKET */
|
|
1097
|
+
]: [
|
|
1098
|
+
1,
|
|
1099
|
+
3
|
|
1100
|
+
/* PUSH_SUB_PATH */
|
|
1101
|
+
],
|
|
1102
|
+
o: 8,
|
|
1103
|
+
l: [
|
|
1104
|
+
4,
|
|
1105
|
+
0
|
|
1106
|
+
/* APPEND */
|
|
1107
|
+
]
|
|
1108
|
+
};
|
|
1109
|
+
be[
|
|
1110
|
+
5
|
|
1111
|
+
/* IN_SINGLE_QUOTE */
|
|
1112
|
+
] = {
|
|
1113
|
+
[
|
|
1114
|
+
"'"
|
|
1115
|
+
/* SINGLE_QUOTE */
|
|
1116
|
+
]: [
|
|
1117
|
+
4,
|
|
1118
|
+
0
|
|
1119
|
+
/* APPEND */
|
|
1120
|
+
],
|
|
1121
|
+
o: 8,
|
|
1122
|
+
l: [
|
|
1123
|
+
5,
|
|
1124
|
+
0
|
|
1125
|
+
/* APPEND */
|
|
1126
|
+
]
|
|
1127
|
+
};
|
|
1128
|
+
be[
|
|
1129
|
+
6
|
|
1130
|
+
/* IN_DOUBLE_QUOTE */
|
|
1131
|
+
] = {
|
|
1132
|
+
[
|
|
1133
|
+
'"'
|
|
1134
|
+
/* DOUBLE_QUOTE */
|
|
1135
|
+
]: [
|
|
1136
|
+
4,
|
|
1137
|
+
0
|
|
1138
|
+
/* APPEND */
|
|
1139
|
+
],
|
|
1140
|
+
o: 8,
|
|
1141
|
+
l: [
|
|
1142
|
+
6,
|
|
1143
|
+
0
|
|
1144
|
+
/* APPEND */
|
|
1145
|
+
]
|
|
1146
|
+
};
|
|
1147
|
+
const Ns = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1148
|
+
function ys(e) {
|
|
1149
|
+
return Ns.test(e);
|
|
1150
|
+
}
|
|
1151
|
+
function bs(e) {
|
|
1152
|
+
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1153
|
+
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1154
|
+
}
|
|
1155
|
+
function Ts(e) {
|
|
1156
|
+
if (e == null)
|
|
1157
|
+
return "o";
|
|
1158
|
+
switch (e.charCodeAt(0)) {
|
|
1159
|
+
case 91:
|
|
1160
|
+
case 93:
|
|
1161
|
+
case 46:
|
|
1162
|
+
case 34:
|
|
1163
|
+
case 39:
|
|
1164
|
+
return e;
|
|
1165
|
+
case 95:
|
|
1166
|
+
case 36:
|
|
1167
|
+
case 45:
|
|
1168
|
+
return "i";
|
|
1169
|
+
case 9:
|
|
1170
|
+
case 10:
|
|
1171
|
+
case 13:
|
|
1172
|
+
case 160:
|
|
1173
|
+
case 65279:
|
|
1174
|
+
case 8232:
|
|
1175
|
+
case 8233:
|
|
1176
|
+
return "w";
|
|
1177
|
+
}
|
|
1178
|
+
return "i";
|
|
1179
|
+
}
|
|
1180
|
+
function Ls(e) {
|
|
1181
|
+
const t = e.trim();
|
|
1182
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ys(t) ? bs(t) : "*" + t;
|
|
1183
|
+
}
|
|
1184
|
+
function Cs(e) {
|
|
1185
|
+
const t = [];
|
|
1186
|
+
let n = -1, r = 0, a = 0, s, l, i, o, m, v, _;
|
|
1187
|
+
const f = [];
|
|
1188
|
+
f[
|
|
1189
|
+
0
|
|
1190
|
+
/* APPEND */
|
|
1191
|
+
] = () => {
|
|
1192
|
+
l === void 0 ? l = i : l += i;
|
|
1193
|
+
}, f[
|
|
1194
|
+
1
|
|
1195
|
+
/* PUSH */
|
|
1196
|
+
] = () => {
|
|
1197
|
+
l !== void 0 && (t.push(l), l = void 0);
|
|
1198
|
+
}, f[
|
|
1199
|
+
2
|
|
1200
|
+
/* INC_SUB_PATH_DEPTH */
|
|
1201
|
+
] = () => {
|
|
1202
|
+
f[
|
|
1203
|
+
0
|
|
1204
|
+
/* APPEND */
|
|
1205
|
+
](), a++;
|
|
1206
|
+
}, f[
|
|
1207
|
+
3
|
|
1208
|
+
/* PUSH_SUB_PATH */
|
|
1209
|
+
] = () => {
|
|
1210
|
+
if (a > 0)
|
|
1211
|
+
a--, r = 4, f[
|
|
1212
|
+
0
|
|
1213
|
+
/* APPEND */
|
|
1214
|
+
]();
|
|
1215
|
+
else {
|
|
1216
|
+
if (a = 0, l === void 0 || (l = Ls(l), l === !1))
|
|
1217
|
+
return !1;
|
|
1218
|
+
f[
|
|
1219
|
+
1
|
|
1220
|
+
/* PUSH */
|
|
1221
|
+
]();
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1224
|
+
function b() {
|
|
1225
|
+
const A = e[n + 1];
|
|
1226
|
+
if (r === 5 && A === "'" || r === 6 && A === '"')
|
|
1227
|
+
return n++, i = "\\" + A, f[
|
|
1228
|
+
0
|
|
1229
|
+
/* APPEND */
|
|
1230
|
+
](), !0;
|
|
1231
|
+
}
|
|
1232
|
+
for (; r !== null; )
|
|
1233
|
+
if (n++, s = e[n], !(s === "\\" && b())) {
|
|
1234
|
+
if (o = Ts(s), _ = be[r], m = _[o] || _.l || 8, m === 8 || (r = m[0], m[1] !== void 0 && (v = f[m[1]], v && (i = s, v() === !1))))
|
|
1235
|
+
return;
|
|
1236
|
+
if (r === 7)
|
|
1237
|
+
return t;
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
const In = /* @__PURE__ */ new Map();
|
|
1241
|
+
function Ss(e, t) {
|
|
1242
|
+
return x(e) ? e[t] : null;
|
|
1243
|
+
}
|
|
1244
|
+
function Os(e, t) {
|
|
1245
|
+
if (!x(e))
|
|
1246
|
+
return null;
|
|
1247
|
+
let n = In.get(t);
|
|
1248
|
+
if (n || (n = Cs(t), n && In.set(t, n)), !n)
|
|
1249
|
+
return null;
|
|
1250
|
+
const r = n.length;
|
|
1251
|
+
let a = e, s = 0;
|
|
1252
|
+
for (; s < r; ) {
|
|
1253
|
+
const l = a[n[s]];
|
|
1254
|
+
if (l === void 0)
|
|
1255
|
+
return null;
|
|
1256
|
+
a = l, s++;
|
|
1257
|
+
}
|
|
1258
|
+
return a;
|
|
1259
|
+
}
|
|
1260
|
+
const Is = (e) => e, As = (e) => "", ks = "text", Ds = (e) => e.length === 0 ? "" : e.join(""), Ps = Xa;
|
|
1261
|
+
function An(e, t) {
|
|
1262
|
+
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1263
|
+
}
|
|
1264
|
+
function ws(e) {
|
|
1265
|
+
const t = X(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1266
|
+
return e.named && (X(e.named.count) || X(e.named.n)) ? X(e.named.count) ? e.named.count : X(e.named.n) ? e.named.n : t : t;
|
|
1267
|
+
}
|
|
1268
|
+
function Rs(e, t) {
|
|
1269
|
+
t.count || (t.count = e), t.n || (t.n = e);
|
|
1270
|
+
}
|
|
1271
|
+
function $s(e = {}) {
|
|
1272
|
+
const t = e.locale, n = ws(e), r = x(e.pluralRules) && k(t) && H(e.pluralRules[t]) ? e.pluralRules[t] : An, a = x(e.pluralRules) && k(t) && H(e.pluralRules[t]) ? An : void 0, s = (d) => d[r(n, d.length, a)], l = e.list || [], i = (d) => l[d], o = e.named || {};
|
|
1273
|
+
X(e.pluralIndex) && Rs(n, o);
|
|
1274
|
+
const m = (d) => o[d];
|
|
1275
|
+
function v(d) {
|
|
1276
|
+
const h = H(e.messages) ? e.messages(d) : x(e.messages) ? e.messages[d] : !1;
|
|
1277
|
+
return h || (e.parent ? e.parent.message(d) : As);
|
|
1278
|
+
}
|
|
1279
|
+
const _ = (d) => e.modifiers ? e.modifiers[d] : Is, f = V(e.processor) && H(e.processor.normalize) ? e.processor.normalize : Ds, b = V(e.processor) && H(e.processor.interpolate) ? e.processor.interpolate : Ps, A = V(e.processor) && k(e.processor.type) ? e.processor.type : ks, C = {
|
|
1280
|
+
list: i,
|
|
1281
|
+
named: m,
|
|
1282
|
+
plural: s,
|
|
1283
|
+
linked: (d, ...h) => {
|
|
1284
|
+
const [T, g] = h;
|
|
1285
|
+
let p = "text", S = "";
|
|
1286
|
+
h.length === 1 ? x(T) ? (S = T.modifier || S, p = T.type || p) : k(T) && (S = T || S) : h.length === 2 && (k(T) && (S = T || S), k(g) && (p = g || p));
|
|
1287
|
+
let O = v(d)(C);
|
|
1288
|
+
return p === "vnode" && j(O) && S && (O = O[0]), S ? _(S)(O, p) : O;
|
|
1289
|
+
},
|
|
1290
|
+
message: v,
|
|
1291
|
+
type: A,
|
|
1292
|
+
interpolate: b,
|
|
1293
|
+
normalize: f
|
|
1294
|
+
};
|
|
1295
|
+
return C;
|
|
1296
|
+
}
|
|
1297
|
+
let je = null;
|
|
1298
|
+
function Ms(e) {
|
|
1299
|
+
je = e;
|
|
1300
|
+
}
|
|
1301
|
+
function Fs(e, t, n) {
|
|
1302
|
+
je && je.emit(pr.I18nInit, {
|
|
1303
|
+
timestamp: Date.now(),
|
|
1304
|
+
i18n: e,
|
|
1305
|
+
version: t,
|
|
1306
|
+
meta: n
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
const Vs = /* @__PURE__ */ Us(pr.FunctionTranslate);
|
|
1310
|
+
function Us(e) {
|
|
1311
|
+
return (t) => je && je.emit(e, t);
|
|
1312
|
+
}
|
|
1313
|
+
const ne = {
|
|
1314
|
+
NOT_FOUND_KEY: 1,
|
|
1315
|
+
FALLBACK_TO_TRANSLATE: 2,
|
|
1316
|
+
CANNOT_FORMAT_NUMBER: 3,
|
|
1317
|
+
FALLBACK_TO_NUMBER_FORMAT: 4,
|
|
1318
|
+
CANNOT_FORMAT_DATE: 5,
|
|
1319
|
+
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1320
|
+
__EXTEND_POINT__: 7
|
|
1321
|
+
}, xs = {
|
|
1322
|
+
[ne.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1323
|
+
[ne.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1324
|
+
[ne.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
1325
|
+
[ne.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
1326
|
+
[ne.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
1327
|
+
[ne.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale."
|
|
1328
|
+
};
|
|
1329
|
+
function Re(e, ...t) {
|
|
1330
|
+
return vt(xs[e], ...t);
|
|
1331
|
+
}
|
|
1332
|
+
function Ws(e, t, n) {
|
|
1333
|
+
return [.../* @__PURE__ */ new Set([
|
|
1334
|
+
n,
|
|
1335
|
+
...j(t) ? t : x(t) ? Object.keys(t) : k(t) ? [t] : [n]
|
|
1336
|
+
])];
|
|
1337
|
+
}
|
|
1338
|
+
function Er(e, t, n) {
|
|
1339
|
+
const r = k(n) ? n : cn, a = e;
|
|
1340
|
+
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1341
|
+
let s = a.__localeChainCache.get(r);
|
|
1342
|
+
if (!s) {
|
|
1343
|
+
s = [];
|
|
1344
|
+
let l = [n];
|
|
1345
|
+
for (; j(l); )
|
|
1346
|
+
l = kn(s, l, t);
|
|
1347
|
+
const i = j(t) || !V(t) ? t : t.default ? t.default : null;
|
|
1348
|
+
l = k(i) ? [i] : i, j(l) && kn(s, l, !1), a.__localeChainCache.set(r, s);
|
|
1349
|
+
}
|
|
1350
|
+
return s;
|
|
1351
|
+
}
|
|
1352
|
+
function kn(e, t, n) {
|
|
1353
|
+
let r = !0;
|
|
1354
|
+
for (let a = 0; a < t.length && G(r); a++) {
|
|
1355
|
+
const s = t[a];
|
|
1356
|
+
k(s) && (r = Bs(e, t[a], n));
|
|
1357
|
+
}
|
|
1358
|
+
return r;
|
|
1359
|
+
}
|
|
1360
|
+
function Bs(e, t, n) {
|
|
1361
|
+
let r;
|
|
1362
|
+
const a = t.split("-");
|
|
1363
|
+
do {
|
|
1364
|
+
const s = a.join("-");
|
|
1365
|
+
r = Gs(e, s, n), a.splice(-1, 1);
|
|
1366
|
+
} while (a.length && r === !0);
|
|
1367
|
+
return r;
|
|
1368
|
+
}
|
|
1369
|
+
function Gs(e, t, n) {
|
|
1370
|
+
let r = !1;
|
|
1371
|
+
if (!e.includes(t) && (r = !0, t)) {
|
|
1372
|
+
r = t[t.length - 1] !== "!";
|
|
1373
|
+
const a = t.replace(/!/g, "");
|
|
1374
|
+
e.push(a), (j(n) || V(n)) && n[a] && (r = n[a]);
|
|
1375
|
+
}
|
|
1376
|
+
return r;
|
|
1377
|
+
}
|
|
1378
|
+
const js = "9.2.2", ht = -1, cn = "en-US", ft = "", Dn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1379
|
+
function zs() {
|
|
1380
|
+
return {
|
|
1381
|
+
upper: (e, t) => t === "text" && k(e) ? e.toUpperCase() : t === "vnode" && x(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1382
|
+
lower: (e, t) => t === "text" && k(e) ? e.toLowerCase() : t === "vnode" && x(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1383
|
+
capitalize: (e, t) => t === "text" && k(e) ? Dn(e) : t === "vnode" && x(e) && "__v_isVNode" in e ? Dn(e.children) : e
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
let hr;
|
|
1387
|
+
function Hs(e) {
|
|
1388
|
+
hr = e;
|
|
1389
|
+
}
|
|
1390
|
+
let Nr;
|
|
1391
|
+
function Ys(e) {
|
|
1392
|
+
Nr = e;
|
|
1393
|
+
}
|
|
1394
|
+
let yr;
|
|
1395
|
+
function Ks(e) {
|
|
1396
|
+
yr = e;
|
|
1397
|
+
}
|
|
1398
|
+
let br = null;
|
|
1399
|
+
const Pn = (e) => {
|
|
1400
|
+
br = e;
|
|
1401
|
+
}, Xs = () => br;
|
|
1402
|
+
let Tr = null;
|
|
1403
|
+
const wn = (e) => {
|
|
1404
|
+
Tr = e;
|
|
1405
|
+
}, qs = () => Tr;
|
|
1406
|
+
let Rn = 0;
|
|
1407
|
+
function Js(e = {}) {
|
|
1408
|
+
const t = k(e.version) ? e.version : js, n = k(e.locale) ? e.locale : cn, r = j(e.fallbackLocale) || V(e.fallbackLocale) || k(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, a = V(e.messages) ? e.messages : { [n]: {} }, s = V(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, l = V(e.numberFormats) ? e.numberFormats : { [n]: {} }, i = Y({}, e.modifiers || {}, zs()), o = e.pluralRules || {}, m = H(e.missing) ? e.missing : null, v = G(e.missingWarn) || ct(e.missingWarn) ? e.missingWarn : !0, _ = G(e.fallbackWarn) || ct(e.fallbackWarn) ? e.fallbackWarn : !0, f = !!e.fallbackFormat, b = !!e.unresolving, A = H(e.postTranslation) ? e.postTranslation : null, N = V(e.processor) ? e.processor : null, C = G(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, d = !!e.escapeParameter, h = H(e.messageCompiler) ? e.messageCompiler : hr, T = H(e.messageResolver) ? e.messageResolver : Nr || Ss, g = H(e.localeFallbacker) ? e.localeFallbacker : yr || Ws, p = x(e.fallbackContext) ? e.fallbackContext : void 0, S = H(e.onWarn) ? e.onWarn : qe, O = e, D = x(O.__datetimeFormatters) ? O.__datetimeFormatters : /* @__PURE__ */ new Map(), w = x(O.__numberFormatters) ? O.__numberFormatters : /* @__PURE__ */ new Map(), F = x(O.__meta) ? O.__meta : {};
|
|
1409
|
+
Rn++;
|
|
1410
|
+
const z = {
|
|
1411
|
+
version: t,
|
|
1412
|
+
cid: Rn,
|
|
1413
|
+
locale: n,
|
|
1414
|
+
fallbackLocale: r,
|
|
1415
|
+
messages: a,
|
|
1416
|
+
modifiers: i,
|
|
1417
|
+
pluralRules: o,
|
|
1418
|
+
missing: m,
|
|
1419
|
+
missingWarn: v,
|
|
1420
|
+
fallbackWarn: _,
|
|
1421
|
+
fallbackFormat: f,
|
|
1422
|
+
unresolving: b,
|
|
1423
|
+
postTranslation: A,
|
|
1424
|
+
processor: N,
|
|
1425
|
+
warnHtmlMessage: C,
|
|
1426
|
+
escapeParameter: d,
|
|
1427
|
+
messageCompiler: h,
|
|
1428
|
+
messageResolver: T,
|
|
1429
|
+
localeFallbacker: g,
|
|
1430
|
+
fallbackContext: p,
|
|
1431
|
+
onWarn: S,
|
|
1432
|
+
__meta: F
|
|
1433
|
+
};
|
|
1434
|
+
return z.datetimeFormats = s, z.numberFormats = l, z.__datetimeFormatters = D, z.__numberFormatters = w, process.env.NODE_ENV !== "production" && (z.__v_emitter = O.__v_emitter != null ? O.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Fs(z, t, F), z;
|
|
1435
|
+
}
|
|
1436
|
+
function Nt(e, t) {
|
|
1437
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
1438
|
+
}
|
|
1439
|
+
function Lr(e, t) {
|
|
1440
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
1441
|
+
}
|
|
1442
|
+
function fn(e, t, n, r, a) {
|
|
1443
|
+
const { missing: s, onWarn: l } = e;
|
|
1444
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1445
|
+
const i = e.__v_emitter;
|
|
1446
|
+
i && i.emit("missing", {
|
|
1447
|
+
locale: n,
|
|
1448
|
+
key: t,
|
|
1449
|
+
type: a,
|
|
1450
|
+
groupId: `${a}:${t}`
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
if (s !== null) {
|
|
1454
|
+
const i = s(e, n, t, a);
|
|
1455
|
+
return k(i) ? i : t;
|
|
1456
|
+
} else
|
|
1457
|
+
return process.env.NODE_ENV !== "production" && Lr(r, t) && l(Re(ne.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1458
|
+
}
|
|
1459
|
+
function We(e, t, n) {
|
|
1460
|
+
const r = e;
|
|
1461
|
+
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1462
|
+
}
|
|
1463
|
+
const Qs = /<\/?[\w\s="/.':;#-\/]+>/, Zs = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1464
|
+
function el(e, t) {
|
|
1465
|
+
(G(t.warnHtmlMessage) ? t.warnHtmlMessage : !0) && Qs.test(e) && qe(vt(Zs, { source: e }));
|
|
1466
|
+
}
|
|
1467
|
+
const tl = (e) => e;
|
|
1468
|
+
let $n = /* @__PURE__ */ Object.create(null);
|
|
1469
|
+
function nl(e, t = {}) {
|
|
1470
|
+
{
|
|
1471
|
+
process.env.NODE_ENV !== "production" && el(e, t);
|
|
1472
|
+
const r = (t.onCacheKey || tl)(e), a = $n[r];
|
|
1473
|
+
if (a)
|
|
1474
|
+
return a;
|
|
1475
|
+
let s = !1;
|
|
1476
|
+
const l = t.onError || Za;
|
|
1477
|
+
t.onError = (m) => {
|
|
1478
|
+
s = !0, l(m);
|
|
1479
|
+
};
|
|
1480
|
+
const { code: i } = hs(e, t), o = new Function(`return ${i}`)();
|
|
1481
|
+
return s ? o : $n[r] = o;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
let Cr = R.__EXTEND_POINT__;
|
|
1485
|
+
const Ut = () => ++Cr, ge = {
|
|
1486
|
+
INVALID_ARGUMENT: Cr,
|
|
1487
|
+
INVALID_DATE_ARGUMENT: Ut(),
|
|
1488
|
+
INVALID_ISO_DATE_ARGUMENT: Ut(),
|
|
1489
|
+
__EXTEND_POINT__: Ut()
|
|
1490
|
+
// 18
|
|
1491
|
+
};
|
|
1492
|
+
function De(e) {
|
|
1493
|
+
return Et(e, null, process.env.NODE_ENV !== "production" ? { messages: rl } : void 0);
|
|
1494
|
+
}
|
|
1495
|
+
const rl = {
|
|
1496
|
+
[ge.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1497
|
+
[ge.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1498
|
+
[ge.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
|
|
1499
|
+
}, Mn = () => "", fe = (e) => H(e);
|
|
1500
|
+
function Fn(e, ...t) {
|
|
1501
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: l, messages: i } = e, [o, m] = jt(...t), v = G(m.missingWarn) ? m.missingWarn : e.missingWarn, _ = G(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, f = G(m.escapeParameter) ? m.escapeParameter : e.escapeParameter, b = !!m.resolvedMessage, A = k(m.default) || G(m.default) ? G(m.default) ? s ? o : () => o : m.default : n ? s ? o : () => o : "", N = n || A !== "", C = k(m.locale) ? m.locale : e.locale;
|
|
1502
|
+
f && al(m);
|
|
1503
|
+
let [d, h, T] = b ? [
|
|
1504
|
+
o,
|
|
1505
|
+
C,
|
|
1506
|
+
i[C] || {}
|
|
1507
|
+
] : Sr(e, o, C, l, _, v), g = d, p = o;
|
|
1508
|
+
if (!b && !(k(g) || fe(g)) && N && (g = A, p = g), !b && (!(k(g) || fe(g)) || !k(h)))
|
|
1509
|
+
return a ? ht : o;
|
|
1510
|
+
if (process.env.NODE_ENV !== "production" && k(g) && e.messageCompiler == null)
|
|
1511
|
+
return qe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${o}'.`), o;
|
|
1512
|
+
let S = !1;
|
|
1513
|
+
const O = () => {
|
|
1514
|
+
S = !0;
|
|
1515
|
+
}, D = fe(g) ? g : Or(e, o, h, g, p, O);
|
|
1516
|
+
if (S)
|
|
1517
|
+
return g;
|
|
1518
|
+
const w = ol(e, h, T, m), F = $s(w), z = sl(e, D, F), oe = r ? r(z, o) : z;
|
|
1519
|
+
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1520
|
+
const ie = {
|
|
1521
|
+
timestamp: Date.now(),
|
|
1522
|
+
key: k(o) ? o : fe(g) ? g.key : "",
|
|
1523
|
+
locale: h || (fe(g) ? g.locale : ""),
|
|
1524
|
+
format: k(g) ? g : fe(g) ? g.source : "",
|
|
1525
|
+
message: oe
|
|
1526
|
+
};
|
|
1527
|
+
ie.meta = Y({}, e.__meta, Xs() || {}), Vs(ie);
|
|
1528
|
+
}
|
|
1529
|
+
return oe;
|
|
1530
|
+
}
|
|
1531
|
+
function al(e) {
|
|
1532
|
+
j(e.list) ? e.list = e.list.map((t) => k(t) ? Ln(t) : t) : x(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1533
|
+
k(e.named[t]) && (e.named[t] = Ln(e.named[t]));
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
function Sr(e, t, n, r, a, s) {
|
|
1537
|
+
const { messages: l, onWarn: i, messageResolver: o, localeFallbacker: m } = e, v = m(e, r, n);
|
|
1538
|
+
let _ = {}, f, b = null, A = n, N = null;
|
|
1539
|
+
const C = "translate";
|
|
1540
|
+
for (let d = 0; d < v.length; d++) {
|
|
1541
|
+
if (f = N = v[d], process.env.NODE_ENV !== "production" && n !== f && Nt(a, t) && i(Re(ne.FALLBACK_TO_TRANSLATE, {
|
|
1542
|
+
key: t,
|
|
1543
|
+
target: f
|
|
1544
|
+
})), process.env.NODE_ENV !== "production" && n !== f) {
|
|
1545
|
+
const S = e.__v_emitter;
|
|
1546
|
+
S && S.emit("fallback", {
|
|
1547
|
+
type: C,
|
|
1548
|
+
key: t,
|
|
1549
|
+
from: A,
|
|
1550
|
+
to: N,
|
|
1551
|
+
groupId: `${C}:${t}`
|
|
1552
|
+
});
|
|
1553
|
+
}
|
|
1554
|
+
_ = l[f] || {};
|
|
1555
|
+
let h = null, T, g;
|
|
1556
|
+
if (process.env.NODE_ENV !== "production" && ye && (h = window.performance.now(), T = "intlify-message-resolve-start", g = "intlify-message-resolve-end", ae && ae(T)), (b = o(_, t)) === null && (b = _[t]), process.env.NODE_ENV !== "production" && ye) {
|
|
1557
|
+
const S = window.performance.now(), O = e.__v_emitter;
|
|
1558
|
+
O && h && b && O.emit("message-resolve", {
|
|
1559
|
+
type: "message-resolve",
|
|
1560
|
+
key: t,
|
|
1561
|
+
message: b,
|
|
1562
|
+
time: S - h,
|
|
1563
|
+
groupId: `${C}:${t}`
|
|
1564
|
+
}), T && g && ae && Se && (ae(g), Se("intlify message resolve", T, g));
|
|
1565
|
+
}
|
|
1566
|
+
if (k(b) || H(b))
|
|
1567
|
+
break;
|
|
1568
|
+
const p = fn(
|
|
1569
|
+
e,
|
|
1570
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1571
|
+
t,
|
|
1572
|
+
f,
|
|
1573
|
+
s,
|
|
1574
|
+
C
|
|
1575
|
+
);
|
|
1576
|
+
p !== t && (b = p), A = N;
|
|
1577
|
+
}
|
|
1578
|
+
return [b, f, _];
|
|
1579
|
+
}
|
|
1580
|
+
function Or(e, t, n, r, a, s) {
|
|
1581
|
+
const { messageCompiler: l, warnHtmlMessage: i } = e;
|
|
1582
|
+
if (fe(r)) {
|
|
1583
|
+
const f = r;
|
|
1584
|
+
return f.locale = f.locale || n, f.key = f.key || t, f;
|
|
1585
|
+
}
|
|
1586
|
+
if (l == null) {
|
|
1587
|
+
const f = () => r;
|
|
1588
|
+
return f.locale = n, f.key = t, f;
|
|
1589
|
+
}
|
|
1590
|
+
let o = null, m, v;
|
|
1591
|
+
process.env.NODE_ENV !== "production" && ye && (o = window.performance.now(), m = "intlify-message-compilation-start", v = "intlify-message-compilation-end", ae && ae(m));
|
|
1592
|
+
const _ = l(r, ll(e, n, a, r, i, s));
|
|
1593
|
+
if (process.env.NODE_ENV !== "production" && ye) {
|
|
1594
|
+
const f = window.performance.now(), b = e.__v_emitter;
|
|
1595
|
+
b && o && b.emit("message-compilation", {
|
|
1596
|
+
type: "message-compilation",
|
|
1597
|
+
message: r,
|
|
1598
|
+
time: f - o,
|
|
1599
|
+
groupId: `translate:${t}`
|
|
1600
|
+
}), m && v && ae && Se && (ae(v), Se("intlify message compilation", m, v));
|
|
1601
|
+
}
|
|
1602
|
+
return _.locale = n, _.key = t, _.source = r, _;
|
|
1603
|
+
}
|
|
1604
|
+
function sl(e, t, n) {
|
|
1605
|
+
let r = null, a, s;
|
|
1606
|
+
process.env.NODE_ENV !== "production" && ye && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", ae && ae(a));
|
|
1607
|
+
const l = t(n);
|
|
1608
|
+
if (process.env.NODE_ENV !== "production" && ye) {
|
|
1609
|
+
const i = window.performance.now(), o = e.__v_emitter;
|
|
1610
|
+
o && r && o.emit("message-evaluation", {
|
|
1611
|
+
type: "message-evaluation",
|
|
1612
|
+
value: l,
|
|
1613
|
+
time: i - r,
|
|
1614
|
+
groupId: `translate:${t.key}`
|
|
1615
|
+
}), a && s && ae && Se && (ae(s), Se("intlify message evaluation", a, s));
|
|
1616
|
+
}
|
|
1617
|
+
return l;
|
|
1618
|
+
}
|
|
1619
|
+
function jt(...e) {
|
|
1620
|
+
const [t, n, r] = e, a = {};
|
|
1621
|
+
if (!k(t) && !X(t) && !fe(t))
|
|
1622
|
+
throw De(ge.INVALID_ARGUMENT);
|
|
1623
|
+
const s = X(t) ? String(t) : (fe(t), t);
|
|
1624
|
+
return X(n) ? a.plural = n : k(n) ? a.default = n : V(n) && !pt(n) ? a.named = n : j(n) && (a.list = n), X(r) ? a.plural = r : k(r) ? a.default = r : V(r) && Y(a, r), [s, a];
|
|
1625
|
+
}
|
|
1626
|
+
function ll(e, t, n, r, a, s) {
|
|
1627
|
+
return {
|
|
1628
|
+
warnHtmlMessage: a,
|
|
1629
|
+
onError: (l) => {
|
|
1630
|
+
if (s && s(l), process.env.NODE_ENV !== "production") {
|
|
1631
|
+
const i = `Message compilation error: ${l.message}`, o = l.location && qa(r, l.location.start.offset, l.location.end.offset), m = e.__v_emitter;
|
|
1632
|
+
m && m.emit("compile-error", {
|
|
1633
|
+
message: r,
|
|
1634
|
+
error: l.message,
|
|
1635
|
+
start: l.location && l.location.start.offset,
|
|
1636
|
+
end: l.location && l.location.end.offset,
|
|
1637
|
+
groupId: `translate:${n}`
|
|
1638
|
+
}), console.error(o ? `${i}
|
|
1639
|
+
${o}` : i);
|
|
1640
|
+
} else
|
|
1641
|
+
throw l;
|
|
1642
|
+
},
|
|
1643
|
+
onCacheKey: (l) => za(t, n, l)
|
|
1644
|
+
};
|
|
1645
|
+
}
|
|
1646
|
+
function ol(e, t, n, r) {
|
|
1647
|
+
const { modifiers: a, pluralRules: s, messageResolver: l, fallbackLocale: i, fallbackWarn: o, missingWarn: m, fallbackContext: v } = e, f = {
|
|
1648
|
+
locale: t,
|
|
1649
|
+
modifiers: a,
|
|
1650
|
+
pluralRules: s,
|
|
1651
|
+
messages: (b) => {
|
|
1652
|
+
let A = l(n, b);
|
|
1653
|
+
if (A == null && v) {
|
|
1654
|
+
const [, , N] = Sr(v, b, t, i, o, m);
|
|
1655
|
+
A = l(N, b);
|
|
1656
|
+
}
|
|
1657
|
+
if (k(A)) {
|
|
1658
|
+
let N = !1;
|
|
1659
|
+
const d = Or(e, b, t, A, b, () => {
|
|
1660
|
+
N = !0;
|
|
1661
|
+
});
|
|
1662
|
+
return N ? Mn : d;
|
|
1663
|
+
} else
|
|
1664
|
+
return fe(A) ? A : Mn;
|
|
1665
|
+
}
|
|
1666
|
+
};
|
|
1667
|
+
return e.processor && (f.processor = e.processor), r.list && (f.list = r.list), r.named && (f.named = r.named), X(r.plural) && (f.pluralIndex = r.plural), f;
|
|
1668
|
+
}
|
|
1669
|
+
const Vn = typeof Intl < "u", Ir = {
|
|
1670
|
+
dateTimeFormat: Vn && typeof Intl.DateTimeFormat < "u",
|
|
1671
|
+
numberFormat: Vn && typeof Intl.NumberFormat < "u"
|
|
1672
|
+
};
|
|
1673
|
+
function Un(e, ...t) {
|
|
1674
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: l } = e, { __datetimeFormatters: i } = e;
|
|
1675
|
+
if (process.env.NODE_ENV !== "production" && !Ir.dateTimeFormat)
|
|
1676
|
+
return s(Re(ne.CANNOT_FORMAT_DATE)), ft;
|
|
1677
|
+
const [o, m, v, _] = zt(...t), f = G(v.missingWarn) ? v.missingWarn : e.missingWarn, b = G(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, A = !!v.part, N = k(v.locale) ? v.locale : e.locale, C = l(
|
|
1678
|
+
e,
|
|
1679
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1680
|
+
a,
|
|
1681
|
+
N
|
|
1682
|
+
);
|
|
1683
|
+
if (!k(o) || o === "")
|
|
1684
|
+
return new Intl.DateTimeFormat(N, _).format(m);
|
|
1685
|
+
let d = {}, h, T = null, g = N, p = null;
|
|
1686
|
+
const S = "datetime format";
|
|
1687
|
+
for (let w = 0; w < C.length; w++) {
|
|
1688
|
+
if (h = p = C[w], process.env.NODE_ENV !== "production" && N !== h && Nt(b, o) && s(Re(ne.FALLBACK_TO_DATE_FORMAT, {
|
|
1689
|
+
key: o,
|
|
1690
|
+
target: h
|
|
1691
|
+
})), process.env.NODE_ENV !== "production" && N !== h) {
|
|
1692
|
+
const F = e.__v_emitter;
|
|
1693
|
+
F && F.emit("fallback", {
|
|
1694
|
+
type: S,
|
|
1695
|
+
key: o,
|
|
1696
|
+
from: g,
|
|
1697
|
+
to: p,
|
|
1698
|
+
groupId: `${S}:${o}`
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
if (d = n[h] || {}, T = d[o], V(T))
|
|
1702
|
+
break;
|
|
1703
|
+
fn(e, o, h, f, S), g = p;
|
|
1704
|
+
}
|
|
1705
|
+
if (!V(T) || !k(h))
|
|
1706
|
+
return r ? ht : o;
|
|
1707
|
+
let O = `${h}__${o}`;
|
|
1708
|
+
pt(_) || (O = `${O}__${JSON.stringify(_)}`);
|
|
1709
|
+
let D = i.get(O);
|
|
1710
|
+
return D || (D = new Intl.DateTimeFormat(h, Y({}, T, _)), i.set(O, D)), A ? D.formatToParts(m) : D.format(m);
|
|
1711
|
+
}
|
|
1712
|
+
const Ar = [
|
|
1713
|
+
"localeMatcher",
|
|
1714
|
+
"weekday",
|
|
1715
|
+
"era",
|
|
1716
|
+
"year",
|
|
1717
|
+
"month",
|
|
1718
|
+
"day",
|
|
1719
|
+
"hour",
|
|
1720
|
+
"minute",
|
|
1721
|
+
"second",
|
|
1722
|
+
"timeZoneName",
|
|
1723
|
+
"formatMatcher",
|
|
1724
|
+
"hour12",
|
|
1725
|
+
"timeZone",
|
|
1726
|
+
"dateStyle",
|
|
1727
|
+
"timeStyle",
|
|
1728
|
+
"calendar",
|
|
1729
|
+
"dayPeriod",
|
|
1730
|
+
"numberingSystem",
|
|
1731
|
+
"hourCycle",
|
|
1732
|
+
"fractionalSecondDigits"
|
|
1733
|
+
];
|
|
1734
|
+
function zt(...e) {
|
|
1735
|
+
const [t, n, r, a] = e, s = {};
|
|
1736
|
+
let l = {}, i;
|
|
1737
|
+
if (k(t)) {
|
|
1738
|
+
const o = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1739
|
+
if (!o)
|
|
1740
|
+
throw De(ge.INVALID_ISO_DATE_ARGUMENT);
|
|
1741
|
+
const m = o[3] ? o[3].trim().startsWith("T") ? `${o[1].trim()}${o[3].trim()}` : `${o[1].trim()}T${o[3].trim()}` : o[1].trim();
|
|
1742
|
+
i = new Date(m);
|
|
1743
|
+
try {
|
|
1744
|
+
i.toISOString();
|
|
1745
|
+
} catch {
|
|
1746
|
+
throw De(ge.INVALID_ISO_DATE_ARGUMENT);
|
|
1747
|
+
}
|
|
1748
|
+
} else if (Ya(t)) {
|
|
1749
|
+
if (isNaN(t.getTime()))
|
|
1750
|
+
throw De(ge.INVALID_DATE_ARGUMENT);
|
|
1751
|
+
i = t;
|
|
1752
|
+
} else if (X(t))
|
|
1753
|
+
i = t;
|
|
1754
|
+
else
|
|
1755
|
+
throw De(ge.INVALID_ARGUMENT);
|
|
1756
|
+
return k(n) ? s.key = n : V(n) && Object.keys(n).forEach((o) => {
|
|
1757
|
+
Ar.includes(o) ? l[o] = n[o] : s[o] = n[o];
|
|
1758
|
+
}), k(r) ? s.locale = r : V(r) && (l = r), V(a) && (l = a), [s.key || "", i, s, l];
|
|
1759
|
+
}
|
|
1760
|
+
function xn(e, t, n) {
|
|
1761
|
+
const r = e;
|
|
1762
|
+
for (const a in n) {
|
|
1763
|
+
const s = `${t}__${a}`;
|
|
1764
|
+
r.__datetimeFormatters.has(s) && r.__datetimeFormatters.delete(s);
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
function Wn(e, ...t) {
|
|
1768
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: l } = e, { __numberFormatters: i } = e;
|
|
1769
|
+
if (process.env.NODE_ENV !== "production" && !Ir.numberFormat)
|
|
1770
|
+
return s(Re(ne.CANNOT_FORMAT_NUMBER)), ft;
|
|
1771
|
+
const [o, m, v, _] = Ht(...t), f = G(v.missingWarn) ? v.missingWarn : e.missingWarn, b = G(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, A = !!v.part, N = k(v.locale) ? v.locale : e.locale, C = l(
|
|
1772
|
+
e,
|
|
1773
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1774
|
+
a,
|
|
1775
|
+
N
|
|
1776
|
+
);
|
|
1777
|
+
if (!k(o) || o === "")
|
|
1778
|
+
return new Intl.NumberFormat(N, _).format(m);
|
|
1779
|
+
let d = {}, h, T = null, g = N, p = null;
|
|
1780
|
+
const S = "number format";
|
|
1781
|
+
for (let w = 0; w < C.length; w++) {
|
|
1782
|
+
if (h = p = C[w], process.env.NODE_ENV !== "production" && N !== h && Nt(b, o) && s(Re(ne.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1783
|
+
key: o,
|
|
1784
|
+
target: h
|
|
1785
|
+
})), process.env.NODE_ENV !== "production" && N !== h) {
|
|
1786
|
+
const F = e.__v_emitter;
|
|
1787
|
+
F && F.emit("fallback", {
|
|
1788
|
+
type: S,
|
|
1789
|
+
key: o,
|
|
1790
|
+
from: g,
|
|
1791
|
+
to: p,
|
|
1792
|
+
groupId: `${S}:${o}`
|
|
1793
|
+
});
|
|
1794
|
+
}
|
|
1795
|
+
if (d = n[h] || {}, T = d[o], V(T))
|
|
1796
|
+
break;
|
|
1797
|
+
fn(e, o, h, f, S), g = p;
|
|
1798
|
+
}
|
|
1799
|
+
if (!V(T) || !k(h))
|
|
1800
|
+
return r ? ht : o;
|
|
1801
|
+
let O = `${h}__${o}`;
|
|
1802
|
+
pt(_) || (O = `${O}__${JSON.stringify(_)}`);
|
|
1803
|
+
let D = i.get(O);
|
|
1804
|
+
return D || (D = new Intl.NumberFormat(h, Y({}, T, _)), i.set(O, D)), A ? D.formatToParts(m) : D.format(m);
|
|
1805
|
+
}
|
|
1806
|
+
const kr = [
|
|
1807
|
+
"localeMatcher",
|
|
1808
|
+
"style",
|
|
1809
|
+
"currency",
|
|
1810
|
+
"currencyDisplay",
|
|
1811
|
+
"currencySign",
|
|
1812
|
+
"useGrouping",
|
|
1813
|
+
"minimumIntegerDigits",
|
|
1814
|
+
"minimumFractionDigits",
|
|
1815
|
+
"maximumFractionDigits",
|
|
1816
|
+
"minimumSignificantDigits",
|
|
1817
|
+
"maximumSignificantDigits",
|
|
1818
|
+
"compactDisplay",
|
|
1819
|
+
"notation",
|
|
1820
|
+
"signDisplay",
|
|
1821
|
+
"unit",
|
|
1822
|
+
"unitDisplay",
|
|
1823
|
+
"roundingMode",
|
|
1824
|
+
"roundingPriority",
|
|
1825
|
+
"roundingIncrement",
|
|
1826
|
+
"trailingZeroDisplay"
|
|
1827
|
+
];
|
|
1828
|
+
function Ht(...e) {
|
|
1829
|
+
const [t, n, r, a] = e, s = {};
|
|
1830
|
+
let l = {};
|
|
1831
|
+
if (!X(t))
|
|
1832
|
+
throw De(ge.INVALID_ARGUMENT);
|
|
1833
|
+
const i = t;
|
|
1834
|
+
return k(n) ? s.key = n : V(n) && Object.keys(n).forEach((o) => {
|
|
1835
|
+
kr.includes(o) ? l[o] = n[o] : s[o] = n[o];
|
|
1836
|
+
}), k(r) ? s.locale = r : V(r) && (l = r), V(a) && (l = a), [s.key || "", i, s, l];
|
|
1837
|
+
}
|
|
1838
|
+
function Bn(e, t, n) {
|
|
1839
|
+
const r = e;
|
|
1840
|
+
for (const a in n) {
|
|
1841
|
+
const s = `${t}__${a}`;
|
|
1842
|
+
r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (sn().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1846
|
+
/*!
|
|
1847
|
+
* vue-i18n v9.2.2
|
|
1848
|
+
* (c) 2022 kazuya kawaguchi
|
|
1849
|
+
* Released under the MIT License.
|
|
1850
|
+
*/
|
|
1851
|
+
const il = "9.2.2";
|
|
1852
|
+
function ul() {
|
|
1853
|
+
let e = !1;
|
|
1854
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (sn().__INTLIFY_PROD_DEVTOOLS__ = !1), process.env.NODE_ENV !== "production" && e && console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.");
|
|
1855
|
+
}
|
|
1856
|
+
let Dr = ne.__EXTEND_POINT__;
|
|
1857
|
+
const ke = () => ++Dr, _e = {
|
|
1858
|
+
FALLBACK_TO_ROOT: Dr,
|
|
1859
|
+
NOT_SUPPORTED_PRESERVE: ke(),
|
|
1860
|
+
NOT_SUPPORTED_FORMATTER: ke(),
|
|
1861
|
+
NOT_SUPPORTED_PRESERVE_DIRECTIVE: ke(),
|
|
1862
|
+
NOT_SUPPORTED_GET_CHOICE_INDEX: ke(),
|
|
1863
|
+
COMPONENT_NAME_LEGACY_COMPATIBLE: ke(),
|
|
1864
|
+
NOT_FOUND_PARENT_SCOPE: ke()
|
|
1865
|
+
// 13
|
|
1866
|
+
}, cl = {
|
|
1867
|
+
[_e.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
1868
|
+
[_e.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
|
|
1869
|
+
[_e.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
|
|
1870
|
+
[_e.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
|
|
1871
|
+
[_e.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
|
|
1872
|
+
[_e.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
|
|
1873
|
+
[_e.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope."
|
|
1874
|
+
};
|
|
1875
|
+
function Pr(e, ...t) {
|
|
1876
|
+
return vt(cl[e], ...t);
|
|
1877
|
+
}
|
|
1878
|
+
let wr = R.__EXTEND_POINT__;
|
|
1879
|
+
const Z = () => ++wr, W = {
|
|
1880
|
+
// composer module errors
|
|
1881
|
+
UNEXPECTED_RETURN_TYPE: wr,
|
|
1882
|
+
// legacy module errors
|
|
1883
|
+
INVALID_ARGUMENT: Z(),
|
|
1884
|
+
// i18n module errors
|
|
1885
|
+
MUST_BE_CALL_SETUP_TOP: Z(),
|
|
1886
|
+
NOT_INSLALLED: Z(),
|
|
1887
|
+
NOT_AVAILABLE_IN_LEGACY_MODE: Z(),
|
|
1888
|
+
// directive module errors
|
|
1889
|
+
REQUIRED_VALUE: Z(),
|
|
1890
|
+
INVALID_VALUE: Z(),
|
|
1891
|
+
// vue-devtools errors
|
|
1892
|
+
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: Z(),
|
|
1893
|
+
NOT_INSLALLED_WITH_PROVIDE: Z(),
|
|
1894
|
+
// unexpected error
|
|
1895
|
+
UNEXPECTED_ERROR: Z(),
|
|
1896
|
+
// not compatible legacy vue-i18n constructor
|
|
1897
|
+
NOT_COMPATIBLE_LEGACY_VUE_I18N: Z(),
|
|
1898
|
+
// bridge support vue 2.x only
|
|
1899
|
+
BRIDGE_SUPPORT_VUE_2_ONLY: Z(),
|
|
1900
|
+
// need to define `i18n` option in `allowComposition: true` and `useScope: 'local' at `useI18n``
|
|
1901
|
+
MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: Z(),
|
|
1902
|
+
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
|
1903
|
+
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: Z(),
|
|
1904
|
+
// for enhancement
|
|
1905
|
+
__EXTEND_POINT__: Z()
|
|
1906
|
+
// 29
|
|
1907
|
+
};
|
|
1908
|
+
function $e(e, ...t) {
|
|
1909
|
+
return Et(e, null, process.env.NODE_ENV !== "production" ? { messages: fl, args: t } : void 0);
|
|
1910
|
+
}
|
|
1911
|
+
const fl = {
|
|
1912
|
+
[W.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
1913
|
+
[W.INVALID_ARGUMENT]: "Invalid argument",
|
|
1914
|
+
[W.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
1915
|
+
[W.NOT_INSLALLED]: "Need to install with `app.use` function",
|
|
1916
|
+
[W.UNEXPECTED_ERROR]: "Unexpected error",
|
|
1917
|
+
[W.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
|
|
1918
|
+
[W.REQUIRED_VALUE]: "Required in value: {0}",
|
|
1919
|
+
[W.INVALID_VALUE]: "Invalid value",
|
|
1920
|
+
[W.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
1921
|
+
[W.NOT_INSLALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
1922
|
+
[W.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
1923
|
+
[W.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
|
1924
|
+
[W.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",
|
|
1925
|
+
[W.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
1926
|
+
}, Yt = /* @__PURE__ */ ve("__transrateVNode"), Kt = /* @__PURE__ */ ve("__datetimeParts"), Xt = /* @__PURE__ */ ve("__numberParts"), qt = /* @__PURE__ */ ve("__enableEmitter"), Jt = /* @__PURE__ */ ve("__disableEmitter"), dl = ve("__setPluralRules");
|
|
1927
|
+
ve("__intlifyMeta");
|
|
1928
|
+
const ml = /* @__PURE__ */ ve("__injectWithOption");
|
|
1929
|
+
function Qt(e) {
|
|
1930
|
+
if (!x(e))
|
|
1931
|
+
return e;
|
|
1932
|
+
for (const t in e)
|
|
1933
|
+
if (ln(e, t))
|
|
1934
|
+
if (!t.includes("."))
|
|
1935
|
+
x(e[t]) && Qt(e[t]);
|
|
1936
|
+
else {
|
|
1937
|
+
const n = t.split("."), r = n.length - 1;
|
|
1938
|
+
let a = e;
|
|
1939
|
+
for (let s = 0; s < r; s++)
|
|
1940
|
+
n[s] in a || (a[n[s]] = {}), a = a[n[s]];
|
|
1941
|
+
a[n[r]] = e[t], delete e[t], x(a[n[r]]) && Qt(a[n[r]]);
|
|
1942
|
+
}
|
|
1943
|
+
return e;
|
|
1944
|
+
}
|
|
1945
|
+
function Rr(e, t) {
|
|
1946
|
+
const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, l = V(n) ? n : j(r) ? {} : { [e]: {} };
|
|
1947
|
+
if (j(r) && r.forEach((i) => {
|
|
1948
|
+
if ("locale" in i && "resource" in i) {
|
|
1949
|
+
const { locale: o, resource: m } = i;
|
|
1950
|
+
o ? (l[o] = l[o] || {}, Ge(m, l[o])) : Ge(m, l);
|
|
1951
|
+
} else
|
|
1952
|
+
k(i) && Ge(JSON.parse(i), l);
|
|
1953
|
+
}), a == null && s)
|
|
1954
|
+
for (const i in l)
|
|
1955
|
+
ln(l, i) && Qt(l[i]);
|
|
1956
|
+
return l;
|
|
1957
|
+
}
|
|
1958
|
+
const nt = (e) => !x(e) || j(e);
|
|
1959
|
+
function Ge(e, t) {
|
|
1960
|
+
if (nt(e) || nt(t))
|
|
1961
|
+
throw $e(W.INVALID_VALUE);
|
|
1962
|
+
for (const n in e)
|
|
1963
|
+
ln(e, n) && (nt(e[n]) || nt(t[n]) ? t[n] = e[n] : Ge(e[n], t[n]));
|
|
1964
|
+
}
|
|
1965
|
+
function $r(e) {
|
|
1966
|
+
return e.type;
|
|
1967
|
+
}
|
|
1968
|
+
function _l(e, t, n) {
|
|
1969
|
+
let r = x(t.messages) ? t.messages : {};
|
|
1970
|
+
"__i18nGlobal" in n && (r = Rr(e.locale.value, {
|
|
1971
|
+
messages: r,
|
|
1972
|
+
__i18n: n.__i18nGlobal
|
|
1973
|
+
}));
|
|
1974
|
+
const a = Object.keys(r);
|
|
1975
|
+
a.length && a.forEach((s) => {
|
|
1976
|
+
e.mergeLocaleMessage(s, r[s]);
|
|
1977
|
+
});
|
|
1978
|
+
{
|
|
1979
|
+
if (x(t.datetimeFormats)) {
|
|
1980
|
+
const s = Object.keys(t.datetimeFormats);
|
|
1981
|
+
s.length && s.forEach((l) => {
|
|
1982
|
+
e.mergeDateTimeFormat(l, t.datetimeFormats[l]);
|
|
1983
|
+
});
|
|
1984
|
+
}
|
|
1985
|
+
if (x(t.numberFormats)) {
|
|
1986
|
+
const s = Object.keys(t.numberFormats);
|
|
1987
|
+
s.length && s.forEach((l) => {
|
|
1988
|
+
e.mergeNumberFormat(l, t.numberFormats[l]);
|
|
1989
|
+
});
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
function Gn(e) {
|
|
1994
|
+
return P(lr, null, e, 0);
|
|
1995
|
+
}
|
|
1996
|
+
const jn = "__INTLIFY_META__";
|
|
1997
|
+
let zn = 0;
|
|
1998
|
+
function Hn(e) {
|
|
1999
|
+
return (t, n, r, a) => e(n, r, Ye() || void 0, a);
|
|
2000
|
+
}
|
|
2001
|
+
const gl = () => {
|
|
2002
|
+
const e = Ye();
|
|
2003
|
+
let t = null;
|
|
2004
|
+
return e && (t = $r(e)[jn]) ? { [jn]: t } : null;
|
|
2005
|
+
};
|
|
2006
|
+
function vl(e = {}, t) {
|
|
2007
|
+
const { __root: n } = e, r = n === void 0;
|
|
2008
|
+
let a = G(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2009
|
+
const s = te(
|
|
2010
|
+
// prettier-ignore
|
|
2011
|
+
n && a ? n.locale.value : k(e.locale) ? e.locale : cn
|
|
2012
|
+
), l = te(
|
|
2013
|
+
// prettier-ignore
|
|
2014
|
+
n && a ? n.fallbackLocale.value : k(e.fallbackLocale) || j(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s.value
|
|
2015
|
+
), i = te(Rr(s.value, e)), o = te(V(e.datetimeFormats) ? e.datetimeFormats : { [s.value]: {} }), m = te(V(e.numberFormats) ? e.numberFormats : { [s.value]: {} });
|
|
2016
|
+
let v = n ? n.missingWarn : G(e.missingWarn) || ct(e.missingWarn) ? e.missingWarn : !0, _ = n ? n.fallbackWarn : G(e.fallbackWarn) || ct(e.fallbackWarn) ? e.fallbackWarn : !0, f = n ? n.fallbackRoot : G(e.fallbackRoot) ? e.fallbackRoot : !0, b = !!e.fallbackFormat, A = H(e.missing) ? e.missing : null, N = H(e.missing) ? Hn(e.missing) : null, C = H(e.postTranslation) ? e.postTranslation : null, d = n ? n.warnHtmlMessage : G(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter;
|
|
2017
|
+
const T = n ? n.modifiers : V(e.modifiers) ? e.modifiers : {};
|
|
2018
|
+
let g = e.pluralRules || n && n.pluralRules, p;
|
|
2019
|
+
p = (() => {
|
|
2020
|
+
r && wn(null);
|
|
2021
|
+
const E = {
|
|
2022
|
+
version: il,
|
|
2023
|
+
locale: s.value,
|
|
2024
|
+
fallbackLocale: l.value,
|
|
2025
|
+
messages: i.value,
|
|
2026
|
+
modifiers: T,
|
|
2027
|
+
pluralRules: g,
|
|
2028
|
+
missing: N === null ? void 0 : N,
|
|
2029
|
+
missingWarn: v,
|
|
2030
|
+
fallbackWarn: _,
|
|
2031
|
+
fallbackFormat: b,
|
|
2032
|
+
unresolving: !0,
|
|
2033
|
+
postTranslation: C === null ? void 0 : C,
|
|
2034
|
+
warnHtmlMessage: d,
|
|
2035
|
+
escapeParameter: h,
|
|
2036
|
+
messageResolver: e.messageResolver,
|
|
2037
|
+
__meta: { framework: "vue" }
|
|
2038
|
+
};
|
|
2039
|
+
E.datetimeFormats = o.value, E.numberFormats = m.value, E.__datetimeFormatters = V(p) ? p.__datetimeFormatters : void 0, E.__numberFormatters = V(p) ? p.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (E.__v_emitter = V(p) ? p.__v_emitter : void 0);
|
|
2040
|
+
const L = Js(E);
|
|
2041
|
+
return r && wn(L), L;
|
|
2042
|
+
})(), We(p, s.value, l.value);
|
|
2043
|
+
function O() {
|
|
2044
|
+
return [
|
|
2045
|
+
s.value,
|
|
2046
|
+
l.value,
|
|
2047
|
+
i.value,
|
|
2048
|
+
o.value,
|
|
2049
|
+
m.value
|
|
2050
|
+
];
|
|
2051
|
+
}
|
|
2052
|
+
const D = M({
|
|
2053
|
+
get: () => s.value,
|
|
2054
|
+
set: (E) => {
|
|
2055
|
+
s.value = E, p.locale = s.value;
|
|
2056
|
+
}
|
|
2057
|
+
}), w = M({
|
|
2058
|
+
get: () => l.value,
|
|
2059
|
+
set: (E) => {
|
|
2060
|
+
l.value = E, p.fallbackLocale = l.value, We(p, s.value, E);
|
|
2061
|
+
}
|
|
2062
|
+
}), F = M(() => i.value), z = /* @__PURE__ */ M(() => o.value), oe = /* @__PURE__ */ M(() => m.value);
|
|
2063
|
+
function ie() {
|
|
2064
|
+
return H(C) ? C : null;
|
|
2065
|
+
}
|
|
2066
|
+
function Ze(E) {
|
|
2067
|
+
C = E, p.postTranslation = E;
|
|
2068
|
+
}
|
|
2069
|
+
function Ot() {
|
|
2070
|
+
return A;
|
|
2071
|
+
}
|
|
2072
|
+
function It(E) {
|
|
2073
|
+
E !== null && (N = Hn(E)), A = E, p.missing = N;
|
|
2074
|
+
}
|
|
2075
|
+
function et(E, L) {
|
|
2076
|
+
return E !== "translate" || !L.resolvedMessage;
|
|
2077
|
+
}
|
|
2078
|
+
const pe = (E, L, Q, q, Vt, tt) => {
|
|
2079
|
+
O();
|
|
2080
|
+
let Ae;
|
|
2081
|
+
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
|
2082
|
+
try {
|
|
2083
|
+
Pn(gl()), r || (p.fallbackContext = n ? qs() : void 0), Ae = E(p);
|
|
2084
|
+
} finally {
|
|
2085
|
+
Pn(null), r || (p.fallbackContext = void 0);
|
|
2086
|
+
}
|
|
2087
|
+
else
|
|
2088
|
+
Ae = E(p);
|
|
2089
|
+
if (X(Ae) && Ae === ht) {
|
|
2090
|
+
const [Le, Oa] = L();
|
|
2091
|
+
if (process.env.NODE_ENV !== "production" && n && k(Le) && et(Q, Oa) && (f && (Nt(_, Le) || Lr(v, Le)) && qe(Pr(_e.FALLBACK_TO_ROOT, {
|
|
2092
|
+
key: Le,
|
|
2093
|
+
type: Q
|
|
2094
|
+
})), process.env.NODE_ENV !== "production")) {
|
|
2095
|
+
const { __v_emitter: bn } = p;
|
|
2096
|
+
bn && f && bn.emit("fallback", {
|
|
2097
|
+
type: Q,
|
|
2098
|
+
key: Le,
|
|
2099
|
+
to: "global",
|
|
2100
|
+
groupId: `${Q}:${Le}`
|
|
2101
|
+
});
|
|
2102
|
+
}
|
|
2103
|
+
return n && f ? q(n) : Vt(Le);
|
|
2104
|
+
} else {
|
|
2105
|
+
if (tt(Ae))
|
|
2106
|
+
return Ae;
|
|
2107
|
+
throw $e(W.UNEXPECTED_RETURN_TYPE);
|
|
2108
|
+
}
|
|
2109
|
+
};
|
|
2110
|
+
function Fe(...E) {
|
|
2111
|
+
return pe((L) => Reflect.apply(Fn, null, [L, ...E]), () => jt(...E), "translate", (L) => Reflect.apply(L.t, L, [...E]), (L) => L, (L) => k(L));
|
|
2112
|
+
}
|
|
2113
|
+
function At(...E) {
|
|
2114
|
+
const [L, Q, q] = E;
|
|
2115
|
+
if (q && !x(q))
|
|
2116
|
+
throw $e(W.INVALID_ARGUMENT);
|
|
2117
|
+
return Fe(L, Q, Y({ resolvedMessage: !0 }, q || {}));
|
|
2118
|
+
}
|
|
2119
|
+
function kt(...E) {
|
|
2120
|
+
return pe((L) => Reflect.apply(Un, null, [L, ...E]), () => zt(...E), "datetime format", (L) => Reflect.apply(L.d, L, [...E]), () => ft, (L) => k(L));
|
|
2121
|
+
}
|
|
2122
|
+
function Dt(...E) {
|
|
2123
|
+
return pe((L) => Reflect.apply(Wn, null, [L, ...E]), () => Ht(...E), "number format", (L) => Reflect.apply(L.n, L, [...E]), () => ft, (L) => k(L));
|
|
2124
|
+
}
|
|
2125
|
+
function Pt(E) {
|
|
2126
|
+
return E.map((L) => k(L) || X(L) || G(L) ? Gn(String(L)) : L);
|
|
2127
|
+
}
|
|
2128
|
+
const Rt = {
|
|
2129
|
+
normalize: Pt,
|
|
2130
|
+
interpolate: (E) => E,
|
|
2131
|
+
type: "vnode"
|
|
2132
|
+
};
|
|
2133
|
+
function $t(...E) {
|
|
2134
|
+
return pe(
|
|
2135
|
+
(L) => {
|
|
2136
|
+
let Q;
|
|
2137
|
+
const q = L;
|
|
2138
|
+
try {
|
|
2139
|
+
q.processor = Rt, Q = Reflect.apply(Fn, null, [q, ...E]);
|
|
2140
|
+
} finally {
|
|
2141
|
+
q.processor = null;
|
|
2142
|
+
}
|
|
2143
|
+
return Q;
|
|
2144
|
+
},
|
|
2145
|
+
() => jt(...E),
|
|
2146
|
+
"translate",
|
|
2147
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2148
|
+
(L) => L[Yt](...E),
|
|
2149
|
+
(L) => [Gn(L)],
|
|
2150
|
+
(L) => j(L)
|
|
2151
|
+
);
|
|
2152
|
+
}
|
|
2153
|
+
function Mt(...E) {
|
|
2154
|
+
return pe(
|
|
2155
|
+
(L) => Reflect.apply(Wn, null, [L, ...E]),
|
|
2156
|
+
() => Ht(...E),
|
|
2157
|
+
"number format",
|
|
2158
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2159
|
+
(L) => L[Xt](...E),
|
|
2160
|
+
() => [],
|
|
2161
|
+
(L) => k(L) || j(L)
|
|
2162
|
+
);
|
|
2163
|
+
}
|
|
2164
|
+
function Ve(...E) {
|
|
2165
|
+
return pe(
|
|
2166
|
+
(L) => Reflect.apply(Un, null, [L, ...E]),
|
|
2167
|
+
() => zt(...E),
|
|
2168
|
+
"datetime format",
|
|
2169
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2170
|
+
(L) => L[Kt](...E),
|
|
2171
|
+
() => [],
|
|
2172
|
+
(L) => k(L) || j(L)
|
|
2173
|
+
);
|
|
2174
|
+
}
|
|
2175
|
+
function Ue(E) {
|
|
2176
|
+
g = E, p.pluralRules = g;
|
|
2177
|
+
}
|
|
2178
|
+
function Ie(E, L) {
|
|
2179
|
+
const Q = k(L) ? L : s.value, q = u(Q);
|
|
2180
|
+
return p.messageResolver(q, E) !== null;
|
|
2181
|
+
}
|
|
2182
|
+
function xe(E) {
|
|
2183
|
+
let L = null;
|
|
2184
|
+
const Q = Er(p, l.value, s.value);
|
|
2185
|
+
for (let q = 0; q < Q.length; q++) {
|
|
2186
|
+
const Vt = i.value[Q[q]] || {}, tt = p.messageResolver(Vt, E);
|
|
2187
|
+
if (tt != null) {
|
|
2188
|
+
L = tt;
|
|
2189
|
+
break;
|
|
2190
|
+
}
|
|
2191
|
+
}
|
|
2192
|
+
return L;
|
|
2193
|
+
}
|
|
2194
|
+
function Ft(E) {
|
|
2195
|
+
const L = xe(E);
|
|
2196
|
+
return L ?? (n ? n.tm(E) || {} : {});
|
|
2197
|
+
}
|
|
2198
|
+
function u(E) {
|
|
2199
|
+
return i.value[E] || {};
|
|
2200
|
+
}
|
|
2201
|
+
function c(E, L) {
|
|
2202
|
+
i.value[E] = L, p.messages = i.value;
|
|
2203
|
+
}
|
|
2204
|
+
function y(E, L) {
|
|
2205
|
+
i.value[E] = i.value[E] || {}, Ge(L, i.value[E]), p.messages = i.value;
|
|
2206
|
+
}
|
|
2207
|
+
function I(E) {
|
|
2208
|
+
return o.value[E] || {};
|
|
2209
|
+
}
|
|
2210
|
+
function $(E, L) {
|
|
2211
|
+
o.value[E] = L, p.datetimeFormats = o.value, xn(p, E, L);
|
|
2212
|
+
}
|
|
2213
|
+
function U(E, L) {
|
|
2214
|
+
o.value[E] = Y(o.value[E] || {}, L), p.datetimeFormats = o.value, xn(p, E, L);
|
|
2215
|
+
}
|
|
2216
|
+
function ue(E) {
|
|
2217
|
+
return m.value[E] || {};
|
|
2218
|
+
}
|
|
2219
|
+
function de(E, L) {
|
|
2220
|
+
m.value[E] = L, p.numberFormats = m.value, Bn(p, E, L);
|
|
2221
|
+
}
|
|
2222
|
+
function Sa(E, L) {
|
|
2223
|
+
m.value[E] = Y(m.value[E] || {}, L), p.numberFormats = m.value, Bn(p, E, L);
|
|
2224
|
+
}
|
|
2225
|
+
zn++, n && ye && (he(n.locale, (E) => {
|
|
2226
|
+
a && (s.value = E, p.locale = E, We(p, s.value, l.value));
|
|
2227
|
+
}), he(n.fallbackLocale, (E) => {
|
|
2228
|
+
a && (l.value = E, p.fallbackLocale = E, We(p, s.value, l.value));
|
|
2229
|
+
}));
|
|
2230
|
+
const B = {
|
|
2231
|
+
id: zn,
|
|
2232
|
+
locale: D,
|
|
2233
|
+
fallbackLocale: w,
|
|
2234
|
+
get inheritLocale() {
|
|
2235
|
+
return a;
|
|
2236
|
+
},
|
|
2237
|
+
set inheritLocale(E) {
|
|
2238
|
+
a = E, E && n && (s.value = n.locale.value, l.value = n.fallbackLocale.value, We(p, s.value, l.value));
|
|
2239
|
+
},
|
|
2240
|
+
get availableLocales() {
|
|
2241
|
+
return Object.keys(i.value).sort();
|
|
2242
|
+
},
|
|
2243
|
+
messages: F,
|
|
2244
|
+
get modifiers() {
|
|
2245
|
+
return T;
|
|
2246
|
+
},
|
|
2247
|
+
get pluralRules() {
|
|
2248
|
+
return g || {};
|
|
2249
|
+
},
|
|
2250
|
+
get isGlobal() {
|
|
2251
|
+
return r;
|
|
2252
|
+
},
|
|
2253
|
+
get missingWarn() {
|
|
2254
|
+
return v;
|
|
2255
|
+
},
|
|
2256
|
+
set missingWarn(E) {
|
|
2257
|
+
v = E, p.missingWarn = v;
|
|
2258
|
+
},
|
|
2259
|
+
get fallbackWarn() {
|
|
2260
|
+
return _;
|
|
2261
|
+
},
|
|
2262
|
+
set fallbackWarn(E) {
|
|
2263
|
+
_ = E, p.fallbackWarn = _;
|
|
2264
|
+
},
|
|
2265
|
+
get fallbackRoot() {
|
|
2266
|
+
return f;
|
|
2267
|
+
},
|
|
2268
|
+
set fallbackRoot(E) {
|
|
2269
|
+
f = E;
|
|
2270
|
+
},
|
|
2271
|
+
get fallbackFormat() {
|
|
2272
|
+
return b;
|
|
2273
|
+
},
|
|
2274
|
+
set fallbackFormat(E) {
|
|
2275
|
+
b = E, p.fallbackFormat = b;
|
|
2276
|
+
},
|
|
2277
|
+
get warnHtmlMessage() {
|
|
2278
|
+
return d;
|
|
2279
|
+
},
|
|
2280
|
+
set warnHtmlMessage(E) {
|
|
2281
|
+
d = E, p.warnHtmlMessage = E;
|
|
2282
|
+
},
|
|
2283
|
+
get escapeParameter() {
|
|
2284
|
+
return h;
|
|
2285
|
+
},
|
|
2286
|
+
set escapeParameter(E) {
|
|
2287
|
+
h = E, p.escapeParameter = E;
|
|
2288
|
+
},
|
|
2289
|
+
t: Fe,
|
|
2290
|
+
getLocaleMessage: u,
|
|
2291
|
+
setLocaleMessage: c,
|
|
2292
|
+
mergeLocaleMessage: y,
|
|
2293
|
+
getPostTranslationHandler: ie,
|
|
2294
|
+
setPostTranslationHandler: Ze,
|
|
2295
|
+
getMissingHandler: Ot,
|
|
2296
|
+
setMissingHandler: It,
|
|
2297
|
+
[dl]: Ue
|
|
2298
|
+
};
|
|
2299
|
+
return B.datetimeFormats = z, B.numberFormats = oe, B.rt = At, B.te = Ie, B.tm = Ft, B.d = kt, B.n = Dt, B.getDateTimeFormat = I, B.setDateTimeFormat = $, B.mergeDateTimeFormat = U, B.getNumberFormat = ue, B.setNumberFormat = de, B.mergeNumberFormat = Sa, B[ml] = e.__injectWithOption, B[Yt] = $t, B[Kt] = Ve, B[Xt] = Mt, process.env.NODE_ENV !== "production" && (B[qt] = (E) => {
|
|
2300
|
+
p.__v_emitter = E;
|
|
2301
|
+
}, B[Jt] = () => {
|
|
2302
|
+
p.__v_emitter = void 0;
|
|
2303
|
+
}), B;
|
|
2304
|
+
}
|
|
2305
|
+
const dn = {
|
|
2306
|
+
tag: {
|
|
2307
|
+
type: [String, Object]
|
|
2308
|
+
},
|
|
2309
|
+
locale: {
|
|
2310
|
+
type: String
|
|
2311
|
+
},
|
|
2312
|
+
scope: {
|
|
2313
|
+
type: String,
|
|
2314
|
+
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
|
|
2315
|
+
validator: (e) => e === "parent" || e === "global",
|
|
2316
|
+
default: "parent"
|
|
2317
|
+
/* ComponetI18nScope */
|
|
2318
|
+
},
|
|
2319
|
+
i18n: {
|
|
2320
|
+
type: Object
|
|
2321
|
+
}
|
|
2322
|
+
};
|
|
2323
|
+
function pl({ slots: e }, t) {
|
|
2324
|
+
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => r = [
|
|
2325
|
+
...r,
|
|
2326
|
+
...j(a.children) ? a.children : [a]
|
|
2327
|
+
], []) : t.reduce((n, r) => {
|
|
2328
|
+
const a = e[r];
|
|
2329
|
+
return a && (n[r] = a()), n;
|
|
2330
|
+
}, {});
|
|
2331
|
+
}
|
|
2332
|
+
function Mr(e) {
|
|
2333
|
+
return nn;
|
|
2334
|
+
}
|
|
2335
|
+
Y({
|
|
2336
|
+
keypath: {
|
|
2337
|
+
type: String,
|
|
2338
|
+
required: !0
|
|
2339
|
+
},
|
|
2340
|
+
plural: {
|
|
2341
|
+
type: [Number, String],
|
|
2342
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2343
|
+
validator: (e) => X(e) || !isNaN(e)
|
|
2344
|
+
}
|
|
2345
|
+
}, dn);
|
|
2346
|
+
function El(e) {
|
|
2347
|
+
return j(e) && !k(e[0]);
|
|
2348
|
+
}
|
|
2349
|
+
function Fr(e, t, n, r) {
|
|
2350
|
+
const { slots: a, attrs: s } = t;
|
|
2351
|
+
return () => {
|
|
2352
|
+
const l = { part: !0 };
|
|
2353
|
+
let i = {};
|
|
2354
|
+
e.locale && (l.locale = e.locale), k(e.format) ? l.key = e.format : x(e.format) && (k(e.format.key) && (l.key = e.format.key), i = Object.keys(e.format).reduce((f, b) => n.includes(b) ? Y({}, f, { [b]: e.format[b] }) : f, {}));
|
|
2355
|
+
const o = r(e.value, l, i);
|
|
2356
|
+
let m = [l.key];
|
|
2357
|
+
j(o) ? m = o.map((f, b) => {
|
|
2358
|
+
const A = a[f.type], N = A ? A({ [f.type]: f.value, index: b, parts: o }) : [f.value];
|
|
2359
|
+
return El(N) && (N[0].key = `${f.type}-${b}`), N;
|
|
2360
|
+
}) : k(o) && (m = [o]);
|
|
2361
|
+
const v = Y({}, s), _ = k(e.tag) || x(e.tag) ? e.tag : Mr();
|
|
2362
|
+
return Oe(_, v, m);
|
|
2363
|
+
};
|
|
2364
|
+
}
|
|
2365
|
+
Y({
|
|
2366
|
+
value: {
|
|
2367
|
+
type: Number,
|
|
2368
|
+
required: !0
|
|
2369
|
+
},
|
|
2370
|
+
format: {
|
|
2371
|
+
type: [String, Object]
|
|
2372
|
+
}
|
|
2373
|
+
}, dn);
|
|
2374
|
+
Y({
|
|
2375
|
+
value: {
|
|
2376
|
+
type: [Number, Date],
|
|
2377
|
+
required: !0
|
|
2378
|
+
},
|
|
2379
|
+
format: {
|
|
2380
|
+
type: [String, Object]
|
|
2381
|
+
}
|
|
2382
|
+
}, dn);
|
|
2383
|
+
function Yn(e, t) {
|
|
2384
|
+
}
|
|
2385
|
+
const hl = /* @__PURE__ */ ve("global-vue-i18n");
|
|
2386
|
+
function yt(e = {}) {
|
|
2387
|
+
const t = Ye();
|
|
2388
|
+
if (t == null)
|
|
2389
|
+
throw $e(W.MUST_BE_CALL_SETUP_TOP);
|
|
2390
|
+
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2391
|
+
throw $e(W.NOT_INSLALLED);
|
|
2392
|
+
const n = Nl(t), r = bl(n), a = $r(t), s = yl(e, a);
|
|
2393
|
+
if (s === "global")
|
|
2394
|
+
return _l(r, e, a), r;
|
|
2395
|
+
if (s === "parent") {
|
|
2396
|
+
let o = Tl(n, t, e.__useComponent);
|
|
2397
|
+
return o == null && (process.env.NODE_ENV !== "production" && qe(Pr(_e.NOT_FOUND_PARENT_SCOPE)), o = r), o;
|
|
2398
|
+
}
|
|
2399
|
+
const l = n;
|
|
2400
|
+
let i = l.__getInstance(t);
|
|
2401
|
+
if (i == null) {
|
|
2402
|
+
const o = Y({}, e);
|
|
2403
|
+
"__i18n" in a && (o.__i18n = a.__i18n), r && (o.__root = r), i = vl(o), Ll(l, t, i), l.__setInstance(t, i);
|
|
2404
|
+
}
|
|
2405
|
+
return i;
|
|
2406
|
+
}
|
|
2407
|
+
function Nl(e) {
|
|
2408
|
+
{
|
|
2409
|
+
const t = Ke(e.isCE ? hl : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2410
|
+
if (!t)
|
|
2411
|
+
throw $e(e.isCE ? W.NOT_INSLALLED_WITH_PROVIDE : W.UNEXPECTED_ERROR);
|
|
2412
|
+
return t;
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
function yl(e, t) {
|
|
2416
|
+
return pt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2417
|
+
}
|
|
2418
|
+
function bl(e) {
|
|
2419
|
+
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2420
|
+
}
|
|
2421
|
+
function Tl(e, t, n = !1) {
|
|
2422
|
+
let r = null;
|
|
2423
|
+
const a = t.root;
|
|
2424
|
+
let s = t.parent;
|
|
2425
|
+
for (; s != null; ) {
|
|
2426
|
+
const l = e;
|
|
2427
|
+
if (e.mode === "composition" && (r = l.__getInstance(s)), r != null || a === s)
|
|
2428
|
+
break;
|
|
2429
|
+
s = s.parent;
|
|
2430
|
+
}
|
|
2431
|
+
return r;
|
|
2432
|
+
}
|
|
2433
|
+
function Ll(e, t, n) {
|
|
2434
|
+
let r = null;
|
|
2435
|
+
sr(() => {
|
|
2436
|
+
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
2437
|
+
t.vnode.el.__VUE_I18N__ = n, r = Ja();
|
|
2438
|
+
const a = n;
|
|
2439
|
+
a[qt] && a[qt](r), r.on("*", Yn);
|
|
2440
|
+
}
|
|
2441
|
+
}, t), Ia(() => {
|
|
2442
|
+
if (process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__) {
|
|
2443
|
+
r && r.off("*", Yn);
|
|
2444
|
+
const a = n;
|
|
2445
|
+
a[Jt] && a[Jt](), delete t.vnode.el.__VUE_I18N__;
|
|
2446
|
+
}
|
|
2447
|
+
e.__deleteInstance(t);
|
|
2448
|
+
}, t);
|
|
2449
|
+
}
|
|
2450
|
+
Hs(nl);
|
|
2451
|
+
Ys(Os);
|
|
2452
|
+
Ks(Er);
|
|
2453
|
+
ul();
|
|
2454
|
+
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2455
|
+
const e = sn();
|
|
2456
|
+
e.__INTLIFY__ = !0, Ms(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2457
|
+
}
|
|
2458
|
+
process.env.NODE_ENV;
|
|
2459
|
+
function mn(e, t) {
|
|
2460
|
+
if (e === t)
|
|
2461
|
+
return !0;
|
|
2462
|
+
if (e instanceof Date && t instanceof Date && e.getTime() !== t.getTime() || e !== Object(e) || t !== Object(t))
|
|
2463
|
+
return !1;
|
|
2464
|
+
const n = Object.keys(e);
|
|
2465
|
+
return n.length !== Object.keys(t).length ? !1 : n.every((r) => mn(e[r], t[r]));
|
|
2466
|
+
}
|
|
2467
|
+
function le(e) {
|
|
2468
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "px";
|
|
2469
|
+
if (!(e == null || e === ""))
|
|
2470
|
+
return isNaN(+e) ? String(e) : isFinite(+e) ? `${Number(e)}${t}` : void 0;
|
|
2471
|
+
}
|
|
2472
|
+
function Zt(e) {
|
|
2473
|
+
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
2474
|
+
}
|
|
2475
|
+
const Kn = Object.freeze({
|
|
2476
|
+
enter: 13,
|
|
2477
|
+
tab: 9,
|
|
2478
|
+
delete: 46,
|
|
2479
|
+
esc: 27,
|
|
2480
|
+
space: 32,
|
|
2481
|
+
up: 38,
|
|
2482
|
+
down: 40,
|
|
2483
|
+
left: 37,
|
|
2484
|
+
right: 39,
|
|
2485
|
+
end: 35,
|
|
2486
|
+
home: 36,
|
|
2487
|
+
del: 46,
|
|
2488
|
+
backspace: 8,
|
|
2489
|
+
insert: 45,
|
|
2490
|
+
pageup: 33,
|
|
2491
|
+
pagedown: 34,
|
|
2492
|
+
shift: 16
|
|
2493
|
+
});
|
|
2494
|
+
function Cl(e) {
|
|
2495
|
+
return e == null ? [] : Array.isArray(e) ? e : [e];
|
|
2496
|
+
}
|
|
2497
|
+
function dt() {
|
|
2498
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0;
|
|
2499
|
+
const r = {};
|
|
2500
|
+
for (const a in e)
|
|
2501
|
+
r[a] = e[a];
|
|
2502
|
+
for (const a in t) {
|
|
2503
|
+
const s = e[a], l = t[a];
|
|
2504
|
+
if (Zt(s) && Zt(l)) {
|
|
2505
|
+
r[a] = dt(s, l, n);
|
|
2506
|
+
continue;
|
|
2507
|
+
}
|
|
2508
|
+
if (Array.isArray(s) && Array.isArray(l) && n) {
|
|
2509
|
+
r[a] = n(s, l);
|
|
2510
|
+
continue;
|
|
2511
|
+
}
|
|
2512
|
+
r[a] = l;
|
|
2513
|
+
}
|
|
2514
|
+
return r;
|
|
2515
|
+
}
|
|
2516
|
+
function bt() {
|
|
2517
|
+
return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "").replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
|
|
2518
|
+
}
|
|
2519
|
+
function st(e, t) {
|
|
2520
|
+
if (!t || typeof t != "object")
|
|
2521
|
+
return [];
|
|
2522
|
+
if (Array.isArray(t))
|
|
2523
|
+
return t.map((n) => st(e, n)).flat(1);
|
|
2524
|
+
if (Array.isArray(t.children))
|
|
2525
|
+
return t.children.map((n) => st(e, n)).flat(1);
|
|
2526
|
+
if (t.component) {
|
|
2527
|
+
if (Object.getOwnPropertySymbols(t.component.provides).includes(e))
|
|
2528
|
+
return [t.component];
|
|
2529
|
+
if (t.component.subTree)
|
|
2530
|
+
return st(e, t.component.subTree).flat(1);
|
|
2531
|
+
}
|
|
2532
|
+
return [];
|
|
2533
|
+
}
|
|
2534
|
+
function Vr(e) {
|
|
2535
|
+
const t = or({}), n = M(e);
|
|
2536
|
+
return ir(() => {
|
|
2537
|
+
for (const r in n.value)
|
|
2538
|
+
t[r] = n.value[r];
|
|
2539
|
+
}, {
|
|
2540
|
+
flush: "sync"
|
|
2541
|
+
}), ur(t);
|
|
2542
|
+
}
|
|
2543
|
+
function Sl(e, t) {
|
|
2544
|
+
return e.includes(t);
|
|
2545
|
+
}
|
|
2546
|
+
function Xn(e, t) {
|
|
2547
|
+
return t = "on" + _t(t), !!(e[t] || e[`${t}Once`] || e[`${t}Capture`] || e[`${t}OnceCapture`] || e[`${t}CaptureOnce`]);
|
|
2548
|
+
}
|
|
2549
|
+
function Ol(e, t, n) {
|
|
2550
|
+
if (n && (t = {
|
|
2551
|
+
__isVue: !0,
|
|
2552
|
+
$parent: n,
|
|
2553
|
+
$options: t
|
|
2554
|
+
}), t) {
|
|
2555
|
+
if (t.$_alreadyWarned = t.$_alreadyWarned || [], t.$_alreadyWarned.includes(e))
|
|
2556
|
+
return;
|
|
2557
|
+
t.$_alreadyWarned.push(e);
|
|
2558
|
+
}
|
|
2559
|
+
return `[Vuetify] ${e}` + (t ? kl(t) : "");
|
|
2560
|
+
}
|
|
2561
|
+
function Ur(e, t, n) {
|
|
2562
|
+
const r = Ol(e, t, n);
|
|
2563
|
+
r != null && console.warn(r);
|
|
2564
|
+
}
|
|
2565
|
+
const Il = /(?:^|[-_])(\w)/g, Al = (e) => e.replace(Il, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
2566
|
+
function xt(e, t) {
|
|
2567
|
+
if (e.$root === e)
|
|
2568
|
+
return "<Root>";
|
|
2569
|
+
const n = typeof e == "function" && e.cid != null ? e.options : e.__isVue ? e.$options || e.constructor.options : e || {};
|
|
2570
|
+
let r = n.name || n._componentTag;
|
|
2571
|
+
const a = n.__file;
|
|
2572
|
+
if (!r && a) {
|
|
2573
|
+
const s = a.match(/([^/\\]+)\.vue$/);
|
|
2574
|
+
r = s == null ? void 0 : s[1];
|
|
2575
|
+
}
|
|
2576
|
+
return (r ? `<${Al(r)}>` : "<Anonymous>") + (a && t !== !1 ? ` at ${a}` : "");
|
|
2577
|
+
}
|
|
2578
|
+
function kl(e) {
|
|
2579
|
+
if (e.__isVue && e.$parent) {
|
|
2580
|
+
const t = [];
|
|
2581
|
+
let n = 0;
|
|
2582
|
+
for (; e; ) {
|
|
2583
|
+
if (t.length > 0) {
|
|
2584
|
+
const r = t[t.length - 1];
|
|
2585
|
+
if (r.constructor === e.constructor) {
|
|
2586
|
+
n++, e = e.$parent;
|
|
2587
|
+
continue;
|
|
2588
|
+
} else
|
|
2589
|
+
n > 0 && (t[t.length - 1] = [r, n], n = 0);
|
|
2590
|
+
}
|
|
2591
|
+
t.push(e), e = e.$parent;
|
|
2592
|
+
}
|
|
2593
|
+
return `
|
|
2594
|
+
|
|
2595
|
+
found in
|
|
2596
|
+
|
|
2597
|
+
` + t.map((r, a) => `${a === 0 ? "---> " : " ".repeat(5 + a * 2)}${Array.isArray(r) ? `${xt(r[0])}... (${r[1]} recursive calls)` : xt(r)}`).join(`
|
|
2598
|
+
`);
|
|
2599
|
+
} else
|
|
2600
|
+
return `
|
|
2601
|
+
|
|
2602
|
+
(found in ${xt(e)})`;
|
|
2603
|
+
}
|
|
2604
|
+
function qn(e) {
|
|
2605
|
+
return !!e && /^(#|var\(--|(rgb|hsl)a?\()/.test(e);
|
|
2606
|
+
}
|
|
2607
|
+
function Te(e, t) {
|
|
2608
|
+
const n = Ye();
|
|
2609
|
+
if (!n)
|
|
2610
|
+
throw new Error(`[Vuetify] ${e} ${t || "must be called from inside a setup function"}`);
|
|
2611
|
+
return n;
|
|
2612
|
+
}
|
|
2613
|
+
function Je() {
|
|
2614
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "composables";
|
|
2615
|
+
const t = Te(e).type;
|
|
2616
|
+
return bt((t == null ? void 0 : t.aliasName) || (t == null ? void 0 : t.name));
|
|
2617
|
+
}
|
|
2618
|
+
let xr = 0, lt = /* @__PURE__ */ new WeakMap();
|
|
2619
|
+
function Wr() {
|
|
2620
|
+
const e = Te("getUid");
|
|
2621
|
+
if (lt.has(e))
|
|
2622
|
+
return lt.get(e);
|
|
2623
|
+
{
|
|
2624
|
+
const t = xr++;
|
|
2625
|
+
return lt.set(e, t), t;
|
|
2626
|
+
}
|
|
2627
|
+
}
|
|
2628
|
+
Wr.reset = () => {
|
|
2629
|
+
xr = 0, lt = /* @__PURE__ */ new WeakMap();
|
|
2630
|
+
};
|
|
2631
|
+
function Dl(e) {
|
|
2632
|
+
const {
|
|
2633
|
+
provides: t
|
|
2634
|
+
} = Te("injectSelf");
|
|
2635
|
+
if (t && e in t)
|
|
2636
|
+
return t[e];
|
|
2637
|
+
}
|
|
2638
|
+
const _n = Symbol.for("vuetify:defaults");
|
|
2639
|
+
function Br() {
|
|
2640
|
+
const e = Ke(_n);
|
|
2641
|
+
if (!e)
|
|
2642
|
+
throw new Error("[Vuetify] Could not find defaults instance");
|
|
2643
|
+
return e;
|
|
2644
|
+
}
|
|
2645
|
+
function gn(e, t) {
|
|
2646
|
+
const n = Br(), r = te(e), a = M(() => {
|
|
2647
|
+
const s = Ne(t == null ? void 0 : t.scoped), l = Ne(t == null ? void 0 : t.reset), i = Ne(t == null ? void 0 : t.root);
|
|
2648
|
+
let o = dt(r.value, {
|
|
2649
|
+
prev: n.value
|
|
2650
|
+
});
|
|
2651
|
+
if (s)
|
|
2652
|
+
return o;
|
|
2653
|
+
if (l || i) {
|
|
2654
|
+
const m = Number(l || 1 / 0);
|
|
2655
|
+
for (let v = 0; v <= m && o.prev; v++)
|
|
2656
|
+
o = o.prev;
|
|
2657
|
+
return o;
|
|
2658
|
+
}
|
|
2659
|
+
return dt(o.prev, o);
|
|
2660
|
+
});
|
|
2661
|
+
return gt(_n, a), a;
|
|
2662
|
+
}
|
|
2663
|
+
function Gr(e, t) {
|
|
2664
|
+
let n;
|
|
2665
|
+
he(e, (r) => {
|
|
2666
|
+
if (r && !n)
|
|
2667
|
+
n = Aa(), n.run(t);
|
|
2668
|
+
else if (!r) {
|
|
2669
|
+
var a;
|
|
2670
|
+
(a = n) == null || a.stop(), n = void 0;
|
|
2671
|
+
}
|
|
2672
|
+
}, {
|
|
2673
|
+
immediate: !0
|
|
2674
|
+
}), ka(() => {
|
|
2675
|
+
var r;
|
|
2676
|
+
(r = n) == null || r.stop();
|
|
2677
|
+
});
|
|
2678
|
+
}
|
|
2679
|
+
function K(e, t) {
|
|
2680
|
+
return (n) => Object.keys(e).reduce((r, a) => {
|
|
2681
|
+
const l = typeof e[a] == "object" && e[a] != null && !Array.isArray(e[a]) ? e[a] : {
|
|
2682
|
+
type: e[a]
|
|
2683
|
+
};
|
|
2684
|
+
return n && a in n ? r[a] = {
|
|
2685
|
+
...l,
|
|
2686
|
+
default: n[a]
|
|
2687
|
+
} : r[a] = l, t && !r[a].source && (r[a].source = t), r;
|
|
2688
|
+
}, {});
|
|
2689
|
+
}
|
|
2690
|
+
function Pl(e, t) {
|
|
2691
|
+
var n, r;
|
|
2692
|
+
return typeof ((n = e.props) == null ? void 0 : n[t]) < "u" || typeof ((r = e.props) == null ? void 0 : r[bt(t)]) < "u";
|
|
2693
|
+
}
|
|
2694
|
+
const ee = function(t) {
|
|
2695
|
+
return t._setup = t._setup ?? t.setup, t.name ? (t._setup && (t.props = t.props ?? {}, t.props = K(t.props, bt(t.name))(), t.props._as = String, t.setup = function(r, a) {
|
|
2696
|
+
const s = Ye(), l = Br(), i = Da(), o = Pa({
|
|
2697
|
+
...wa(r)
|
|
2698
|
+
});
|
|
2699
|
+
ir(() => {
|
|
2700
|
+
const v = l.value.global, _ = l.value[r._as ?? t.name];
|
|
2701
|
+
if (_) {
|
|
2702
|
+
const f = Object.entries(_).filter((b) => {
|
|
2703
|
+
let [A] = b;
|
|
2704
|
+
return A.startsWith(A[0].toUpperCase());
|
|
2705
|
+
});
|
|
2706
|
+
f.length && (i.value = Object.fromEntries(f));
|
|
2707
|
+
}
|
|
2708
|
+
for (const f of Object.keys(r)) {
|
|
2709
|
+
let b = r[f];
|
|
2710
|
+
Pl(s.vnode, f) || (b = (_ == null ? void 0 : _[f]) ?? (v == null ? void 0 : v[f]) ?? r[f]), o[f] !== b && (o[f] = b);
|
|
2711
|
+
}
|
|
2712
|
+
});
|
|
2713
|
+
const m = t._setup(o, a);
|
|
2714
|
+
return Gr(i, () => {
|
|
2715
|
+
var v;
|
|
2716
|
+
gn(dt(((v = Dl(_n)) == null ? void 0 : v.value) ?? {}, i.value));
|
|
2717
|
+
}), m;
|
|
2718
|
+
}), t) : (Ur("The component is missing an explicit name, unable to generate default prop value"), t);
|
|
2719
|
+
}, jr = typeof window < "u", zr = jr && "IntersectionObserver" in window;
|
|
2720
|
+
jr && typeof CSS < "u" && CSS.supports("selector(:focus-visible)");
|
|
2721
|
+
function Qe(e) {
|
|
2722
|
+
const t = Te("useRender");
|
|
2723
|
+
t.render = e;
|
|
2724
|
+
}
|
|
2725
|
+
const Pe = [String, Function, Object], wl = Symbol.for("vuetify:icons"), Tt = K({
|
|
2726
|
+
icon: {
|
|
2727
|
+
type: Pe
|
|
2728
|
+
},
|
|
2729
|
+
// Could not remove this and use makeTagProps, types complained because it is not required
|
|
2730
|
+
tag: {
|
|
2731
|
+
type: String,
|
|
2732
|
+
required: !0
|
|
2733
|
+
}
|
|
2734
|
+
}, "icon"), Jn = ee({
|
|
2735
|
+
name: "VComponentIcon",
|
|
2736
|
+
props: Tt(),
|
|
2737
|
+
setup(e, t) {
|
|
2738
|
+
let {
|
|
2739
|
+
slots: n
|
|
2740
|
+
} = t;
|
|
2741
|
+
return () => {
|
|
2742
|
+
var r;
|
|
2743
|
+
return P(e.tag, null, {
|
|
2744
|
+
default: () => [e.icon ? P(e.icon, null, null) : (r = n.default) == null ? void 0 : r.call(n)]
|
|
2745
|
+
});
|
|
2746
|
+
};
|
|
2747
|
+
}
|
|
2748
|
+
});
|
|
2749
|
+
ee({
|
|
2750
|
+
name: "VSvgIcon",
|
|
2751
|
+
inheritAttrs: !1,
|
|
2752
|
+
props: Tt(),
|
|
2753
|
+
setup(e, t) {
|
|
2754
|
+
let {
|
|
2755
|
+
attrs: n
|
|
2756
|
+
} = t;
|
|
2757
|
+
return () => P(e.tag, cr(n, {
|
|
2758
|
+
style: null
|
|
2759
|
+
}), {
|
|
2760
|
+
default: () => [P("svg", {
|
|
2761
|
+
class: "v-icon__svg",
|
|
2762
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2763
|
+
viewBox: "0 0 24 24",
|
|
2764
|
+
role: "img",
|
|
2765
|
+
"aria-hidden": "true"
|
|
2766
|
+
}, [P("path", {
|
|
2767
|
+
d: e.icon
|
|
2768
|
+
}, null)])]
|
|
2769
|
+
});
|
|
2770
|
+
}
|
|
2771
|
+
});
|
|
2772
|
+
ee({
|
|
2773
|
+
name: "VLigatureIcon",
|
|
2774
|
+
props: Tt(),
|
|
2775
|
+
setup(e) {
|
|
2776
|
+
return () => P(e.tag, null, {
|
|
2777
|
+
default: () => [e.icon]
|
|
2778
|
+
});
|
|
2779
|
+
}
|
|
2780
|
+
});
|
|
2781
|
+
ee({
|
|
2782
|
+
name: "VClassIcon",
|
|
2783
|
+
props: Tt(),
|
|
2784
|
+
setup(e) {
|
|
2785
|
+
return () => P(e.tag, {
|
|
2786
|
+
class: e.icon
|
|
2787
|
+
}, null);
|
|
2788
|
+
}
|
|
2789
|
+
});
|
|
2790
|
+
const Rl = (e) => {
|
|
2791
|
+
const t = Ke(wl);
|
|
2792
|
+
if (!t)
|
|
2793
|
+
throw new Error("Missing Vuetify Icons provide!");
|
|
2794
|
+
return {
|
|
2795
|
+
iconData: M(() => {
|
|
2796
|
+
const r = Xe(e) ? e.value : e.icon;
|
|
2797
|
+
if (!r)
|
|
2798
|
+
return {
|
|
2799
|
+
component: Jn
|
|
2800
|
+
};
|
|
2801
|
+
let a = r;
|
|
2802
|
+
if (typeof a == "string" && (a = a.trim(), a.startsWith("$"))) {
|
|
2803
|
+
var s;
|
|
2804
|
+
a = (s = t.aliases) == null ? void 0 : s[a.slice(1)];
|
|
2805
|
+
}
|
|
2806
|
+
if (!a)
|
|
2807
|
+
throw new Error(`Could not find aliased icon "${r}"`);
|
|
2808
|
+
if (typeof a != "string")
|
|
2809
|
+
return {
|
|
2810
|
+
component: Jn,
|
|
2811
|
+
icon: a
|
|
2812
|
+
};
|
|
2813
|
+
const l = Object.keys(t.sets).find((m) => typeof a == "string" && a.startsWith(`${m}:`)), i = l ? a.slice(l.length + 1) : a;
|
|
2814
|
+
return {
|
|
2815
|
+
component: t.sets[l ?? t.defaultSet].component,
|
|
2816
|
+
icon: i
|
|
2817
|
+
};
|
|
2818
|
+
})
|
|
2819
|
+
};
|
|
2820
|
+
}, $l = ["x-small", "small", "default", "large", "x-large"], vn = K({
|
|
2821
|
+
size: {
|
|
2822
|
+
type: [String, Number],
|
|
2823
|
+
default: "default"
|
|
2824
|
+
}
|
|
2825
|
+
}, "size");
|
|
2826
|
+
function pn(e) {
|
|
2827
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Je();
|
|
2828
|
+
return Vr(() => {
|
|
2829
|
+
let n, r;
|
|
2830
|
+
return Sl($l, e.size) ? n = `${t}--size-${e.size}` : e.size && (r = {
|
|
2831
|
+
width: le(e.size),
|
|
2832
|
+
height: le(e.size)
|
|
2833
|
+
}), {
|
|
2834
|
+
sizeClasses: n,
|
|
2835
|
+
sizeStyles: r
|
|
2836
|
+
};
|
|
2837
|
+
});
|
|
2838
|
+
}
|
|
2839
|
+
const Me = K({
|
|
2840
|
+
tag: {
|
|
2841
|
+
type: String,
|
|
2842
|
+
default: "div"
|
|
2843
|
+
}
|
|
2844
|
+
}, "tag"), Qn = Symbol.for("vuetify:theme"), Lt = K({
|
|
2845
|
+
theme: String
|
|
2846
|
+
}, "theme");
|
|
2847
|
+
function Ct(e) {
|
|
2848
|
+
Te("provideTheme");
|
|
2849
|
+
const t = Ke(Qn, null);
|
|
2850
|
+
if (!t)
|
|
2851
|
+
throw new Error("Could not find Vuetify theme injection");
|
|
2852
|
+
const n = M(() => e.theme ?? (t == null ? void 0 : t.name.value)), r = M(() => t.isDisabled ? void 0 : `v-theme--${n.value}`), a = {
|
|
2853
|
+
...t,
|
|
2854
|
+
name: n,
|
|
2855
|
+
themeClasses: r
|
|
2856
|
+
};
|
|
2857
|
+
return gt(Qn, a), a;
|
|
2858
|
+
}
|
|
2859
|
+
function Hr(e) {
|
|
2860
|
+
return Vr(() => {
|
|
2861
|
+
const t = [], n = {};
|
|
2862
|
+
return e.value.background && (qn(e.value.background) ? n.backgroundColor = e.value.background : t.push(`bg-${e.value.background}`)), e.value.text && (qn(e.value.text) ? (n.color = e.value.text, n.caretColor = e.value.text) : t.push(`text-${e.value.text}`)), {
|
|
2863
|
+
colorClasses: t,
|
|
2864
|
+
colorStyles: n
|
|
2865
|
+
};
|
|
2866
|
+
});
|
|
2867
|
+
}
|
|
2868
|
+
function Ml(e, t) {
|
|
2869
|
+
const n = M(() => ({
|
|
2870
|
+
text: Xe(e) ? e.value : t ? e[t] : null
|
|
2871
|
+
})), {
|
|
2872
|
+
colorClasses: r,
|
|
2873
|
+
colorStyles: a
|
|
2874
|
+
} = Hr(n);
|
|
2875
|
+
return {
|
|
2876
|
+
textColorClasses: r,
|
|
2877
|
+
textColorStyles: a
|
|
2878
|
+
};
|
|
2879
|
+
}
|
|
2880
|
+
const Fl = K({
|
|
2881
|
+
color: String,
|
|
2882
|
+
start: Boolean,
|
|
2883
|
+
end: Boolean,
|
|
2884
|
+
icon: Pe,
|
|
2885
|
+
...vn(),
|
|
2886
|
+
...Me({
|
|
2887
|
+
tag: "i"
|
|
2888
|
+
}),
|
|
2889
|
+
...Lt()
|
|
2890
|
+
}, "v-icon"), Be = ee({
|
|
2891
|
+
name: "VIcon",
|
|
2892
|
+
props: Fl(),
|
|
2893
|
+
setup(e, t) {
|
|
2894
|
+
let {
|
|
2895
|
+
attrs: n,
|
|
2896
|
+
slots: r
|
|
2897
|
+
} = t, a;
|
|
2898
|
+
r.default && (a = M(() => {
|
|
2899
|
+
var v, _;
|
|
2900
|
+
const f = (v = r.default) == null ? void 0 : v.call(r);
|
|
2901
|
+
if (f)
|
|
2902
|
+
return (_ = f.filter((b) => b.type === lr && b.children && typeof b.children == "string")[0]) == null ? void 0 : _.children;
|
|
2903
|
+
}));
|
|
2904
|
+
const {
|
|
2905
|
+
themeClasses: s
|
|
2906
|
+
} = Ct(e), {
|
|
2907
|
+
iconData: l
|
|
2908
|
+
} = Rl(a || e), {
|
|
2909
|
+
sizeClasses: i
|
|
2910
|
+
} = pn(e), {
|
|
2911
|
+
textColorClasses: o,
|
|
2912
|
+
textColorStyles: m
|
|
2913
|
+
} = Ml(Ce(e, "color"));
|
|
2914
|
+
return Qe(() => {
|
|
2915
|
+
var v;
|
|
2916
|
+
return P(l.value.component, {
|
|
2917
|
+
tag: e.tag,
|
|
2918
|
+
icon: l.value.icon,
|
|
2919
|
+
class: ["v-icon", "notranslate", s.value, i.value, o.value, {
|
|
2920
|
+
"v-icon--clickable": !!n.onClick,
|
|
2921
|
+
"v-icon--start": e.start,
|
|
2922
|
+
"v-icon--end": e.end
|
|
2923
|
+
}],
|
|
2924
|
+
style: [i.value ? void 0 : {
|
|
2925
|
+
fontSize: le(e.size),
|
|
2926
|
+
height: le(e.size),
|
|
2927
|
+
width: le(e.size)
|
|
2928
|
+
}, m.value],
|
|
2929
|
+
role: n.onClick ? "button" : void 0,
|
|
2930
|
+
"aria-hidden": !n.onClick
|
|
2931
|
+
}, {
|
|
2932
|
+
default: () => [(v = r.default) == null ? void 0 : v.call(r)]
|
|
2933
|
+
});
|
|
2934
|
+
}), {};
|
|
2935
|
+
}
|
|
2936
|
+
});
|
|
2937
|
+
const Vl = K({
|
|
2938
|
+
height: [Number, String],
|
|
2939
|
+
maxHeight: [Number, String],
|
|
2940
|
+
maxWidth: [Number, String],
|
|
2941
|
+
minHeight: [Number, String],
|
|
2942
|
+
minWidth: [Number, String],
|
|
2943
|
+
width: [Number, String]
|
|
2944
|
+
}, "dimension");
|
|
2945
|
+
function Ul(e) {
|
|
2946
|
+
return {
|
|
2947
|
+
dimensionStyles: M(() => ({
|
|
2948
|
+
height: le(e.height),
|
|
2949
|
+
maxHeight: le(e.maxHeight),
|
|
2950
|
+
maxWidth: le(e.maxWidth),
|
|
2951
|
+
minHeight: le(e.minHeight),
|
|
2952
|
+
minWidth: le(e.minWidth),
|
|
2953
|
+
width: le(e.width)
|
|
2954
|
+
}))
|
|
2955
|
+
};
|
|
2956
|
+
}
|
|
2957
|
+
function xl(e) {
|
|
2958
|
+
return {
|
|
2959
|
+
aspectStyles: M(() => {
|
|
2960
|
+
const t = Number(e.aspectRatio);
|
|
2961
|
+
return t ? {
|
|
2962
|
+
paddingBottom: String(1 / t * 100) + "%"
|
|
2963
|
+
} : void 0;
|
|
2964
|
+
})
|
|
2965
|
+
};
|
|
2966
|
+
}
|
|
2967
|
+
const Wl = ee({
|
|
2968
|
+
name: "VResponsive",
|
|
2969
|
+
props: {
|
|
2970
|
+
aspectRatio: [String, Number],
|
|
2971
|
+
contentClass: String,
|
|
2972
|
+
...Vl()
|
|
2973
|
+
},
|
|
2974
|
+
setup(e, t) {
|
|
2975
|
+
let {
|
|
2976
|
+
slots: n
|
|
2977
|
+
} = t;
|
|
2978
|
+
const {
|
|
2979
|
+
aspectStyles: r
|
|
2980
|
+
} = xl(e), {
|
|
2981
|
+
dimensionStyles: a
|
|
2982
|
+
} = Ul(e);
|
|
2983
|
+
return Qe(() => {
|
|
2984
|
+
var s;
|
|
2985
|
+
return P("div", {
|
|
2986
|
+
class: "v-responsive",
|
|
2987
|
+
style: a.value
|
|
2988
|
+
}, [P("div", {
|
|
2989
|
+
class: "v-responsive__sizer",
|
|
2990
|
+
style: r.value
|
|
2991
|
+
}, null), (s = n.additional) == null ? void 0 : s.call(n), n.default && P("div", {
|
|
2992
|
+
class: ["v-responsive__content", e.contentClass]
|
|
2993
|
+
}, [n.default()])]);
|
|
2994
|
+
}), {};
|
|
2995
|
+
}
|
|
2996
|
+
});
|
|
2997
|
+
function Bl(e, t) {
|
|
2998
|
+
if (!zr)
|
|
2999
|
+
return;
|
|
3000
|
+
const n = t.modifiers || {}, r = t.value, {
|
|
3001
|
+
handler: a,
|
|
3002
|
+
options: s
|
|
3003
|
+
} = typeof r == "object" ? r : {
|
|
3004
|
+
handler: r,
|
|
3005
|
+
options: {}
|
|
3006
|
+
}, l = new IntersectionObserver(function() {
|
|
3007
|
+
var i;
|
|
3008
|
+
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], m = arguments.length > 1 ? arguments[1] : void 0;
|
|
3009
|
+
const v = (i = e._observe) == null ? void 0 : i[t.instance.$.uid];
|
|
3010
|
+
if (!v)
|
|
3011
|
+
return;
|
|
3012
|
+
const _ = o.some((f) => f.isIntersecting);
|
|
3013
|
+
a && (!n.quiet || v.init) && (!n.once || _ || v.init) && a(_, o, m), _ && n.once ? Yr(e, t) : v.init = !0;
|
|
3014
|
+
}, s);
|
|
3015
|
+
e._observe = Object(e._observe), e._observe[t.instance.$.uid] = {
|
|
3016
|
+
init: !1,
|
|
3017
|
+
observer: l
|
|
3018
|
+
}, l.observe(e);
|
|
3019
|
+
}
|
|
3020
|
+
function Yr(e, t) {
|
|
3021
|
+
var n;
|
|
3022
|
+
const r = (n = e._observe) == null ? void 0 : n[t.instance.$.uid];
|
|
3023
|
+
r && (r.observer.unobserve(e), delete e._observe[t.instance.$.uid]);
|
|
3024
|
+
}
|
|
3025
|
+
const Gl = {
|
|
3026
|
+
mounted: Bl,
|
|
3027
|
+
unmounted: Yr
|
|
3028
|
+
}, jl = Gl, zl = K({
|
|
3029
|
+
transition: {
|
|
3030
|
+
type: [Boolean, String, Object],
|
|
3031
|
+
default: "fade-transition",
|
|
3032
|
+
validator: (e) => e !== !0
|
|
3033
|
+
}
|
|
3034
|
+
}, "transition"), rt = (e, t) => {
|
|
3035
|
+
let {
|
|
3036
|
+
slots: n
|
|
3037
|
+
} = t;
|
|
3038
|
+
const {
|
|
3039
|
+
transition: r,
|
|
3040
|
+
...a
|
|
3041
|
+
} = e, {
|
|
3042
|
+
component: s = rn,
|
|
3043
|
+
...l
|
|
3044
|
+
} = typeof r == "object" ? r : {};
|
|
3045
|
+
return Oe(s, cr(typeof r == "string" ? {
|
|
3046
|
+
name: r
|
|
3047
|
+
} : l, a), n);
|
|
3048
|
+
}, Hl = ee({
|
|
3049
|
+
name: "VImg",
|
|
3050
|
+
directives: {
|
|
3051
|
+
intersect: jl
|
|
3052
|
+
},
|
|
3053
|
+
props: {
|
|
3054
|
+
aspectRatio: [String, Number],
|
|
3055
|
+
alt: String,
|
|
3056
|
+
cover: Boolean,
|
|
3057
|
+
eager: Boolean,
|
|
3058
|
+
gradient: String,
|
|
3059
|
+
lazySrc: String,
|
|
3060
|
+
options: {
|
|
3061
|
+
type: Object,
|
|
3062
|
+
// For more information on types, navigate to:
|
|
3063
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
|
|
3064
|
+
default: () => ({
|
|
3065
|
+
root: void 0,
|
|
3066
|
+
rootMargin: void 0,
|
|
3067
|
+
threshold: void 0
|
|
3068
|
+
})
|
|
3069
|
+
},
|
|
3070
|
+
sizes: String,
|
|
3071
|
+
src: {
|
|
3072
|
+
type: [String, Object],
|
|
3073
|
+
default: ""
|
|
3074
|
+
},
|
|
3075
|
+
srcset: String,
|
|
3076
|
+
width: [String, Number],
|
|
3077
|
+
...zl()
|
|
3078
|
+
},
|
|
3079
|
+
emits: {
|
|
3080
|
+
loadstart: (e) => !0,
|
|
3081
|
+
load: (e) => !0,
|
|
3082
|
+
error: (e) => !0
|
|
3083
|
+
},
|
|
3084
|
+
setup(e, t) {
|
|
3085
|
+
let {
|
|
3086
|
+
emit: n,
|
|
3087
|
+
slots: r
|
|
3088
|
+
} = t;
|
|
3089
|
+
const a = te(""), s = te(), l = te(e.eager ? "loading" : "idle"), i = te(), o = te(), m = M(() => e.src && typeof e.src == "object" ? {
|
|
3090
|
+
src: e.src.src,
|
|
3091
|
+
srcset: e.srcset || e.src.srcset,
|
|
3092
|
+
lazySrc: e.lazySrc || e.src.lazySrc,
|
|
3093
|
+
aspect: Number(e.aspectRatio || e.src.aspect || 0)
|
|
3094
|
+
} : {
|
|
3095
|
+
src: e.src,
|
|
3096
|
+
srcset: e.srcset,
|
|
3097
|
+
lazySrc: e.lazySrc,
|
|
3098
|
+
aspect: Number(e.aspectRatio || 0)
|
|
3099
|
+
}), v = M(() => m.value.aspect || i.value / o.value || 0);
|
|
3100
|
+
he(() => e.src, () => {
|
|
3101
|
+
_(l.value !== "idle");
|
|
3102
|
+
}), he(v, (D, w) => {
|
|
3103
|
+
!D && w && s.value && C(s.value);
|
|
3104
|
+
}), Ra(() => _());
|
|
3105
|
+
function _(D) {
|
|
3106
|
+
if (!(e.eager && D) && !(zr && !D && !e.eager)) {
|
|
3107
|
+
if (l.value = "loading", m.value.lazySrc) {
|
|
3108
|
+
const w = new Image();
|
|
3109
|
+
w.src = m.value.lazySrc, C(w, null);
|
|
3110
|
+
}
|
|
3111
|
+
m.value.src && $a(() => {
|
|
3112
|
+
var w, F;
|
|
3113
|
+
if (n("loadstart", ((w = s.value) == null ? void 0 : w.currentSrc) || m.value.src), (F = s.value) != null && F.complete) {
|
|
3114
|
+
if (s.value.naturalWidth || b(), l.value === "error")
|
|
3115
|
+
return;
|
|
3116
|
+
v.value || C(s.value, null), f();
|
|
3117
|
+
} else
|
|
3118
|
+
v.value || C(s.value), A();
|
|
3119
|
+
});
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
function f() {
|
|
3123
|
+
var D;
|
|
3124
|
+
A(), l.value = "loaded", n("load", ((D = s.value) == null ? void 0 : D.currentSrc) || m.value.src);
|
|
3125
|
+
}
|
|
3126
|
+
function b() {
|
|
3127
|
+
var D;
|
|
3128
|
+
l.value = "error", n("error", ((D = s.value) == null ? void 0 : D.currentSrc) || m.value.src);
|
|
3129
|
+
}
|
|
3130
|
+
function A() {
|
|
3131
|
+
const D = s.value;
|
|
3132
|
+
D && (a.value = D.currentSrc || D.src);
|
|
3133
|
+
}
|
|
3134
|
+
let N = -1;
|
|
3135
|
+
function C(D) {
|
|
3136
|
+
let w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
|
|
3137
|
+
const F = () => {
|
|
3138
|
+
clearTimeout(N);
|
|
3139
|
+
const {
|
|
3140
|
+
naturalHeight: z,
|
|
3141
|
+
naturalWidth: oe
|
|
3142
|
+
} = D;
|
|
3143
|
+
z || oe ? (i.value = oe, o.value = z) : !D.complete && l.value === "loading" && w != null ? N = window.setTimeout(F, w) : (D.currentSrc.endsWith(".svg") || D.currentSrc.startsWith("data:image/svg+xml")) && (i.value = 1, o.value = 1);
|
|
3144
|
+
};
|
|
3145
|
+
F();
|
|
3146
|
+
}
|
|
3147
|
+
const d = M(() => ({
|
|
3148
|
+
"v-img__img--cover": e.cover,
|
|
3149
|
+
"v-img__img--contain": !e.cover
|
|
3150
|
+
})), h = () => {
|
|
3151
|
+
var D;
|
|
3152
|
+
if (!m.value.src || l.value === "idle")
|
|
3153
|
+
return null;
|
|
3154
|
+
const w = P("img", {
|
|
3155
|
+
class: ["v-img__img", d.value],
|
|
3156
|
+
src: m.value.src,
|
|
3157
|
+
srcset: m.value.srcset,
|
|
3158
|
+
alt: "",
|
|
3159
|
+
sizes: e.sizes,
|
|
3160
|
+
ref: s,
|
|
3161
|
+
onLoad: f,
|
|
3162
|
+
onError: b
|
|
3163
|
+
}, null), F = (D = r.sources) == null ? void 0 : D.call(r);
|
|
3164
|
+
return P(rt, {
|
|
3165
|
+
transition: e.transition,
|
|
3166
|
+
appear: !0
|
|
3167
|
+
}, {
|
|
3168
|
+
default: () => [ot(F ? P("picture", {
|
|
3169
|
+
class: "v-img__picture"
|
|
3170
|
+
}, [F, w]) : w, [[dr, l.value === "loaded"]])]
|
|
3171
|
+
});
|
|
3172
|
+
}, T = () => P(rt, {
|
|
3173
|
+
transition: e.transition
|
|
3174
|
+
}, {
|
|
3175
|
+
default: () => [m.value.lazySrc && l.value !== "loaded" && P("img", {
|
|
3176
|
+
class: ["v-img__img", "v-img__img--preload", d.value],
|
|
3177
|
+
src: m.value.lazySrc,
|
|
3178
|
+
alt: ""
|
|
3179
|
+
}, null)]
|
|
3180
|
+
}), g = () => r.placeholder ? P(rt, {
|
|
3181
|
+
transition: e.transition,
|
|
3182
|
+
appear: !0
|
|
3183
|
+
}, {
|
|
3184
|
+
default: () => [(l.value === "loading" || l.value === "error" && !r.error) && P("div", {
|
|
3185
|
+
class: "v-img__placeholder"
|
|
3186
|
+
}, [r.placeholder()])]
|
|
3187
|
+
}) : null, p = () => r.error ? P(rt, {
|
|
3188
|
+
transition: e.transition,
|
|
3189
|
+
appear: !0
|
|
3190
|
+
}, {
|
|
3191
|
+
default: () => [l.value === "error" && P("div", {
|
|
3192
|
+
class: "v-img__error"
|
|
3193
|
+
}, [r.error()])]
|
|
3194
|
+
}) : null, S = () => e.gradient ? P("div", {
|
|
3195
|
+
class: "v-img__gradient",
|
|
3196
|
+
style: {
|
|
3197
|
+
backgroundImage: `linear-gradient(${e.gradient})`
|
|
3198
|
+
}
|
|
3199
|
+
}, null) : null, O = te(!1);
|
|
3200
|
+
{
|
|
3201
|
+
const D = he(v, (w) => {
|
|
3202
|
+
w && (requestAnimationFrame(() => {
|
|
3203
|
+
requestAnimationFrame(() => {
|
|
3204
|
+
O.value = !0;
|
|
3205
|
+
});
|
|
3206
|
+
}), D());
|
|
3207
|
+
});
|
|
3208
|
+
}
|
|
3209
|
+
return Qe(() => ot(P(Wl, {
|
|
3210
|
+
class: ["v-img", {
|
|
3211
|
+
"v-img--booting": !O.value
|
|
3212
|
+
}],
|
|
3213
|
+
style: {
|
|
3214
|
+
width: le(e.width === "auto" ? i.value : e.width)
|
|
3215
|
+
},
|
|
3216
|
+
aspectRatio: v.value,
|
|
3217
|
+
"aria-label": e.alt,
|
|
3218
|
+
role: e.alt ? "img" : void 0
|
|
3219
|
+
}, {
|
|
3220
|
+
additional: () => P(nn, null, [P(h, null, null), P(T, null, null), P(S, null, null), P(g, null, null), P(p, null, null)]),
|
|
3221
|
+
default: r.default
|
|
3222
|
+
}), [[fr("intersect"), {
|
|
3223
|
+
handler: _,
|
|
3224
|
+
options: e.options
|
|
3225
|
+
}, null, {
|
|
3226
|
+
once: !0
|
|
3227
|
+
}]])), {
|
|
3228
|
+
currentSrc: a,
|
|
3229
|
+
image: s,
|
|
3230
|
+
state: l,
|
|
3231
|
+
naturalWidth: i,
|
|
3232
|
+
naturalHeight: o
|
|
3233
|
+
};
|
|
3234
|
+
}
|
|
3235
|
+
}), Yl = ["elevated", "flat", "tonal", "outlined", "text", "plain"];
|
|
3236
|
+
function Kr(e, t) {
|
|
3237
|
+
return P(nn, null, [e && P("span", {
|
|
3238
|
+
key: "overlay",
|
|
3239
|
+
class: `${t}__overlay`
|
|
3240
|
+
}, null), P("span", {
|
|
3241
|
+
key: "underlay",
|
|
3242
|
+
class: `${t}__underlay`
|
|
3243
|
+
}, null)]);
|
|
3244
|
+
}
|
|
3245
|
+
const En = K({
|
|
3246
|
+
color: String,
|
|
3247
|
+
variant: {
|
|
3248
|
+
type: String,
|
|
3249
|
+
default: "elevated",
|
|
3250
|
+
validator: (e) => Yl.includes(e)
|
|
3251
|
+
}
|
|
3252
|
+
}, "variant");
|
|
3253
|
+
function Xr(e) {
|
|
3254
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Je();
|
|
3255
|
+
const n = M(() => {
|
|
3256
|
+
const {
|
|
3257
|
+
variant: s
|
|
3258
|
+
} = Ne(e);
|
|
3259
|
+
return `${t}--variant-${s}`;
|
|
3260
|
+
}), {
|
|
3261
|
+
colorClasses: r,
|
|
3262
|
+
colorStyles: a
|
|
3263
|
+
} = Hr(M(() => {
|
|
3264
|
+
const {
|
|
3265
|
+
variant: s,
|
|
3266
|
+
color: l
|
|
3267
|
+
} = Ne(e);
|
|
3268
|
+
return {
|
|
3269
|
+
[["elevated", "flat"].includes(s) ? "background" : "text"]: l
|
|
3270
|
+
};
|
|
3271
|
+
}));
|
|
3272
|
+
return {
|
|
3273
|
+
colorClasses: r,
|
|
3274
|
+
colorStyles: a,
|
|
3275
|
+
variantClasses: n
|
|
3276
|
+
};
|
|
3277
|
+
}
|
|
3278
|
+
const Kl = [null, "default", "comfortable", "compact"], qr = K({
|
|
3279
|
+
density: {
|
|
3280
|
+
type: String,
|
|
3281
|
+
default: "default",
|
|
3282
|
+
validator: (e) => Kl.includes(e)
|
|
3283
|
+
}
|
|
3284
|
+
}, "density");
|
|
3285
|
+
function Jr(e) {
|
|
3286
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Je();
|
|
3287
|
+
return {
|
|
3288
|
+
densityClasses: M(() => `${t}--density-${e.density}`)
|
|
3289
|
+
};
|
|
3290
|
+
}
|
|
3291
|
+
const Qr = K({
|
|
3292
|
+
rounded: {
|
|
3293
|
+
type: [Boolean, Number, String],
|
|
3294
|
+
default: void 0
|
|
3295
|
+
}
|
|
3296
|
+
}, "rounded");
|
|
3297
|
+
function Zr(e) {
|
|
3298
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Je();
|
|
3299
|
+
return {
|
|
3300
|
+
roundedClasses: M(() => {
|
|
3301
|
+
const r = Xe(e) ? e.value : e.rounded, a = [];
|
|
3302
|
+
if (r === !0 || r === "")
|
|
3303
|
+
a.push(`${t}--rounded`);
|
|
3304
|
+
else if (typeof r == "string" || r === 0)
|
|
3305
|
+
for (const s of String(r).split(" "))
|
|
3306
|
+
a.push(`rounded-${s}`);
|
|
3307
|
+
return a;
|
|
3308
|
+
})
|
|
3309
|
+
};
|
|
3310
|
+
}
|
|
3311
|
+
const Xl = K({
|
|
3312
|
+
start: Boolean,
|
|
3313
|
+
end: Boolean,
|
|
3314
|
+
icon: Pe,
|
|
3315
|
+
image: String,
|
|
3316
|
+
...qr(),
|
|
3317
|
+
...Qr(),
|
|
3318
|
+
...vn(),
|
|
3319
|
+
...Me(),
|
|
3320
|
+
...Lt(),
|
|
3321
|
+
...En({
|
|
3322
|
+
variant: "flat"
|
|
3323
|
+
})
|
|
3324
|
+
}, "v-avatar"), Zn = ee({
|
|
3325
|
+
name: "VAvatar",
|
|
3326
|
+
props: Xl(),
|
|
3327
|
+
setup(e, t) {
|
|
3328
|
+
let {
|
|
3329
|
+
slots: n
|
|
3330
|
+
} = t;
|
|
3331
|
+
const {
|
|
3332
|
+
themeClasses: r
|
|
3333
|
+
} = Ct(e), {
|
|
3334
|
+
colorClasses: a,
|
|
3335
|
+
colorStyles: s,
|
|
3336
|
+
variantClasses: l
|
|
3337
|
+
} = Xr(e), {
|
|
3338
|
+
densityClasses: i
|
|
3339
|
+
} = Jr(e), {
|
|
3340
|
+
roundedClasses: o
|
|
3341
|
+
} = Zr(e), {
|
|
3342
|
+
sizeClasses: m,
|
|
3343
|
+
sizeStyles: v
|
|
3344
|
+
} = pn(e);
|
|
3345
|
+
return Qe(() => {
|
|
3346
|
+
var _;
|
|
3347
|
+
return P(e.tag, {
|
|
3348
|
+
class: ["v-avatar", {
|
|
3349
|
+
"v-avatar--start": e.start,
|
|
3350
|
+
"v-avatar--end": e.end
|
|
3351
|
+
}, r.value, a.value, i.value, o.value, m.value, l.value],
|
|
3352
|
+
style: [s.value, v.value]
|
|
3353
|
+
}, {
|
|
3354
|
+
default: () => [e.image ? P(Hl, {
|
|
3355
|
+
key: "image",
|
|
3356
|
+
src: e.image,
|
|
3357
|
+
alt: "",
|
|
3358
|
+
cover: !0
|
|
3359
|
+
}, null) : e.icon ? P(Be, {
|
|
3360
|
+
key: "icon",
|
|
3361
|
+
icon: e.icon
|
|
3362
|
+
}, null) : (_ = n.default) == null ? void 0 : _.call(n), Kr(!1, "v-avatar")]
|
|
3363
|
+
});
|
|
3364
|
+
}), {};
|
|
3365
|
+
}
|
|
3366
|
+
});
|
|
3367
|
+
function ea(e, t, n) {
|
|
3368
|
+
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : (_) => _, a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : (_) => _;
|
|
3369
|
+
const s = Te("useProxiedModel"), l = te(e[t] !== void 0 ? e[t] : n), i = bt(t), m = i !== t ? M(() => {
|
|
3370
|
+
var _, f, b, A;
|
|
3371
|
+
return e[t], !!(((_ = s.vnode.props) != null && _.hasOwnProperty(t) || (f = s.vnode.props) != null && f.hasOwnProperty(i)) && ((b = s.vnode.props) != null && b.hasOwnProperty(`onUpdate:${t}`) || (A = s.vnode.props) != null && A.hasOwnProperty(`onUpdate:${i}`)));
|
|
3372
|
+
}) : M(() => {
|
|
3373
|
+
var _, f;
|
|
3374
|
+
return e[t], !!((_ = s.vnode.props) != null && _.hasOwnProperty(t) && (f = s.vnode.props) != null && f.hasOwnProperty(`onUpdate:${t}`));
|
|
3375
|
+
});
|
|
3376
|
+
Gr(() => !m.value, () => {
|
|
3377
|
+
he(() => e[t], (_) => {
|
|
3378
|
+
l.value = _;
|
|
3379
|
+
});
|
|
3380
|
+
});
|
|
3381
|
+
const v = M({
|
|
3382
|
+
get() {
|
|
3383
|
+
return r(m.value ? e[t] : l.value);
|
|
3384
|
+
},
|
|
3385
|
+
set(_) {
|
|
3386
|
+
const f = a(_);
|
|
3387
|
+
(m.value ? e[t] : l.value) === f || r(m.value ? e[t] : l.value) === _ || (l.value = f, s == null || s.emit(`update:${t}`, f));
|
|
3388
|
+
}
|
|
3389
|
+
});
|
|
3390
|
+
return Object.defineProperty(v, "externalValue", {
|
|
3391
|
+
get: () => m.value ? e[t] : l.value
|
|
3392
|
+
}), v;
|
|
3393
|
+
}
|
|
3394
|
+
const ql = K({
|
|
3395
|
+
modelValue: {
|
|
3396
|
+
type: null,
|
|
3397
|
+
default: void 0
|
|
3398
|
+
},
|
|
3399
|
+
multiple: Boolean,
|
|
3400
|
+
mandatory: [Boolean, String],
|
|
3401
|
+
max: Number,
|
|
3402
|
+
selectedClass: String,
|
|
3403
|
+
disabled: Boolean
|
|
3404
|
+
}, "group"), Jl = K({
|
|
3405
|
+
value: null,
|
|
3406
|
+
disabled: Boolean,
|
|
3407
|
+
selectedClass: String
|
|
3408
|
+
}, "group-item");
|
|
3409
|
+
function Ql(e, t) {
|
|
3410
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
3411
|
+
const r = Te("useGroupItem");
|
|
3412
|
+
if (!r)
|
|
3413
|
+
throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");
|
|
3414
|
+
const a = Wr();
|
|
3415
|
+
gt(Symbol.for(`${t.description}:id`), a);
|
|
3416
|
+
const s = Ke(t, null);
|
|
3417
|
+
if (!s) {
|
|
3418
|
+
if (!n)
|
|
3419
|
+
return s;
|
|
3420
|
+
throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`);
|
|
3421
|
+
}
|
|
3422
|
+
const l = Ce(e, "value"), i = M(() => s.disabled.value || e.disabled);
|
|
3423
|
+
s.register({
|
|
3424
|
+
id: a,
|
|
3425
|
+
value: l,
|
|
3426
|
+
disabled: i
|
|
3427
|
+
}, r), mr(() => {
|
|
3428
|
+
s.unregister(a);
|
|
3429
|
+
});
|
|
3430
|
+
const o = M(() => s.isSelected(a)), m = M(() => o.value && [s.selectedClass.value, e.selectedClass]);
|
|
3431
|
+
return he(o, (v) => {
|
|
3432
|
+
r.emit("group:selected", {
|
|
3433
|
+
value: v
|
|
3434
|
+
});
|
|
3435
|
+
}), {
|
|
3436
|
+
id: a,
|
|
3437
|
+
isSelected: o,
|
|
3438
|
+
toggle: () => s.select(a, !o.value),
|
|
3439
|
+
select: (v) => s.select(a, v),
|
|
3440
|
+
selectedClass: m,
|
|
3441
|
+
value: l,
|
|
3442
|
+
disabled: i,
|
|
3443
|
+
group: s
|
|
3444
|
+
};
|
|
3445
|
+
}
|
|
3446
|
+
function Zl(e, t) {
|
|
3447
|
+
let n = !1;
|
|
3448
|
+
const r = or([]), a = ea(e, "modelValue", [], (f) => f == null ? [] : ta(r, Cl(f)), (f) => {
|
|
3449
|
+
const b = to(r, f);
|
|
3450
|
+
return e.multiple ? b : b[0];
|
|
3451
|
+
}), s = Te("useGroup");
|
|
3452
|
+
function l(f, b) {
|
|
3453
|
+
const A = f, N = Symbol.for(`${t.description}:id`), d = st(N, s == null ? void 0 : s.vnode).indexOf(b);
|
|
3454
|
+
d > -1 ? r.splice(d, 0, A) : r.push(A);
|
|
3455
|
+
}
|
|
3456
|
+
function i(f) {
|
|
3457
|
+
if (n)
|
|
3458
|
+
return;
|
|
3459
|
+
o();
|
|
3460
|
+
const b = r.findIndex((A) => A.id === f);
|
|
3461
|
+
r.splice(b, 1);
|
|
3462
|
+
}
|
|
3463
|
+
function o() {
|
|
3464
|
+
const f = r.find((b) => !b.disabled);
|
|
3465
|
+
f && e.mandatory === "force" && !a.value.length && (a.value = [f.id]);
|
|
3466
|
+
}
|
|
3467
|
+
sr(() => {
|
|
3468
|
+
o();
|
|
3469
|
+
}), mr(() => {
|
|
3470
|
+
n = !0;
|
|
3471
|
+
});
|
|
3472
|
+
function m(f, b) {
|
|
3473
|
+
const A = r.find((N) => N.id === f);
|
|
3474
|
+
if (!(b && A != null && A.disabled))
|
|
3475
|
+
if (e.multiple) {
|
|
3476
|
+
const N = a.value.slice(), C = N.findIndex((h) => h === f), d = ~C;
|
|
3477
|
+
if (b = b ?? !d, d && e.mandatory && N.length <= 1 || !d && e.max != null && N.length + 1 > e.max)
|
|
3478
|
+
return;
|
|
3479
|
+
C < 0 && b ? N.push(f) : C >= 0 && !b && N.splice(C, 1), a.value = N;
|
|
3480
|
+
} else {
|
|
3481
|
+
const N = a.value.includes(f);
|
|
3482
|
+
if (e.mandatory && N)
|
|
3483
|
+
return;
|
|
3484
|
+
a.value = b ?? !N ? [f] : [];
|
|
3485
|
+
}
|
|
3486
|
+
}
|
|
3487
|
+
function v(f) {
|
|
3488
|
+
if (e.multiple && Ur('This method is not supported when using "multiple" prop'), a.value.length) {
|
|
3489
|
+
const b = a.value[0], A = r.findIndex((d) => d.id === b);
|
|
3490
|
+
let N = (A + f) % r.length, C = r[N];
|
|
3491
|
+
for (; C.disabled && N !== A; )
|
|
3492
|
+
N = (N + f) % r.length, C = r[N];
|
|
3493
|
+
if (C.disabled)
|
|
3494
|
+
return;
|
|
3495
|
+
a.value = [r[N].id];
|
|
3496
|
+
} else {
|
|
3497
|
+
const b = r.find((A) => !A.disabled);
|
|
3498
|
+
b && (a.value = [b.id]);
|
|
3499
|
+
}
|
|
3500
|
+
}
|
|
3501
|
+
const _ = {
|
|
3502
|
+
register: l,
|
|
3503
|
+
unregister: i,
|
|
3504
|
+
selected: a,
|
|
3505
|
+
select: m,
|
|
3506
|
+
disabled: Ce(e, "disabled"),
|
|
3507
|
+
prev: () => v(r.length - 1),
|
|
3508
|
+
next: () => v(1),
|
|
3509
|
+
isSelected: (f) => a.value.includes(f),
|
|
3510
|
+
selectedClass: M(() => e.selectedClass),
|
|
3511
|
+
items: M(() => r),
|
|
3512
|
+
getItemIndex: (f) => eo(r, f)
|
|
3513
|
+
};
|
|
3514
|
+
return gt(t, _), _;
|
|
3515
|
+
}
|
|
3516
|
+
function eo(e, t) {
|
|
3517
|
+
const n = ta(e, [t]);
|
|
3518
|
+
return n.length ? e.findIndex((r) => r.id === n[0]) : -1;
|
|
3519
|
+
}
|
|
3520
|
+
function ta(e, t) {
|
|
3521
|
+
const n = [];
|
|
3522
|
+
for (let r = 0; r < e.length; r++) {
|
|
3523
|
+
const a = e[r];
|
|
3524
|
+
a.value != null ? t.find((s) => mn(s, a.value)) != null && n.push(a.id) : t.includes(r) && n.push(a.id);
|
|
3525
|
+
}
|
|
3526
|
+
return n;
|
|
3527
|
+
}
|
|
3528
|
+
function to(e, t) {
|
|
3529
|
+
const n = [];
|
|
3530
|
+
for (let r = 0; r < e.length; r++) {
|
|
3531
|
+
const a = e[r];
|
|
3532
|
+
t.includes(a.id) && n.push(a.value != null ? a.value : r);
|
|
3533
|
+
}
|
|
3534
|
+
return n;
|
|
3535
|
+
}
|
|
3536
|
+
const na = Symbol.for("vuetify:v-chip-group");
|
|
3537
|
+
ee({
|
|
3538
|
+
name: "VChipGroup",
|
|
3539
|
+
props: {
|
|
3540
|
+
column: Boolean,
|
|
3541
|
+
filter: Boolean,
|
|
3542
|
+
valueComparator: {
|
|
3543
|
+
type: Function,
|
|
3544
|
+
default: mn
|
|
3545
|
+
},
|
|
3546
|
+
...ql({
|
|
3547
|
+
selectedClass: "v-chip--selected"
|
|
3548
|
+
}),
|
|
3549
|
+
...Me(),
|
|
3550
|
+
...Lt(),
|
|
3551
|
+
...En({
|
|
3552
|
+
variant: "tonal"
|
|
3553
|
+
})
|
|
3554
|
+
},
|
|
3555
|
+
emits: {
|
|
3556
|
+
"update:modelValue": (e) => !0
|
|
3557
|
+
},
|
|
3558
|
+
setup(e, t) {
|
|
3559
|
+
let {
|
|
3560
|
+
slots: n
|
|
3561
|
+
} = t;
|
|
3562
|
+
const {
|
|
3563
|
+
themeClasses: r
|
|
3564
|
+
} = Ct(e), {
|
|
3565
|
+
isSelected: a,
|
|
3566
|
+
select: s,
|
|
3567
|
+
next: l,
|
|
3568
|
+
prev: i,
|
|
3569
|
+
selected: o
|
|
3570
|
+
} = Zl(e, na);
|
|
3571
|
+
return gn({
|
|
3572
|
+
VChip: {
|
|
3573
|
+
color: Ce(e, "color"),
|
|
3574
|
+
filter: Ce(e, "filter"),
|
|
3575
|
+
variant: Ce(e, "variant")
|
|
3576
|
+
}
|
|
3577
|
+
}), Qe(() => {
|
|
3578
|
+
var m;
|
|
3579
|
+
return P(e.tag, {
|
|
3580
|
+
class: ["v-chip-group", {
|
|
3581
|
+
"v-chip-group--column": e.column
|
|
3582
|
+
}, r.value]
|
|
3583
|
+
}, {
|
|
3584
|
+
default: () => [(m = n.default) == null ? void 0 : m.call(n, {
|
|
3585
|
+
isSelected: a,
|
|
3586
|
+
select: s,
|
|
3587
|
+
next: l,
|
|
3588
|
+
prev: i,
|
|
3589
|
+
selected: o.value
|
|
3590
|
+
})]
|
|
3591
|
+
});
|
|
3592
|
+
}), {};
|
|
3593
|
+
}
|
|
3594
|
+
});
|
|
3595
|
+
const at = an({
|
|
3596
|
+
name: "VDefaultsProvider",
|
|
3597
|
+
props: {
|
|
3598
|
+
defaults: Object,
|
|
3599
|
+
reset: [Number, String],
|
|
3600
|
+
root: Boolean,
|
|
3601
|
+
scoped: Boolean
|
|
3602
|
+
},
|
|
3603
|
+
setup(e, t) {
|
|
3604
|
+
let {
|
|
3605
|
+
slots: n
|
|
3606
|
+
} = t;
|
|
3607
|
+
const {
|
|
3608
|
+
defaults: r,
|
|
3609
|
+
reset: a,
|
|
3610
|
+
root: s,
|
|
3611
|
+
scoped: l
|
|
3612
|
+
} = ur(e);
|
|
3613
|
+
return gn(r, {
|
|
3614
|
+
reset: a,
|
|
3615
|
+
root: s,
|
|
3616
|
+
scoped: l
|
|
3617
|
+
}), () => {
|
|
3618
|
+
var i;
|
|
3619
|
+
return (i = n.default) == null ? void 0 : i.call(n);
|
|
3620
|
+
};
|
|
3621
|
+
}
|
|
3622
|
+
});
|
|
3623
|
+
function se(e) {
|
|
3624
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "top center 0", n = arguments.length > 2 ? arguments[2] : void 0;
|
|
3625
|
+
return ee({
|
|
3626
|
+
name: e,
|
|
3627
|
+
props: {
|
|
3628
|
+
group: Boolean,
|
|
3629
|
+
hideOnLeave: Boolean,
|
|
3630
|
+
leaveAbsolute: Boolean,
|
|
3631
|
+
mode: {
|
|
3632
|
+
type: String,
|
|
3633
|
+
default: n
|
|
3634
|
+
},
|
|
3635
|
+
origin: {
|
|
3636
|
+
type: String,
|
|
3637
|
+
default: t
|
|
3638
|
+
}
|
|
3639
|
+
},
|
|
3640
|
+
setup(r, a) {
|
|
3641
|
+
let {
|
|
3642
|
+
slots: s
|
|
3643
|
+
} = a;
|
|
3644
|
+
return () => {
|
|
3645
|
+
const l = r.group ? Ma : rn;
|
|
3646
|
+
return Oe(l, {
|
|
3647
|
+
name: e,
|
|
3648
|
+
mode: r.mode,
|
|
3649
|
+
onBeforeEnter(i) {
|
|
3650
|
+
i.style.transformOrigin = r.origin;
|
|
3651
|
+
},
|
|
3652
|
+
onLeave(i) {
|
|
3653
|
+
if (r.leaveAbsolute) {
|
|
3654
|
+
const {
|
|
3655
|
+
offsetTop: o,
|
|
3656
|
+
offsetLeft: m,
|
|
3657
|
+
offsetWidth: v,
|
|
3658
|
+
offsetHeight: _
|
|
3659
|
+
} = i;
|
|
3660
|
+
i._transitionInitialStyles = {
|
|
3661
|
+
position: i.style.position,
|
|
3662
|
+
top: i.style.top,
|
|
3663
|
+
left: i.style.left,
|
|
3664
|
+
width: i.style.width,
|
|
3665
|
+
height: i.style.height
|
|
3666
|
+
}, i.style.position = "absolute", i.style.top = `${o}px`, i.style.left = `${m}px`, i.style.width = `${v}px`, i.style.height = `${_}px`;
|
|
3667
|
+
}
|
|
3668
|
+
r.hideOnLeave && i.style.setProperty("display", "none", "important");
|
|
3669
|
+
},
|
|
3670
|
+
onAfterLeave(i) {
|
|
3671
|
+
if (r.leaveAbsolute && i != null && i._transitionInitialStyles) {
|
|
3672
|
+
const {
|
|
3673
|
+
position: o,
|
|
3674
|
+
top: m,
|
|
3675
|
+
left: v,
|
|
3676
|
+
width: _,
|
|
3677
|
+
height: f
|
|
3678
|
+
} = i._transitionInitialStyles;
|
|
3679
|
+
delete i._transitionInitialStyles, i.style.position = o || "", i.style.top = m || "", i.style.left = v || "", i.style.width = _ || "", i.style.height = f || "";
|
|
3680
|
+
}
|
|
3681
|
+
}
|
|
3682
|
+
}, s.default);
|
|
3683
|
+
};
|
|
3684
|
+
}
|
|
3685
|
+
});
|
|
3686
|
+
}
|
|
3687
|
+
function ra(e, t) {
|
|
3688
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "in-out";
|
|
3689
|
+
return ee({
|
|
3690
|
+
name: e,
|
|
3691
|
+
props: {
|
|
3692
|
+
mode: {
|
|
3693
|
+
type: String,
|
|
3694
|
+
default: n
|
|
3695
|
+
}
|
|
3696
|
+
},
|
|
3697
|
+
setup(r, a) {
|
|
3698
|
+
let {
|
|
3699
|
+
slots: s
|
|
3700
|
+
} = a;
|
|
3701
|
+
return () => Oe(rn, {
|
|
3702
|
+
name: e,
|
|
3703
|
+
// mode: props.mode, // TODO: vuejs/vue-next#3104
|
|
3704
|
+
...t
|
|
3705
|
+
}, s.default);
|
|
3706
|
+
}
|
|
3707
|
+
});
|
|
3708
|
+
}
|
|
3709
|
+
function aa() {
|
|
3710
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
3711
|
+
const n = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1) ? "width" : "height", r = Fa(`offset-${n}`);
|
|
3712
|
+
return {
|
|
3713
|
+
onBeforeEnter(l) {
|
|
3714
|
+
l._parent = l.parentNode, l._initialStyle = {
|
|
3715
|
+
transition: l.style.transition,
|
|
3716
|
+
overflow: l.style.overflow,
|
|
3717
|
+
[n]: l.style[n]
|
|
3718
|
+
};
|
|
3719
|
+
},
|
|
3720
|
+
onEnter(l) {
|
|
3721
|
+
const i = l._initialStyle;
|
|
3722
|
+
l.style.setProperty("transition", "none", "important"), l.style.overflow = "hidden";
|
|
3723
|
+
const o = `${l[r]}px`;
|
|
3724
|
+
l.style[n] = "0", l.offsetHeight, l.style.transition = i.transition, e && l._parent && l._parent.classList.add(e), requestAnimationFrame(() => {
|
|
3725
|
+
l.style[n] = o;
|
|
3726
|
+
});
|
|
3727
|
+
},
|
|
3728
|
+
onAfterEnter: s,
|
|
3729
|
+
onEnterCancelled: s,
|
|
3730
|
+
onLeave(l) {
|
|
3731
|
+
l._initialStyle = {
|
|
3732
|
+
transition: "",
|
|
3733
|
+
overflow: l.style.overflow,
|
|
3734
|
+
[n]: l.style[n]
|
|
3735
|
+
}, l.style.overflow = "hidden", l.style[n] = `${l[r]}px`, l.offsetHeight, requestAnimationFrame(() => l.style[n] = "0");
|
|
3736
|
+
},
|
|
3737
|
+
onAfterLeave: a,
|
|
3738
|
+
onLeaveCancelled: a
|
|
3739
|
+
};
|
|
3740
|
+
function a(l) {
|
|
3741
|
+
e && l._parent && l._parent.classList.remove(e), s(l);
|
|
3742
|
+
}
|
|
3743
|
+
function s(l) {
|
|
3744
|
+
const i = l._initialStyle[n];
|
|
3745
|
+
l.style.overflow = l._initialStyle.overflow, i != null && (l.style[n] = i), delete l._initialStyle;
|
|
3746
|
+
}
|
|
3747
|
+
}
|
|
3748
|
+
se("fab-transition", "center center", "out-in");
|
|
3749
|
+
se("dialog-bottom-transition");
|
|
3750
|
+
se("dialog-top-transition");
|
|
3751
|
+
se("fade-transition");
|
|
3752
|
+
se("scale-transition");
|
|
3753
|
+
se("scroll-x-transition");
|
|
3754
|
+
se("scroll-x-reverse-transition");
|
|
3755
|
+
se("scroll-y-transition");
|
|
3756
|
+
se("scroll-y-reverse-transition");
|
|
3757
|
+
se("slide-x-transition");
|
|
3758
|
+
se("slide-x-reverse-transition");
|
|
3759
|
+
se("slide-y-transition");
|
|
3760
|
+
se("slide-y-reverse-transition");
|
|
3761
|
+
ra("expand-transition", aa());
|
|
3762
|
+
const no = ra("expand-x-transition", aa("", !0)), ro = K({
|
|
3763
|
+
border: [Boolean, Number, String]
|
|
3764
|
+
}, "border");
|
|
3765
|
+
function ao(e) {
|
|
3766
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Je();
|
|
3767
|
+
return {
|
|
3768
|
+
borderClasses: M(() => {
|
|
3769
|
+
const r = Xe(e) ? e.value : e.border, a = [];
|
|
3770
|
+
if (r === !0 || r === "")
|
|
3771
|
+
a.push(`${t}--border`);
|
|
3772
|
+
else if (typeof r == "string" || r === 0)
|
|
3773
|
+
for (const s of String(r).split(" "))
|
|
3774
|
+
a.push(`border-${s}`);
|
|
3775
|
+
return a;
|
|
3776
|
+
})
|
|
3777
|
+
};
|
|
3778
|
+
}
|
|
3779
|
+
const so = K({
|
|
3780
|
+
elevation: {
|
|
3781
|
+
type: [Number, String],
|
|
3782
|
+
validator(e) {
|
|
3783
|
+
const t = parseInt(e);
|
|
3784
|
+
return !isNaN(t) && t >= 0 && // Material Design has a maximum elevation of 24
|
|
3785
|
+
// https://material.io/design/environment/elevation.html#default-elevations
|
|
3786
|
+
t <= 24;
|
|
3787
|
+
}
|
|
3788
|
+
}
|
|
3789
|
+
}, "elevation");
|
|
3790
|
+
function lo(e) {
|
|
3791
|
+
return {
|
|
3792
|
+
elevationClasses: M(() => {
|
|
3793
|
+
const n = Xe(e) ? e.value : e.elevation, r = [];
|
|
3794
|
+
return n == null || r.push(`elevation-${n}`), r;
|
|
3795
|
+
})
|
|
3796
|
+
};
|
|
3797
|
+
}
|
|
3798
|
+
function oo(e, t) {
|
|
3799
|
+
const n = Va("RouterLink"), r = M(() => !!(e.href || e.to)), a = M(() => (r == null ? void 0 : r.value) || Xn(t, "click") || Xn(e, "click"));
|
|
3800
|
+
if (typeof n == "string")
|
|
3801
|
+
return {
|
|
3802
|
+
isLink: r,
|
|
3803
|
+
isClickable: a,
|
|
3804
|
+
href: Ce(e, "href")
|
|
3805
|
+
};
|
|
3806
|
+
const s = e.to ? n.useLink(e) : void 0;
|
|
3807
|
+
return {
|
|
3808
|
+
isLink: r,
|
|
3809
|
+
isClickable: a,
|
|
3810
|
+
route: s == null ? void 0 : s.route,
|
|
3811
|
+
navigate: s == null ? void 0 : s.navigate,
|
|
3812
|
+
isActive: s && M(() => {
|
|
3813
|
+
var l, i;
|
|
3814
|
+
return e.exact ? (l = s.isExactActive) == null ? void 0 : l.value : (i = s.isActive) == null ? void 0 : i.value;
|
|
3815
|
+
}),
|
|
3816
|
+
href: M(() => e.to ? s == null ? void 0 : s.route.value.href : e.href)
|
|
3817
|
+
};
|
|
3818
|
+
}
|
|
3819
|
+
const io = K({
|
|
3820
|
+
href: String,
|
|
3821
|
+
replace: Boolean,
|
|
3822
|
+
to: [String, Object],
|
|
3823
|
+
exact: Boolean
|
|
3824
|
+
}, "router");
|
|
3825
|
+
const en = Symbol("rippleStop"), uo = 80;
|
|
3826
|
+
function er(e, t) {
|
|
3827
|
+
e.style.transform = t, e.style.webkitTransform = t;
|
|
3828
|
+
}
|
|
3829
|
+
function Wt(e, t) {
|
|
3830
|
+
e.style.opacity = `calc(${t} * var(--v-theme-overlay-multiplier))`;
|
|
3831
|
+
}
|
|
3832
|
+
function tn(e) {
|
|
3833
|
+
return e.constructor.name === "TouchEvent";
|
|
3834
|
+
}
|
|
3835
|
+
function sa(e) {
|
|
3836
|
+
return e.constructor.name === "KeyboardEvent";
|
|
3837
|
+
}
|
|
3838
|
+
const co = function(e, t) {
|
|
3839
|
+
var n;
|
|
3840
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = 0, s = 0;
|
|
3841
|
+
if (!sa(e)) {
|
|
3842
|
+
const f = t.getBoundingClientRect(), b = tn(e) ? e.touches[e.touches.length - 1] : e;
|
|
3843
|
+
a = b.clientX - f.left, s = b.clientY - f.top;
|
|
3844
|
+
}
|
|
3845
|
+
let l = 0, i = 0.3;
|
|
3846
|
+
(n = t._ripple) != null && n.circle ? (i = 0.15, l = t.clientWidth / 2, l = r.center ? l : l + Math.sqrt((a - l) ** 2 + (s - l) ** 2) / 4) : l = Math.sqrt(t.clientWidth ** 2 + t.clientHeight ** 2) / 2;
|
|
3847
|
+
const o = `${(t.clientWidth - l * 2) / 2}px`, m = `${(t.clientHeight - l * 2) / 2}px`, v = r.center ? o : `${a - l}px`, _ = r.center ? m : `${s - l}px`;
|
|
3848
|
+
return {
|
|
3849
|
+
radius: l,
|
|
3850
|
+
scale: i,
|
|
3851
|
+
x: v,
|
|
3852
|
+
y: _,
|
|
3853
|
+
centerX: o,
|
|
3854
|
+
centerY: m
|
|
3855
|
+
};
|
|
3856
|
+
}, mt = {
|
|
3857
|
+
/* eslint-disable max-statements */
|
|
3858
|
+
show(e, t) {
|
|
3859
|
+
var n;
|
|
3860
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3861
|
+
if (!(t != null && (n = t._ripple) != null && n.enabled))
|
|
3862
|
+
return;
|
|
3863
|
+
const a = document.createElement("span"), s = document.createElement("span");
|
|
3864
|
+
a.appendChild(s), a.className = "v-ripple__container", r.class && (a.className += ` ${r.class}`);
|
|
3865
|
+
const {
|
|
3866
|
+
radius: l,
|
|
3867
|
+
scale: i,
|
|
3868
|
+
x: o,
|
|
3869
|
+
y: m,
|
|
3870
|
+
centerX: v,
|
|
3871
|
+
centerY: _
|
|
3872
|
+
} = co(e, t, r), f = `${l * 2}px`;
|
|
3873
|
+
s.className = "v-ripple__animation", s.style.width = f, s.style.height = f, t.appendChild(a);
|
|
3874
|
+
const b = window.getComputedStyle(t);
|
|
3875
|
+
b && b.position === "static" && (t.style.position = "relative", t.dataset.previousPosition = "static"), s.classList.add("v-ripple__animation--enter"), s.classList.add("v-ripple__animation--visible"), er(s, `translate(${o}, ${m}) scale3d(${i},${i},${i})`), Wt(s, 0), s.dataset.activated = String(performance.now()), setTimeout(() => {
|
|
3876
|
+
s.classList.remove("v-ripple__animation--enter"), s.classList.add("v-ripple__animation--in"), er(s, `translate(${v}, ${_}) scale3d(1,1,1)`), Wt(s, 0.08);
|
|
3877
|
+
}, 0);
|
|
3878
|
+
},
|
|
3879
|
+
hide(e) {
|
|
3880
|
+
var t;
|
|
3881
|
+
if (!(e != null && (t = e._ripple) != null && t.enabled))
|
|
3882
|
+
return;
|
|
3883
|
+
const n = e.getElementsByClassName("v-ripple__animation");
|
|
3884
|
+
if (n.length === 0)
|
|
3885
|
+
return;
|
|
3886
|
+
const r = n[n.length - 1];
|
|
3887
|
+
if (r.dataset.isHiding)
|
|
3888
|
+
return;
|
|
3889
|
+
r.dataset.isHiding = "true";
|
|
3890
|
+
const a = performance.now() - Number(r.dataset.activated), s = Math.max(250 - a, 0);
|
|
3891
|
+
setTimeout(() => {
|
|
3892
|
+
r.classList.remove("v-ripple__animation--in"), r.classList.add("v-ripple__animation--out"), Wt(r, 0), setTimeout(() => {
|
|
3893
|
+
e.getElementsByClassName("v-ripple__animation").length === 1 && e.dataset.previousPosition && (e.style.position = e.dataset.previousPosition, delete e.dataset.previousPosition), r.parentNode && e.removeChild(r.parentNode);
|
|
3894
|
+
}, 300);
|
|
3895
|
+
}, s);
|
|
3896
|
+
}
|
|
3897
|
+
};
|
|
3898
|
+
function la(e) {
|
|
3899
|
+
return typeof e > "u" || !!e;
|
|
3900
|
+
}
|
|
3901
|
+
function ze(e) {
|
|
3902
|
+
const t = {}, n = e.currentTarget;
|
|
3903
|
+
if (!(!(n != null && n._ripple) || n._ripple.touched || e[en])) {
|
|
3904
|
+
if (e[en] = !0, tn(e))
|
|
3905
|
+
n._ripple.touched = !0, n._ripple.isTouch = !0;
|
|
3906
|
+
else if (n._ripple.isTouch)
|
|
3907
|
+
return;
|
|
3908
|
+
if (t.center = n._ripple.centered || sa(e), n._ripple.class && (t.class = n._ripple.class), tn(e)) {
|
|
3909
|
+
if (n._ripple.showTimerCommit)
|
|
3910
|
+
return;
|
|
3911
|
+
n._ripple.showTimerCommit = () => {
|
|
3912
|
+
mt.show(e, n, t);
|
|
3913
|
+
}, n._ripple.showTimer = window.setTimeout(() => {
|
|
3914
|
+
var r;
|
|
3915
|
+
n != null && (r = n._ripple) != null && r.showTimerCommit && (n._ripple.showTimerCommit(), n._ripple.showTimerCommit = null);
|
|
3916
|
+
}, uo);
|
|
3917
|
+
} else
|
|
3918
|
+
mt.show(e, n, t);
|
|
3919
|
+
}
|
|
3920
|
+
}
|
|
3921
|
+
function tr(e) {
|
|
3922
|
+
e[en] = !0;
|
|
3923
|
+
}
|
|
3924
|
+
function re(e) {
|
|
3925
|
+
const t = e.currentTarget;
|
|
3926
|
+
if (!(!t || !t._ripple)) {
|
|
3927
|
+
if (window.clearTimeout(t._ripple.showTimer), e.type === "touchend" && t._ripple.showTimerCommit) {
|
|
3928
|
+
t._ripple.showTimerCommit(), t._ripple.showTimerCommit = null, t._ripple.showTimer = window.setTimeout(() => {
|
|
3929
|
+
re(e);
|
|
3930
|
+
});
|
|
3931
|
+
return;
|
|
3932
|
+
}
|
|
3933
|
+
window.setTimeout(() => {
|
|
3934
|
+
t._ripple && (t._ripple.touched = !1);
|
|
3935
|
+
}), mt.hide(t);
|
|
3936
|
+
}
|
|
3937
|
+
}
|
|
3938
|
+
function oa(e) {
|
|
3939
|
+
const t = e.currentTarget;
|
|
3940
|
+
!t || !t._ripple || (t._ripple.showTimerCommit && (t._ripple.showTimerCommit = null), window.clearTimeout(t._ripple.showTimer));
|
|
3941
|
+
}
|
|
3942
|
+
let He = !1;
|
|
3943
|
+
function ia(e) {
|
|
3944
|
+
!He && (e.keyCode === Kn.enter || e.keyCode === Kn.space) && (He = !0, ze(e));
|
|
3945
|
+
}
|
|
3946
|
+
function ua(e) {
|
|
3947
|
+
He = !1, re(e);
|
|
3948
|
+
}
|
|
3949
|
+
function ca(e) {
|
|
3950
|
+
He && (He = !1, re(e));
|
|
3951
|
+
}
|
|
3952
|
+
function fa(e, t, n) {
|
|
3953
|
+
const {
|
|
3954
|
+
value: r,
|
|
3955
|
+
modifiers: a
|
|
3956
|
+
} = t, s = la(r);
|
|
3957
|
+
if (s || mt.hide(e), e._ripple = e._ripple ?? {}, e._ripple.enabled = s, e._ripple.centered = a.center, e._ripple.circle = a.circle, Zt(r) && r.class && (e._ripple.class = r.class), s && !n) {
|
|
3958
|
+
if (a.stop) {
|
|
3959
|
+
e.addEventListener("touchstart", tr, {
|
|
3960
|
+
passive: !0
|
|
3961
|
+
}), e.addEventListener("mousedown", tr);
|
|
3962
|
+
return;
|
|
3963
|
+
}
|
|
3964
|
+
e.addEventListener("touchstart", ze, {
|
|
3965
|
+
passive: !0
|
|
3966
|
+
}), e.addEventListener("touchend", re, {
|
|
3967
|
+
passive: !0
|
|
3968
|
+
}), e.addEventListener("touchmove", oa, {
|
|
3969
|
+
passive: !0
|
|
3970
|
+
}), e.addEventListener("touchcancel", re), e.addEventListener("mousedown", ze), e.addEventListener("mouseup", re), e.addEventListener("mouseleave", re), e.addEventListener("keydown", ia), e.addEventListener("keyup", ua), e.addEventListener("blur", ca), e.addEventListener("dragstart", re, {
|
|
3971
|
+
passive: !0
|
|
3972
|
+
});
|
|
3973
|
+
} else
|
|
3974
|
+
!s && n && da(e);
|
|
3975
|
+
}
|
|
3976
|
+
function da(e) {
|
|
3977
|
+
e.removeEventListener("mousedown", ze), e.removeEventListener("touchstart", ze), e.removeEventListener("touchend", re), e.removeEventListener("touchmove", oa), e.removeEventListener("touchcancel", re), e.removeEventListener("mouseup", re), e.removeEventListener("mouseleave", re), e.removeEventListener("keydown", ia), e.removeEventListener("keyup", ua), e.removeEventListener("dragstart", re), e.removeEventListener("blur", ca);
|
|
3978
|
+
}
|
|
3979
|
+
function fo(e, t) {
|
|
3980
|
+
fa(e, t, !1);
|
|
3981
|
+
}
|
|
3982
|
+
function mo(e) {
|
|
3983
|
+
delete e._ripple, da(e);
|
|
3984
|
+
}
|
|
3985
|
+
function _o(e, t) {
|
|
3986
|
+
if (t.value === t.oldValue)
|
|
3987
|
+
return;
|
|
3988
|
+
const n = la(t.oldValue);
|
|
3989
|
+
fa(e, t, n);
|
|
3990
|
+
}
|
|
3991
|
+
const go = {
|
|
3992
|
+
mounted: fo,
|
|
3993
|
+
unmounted: mo,
|
|
3994
|
+
updated: _o
|
|
3995
|
+
}, vo = ee({
|
|
3996
|
+
name: "VChip",
|
|
3997
|
+
directives: {
|
|
3998
|
+
Ripple: go
|
|
3999
|
+
},
|
|
4000
|
+
props: {
|
|
4001
|
+
activeClass: String,
|
|
4002
|
+
appendAvatar: String,
|
|
4003
|
+
appendIcon: Pe,
|
|
4004
|
+
closable: Boolean,
|
|
4005
|
+
closeIcon: {
|
|
4006
|
+
type: Pe,
|
|
4007
|
+
default: "$delete"
|
|
4008
|
+
},
|
|
4009
|
+
closeLabel: {
|
|
4010
|
+
type: String,
|
|
4011
|
+
default: "$vuetify.close"
|
|
4012
|
+
},
|
|
4013
|
+
draggable: Boolean,
|
|
4014
|
+
filter: Boolean,
|
|
4015
|
+
filterIcon: {
|
|
4016
|
+
type: String,
|
|
4017
|
+
default: "$complete"
|
|
4018
|
+
},
|
|
4019
|
+
label: Boolean,
|
|
4020
|
+
link: Boolean,
|
|
4021
|
+
pill: Boolean,
|
|
4022
|
+
prependAvatar: String,
|
|
4023
|
+
prependIcon: Pe,
|
|
4024
|
+
ripple: {
|
|
4025
|
+
type: Boolean,
|
|
4026
|
+
default: !0
|
|
4027
|
+
},
|
|
4028
|
+
text: String,
|
|
4029
|
+
modelValue: {
|
|
4030
|
+
type: Boolean,
|
|
4031
|
+
default: !0
|
|
4032
|
+
},
|
|
4033
|
+
...ro(),
|
|
4034
|
+
...qr(),
|
|
4035
|
+
...so(),
|
|
4036
|
+
...Jl(),
|
|
4037
|
+
...Qr(),
|
|
4038
|
+
...io(),
|
|
4039
|
+
...vn(),
|
|
4040
|
+
...Me({
|
|
4041
|
+
tag: "span"
|
|
4042
|
+
}),
|
|
4043
|
+
...Lt(),
|
|
4044
|
+
...En({
|
|
4045
|
+
variant: "tonal"
|
|
4046
|
+
})
|
|
4047
|
+
},
|
|
4048
|
+
emits: {
|
|
4049
|
+
"click:close": (e) => !0,
|
|
4050
|
+
"update:modelValue": (e) => !0,
|
|
4051
|
+
"group:selected": (e) => !0,
|
|
4052
|
+
click: (e) => !0
|
|
4053
|
+
},
|
|
4054
|
+
setup(e, t) {
|
|
4055
|
+
let {
|
|
4056
|
+
attrs: n,
|
|
4057
|
+
emit: r,
|
|
4058
|
+
slots: a
|
|
4059
|
+
} = t;
|
|
4060
|
+
const {
|
|
4061
|
+
borderClasses: s
|
|
4062
|
+
} = ao(e), {
|
|
4063
|
+
colorClasses: l,
|
|
4064
|
+
colorStyles: i,
|
|
4065
|
+
variantClasses: o
|
|
4066
|
+
} = Xr(e), {
|
|
4067
|
+
densityClasses: m
|
|
4068
|
+
} = Jr(e), {
|
|
4069
|
+
elevationClasses: v
|
|
4070
|
+
} = lo(e), {
|
|
4071
|
+
roundedClasses: _
|
|
4072
|
+
} = Zr(e), {
|
|
4073
|
+
sizeClasses: f
|
|
4074
|
+
} = pn(e), {
|
|
4075
|
+
themeClasses: b
|
|
4076
|
+
} = Ct(e), A = ea(e, "modelValue"), N = Ql(e, na, !1), C = oo(e, n), d = M(() => !e.disabled && (!!N || C.isClickable.value || e.link));
|
|
4077
|
+
function h(g) {
|
|
4078
|
+
A.value = !1, r("click:close", g);
|
|
4079
|
+
}
|
|
4080
|
+
function T(g) {
|
|
4081
|
+
var p;
|
|
4082
|
+
r("click", g), d.value && ((p = C.navigate) == null || p.call(C, g), N == null || N.toggle());
|
|
4083
|
+
}
|
|
4084
|
+
return () => {
|
|
4085
|
+
var g;
|
|
4086
|
+
const p = C.isLink.value ? "a" : e.tag, S = !!(a.append || e.appendIcon || e.appendAvatar), O = !!(a.close || e.closable), D = !!(a.filter || e.filter) && N, w = !!(a.prepend || e.prependIcon || e.prependAvatar), F = !N || N.isSelected.value;
|
|
4087
|
+
return A.value && ot(P(p, {
|
|
4088
|
+
class: ["v-chip", {
|
|
4089
|
+
"v-chip--disabled": e.disabled,
|
|
4090
|
+
"v-chip--label": e.label,
|
|
4091
|
+
"v-chip--link": d.value,
|
|
4092
|
+
"v-chip--filter": D,
|
|
4093
|
+
"v-chip--pill": e.pill
|
|
4094
|
+
}, b.value, s.value, F ? l.value : void 0, m.value, v.value, _.value, f.value, o.value, N == null ? void 0 : N.selectedClass.value],
|
|
4095
|
+
style: [F ? i.value : void 0],
|
|
4096
|
+
disabled: e.disabled || void 0,
|
|
4097
|
+
draggable: e.draggable,
|
|
4098
|
+
href: C.href.value,
|
|
4099
|
+
onClick: T
|
|
4100
|
+
}, {
|
|
4101
|
+
default: () => [Kr(d.value, "v-chip"), D && P(at, {
|
|
4102
|
+
key: "filter",
|
|
4103
|
+
defaults: {
|
|
4104
|
+
VIcon: {
|
|
4105
|
+
icon: e.filterIcon
|
|
4106
|
+
}
|
|
4107
|
+
}
|
|
4108
|
+
}, {
|
|
4109
|
+
default: () => [P(no, null, {
|
|
4110
|
+
default: () => [ot(P("div", {
|
|
4111
|
+
class: "v-chip__filter"
|
|
4112
|
+
}, [a.filter ? a.filter() : P(Be, null, null)]), [[dr, N.isSelected.value]])]
|
|
4113
|
+
})]
|
|
4114
|
+
}), w && P(at, {
|
|
4115
|
+
key: "prepend",
|
|
4116
|
+
defaults: {
|
|
4117
|
+
VAvatar: {
|
|
4118
|
+
image: e.prependAvatar
|
|
4119
|
+
},
|
|
4120
|
+
VIcon: {
|
|
4121
|
+
icon: e.prependIcon
|
|
4122
|
+
}
|
|
4123
|
+
}
|
|
4124
|
+
}, {
|
|
4125
|
+
default: () => [a.prepend ? P("div", {
|
|
4126
|
+
class: "v-chip__prepend"
|
|
4127
|
+
}, [a.prepend()]) : e.prependAvatar ? P(Zn, {
|
|
4128
|
+
start: !0
|
|
4129
|
+
}, null) : e.prependIcon ? P(Be, {
|
|
4130
|
+
start: !0
|
|
4131
|
+
}, null) : void 0]
|
|
4132
|
+
}), ((g = a.default) == null ? void 0 : g.call(a, {
|
|
4133
|
+
isSelected: N == null ? void 0 : N.isSelected.value,
|
|
4134
|
+
selectedClass: N == null ? void 0 : N.selectedClass.value,
|
|
4135
|
+
select: N == null ? void 0 : N.select,
|
|
4136
|
+
toggle: N == null ? void 0 : N.toggle,
|
|
4137
|
+
value: N == null ? void 0 : N.value.value,
|
|
4138
|
+
disabled: e.disabled
|
|
4139
|
+
})) ?? e.text, S && P(at, {
|
|
4140
|
+
key: "append",
|
|
4141
|
+
defaults: {
|
|
4142
|
+
VAvatar: {
|
|
4143
|
+
image: e.appendAvatar
|
|
4144
|
+
},
|
|
4145
|
+
VIcon: {
|
|
4146
|
+
icon: e.appendIcon
|
|
4147
|
+
}
|
|
4148
|
+
}
|
|
4149
|
+
}, {
|
|
4150
|
+
default: () => [a.append ? P("div", {
|
|
4151
|
+
class: "v-chip__append"
|
|
4152
|
+
}, [a.append()]) : e.appendAvatar ? P(Zn, {
|
|
4153
|
+
end: !0
|
|
4154
|
+
}, null) : e.appendIcon ? P(Be, {
|
|
4155
|
+
end: !0
|
|
4156
|
+
}, null) : void 0]
|
|
4157
|
+
}), O && P(at, {
|
|
4158
|
+
key: "close",
|
|
4159
|
+
defaults: {
|
|
4160
|
+
VIcon: {
|
|
4161
|
+
icon: e.closeIcon,
|
|
4162
|
+
size: "x-small"
|
|
4163
|
+
}
|
|
4164
|
+
}
|
|
4165
|
+
}, {
|
|
4166
|
+
default: () => [P("div", {
|
|
4167
|
+
class: "v-chip__close",
|
|
4168
|
+
onClick: h
|
|
4169
|
+
}, [a.close ? a.close() : P(Be, null, null)])]
|
|
4170
|
+
})]
|
|
4171
|
+
}), [[fr("ripple"), d.value && e.ripple, null]]);
|
|
4172
|
+
};
|
|
4173
|
+
}
|
|
4174
|
+
}), po = { key: 1 }, Wo = /* @__PURE__ */ an({
|
|
4175
|
+
__name: "ABooleanValue",
|
|
4176
|
+
props: {
|
|
4177
|
+
value: { type: [Number, String, Boolean] },
|
|
4178
|
+
chip: { type: Boolean, default: !1 },
|
|
4179
|
+
invertColor: { type: Boolean, default: !1 }
|
|
4180
|
+
},
|
|
4181
|
+
setup(e) {
|
|
4182
|
+
const t = e, { t: n } = yt(), r = M(() => t.value === !0 || t.value === 1 || t.value === "true"), a = M(() => r.value ? n("common.boolean.true") : n("common.boolean.false")), s = M(() => t.invertColor ? r.value ? "error" : "success" : r.value ? "success" : "error");
|
|
4183
|
+
return (l, i) => e.chip ? (it(), _r(vo, {
|
|
4184
|
+
key: 0,
|
|
4185
|
+
color: Ne(s),
|
|
4186
|
+
label: "",
|
|
4187
|
+
size: "small"
|
|
4188
|
+
}, {
|
|
4189
|
+
default: Bt(() => [
|
|
4190
|
+
Ua(ut(Ne(a)), 1)
|
|
4191
|
+
]),
|
|
4192
|
+
_: 1
|
|
4193
|
+
}, 8, ["color"])) : (it(), gr("span", po, ut(Ne(a)), 1));
|
|
4194
|
+
}
|
|
4195
|
+
});
|
|
4196
|
+
const hn = ["sm", "md", "lg", "xl", "xxl"], ma = (() => hn.reduce((e, t) => (e[t] = {
|
|
4197
|
+
type: [Boolean, String, Number],
|
|
4198
|
+
default: !1
|
|
4199
|
+
}, e), {}))(), _a = (() => hn.reduce((e, t) => (e["offset" + _t(t)] = {
|
|
4200
|
+
type: [String, Number],
|
|
4201
|
+
default: null
|
|
4202
|
+
}, e), {}))(), ga = (() => hn.reduce((e, t) => (e["order" + _t(t)] = {
|
|
4203
|
+
type: [String, Number],
|
|
4204
|
+
default: null
|
|
4205
|
+
}, e), {}))(), nr = {
|
|
4206
|
+
col: Object.keys(ma),
|
|
4207
|
+
offset: Object.keys(_a),
|
|
4208
|
+
order: Object.keys(ga)
|
|
4209
|
+
};
|
|
4210
|
+
function Eo(e, t, n) {
|
|
4211
|
+
let r = e;
|
|
4212
|
+
if (!(n == null || n === !1)) {
|
|
4213
|
+
if (t) {
|
|
4214
|
+
const a = t.replace(e, "");
|
|
4215
|
+
r += `-${a}`;
|
|
4216
|
+
}
|
|
4217
|
+
return e === "col" && (r = "v-" + r), e === "col" && (n === "" || n === !0) || (r += `-${n}`), r.toLowerCase();
|
|
4218
|
+
}
|
|
4219
|
+
}
|
|
4220
|
+
const ho = ["auto", "start", "end", "center", "baseline", "stretch"], No = ee({
|
|
4221
|
+
name: "VCol",
|
|
4222
|
+
props: {
|
|
4223
|
+
cols: {
|
|
4224
|
+
type: [Boolean, String, Number],
|
|
4225
|
+
default: !1
|
|
4226
|
+
},
|
|
4227
|
+
...ma,
|
|
4228
|
+
offset: {
|
|
4229
|
+
type: [String, Number],
|
|
4230
|
+
default: null
|
|
4231
|
+
},
|
|
4232
|
+
..._a,
|
|
4233
|
+
order: {
|
|
4234
|
+
type: [String, Number],
|
|
4235
|
+
default: null
|
|
4236
|
+
},
|
|
4237
|
+
...ga,
|
|
4238
|
+
alignSelf: {
|
|
4239
|
+
type: String,
|
|
4240
|
+
default: null,
|
|
4241
|
+
validator: (e) => ho.includes(e)
|
|
4242
|
+
},
|
|
4243
|
+
...Me()
|
|
4244
|
+
},
|
|
4245
|
+
setup(e, t) {
|
|
4246
|
+
let {
|
|
4247
|
+
slots: n
|
|
4248
|
+
} = t;
|
|
4249
|
+
const r = M(() => {
|
|
4250
|
+
const a = [];
|
|
4251
|
+
let s;
|
|
4252
|
+
for (s in nr)
|
|
4253
|
+
nr[s].forEach((i) => {
|
|
4254
|
+
const o = e[i], m = Eo(s, i, o);
|
|
4255
|
+
m && a.push(m);
|
|
4256
|
+
});
|
|
4257
|
+
const l = a.some((i) => i.startsWith("v-col-"));
|
|
4258
|
+
return a.push({
|
|
4259
|
+
// Default to .v-col if no other col-{bp}-* classes generated nor `cols` specified.
|
|
4260
|
+
"v-col": !l || !e.cols,
|
|
4261
|
+
[`v-col-${e.cols}`]: e.cols,
|
|
4262
|
+
[`offset-${e.offset}`]: e.offset,
|
|
4263
|
+
[`order-${e.order}`]: e.order,
|
|
4264
|
+
[`align-self-${e.alignSelf}`]: e.alignSelf
|
|
4265
|
+
}), a;
|
|
4266
|
+
});
|
|
4267
|
+
return () => {
|
|
4268
|
+
var a;
|
|
4269
|
+
return Oe(e.tag, {
|
|
4270
|
+
class: r.value
|
|
4271
|
+
}, (a = n.default) == null ? void 0 : a.call(n));
|
|
4272
|
+
};
|
|
4273
|
+
}
|
|
4274
|
+
}), yo = ["sm", "md", "lg", "xl", "xxl"], Nn = ["start", "end", "center"], va = ["space-between", "space-around", "space-evenly"];
|
|
4275
|
+
function yn(e, t) {
|
|
4276
|
+
return yo.reduce((n, r) => (n[e + _t(r)] = t(), n), {});
|
|
4277
|
+
}
|
|
4278
|
+
const bo = [...Nn, "baseline", "stretch"], pa = (e) => bo.includes(e), Ea = yn("align", () => ({
|
|
4279
|
+
type: String,
|
|
4280
|
+
default: null,
|
|
4281
|
+
validator: pa
|
|
4282
|
+
})), To = [...Nn, ...va], ha = (e) => To.includes(e), Na = yn("justify", () => ({
|
|
4283
|
+
type: String,
|
|
4284
|
+
default: null,
|
|
4285
|
+
validator: ha
|
|
4286
|
+
})), Lo = [...Nn, ...va, "stretch"], ya = (e) => Lo.includes(e), ba = yn("alignContent", () => ({
|
|
4287
|
+
type: String,
|
|
4288
|
+
default: null,
|
|
4289
|
+
validator: ya
|
|
4290
|
+
})), rr = {
|
|
4291
|
+
align: Object.keys(Ea),
|
|
4292
|
+
justify: Object.keys(Na),
|
|
4293
|
+
alignContent: Object.keys(ba)
|
|
4294
|
+
}, Co = {
|
|
4295
|
+
align: "align",
|
|
4296
|
+
justify: "justify",
|
|
4297
|
+
alignContent: "align-content"
|
|
4298
|
+
};
|
|
4299
|
+
function So(e, t, n) {
|
|
4300
|
+
let r = Co[e];
|
|
4301
|
+
if (n != null) {
|
|
4302
|
+
if (t) {
|
|
4303
|
+
const a = t.replace(e, "");
|
|
4304
|
+
r += `-${a}`;
|
|
4305
|
+
}
|
|
4306
|
+
return r += `-${n}`, r.toLowerCase();
|
|
4307
|
+
}
|
|
4308
|
+
}
|
|
4309
|
+
const Oo = ee({
|
|
4310
|
+
name: "VRow",
|
|
4311
|
+
props: {
|
|
4312
|
+
dense: Boolean,
|
|
4313
|
+
noGutters: Boolean,
|
|
4314
|
+
align: {
|
|
4315
|
+
type: String,
|
|
4316
|
+
default: null,
|
|
4317
|
+
validator: pa
|
|
4318
|
+
},
|
|
4319
|
+
...Ea,
|
|
4320
|
+
justify: {
|
|
4321
|
+
type: String,
|
|
4322
|
+
default: null,
|
|
4323
|
+
validator: ha
|
|
4324
|
+
},
|
|
4325
|
+
...Na,
|
|
4326
|
+
alignContent: {
|
|
4327
|
+
type: String,
|
|
4328
|
+
default: null,
|
|
4329
|
+
validator: ya
|
|
4330
|
+
},
|
|
4331
|
+
...ba,
|
|
4332
|
+
...Me()
|
|
4333
|
+
},
|
|
4334
|
+
setup(e, t) {
|
|
4335
|
+
let {
|
|
4336
|
+
slots: n
|
|
4337
|
+
} = t;
|
|
4338
|
+
const r = M(() => {
|
|
4339
|
+
const a = [];
|
|
4340
|
+
let s;
|
|
4341
|
+
for (s in rr)
|
|
4342
|
+
rr[s].forEach((l) => {
|
|
4343
|
+
const i = e[l], o = So(s, l, i);
|
|
4344
|
+
o && a.push(o);
|
|
4345
|
+
});
|
|
4346
|
+
return a.push({
|
|
4347
|
+
"v-row--no-gutters": e.noGutters,
|
|
4348
|
+
"v-row--dense": e.dense,
|
|
4349
|
+
[`align-${e.align}`]: e.align,
|
|
4350
|
+
[`justify-${e.justify}`]: e.justify,
|
|
4351
|
+
[`align-content-${e.alignContent}`]: e.alignContent
|
|
4352
|
+
}), a;
|
|
4353
|
+
});
|
|
4354
|
+
return () => {
|
|
4355
|
+
var a;
|
|
4356
|
+
return Oe(e.tag, {
|
|
4357
|
+
class: ["v-row", r.value]
|
|
4358
|
+
}, (a = n.default) == null ? void 0 : a.call(n));
|
|
4359
|
+
};
|
|
4360
|
+
}
|
|
4361
|
+
}), Io = {
|
|
4362
|
+
key: 0,
|
|
4363
|
+
class: "text-subtitle-2"
|
|
4364
|
+
}, Ao = { class: "text-high-emphasis" }, Bo = /* @__PURE__ */ an({
|
|
4365
|
+
__name: "ARow",
|
|
4366
|
+
props: {
|
|
4367
|
+
title: { default: "" },
|
|
4368
|
+
value: { default: "" },
|
|
4369
|
+
dataCy: { default: "" }
|
|
4370
|
+
},
|
|
4371
|
+
setup(e) {
|
|
4372
|
+
return (t, n) => (it(), _r(Oo, null, {
|
|
4373
|
+
default: Bt(() => [
|
|
4374
|
+
P(No, null, {
|
|
4375
|
+
default: Bt(() => [
|
|
4376
|
+
e.title.length ? (it(), gr("h4", Io, ut(e.title), 1)) : xa("", !0),
|
|
4377
|
+
Wa(t.$slots, "default", {}, () => [
|
|
4378
|
+
Ba("span", Ao, ut(e.value), 1)
|
|
4379
|
+
])
|
|
4380
|
+
]),
|
|
4381
|
+
_: 3
|
|
4382
|
+
})
|
|
4383
|
+
]),
|
|
4384
|
+
_: 3
|
|
4385
|
+
}));
|
|
4386
|
+
}
|
|
4387
|
+
}), ko = {
|
|
4388
|
+
button: {
|
|
4389
|
+
create: (e) => {
|
|
4390
|
+
const { normalize: t } = e;
|
|
4391
|
+
return t(["Create"]);
|
|
4392
|
+
},
|
|
4393
|
+
createAndClose: (e) => {
|
|
4394
|
+
const { normalize: t } = e;
|
|
4395
|
+
return t(["Create And Close"]);
|
|
4396
|
+
},
|
|
4397
|
+
save: (e) => {
|
|
4398
|
+
const { normalize: t } = e;
|
|
4399
|
+
return t(["Save"]);
|
|
4400
|
+
},
|
|
4401
|
+
saveAndClose: (e) => {
|
|
4402
|
+
const { normalize: t } = e;
|
|
4403
|
+
return t(["Save And Close"]);
|
|
4404
|
+
},
|
|
4405
|
+
close: (e) => {
|
|
4406
|
+
const { normalize: t } = e;
|
|
4407
|
+
return t(["Close"]);
|
|
4408
|
+
},
|
|
4409
|
+
edit: (e) => {
|
|
4410
|
+
const { normalize: t } = e;
|
|
4411
|
+
return t(["Edit"]);
|
|
4412
|
+
},
|
|
4413
|
+
submitFilter: (e) => {
|
|
4414
|
+
const { normalize: t } = e;
|
|
4415
|
+
return t(["Submit Filter"]);
|
|
4416
|
+
},
|
|
4417
|
+
resetFilter: (e) => {
|
|
4418
|
+
const { normalize: t } = e;
|
|
4419
|
+
return t(["Reset Filter"]);
|
|
4420
|
+
},
|
|
4421
|
+
cancel: (e) => {
|
|
4422
|
+
const { normalize: t } = e;
|
|
4423
|
+
return t(["Cancel"]);
|
|
4424
|
+
},
|
|
4425
|
+
delete: (e) => {
|
|
4426
|
+
const { normalize: t } = e;
|
|
4427
|
+
return t(["Delete"]);
|
|
4428
|
+
},
|
|
4429
|
+
id: (e) => {
|
|
4430
|
+
const { normalize: t } = e;
|
|
4431
|
+
return t(["Id"]);
|
|
4432
|
+
},
|
|
4433
|
+
now: (e) => {
|
|
4434
|
+
const { normalize: t } = e;
|
|
4435
|
+
return t(["Now"]);
|
|
4436
|
+
},
|
|
4437
|
+
logout: (e) => {
|
|
4438
|
+
const { normalize: t } = e;
|
|
4439
|
+
return t(["Logout"]);
|
|
4440
|
+
},
|
|
4441
|
+
confirm: (e) => {
|
|
4442
|
+
const { normalize: t } = e;
|
|
4443
|
+
return t(["Confirm"]);
|
|
4444
|
+
}
|
|
4445
|
+
},
|
|
4446
|
+
boolean: {
|
|
4447
|
+
true: (e) => {
|
|
4448
|
+
const { normalize: t } = e;
|
|
4449
|
+
return t(["Yes"]);
|
|
4450
|
+
},
|
|
4451
|
+
false: (e) => {
|
|
4452
|
+
const { normalize: t } = e;
|
|
4453
|
+
return t(["No"]);
|
|
4454
|
+
}
|
|
4455
|
+
}
|
|
4456
|
+
}, Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4457
|
+
__proto__: null,
|
|
4458
|
+
default: ko
|
|
4459
|
+
}, Symbol.toStringTag, { value: "Module" })), Po = {
|
|
4460
|
+
button: {
|
|
4461
|
+
create: (e) => {
|
|
4462
|
+
const { normalize: t } = e;
|
|
4463
|
+
return t(["Vytvoriť"]);
|
|
4464
|
+
},
|
|
4465
|
+
createAndClose: (e) => {
|
|
4466
|
+
const { normalize: t } = e;
|
|
4467
|
+
return t(["Vytvoriť a zatvoriť"]);
|
|
4468
|
+
},
|
|
4469
|
+
save: (e) => {
|
|
4470
|
+
const { normalize: t } = e;
|
|
4471
|
+
return t(["Uložiť"]);
|
|
4472
|
+
},
|
|
4473
|
+
saveAndClose: (e) => {
|
|
4474
|
+
const { normalize: t } = e;
|
|
4475
|
+
return t(["Uložiť a zatvoriť"]);
|
|
4476
|
+
},
|
|
4477
|
+
close: (e) => {
|
|
4478
|
+
const { normalize: t } = e;
|
|
4479
|
+
return t(["Zatvoriť"]);
|
|
4480
|
+
},
|
|
4481
|
+
edit: (e) => {
|
|
4482
|
+
const { normalize: t } = e;
|
|
4483
|
+
return t(["Editovať"]);
|
|
4484
|
+
},
|
|
4485
|
+
submitFilter: (e) => {
|
|
4486
|
+
const { normalize: t } = e;
|
|
4487
|
+
return t(["Hľadať"]);
|
|
4488
|
+
},
|
|
4489
|
+
resetFilter: (e) => {
|
|
4490
|
+
const { normalize: t } = e;
|
|
4491
|
+
return t(["Zrušiť filter"]);
|
|
4492
|
+
},
|
|
4493
|
+
cancel: (e) => {
|
|
4494
|
+
const { normalize: t } = e;
|
|
4495
|
+
return t(["Zrušiť"]);
|
|
4496
|
+
},
|
|
4497
|
+
delete: (e) => {
|
|
4498
|
+
const { normalize: t } = e;
|
|
4499
|
+
return t(["Zmazať"]);
|
|
4500
|
+
},
|
|
4501
|
+
id: (e) => {
|
|
4502
|
+
const { normalize: t } = e;
|
|
4503
|
+
return t(["ID"]);
|
|
4504
|
+
},
|
|
4505
|
+
now: (e) => {
|
|
4506
|
+
const { normalize: t } = e;
|
|
4507
|
+
return t(["Teraz"]);
|
|
4508
|
+
},
|
|
4509
|
+
logout: (e) => {
|
|
4510
|
+
const { normalize: t } = e;
|
|
4511
|
+
return t(["Odhlásenie"]);
|
|
4512
|
+
},
|
|
4513
|
+
confirm: (e) => {
|
|
4514
|
+
const { normalize: t } = e;
|
|
4515
|
+
return t(["Potvrď"]);
|
|
4516
|
+
}
|
|
4517
|
+
},
|
|
4518
|
+
boolean: {
|
|
4519
|
+
true: (e) => {
|
|
4520
|
+
const { normalize: t } = e;
|
|
4521
|
+
return t(["áno"]);
|
|
4522
|
+
},
|
|
4523
|
+
false: (e) => {
|
|
4524
|
+
const { normalize: t } = e;
|
|
4525
|
+
return t(["nie"]);
|
|
4526
|
+
}
|
|
4527
|
+
}
|
|
4528
|
+
}, wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4529
|
+
__proto__: null,
|
|
4530
|
+
default: Po
|
|
4531
|
+
}, Symbol.toStringTag, { value: "Module" })), St = (e) => typeof e > "u", Go = (e) => St(e) === !1, Ta = (e) => e === null, jo = (e) => typeof e == "number", zo = (e) => typeof e == "string", La = (e) => Array.isArray(e), Ho = (e) => typeof e == "boolean", Yo = (e) => /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e), Ko = (e) => {
|
|
4532
|
+
const t = parseFloat(e);
|
|
4533
|
+
return !isNaN(e) && (t | 0) === t;
|
|
4534
|
+
}, Ro = (e) => typeof e == "object" && !La(e) && !Ta(e), $o = (e) => {
|
|
4535
|
+
if (Ro(e)) {
|
|
4536
|
+
for (const t in e)
|
|
4537
|
+
return !1;
|
|
4538
|
+
return !0;
|
|
4539
|
+
}
|
|
4540
|
+
return !1;
|
|
4541
|
+
}, Mo = (e) => {
|
|
4542
|
+
if (La(e)) {
|
|
4543
|
+
for (const t in e)
|
|
4544
|
+
return !1;
|
|
4545
|
+
return !0;
|
|
4546
|
+
}
|
|
4547
|
+
return !1;
|
|
4548
|
+
}, Xo = (e) => Ta(e) || St(e) || e === "" || e === 0 || Mo(e) || $o(e), Fo = (e) => {
|
|
4549
|
+
const t = Object.getOwnPropertyNames(e);
|
|
4550
|
+
for (const n of t) {
|
|
4551
|
+
const r = e[n];
|
|
4552
|
+
r && typeof r == "object" && Fo(r);
|
|
4553
|
+
}
|
|
4554
|
+
return Object.freeze(e);
|
|
4555
|
+
}, qo = (e, t, n = ".") => {
|
|
4556
|
+
const r = t.split(n);
|
|
4557
|
+
let a = e;
|
|
4558
|
+
for (; r.length; ) {
|
|
4559
|
+
const s = r.shift();
|
|
4560
|
+
if (St(s) || !(s in a))
|
|
4561
|
+
return;
|
|
4562
|
+
a = a[s];
|
|
4563
|
+
}
|
|
4564
|
+
return a;
|
|
4565
|
+
}, Vo = (e, t, n, r = ".") => {
|
|
4566
|
+
const a = t.split(r);
|
|
4567
|
+
let s = e;
|
|
4568
|
+
for (; a.length - 1; ) {
|
|
4569
|
+
const l = a.shift();
|
|
4570
|
+
if (St(l))
|
|
4571
|
+
return;
|
|
4572
|
+
l in s || (s[l] = {}), s = s[l];
|
|
4573
|
+
}
|
|
4574
|
+
s[a[0]] = n;
|
|
4575
|
+
};
|
|
4576
|
+
function Jo(e, t, n = ".") {
|
|
4577
|
+
const r = t.split(n), a = r.length - 1;
|
|
4578
|
+
function s(l, i = 0) {
|
|
4579
|
+
const o = r[i];
|
|
4580
|
+
if (i === a) {
|
|
4581
|
+
delete l[o];
|
|
4582
|
+
return;
|
|
4583
|
+
}
|
|
4584
|
+
s(l[o], i + 1);
|
|
4585
|
+
}
|
|
4586
|
+
return s(e), e;
|
|
4587
|
+
}
|
|
4588
|
+
const Qo = (e) => JSON.parse(JSON.stringify(e)), ar = /* @__PURE__ */ Object.assign({ "./en/common.yaml": Do, "./sk/common.yaml": wo }), Uo = (e) => (e = e.substring(2), e.substring(0, e.indexOf("."))), Ca = {};
|
|
4589
|
+
for (const e in ar) {
|
|
4590
|
+
const t = Uo(e);
|
|
4591
|
+
Vo(Ca, t, ar[e].default, "/");
|
|
4592
|
+
}
|
|
4593
|
+
const Zo = Ca;
|
|
4594
|
+
export {
|
|
4595
|
+
Wo as ABooleanValue,
|
|
4596
|
+
Bo as ARow,
|
|
4597
|
+
Zo as commonMessages,
|
|
4598
|
+
Fo as deepFreeze,
|
|
4599
|
+
Jo as deletePropertyByPath,
|
|
4600
|
+
qo as getValueByPath,
|
|
4601
|
+
La as isArray,
|
|
4602
|
+
Ho as isBoolean,
|
|
4603
|
+
Yo as isDocId,
|
|
4604
|
+
Xo as isEmpty,
|
|
4605
|
+
Mo as isEmptyArray,
|
|
4606
|
+
$o as isEmptyObject,
|
|
4607
|
+
Ko as isInt,
|
|
4608
|
+
Go as isNotUndefined,
|
|
4609
|
+
Ta as isNull,
|
|
4610
|
+
jo as isNumber,
|
|
4611
|
+
Ro as isObject,
|
|
4612
|
+
zo as isString,
|
|
4613
|
+
St as isUndefined,
|
|
4614
|
+
Vo as setValueByPath,
|
|
4615
|
+
Qo as simpleCloneObject
|
|
4616
|
+
};
|