@assemblyvoting/ui-library 3.0.6 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/AVAlert/AVAlert.vue.d.ts +1 -1
- package/dist/components/atoms/AVAlert/AVAlert.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVAsyncButton/AVAsyncButton.vue.d.ts +1 -1
- package/dist/components/atoms/AVAsyncButton/AVAsyncButton.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVBallotSummary/AVBallotSummary.vue.d.ts +1 -1
- package/dist/components/atoms/AVBallotSummary/AVBallotSummary.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVBasicSteps/AVBasicSteps.vue.d.ts +1 -1
- package/dist/components/atoms/AVBasicSteps/AVBasicSteps.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVBullet/AVBullet.vue.d.ts +1 -1
- package/dist/components/atoms/AVBullet/AVBullet.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVButton/AVButton.vue.d.ts +1 -1
- package/dist/components/atoms/AVButton/AVButton.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVCard/AVCard.vue.d.ts +1 -1
- package/dist/components/atoms/AVCard/AVCard.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVCollapser/AVCollapser.vue.d.ts +1 -1
- package/dist/components/atoms/AVCollapser/AVCollapser.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVDatetimeInput/AVDatetimeInput.vue.d.ts +1 -1
- package/dist/components/atoms/AVDatetimeInput/AVDatetimeInput.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVDropdown/AVDropdown.vue.d.ts +1 -1
- package/dist/components/atoms/AVDropdown/AVDropdown.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVDropdown/AVDropdownContent.vue.d.ts +1 -1
- package/dist/components/atoms/AVDropdown/AVDropdownContent.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVDropdown/AVDropdownItem.vue.d.ts +1 -1
- package/dist/components/atoms/AVDropdown/AVDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVFileInput/AVFileInput.vue.d.ts +1 -1
- package/dist/components/atoms/AVFileInput/AVFileInput.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVIcon/AVIcon.vue.d.ts +2 -2
- package/dist/components/atoms/AVIcon/AVIcon.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVLabel/AVLabel.vue.d.ts +1 -1
- package/dist/components/atoms/AVLabel/AVLabel.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVLink/AVLink.vue.d.ts +1 -1
- package/dist/components/atoms/AVLink/AVLink.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVMenuDropdown/AVMenuDropdown.vue.d.ts +1 -1
- package/dist/components/atoms/AVMenuDropdown/AVMenuDropdown.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVMenuDropdown/AVMenuDropdownContent.vue.d.ts +1 -1
- package/dist/components/atoms/AVMenuDropdown/AVMenuDropdownContent.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVMenuDropdown/AVMenuDropdownItem.vue.d.ts +1 -1
- package/dist/components/atoms/AVMenuDropdown/AVMenuDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVNavbarItem/AVNavbarItem.vue.d.ts +1 -1
- package/dist/components/atoms/AVNavbarItem/AVNavbarItem.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVNumberInput/AVNumberInput.vue.d.ts +1 -1
- package/dist/components/atoms/AVNumberInput/AVNumberInput.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVOptionCheckbox/AVOptionCheckbox.vue.d.ts +2 -2
- package/dist/components/atoms/AVOptionCheckbox/AVOptionCheckbox.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVOptionSelect/AVOptionSelect.vue.d.ts +1 -1
- package/dist/components/atoms/AVOptionSelect/AVOptionSelect.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVPasswordInput/AVPasswordInput.vue.d.ts +1 -1
- package/dist/components/atoms/AVPasswordInput/AVPasswordInput.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVRadio/AVRadio.vue.d.ts +1 -1
- package/dist/components/atoms/AVRadio/AVRadio.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVRoundButton/AVRoundButton.vue.d.ts +1 -1
- package/dist/components/atoms/AVRoundButton/AVRoundButton.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVSidebarItem/AVSidebarItem.vue.d.ts +1 -1
- package/dist/components/atoms/AVSidebarItem/AVSidebarItem.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVSpinner/AVSpinner.vue.d.ts +1 -1
- package/dist/components/atoms/AVSpinner/AVSpinner.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVSteps/AVSteps.vue.d.ts +2 -2
- package/dist/components/atoms/AVSteps/AVSteps.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVTabSwitcher/AVTabSwitcher.vue.d.ts +1 -1
- package/dist/components/atoms/AVTabSwitcher/AVTabSwitcher.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVTextArea/AVTextArea.vue.d.ts +1 -1
- package/dist/components/atoms/AVTextArea/AVTextArea.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVTextInput/AVTextInput.vue.d.ts +1 -1
- package/dist/components/atoms/AVTextInput/AVTextInput.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVTimedCard/AVTimedCard.vue.d.ts +1 -1
- package/dist/components/atoms/AVTimedCard/AVTimedCard.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVTooltip/AVTooltip.vue.d.ts +1 -1
- package/dist/components/atoms/AVTooltip/AVTooltip.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVTransitionSlide/AVTransitionSlide.vue.d.ts +2 -2
- package/dist/components/atoms/AVTransitionSlide/AVTransitionSlide.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVBallotStyleCard/AVBallotStyleCard.vue.d.ts +1 -1
- package/dist/components/molecules/AVBallotStyleCard/AVBallotStyleCard.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVBlankOption/AVBlankOption.vue.d.ts +2 -2
- package/dist/components/molecules/AVBlankOption/AVBlankOption.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVBreadcrumb/AVBreadcrumb.vue.d.ts +1 -1
- package/dist/components/molecules/AVBreadcrumb/AVBreadcrumb.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVElectionCard/AVElectionCard.vue.d.ts +1 -1
- package/dist/components/molecules/AVElectionCard/AVElectionCard.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVNavigationItemList/AVNavigationItemList.vue.d.ts +1 -1
- package/dist/components/molecules/AVNavigationItemList/AVNavigationItemList.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVOption/AVOption.vue.d.ts +1 -1
- package/dist/components/molecules/AVOption/AVOption.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVRadioGroup/AVRadioGroup.vue.d.ts +1 -1
- package/dist/components/molecules/AVRadioGroup/AVRadioGroup.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVSearchBallot/AVSearchBallot.vue.d.ts +1 -1
- package/dist/components/molecules/AVSearchBallot/AVSearchBallot.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVSplitWeightHelper/AVSplitWeightHelper.vue.d.ts +1 -1
- package/dist/components/molecules/AVSplitWeightHelper/AVSplitWeightHelper.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVSplitWizardHeader/AVSplitWizardHeader.vue.d.ts +1 -1
- package/dist/components/molecules/AVSplitWizardHeader/AVSplitWizardHeader.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVSubmissionHelper/AVSubmissionHelper.vue.d.ts +1 -1
- package/dist/components/molecules/AVSubmissionHelper/AVSubmissionHelper.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVSummaryOption/AVSummaryOption.vue.d.ts +2 -2
- package/dist/components/molecules/AVSummaryOption/AVSummaryOption.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVWriteInOption/AVWriteInOption.vue.d.ts +1 -1
- package/dist/components/molecules/AVWriteInOption/AVWriteInOption.vue.d.ts.map +1 -1
- package/dist/components/organisms/AVBallot/AVBallot.vue.d.ts +2 -2
- package/dist/components/organisms/AVBallot/AVBallot.vue.d.ts.map +1 -1
- package/dist/components/organisms/AVContent/AVContent.vue.d.ts +1 -1
- package/dist/components/organisms/AVContent/AVContent.vue.d.ts.map +1 -1
- package/dist/components/organisms/AVFooter/AVFooter.vue.d.ts +1 -1
- package/dist/components/organisms/AVFooter/AVFooter.vue.d.ts.map +1 -1
- package/dist/components/organisms/AVModal/AVModal.vue.d.ts +1 -1
- package/dist/components/organisms/AVModal/AVModal.vue.d.ts.map +1 -1
- package/dist/components/organisms/AVPileSummary/AVPileSummary.vue.d.ts +1 -1
- package/dist/components/organisms/AVPileSummary/AVPileSummary.vue.d.ts.map +1 -1
- package/dist/components/organisms/AVSplitHelper/AVSplitHelper.vue.d.ts +1 -1
- package/dist/components/organisms/AVSplitHelper/AVSplitHelper.vue.d.ts.map +1 -1
- package/dist/components/templates/ElectionDashboardLayout/ElectionDashboardLayout.vue.d.ts +2 -2
- package/dist/components/templates/ElectionDashboardLayout/ElectionDashboardLayout.vue.d.ts.map +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.js +759 -747
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/.vscode/extensions.json +0 -3
package/dist/index.js
CHANGED
@@ -29,7 +29,7 @@ const CI = Object.prototype.hasOwnProperty;
|
|
29
29
|
function T3(e, c) {
|
30
30
|
return CI.call(e, c);
|
31
31
|
}
|
32
|
-
const p2 = Array.isArray, V2 = (e) => typeof e == "function",
|
32
|
+
const p2 = Array.isArray, V2 = (e) => typeof e == "function", j = (e) => typeof e == "string", n2 = (e) => typeof e == "boolean", m2 = (e) => e !== null && typeof e == "object", os = Object.prototype.toString, fs = (e) => os.call(e), c2 = (e) => {
|
33
33
|
if (!m2(e))
|
34
34
|
return !1;
|
35
35
|
const c = Object.getPrototypeOf(e);
|
@@ -181,7 +181,7 @@ const TI = /<\/?[\w\s="/.':;#-\/]+>/, II = (e) => TI.test(e), g1 = " ", EI = "\r
|
|
181
181
|
function PI(e) {
|
182
182
|
const c = e;
|
183
183
|
let a = 0, t = 1, n = 1, s = 0;
|
184
|
-
const i = (C) => c[C] === EI && c[C + 1] === $2, r = (C) => c[C] === $2, l = (C) => c[C] === OI, o = (C) => c[C] === DI, f = (C) => i(C) || r(C) || l(C) || o(C), m = () => a, d = () => t, h = () => n, b = () => s,
|
184
|
+
const i = (C) => c[C] === EI && c[C + 1] === $2, r = (C) => c[C] === $2, l = (C) => c[C] === OI, o = (C) => c[C] === DI, f = (C) => i(C) || r(C) || l(C) || o(C), m = () => a, d = () => t, h = () => n, b = () => s, A = (C) => i(C) || l(C) || o(C) ? $2 : c[C], w = () => A(a), V = () => A(a + s);
|
185
185
|
function M() {
|
186
186
|
return s = 0, f(a) && (t++, n = 0), i(a) && a++, a++, n++, c[a];
|
187
187
|
}
|
@@ -194,7 +194,7 @@ function PI(e) {
|
|
194
194
|
function y(C = 0) {
|
195
195
|
s = C;
|
196
196
|
}
|
197
|
-
function
|
197
|
+
function k() {
|
198
198
|
const C = a + s;
|
199
199
|
for (; C !== a; )
|
200
200
|
M();
|
@@ -205,14 +205,14 @@ function PI(e) {
|
|
205
205
|
line: d,
|
206
206
|
column: h,
|
207
207
|
peekOffset: b,
|
208
|
-
charAt:
|
209
|
-
currentChar:
|
208
|
+
charAt: A,
|
209
|
+
currentChar: w,
|
210
210
|
currentPeek: V,
|
211
211
|
next: M,
|
212
212
|
peek: L,
|
213
213
|
reset: H,
|
214
214
|
resetPeek: y,
|
215
|
-
skipToPeek:
|
215
|
+
skipToPeek: k
|
216
216
|
};
|
217
217
|
}
|
218
218
|
const N1 = void 0, BI = ".", k9 = "'", FI = "tokenizer";
|
@@ -253,14 +253,14 @@ function RI(e, c = {}) {
|
|
253
253
|
function b(z, v) {
|
254
254
|
return z.currentChar() === v ? (z.next(), v) : (m(J.EXPECTED_TOKEN, s(), 0, v), "");
|
255
255
|
}
|
256
|
-
function
|
256
|
+
function A(z) {
|
257
257
|
let v = "";
|
258
258
|
for (; z.currentPeek() === g1 || z.currentPeek() === $2; )
|
259
259
|
v += z.currentPeek(), z.peek();
|
260
260
|
return v;
|
261
261
|
}
|
262
|
-
function
|
263
|
-
const v =
|
262
|
+
function w(z) {
|
263
|
+
const v = A(z);
|
264
264
|
return z.skipToPeek(), v;
|
265
265
|
}
|
266
266
|
function V(z) {
|
@@ -281,7 +281,7 @@ function RI(e, c = {}) {
|
|
281
281
|
const { currentType: x } = v;
|
282
282
|
if (x !== 2)
|
283
283
|
return !1;
|
284
|
-
|
284
|
+
A(z);
|
285
285
|
const $ = V(z.currentPeek());
|
286
286
|
return z.resetPeek(), $;
|
287
287
|
}
|
@@ -289,7 +289,7 @@ function RI(e, c = {}) {
|
|
289
289
|
const { currentType: x } = v;
|
290
290
|
if (x !== 2)
|
291
291
|
return !1;
|
292
|
-
|
292
|
+
A(z);
|
293
293
|
const $ = z.currentPeek() === "-" ? z.peek() : z.currentPeek(), Z = M($);
|
294
294
|
return z.resetPeek(), Z;
|
295
295
|
}
|
@@ -297,15 +297,15 @@ function RI(e, c = {}) {
|
|
297
297
|
const { currentType: x } = v;
|
298
298
|
if (x !== 2)
|
299
299
|
return !1;
|
300
|
-
|
300
|
+
A(z);
|
301
301
|
const $ = z.currentPeek() === k9;
|
302
302
|
return z.resetPeek(), $;
|
303
303
|
}
|
304
|
-
function
|
304
|
+
function k(z, v) {
|
305
305
|
const { currentType: x } = v;
|
306
306
|
if (x !== 8)
|
307
307
|
return !1;
|
308
|
-
|
308
|
+
A(z);
|
309
309
|
const $ = z.currentPeek() === ".";
|
310
310
|
return z.resetPeek(), $;
|
311
311
|
}
|
@@ -313,7 +313,7 @@ function RI(e, c = {}) {
|
|
313
313
|
const { currentType: x } = v;
|
314
314
|
if (x !== 9)
|
315
315
|
return !1;
|
316
|
-
|
316
|
+
A(z);
|
317
317
|
const $ = V(z.currentPeek());
|
318
318
|
return z.resetPeek(), $;
|
319
319
|
}
|
@@ -321,11 +321,11 @@ function RI(e, c = {}) {
|
|
321
321
|
const { currentType: x } = v;
|
322
322
|
if (!(x === 8 || x === 12))
|
323
323
|
return !1;
|
324
|
-
|
324
|
+
A(z);
|
325
325
|
const $ = z.currentPeek() === ":";
|
326
326
|
return z.resetPeek(), $;
|
327
327
|
}
|
328
|
-
function
|
328
|
+
function N(z, v) {
|
329
329
|
const { currentType: x } = v;
|
330
330
|
if (x !== 10)
|
331
331
|
return !1;
|
@@ -335,19 +335,19 @@ function RI(e, c = {}) {
|
|
335
335
|
}, Z = $();
|
336
336
|
return z.resetPeek(), Z;
|
337
337
|
}
|
338
|
-
function
|
339
|
-
|
338
|
+
function U(z) {
|
339
|
+
A(z);
|
340
340
|
const v = z.currentPeek() === "|";
|
341
341
|
return z.resetPeek(), v;
|
342
342
|
}
|
343
343
|
function W(z) {
|
344
|
-
const v =
|
344
|
+
const v = A(z), x = z.currentPeek() === "%" && z.peek() === "{";
|
345
345
|
return z.resetPeek(), {
|
346
346
|
isModulo: x,
|
347
347
|
hasSpace: v.length > 0
|
348
348
|
};
|
349
349
|
}
|
350
|
-
function
|
350
|
+
function R(z, v = !0) {
|
351
351
|
const x = (Z = !1, u2 = "", Z2 = !1) => {
|
352
352
|
const O2 = z.currentPeek();
|
353
353
|
return O2 === "{" ? u2 === "%" ? !1 : Z : O2 === "@" || !O2 ? u2 === "%" ? !0 : Z : O2 === "%" ? (z.peek(), x(Z, "%", !0)) : O2 === "|" ? u2 === "%" || Z2 ? !0 : !(u2 === g1 || u2 === $2) : O2 === g1 ? (z.peek(), x(!0, g1, Z2)) : O2 === $2 ? (z.peek(), x(!0, $2, Z2)) : !0;
|
@@ -358,7 +358,7 @@ function RI(e, c = {}) {
|
|
358
358
|
const x = z.currentChar();
|
359
359
|
return x === N1 ? N1 : v(x) ? (z.next(), x) : null;
|
360
360
|
}
|
361
|
-
function
|
361
|
+
function r2(z) {
|
362
362
|
return F(z, (x) => {
|
363
363
|
const $ = x.charCodeAt(0);
|
364
364
|
return $ >= 97 && $ <= 122 || // a-z
|
@@ -368,13 +368,13 @@ function RI(e, c = {}) {
|
|
368
368
|
$ === 36;
|
369
369
|
});
|
370
370
|
}
|
371
|
-
function
|
371
|
+
function l2(z) {
|
372
372
|
return F(z, (x) => {
|
373
373
|
const $ = x.charCodeAt(0);
|
374
374
|
return $ >= 48 && $ <= 57;
|
375
375
|
});
|
376
376
|
}
|
377
|
-
function
|
377
|
+
function a2(z) {
|
378
378
|
return F(z, (x) => {
|
379
379
|
const $ = x.charCodeAt(0);
|
380
380
|
return $ >= 48 && $ <= 57 || // 0-9
|
@@ -384,12 +384,12 @@ function RI(e, c = {}) {
|
|
384
384
|
}
|
385
385
|
function h2(z) {
|
386
386
|
let v = "", x = "";
|
387
|
-
for (; v =
|
387
|
+
for (; v = l2(z); )
|
388
388
|
x += v;
|
389
389
|
return x;
|
390
390
|
}
|
391
391
|
function R2(z) {
|
392
|
-
|
392
|
+
w(z);
|
393
393
|
const v = z.currentChar();
|
394
394
|
return v !== "%" && m(J.EXPECTED_TOKEN, s(), 0, v), z.next(), "%";
|
395
395
|
}
|
@@ -400,15 +400,15 @@ function RI(e, c = {}) {
|
|
400
400
|
if (x === "{" || x === "}" || x === "@" || x === "|" || !x)
|
401
401
|
break;
|
402
402
|
if (x === "%")
|
403
|
-
if (
|
403
|
+
if (R(z))
|
404
404
|
v += x, z.next();
|
405
405
|
else
|
406
406
|
break;
|
407
407
|
else if (x === g1 || x === $2)
|
408
|
-
if (
|
408
|
+
if (R(z))
|
409
409
|
v += x, z.next();
|
410
410
|
else {
|
411
|
-
if (
|
411
|
+
if (U(z))
|
412
412
|
break;
|
413
413
|
v += x, z.next();
|
414
414
|
}
|
@@ -418,19 +418,19 @@ function RI(e, c = {}) {
|
|
418
418
|
return v;
|
419
419
|
}
|
420
420
|
function v2(z) {
|
421
|
-
|
421
|
+
w(z);
|
422
422
|
let v = "", x = "";
|
423
|
-
for (; v =
|
423
|
+
for (; v = r2(z); )
|
424
424
|
x += v;
|
425
425
|
return z.currentChar() === N1 && m(J.UNTERMINATED_CLOSING_BRACE, s(), 0), x;
|
426
426
|
}
|
427
427
|
function A2(z) {
|
428
|
-
|
428
|
+
w(z);
|
429
429
|
let v = "";
|
430
430
|
return z.currentChar() === "-" ? (z.next(), v += `-${h2(z)}`) : v += h2(z), z.currentChar() === N1 && m(J.UNTERMINATED_CLOSING_BRACE, s(), 0), v;
|
431
431
|
}
|
432
432
|
function S2(z) {
|
433
|
-
|
433
|
+
w(z), b(z, "'");
|
434
434
|
let v = "", x = "";
|
435
435
|
const $ = (u2) => u2 !== k9 && u2 !== $2;
|
436
436
|
for (; v = F(z, $); )
|
@@ -456,7 +456,7 @@ function RI(e, c = {}) {
|
|
456
456
|
b(z, v);
|
457
457
|
let $ = "";
|
458
458
|
for (let Z = 0; Z < x; Z++) {
|
459
|
-
const u2 =
|
459
|
+
const u2 = a2(z);
|
460
460
|
if (!u2) {
|
461
461
|
m(J.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${v}${$}${z.currentChar()}`);
|
462
462
|
break;
|
@@ -466,7 +466,7 @@ function RI(e, c = {}) {
|
|
466
466
|
return `\\${v}${$}`;
|
467
467
|
}
|
468
468
|
function F2(z) {
|
469
|
-
|
469
|
+
w(z);
|
470
470
|
let v = "", x = "";
|
471
471
|
const $ = (Z) => Z !== "{" && Z !== "}" && Z !== g1 && Z !== $2;
|
472
472
|
for (; v = F(z, $); )
|
@@ -475,7 +475,7 @@ function RI(e, c = {}) {
|
|
475
475
|
}
|
476
476
|
function o1(z) {
|
477
477
|
let v = "", x = "";
|
478
|
-
for (; v =
|
478
|
+
for (; v = r2(z); )
|
479
479
|
x += v;
|
480
480
|
return x;
|
481
481
|
}
|
@@ -487,13 +487,13 @@ function RI(e, c = {}) {
|
|
487
487
|
return v(!1, "");
|
488
488
|
}
|
489
489
|
function j2(z) {
|
490
|
-
|
490
|
+
w(z);
|
491
491
|
const v = b(
|
492
492
|
z,
|
493
493
|
"|"
|
494
494
|
/* TokenChars.Pipe */
|
495
495
|
);
|
496
|
-
return
|
496
|
+
return w(z), v;
|
497
497
|
}
|
498
498
|
function n1(z, v) {
|
499
499
|
let x = null;
|
@@ -504,30 +504,30 @@ function RI(e, c = {}) {
|
|
504
504
|
2,
|
505
505
|
"{"
|
506
506
|
/* TokenChars.BraceLeft */
|
507
|
-
),
|
507
|
+
), w(z), v.braceNest++, x;
|
508
508
|
case "}":
|
509
509
|
return v.braceNest > 0 && v.currentType === 2 && m(J.EMPTY_PLACEHOLDER, s(), 0), z.next(), x = d(
|
510
510
|
v,
|
511
511
|
3,
|
512
512
|
"}"
|
513
513
|
/* TokenChars.BraceRight */
|
514
|
-
), v.braceNest--, v.braceNest > 0 &&
|
514
|
+
), v.braceNest--, v.braceNest > 0 && w(z), v.inLinked && v.braceNest === 0 && (v.inLinked = !1), x;
|
515
515
|
case "@":
|
516
516
|
return v.braceNest > 0 && m(J.UNTERMINATED_CLOSING_BRACE, s(), 0), x = u1(z, v) || h(v), v.braceNest = 0, x;
|
517
517
|
default:
|
518
518
|
let Z = !0, u2 = !0, Z2 = !0;
|
519
|
-
if (
|
519
|
+
if (U(z))
|
520
520
|
return v.braceNest > 0 && m(J.UNTERMINATED_CLOSING_BRACE, s(), 0), x = d(v, 1, j2(z)), v.braceNest = 0, v.inLinked = !1, x;
|
521
521
|
if (v.braceNest > 0 && (v.currentType === 5 || v.currentType === 6 || v.currentType === 7))
|
522
522
|
return m(J.UNTERMINATED_CLOSING_BRACE, s(), 0), v.braceNest = 0, s1(z, v);
|
523
523
|
if (Z = L(z, v))
|
524
|
-
return x = d(v, 5, v2(z)),
|
524
|
+
return x = d(v, 5, v2(z)), w(z), x;
|
525
525
|
if (u2 = H(z, v))
|
526
|
-
return x = d(v, 6, A2(z)),
|
526
|
+
return x = d(v, 6, A2(z)), w(z), x;
|
527
527
|
if (Z2 = y(z, v))
|
528
|
-
return x = d(v, 7, S2(z)),
|
528
|
+
return x = d(v, 7, S2(z)), w(z), x;
|
529
529
|
if (!Z && !u2 && !Z2)
|
530
|
-
return x = d(v, 13, F2(z)), m(J.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, x.value),
|
530
|
+
return x = d(v, 13, F2(z)), m(J.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, x.value), w(z), x;
|
531
531
|
break;
|
532
532
|
}
|
533
533
|
return x;
|
@@ -545,21 +545,21 @@ function RI(e, c = {}) {
|
|
545
545
|
/* TokenChars.LinkedAlias */
|
546
546
|
), v.inLinked = !0, $;
|
547
547
|
case ".":
|
548
|
-
return
|
548
|
+
return w(z), z.next(), d(
|
549
549
|
v,
|
550
550
|
9,
|
551
551
|
"."
|
552
552
|
/* TokenChars.LinkedDot */
|
553
553
|
);
|
554
554
|
case ":":
|
555
|
-
return
|
555
|
+
return w(z), z.next(), d(
|
556
556
|
v,
|
557
557
|
10,
|
558
558
|
":"
|
559
559
|
/* TokenChars.LinkedDelimiter */
|
560
560
|
);
|
561
561
|
default:
|
562
|
-
return
|
562
|
+
return U(z) ? ($ = d(v, 1, j2(z)), v.braceNest = 0, v.inLinked = !1, $) : k(z, v) || _(z, v) ? (w(z), u1(z, v)) : C(z, v) ? (w(z), d(v, 12, o1(z))) : N(z, v) ? (w(z), Z === "{" ? n1(z, v) || $ : d(v, 11, f1(z))) : (x === 8 && m(J.INVALID_LINKED_FORMAT, s(), 0), v.braceNest = 0, v.inLinked = !1, s1(z, v));
|
563
563
|
}
|
564
564
|
}
|
565
565
|
function s1(z, v) {
|
@@ -584,12 +584,12 @@ function RI(e, c = {}) {
|
|
584
584
|
case "@":
|
585
585
|
return u1(z, v) || h(v);
|
586
586
|
default:
|
587
|
-
if (
|
587
|
+
if (U(z))
|
588
588
|
return x = d(v, 1, j2(z)), v.braceNest = 0, v.inLinked = !1, x;
|
589
589
|
const { isModulo: Z, hasSpace: u2 } = W(z);
|
590
590
|
if (Z)
|
591
591
|
return u2 ? d(v, 0, M2(z)) : d(v, 4, R2(z));
|
592
|
-
if (
|
592
|
+
if (R(z))
|
593
593
|
return d(v, 0, M2(z));
|
594
594
|
break;
|
595
595
|
}
|
@@ -626,9 +626,9 @@ function UI(e, c, a) {
|
|
626
626
|
function qI(e = {}) {
|
627
627
|
const c = e.location !== !1, { onError: a } = e;
|
628
628
|
function t(V, M, L, H, ...y) {
|
629
|
-
const
|
630
|
-
if (
|
631
|
-
const C = c ? Q6(L,
|
629
|
+
const k = V.currentPosition();
|
630
|
+
if (k.offset += H, k.column += H, a) {
|
631
|
+
const C = c ? Q6(L, k) : null, _ = h3(M, C, {
|
632
632
|
domain: jI,
|
633
633
|
args: y
|
634
634
|
});
|
@@ -647,24 +647,24 @@ function qI(e = {}) {
|
|
647
647
|
return H.value = M, s(H, V.currentOffset(), V.currentPosition()), H;
|
648
648
|
}
|
649
649
|
function r(V, M) {
|
650
|
-
const L = V.context(), { lastOffset: H, lastStartLoc: y } = L,
|
651
|
-
return
|
650
|
+
const L = V.context(), { lastOffset: H, lastStartLoc: y } = L, k = n(5, H, y);
|
651
|
+
return k.index = parseInt(M, 10), V.nextToken(), s(k, V.currentOffset(), V.currentPosition()), k;
|
652
652
|
}
|
653
653
|
function l(V, M) {
|
654
|
-
const L = V.context(), { lastOffset: H, lastStartLoc: y } = L,
|
655
|
-
return
|
654
|
+
const L = V.context(), { lastOffset: H, lastStartLoc: y } = L, k = n(4, H, y);
|
655
|
+
return k.key = M, V.nextToken(), s(k, V.currentOffset(), V.currentPosition()), k;
|
656
656
|
}
|
657
657
|
function o(V, M) {
|
658
|
-
const L = V.context(), { lastOffset: H, lastStartLoc: y } = L,
|
659
|
-
return
|
658
|
+
const L = V.context(), { lastOffset: H, lastStartLoc: y } = L, k = n(9, H, y);
|
659
|
+
return k.value = M.replace($I, UI), V.nextToken(), s(k, V.currentOffset(), V.currentPosition()), k;
|
660
660
|
}
|
661
661
|
function f(V) {
|
662
|
-
const M = V.nextToken(), L = V.context(), { lastOffset: H, lastStartLoc: y } = L,
|
663
|
-
return M.type !== 12 ? (t(V, J.UNEXPECTED_EMPTY_LINKED_MODIFIER, L.lastStartLoc, 0),
|
662
|
+
const M = V.nextToken(), L = V.context(), { lastOffset: H, lastStartLoc: y } = L, k = n(8, H, y);
|
663
|
+
return M.type !== 12 ? (t(V, J.UNEXPECTED_EMPTY_LINKED_MODIFIER, L.lastStartLoc, 0), k.value = "", s(k, H, y), {
|
664
664
|
nextConsumeToken: M,
|
665
|
-
node:
|
666
|
-
}) : (M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, m1(M)),
|
667
|
-
node:
|
665
|
+
node: k
|
666
|
+
}) : (M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, m1(M)), k.value = M.value || "", s(k, V.currentOffset(), V.currentPosition()), {
|
667
|
+
node: k
|
668
668
|
});
|
669
669
|
}
|
670
670
|
function m(V, M) {
|
@@ -693,8 +693,8 @@ function qI(e = {}) {
|
|
693
693
|
break;
|
694
694
|
default:
|
695
695
|
t(V, J.UNEXPECTED_EMPTY_LINKED_KEY, M.lastStartLoc, 0);
|
696
|
-
const y = V.context(),
|
697
|
-
return
|
696
|
+
const y = V.context(), k = n(7, y.offset, y.startLoc);
|
697
|
+
return k.value = "", s(k, y.offset, y.startLoc), L.key = k, s(L, y.offset, y.startLoc), {
|
698
698
|
nextConsumeToken: H,
|
699
699
|
node: L
|
700
700
|
};
|
@@ -706,25 +706,25 @@ function qI(e = {}) {
|
|
706
706
|
function h(V) {
|
707
707
|
const M = V.context(), L = M.currentType === 1 ? V.currentOffset() : M.offset, H = M.currentType === 1 ? M.endLoc : M.startLoc, y = n(2, L, H);
|
708
708
|
y.items = [];
|
709
|
-
let
|
709
|
+
let k = null;
|
710
710
|
do {
|
711
|
-
const
|
712
|
-
switch (
|
711
|
+
const N = k || V.nextToken();
|
712
|
+
switch (k = null, N.type) {
|
713
713
|
case 0:
|
714
|
-
|
714
|
+
N.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, M.lastStartLoc, 0, m1(N)), y.items.push(i(V, N.value || ""));
|
715
715
|
break;
|
716
716
|
case 6:
|
717
|
-
|
717
|
+
N.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, M.lastStartLoc, 0, m1(N)), y.items.push(r(V, N.value || ""));
|
718
718
|
break;
|
719
719
|
case 5:
|
720
|
-
|
720
|
+
N.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, M.lastStartLoc, 0, m1(N)), y.items.push(l(V, N.value || ""));
|
721
721
|
break;
|
722
722
|
case 7:
|
723
|
-
|
723
|
+
N.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, M.lastStartLoc, 0, m1(N)), y.items.push(o(V, N.value || ""));
|
724
724
|
break;
|
725
725
|
case 8:
|
726
|
-
const
|
727
|
-
y.items.push(
|
726
|
+
const U = d(V);
|
727
|
+
y.items.push(U.node), k = U.nextConsumeToken || null;
|
728
728
|
break;
|
729
729
|
}
|
730
730
|
} while (M.currentType !== 14 && M.currentType !== 1);
|
@@ -733,24 +733,24 @@ function qI(e = {}) {
|
|
733
733
|
}
|
734
734
|
function b(V, M, L, H) {
|
735
735
|
const y = V.context();
|
736
|
-
let
|
736
|
+
let k = H.items.length === 0;
|
737
737
|
const C = n(1, M, L);
|
738
738
|
C.cases = [], C.cases.push(H);
|
739
739
|
do {
|
740
740
|
const _ = h(V);
|
741
|
-
|
741
|
+
k || (k = _.items.length === 0), C.cases.push(_);
|
742
742
|
} while (y.currentType !== 14);
|
743
|
-
return
|
743
|
+
return k && t(V, J.MUST_HAVE_MESSAGES_IN_PLURAL, L, 0), s(C, V.currentOffset(), V.currentPosition()), C;
|
744
744
|
}
|
745
|
-
function
|
745
|
+
function A(V) {
|
746
746
|
const M = V.context(), { offset: L, startLoc: H } = M, y = h(V);
|
747
747
|
return M.currentType === 14 ? y : b(V, L, H, y);
|
748
748
|
}
|
749
|
-
function
|
749
|
+
function w(V) {
|
750
750
|
const M = RI(V, us({}, e)), L = M.context(), H = n(0, L.offset, L.startLoc);
|
751
|
-
return c && H.loc && (H.loc.source = V), H.body =
|
751
|
+
return c && H.loc && (H.loc.source = V), H.body = A(M), e.onCacheKey && (H.cacheKey = e.onCacheKey(V)), L.currentType !== 14 && t(M, J.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, V[L.offset] || ""), s(H, M.currentOffset(), M.currentPosition()), H;
|
752
752
|
}
|
753
|
-
return { parse:
|
753
|
+
return { parse: w };
|
754
754
|
}
|
755
755
|
function m1(e) {
|
756
756
|
if (e.type === 14)
|
@@ -904,20 +904,20 @@ function KI(e, c) {
|
|
904
904
|
};
|
905
905
|
i && e.loc && (r.source = e.loc.source);
|
906
906
|
const l = () => r;
|
907
|
-
function o(
|
908
|
-
r.code +=
|
907
|
+
function o(w, V) {
|
908
|
+
r.code += w;
|
909
909
|
}
|
910
|
-
function f(
|
910
|
+
function f(w, V = !0) {
|
911
911
|
const M = V ? n : "";
|
912
|
-
o(s ? M + " ".repeat(
|
912
|
+
o(s ? M + " ".repeat(w) : M);
|
913
913
|
}
|
914
|
-
function m(
|
914
|
+
function m(w = !0) {
|
915
915
|
const V = ++r.indentLevel;
|
916
|
-
|
916
|
+
w && f(V);
|
917
917
|
}
|
918
|
-
function d(
|
918
|
+
function d(w = !0) {
|
919
919
|
const V = --r.indentLevel;
|
920
|
-
|
920
|
+
w && f(V);
|
921
921
|
}
|
922
922
|
function h() {
|
923
923
|
f(r.indentLevel);
|
@@ -928,7 +928,7 @@ function KI(e, c) {
|
|
928
928
|
indent: m,
|
929
929
|
deindent: d,
|
930
930
|
newline: h,
|
931
|
-
helper: (
|
931
|
+
helper: (w) => `_${w}`,
|
932
932
|
needIndent: () => r.needIndent
|
933
933
|
};
|
934
934
|
}
|
@@ -1334,26 +1334,26 @@ function HE(e, c) {
|
|
1334
1334
|
c.count || (c.count = e), c.n || (c.n = e);
|
1335
1335
|
}
|
1336
1336
|
function gE(e = {}) {
|
1337
|
-
const c = e.locale, a = zE(e), t = m2(e.pluralRules) &&
|
1337
|
+
const c = e.locale, a = zE(e), t = m2(e.pluralRules) && j(c) && V2(e.pluralRules[c]) ? e.pluralRules[c] : E9, n = m2(e.pluralRules) && j(c) && V2(e.pluralRules[c]) ? E9 : void 0, s = (V) => V[t(a, V.length, n)], i = e.list || [], r = (V) => i[V], l = e.named || {};
|
1338
1338
|
k2(e.pluralIndex) && HE(a, l);
|
1339
1339
|
const o = (V) => l[V];
|
1340
1340
|
function f(V) {
|
1341
1341
|
const M = V2(e.messages) ? e.messages(V) : m2(e.messages) ? e.messages[V] : !1;
|
1342
1342
|
return M || (e.parent ? e.parent.message(V) : vE);
|
1343
1343
|
}
|
1344
|
-
const m = (V) => e.modifiers ? e.modifiers[V] : dE, d = c2(e.processor) && V2(e.processor.normalize) ? e.processor.normalize : hE, h = c2(e.processor) && V2(e.processor.interpolate) ? e.processor.interpolate : VE, b = c2(e.processor) &&
|
1344
|
+
const m = (V) => e.modifiers ? e.modifiers[V] : dE, d = c2(e.processor) && V2(e.processor.normalize) ? e.processor.normalize : hE, h = c2(e.processor) && V2(e.processor.interpolate) ? e.processor.interpolate : VE, b = c2(e.processor) && j(e.processor.type) ? e.processor.type : pE, w = {
|
1345
1345
|
list: r,
|
1346
1346
|
named: o,
|
1347
1347
|
plural: s,
|
1348
1348
|
linked: (V, ...M) => {
|
1349
1349
|
const [L, H] = M;
|
1350
|
-
let y = "text",
|
1351
|
-
M.length === 1 ? m2(L) ? (
|
1352
|
-
const C = f(V)(
|
1350
|
+
let y = "text", k = "";
|
1351
|
+
M.length === 1 ? m2(L) ? (k = L.modifier || k, y = L.type || y) : j(L) && (k = L || k) : M.length === 2 && (j(L) && (k = L || k), j(H) && (y = H || y));
|
1352
|
+
const C = f(V)(w), _ = (
|
1353
1353
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
1354
|
-
y === "vnode" && p2(C) &&
|
1354
|
+
y === "vnode" && p2(C) && k ? C[0] : C
|
1355
1355
|
);
|
1356
|
-
return
|
1356
|
+
return k ? m(k)(_, y) : _;
|
1357
1357
|
},
|
1358
1358
|
message: f,
|
1359
1359
|
type: b,
|
@@ -1361,7 +1361,7 @@ function gE(e = {}) {
|
|
1361
1361
|
normalize: d,
|
1362
1362
|
values: P2({}, i, l)
|
1363
1363
|
};
|
1364
|
-
return
|
1364
|
+
return w;
|
1365
1365
|
}
|
1366
1366
|
let I3 = null;
|
1367
1367
|
function ME(e) {
|
@@ -1408,16 +1408,16 @@ function _0(e, c) {
|
|
1408
1408
|
}
|
1409
1409
|
let F6;
|
1410
1410
|
function D9(e) {
|
1411
|
-
return
|
1411
|
+
return j(e) ? e : F6 != null && e.resolvedOnce ? F6 : F6 = e();
|
1412
1412
|
}
|
1413
1413
|
function yE(e, c, a) {
|
1414
1414
|
return [.../* @__PURE__ */ new Set([
|
1415
1415
|
a,
|
1416
|
-
...p2(c) ? c : m2(c) ? Object.keys(c) :
|
1416
|
+
...p2(c) ? c : m2(c) ? Object.keys(c) : j(c) ? [c] : [a]
|
1417
1417
|
])];
|
1418
1418
|
}
|
1419
1419
|
function ds(e, c, a) {
|
1420
|
-
const t =
|
1420
|
+
const t = j(a) ? a : f3, n = e;
|
1421
1421
|
n.__localeChainCache || (n.__localeChainCache = /* @__PURE__ */ new Map());
|
1422
1422
|
let s = n.__localeChainCache.get(t);
|
1423
1423
|
if (!s) {
|
@@ -1426,7 +1426,7 @@ function ds(e, c, a) {
|
|
1426
1426
|
for (; p2(i); )
|
1427
1427
|
i = O9(s, i, c);
|
1428
1428
|
const r = p2(c) || !c2(c) ? c : c.default ? c.default : null;
|
1429
|
-
i =
|
1429
|
+
i = j(r) ? [r] : r, p2(i) && O9(s, i, !1), n.__localeChainCache.set(t, s);
|
1430
1430
|
}
|
1431
1431
|
return s;
|
1432
1432
|
}
|
@@ -1434,7 +1434,7 @@ function O9(e, c, a) {
|
|
1434
1434
|
let t = !0;
|
1435
1435
|
for (let n = 0; n < c.length && n2(t); n++) {
|
1436
1436
|
const s = c[n];
|
1437
|
-
|
1437
|
+
j(s) && (t = AE(e, c[n], a));
|
1438
1438
|
}
|
1439
1439
|
return t;
|
1440
1440
|
}
|
@@ -1459,9 +1459,9 @@ function NE(e, c, a) {
|
|
1459
1459
|
const xE = "9.7.0", B4 = -1, f3 = "en-US", S4 = "", P9 = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
1460
1460
|
function SE() {
|
1461
1461
|
return {
|
1462
|
-
upper: (e, c) => c === "text" &&
|
1463
|
-
lower: (e, c) => c === "text" &&
|
1464
|
-
capitalize: (e, c) => c === "text" &&
|
1462
|
+
upper: (e, c) => c === "text" && j(e) ? e.toUpperCase() : c === "vnode" && m2(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
1463
|
+
lower: (e, c) => c === "text" && j(e) ? e.toLowerCase() : c === "vnode" && m2(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
1464
|
+
capitalize: (e, c) => c === "text" && j(e) ? P9(e) : c === "vnode" && m2(e) && "__v_isVNode" in e ? P9(e.children) : e
|
1465
1465
|
};
|
1466
1466
|
}
|
1467
1467
|
let vs;
|
@@ -1486,11 +1486,11 @@ const F9 = (e) => {
|
|
1486
1486
|
}, EE = () => zs;
|
1487
1487
|
let R9 = 0;
|
1488
1488
|
function DE(e = {}) {
|
1489
|
-
const c = V2(e.onWarn) ? e.onWarn : D2, a =
|
1489
|
+
const c = V2(e.onWarn) ? e.onWarn : D2, a = j(e.version) ? e.version : xE, t = j(e.locale) || V2(e.locale) ? e.locale : f3, n = V2(t) ? f3 : t, s = p2(e.fallbackLocale) || c2(e.fallbackLocale) || j(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, i = c2(e.messages) ? e.messages : { [n]: {} }, r = c2(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, l = c2(e.numberFormats) ? e.numberFormats : { [n]: {} }, o = P2({}, e.modifiers || {}, SE()), f = e.pluralRules || {}, m = V2(e.missing) ? e.missing : null, d = n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, b = !!e.fallbackFormat, A = !!e.unresolving, w = V2(e.postTranslation) ? e.postTranslation : null, V = c2(e.processor) ? e.processor : null, M = n2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, H = V2(e.messageCompiler) ? e.messageCompiler : vs;
|
1490
1490
|
process.env.NODE_ENV !== "production" && V2(e.messageCompiler) && yI(Q1(U2.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
1491
|
-
const y = V2(e.messageResolver) ? e.messageResolver : ps || uE,
|
1491
|
+
const y = V2(e.messageResolver) ? e.messageResolver : ps || uE, k = V2(e.localeFallbacker) ? e.localeFallbacker : hs || yE, C = m2(e.fallbackContext) ? e.fallbackContext : void 0, _ = e, N = m2(_.__datetimeFormatters) ? _.__datetimeFormatters : /* @__PURE__ */ new Map(), U = m2(_.__numberFormatters) ? _.__numberFormatters : /* @__PURE__ */ new Map(), W = m2(_.__meta) ? _.__meta : {};
|
1492
1492
|
R9++;
|
1493
|
-
const
|
1493
|
+
const R = {
|
1494
1494
|
version: a,
|
1495
1495
|
cid: R9,
|
1496
1496
|
locale: t,
|
@@ -1502,19 +1502,19 @@ function DE(e = {}) {
|
|
1502
1502
|
missingWarn: d,
|
1503
1503
|
fallbackWarn: h,
|
1504
1504
|
fallbackFormat: b,
|
1505
|
-
unresolving:
|
1506
|
-
postTranslation:
|
1505
|
+
unresolving: A,
|
1506
|
+
postTranslation: w,
|
1507
1507
|
processor: V,
|
1508
1508
|
warnHtmlMessage: M,
|
1509
1509
|
escapeParameter: L,
|
1510
1510
|
messageCompiler: H,
|
1511
1511
|
messageResolver: y,
|
1512
|
-
localeFallbacker:
|
1512
|
+
localeFallbacker: k,
|
1513
1513
|
fallbackContext: C,
|
1514
1514
|
onWarn: c,
|
1515
1515
|
__meta: W
|
1516
1516
|
};
|
1517
|
-
return
|
1517
|
+
return R.datetimeFormats = r, R.numberFormats = l, R.__datetimeFormatters = N, R.__numberFormatters = U, process.env.NODE_ENV !== "production" && (R.__v_emitter = _.__v_emitter != null ? _.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && CE(R, a, W), R;
|
1518
1518
|
}
|
1519
1519
|
function F4(e, c) {
|
1520
1520
|
return e instanceof RegExp ? e.test(c) : e;
|
@@ -1535,7 +1535,7 @@ function y0(e, c, a, t, n) {
|
|
1535
1535
|
}
|
1536
1536
|
if (s !== null) {
|
1537
1537
|
const r = s(e, a, c, n);
|
1538
|
-
return
|
1538
|
+
return j(r) ? r : c;
|
1539
1539
|
} else
|
1540
1540
|
return process.env.NODE_ENV !== "production" && Hs(t, c) && i(Q1(U2.NOT_FOUND_KEY, { key: c, locale: a })), c;
|
1541
1541
|
}
|
@@ -1625,7 +1625,7 @@ function bs(e, c = {}) {
|
|
1625
1625
|
}, { ...tE(e, c), detectError: a };
|
1626
1626
|
}
|
1627
1627
|
const FE = /* @__NO_SIDE_EFFECTS__ */ (e, c) => {
|
1628
|
-
if (!
|
1628
|
+
if (!j(e))
|
1629
1629
|
throw U1(e1.NOT_SUPPORT_NON_STRING_MESSAGE);
|
1630
1630
|
{
|
1631
1631
|
const a = n2(c.warnHtmlMessage) ? c.warnHtmlMessage : !0;
|
@@ -1638,7 +1638,7 @@ const FE = /* @__NO_SIDE_EFFECTS__ */ (e, c) => {
|
|
1638
1638
|
}
|
1639
1639
|
};
|
1640
1640
|
function RE(e, c) {
|
1641
|
-
if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
1641
|
+
if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && j(e)) {
|
1642
1642
|
const a = n2(c.warnHtmlMessage) ? c.warnHtmlMessage : !0;
|
1643
1643
|
process.env.NODE_ENV !== "production" && Ms(e, a);
|
1644
1644
|
const n = (c.onCacheKey || Cs)(e), s = n3[n];
|
@@ -1663,72 +1663,72 @@ function RE(e, c) {
|
|
1663
1663
|
}
|
1664
1664
|
const $9 = () => "", J2 = (e) => V2(e);
|
1665
1665
|
function U9(e, ...c) {
|
1666
|
-
const { fallbackFormat: a, postTranslation: t, unresolving: n, messageCompiler: s, fallbackLocale: i, messages: r } = e, [l, o] = K6(...c), f = n2(o.missingWarn) ? o.missingWarn : e.missingWarn, m = n2(o.fallbackWarn) ? o.fallbackWarn : e.fallbackWarn, d = n2(o.escapeParameter) ? o.escapeParameter : e.escapeParameter, h = !!o.resolvedMessage, b =
|
1666
|
+
const { fallbackFormat: a, postTranslation: t, unresolving: n, messageCompiler: s, fallbackLocale: i, messages: r } = e, [l, o] = K6(...c), f = n2(o.missingWarn) ? o.missingWarn : e.missingWarn, m = n2(o.fallbackWarn) ? o.fallbackWarn : e.fallbackWarn, d = n2(o.escapeParameter) ? o.escapeParameter : e.escapeParameter, h = !!o.resolvedMessage, b = j(o.default) || n2(o.default) ? n2(o.default) ? s ? l : () => l : o.default : a ? s ? l : () => l : "", A = a || b !== "", w = _0(e, o);
|
1667
1667
|
d && jE(o);
|
1668
1668
|
let [V, M, L] = h ? [
|
1669
1669
|
l,
|
1670
|
-
|
1671
|
-
r[
|
1672
|
-
] : Ls(e, l,
|
1673
|
-
if (!h && !(
|
1670
|
+
w,
|
1671
|
+
r[w] || {}
|
1672
|
+
] : Ls(e, l, w, i, m, f), H = V, y = l;
|
1673
|
+
if (!h && !(j(H) || E1(H) || J2(H)) && A && (H = b, y = H), !h && (!(j(H) || E1(H) || J2(H)) || !j(M)))
|
1674
1674
|
return n ? B4 : l;
|
1675
|
-
if (process.env.NODE_ENV !== "production" &&
|
1675
|
+
if (process.env.NODE_ENV !== "production" && j(H) && e.messageCompiler == null)
|
1676
1676
|
return D2(`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 '${l}'.`), l;
|
1677
|
-
let
|
1677
|
+
let k = !1;
|
1678
1678
|
const C = () => {
|
1679
|
-
|
1679
|
+
k = !0;
|
1680
1680
|
}, _ = J2(H) ? H : _s(e, l, M, H, y, C);
|
1681
|
-
if (
|
1681
|
+
if (k)
|
1682
1682
|
return H;
|
1683
|
-
const
|
1683
|
+
const N = WE(e, M, L, o), U = gE(N), W = $E(e, _, U), R = t ? t(W, l) : W;
|
1684
1684
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
1685
1685
|
const F = {
|
1686
1686
|
timestamp: Date.now(),
|
1687
|
-
key:
|
1687
|
+
key: j(l) ? l : J2(H) ? H.key : "",
|
1688
1688
|
locale: M || (J2(H) ? H.locale : ""),
|
1689
|
-
format:
|
1690
|
-
message:
|
1689
|
+
format: j(H) ? H : J2(H) ? H.source : "",
|
1690
|
+
message: R
|
1691
1691
|
};
|
1692
1692
|
F.meta = P2({}, e.__meta, /* @__PURE__ */ IE() || {}), bE(F);
|
1693
1693
|
}
|
1694
|
-
return
|
1694
|
+
return R;
|
1695
1695
|
}
|
1696
1696
|
function jE(e) {
|
1697
|
-
p2(e.list) ? e.list = e.list.map((c) =>
|
1698
|
-
|
1697
|
+
p2(e.list) ? e.list = e.list.map((c) => j(c) ? A9(c) : c) : m2(e.named) && Object.keys(e.named).forEach((c) => {
|
1698
|
+
j(e.named[c]) && (e.named[c] = A9(e.named[c]));
|
1699
1699
|
});
|
1700
1700
|
}
|
1701
1701
|
function Ls(e, c, a, t, n, s) {
|
1702
1702
|
const { messages: i, onWarn: r, messageResolver: l, localeFallbacker: o } = e, f = o(e, t, a);
|
1703
|
-
let m = {}, d, h = null, b = a,
|
1704
|
-
const
|
1703
|
+
let m = {}, d, h = null, b = a, A = null;
|
1704
|
+
const w = "translate";
|
1705
1705
|
for (let V = 0; V < f.length; V++) {
|
1706
|
-
if (d =
|
1706
|
+
if (d = A = f[V], process.env.NODE_ENV !== "production" && a !== d && F4(n, c) && r(Q1(U2.FALLBACK_TO_TRANSLATE, {
|
1707
1707
|
key: c,
|
1708
1708
|
target: d
|
1709
1709
|
})), process.env.NODE_ENV !== "production" && a !== d) {
|
1710
|
-
const
|
1711
|
-
|
1712
|
-
type:
|
1710
|
+
const k = e.__v_emitter;
|
1711
|
+
k && k.emit("fallback", {
|
1712
|
+
type: w,
|
1713
1713
|
key: c,
|
1714
1714
|
from: b,
|
1715
|
-
to:
|
1716
|
-
groupId: `${
|
1715
|
+
to: A,
|
1716
|
+
groupId: `${w}:${c}`
|
1717
1717
|
});
|
1718
1718
|
}
|
1719
1719
|
m = i[d] || {};
|
1720
1720
|
let M = null, L, H;
|
1721
1721
|
if (process.env.NODE_ENV !== "production" && p1 && (M = window.performance.now(), L = "intlify-message-resolve-start", H = "intlify-message-resolve-end", Q2 && Q2(L)), (h = l(m, c)) === null && (h = m[c]), process.env.NODE_ENV !== "production" && p1) {
|
1722
|
-
const
|
1722
|
+
const k = window.performance.now(), C = e.__v_emitter;
|
1723
1723
|
C && M && h && C.emit("message-resolve", {
|
1724
1724
|
type: "message-resolve",
|
1725
1725
|
key: c,
|
1726
1726
|
message: h,
|
1727
|
-
time:
|
1728
|
-
groupId: `${
|
1727
|
+
time: k - M,
|
1728
|
+
groupId: `${w}:${c}`
|
1729
1729
|
}), L && H && Q2 && Y1 && (Q2(H), Y1("intlify message resolve", L, H));
|
1730
1730
|
}
|
1731
|
-
if (
|
1731
|
+
if (j(h) || E1(h) || J2(h))
|
1732
1732
|
break;
|
1733
1733
|
const y = y0(
|
1734
1734
|
e,
|
@@ -1736,9 +1736,9 @@ function Ls(e, c, a, t, n, s) {
|
|
1736
1736
|
c,
|
1737
1737
|
d,
|
1738
1738
|
s,
|
1739
|
-
|
1739
|
+
w
|
1740
1740
|
);
|
1741
|
-
y !== c && (h = y), b =
|
1741
|
+
y !== c && (h = y), b = A;
|
1742
1742
|
}
|
1743
1743
|
return [h, d, m];
|
1744
1744
|
}
|
@@ -1783,10 +1783,10 @@ function $E(e, c, a) {
|
|
1783
1783
|
}
|
1784
1784
|
function K6(...e) {
|
1785
1785
|
const [c, a, t] = e, n = {};
|
1786
|
-
if (!
|
1786
|
+
if (!j(c) && !k2(c) && !J2(c) && !E1(c))
|
1787
1787
|
throw U1(e1.INVALID_ARGUMENT);
|
1788
1788
|
const s = k2(c) ? String(c) : (J2(c), c);
|
1789
|
-
return k2(a) ? n.plural = a :
|
1789
|
+
return k2(a) ? n.plural = a : j(a) ? n.default = a : c2(a) && !P4(a) ? n.named = a : p2(a) && (n.list = a), k2(t) ? n.plural = t : j(t) ? n.default = t : c2(t) && P2(n, t), [s, n];
|
1790
1790
|
}
|
1791
1791
|
function UE(e, c, a, t, n, s) {
|
1792
1792
|
return {
|
@@ -1811,7 +1811,7 @@ ${o}` : l);
|
|
1811
1811
|
};
|
1812
1812
|
}
|
1813
1813
|
function qE(e) {
|
1814
|
-
if (
|
1814
|
+
if (j(e))
|
1815
1815
|
return e;
|
1816
1816
|
if (e.loc && e.loc.source)
|
1817
1817
|
return e.loc.source;
|
@@ -1824,15 +1824,15 @@ function WE(e, c, a, t) {
|
|
1824
1824
|
messages: (h) => {
|
1825
1825
|
let b = i(a, h);
|
1826
1826
|
if (b == null && f) {
|
1827
|
-
const [, ,
|
1828
|
-
b = i(
|
1827
|
+
const [, , A] = Ls(f, h, c, r, l, o);
|
1828
|
+
b = i(A, h);
|
1829
1829
|
}
|
1830
|
-
if (
|
1831
|
-
let
|
1830
|
+
if (j(b) || E1(b)) {
|
1831
|
+
let A = !1;
|
1832
1832
|
const V = _s(e, h, c, b, h, () => {
|
1833
|
-
|
1833
|
+
A = !0;
|
1834
1834
|
});
|
1835
|
-
return
|
1835
|
+
return A ? $9 : V;
|
1836
1836
|
} else
|
1837
1837
|
return J2(b) ? b : $9;
|
1838
1838
|
}
|
@@ -1847,35 +1847,35 @@ function W9(e, ...c) {
|
|
1847
1847
|
const { datetimeFormats: a, unresolving: t, fallbackLocale: n, onWarn: s, localeFallbacker: i } = e, { __datetimeFormatters: r } = e;
|
1848
1848
|
if (process.env.NODE_ENV !== "production" && !ys.dateTimeFormat)
|
1849
1849
|
return s(Q1(U2.CANNOT_FORMAT_DATE)), S4;
|
1850
|
-
const [l, o, f, m] = Z6(...c), d = n2(f.missingWarn) ? f.missingWarn : e.missingWarn, h = n2(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, b = !!f.part,
|
1850
|
+
const [l, o, f, m] = Z6(...c), d = n2(f.missingWarn) ? f.missingWarn : e.missingWarn, h = n2(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, b = !!f.part, A = _0(e, f), w = i(
|
1851
1851
|
e,
|
1852
1852
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1853
1853
|
n,
|
1854
|
-
|
1854
|
+
A
|
1855
1855
|
);
|
1856
|
-
if (!
|
1857
|
-
return new Intl.DateTimeFormat(
|
1858
|
-
let V = {}, M, L = null, H =
|
1859
|
-
const
|
1860
|
-
for (let
|
1861
|
-
if (M = y =
|
1856
|
+
if (!j(l) || l === "")
|
1857
|
+
return new Intl.DateTimeFormat(A, m).format(o);
|
1858
|
+
let V = {}, M, L = null, H = A, y = null;
|
1859
|
+
const k = "datetime format";
|
1860
|
+
for (let N = 0; N < w.length; N++) {
|
1861
|
+
if (M = y = w[N], process.env.NODE_ENV !== "production" && A !== M && F4(h, l) && s(Q1(U2.FALLBACK_TO_DATE_FORMAT, {
|
1862
1862
|
key: l,
|
1863
1863
|
target: M
|
1864
|
-
})), process.env.NODE_ENV !== "production" &&
|
1865
|
-
const
|
1866
|
-
|
1867
|
-
type:
|
1864
|
+
})), process.env.NODE_ENV !== "production" && A !== M) {
|
1865
|
+
const U = e.__v_emitter;
|
1866
|
+
U && U.emit("fallback", {
|
1867
|
+
type: k,
|
1868
1868
|
key: l,
|
1869
1869
|
from: H,
|
1870
1870
|
to: y,
|
1871
|
-
groupId: `${
|
1871
|
+
groupId: `${k}:${l}`
|
1872
1872
|
});
|
1873
1873
|
}
|
1874
1874
|
if (V = a[M] || {}, L = V[l], c2(L))
|
1875
1875
|
break;
|
1876
|
-
y0(e, l, M, d,
|
1876
|
+
y0(e, l, M, d, k), H = y;
|
1877
1877
|
}
|
1878
|
-
if (!c2(L) || !
|
1878
|
+
if (!c2(L) || !j(M))
|
1879
1879
|
return t ? B4 : l;
|
1880
1880
|
let C = `${M}__${l}`;
|
1881
1881
|
P4(m) || (C = `${C}__${JSON.stringify(m)}`);
|
@@ -1907,7 +1907,7 @@ const As = [
|
|
1907
1907
|
function Z6(...e) {
|
1908
1908
|
const [c, a, t, n] = e, s = {};
|
1909
1909
|
let i = {}, r;
|
1910
|
-
if (
|
1910
|
+
if (j(c)) {
|
1911
1911
|
const l = c.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
1912
1912
|
if (!l)
|
1913
1913
|
throw U1(e1.INVALID_ISO_DATE_ARGUMENT);
|
@@ -1926,9 +1926,9 @@ function Z6(...e) {
|
|
1926
1926
|
r = c;
|
1927
1927
|
else
|
1928
1928
|
throw U1(e1.INVALID_ARGUMENT);
|
1929
|
-
return
|
1929
|
+
return j(a) ? s.key = a : c2(a) && Object.keys(a).forEach((l) => {
|
1930
1930
|
As.includes(l) ? i[l] = a[l] : s[l] = a[l];
|
1931
|
-
}),
|
1931
|
+
}), j(t) ? s.locale = t : c2(t) && (i = t), c2(n) && (i = n), [s.key || "", r, s, i];
|
1932
1932
|
}
|
1933
1933
|
function G9(e, c, a) {
|
1934
1934
|
const t = e;
|
@@ -1941,35 +1941,35 @@ function Y9(e, ...c) {
|
|
1941
1941
|
const { numberFormats: a, unresolving: t, fallbackLocale: n, onWarn: s, localeFallbacker: i } = e, { __numberFormatters: r } = e;
|
1942
1942
|
if (process.env.NODE_ENV !== "production" && !ys.numberFormat)
|
1943
1943
|
return s(Q1(U2.CANNOT_FORMAT_NUMBER)), S4;
|
1944
|
-
const [l, o, f, m] = J6(...c), d = n2(f.missingWarn) ? f.missingWarn : e.missingWarn, h = n2(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, b = !!f.part,
|
1944
|
+
const [l, o, f, m] = J6(...c), d = n2(f.missingWarn) ? f.missingWarn : e.missingWarn, h = n2(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, b = !!f.part, A = _0(e, f), w = i(
|
1945
1945
|
e,
|
1946
1946
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1947
1947
|
n,
|
1948
|
-
|
1948
|
+
A
|
1949
1949
|
);
|
1950
|
-
if (!
|
1951
|
-
return new Intl.NumberFormat(
|
1952
|
-
let V = {}, M, L = null, H =
|
1953
|
-
const
|
1954
|
-
for (let
|
1955
|
-
if (M = y =
|
1950
|
+
if (!j(l) || l === "")
|
1951
|
+
return new Intl.NumberFormat(A, m).format(o);
|
1952
|
+
let V = {}, M, L = null, H = A, y = null;
|
1953
|
+
const k = "number format";
|
1954
|
+
for (let N = 0; N < w.length; N++) {
|
1955
|
+
if (M = y = w[N], process.env.NODE_ENV !== "production" && A !== M && F4(h, l) && s(Q1(U2.FALLBACK_TO_NUMBER_FORMAT, {
|
1956
1956
|
key: l,
|
1957
1957
|
target: M
|
1958
|
-
})), process.env.NODE_ENV !== "production" &&
|
1959
|
-
const
|
1960
|
-
|
1961
|
-
type:
|
1958
|
+
})), process.env.NODE_ENV !== "production" && A !== M) {
|
1959
|
+
const U = e.__v_emitter;
|
1960
|
+
U && U.emit("fallback", {
|
1961
|
+
type: k,
|
1962
1962
|
key: l,
|
1963
1963
|
from: H,
|
1964
1964
|
to: y,
|
1965
|
-
groupId: `${
|
1965
|
+
groupId: `${k}:${l}`
|
1966
1966
|
});
|
1967
1967
|
}
|
1968
1968
|
if (V = a[M] || {}, L = V[l], c2(L))
|
1969
1969
|
break;
|
1970
|
-
y0(e, l, M, d,
|
1970
|
+
y0(e, l, M, d, k), H = y;
|
1971
1971
|
}
|
1972
|
-
if (!c2(L) || !
|
1972
|
+
if (!c2(L) || !j(M))
|
1973
1973
|
return t ? B4 : l;
|
1974
1974
|
let C = `${M}__${l}`;
|
1975
1975
|
P4(m) || (C = `${C}__${JSON.stringify(m)}`);
|
@@ -2004,9 +2004,9 @@ function J6(...e) {
|
|
2004
2004
|
if (!k2(c))
|
2005
2005
|
throw U1(e1.INVALID_ARGUMENT);
|
2006
2006
|
const r = c;
|
2007
|
-
return
|
2007
|
+
return j(a) ? s.key = a : c2(a) && Object.keys(a).forEach((l) => {
|
2008
2008
|
Ns.includes(l) ? i[l] = a[l] : s[l] = a[l];
|
2009
|
-
}),
|
2009
|
+
}), j(t) ? s.locale = t : c2(t) && (i = t), c2(n) && (i = n), [s.key || "", r, s, i];
|
2010
2010
|
}
|
2011
2011
|
function Q9(e, c, a) {
|
2012
2012
|
const t = e;
|
@@ -2140,7 +2140,7 @@ const Ss = U2.__EXTEND_POINT__, x1 = C0(Ss), N2 = {
|
|
2140
2140
|
function Y2(e, ...c) {
|
2141
2141
|
return M0(tD[e], ...c);
|
2142
2142
|
}
|
2143
|
-
const ks = e1.__EXTEND_POINT__, q2 = C0(ks),
|
2143
|
+
const ks = e1.__EXTEND_POINT__, q2 = C0(ks), f2 = {
|
2144
2144
|
// composer module errors
|
2145
2145
|
UNEXPECTED_RETURN_TYPE: ks,
|
2146
2146
|
// legacy module errors
|
@@ -2173,20 +2173,20 @@ function T2(e, ...c) {
|
|
2173
2173
|
return h3(e, null, process.env.NODE_ENV !== "production" ? { messages: nD, args: c } : void 0);
|
2174
2174
|
}
|
2175
2175
|
const nD = {
|
2176
|
-
[
|
2177
|
-
[
|
2178
|
-
[
|
2179
|
-
[
|
2180
|
-
[
|
2181
|
-
[
|
2182
|
-
[
|
2183
|
-
[
|
2184
|
-
[
|
2185
|
-
[
|
2186
|
-
[
|
2187
|
-
[
|
2188
|
-
[
|
2189
|
-
[
|
2176
|
+
[f2.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
2177
|
+
[f2.INVALID_ARGUMENT]: "Invalid argument",
|
2178
|
+
[f2.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
2179
|
+
[f2.NOT_INSTALLED]: "Need to install with `app.use` function",
|
2180
|
+
[f2.UNEXPECTED_ERROR]: "Unexpected error",
|
2181
|
+
[f2.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
|
2182
|
+
[f2.REQUIRED_VALUE]: "Required in value: {0}",
|
2183
|
+
[f2.INVALID_VALUE]: "Invalid value",
|
2184
|
+
[f2.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
2185
|
+
[f2.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
2186
|
+
[f2.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
2187
|
+
[f2.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
2188
|
+
[f2.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",
|
2189
|
+
[f2.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
2190
2190
|
}, c0 = /* @__PURE__ */ H1("__translateVNode"), a0 = /* @__PURE__ */ H1("__datetimeParts"), t0 = /* @__PURE__ */ H1("__numberParts"), X1 = /* @__PURE__ */ H1("__enableEmitter"), E3 = /* @__PURE__ */ H1("__disableEmitter"), ws = H1("__setPluralRules"), Ts = /* @__PURE__ */ H1("__injectWithOption"), n0 = /* @__PURE__ */ H1("__dispose");
|
2191
2191
|
function D3(e) {
|
2192
2192
|
if (!m2(e))
|
@@ -2218,7 +2218,7 @@ function R4(e, c) {
|
|
2218
2218
|
const { locale: l, resource: o } = r;
|
2219
2219
|
l ? (i[l] = i[l] || {}, A3(o, i[l])) : A3(o, i);
|
2220
2220
|
} else
|
2221
|
-
|
2221
|
+
j(r) && A3(JSON.parse(r), i);
|
2222
2222
|
}), n == null && s)
|
2223
2223
|
for (const r in i)
|
2224
2224
|
T3(i, r) && D3(i[r]);
|
@@ -2270,27 +2270,27 @@ function A0(e = {}, c) {
|
|
2270
2270
|
let i = n2(e.inheritLocale) ? e.inheritLocale : !0;
|
2271
2271
|
const r = e2(
|
2272
2272
|
// prettier-ignore
|
2273
|
-
a && i ? a.locale.value :
|
2273
|
+
a && i ? a.locale.value : j(e.locale) ? e.locale : f3
|
2274
2274
|
), l = e2(
|
2275
2275
|
// prettier-ignore
|
2276
|
-
a && i ? a.fallbackLocale.value :
|
2276
|
+
a && i ? a.fallbackLocale.value : j(e.fallbackLocale) || p2(e.fallbackLocale) || c2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r.value
|
2277
2277
|
), o = e2(R4(r.value, e)), f = e2(c2(e.datetimeFormats) ? e.datetimeFormats : { [r.value]: {} }), m = e2(c2(e.numberFormats) ? e.numberFormats : { [r.value]: {} });
|
2278
|
-
let d = a ? a.missingWarn : n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = a ? a.fallbackWarn : n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, b = a ? a.fallbackRoot : n2(e.fallbackRoot) ? e.fallbackRoot : !0,
|
2278
|
+
let d = a ? a.missingWarn : n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = a ? a.fallbackWarn : n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, b = a ? a.fallbackRoot : n2(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, w = V2(e.missing) ? e.missing : null, V = V2(e.missing) ? en(e.missing) : null, M = V2(e.postTranslation) ? e.postTranslation : null, L = a ? a.warnHtmlMessage : n2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, H = !!e.escapeParameter;
|
2279
2279
|
const y = a ? a.modifiers : c2(e.modifiers) ? e.modifiers : {};
|
2280
|
-
let
|
2280
|
+
let k = e.pluralRules || a && a.pluralRules, C;
|
2281
2281
|
C = (() => {
|
2282
2282
|
n && F9(null);
|
2283
|
-
const
|
2283
|
+
const T = {
|
2284
2284
|
version: cD,
|
2285
2285
|
locale: r.value,
|
2286
2286
|
fallbackLocale: l.value,
|
2287
2287
|
messages: o.value,
|
2288
2288
|
modifiers: y,
|
2289
|
-
pluralRules:
|
2289
|
+
pluralRules: k,
|
2290
2290
|
missing: V === null ? void 0 : V,
|
2291
2291
|
missingWarn: d,
|
2292
2292
|
fallbackWarn: h,
|
2293
|
-
fallbackFormat:
|
2293
|
+
fallbackFormat: A,
|
2294
2294
|
unresolving: !0,
|
2295
2295
|
postTranslation: M === null ? void 0 : M,
|
2296
2296
|
warnHtmlMessage: L,
|
@@ -2299,11 +2299,11 @@ function A0(e = {}, c) {
|
|
2299
2299
|
messageCompiler: e.messageCompiler,
|
2300
2300
|
__meta: { framework: "vue" }
|
2301
2301
|
};
|
2302
|
-
|
2303
|
-
const P = DE(
|
2302
|
+
T.datetimeFormats = f.value, T.numberFormats = m.value, T.__datetimeFormatters = c2(C) ? C.__datetimeFormatters : void 0, T.__numberFormatters = c2(C) ? C.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (T.__v_emitter = c2(C) ? C.__v_emitter : void 0);
|
2303
|
+
const P = DE(T);
|
2304
2304
|
return n && F9(P), P;
|
2305
2305
|
})(), b3(C, r.value, l.value);
|
2306
|
-
function
|
2306
|
+
function N() {
|
2307
2307
|
return [
|
2308
2308
|
r.value,
|
2309
2309
|
l.value,
|
@@ -2312,143 +2312,143 @@ function A0(e = {}, c) {
|
|
2312
2312
|
m.value
|
2313
2313
|
];
|
2314
2314
|
}
|
2315
|
-
const
|
2315
|
+
const U = E({
|
2316
2316
|
get: () => r.value,
|
2317
|
-
set: (
|
2318
|
-
r.value =
|
2317
|
+
set: (T) => {
|
2318
|
+
r.value = T, C.locale = r.value;
|
2319
2319
|
}
|
2320
2320
|
}), W = E({
|
2321
2321
|
get: () => l.value,
|
2322
|
-
set: (
|
2323
|
-
l.value =
|
2322
|
+
set: (T) => {
|
2323
|
+
l.value = T, C.fallbackLocale = l.value, b3(C, r.value, T);
|
2324
2324
|
}
|
2325
|
-
}),
|
2326
|
-
function
|
2325
|
+
}), R = E(() => o.value), F = /* @__PURE__ */ E(() => f.value), r2 = /* @__PURE__ */ E(() => m.value);
|
2326
|
+
function l2() {
|
2327
2327
|
return V2(M) ? M : null;
|
2328
2328
|
}
|
2329
|
-
function
|
2330
|
-
M =
|
2329
|
+
function a2(T) {
|
2330
|
+
M = T, C.postTranslation = T;
|
2331
2331
|
}
|
2332
2332
|
function h2() {
|
2333
|
-
return
|
2333
|
+
return w;
|
2334
2334
|
}
|
2335
|
-
function R2(
|
2336
|
-
|
2335
|
+
function R2(T) {
|
2336
|
+
T !== null && (V = en(T)), w = T, C.missing = V;
|
2337
2337
|
}
|
2338
|
-
function M2(
|
2339
|
-
return
|
2338
|
+
function M2(T, P) {
|
2339
|
+
return T !== "translate" || !P.resolvedMessage;
|
2340
2340
|
}
|
2341
|
-
const v2 = (
|
2342
|
-
|
2341
|
+
const v2 = (T, P, o2, L2, j1, v4) => {
|
2342
|
+
N();
|
2343
2343
|
let c3;
|
2344
2344
|
try {
|
2345
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (C.fallbackContext = a ? EE() : void 0), c3 =
|
2345
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (C.fallbackContext = a ? EE() : void 0), c3 = T(C);
|
2346
2346
|
} finally {
|
2347
2347
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (C.fallbackContext = void 0);
|
2348
2348
|
}
|
2349
|
-
if (
|
2350
|
-
k2(c3) && c3 === B4 ||
|
2349
|
+
if (o2 !== "translate exists" && // for not `te` (e.g `t`)
|
2350
|
+
k2(c3) && c3 === B4 || o2 === "translate exists" && !c3) {
|
2351
2351
|
const [$1, iI] = P();
|
2352
|
-
if (process.env.NODE_ENV !== "production" && a &&
|
2352
|
+
if (process.env.NODE_ENV !== "production" && a && j($1) && M2(o2, iI) && (b && (F4(h, $1) || Hs(d, $1)) && D2(Y2(N2.FALLBACK_TO_ROOT, {
|
2353
2353
|
key: $1,
|
2354
|
-
type:
|
2354
|
+
type: o2
|
2355
2355
|
})), process.env.NODE_ENV !== "production")) {
|
2356
2356
|
const { __v_emitter: L9 } = C;
|
2357
2357
|
L9 && b && L9.emit("fallback", {
|
2358
|
-
type:
|
2358
|
+
type: o2,
|
2359
2359
|
key: $1,
|
2360
2360
|
to: "global",
|
2361
|
-
groupId: `${
|
2361
|
+
groupId: `${o2}:${$1}`
|
2362
2362
|
});
|
2363
2363
|
}
|
2364
2364
|
return a && b ? L2(a) : j1($1);
|
2365
2365
|
} else {
|
2366
2366
|
if (v4(c3))
|
2367
2367
|
return c3;
|
2368
|
-
throw T2(
|
2368
|
+
throw T2(f2.UNEXPECTED_RETURN_TYPE);
|
2369
2369
|
}
|
2370
2370
|
};
|
2371
|
-
function A2(...
|
2372
|
-
return v2((P) => Reflect.apply(U9, null, [P, ...
|
2371
|
+
function A2(...T) {
|
2372
|
+
return v2((P) => Reflect.apply(U9, null, [P, ...T]), () => K6(...T), "translate", (P) => Reflect.apply(P.t, P, [...T]), (P) => P, (P) => j(P));
|
2373
2373
|
}
|
2374
|
-
function S2(...
|
2375
|
-
const [P,
|
2374
|
+
function S2(...T) {
|
2375
|
+
const [P, o2, L2] = T;
|
2376
2376
|
if (L2 && !m2(L2))
|
2377
|
-
throw T2(
|
2378
|
-
return A2(P,
|
2377
|
+
throw T2(f2.INVALID_ARGUMENT);
|
2378
|
+
return A2(P, o2, P2({ resolvedMessage: !0 }, L2 || {}));
|
2379
2379
|
}
|
2380
|
-
function C2(...
|
2381
|
-
return v2((P) => Reflect.apply(W9, null, [P, ...
|
2380
|
+
function C2(...T) {
|
2381
|
+
return v2((P) => Reflect.apply(W9, null, [P, ...T]), () => Z6(...T), "datetime format", (P) => Reflect.apply(P.d, P, [...T]), () => S4, (P) => j(P));
|
2382
2382
|
}
|
2383
|
-
function E2(...
|
2384
|
-
return v2((P) => Reflect.apply(Y9, null, [P, ...
|
2383
|
+
function E2(...T) {
|
2384
|
+
return v2((P) => Reflect.apply(Y9, null, [P, ...T]), () => J6(...T), "number format", (P) => Reflect.apply(P.n, P, [...T]), () => S4, (P) => j(P));
|
2385
2385
|
}
|
2386
|
-
function F2(
|
2387
|
-
return
|
2386
|
+
function F2(T) {
|
2387
|
+
return T.map((P) => j(P) || k2(P) || n2(P) ? X9(String(P)) : P);
|
2388
2388
|
}
|
2389
2389
|
const f1 = {
|
2390
2390
|
normalize: F2,
|
2391
|
-
interpolate: (
|
2391
|
+
interpolate: (T) => T,
|
2392
2392
|
type: "vnode"
|
2393
2393
|
};
|
2394
|
-
function j2(...
|
2394
|
+
function j2(...T) {
|
2395
2395
|
return v2(
|
2396
2396
|
(P) => {
|
2397
|
-
let
|
2397
|
+
let o2;
|
2398
2398
|
const L2 = P;
|
2399
2399
|
try {
|
2400
|
-
L2.processor = f1,
|
2400
|
+
L2.processor = f1, o2 = Reflect.apply(U9, null, [L2, ...T]);
|
2401
2401
|
} finally {
|
2402
2402
|
L2.processor = null;
|
2403
2403
|
}
|
2404
|
-
return
|
2404
|
+
return o2;
|
2405
2405
|
},
|
2406
|
-
() => K6(...
|
2406
|
+
() => K6(...T),
|
2407
2407
|
"translate",
|
2408
2408
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2409
|
-
(P) => P[c0](...
|
2409
|
+
(P) => P[c0](...T),
|
2410
2410
|
(P) => [X9(P)],
|
2411
2411
|
(P) => p2(P)
|
2412
2412
|
);
|
2413
2413
|
}
|
2414
|
-
function n1(...
|
2414
|
+
function n1(...T) {
|
2415
2415
|
return v2(
|
2416
|
-
(P) => Reflect.apply(Y9, null, [P, ...
|
2417
|
-
() => J6(...
|
2416
|
+
(P) => Reflect.apply(Y9, null, [P, ...T]),
|
2417
|
+
() => J6(...T),
|
2418
2418
|
"number format",
|
2419
2419
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2420
|
-
(P) => P[t0](...
|
2420
|
+
(P) => P[t0](...T),
|
2421
2421
|
Z9,
|
2422
|
-
(P) =>
|
2422
|
+
(P) => j(P) || p2(P)
|
2423
2423
|
);
|
2424
2424
|
}
|
2425
|
-
function u1(...
|
2425
|
+
function u1(...T) {
|
2426
2426
|
return v2(
|
2427
|
-
(P) => Reflect.apply(W9, null, [P, ...
|
2428
|
-
() => Z6(...
|
2427
|
+
(P) => Reflect.apply(W9, null, [P, ...T]),
|
2428
|
+
() => Z6(...T),
|
2429
2429
|
"datetime format",
|
2430
2430
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2431
|
-
(P) => P[a0](...
|
2431
|
+
(P) => P[a0](...T),
|
2432
2432
|
Z9,
|
2433
|
-
(P) =>
|
2433
|
+
(P) => j(P) || p2(P)
|
2434
2434
|
);
|
2435
2435
|
}
|
2436
|
-
function s1(
|
2437
|
-
|
2436
|
+
function s1(T) {
|
2437
|
+
k = T, C.pluralRules = k;
|
2438
2438
|
}
|
2439
|
-
function R1(
|
2439
|
+
function R1(T, P) {
|
2440
2440
|
return v2(() => {
|
2441
|
-
if (!
|
2441
|
+
if (!T)
|
2442
2442
|
return !1;
|
2443
|
-
const
|
2444
|
-
return E1(j1) || J2(j1) ||
|
2445
|
-
}, () => [
|
2443
|
+
const o2 = j(P) ? P : r.value, L2 = x(o2), j1 = C.messageResolver(L2, T);
|
2444
|
+
return E1(j1) || J2(j1) || j(j1);
|
2445
|
+
}, () => [T], "translate exists", (o2) => Reflect.apply(o2.te, o2, [T, P]), sD, (o2) => n2(o2));
|
2446
2446
|
}
|
2447
|
-
function z(
|
2447
|
+
function z(T) {
|
2448
2448
|
let P = null;
|
2449
|
-
const
|
2450
|
-
for (let L2 = 0; L2 <
|
2451
|
-
const j1 = o.value[
|
2449
|
+
const o2 = ds(C, l.value, r.value);
|
2450
|
+
for (let L2 = 0; L2 < o2.length; L2++) {
|
2451
|
+
const j1 = o.value[o2[L2]] || {}, v4 = C.messageResolver(j1, T);
|
2452
2452
|
if (v4 != null) {
|
2453
2453
|
P = v4;
|
2454
2454
|
break;
|
@@ -2456,71 +2456,71 @@ function A0(e = {}, c) {
|
|
2456
2456
|
}
|
2457
2457
|
return P;
|
2458
2458
|
}
|
2459
|
-
function v(
|
2460
|
-
const P = z(
|
2461
|
-
return P ?? (a ? a.tm(
|
2459
|
+
function v(T) {
|
2460
|
+
const P = z(T);
|
2461
|
+
return P ?? (a ? a.tm(T) || {} : {});
|
2462
2462
|
}
|
2463
|
-
function x(
|
2464
|
-
return o.value[
|
2463
|
+
function x(T) {
|
2464
|
+
return o.value[T] || {};
|
2465
2465
|
}
|
2466
|
-
function $(
|
2466
|
+
function $(T, P) {
|
2467
2467
|
if (s) {
|
2468
|
-
const
|
2469
|
-
for (const L2 in
|
2470
|
-
T3(
|
2471
|
-
P =
|
2468
|
+
const o2 = { [T]: P };
|
2469
|
+
for (const L2 in o2)
|
2470
|
+
T3(o2, L2) && D3(o2[L2]);
|
2471
|
+
P = o2[T];
|
2472
2472
|
}
|
2473
|
-
o.value[
|
2473
|
+
o.value[T] = P, C.messages = o.value;
|
2474
2474
|
}
|
2475
|
-
function Z(
|
2476
|
-
o.value[
|
2477
|
-
const
|
2478
|
-
for (const L2 in
|
2479
|
-
T3(
|
2480
|
-
P =
|
2475
|
+
function Z(T, P) {
|
2476
|
+
o.value[T] = o.value[T] || {};
|
2477
|
+
const o2 = { [T]: P };
|
2478
|
+
for (const L2 in o2)
|
2479
|
+
T3(o2, L2) && D3(o2[L2]);
|
2480
|
+
P = o2[T], A3(P, o.value[T]), C.messages = o.value;
|
2481
2481
|
}
|
2482
|
-
function u2(
|
2483
|
-
return f.value[
|
2482
|
+
function u2(T) {
|
2483
|
+
return f.value[T] || {};
|
2484
2484
|
}
|
2485
|
-
function Z2(
|
2486
|
-
f.value[
|
2485
|
+
function Z2(T, P) {
|
2486
|
+
f.value[T] = P, C.datetimeFormats = f.value, G9(C, T, P);
|
2487
2487
|
}
|
2488
|
-
function O2(
|
2489
|
-
f.value[
|
2488
|
+
function O2(T, P) {
|
2489
|
+
f.value[T] = P2(f.value[T] || {}, P), C.datetimeFormats = f.value, G9(C, T, P);
|
2490
2490
|
}
|
2491
|
-
function e3(
|
2492
|
-
return m.value[
|
2491
|
+
function e3(T) {
|
2492
|
+
return m.value[T] || {};
|
2493
2493
|
}
|
2494
|
-
function m4(
|
2495
|
-
m.value[
|
2494
|
+
function m4(T, P) {
|
2495
|
+
m.value[T] = P, C.numberFormats = m.value, Q9(C, T, P);
|
2496
2496
|
}
|
2497
|
-
function d4(
|
2498
|
-
m.value[
|
2497
|
+
function d4(T, P) {
|
2498
|
+
m.value[T] = P2(m.value[T] || {}, P), C.numberFormats = m.value, Q9(C, T, P);
|
2499
2499
|
}
|
2500
|
-
J9++, a && p1 && (i2(a.locale, (
|
2501
|
-
i && (r.value =
|
2502
|
-
}), i2(a.fallbackLocale, (
|
2503
|
-
i && (l.value =
|
2500
|
+
J9++, a && p1 && (i2(a.locale, (T) => {
|
2501
|
+
i && (r.value = T, C.locale = T, b3(C, r.value, l.value));
|
2502
|
+
}), i2(a.fallbackLocale, (T) => {
|
2503
|
+
i && (l.value = T, C.fallbackLocale = T, b3(C, r.value, l.value));
|
2504
2504
|
}));
|
2505
2505
|
const b2 = {
|
2506
2506
|
id: J9,
|
2507
|
-
locale:
|
2507
|
+
locale: U,
|
2508
2508
|
fallbackLocale: W,
|
2509
2509
|
get inheritLocale() {
|
2510
2510
|
return i;
|
2511
2511
|
},
|
2512
|
-
set inheritLocale(
|
2513
|
-
i =
|
2512
|
+
set inheritLocale(T) {
|
2513
|
+
i = T, T && a && (r.value = a.locale.value, l.value = a.fallbackLocale.value, b3(C, r.value, l.value));
|
2514
2514
|
},
|
2515
2515
|
get availableLocales() {
|
2516
2516
|
return Object.keys(o.value).sort();
|
2517
2517
|
},
|
2518
|
-
messages:
|
2518
|
+
messages: R,
|
2519
2519
|
get modifiers() {
|
2520
2520
|
return y;
|
2521
2521
|
},
|
2522
2522
|
get pluralRules() {
|
2523
|
-
return
|
2523
|
+
return k || {};
|
2524
2524
|
},
|
2525
2525
|
get isGlobal() {
|
2526
2526
|
return n;
|
@@ -2528,67 +2528,67 @@ function A0(e = {}, c) {
|
|
2528
2528
|
get missingWarn() {
|
2529
2529
|
return d;
|
2530
2530
|
},
|
2531
|
-
set missingWarn(
|
2532
|
-
d =
|
2531
|
+
set missingWarn(T) {
|
2532
|
+
d = T, C.missingWarn = d;
|
2533
2533
|
},
|
2534
2534
|
get fallbackWarn() {
|
2535
2535
|
return h;
|
2536
2536
|
},
|
2537
|
-
set fallbackWarn(
|
2538
|
-
h =
|
2537
|
+
set fallbackWarn(T) {
|
2538
|
+
h = T, C.fallbackWarn = h;
|
2539
2539
|
},
|
2540
2540
|
get fallbackRoot() {
|
2541
2541
|
return b;
|
2542
2542
|
},
|
2543
|
-
set fallbackRoot(
|
2544
|
-
b =
|
2543
|
+
set fallbackRoot(T) {
|
2544
|
+
b = T;
|
2545
2545
|
},
|
2546
2546
|
get fallbackFormat() {
|
2547
|
-
return
|
2547
|
+
return A;
|
2548
2548
|
},
|
2549
|
-
set fallbackFormat(
|
2550
|
-
|
2549
|
+
set fallbackFormat(T) {
|
2550
|
+
A = T, C.fallbackFormat = A;
|
2551
2551
|
},
|
2552
2552
|
get warnHtmlMessage() {
|
2553
2553
|
return L;
|
2554
2554
|
},
|
2555
|
-
set warnHtmlMessage(
|
2556
|
-
L =
|
2555
|
+
set warnHtmlMessage(T) {
|
2556
|
+
L = T, C.warnHtmlMessage = T;
|
2557
2557
|
},
|
2558
2558
|
get escapeParameter() {
|
2559
2559
|
return H;
|
2560
2560
|
},
|
2561
|
-
set escapeParameter(
|
2562
|
-
H =
|
2561
|
+
set escapeParameter(T) {
|
2562
|
+
H = T, C.escapeParameter = T;
|
2563
2563
|
},
|
2564
2564
|
t: A2,
|
2565
2565
|
getLocaleMessage: x,
|
2566
2566
|
setLocaleMessage: $,
|
2567
2567
|
mergeLocaleMessage: Z,
|
2568
|
-
getPostTranslationHandler:
|
2569
|
-
setPostTranslationHandler:
|
2568
|
+
getPostTranslationHandler: l2,
|
2569
|
+
setPostTranslationHandler: a2,
|
2570
2570
|
getMissingHandler: h2,
|
2571
2571
|
setMissingHandler: R2,
|
2572
2572
|
[ws]: s1
|
2573
2573
|
};
|
2574
|
-
return b2.datetimeFormats = F, b2.numberFormats =
|
2575
|
-
C.__v_emitter =
|
2574
|
+
return b2.datetimeFormats = F, b2.numberFormats = r2, b2.rt = S2, b2.te = R1, b2.tm = v, b2.d = C2, b2.n = E2, b2.getDateTimeFormat = u2, b2.setDateTimeFormat = Z2, b2.mergeDateTimeFormat = O2, b2.getNumberFormat = e3, b2.setNumberFormat = m4, b2.mergeNumberFormat = d4, b2[Ts] = t, b2[c0] = j2, b2[a0] = u1, b2[t0] = n1, process.env.NODE_ENV !== "production" && (b2[X1] = (T) => {
|
2575
|
+
C.__v_emitter = T;
|
2576
2576
|
}, b2[E3] = () => {
|
2577
2577
|
C.__v_emitter = void 0;
|
2578
2578
|
}), b2;
|
2579
2579
|
}
|
2580
2580
|
function rD(e) {
|
2581
|
-
const c =
|
2581
|
+
const c = j(e.locale) ? e.locale : f3, a = j(e.fallbackLocale) || p2(e.fallbackLocale) || c2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c, t = V2(e.missing) ? e.missing : void 0, n = n2(e.silentTranslationWarn) || I1(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = n2(e.silentFallbackWarn) || I1(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, i = n2(e.fallbackRoot) ? e.fallbackRoot : !0, r = !!e.formatFallbackMessages, l = c2(e.modifiers) ? e.modifiers : {}, o = e.pluralizationRules, f = V2(e.postTranslation) ? e.postTranslation : void 0, m = j(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, d = !!e.escapeParameterHtml, h = n2(e.sync) ? e.sync : !0;
|
2582
2582
|
process.env.NODE_ENV !== "production" && e.formatter && D2(Y2(N2.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && D2(Y2(N2.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
2583
2583
|
let b = e.messages;
|
2584
2584
|
if (c2(e.sharedMessages)) {
|
2585
2585
|
const y = e.sharedMessages;
|
2586
2586
|
b = Object.keys(y).reduce((C, _) => {
|
2587
|
-
const
|
2588
|
-
return P2(
|
2587
|
+
const N = C[_] || (C[_] = {});
|
2588
|
+
return P2(N, y[_]), C;
|
2589
2589
|
}, b || {});
|
2590
2590
|
}
|
2591
|
-
const { __i18n:
|
2591
|
+
const { __i18n: A, __root: w, __injectWithOption: V } = e, M = e.datetimeFormats, L = e.numberFormats, H = e.flatJson;
|
2592
2592
|
return {
|
2593
2593
|
locale: c,
|
2594
2594
|
fallbackLocale: a,
|
@@ -2608,8 +2608,8 @@ function rD(e) {
|
|
2608
2608
|
escapeParameter: d,
|
2609
2609
|
messageResolver: e.messageResolver,
|
2610
2610
|
inheritLocale: h,
|
2611
|
-
__i18n:
|
2612
|
-
__root:
|
2611
|
+
__i18n: A,
|
2612
|
+
__root: w,
|
2613
2613
|
__injectWithOption: V
|
2614
2614
|
};
|
2615
2615
|
}
|
@@ -2736,10 +2736,10 @@ function s0(e = {}, c) {
|
|
2736
2736
|
t(...s) {
|
2737
2737
|
const [i, r, l] = s, o = {};
|
2738
2738
|
let f = null, m = null;
|
2739
|
-
if (!
|
2740
|
-
throw T2(
|
2739
|
+
if (!j(i))
|
2740
|
+
throw T2(f2.INVALID_ARGUMENT);
|
2741
2741
|
const d = i;
|
2742
|
-
return
|
2742
|
+
return j(r) ? o.locale = r : p2(r) ? f = r : c2(r) && (m = r), p2(l) ? f = l : c2(l) && (m = l), Reflect.apply(a.t, a, [
|
2743
2743
|
d,
|
2744
2744
|
f || m || {},
|
2745
2745
|
o
|
@@ -2752,10 +2752,10 @@ function s0(e = {}, c) {
|
|
2752
2752
|
tc(...s) {
|
2753
2753
|
const [i, r, l] = s, o = { plural: 1 };
|
2754
2754
|
let f = null, m = null;
|
2755
|
-
if (!
|
2756
|
-
throw T2(
|
2755
|
+
if (!j(i))
|
2756
|
+
throw T2(f2.INVALID_ARGUMENT);
|
2757
2757
|
const d = i;
|
2758
|
-
return
|
2758
|
+
return j(r) ? o.locale = r : k2(r) ? o.plural = r : p2(r) ? f = r : c2(r) && (m = r), j(l) ? o.locale = l : p2(l) ? f = l : c2(l) && (m = l), Reflect.apply(a.t, a, [
|
2759
2759
|
d,
|
2760
2760
|
f || m || {},
|
2761
2761
|
o
|
@@ -2882,28 +2882,28 @@ const oD = /* @__PURE__ */ Q({
|
|
2882
2882
|
});
|
2883
2883
|
return () => {
|
2884
2884
|
const s = Object.keys(a).filter((m) => m !== "_"), i = {};
|
2885
|
-
e.locale && (i.locale = e.locale), e.plural !== void 0 && (i.plural =
|
2886
|
-
const r = lD(c, s), l = n[c0](e.keypath, r, i), o = P2({}, t), f =
|
2885
|
+
e.locale && (i.locale = e.locale), e.plural !== void 0 && (i.plural = j(e.plural) ? +e.plural : e.plural);
|
2886
|
+
const r = lD(c, s), l = n[c0](e.keypath, r, i), o = P2({}, t), f = j(e.tag) || m2(e.tag) ? e.tag : Ds();
|
2887
2887
|
return M1(f, o, l);
|
2888
2888
|
};
|
2889
2889
|
}
|
2890
2890
|
}), j6 = oD;
|
2891
2891
|
function fD(e) {
|
2892
|
-
return p2(e) && !
|
2892
|
+
return p2(e) && !j(e[0]);
|
2893
2893
|
}
|
2894
2894
|
function Os(e, c, a, t) {
|
2895
2895
|
const { slots: n, attrs: s } = c;
|
2896
2896
|
return () => {
|
2897
2897
|
const i = { part: !0 };
|
2898
2898
|
let r = {};
|
2899
|
-
e.locale && (i.locale = e.locale),
|
2899
|
+
e.locale && (i.locale = e.locale), j(e.format) ? i.key = e.format : m2(e.format) && (j(e.format.key) && (i.key = e.format.key), r = Object.keys(e.format).reduce((d, h) => a.includes(h) ? P2({}, d, { [h]: e.format[h] }) : d, {}));
|
2900
2900
|
const l = t(e.value, i, r);
|
2901
2901
|
let o = [i.key];
|
2902
2902
|
p2(l) ? o = l.map((d, h) => {
|
2903
|
-
const b = n[d.type],
|
2904
|
-
return fD(
|
2905
|
-
}) :
|
2906
|
-
const f = P2({}, s), m =
|
2903
|
+
const b = n[d.type], A = b ? b({ [d.type]: d.value, index: h, parts: l }) : [d.value];
|
2904
|
+
return fD(A) && (A[0].key = `${d.type}-${h}`), A;
|
2905
|
+
}) : j(l) && (o = [l]);
|
2906
|
+
const f = P2({}, s), m = j(e.tag) || m2(e.tag) ? e.tag : Ds();
|
2907
2907
|
return M1(m, f, o);
|
2908
2908
|
};
|
2909
2909
|
}
|
@@ -2969,7 +2969,7 @@ function vD(e) {
|
|
2969
2969
|
const c = (i) => {
|
2970
2970
|
const { instance: r, modifiers: l, value: o } = i;
|
2971
2971
|
if (!r || !r.$)
|
2972
|
-
throw T2(
|
2972
|
+
throw T2(f2.UNEXPECTED_ERROR);
|
2973
2973
|
const f = dD(e, r.$);
|
2974
2974
|
process.env.NODE_ENV !== "production" && l.preserve && D2(Y2(N2.NOT_SUPPORTED_PRESERVE));
|
2975
2975
|
const m = tn(o);
|
@@ -3003,18 +3003,18 @@ function vD(e) {
|
|
3003
3003
|
};
|
3004
3004
|
}
|
3005
3005
|
function tn(e) {
|
3006
|
-
if (
|
3006
|
+
if (j(e))
|
3007
3007
|
return { path: e };
|
3008
3008
|
if (c2(e)) {
|
3009
3009
|
if (!("path" in e))
|
3010
|
-
throw T2(
|
3010
|
+
throw T2(f2.REQUIRED_VALUE, "path");
|
3011
3011
|
return e;
|
3012
3012
|
} else
|
3013
|
-
throw T2(
|
3013
|
+
throw T2(f2.INVALID_VALUE);
|
3014
3014
|
}
|
3015
3015
|
function nn(e) {
|
3016
3016
|
const { path: c, locale: a, args: t, choice: n, plural: s } = e, i = {}, r = t || {};
|
3017
|
-
return
|
3017
|
+
return j(a) && (i.locale = a), k2(n) && (i.plural = n), k2(s) && (i.plural = s), [c, r, i];
|
3018
3018
|
}
|
3019
3019
|
function pD(e, c, ...a) {
|
3020
3020
|
const t = c2(a[0]) ? a[0] : {}, n = !!t.useI18nComponentName, s = n2(t.globalInstall) ? t.globalInstall : !0;
|
@@ -3294,7 +3294,7 @@ function ND(e, c) {
|
|
3294
3294
|
const a = Fs(e.nodeId, c);
|
3295
3295
|
if (a) {
|
3296
3296
|
const [t] = e.path;
|
3297
|
-
t === "locale" &&
|
3297
|
+
t === "locale" && j(e.state.value) ? a.locale.value = e.state.value : t === "fallbackLocale" && (j(e.state.value) || p2(e.state.value) || m2(e.state.value)) ? a.fallbackLocale.value = e.state.value : t === "inheritLocale" && n2(e.state.value) && (a.inheritLocale = e.state.value);
|
3298
3298
|
}
|
3299
3299
|
}
|
3300
3300
|
function xD(e, c, a) {
|
@@ -3302,7 +3302,7 @@ function xD(e, c, a) {
|
|
3302
3302
|
beforeCreate() {
|
3303
3303
|
const t = w3();
|
3304
3304
|
if (!t)
|
3305
|
-
throw T2(
|
3305
|
+
throw T2(f2.UNEXPECTED_ERROR);
|
3306
3306
|
const n = this.$options;
|
3307
3307
|
if (n.i18n) {
|
3308
3308
|
const s = n.i18n;
|
@@ -3341,7 +3341,7 @@ function xD(e, c, a) {
|
|
3341
3341
|
unmounted() {
|
3342
3342
|
const t = w3();
|
3343
3343
|
if (!t)
|
3344
|
-
throw T2(
|
3344
|
+
throw T2(f2.UNEXPECTED_ERROR);
|
3345
3345
|
const n = this.$i18n;
|
3346
3346
|
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", O3), delete this.__v_emitter), this.$i18n && (n.__disableEmitter && n.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$tc, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, n.__disposer && (n.__disposer(), delete n.__disposer, delete n.__extender), a.__deleteInstance(t), delete this.$i18n;
|
3347
3347
|
}
|
@@ -3384,14 +3384,14 @@ function kD(e = {}, c) {
|
|
3384
3384
|
const V = b[0];
|
3385
3385
|
d.__composerExtend = V.__composerExtend, d.__vueI18nExtend = V.__vueI18nExtend;
|
3386
3386
|
}
|
3387
|
-
let
|
3388
|
-
!a && t && (
|
3389
|
-
const
|
3387
|
+
let A = null;
|
3388
|
+
!a && t && (A = RD(h, d.global)), __VUE_I18N_FULL_INSTALL__ && pD(h, d, ...b), __VUE_I18N_LEGACY_API__ && a && h.mixin(xD(r, r.__composer, d));
|
3389
|
+
const w = h.unmount;
|
3390
3390
|
if (h.unmount = () => {
|
3391
|
-
|
3391
|
+
A && A(), d.dispose(), w();
|
3392
3392
|
}, process.env.NODE_ENV !== "production") {
|
3393
3393
|
if (!await zD(h, d))
|
3394
|
-
throw T2(
|
3394
|
+
throw T2(f2.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
3395
3395
|
const M = b0();
|
3396
3396
|
if (a) {
|
3397
3397
|
const L = r;
|
@@ -3425,13 +3425,13 @@ function kD(e = {}, c) {
|
|
3425
3425
|
function S0(e = {}) {
|
3426
3426
|
const c = w3();
|
3427
3427
|
if (c == null)
|
3428
|
-
throw T2(
|
3428
|
+
throw T2(f2.MUST_BE_CALL_SETUP_TOP);
|
3429
3429
|
if (!c.isCE && c.appContext.app != null && !c.appContext.app.__VUE_I18N_SYMBOL__)
|
3430
|
-
throw T2(
|
3430
|
+
throw T2(f2.NOT_INSTALLED);
|
3431
3431
|
const a = TD(c), t = ED(a), n = Is(c), s = ID(e, n);
|
3432
3432
|
if (__VUE_I18N_LEGACY_API__ && a.mode === "legacy" && !e.__useComponent) {
|
3433
3433
|
if (!a.allowComposition)
|
3434
|
-
throw T2(
|
3434
|
+
throw T2(f2.NOT_AVAILABLE_IN_LEGACY_MODE);
|
3435
3435
|
return BD(c, s, t, e);
|
3436
3436
|
}
|
3437
3437
|
if (s === "global")
|
@@ -3453,7 +3453,7 @@ function wD(e, c, a) {
|
|
3453
3453
|
{
|
3454
3454
|
const n = __VUE_I18N_LEGACY_API__ && c ? t.run(() => s0(e)) : t.run(() => A0(e));
|
3455
3455
|
if (n == null)
|
3456
|
-
throw T2(
|
3456
|
+
throw T2(f2.UNEXPECTED_ERROR);
|
3457
3457
|
return [t, n];
|
3458
3458
|
}
|
3459
3459
|
}
|
@@ -3461,7 +3461,7 @@ function TD(e) {
|
|
3461
3461
|
{
|
3462
3462
|
const c = B2(e.isCE ? SD : e.appContext.app.__VUE_I18N_SYMBOL__);
|
3463
3463
|
if (!c)
|
3464
|
-
throw T2(e.isCE ?
|
3464
|
+
throw T2(e.isCE ? f2.NOT_INSTALLED_WITH_PROVIDE : f2.UNEXPECTED_ERROR);
|
3465
3465
|
return c;
|
3466
3466
|
}
|
3467
3467
|
}
|
@@ -3510,15 +3510,15 @@ function PD(e, c, a) {
|
|
3510
3510
|
function BD(e, c, a, t = {}) {
|
3511
3511
|
const n = c === "local", s = lI(null);
|
3512
3512
|
if (n && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
|
3513
|
-
throw T2(
|
3514
|
-
const i = n2(t.inheritLocale) ? t.inheritLocale : !
|
3513
|
+
throw T2(f2.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
|
3514
|
+
const i = n2(t.inheritLocale) ? t.inheritLocale : !j(t.locale), r = e2(
|
3515
3515
|
// prettier-ignore
|
3516
|
-
!n || i ? a.locale.value :
|
3516
|
+
!n || i ? a.locale.value : j(t.locale) ? t.locale : f3
|
3517
3517
|
), l = e2(
|
3518
3518
|
// prettier-ignore
|
3519
|
-
!n || i ? a.fallbackLocale.value :
|
3520
|
-
), o = e2(R4(r.value, t)), f = e2(c2(t.datetimeFormats) ? t.datetimeFormats : { [r.value]: {} }), m = e2(c2(t.numberFormats) ? t.numberFormats : { [r.value]: {} }), d = n ? a.missingWarn : n2(t.missingWarn) || I1(t.missingWarn) ? t.missingWarn : !0, h = n ? a.fallbackWarn : n2(t.fallbackWarn) || I1(t.fallbackWarn) ? t.fallbackWarn : !0, b = n ? a.fallbackRoot : n2(t.fallbackRoot) ? t.fallbackRoot : !0,
|
3521
|
-
function
|
3519
|
+
!n || i ? a.fallbackLocale.value : j(t.fallbackLocale) || p2(t.fallbackLocale) || c2(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : r.value
|
3520
|
+
), o = e2(R4(r.value, t)), f = e2(c2(t.datetimeFormats) ? t.datetimeFormats : { [r.value]: {} }), m = e2(c2(t.numberFormats) ? t.numberFormats : { [r.value]: {} }), d = n ? a.missingWarn : n2(t.missingWarn) || I1(t.missingWarn) ? t.missingWarn : !0, h = n ? a.fallbackWarn : n2(t.fallbackWarn) || I1(t.fallbackWarn) ? t.fallbackWarn : !0, b = n ? a.fallbackRoot : n2(t.fallbackRoot) ? t.fallbackRoot : !0, A = !!t.fallbackFormat, w = V2(t.missing) ? t.missing : null, V = V2(t.postTranslation) ? t.postTranslation : null, M = n ? a.warnHtmlMessage : n2(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, L = !!t.escapeParameter, H = n ? a.modifiers : c2(t.modifiers) ? t.modifiers : {}, y = t.pluralRules || n && a.pluralRules;
|
3521
|
+
function k() {
|
3522
3522
|
return [
|
3523
3523
|
r.value,
|
3524
3524
|
l.value,
|
@@ -3537,33 +3537,33 @@ function BD(e, c, a, t = {}) {
|
|
3537
3537
|
set: (v) => {
|
3538
3538
|
s.value && (s.value.fallbackLocale.value = v), l.value = v;
|
3539
3539
|
}
|
3540
|
-
}),
|
3541
|
-
function
|
3540
|
+
}), N = E(() => s.value ? s.value.messages.value : o.value), U = E(() => f.value), W = E(() => m.value);
|
3541
|
+
function R() {
|
3542
3542
|
return s.value ? s.value.getPostTranslationHandler() : V;
|
3543
3543
|
}
|
3544
3544
|
function F(v) {
|
3545
3545
|
s.value && s.value.setPostTranslationHandler(v);
|
3546
3546
|
}
|
3547
|
-
function
|
3548
|
-
return s.value ? s.value.getMissingHandler() :
|
3547
|
+
function r2() {
|
3548
|
+
return s.value ? s.value.getMissingHandler() : w;
|
3549
3549
|
}
|
3550
|
-
function
|
3550
|
+
function l2(v) {
|
3551
3551
|
s.value && s.value.setMissingHandler(v);
|
3552
3552
|
}
|
3553
|
-
function
|
3554
|
-
return
|
3553
|
+
function a2(v) {
|
3554
|
+
return k(), v();
|
3555
3555
|
}
|
3556
3556
|
function h2(...v) {
|
3557
|
-
return s.value ?
|
3557
|
+
return s.value ? a2(() => Reflect.apply(s.value.t, null, [...v])) : a2(() => "");
|
3558
3558
|
}
|
3559
3559
|
function R2(...v) {
|
3560
3560
|
return s.value ? Reflect.apply(s.value.rt, null, [...v]) : "";
|
3561
3561
|
}
|
3562
3562
|
function M2(...v) {
|
3563
|
-
return s.value ?
|
3563
|
+
return s.value ? a2(() => Reflect.apply(s.value.d, null, [...v])) : a2(() => "");
|
3564
3564
|
}
|
3565
3565
|
function v2(...v) {
|
3566
|
-
return s.value ?
|
3566
|
+
return s.value ? a2(() => Reflect.apply(s.value.n, null, [...v])) : a2(() => "");
|
3567
3567
|
}
|
3568
3568
|
function A2(v) {
|
3569
3569
|
return s.value ? s.value.tm(v) : {};
|
@@ -3604,8 +3604,8 @@ function BD(e, c, a, t = {}) {
|
|
3604
3604
|
},
|
3605
3605
|
locale: C,
|
3606
3606
|
fallbackLocale: _,
|
3607
|
-
messages:
|
3608
|
-
datetimeFormats:
|
3607
|
+
messages: N,
|
3608
|
+
datetimeFormats: U,
|
3609
3609
|
numberFormats: W,
|
3610
3610
|
get inheritLocale() {
|
3611
3611
|
return s.value ? s.value.inheritLocale : i;
|
@@ -3644,7 +3644,7 @@ function BD(e, c, a, t = {}) {
|
|
3644
3644
|
s.value && (s.value.fallbackRoot = v);
|
3645
3645
|
},
|
3646
3646
|
get fallbackFormat() {
|
3647
|
-
return s.value ? s.value.fallbackFormat :
|
3647
|
+
return s.value ? s.value.fallbackFormat : A;
|
3648
3648
|
},
|
3649
3649
|
set fallbackFormat(v) {
|
3650
3650
|
s.value && (s.value.fallbackFormat = v);
|
@@ -3662,10 +3662,10 @@ function BD(e, c, a, t = {}) {
|
|
3662
3662
|
s.value && (s.value.escapeParameter = v);
|
3663
3663
|
},
|
3664
3664
|
t: h2,
|
3665
|
-
getPostTranslationHandler:
|
3665
|
+
getPostTranslationHandler: R,
|
3666
3666
|
setPostTranslationHandler: F,
|
3667
|
-
getMissingHandler:
|
3668
|
-
setMissingHandler:
|
3667
|
+
getMissingHandler: r2,
|
3668
|
+
setMissingHandler: l2,
|
3669
3669
|
rt: R2,
|
3670
3670
|
d: M2,
|
3671
3671
|
n: v2,
|
@@ -3688,11 +3688,11 @@ function BD(e, c, a, t = {}) {
|
|
3688
3688
|
v.mergeDateTimeFormat(x, f.value[x]);
|
3689
3689
|
}), Object.keys(m.value).forEach((x) => {
|
3690
3690
|
v.mergeNumberFormat(x, m.value[x]);
|
3691
|
-
}), v.escapeParameter = L, v.fallbackFormat =
|
3691
|
+
}), v.escapeParameter = L, v.fallbackFormat = A, v.fallbackRoot = b, v.fallbackWarn = h, v.missingWarn = d, v.warnHtmlMessage = M;
|
3692
3692
|
}
|
3693
3693
|
return oI(() => {
|
3694
3694
|
if (e.proxy == null || e.proxy.$i18n == null)
|
3695
|
-
throw T2(
|
3695
|
+
throw T2(f2.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
3696
3696
|
const v = s.value = e.proxy.$i18n.__composer;
|
3697
3697
|
c === "global" ? (r.value = v.locale.value, l.value = v.fallbackLocale.value, o.value = v.messages.value, f.value = v.datetimeFormats.value, m.value = v.numberFormats.value) : n && z(v);
|
3698
3698
|
}), R1;
|
@@ -3707,7 +3707,7 @@ function RD(e, c) {
|
|
3707
3707
|
return FD.forEach((n) => {
|
3708
3708
|
const s = Object.getOwnPropertyDescriptor(c, n);
|
3709
3709
|
if (!s)
|
3710
|
-
throw T2(
|
3710
|
+
throw T2(f2.UNEXPECTED_ERROR);
|
3711
3711
|
const i = fI(s.value) ? {
|
3712
3712
|
get() {
|
3713
3713
|
return s.value.value;
|
@@ -3725,7 +3725,7 @@ function RD(e, c) {
|
|
3725
3725
|
}), e.config.globalProperties.$i18n = a, ln.forEach((n) => {
|
3726
3726
|
const s = Object.getOwnPropertyDescriptor(c, n);
|
3727
3727
|
if (!s || !s.value)
|
3728
|
-
throw T2(
|
3728
|
+
throw T2(f2.UNEXPECTED_ERROR);
|
3729
3729
|
Object.defineProperty(e.config.globalProperties, `$${n}`, s);
|
3730
3730
|
}), () => {
|
3731
3731
|
delete e.config.globalProperties.$i18n, ln.forEach((n) => {
|
@@ -5633,8 +5633,8 @@ var MO = function(c, a) {
|
|
5633
5633
|
function CO(e) {
|
5634
5634
|
var c, a = e.state, t = e.name, n = e.options, s = a.elements.arrow, i = a.modifiersData.popperOffsets, r = v1(a.placement), l = I0(r), o = [G2, t1].indexOf(r) >= 0, f = o ? "height" : "width";
|
5635
5635
|
if (!(!s || !i)) {
|
5636
|
-
var m = MO(n.padding, a), d = T0(s), h = l === "y" ? W2 : G2, b = l === "y" ? a1 : t1,
|
5637
|
-
a.modifiersData[t] = (c = {}, c[_] = C, c.centerOffset = C -
|
5636
|
+
var m = MO(n.padding, a), d = T0(s), h = l === "y" ? W2 : G2, b = l === "y" ? a1 : t1, A = a.rects.reference[f] + a.rects.reference[l] - i[l] - a.rects.popper[f], w = i[l] - a.rects.reference[l], V = W3(s), M = V ? l === "y" ? V.clientHeight || 0 : V.clientWidth || 0 : 0, L = A / 2 - w / 2, H = m[h], y = M - d[f] - m[b], k = M / 2 - d[f] / 2 + L, C = N3(H, k, y), _ = l;
|
5637
|
+
a.modifiersData[t] = (c = {}, c[_] = C, c.centerOffset = C - k, c);
|
5638
5638
|
}
|
5639
5639
|
}
|
5640
5640
|
function bO(e) {
|
@@ -5667,48 +5667,48 @@ function yO(e, c) {
|
|
5667
5667
|
};
|
5668
5668
|
}
|
5669
5669
|
function mn(e) {
|
5670
|
-
var c, a = e.popper, t = e.popperRect, n = e.placement, s = e.variation, i = e.offsets, r = e.position, l = e.gpuAcceleration, o = e.adaptive, f = e.roundOffsets, m = e.isFixed, d = i.x, h = d === void 0 ? 0 : d, b = i.y,
|
5670
|
+
var c, a = e.popper, t = e.popperRect, n = e.placement, s = e.variation, i = e.offsets, r = e.position, l = e.gpuAcceleration, o = e.adaptive, f = e.roundOffsets, m = e.isFixed, d = i.x, h = d === void 0 ? 0 : d, b = i.y, A = b === void 0 ? 0 : b, w = typeof f == "function" ? f({
|
5671
5671
|
x: h,
|
5672
|
-
y:
|
5672
|
+
y: A
|
5673
5673
|
}) : {
|
5674
5674
|
x: h,
|
5675
|
-
y:
|
5675
|
+
y: A
|
5676
5676
|
};
|
5677
|
-
h =
|
5677
|
+
h = w.x, A = w.y;
|
5678
5678
|
var V = i.hasOwnProperty("x"), M = i.hasOwnProperty("y"), L = G2, H = W2, y = window;
|
5679
5679
|
if (o) {
|
5680
|
-
var
|
5681
|
-
if (
|
5680
|
+
var k = W3(a), C = "clientHeight", _ = "clientWidth";
|
5681
|
+
if (k === X2(a) && (k = F1(a), b1(k).position !== "static" && r === "absolute" && (C = "scrollHeight", _ = "scrollWidth")), k = k, n === W2 || (n === G2 || n === t1) && s === P3) {
|
5682
5682
|
H = a1;
|
5683
|
-
var
|
5683
|
+
var N = m && k === y && y.visualViewport ? y.visualViewport.height : (
|
5684
5684
|
// $FlowFixMe[prop-missing]
|
5685
|
-
|
5685
|
+
k[C]
|
5686
5686
|
);
|
5687
|
-
|
5687
|
+
A -= N - t.height, A *= l ? 1 : -1;
|
5688
5688
|
}
|
5689
5689
|
if (n === G2 || (n === W2 || n === a1) && s === P3) {
|
5690
5690
|
L = t1;
|
5691
|
-
var
|
5691
|
+
var U = m && k === y && y.visualViewport ? y.visualViewport.width : (
|
5692
5692
|
// $FlowFixMe[prop-missing]
|
5693
|
-
|
5693
|
+
k[_]
|
5694
5694
|
);
|
5695
|
-
h -=
|
5695
|
+
h -= U - t.width, h *= l ? 1 : -1;
|
5696
5696
|
}
|
5697
5697
|
}
|
5698
5698
|
var W = Object.assign({
|
5699
5699
|
position: r
|
5700
|
-
}, o && _O),
|
5700
|
+
}, o && _O), R = f === !0 ? yO({
|
5701
5701
|
x: h,
|
5702
|
-
y:
|
5702
|
+
y: A
|
5703
5703
|
}, X2(a)) : {
|
5704
5704
|
x: h,
|
5705
|
-
y:
|
5705
|
+
y: A
|
5706
5706
|
};
|
5707
|
-
if (h =
|
5707
|
+
if (h = R.x, A = R.y, l) {
|
5708
5708
|
var F;
|
5709
|
-
return Object.assign({}, W, (F = {}, F[H] = M ? "0" : "", F[L] = V ? "0" : "", F.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " +
|
5709
|
+
return Object.assign({}, W, (F = {}, F[H] = M ? "0" : "", F[L] = V ? "0" : "", F.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + A + "px)" : "translate3d(" + h + "px, " + A + "px, 0)", F));
|
5710
5710
|
}
|
5711
|
-
return Object.assign({}, W, (c = {}, c[H] = M ?
|
5711
|
+
return Object.assign({}, W, (c = {}, c[H] = M ? A + "px" : "", c[L] = V ? h + "px" : "", c.transform = "", c));
|
5712
5712
|
}
|
5713
5713
|
function AO(e) {
|
5714
5714
|
var c = e.state, a = e.options, t = a.gpuAcceleration, n = t === void 0 ? !0 : t, s = a.adaptive, i = s === void 0 ? !0 : s, r = a.roundOffsets, l = r === void 0 ? !0 : r, o = {
|
@@ -5908,25 +5908,25 @@ function Xs(e) {
|
|
5908
5908
|
}
|
5909
5909
|
function B3(e, c) {
|
5910
5910
|
c === void 0 && (c = {});
|
5911
|
-
var a = c, t = a.placement, n = t === void 0 ? e.placement : t, s = a.strategy, i = s === void 0 ? e.strategy : s, r = a.boundary, l = r === void 0 ? tO : r, o = a.rootBoundary, f = o === void 0 ? js : o, m = a.elementContext, d = m === void 0 ? L3 : m, h = a.altBoundary, b = h === void 0 ? !1 : h,
|
5912
|
-
reference:
|
5911
|
+
var a = c, t = a.placement, n = t === void 0 ? e.placement : t, s = a.strategy, i = s === void 0 ? e.strategy : s, r = a.boundary, l = r === void 0 ? tO : r, o = a.rootBoundary, f = o === void 0 ? js : o, m = a.elementContext, d = m === void 0 ? L3 : m, h = a.altBoundary, b = h === void 0 ? !1 : h, A = a.padding, w = A === void 0 ? 0 : A, V = Gs(typeof w != "number" ? w : Ys(w, q3)), M = d === L3 ? nO : L3, L = e.rects.popper, H = e.elements[b ? M : d], y = OO(K1(H) ? H : H.contextElement || F1(e.elements.popper), l, f, i), k = d3(e.elements.reference), C = Xs({
|
5912
|
+
reference: k,
|
5913
5913
|
element: L,
|
5914
5914
|
strategy: "absolute",
|
5915
5915
|
placement: n
|
5916
|
-
}), _ = l0(Object.assign({}, L, C)),
|
5917
|
-
top: y.top -
|
5918
|
-
bottom:
|
5919
|
-
left: y.left -
|
5920
|
-
right:
|
5916
|
+
}), _ = l0(Object.assign({}, L, C)), N = d === L3 ? _ : k, U = {
|
5917
|
+
top: y.top - N.top + V.top,
|
5918
|
+
bottom: N.bottom - y.bottom + V.bottom,
|
5919
|
+
left: y.left - N.left + V.left,
|
5920
|
+
right: N.right - y.right + V.right
|
5921
5921
|
}, W = e.modifiersData.offset;
|
5922
5922
|
if (d === L3 && W) {
|
5923
|
-
var
|
5924
|
-
Object.keys(
|
5925
|
-
var
|
5926
|
-
|
5923
|
+
var R = W[n];
|
5924
|
+
Object.keys(U).forEach(function(F) {
|
5925
|
+
var r2 = [t1, a1].indexOf(F) >= 0 ? 1 : -1, l2 = [W2, a1].indexOf(F) >= 0 ? "y" : "x";
|
5926
|
+
U[F] += R[l2] * r2;
|
5927
5927
|
});
|
5928
5928
|
}
|
5929
|
-
return
|
5929
|
+
return U;
|
5930
5930
|
}
|
5931
5931
|
function PO(e, c) {
|
5932
5932
|
c === void 0 && (c = {});
|
@@ -5936,16 +5936,16 @@ function PO(e, c) {
|
|
5936
5936
|
return o.indexOf(b) >= 0;
|
5937
5937
|
});
|
5938
5938
|
d.length === 0 && (d = m);
|
5939
|
-
var h = d.reduce(function(b,
|
5940
|
-
return b[
|
5941
|
-
placement:
|
5939
|
+
var h = d.reduce(function(b, A) {
|
5940
|
+
return b[A] = B3(e, {
|
5941
|
+
placement: A,
|
5942
5942
|
boundary: n,
|
5943
5943
|
rootBoundary: s,
|
5944
5944
|
padding: i
|
5945
|
-
})[v1(
|
5945
|
+
})[v1(A)], b;
|
5946
5946
|
}, {});
|
5947
|
-
return Object.keys(h).sort(function(b,
|
5948
|
-
return h[b] - h[
|
5947
|
+
return Object.keys(h).sort(function(b, A) {
|
5948
|
+
return h[b] - h[A];
|
5949
5949
|
});
|
5950
5950
|
}
|
5951
5951
|
function BO(e) {
|
@@ -5957,29 +5957,29 @@ function BO(e) {
|
|
5957
5957
|
function FO(e) {
|
5958
5958
|
var c = e.state, a = e.options, t = e.name;
|
5959
5959
|
if (!c.modifiersData[t]._skip) {
|
5960
|
-
for (var n = a.mainAxis, s = n === void 0 ? !0 : n, i = a.altAxis, r = i === void 0 ? !0 : i, l = a.fallbackPlacements, o = a.padding, f = a.boundary, m = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, b = h === void 0 ? !0 : h,
|
5960
|
+
for (var n = a.mainAxis, s = n === void 0 ? !0 : n, i = a.altAxis, r = i === void 0 ? !0 : i, l = a.fallbackPlacements, o = a.padding, f = a.boundary, m = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, b = h === void 0 ? !0 : h, A = a.allowedAutoPlacements, w = c.options.placement, V = v1(w), M = V === w, L = l || (M || !b ? [A4(w)] : BO(w)), H = [w].concat(L).reduce(function(E2, F2) {
|
5961
5961
|
return E2.concat(v1(F2) === k0 ? PO(c, {
|
5962
5962
|
placement: F2,
|
5963
5963
|
boundary: f,
|
5964
5964
|
rootBoundary: m,
|
5965
5965
|
padding: o,
|
5966
5966
|
flipVariations: b,
|
5967
|
-
allowedAutoPlacements:
|
5967
|
+
allowedAutoPlacements: A
|
5968
5968
|
}) : F2);
|
5969
|
-
}, []), y = c.rects.reference,
|
5970
|
-
var W = H[
|
5969
|
+
}, []), y = c.rects.reference, k = c.rects.popper, C = /* @__PURE__ */ new Map(), _ = !0, N = H[0], U = 0; U < H.length; U++) {
|
5970
|
+
var W = H[U], R = v1(W), F = v3(W) === u3, r2 = [W2, a1].indexOf(R) >= 0, l2 = r2 ? "width" : "height", a2 = B3(c, {
|
5971
5971
|
placement: W,
|
5972
5972
|
boundary: f,
|
5973
5973
|
rootBoundary: m,
|
5974
5974
|
altBoundary: d,
|
5975
5975
|
padding: o
|
5976
|
-
}), h2 =
|
5977
|
-
y[
|
5976
|
+
}), h2 = r2 ? F ? t1 : G2 : F ? a1 : W2;
|
5977
|
+
y[l2] > k[l2] && (h2 = A4(h2));
|
5978
5978
|
var R2 = A4(h2), M2 = [];
|
5979
|
-
if (s && M2.push(
|
5979
|
+
if (s && M2.push(a2[R] <= 0), r && M2.push(a2[h2] <= 0, a2[R2] <= 0), M2.every(function(E2) {
|
5980
5980
|
return E2;
|
5981
5981
|
})) {
|
5982
|
-
|
5982
|
+
N = W, _ = !1;
|
5983
5983
|
break;
|
5984
5984
|
}
|
5985
5985
|
C.set(W, M2);
|
@@ -5994,13 +5994,13 @@ function FO(e) {
|
|
5994
5994
|
});
|
5995
5995
|
});
|
5996
5996
|
if (o1)
|
5997
|
-
return
|
5997
|
+
return N = o1, "break";
|
5998
5998
|
}, S2 = v2; S2 > 0; S2--) {
|
5999
5999
|
var C2 = A2(S2);
|
6000
6000
|
if (C2 === "break")
|
6001
6001
|
break;
|
6002
6002
|
}
|
6003
|
-
c.placement !==
|
6003
|
+
c.placement !== N && (c.modifiersData[t]._skip = !0, c.placement = N, c.reset = !0);
|
6004
6004
|
}
|
6005
6005
|
}
|
6006
6006
|
const RO = {
|
@@ -6097,36 +6097,36 @@ function QO(e) {
|
|
6097
6097
|
return e === "x" ? "y" : "x";
|
6098
6098
|
}
|
6099
6099
|
function XO(e) {
|
6100
|
-
var c = e.state, a = e.options, t = e.name, n = a.mainAxis, s = n === void 0 ? !0 : n, i = a.altAxis, r = i === void 0 ? !1 : i, l = a.boundary, o = a.rootBoundary, f = a.altBoundary, m = a.padding, d = a.tether, h = d === void 0 ? !0 : d, b = a.tetherOffset,
|
6100
|
+
var c = e.state, a = e.options, t = e.name, n = a.mainAxis, s = n === void 0 ? !0 : n, i = a.altAxis, r = i === void 0 ? !1 : i, l = a.boundary, o = a.rootBoundary, f = a.altBoundary, m = a.padding, d = a.tether, h = d === void 0 ? !0 : d, b = a.tetherOffset, A = b === void 0 ? 0 : b, w = B3(c, {
|
6101
6101
|
boundary: l,
|
6102
6102
|
rootBoundary: o,
|
6103
6103
|
padding: m,
|
6104
6104
|
altBoundary: f
|
6105
|
-
}), V = v1(c.placement), M = v3(c.placement), L = !M, H = I0(V), y = QO(H),
|
6105
|
+
}), V = v1(c.placement), M = v3(c.placement), L = !M, H = I0(V), y = QO(H), k = c.modifiersData.popperOffsets, C = c.rects.reference, _ = c.rects.popper, N = typeof A == "function" ? A(Object.assign({}, c.rects, {
|
6106
6106
|
placement: c.placement
|
6107
|
-
})) :
|
6108
|
-
mainAxis:
|
6109
|
-
altAxis:
|
6107
|
+
})) : A, U = typeof N == "number" ? {
|
6108
|
+
mainAxis: N,
|
6109
|
+
altAxis: N
|
6110
6110
|
} : Object.assign({
|
6111
6111
|
mainAxis: 0,
|
6112
6112
|
altAxis: 0
|
6113
|
-
},
|
6113
|
+
}, N), W = c.modifiersData.offset ? c.modifiersData.offset[c.placement] : null, R = {
|
6114
6114
|
x: 0,
|
6115
6115
|
y: 0
|
6116
6116
|
};
|
6117
|
-
if (
|
6117
|
+
if (k) {
|
6118
6118
|
if (s) {
|
6119
|
-
var F,
|
6119
|
+
var F, r2 = H === "y" ? W2 : G2, l2 = H === "y" ? a1 : t1, a2 = H === "y" ? "height" : "width", h2 = k[H], R2 = h2 + w[r2], M2 = h2 - w[l2], v2 = h ? -_[a2] / 2 : 0, A2 = M === u3 ? C[a2] : _[a2], S2 = M === u3 ? -_[a2] : -C[a2], C2 = c.elements.arrow, E2 = h && C2 ? T0(C2) : {
|
6120
6120
|
width: 0,
|
6121
6121
|
height: 0
|
6122
|
-
}, F2 = c.modifiersData["arrow#persistent"] ? c.modifiersData["arrow#persistent"].padding : Ws(), o1 = F2[
|
6123
|
-
|
6122
|
+
}, F2 = c.modifiersData["arrow#persistent"] ? c.modifiersData["arrow#persistent"].padding : Ws(), o1 = F2[r2], f1 = F2[l2], j2 = N3(0, C[a2], E2[a2]), n1 = L ? C[a2] / 2 - v2 - j2 - o1 - U.mainAxis : A2 - j2 - o1 - U.mainAxis, u1 = L ? -C[a2] / 2 + v2 + j2 + f1 + U.mainAxis : S2 + j2 + f1 + U.mainAxis, s1 = c.elements.arrow && W3(c.elements.arrow), R1 = s1 ? H === "y" ? s1.clientTop || 0 : s1.clientLeft || 0 : 0, z = (F = W == null ? void 0 : W[H]) != null ? F : 0, v = h2 + n1 - z - R1, x = h2 + u1 - z, $ = N3(h ? k4(R2, v) : R2, h2, h ? G1(M2, x) : M2);
|
6123
|
+
k[H] = $, R[H] = $ - h2;
|
6124
6124
|
}
|
6125
6125
|
if (r) {
|
6126
|
-
var Z, u2 = H === "x" ? W2 : G2, Z2 = H === "x" ? a1 : t1, O2 =
|
6127
|
-
|
6126
|
+
var Z, u2 = H === "x" ? W2 : G2, Z2 = H === "x" ? a1 : t1, O2 = k[y], e3 = y === "y" ? "height" : "width", m4 = O2 + w[u2], d4 = O2 - w[Z2], b2 = [W2, G2].indexOf(V) !== -1, T = (Z = W == null ? void 0 : W[y]) != null ? Z : 0, P = b2 ? m4 : O2 - C[e3] - _[e3] - T + U.altAxis, o2 = b2 ? O2 + C[e3] + _[e3] - T - U.altAxis : d4, L2 = h && b2 ? gO(P, O2, o2) : N3(h ? P : m4, O2, h ? o2 : d4);
|
6127
|
+
k[y] = L2, R[y] = L2 - O2;
|
6128
6128
|
}
|
6129
|
-
c.modifiersData[t] =
|
6129
|
+
c.modifiersData[t] = R;
|
6130
6130
|
}
|
6131
6131
|
}
|
6132
6132
|
const KO = {
|
@@ -6247,7 +6247,7 @@ function iP(e) {
|
|
6247
6247
|
state: f,
|
6248
6248
|
setOptions: function(V) {
|
6249
6249
|
var M = typeof V == "function" ? V(f.options) : V;
|
6250
|
-
|
6250
|
+
A(), f.options = Object.assign({}, s, f.options, M), f.scrollParents = {
|
6251
6251
|
reference: K1(r) ? x3(r) : r.contextElement ? x3(r.contextElement) : [],
|
6252
6252
|
popper: x3(l)
|
6253
6253
|
};
|
@@ -6268,19 +6268,19 @@ function iP(e) {
|
|
6268
6268
|
f.rects = {
|
6269
6269
|
reference: cP(M, W3(L), f.options.strategy === "fixed"),
|
6270
6270
|
popper: T0(L)
|
6271
|
-
}, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(
|
6272
|
-
return f.modifiersData[
|
6271
|
+
}, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(U) {
|
6272
|
+
return f.modifiersData[U.name] = Object.assign({}, U.data);
|
6273
6273
|
});
|
6274
6274
|
for (var H = 0; H < f.orderedModifiers.length; H++) {
|
6275
6275
|
if (f.reset === !0) {
|
6276
6276
|
f.reset = !1, H = -1;
|
6277
6277
|
continue;
|
6278
6278
|
}
|
6279
|
-
var y = f.orderedModifiers[H],
|
6280
|
-
typeof
|
6279
|
+
var y = f.orderedModifiers[H], k = y.fn, C = y.options, _ = C === void 0 ? {} : C, N = y.name;
|
6280
|
+
typeof k == "function" && (f = k({
|
6281
6281
|
state: f,
|
6282
6282
|
options: _,
|
6283
|
-
name:
|
6283
|
+
name: N,
|
6284
6284
|
instance: h
|
6285
6285
|
}) || f);
|
6286
6286
|
}
|
@@ -6290,37 +6290,37 @@ function iP(e) {
|
|
6290
6290
|
// Async and optimistically optimized update – it will not be executed if
|
6291
6291
|
// not necessary (debounced to run at most once-per-tick)
|
6292
6292
|
update: nP(function() {
|
6293
|
-
return new Promise(function(
|
6294
|
-
h.forceUpdate(),
|
6293
|
+
return new Promise(function(w) {
|
6294
|
+
h.forceUpdate(), w(f);
|
6295
6295
|
});
|
6296
6296
|
}),
|
6297
6297
|
destroy: function() {
|
6298
|
-
|
6298
|
+
A(), d = !0;
|
6299
6299
|
}
|
6300
6300
|
};
|
6301
6301
|
if (!zn(r, l))
|
6302
6302
|
return h;
|
6303
|
-
h.setOptions(o).then(function(
|
6304
|
-
!d && o.onFirstUpdate && o.onFirstUpdate(
|
6303
|
+
h.setOptions(o).then(function(w) {
|
6304
|
+
!d && o.onFirstUpdate && o.onFirstUpdate(w);
|
6305
6305
|
});
|
6306
6306
|
function b() {
|
6307
|
-
f.orderedModifiers.forEach(function(
|
6308
|
-
var V =
|
6307
|
+
f.orderedModifiers.forEach(function(w) {
|
6308
|
+
var V = w.name, M = w.options, L = M === void 0 ? {} : M, H = w.effect;
|
6309
6309
|
if (typeof H == "function") {
|
6310
6310
|
var y = H({
|
6311
6311
|
state: f,
|
6312
6312
|
name: V,
|
6313
6313
|
instance: h,
|
6314
6314
|
options: L
|
6315
|
-
}),
|
6315
|
+
}), k = function() {
|
6316
6316
|
};
|
6317
|
-
m.push(y ||
|
6317
|
+
m.push(y || k);
|
6318
6318
|
}
|
6319
6319
|
});
|
6320
6320
|
}
|
6321
|
-
function
|
6322
|
-
m.forEach(function(
|
6323
|
-
return
|
6321
|
+
function A() {
|
6322
|
+
m.forEach(function(w) {
|
6323
|
+
return w();
|
6324
6324
|
}), m = [];
|
6325
6325
|
}
|
6326
6326
|
return h;
|
@@ -6539,8 +6539,8 @@ const An = {
|
|
6539
6539
|
}), m = function() {
|
6540
6540
|
return a.hover === !1 || a.interactive === !1 ? a.closeDelay : a.closeDelay === 0 ? 150 : a.closeDelay;
|
6541
6541
|
}, d = gn(async () => {
|
6542
|
-
var
|
6543
|
-
const _ = await ((
|
6542
|
+
var N;
|
6543
|
+
const _ = await ((N = s.value) == null ? void 0 : N.update());
|
6544
6544
|
o.value = (_ == null ? void 0 : _.placement) || a.placement, i.value = !0;
|
6545
6545
|
}, a.openDelay), h = gn(() => {
|
6546
6546
|
if (a.hover === !1 || a.interactive === !1) {
|
@@ -6549,28 +6549,28 @@ const An = {
|
|
6549
6549
|
}
|
6550
6550
|
r.value === !1 && l.value === !1 && (i.value = !1);
|
6551
6551
|
}, m()), b = (_ = "") => {
|
6552
|
-
let
|
6553
|
-
if (_ === "" && (
|
6552
|
+
let N = _;
|
6553
|
+
if (_ === "" && (N = i.value ? "close" : "open"), N === "open") {
|
6554
6554
|
d();
|
6555
6555
|
return;
|
6556
6556
|
}
|
6557
6557
|
h();
|
6558
|
-
},
|
6559
|
-
a.hover !== !1 && (
|
6560
|
-
},
|
6561
|
-
const { slots:
|
6558
|
+
}, A = (_ = "", N = "") => {
|
6559
|
+
a.hover !== !1 && (N === "trigger" ? r.value = _ === "open" : l.value = _ === "open", b(_));
|
6560
|
+
}, w = function(_, N) {
|
6561
|
+
const { slots: U } = N;
|
6562
6562
|
return M1(
|
6563
6563
|
"div",
|
6564
6564
|
{
|
6565
6565
|
class: "trigger-element",
|
6566
6566
|
ref: t,
|
6567
6567
|
ariaDescribedby: "tooltip",
|
6568
|
-
onMouseenter: () =>
|
6569
|
-
onMouseleave: () =>
|
6570
|
-
onFocus: () =>
|
6568
|
+
onMouseenter: () => A("open", "trigger"),
|
6569
|
+
onMouseleave: () => A("close", "trigger"),
|
6570
|
+
onFocus: () => A("open"),
|
6571
6571
|
onClick: () => b()
|
6572
6572
|
},
|
6573
|
-
|
6573
|
+
U.default ? U.default() : ""
|
6574
6574
|
);
|
6575
6575
|
}, V = E(() => {
|
6576
6576
|
const { animation: _ } = a;
|
@@ -6579,10 +6579,10 @@ const An = {
|
|
6579
6579
|
outer: "",
|
6580
6580
|
inner: ""
|
6581
6581
|
};
|
6582
|
-
let
|
6583
|
-
return _ === "fade-slide" && (
|
6582
|
+
let N = _;
|
6583
|
+
return _ === "fade-slide" && (N = "shift-in"), {
|
6584
6584
|
outer: "fade",
|
6585
|
-
inner:
|
6585
|
+
inner: N
|
6586
6586
|
};
|
6587
6587
|
}), M = E(() => {
|
6588
6588
|
const { animationDuration: _ } = a;
|
@@ -6593,16 +6593,16 @@ const An = {
|
|
6593
6593
|
leave: `${W / 1e3}s`
|
6594
6594
|
};
|
6595
6595
|
}
|
6596
|
-
const [
|
6596
|
+
const [N, U] = _;
|
6597
6597
|
return {
|
6598
|
-
enter: `${
|
6599
|
-
leave: `${
|
6598
|
+
enter: `${N / 1e3}s`,
|
6599
|
+
leave: `${U / 1e3}s`
|
6600
6600
|
};
|
6601
6601
|
}), L = E(() => {
|
6602
|
-
const _ = Object.keys(Nn).find((
|
6602
|
+
const _ = Object.keys(Nn).find((N) => o.value.startsWith(N));
|
6603
6603
|
return _ === void 0 ? "translate(0, 0)" : Nn[_];
|
6604
6604
|
}), H = E(() => {
|
6605
|
-
const _ = Object.keys(xn).find((
|
6605
|
+
const _ = Object.keys(xn).find((N) => o.value.startsWith(N));
|
6606
6606
|
return _ === void 0 ? "center center" : xn[_];
|
6607
6607
|
}), y = E(() => {
|
6608
6608
|
if (s.value === void 0)
|
@@ -6612,12 +6612,12 @@ const An = {
|
|
6612
6612
|
"--vue-popper-leave-duration": M.value.leave,
|
6613
6613
|
"--vue-popper-shift-transform": L.value,
|
6614
6614
|
"--vue-popper-scale-transform-origin": H.value
|
6615
|
-
},
|
6616
|
-
return MP(
|
6617
|
-
}),
|
6618
|
-
a.onTransition !== void 0 && a.onTransition(_,
|
6619
|
-
}, C = function(_,
|
6620
|
-
const { slots:
|
6615
|
+
}, N = s.value.state.styles.popper;
|
6616
|
+
return MP(N, _);
|
6617
|
+
}), k = (_, N) => {
|
6618
|
+
a.onTransition !== void 0 && a.onTransition(_, N);
|
6619
|
+
}, C = function(_, N) {
|
6620
|
+
const { slots: U } = N;
|
6621
6621
|
return M1(
|
6622
6622
|
w1,
|
6623
6623
|
{ name: V.value.outer },
|
@@ -6630,10 +6630,10 @@ const An = {
|
|
6630
6630
|
ref: n,
|
6631
6631
|
style: y.value,
|
6632
6632
|
onMouseleave: () => {
|
6633
|
-
a.hover === !1 || a.interactive === !1 ||
|
6633
|
+
a.hover === !1 || a.interactive === !1 || A("close", "tooltip");
|
6634
6634
|
},
|
6635
6635
|
onMouseenter: () => {
|
6636
|
-
a.hover === !1 || a.interactive === !1 ||
|
6636
|
+
a.hover === !1 || a.interactive === !1 || A("open", "tooltip");
|
6637
6637
|
}
|
6638
6638
|
},
|
6639
6639
|
[
|
@@ -6644,22 +6644,22 @@ const An = {
|
|
6644
6644
|
"data-placement": o.value,
|
6645
6645
|
"data-name": V.value.inner,
|
6646
6646
|
onBeforeEnter(W) {
|
6647
|
-
|
6647
|
+
k("before-enter", W);
|
6648
6648
|
},
|
6649
6649
|
onEnter(W) {
|
6650
|
-
V.value.inner === "shift-out" && (W.style.animation = `shift-out ${M.value.enter}`),
|
6650
|
+
V.value.inner === "shift-out" && (W.style.animation = `shift-out ${M.value.enter}`), k("enter", W);
|
6651
6651
|
},
|
6652
6652
|
onAfterEnter(W) {
|
6653
|
-
V.value.inner === "shift-out" && (W.style.transform = L.value),
|
6653
|
+
V.value.inner === "shift-out" && (W.style.transform = L.value), k("after-enter", W);
|
6654
6654
|
},
|
6655
6655
|
onBeforeLeave(W) {
|
6656
|
-
V.value.inner === "shift-out" && (W.style.transform = L.value, W.style.animation = ""),
|
6656
|
+
V.value.inner === "shift-out" && (W.style.transform = L.value, W.style.animation = ""), k("before-leave", W);
|
6657
6657
|
},
|
6658
6658
|
onLeave(W) {
|
6659
|
-
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"),
|
6659
|
+
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"), k("leave", W);
|
6660
6660
|
},
|
6661
6661
|
onAfterLeave(W) {
|
6662
|
-
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"),
|
6662
|
+
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"), k("after-leave", W);
|
6663
6663
|
}
|
6664
6664
|
},
|
6665
6665
|
{
|
@@ -6667,7 +6667,7 @@ const An = {
|
|
6667
6667
|
"div",
|
6668
6668
|
{ class: "popper-content" },
|
6669
6669
|
[
|
6670
|
-
|
6670
|
+
U.default ? U.default() : "",
|
6671
6671
|
M1(
|
6672
6672
|
"div",
|
6673
6673
|
{
|
@@ -6702,14 +6702,14 @@ const An = {
|
|
6702
6702
|
var _;
|
6703
6703
|
(_ = s.value) == null || _.destroy(), s.value = void 0;
|
6704
6704
|
}), i2(i, (_) => {
|
6705
|
-
var
|
6705
|
+
var N;
|
6706
6706
|
if (_ === !1) {
|
6707
6707
|
a.onClosed !== void 0 && a.onClosed();
|
6708
6708
|
return;
|
6709
6709
|
}
|
6710
|
-
a.onOpened !== void 0 && a.onOpened(), (
|
6710
|
+
a.onOpened !== void 0 && a.onOpened(), (N = s.value) == null || N.update();
|
6711
6711
|
}), {
|
6712
|
-
triggerElement:
|
6712
|
+
triggerElement: w,
|
6713
6713
|
tooltipElement: C,
|
6714
6714
|
popperInstance: s,
|
6715
6715
|
isOpened: E(() => i.value)
|
@@ -16343,7 +16343,7 @@ function Sn(e, c) {
|
|
16343
16343
|
}
|
16344
16344
|
return a;
|
16345
16345
|
}
|
16346
|
-
function
|
16346
|
+
function q(e) {
|
16347
16347
|
for (var c = 1; c < arguments.length; c++) {
|
16348
16348
|
var a = arguments[c] != null ? arguments[c] : {};
|
16349
16349
|
c % 2 ? Sn(Object(a), !0).forEach(function(t) {
|
@@ -16587,7 +16587,7 @@ var DT = {
|
|
16587
16587
|
showMissingIcons: !0
|
16588
16588
|
};
|
16589
16589
|
S3.familyPrefix && (S3.cssPrefix = S3.familyPrefix);
|
16590
|
-
var p3 =
|
16590
|
+
var p3 = q(q({}, DT), S3);
|
16591
16591
|
p3.autoReplaceSvg || (p3.observeMutations = !1);
|
16592
16592
|
var G = {};
|
16593
16593
|
Object.keys(DT).forEach(function(e) {
|
@@ -17541,7 +17541,7 @@ function Bn(e) {
|
|
17541
17541
|
}
|
17542
17542
|
function d0(e, c) {
|
17543
17543
|
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, t = a.skipHooks, n = t === void 0 ? !1 : t, s = Bn(c);
|
17544
|
-
typeof r1.hooks.addPack == "function" && !n ? r1.hooks.addPack(e, Bn(c)) : r1.styles[e] =
|
17544
|
+
typeof r1.hooks.addPack == "function" && !n ? r1.hooks.addPack(e, Bn(c)) : r1.styles[e] = q(q({}, r1.styles[e] || {}), s), e === "fas" && d0("fa", c);
|
17545
17545
|
}
|
17546
17546
|
var L4, _4, y4, s3 = r1.styles, oB = r1.shims, fB = (L4 = {}, I2(L4, z2, Object.values(j3[z2])), I2(L4, x2, Object.values(j3[x2])), L4), V9 = null, FT = {}, RT = {}, jT = {}, $T = {}, UT = {}, uB = (_4 = {}, I2(_4, z2, Object.keys(F3[z2])), I2(_4, x2, Object.keys(F3[x2])), _4);
|
17547
17547
|
function mB(e) {
|
@@ -17676,7 +17676,7 @@ var hB = /* @__PURE__ */ function() {
|
|
17676
17676
|
n[s] = arguments[s];
|
17677
17677
|
var i = n.reduce(this._pullDefinitions, {});
|
17678
17678
|
Object.keys(i).forEach(function(r) {
|
17679
|
-
a.definitions[r] =
|
17679
|
+
a.definitions[r] = q(q({}, a.definitions[r] || {}), i[r]), d0(r, i[r]);
|
17680
17680
|
var l = j3[z2][r];
|
17681
17681
|
l && d0(l, i[r]), qT();
|
17682
17682
|
});
|
@@ -17833,7 +17833,7 @@ function bB(e) {
|
|
17833
17833
|
x: r / l / 2,
|
17834
17834
|
y: 0.5
|
17835
17835
|
};
|
17836
|
-
n.style = E6(
|
17836
|
+
n.style = E6(q(q({}, s), {}, {
|
17837
17837
|
"transform-origin": "".concat(o.x + i.x / 16, "em ").concat(o.y + i.y / 16, "em")
|
17838
17838
|
}));
|
17839
17839
|
}
|
@@ -17852,7 +17852,7 @@ function LB(e) {
|
|
17852
17852
|
},
|
17853
17853
|
children: [{
|
17854
17854
|
tag: "symbol",
|
17855
|
-
attributes:
|
17855
|
+
attributes: q(q({}, n), {}, {
|
17856
17856
|
id: i
|
17857
17857
|
}),
|
17858
17858
|
children: t
|
@@ -17860,22 +17860,22 @@ function LB(e) {
|
|
17860
17860
|
}];
|
17861
17861
|
}
|
17862
17862
|
function g9(e) {
|
17863
|
-
var c = e.icons, a = c.main, t = c.mask, n = e.prefix, s = e.iconName, i = e.transform, r = e.symbol, l = e.title, o = e.maskId, f = e.titleId, m = e.extra, d = e.watchable, h = d === void 0 ? !1 : d, b = t.found ? t : a,
|
17864
|
-
return m.classes.indexOf(
|
17865
|
-
}).filter(function(
|
17866
|
-
return
|
17863
|
+
var c = e.icons, a = c.main, t = c.mask, n = e.prefix, s = e.iconName, i = e.transform, r = e.symbol, l = e.title, o = e.maskId, f = e.titleId, m = e.extra, d = e.watchable, h = d === void 0 ? !1 : d, b = t.found ? t : a, A = b.width, w = b.height, V = n === "fak", M = [G.replacementClass, s ? "".concat(G.cssPrefix, "-").concat(s) : ""].filter(function(N) {
|
17864
|
+
return m.classes.indexOf(N) === -1;
|
17865
|
+
}).filter(function(N) {
|
17866
|
+
return N !== "" || !!N;
|
17867
17867
|
}).concat(m.classes).join(" "), L = {
|
17868
17868
|
children: [],
|
17869
|
-
attributes:
|
17869
|
+
attributes: q(q({}, m.attributes), {}, {
|
17870
17870
|
"data-prefix": n,
|
17871
17871
|
"data-icon": s,
|
17872
17872
|
class: M,
|
17873
17873
|
role: m.attributes.role || "img",
|
17874
17874
|
xmlns: "http://www.w3.org/2000/svg",
|
17875
|
-
viewBox: "0 0 ".concat(
|
17875
|
+
viewBox: "0 0 ".concat(A, " ").concat(w)
|
17876
17876
|
})
|
17877
17877
|
}, H = V && !~m.classes.indexOf("fa-fw") ? {
|
17878
|
-
width: "".concat(
|
17878
|
+
width: "".concat(A / w * 16 * 0.0625, "em")
|
17879
17879
|
} : {};
|
17880
17880
|
h && (L.attributes[Z1] = ""), l && (L.children.push({
|
17881
17881
|
tag: "title",
|
@@ -17884,7 +17884,7 @@ function g9(e) {
|
|
17884
17884
|
},
|
17885
17885
|
children: [l]
|
17886
17886
|
}), delete L.attributes.title);
|
17887
|
-
var y =
|
17887
|
+
var y = q(q({}, L), {}, {
|
17888
17888
|
prefix: n,
|
17889
17889
|
iconName: s,
|
17890
17890
|
main: a,
|
@@ -17892,24 +17892,24 @@ function g9(e) {
|
|
17892
17892
|
maskId: o,
|
17893
17893
|
transform: i,
|
17894
17894
|
symbol: r,
|
17895
|
-
styles:
|
17896
|
-
}),
|
17895
|
+
styles: q(q({}, H), m.styles)
|
17896
|
+
}), k = t.found && a.found ? y1("generateAbstractMask", y) || {
|
17897
17897
|
children: [],
|
17898
17898
|
attributes: {}
|
17899
17899
|
} : y1("generateAbstractIcon", y) || {
|
17900
17900
|
children: [],
|
17901
17901
|
attributes: {}
|
17902
|
-
}, C =
|
17902
|
+
}, C = k.children, _ = k.attributes;
|
17903
17903
|
return y.children = C, y.attributes = _, r ? LB(y) : bB(y);
|
17904
17904
|
}
|
17905
17905
|
function jn(e) {
|
17906
|
-
var c = e.content, a = e.width, t = e.height, n = e.transform, s = e.title, i = e.extra, r = e.watchable, l = r === void 0 ? !1 : r, o =
|
17906
|
+
var c = e.content, a = e.width, t = e.height, n = e.transform, s = e.title, i = e.extra, r = e.watchable, l = r === void 0 ? !1 : r, o = q(q(q({}, i.attributes), s ? {
|
17907
17907
|
title: s
|
17908
17908
|
} : {}), {}, {
|
17909
17909
|
class: i.classes.join(" ")
|
17910
17910
|
});
|
17911
17911
|
l && (o[Z1] = "");
|
17912
|
-
var f =
|
17912
|
+
var f = q({}, i.styles);
|
17913
17913
|
h9(n) && (f.transform = cB({
|
17914
17914
|
transform: n,
|
17915
17915
|
startCentered: !0,
|
@@ -17932,7 +17932,7 @@ function jn(e) {
|
|
17932
17932
|
}), d;
|
17933
17933
|
}
|
17934
17934
|
function _B(e) {
|
17935
|
-
var c = e.content, a = e.title, t = e.extra, n =
|
17935
|
+
var c = e.content, a = e.title, t = e.extra, n = q(q(q({}, t.attributes), a ? {
|
17936
17936
|
title: a
|
17937
17937
|
} : {}), {}, {
|
17938
17938
|
class: t.classes.join(" ")
|
@@ -18006,7 +18006,7 @@ function V0(e, c) {
|
|
18006
18006
|
var i = G6[c][e];
|
18007
18007
|
return t(h0(i));
|
18008
18008
|
}
|
18009
|
-
AB(e, c), t(
|
18009
|
+
AB(e, c), t(q(q({}, yB), {}, {
|
18010
18010
|
icon: G.showMissingIcons && e ? y1("missingIconAbstract") || {} : {}
|
18011
18011
|
}));
|
18012
18012
|
});
|
@@ -18192,7 +18192,7 @@ function Gn(e) {
|
|
18192
18192
|
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
18193
18193
|
styleParser: !0
|
18194
18194
|
}, a = OB(e), t = a.iconName, n = a.prefix, s = a.rest, i = PB(e), r = v0("parseNodeAttributes", {}, e), l = c.styleParser ? DB(e) : [];
|
18195
|
-
return
|
18195
|
+
return q({
|
18196
18196
|
iconName: t,
|
18197
18197
|
title: e.getAttribute("title"),
|
18198
18198
|
titleId: e.getAttribute("data-fa-title-id"),
|
@@ -18280,16 +18280,16 @@ function RB(e) {
|
|
18280
18280
|
function jB(e) {
|
18281
18281
|
return function(c) {
|
18282
18282
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = (c || {}).icon ? c : p0(c || {}), n = a.mask;
|
18283
|
-
return n && (n = (n || {}).icon ? n : p0(n || {})), e(t,
|
18283
|
+
return n && (n = (n || {}).icon ? n : p0(n || {})), e(t, q(q({}, a), {}, {
|
18284
18284
|
mask: n
|
18285
18285
|
}));
|
18286
18286
|
};
|
18287
18287
|
}
|
18288
18288
|
var $B = function(c) {
|
18289
|
-
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.transform, n = t === void 0 ? d1 : t, s = a.symbol, i = s === void 0 ? !1 : s, r = a.mask, l = r === void 0 ? null : r, o = a.maskId, f = o === void 0 ? null : o, m = a.title, d = m === void 0 ? null : m, h = a.titleId, b = h === void 0 ? null : h,
|
18289
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.transform, n = t === void 0 ? d1 : t, s = a.symbol, i = s === void 0 ? !1 : s, r = a.mask, l = r === void 0 ? null : r, o = a.maskId, f = o === void 0 ? null : o, m = a.title, d = m === void 0 ? null : m, h = a.titleId, b = h === void 0 ? null : h, A = a.classes, w = A === void 0 ? [] : A, V = a.attributes, M = V === void 0 ? {} : V, L = a.styles, H = L === void 0 ? {} : L;
|
18290
18290
|
if (c) {
|
18291
|
-
var y = c.prefix,
|
18292
|
-
return P6(
|
18291
|
+
var y = c.prefix, k = c.iconName, C = c.icon;
|
18292
|
+
return P6(q({
|
18293
18293
|
type: "icon"
|
18294
18294
|
}, c), function() {
|
18295
18295
|
return J1("beforeDOMElementCreation", {
|
@@ -18306,8 +18306,8 @@ var $B = function(c) {
|
|
18306
18306
|
}
|
18307
18307
|
},
|
18308
18308
|
prefix: y,
|
18309
|
-
iconName:
|
18310
|
-
transform:
|
18309
|
+
iconName: k,
|
18310
|
+
transform: q(q({}, d1), n),
|
18311
18311
|
symbol: i,
|
18312
18312
|
title: d,
|
18313
18313
|
maskId: f,
|
@@ -18315,7 +18315,7 @@ var $B = function(c) {
|
|
18315
18315
|
extra: {
|
18316
18316
|
attributes: M,
|
18317
18317
|
styles: H,
|
18318
|
-
classes:
|
18318
|
+
classes: w
|
18319
18319
|
}
|
18320
18320
|
});
|
18321
18321
|
});
|
@@ -18346,8 +18346,8 @@ var $B = function(c) {
|
|
18346
18346
|
width: 512,
|
18347
18347
|
height: 512,
|
18348
18348
|
icon: {}
|
18349
|
-
})]).then(function(
|
18350
|
-
var
|
18349
|
+
})]).then(function(A) {
|
18350
|
+
var w = f9(A, 2), V = w[0], M = w[1];
|
18351
18351
|
h([a, g9({
|
18352
18352
|
icons: {
|
18353
18353
|
main: V,
|
@@ -18447,7 +18447,7 @@ var $B = function(c) {
|
|
18447
18447
|
params: t
|
18448
18448
|
}), jn({
|
18449
18449
|
content: a,
|
18450
|
-
transform:
|
18450
|
+
transform: q(q({}, d1), s),
|
18451
18451
|
title: r,
|
18452
18452
|
extra: {
|
18453
18453
|
attributes: m,
|
@@ -18496,27 +18496,27 @@ function Xn(e, c) {
|
|
18496
18496
|
if (i && !l)
|
18497
18497
|
return e.removeChild(i), t();
|
18498
18498
|
if (l && f !== "none" && f !== "") {
|
18499
|
-
var m = r.getPropertyValue("content"), d = ~["Sharp"].indexOf(l[2]) ? x2 : z2, h = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(l[2]) ? R3[d][l[2].toLowerCase()] : $P[d][o], b = QB(m),
|
18499
|
+
var m = r.getPropertyValue("content"), d = ~["Sharp"].indexOf(l[2]) ? x2 : z2, h = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(l[2]) ? R3[d][l[2].toLowerCase()] : $P[d][o], b = QB(m), A = b.value, w = b.isSecondary, V = l[0].startsWith("FontAwesome"), M = z9(h, A), L = M;
|
18500
18500
|
if (V) {
|
18501
|
-
var H = pB(
|
18501
|
+
var H = pB(A);
|
18502
18502
|
H.iconName && H.prefix && (M = H.iconName, h = H.prefix);
|
18503
18503
|
}
|
18504
|
-
if (M && !
|
18504
|
+
if (M && !w && (!i || i.getAttribute(m9) !== h || i.getAttribute(d9) !== L)) {
|
18505
18505
|
e.setAttribute(a, L), i && e.removeChild(i);
|
18506
|
-
var y = BB(),
|
18507
|
-
|
18508
|
-
var _ = g9(
|
18506
|
+
var y = BB(), k = y.extra;
|
18507
|
+
k.attributes[u0] = c, V0(M, h).then(function(C) {
|
18508
|
+
var _ = g9(q(q({}, y), {}, {
|
18509
18509
|
icons: {
|
18510
18510
|
main: C,
|
18511
18511
|
mask: H9()
|
18512
18512
|
},
|
18513
18513
|
prefix: h,
|
18514
18514
|
iconName: L,
|
18515
|
-
extra:
|
18515
|
+
extra: k,
|
18516
18516
|
watchable: !0
|
18517
|
-
})),
|
18518
|
-
c === "::before" ? e.insertBefore(
|
18519
|
-
return u4(
|
18517
|
+
})), N = H2.createElementNS("http://www.w3.org/2000/svg", "svg");
|
18518
|
+
c === "::before" ? e.insertBefore(N, e.firstChild) : e.appendChild(N), N.outerHTML = _.map(function(U) {
|
18519
|
+
return u4(U);
|
18520
18520
|
}).join(`
|
18521
18521
|
`), e.removeAttribute(a), t();
|
18522
18522
|
}).catch(n);
|
@@ -18658,14 +18658,14 @@ var ZB = {
|
|
18658
18658
|
};
|
18659
18659
|
return {
|
18660
18660
|
tag: "g",
|
18661
|
-
attributes:
|
18661
|
+
attributes: q({}, h.outer),
|
18662
18662
|
children: [{
|
18663
18663
|
tag: "g",
|
18664
|
-
attributes:
|
18664
|
+
attributes: q({}, h.inner),
|
18665
18665
|
children: [{
|
18666
18666
|
tag: t.icon.tag,
|
18667
18667
|
children: t.icon.children,
|
18668
|
-
attributes:
|
18668
|
+
attributes: q(q({}, t.icon.attributes), h.path)
|
18669
18669
|
}]
|
18670
18670
|
}]
|
18671
18671
|
};
|
@@ -18703,25 +18703,25 @@ var aF = {
|
|
18703
18703
|
iconWidth: o
|
18704
18704
|
}), b = {
|
18705
18705
|
tag: "rect",
|
18706
|
-
attributes:
|
18706
|
+
attributes: q(q({}, Y6), {}, {
|
18707
18707
|
fill: "white"
|
18708
18708
|
})
|
18709
|
-
},
|
18709
|
+
}, A = f.children ? {
|
18710
18710
|
children: f.children.map(es)
|
18711
|
-
} : {},
|
18711
|
+
} : {}, w = {
|
18712
18712
|
tag: "g",
|
18713
|
-
attributes:
|
18714
|
-
children: [es(
|
18713
|
+
attributes: q({}, h.inner),
|
18714
|
+
children: [es(q({
|
18715
18715
|
tag: f.tag,
|
18716
|
-
attributes:
|
18717
|
-
},
|
18716
|
+
attributes: q(q({}, f.attributes), h.path)
|
18717
|
+
}, A))]
|
18718
18718
|
}, V = {
|
18719
18719
|
tag: "g",
|
18720
|
-
attributes:
|
18721
|
-
children: [
|
18720
|
+
attributes: q({}, h.outer),
|
18721
|
+
children: [w]
|
18722
18722
|
}, M = "mask-".concat(r || U3()), L = "clip-".concat(r || U3()), H = {
|
18723
18723
|
tag: "mask",
|
18724
|
-
attributes:
|
18724
|
+
attributes: q(q({}, Y6), {}, {
|
18725
18725
|
id: M,
|
18726
18726
|
maskUnits: "userSpaceOnUse",
|
18727
18727
|
maskContentUnits: "userSpaceOnUse"
|
@@ -18739,7 +18739,7 @@ var aF = {
|
|
18739
18739
|
};
|
18740
18740
|
return t.push(y, {
|
18741
18741
|
tag: "rect",
|
18742
|
-
attributes:
|
18742
|
+
attributes: q({
|
18743
18743
|
fill: "currentColor",
|
18744
18744
|
"clip-path": "url(#".concat(L, ")"),
|
18745
18745
|
mask: "url(#".concat(M, ")")
|
@@ -18763,15 +18763,15 @@ var aF = {
|
|
18763
18763
|
};
|
18764
18764
|
t.push({
|
18765
18765
|
tag: "path",
|
18766
|
-
attributes:
|
18766
|
+
attributes: q(q({}, n), {}, {
|
18767
18767
|
d: "M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"
|
18768
18768
|
})
|
18769
18769
|
});
|
18770
|
-
var i =
|
18770
|
+
var i = q(q({}, s), {}, {
|
18771
18771
|
attributeName: "opacity"
|
18772
18772
|
}), r = {
|
18773
18773
|
tag: "circle",
|
18774
|
-
attributes:
|
18774
|
+
attributes: q(q({}, n), {}, {
|
18775
18775
|
cx: "256",
|
18776
18776
|
cy: "364",
|
18777
18777
|
r: "28"
|
@@ -18780,36 +18780,36 @@ var aF = {
|
|
18780
18780
|
};
|
18781
18781
|
return a || r.children.push({
|
18782
18782
|
tag: "animate",
|
18783
|
-
attributes:
|
18783
|
+
attributes: q(q({}, s), {}, {
|
18784
18784
|
attributeName: "r",
|
18785
18785
|
values: "28;14;28;28;14;28;"
|
18786
18786
|
})
|
18787
18787
|
}, {
|
18788
18788
|
tag: "animate",
|
18789
|
-
attributes:
|
18789
|
+
attributes: q(q({}, i), {}, {
|
18790
18790
|
values: "1;0;1;1;0;1;"
|
18791
18791
|
})
|
18792
18792
|
}), t.push(r), t.push({
|
18793
18793
|
tag: "path",
|
18794
|
-
attributes:
|
18794
|
+
attributes: q(q({}, n), {}, {
|
18795
18795
|
opacity: "1",
|
18796
18796
|
d: "M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"
|
18797
18797
|
}),
|
18798
18798
|
children: a ? [] : [{
|
18799
18799
|
tag: "animate",
|
18800
|
-
attributes:
|
18800
|
+
attributes: q(q({}, i), {}, {
|
18801
18801
|
values: "1;0;0;0;0;1;"
|
18802
18802
|
})
|
18803
18803
|
}]
|
18804
18804
|
}), a || t.push({
|
18805
18805
|
tag: "path",
|
18806
|
-
attributes:
|
18806
|
+
attributes: q(q({}, n), {}, {
|
18807
18807
|
opacity: "0",
|
18808
18808
|
d: "M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"
|
18809
18809
|
}),
|
18810
18810
|
children: [{
|
18811
18811
|
tag: "animate",
|
18812
|
-
attributes:
|
18812
|
+
attributes: q(q({}, i), {}, {
|
18813
18813
|
values: "0;0;1;1;0;0;"
|
18814
18814
|
})
|
18815
18815
|
}]
|
@@ -18863,8 +18863,8 @@ const rF = Q({
|
|
18863
18863
|
return;
|
18864
18864
|
const m = Object.keys(l.attributes || {}).reduce(
|
18865
18865
|
(h, b) => {
|
18866
|
-
const
|
18867
|
-
return h.attrs[b] =
|
18866
|
+
const A = l.attributes[b];
|
18867
|
+
return h.attrs[b] = A, h;
|
18868
18868
|
},
|
18869
18869
|
{
|
18870
18870
|
attrs: {}
|
@@ -19832,7 +19832,7 @@ const iR = /* @__PURE__ */ X(sR, [["__scopeId", "data-v-ff11beb8"]]), rR = { cla
|
|
19832
19832
|
(p(!0), g(t2, null, y2(n.value, (b) => (p(), K(d, {
|
19833
19833
|
key: b,
|
19834
19834
|
optionLabel: b.label,
|
19835
|
-
onOnSelected: (
|
19835
|
+
onOnSelected: (A) => i(b.value),
|
19836
19836
|
"data-test": "option"
|
19837
19837
|
}, null, 8, ["optionLabel", "onOnSelected"]))), 128))
|
19838
19838
|
]),
|
@@ -20074,24 +20074,24 @@ const AR = /* @__PURE__ */ X(yR, [["__scopeId", "data-v-0cc3f6d1"]]), NR = { cla
|
|
20074
20074
|
}, f = () => {
|
20075
20075
|
s.value = !1;
|
20076
20076
|
}, m = (H) => {
|
20077
|
-
const y = Array.from(H),
|
20077
|
+
const y = Array.from(H), k = new DataTransfer();
|
20078
20078
|
for (let C of y) {
|
20079
20079
|
const _ = C.name.split(".").pop();
|
20080
20080
|
if (b.value.includes(
|
20081
20081
|
`.${_.toLowerCase()}`
|
20082
20082
|
)) {
|
20083
|
-
const
|
20083
|
+
const U = new File([C], C.name, {
|
20084
20084
|
type: C.type,
|
20085
20085
|
lastModified: C.lastModified
|
20086
20086
|
});
|
20087
|
-
|
20087
|
+
k.items.add(U);
|
20088
20088
|
} else
|
20089
20089
|
c("fileFormatNotAccepted", C.name);
|
20090
20090
|
}
|
20091
|
-
return
|
20091
|
+
return k.files;
|
20092
20092
|
}, d = E(() => a.accept.split(",")), h = E(() => a.accept.split(",").join(", ")), b = E(
|
20093
20093
|
() => d.value.map((H) => H.toLocaleLowerCase())
|
20094
|
-
),
|
20094
|
+
), A = (H) => H.split("/").pop(), w = (H) => {
|
20095
20095
|
H.preventDefault(), !a.disabled && (i.value.files = m(H.dataTransfer.files), r.value = a.multiple ? [...i.value.files] : [i.value.files[0]], c("update", r.value), s.value = !1);
|
20096
20096
|
}, V = (H) => {
|
20097
20097
|
r.value.splice(H, 1), c("update", r.value);
|
@@ -20104,7 +20104,7 @@ const AR = /* @__PURE__ */ X(yR, [["__scopeId", "data-v-0cc3f6d1"]]), NR = { cla
|
|
20104
20104
|
c("download", H);
|
20105
20105
|
};
|
20106
20106
|
return (H, y) => {
|
20107
|
-
const
|
20107
|
+
const k = D("AVTooltip"), C = D("AVIcon");
|
20108
20108
|
return p(), g("div", NR, [
|
20109
20109
|
e.disableLabel ? O("", !0) : (p(), g("label", {
|
20110
20110
|
key: 0,
|
@@ -20113,7 +20113,7 @@ const AR = /* @__PURE__ */ X(yR, [["__scopeId", "data-v-0cc3f6d1"]]), NR = { cla
|
|
20113
20113
|
"data-test": "input-label"
|
20114
20114
|
}, [
|
20115
20115
|
u("span", null, S(e.inputLabel), 1),
|
20116
|
-
e.tooltipText ? (p(), K(
|
20116
|
+
e.tooltipText ? (p(), K(k, {
|
20117
20117
|
key: 0,
|
20118
20118
|
id: `${e.id}-info-tooltip`,
|
20119
20119
|
position: "right",
|
@@ -20124,7 +20124,7 @@ const AR = /* @__PURE__ */ X(yR, [["__scopeId", "data-v-0cc3f6d1"]]), NR = { cla
|
|
20124
20124
|
class: Y(`AVFileInput--dropzone-container ${e.error && "error"} ${e.disabled && "disabled"}`),
|
20125
20125
|
onDragover: o,
|
20126
20126
|
onDragleave: f,
|
20127
|
-
onDrop:
|
20127
|
+
onDrop: w
|
20128
20128
|
}, [
|
20129
20129
|
u("input", {
|
20130
20130
|
type: "file",
|
@@ -20193,7 +20193,7 @@ const AR = /* @__PURE__ */ X(yR, [["__scopeId", "data-v-0cc3f6d1"]]), NR = { cla
|
|
20193
20193
|
key: 0,
|
20194
20194
|
class: "AVTextInput--delete-btn",
|
20195
20195
|
type: "button",
|
20196
|
-
onClick: (
|
20196
|
+
onClick: (N) => V(r.value.indexOf(_)),
|
20197
20197
|
title: "Remove file"
|
20198
20198
|
}, [
|
20199
20199
|
I(C, {
|
@@ -20223,13 +20223,13 @@ const AR = /* @__PURE__ */ X(yR, [["__scopeId", "data-v-0cc3f6d1"]]), NR = { cla
|
|
20223
20223
|
"data-test": "file-preview-icon"
|
20224
20224
|
})
|
20225
20225
|
]),
|
20226
|
-
u("p", JR, S(
|
20226
|
+
u("p", JR, S(A(_)), 1)
|
20227
20227
|
]),
|
20228
20228
|
u("button", {
|
20229
20229
|
class: "AVTextInput--delete-btn",
|
20230
20230
|
type: "button",
|
20231
20231
|
title: "Download file",
|
20232
|
-
onClick: (
|
20232
|
+
onClick: (N) => L(_)
|
20233
20233
|
}, [
|
20234
20234
|
I(C, {
|
20235
20235
|
icon: "fa-solid fa-download",
|
@@ -21232,6 +21232,10 @@ const H$ = /* @__PURE__ */ X(z$, [["__scopeId", "data-v-59d1db6b"]]), g$ = { cla
|
|
21232
21232
|
locale: {
|
21233
21233
|
type: String,
|
21234
21234
|
default: null
|
21235
|
+
},
|
21236
|
+
isBelgianBallot: {
|
21237
|
+
type: Boolean,
|
21238
|
+
default: !1
|
21235
21239
|
}
|
21236
21240
|
},
|
21237
21241
|
emits: ["toggled"],
|
@@ -21256,7 +21260,7 @@ const H$ = /* @__PURE__ */ X(z$, [["__scopeId", "data-v-59d1db6b"]]), g$ = { cla
|
|
21256
21260
|
return (r, l) => {
|
21257
21261
|
const o = D("AVOptionSelect");
|
21258
21262
|
return p(), g("div", g$, [
|
21259
|
-
e.exclusiveError && e.checked ? (p(), g("div", M$, [
|
21263
|
+
!e.isBelgianBallot && e.exclusiveError && e.checked ? (p(), g("div", M$, [
|
21260
21264
|
u("div", C$, S(B(n)("js.components.AVOptionCheckbox.exclusive_option")), 1)
|
21261
21265
|
])) : O("", !0),
|
21262
21266
|
u("button", pI({
|
@@ -21285,7 +21289,7 @@ const H$ = /* @__PURE__ */ X(z$, [["__scopeId", "data-v-59d1db6b"]]), g$ = { cla
|
|
21285
21289
|
};
|
21286
21290
|
}
|
21287
21291
|
});
|
21288
|
-
const _$ = /* @__PURE__ */ X(L$, [["__scopeId", "data-v-
|
21292
|
+
const _$ = /* @__PURE__ */ X(L$, [["__scopeId", "data-v-fd6d2f9a"]]), y$ = /* @__PURE__ */ Q({
|
21289
21293
|
__name: "AVTransitionSlide",
|
21290
21294
|
props: {
|
21291
21295
|
skipTransition: {
|
@@ -21861,12 +21865,12 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
21861
21865
|
key: b.toString(),
|
21862
21866
|
class: "AVSummaryOption--group"
|
21863
21867
|
}, [
|
21864
|
-
(p(!0), g(t2, null, y2(b, (
|
21865
|
-
var
|
21868
|
+
(p(!0), g(t2, null, y2(b, (A) => {
|
21869
|
+
var w;
|
21866
21870
|
return p(), K(f, {
|
21867
|
-
key:
|
21871
|
+
key: A,
|
21868
21872
|
checked: !0,
|
21869
|
-
rank: (
|
21873
|
+
rank: (w = e.option) == null ? void 0 : w.rank,
|
21870
21874
|
disabled: !0
|
21871
21875
|
}, null, 8, ["rank"]);
|
21872
21876
|
}), 128))
|
@@ -21974,42 +21978,42 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), bU = ["id", "href",
|
|
21974
21978
|
), b = E(() => {
|
21975
21979
|
var F;
|
21976
21980
|
return ((F = a.option.url) == null ? void 0 : F[s.value]) ?? "";
|
21977
|
-
}),
|
21981
|
+
}), A = E(
|
21978
21982
|
() => {
|
21979
21983
|
var F;
|
21980
21984
|
return ((F = a.option.videoUrl) == null ? void 0 : F[s.value]) ?? "";
|
21981
21985
|
}
|
21982
|
-
),
|
21986
|
+
), w = E(() => a.option.image), M = e2(function() {
|
21983
21987
|
return a.option.randomizeChildren ? a.option.children.slice().sort(() => Math.random() - 0.5) : a.option.children;
|
21984
21988
|
}()), L = E(() => {
|
21985
21989
|
let F = [];
|
21986
21990
|
return b.value && F.push({
|
21987
21991
|
url: b.value,
|
21988
21992
|
text: n("js.components.AVOption.info_link_text_html")
|
21989
|
-
}),
|
21990
|
-
url:
|
21993
|
+
}), A.value && F.push({
|
21994
|
+
url: A.value,
|
21991
21995
|
text: n("js.components.AVOption.video_link_text_html")
|
21992
21996
|
}), F;
|
21993
21997
|
}), H = E(
|
21994
21998
|
() => a.option.children && a.option.children.length > 0
|
21995
|
-
), y = E(() => a.option.selectable !== void 0 && !a.option.selectable ? 0 : C.value ? 1 : a.option.voteLimit || a.contest.markingType.votesAllowedPerOption || 1),
|
21999
|
+
), y = E(() => a.option.selectable !== void 0 && !a.option.selectable ? 0 : C.value ? 1 : a.option.voteLimit || a.contest.markingType.votesAllowedPerOption || 1), k = E(() => a.selections.length > 0 ? W(a.option.children) : 0), C = E(() => a.option.exclusive), _ = E(() => {
|
21996
22000
|
const F = Array.from(Array(y.value).keys());
|
21997
22001
|
F.forEach((h2) => F[h2] = h2 + 1);
|
21998
|
-
const
|
21999
|
-
return
|
22000
|
-
}),
|
22002
|
+
const r2 = F.indexOf(Math.ceil(y.value / 2)) + 1, l2 = F.slice(0, r2), a2 = F.slice(r2);
|
22003
|
+
return a2.length ? [l2, a2] : [l2];
|
22004
|
+
}), N = E(() => a.partialResults ? a.partialResults[a.option.reference] : null), U = (F, r2 = 1) => {
|
22001
22005
|
c("checked", {
|
22002
22006
|
reference: F,
|
22003
|
-
amount:
|
22007
|
+
amount: r2
|
22004
22008
|
});
|
22005
22009
|
}, W = (F) => {
|
22006
22010
|
if (!F)
|
22007
22011
|
return 0;
|
22008
|
-
let
|
22009
|
-
(
|
22012
|
+
let r2 = F.filter(
|
22013
|
+
(l2) => a.selections.map((a2) => a2.reference).includes(l2.reference)
|
22010
22014
|
).length;
|
22011
|
-
return F.reduce((
|
22012
|
-
},
|
22015
|
+
return F.reduce((l2, a2) => l2 + W(a2.children), r2);
|
22016
|
+
}, R = (F) => {
|
22013
22017
|
r.value = !1, F === a.option.reference && (c("accordion-open"), VI(() => {
|
22014
22018
|
r.value = !0, l.value.scrollIntoView({ behavior: "smooth", block: "center" });
|
22015
22019
|
}));
|
@@ -22017,11 +22021,11 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), bU = ["id", "href",
|
|
22017
22021
|
return i2(
|
22018
22022
|
() => i.value.get("highlight-option"),
|
22019
22023
|
(F) => {
|
22020
|
-
const [
|
22021
|
-
|
22024
|
+
const [r2] = F ?? [];
|
22025
|
+
R(r2);
|
22022
22026
|
}
|
22023
|
-
), (F,
|
22024
|
-
const
|
22027
|
+
), (F, r2) => {
|
22028
|
+
const l2 = D("AVIcon"), a2 = D("AVOptionCheckbox"), h2 = D("AVOption", !0), R2 = D("AVCollapser");
|
22025
22029
|
return p(), g("div", {
|
22026
22030
|
class: Y({
|
22027
22031
|
"AVOption--background": !0,
|
@@ -22037,7 +22041,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), bU = ["id", "href",
|
|
22037
22041
|
I(R2, {
|
22038
22042
|
collapsable: e.contest.collapsable && H.value,
|
22039
22043
|
"start-collapsed": e.contest.collapseDefault && !e.observerMode,
|
22040
|
-
onAccordionOpen:
|
22044
|
+
onAccordionOpen: r2[1] || (r2[1] = (M2) => c("accordion-open"))
|
22041
22045
|
}, hI({
|
22042
22046
|
toggle: s2(({ isOpen: M2, collapsable: v2 }) => [
|
22043
22047
|
u("section", {
|
@@ -22061,9 +22065,9 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), bU = ["id", "href",
|
|
22061
22065
|
}, [
|
22062
22066
|
u("div", _U, [
|
22063
22067
|
u("header", yU, [
|
22064
|
-
|
22068
|
+
w.value ? (p(), g("img", {
|
22065
22069
|
key: 0,
|
22066
|
-
src:
|
22070
|
+
src: w.value,
|
22067
22071
|
alt: B(n)("js.components.AVOption.aria_labels.option_image"),
|
22068
22072
|
class: "AVOption-image"
|
22069
22073
|
}, null, 8, AU)) : O("", !0),
|
@@ -22090,7 +22094,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), bU = ["id", "href",
|
|
22090
22094
|
class: "AVOption--expander-container",
|
22091
22095
|
"aria-hidden": "true"
|
22092
22096
|
}, [
|
22093
|
-
I(
|
22097
|
+
I(l2, {
|
22094
22098
|
icon: M2 ? "chevron-down" : o.value ? "chevron-left" : "chevron-right",
|
22095
22099
|
class: "AVOption--expander-icon"
|
22096
22100
|
}, null, 8, ["icon"]),
|
@@ -22099,7 +22103,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), bU = ["id", "href",
|
|
22099
22103
|
innerHTML: M2 ? B(n)("js.components.AVOption.collapse_text") : B(n)("js.components.AVOption.expand_text")
|
22100
22104
|
}, null, 8, DU)
|
22101
22105
|
], 8, EU),
|
22102
|
-
|
22106
|
+
k.value && !M2 ? (p(), g("span", {
|
22103
22107
|
key: 0,
|
22104
22108
|
class: Y(["AVOption--suboption-badge", {
|
22105
22109
|
"AVOption--suboption-badge-danger": e.invalid,
|
@@ -22107,7 +22111,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), bU = ["id", "href",
|
|
22107
22111
|
}])
|
22108
22112
|
}, S(o.value ? `${B(n)(
|
22109
22113
|
"js.components.AVOption.sub_options_select"
|
22110
|
-
)} ${
|
22114
|
+
)} ${k.value}` : `${k.value} ${B(n)(
|
22111
22115
|
"js.components.AVOption.sub_options_select"
|
22112
22116
|
)}`), 3)) : O("", !0)
|
22113
22117
|
])) : O("", !0)
|
@@ -22126,7 +22130,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), bU = ["id", "href",
|
|
22126
22130
|
key: A2.toString(),
|
22127
22131
|
class: "AVOption--group"
|
22128
22132
|
}, [
|
22129
|
-
(p(!0), g(t2, null, y2(A2, (S2) => (p(), K(
|
22133
|
+
(p(!0), g(t2, null, y2(A2, (S2) => (p(), K(a2, {
|
22130
22134
|
key: S2,
|
22131
22135
|
checked: m.value >= S2,
|
22132
22136
|
rank: f.value ? e.selections.map((C2) => C2.reference).indexOf(e.option.reference) + 1 : null,
|
@@ -22135,19 +22139,19 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), bU = ["id", "href",
|
|
22135
22139
|
"option-reference": e.option.reference,
|
22136
22140
|
"check-box-index": S2,
|
22137
22141
|
disabled: e.disabled || e.observerMode,
|
22138
|
-
onToggled: (C2) =>
|
22142
|
+
onToggled: (C2) => U(e.option.reference, S2)
|
22139
22143
|
}, null, 8, ["checked", "rank", "exclusive-error", "invalid", "option-reference", "check-box-index", "disabled", "onToggled"]))), 128))
|
22140
22144
|
]))), 128))
|
22141
22145
|
], 6)) : O("", !0),
|
22142
|
-
|
22143
|
-
I(
|
22146
|
+
N.value && (e.observerMode || e.disabled) ? (p(), g("div", OU, [
|
22147
|
+
I(l2, {
|
22144
22148
|
icon: "user",
|
22145
22149
|
class: "AVOption--realtime-results-icon"
|
22146
22150
|
}),
|
22147
|
-
u("span", null, S(o.value ? `${
|
22148
|
-
|
22151
|
+
u("span", null, S(o.value ? `${N.value.results.count === 1 ? B(n)("js.components.AVOption.vote_count_singular") : B(n)("js.components.AVOption.vote_count_plural")} ${N.value.results.count}` : `${N.value.results.count} ${N.value.results.count === 1 ? B(n)("js.components.AVOption.vote_count_singular") : B(n)("js.components.AVOption.vote_count_plural")}`), 1),
|
22152
|
+
N.value.showPercentage ? (p(), g(t2, { key: 0 }, [
|
22149
22153
|
PU,
|
22150
|
-
u("span", null, S(`${
|
22154
|
+
u("span", null, S(`${N.value.results.percentage}%`), 1)
|
22151
22155
|
], 64)) : O("", !0)
|
22152
22156
|
])) : O("", !0)
|
22153
22157
|
], 2)
|
@@ -22165,25 +22169,25 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), bU = ["id", "href",
|
|
22165
22169
|
"observer-mode": e.observerMode,
|
22166
22170
|
"partial-results": e.partialResults,
|
22167
22171
|
"exclusive-error": v2.exclusive && e.exclusiveError,
|
22168
|
-
onChecked:
|
22172
|
+
onChecked: r2[0] || (r2[0] = (A2) => c("checked", A2)),
|
22169
22173
|
onAccordionOpen: () => M2(!0, !1)
|
22170
22174
|
}, null, 8, ["option", "selections", "contest", "invalid", "disabled", "observer-mode", "partial-results", "exclusive-error", "onAccordionOpen"]))), 128))
|
22171
22175
|
])) : O("", !0)
|
22172
22176
|
]),
|
22173
22177
|
_: 2
|
22174
22178
|
}, [
|
22175
|
-
!e.disabled &&
|
22179
|
+
!e.disabled && N.value && !e.observerMode ? {
|
22176
22180
|
name: "results",
|
22177
22181
|
fn: s2(() => [
|
22178
22182
|
u("div", BU, [
|
22179
|
-
I(
|
22183
|
+
I(l2, {
|
22180
22184
|
icon: "user",
|
22181
22185
|
class: "AVOption--realtime-results-icon"
|
22182
22186
|
}),
|
22183
|
-
u("span", null, S(o.value ? `${
|
22184
|
-
|
22187
|
+
u("span", null, S(o.value ? `${N.value.results.count === 1 ? B(n)("js.components.AVOption.vote_count_singular") : B(n)("js.components.AVOption.vote_count_plural")} ${N.value.results.count}` : `${N.value.results.count} ${N.value.results.count === 1 ? B(n)("js.components.AVOption.vote_count_singular") : B(n)("js.components.AVOption.vote_count_plural")}`), 1),
|
22188
|
+
N.value.showPercentage ? (p(), g(t2, { key: 0 }, [
|
22185
22189
|
FU,
|
22186
|
-
u("span", null, S(`${
|
22190
|
+
u("span", null, S(`${N.value.results.percentage}%`), 1)
|
22187
22191
|
], 64)) : O("", !0)
|
22188
22192
|
])
|
22189
22193
|
]),
|
@@ -22194,7 +22198,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), bU = ["id", "href",
|
|
22194
22198
|
};
|
22195
22199
|
}
|
22196
22200
|
});
|
22197
|
-
const $U = /* @__PURE__ */ X(jU, [["__scopeId", "data-v-58afc370"]]), aI = (e) => (V1("data-v-
|
22201
|
+
const $U = /* @__PURE__ */ X(jU, [["__scopeId", "data-v-58afc370"]]), aI = (e) => (V1("data-v-63a246a9"), e = e(), z1(), e), UU = ["aria-label"], qU = {
|
22198
22202
|
class: "AVBlankOption--header",
|
22199
22203
|
"aria-hidden": "true"
|
22200
22204
|
}, WU = { class: "AVBlankOption--title" }, GU = { class: "AVBlankOption--checkbox" }, YU = {
|
@@ -22233,6 +22237,10 @@ const $U = /* @__PURE__ */ X(jU, [["__scopeId", "data-v-58afc370"]]), aI = (e) =
|
|
22233
22237
|
locale: {
|
22234
22238
|
type: String,
|
22235
22239
|
default: null
|
22240
|
+
},
|
22241
|
+
isBelgianBallot: {
|
22242
|
+
type: Boolean,
|
22243
|
+
default: !1
|
22236
22244
|
}
|
22237
22245
|
},
|
22238
22246
|
emits: ["toggleBlank"],
|
@@ -22274,8 +22282,9 @@ const $U = /* @__PURE__ */ X(jU, [["__scopeId", "data-v-58afc370"]]), aI = (e) =
|
|
22274
22282
|
checked: e.checked,
|
22275
22283
|
"exclusive-error": e.error,
|
22276
22284
|
disabled: e.disabled || e.observerMode,
|
22285
|
+
"is-belgian-ballot": e.isBelgianBallot,
|
22277
22286
|
onToggled: i[0] || (i[0] = (o) => s.$emit("toggleBlank"))
|
22278
|
-
}, null, 8, ["checked", "exclusive-error", "disabled"])
|
22287
|
+
}, null, 8, ["checked", "exclusive-error", "disabled", "is-belgian-ballot"])
|
22279
22288
|
]),
|
22280
22289
|
e.partialResults && (e.observerMode || e.disabled) ? (p(), g("div", YU, [
|
22281
22290
|
I(l, {
|
@@ -22305,7 +22314,7 @@ const $U = /* @__PURE__ */ X(jU, [["__scopeId", "data-v-58afc370"]]), aI = (e) =
|
|
22305
22314
|
};
|
22306
22315
|
}
|
22307
22316
|
});
|
22308
|
-
const JU = /* @__PURE__ */ X(ZU, [["__scopeId", "data-v-
|
22317
|
+
const JU = /* @__PURE__ */ X(ZU, [["__scopeId", "data-v-63a246a9"]]), eq = ["aria-label"], cq = { class: "AVWriteInOption--header" }, aq = { class: "AVWriteInOption--container" }, tq = {
|
22309
22318
|
id: "option_writeIn",
|
22310
22319
|
class: "AVWriteInOption--title"
|
22311
22320
|
}, nq = { class: "AVWriteInOption--form-group" }, sq = ["aria-label", "disabled"], iq = { value: "" }, rq = ["value", "selected"], lq = ["value", "placeholder", "aria-label", "disabled"], oq = /* @__PURE__ */ Q({
|
@@ -22953,7 +22962,7 @@ var MW = (
|
|
22953
22962
|
}, e;
|
22954
22963
|
}()
|
22955
22964
|
), CW = nI.default = MW;
|
22956
|
-
const bW = (e) => (V1("data-v-
|
22965
|
+
const bW = (e) => (V1("data-v-2ede219b"), e = e(), z1(), e), LW = ["aria-label", "aria-describedby"], _W = ["id"], yW = /* @__PURE__ */ bW(() => /* @__PURE__ */ u("hr", { class: "AVBallot--separator" }, null, -1)), AW = ["aria-label"], NW = /* @__PURE__ */ Q({
|
22957
22966
|
__name: "AVBallot",
|
22958
22967
|
props: {
|
22959
22968
|
contest: {
|
@@ -23004,52 +23013,54 @@ const bW = (e) => (V1("data-v-aaf72723"), e = e(), z1(), e), LW = ["aria-label",
|
|
23004
23013
|
{ deep: !0 }
|
23005
23014
|
);
|
23006
23015
|
const i = e2(!1), r = e2(""), l = e2(""), o = e2(null), f = E(() => a.selectionPile.optionSelections), m = E(() => new tI(a.contest)), d = E(() => {
|
23007
|
-
let
|
23008
|
-
return a.customRulesets.includes("belgian_ballot_rules") &&
|
23016
|
+
let _ = [];
|
23017
|
+
return a.customRulesets.includes("belgian_ballot_rules") && _.push(new CW(a.contest)), _;
|
23009
23018
|
}), h = E(() => {
|
23010
|
-
let
|
23011
|
-
|
23012
|
-
|
23019
|
+
let _;
|
23020
|
+
_ = [], d.value.forEach((U) => {
|
23021
|
+
_.push(...U.validate(a.selectionPile));
|
23013
23022
|
});
|
23014
|
-
const
|
23023
|
+
const N = [
|
23015
23024
|
...m.value.validate(a.selectionPile),
|
23016
|
-
...
|
23025
|
+
..._
|
23017
23026
|
];
|
23018
|
-
return c("update:errors",
|
23019
|
-
}), b = E(() => h.value.length === 0),
|
23020
|
-
var
|
23021
|
-
return (
|
23022
|
-
}),
|
23027
|
+
return c("update:errors", N), N;
|
23028
|
+
}), b = E(() => h.value.length === 0), A = E(() => {
|
23029
|
+
var _;
|
23030
|
+
return (_ = a.contest.question) == null ? void 0 : _[s.value];
|
23031
|
+
}), w = E(
|
23032
|
+
() => a.customRulesets.includes("belgian_ballot_rules")
|
23033
|
+
), V = function() {
|
23023
23034
|
return a.contest.randomizeOptions ? a.contest.options.slice().sort(() => Math.random() - 0.5) : a.contest.options;
|
23024
|
-
},
|
23025
|
-
(
|
23026
|
-
)),
|
23027
|
-
i2(
|
23028
|
-
var
|
23029
|
-
|
23035
|
+
}, M = E(() => C(a.contest.options).some(
|
23036
|
+
(_) => _.exclusive
|
23037
|
+
)), L = e2(V()), H = E(() => a.contest);
|
23038
|
+
i2(H, (_, N) => {
|
23039
|
+
var U;
|
23040
|
+
N && _ && _.reference !== N.reference && ((U = document.getElementById("content")) == null || U.focus(), N.searchForm && (o.value.value = ""));
|
23030
23041
|
});
|
23031
|
-
const
|
23042
|
+
const y = () => {
|
23032
23043
|
c("update:selectionPile", {
|
23033
23044
|
...a.selectionPile,
|
23034
23045
|
explicitBlank: !a.selectionPile.explicitBlank
|
23035
23046
|
});
|
23036
|
-
},
|
23037
|
-
const
|
23038
|
-
(
|
23047
|
+
}, k = ({ reference: _, amount: N }) => {
|
23048
|
+
const U = f.value.filter(
|
23049
|
+
(R) => R.reference === _
|
23039
23050
|
).length;
|
23040
|
-
|
23041
|
-
const
|
23042
|
-
(
|
23051
|
+
N === U && (N = N - 1);
|
23052
|
+
const W = f.value.filter(
|
23053
|
+
(R) => R.reference !== _
|
23043
23054
|
);
|
23044
|
-
for (let
|
23045
|
-
|
23055
|
+
for (let R = 0; R < N; R++)
|
23056
|
+
W.push({ reference: _ });
|
23046
23057
|
c("update:selectionPile", {
|
23047
23058
|
...a.selectionPile,
|
23048
|
-
optionSelections:
|
23059
|
+
optionSelections: W
|
23049
23060
|
});
|
23050
|
-
},
|
23051
|
-
return (
|
23052
|
-
const
|
23061
|
+
}, C = (_) => _.flatMap((N) => N.children ? [N, ...C(N.children)] : [N]);
|
23062
|
+
return (_, N) => {
|
23063
|
+
const U = D("AVSearchBallot"), W = D("AVWriteInOption"), R = D("AVOption"), F = D("AVBlankOption"), r2 = D("AVSubmissionHelper");
|
23053
23064
|
return p(), g("div", {
|
23054
23065
|
class: Y({
|
23055
23066
|
AVBallot: !0,
|
@@ -23058,17 +23069,17 @@ const bW = (e) => (V1("data-v-aaf72723"), e = e(), z1(), e), LW = ["aria-label",
|
|
23058
23069
|
"aria-label": B(n)("js.components.AVBallot.aria_labels.ballot"),
|
23059
23070
|
"aria-describedby": `ballot_${e.contest.reference}`
|
23060
23071
|
}, [
|
23061
|
-
|
23072
|
+
A.value ? (p(), g("h5", {
|
23062
23073
|
key: 0,
|
23063
23074
|
id: `ballot_${e.contest.reference}_question`,
|
23064
23075
|
class: "AVBallot--question",
|
23065
23076
|
"aria-live": "polite"
|
23066
|
-
}, S(
|
23067
|
-
e.contest.searchForm && !e.disabled && !e.observerMode ? (p(), K(
|
23077
|
+
}, S(A.value), 9, _W)) : O("", !0),
|
23078
|
+
e.contest.searchForm && !e.disabled && !e.observerMode ? (p(), K(U, {
|
23068
23079
|
key: 1,
|
23069
23080
|
ref_key: "search",
|
23070
23081
|
ref: o,
|
23071
|
-
options:
|
23082
|
+
options: C(L.value),
|
23072
23083
|
"options-container-id": "ballot_options"
|
23073
23084
|
}, null, 8, ["options"])) : O("", !0),
|
23074
23085
|
yW,
|
@@ -23076,40 +23087,40 @@ const bW = (e) => (V1("data-v-aaf72723"), e = e(), z1(), e), LW = ["aria-label",
|
|
23076
23087
|
id: "ballot_options",
|
23077
23088
|
class: Y({
|
23078
23089
|
"AVBallot--options": !0,
|
23079
|
-
"AVBallot--options-with-list":
|
23080
|
-
(
|
23090
|
+
"AVBallot--options-with-list": L.value.some(
|
23091
|
+
(l2) => l2.children
|
23081
23092
|
)
|
23082
23093
|
}),
|
23083
23094
|
"aria-label": B(n)("js.components.AVBallot.aria_labels.ballot_options")
|
23084
23095
|
}, [
|
23085
|
-
(p(!0), g(t2, null, y2(
|
23086
|
-
key:
|
23096
|
+
(p(!0), g(t2, null, y2(L.value, (l2) => (p(), g(t2, {
|
23097
|
+
key: l2.reference
|
23087
23098
|
}, [
|
23088
|
-
|
23099
|
+
l2.writeIn ? (p(), K(W, {
|
23089
23100
|
key: 0,
|
23090
23101
|
"candidate-value": l.value,
|
23091
|
-
"onUpdate:candidateValue":
|
23102
|
+
"onUpdate:candidateValue": N[0] || (N[0] = (a2) => l.value = a2),
|
23092
23103
|
"party-value": r.value,
|
23093
|
-
"onUpdate:partyValue":
|
23104
|
+
"onUpdate:partyValue": N[1] || (N[1] = (a2) => r.value = a2),
|
23094
23105
|
"checked-value": i.value,
|
23095
|
-
"onUpdate:checkedValue":
|
23106
|
+
"onUpdate:checkedValue": N[2] || (N[2] = (a2) => i.value = a2),
|
23096
23107
|
parties: [],
|
23097
23108
|
disabled: e.disabled,
|
23098
23109
|
observerMode: e.observerMode
|
23099
|
-
}, null, 8, ["candidate-value", "party-value", "checked-value", "parties", "disabled", "observerMode"])) : (p(), K(
|
23110
|
+
}, null, 8, ["candidate-value", "party-value", "checked-value", "parties", "disabled", "observerMode"])) : (p(), K(R, {
|
23100
23111
|
key: 1,
|
23101
23112
|
selections: f.value,
|
23102
|
-
option:
|
23113
|
+
option: l2,
|
23103
23114
|
invalid: !b.value,
|
23104
|
-
"exclusive-error":
|
23115
|
+
"exclusive-error": !w.value && l2.exclusive && h.value.includes("exclusive"),
|
23105
23116
|
contest: e.contest,
|
23106
23117
|
disabled: e.disabled,
|
23107
23118
|
observerMode: e.observerMode,
|
23108
23119
|
"partial-results": e.partialResults,
|
23109
|
-
onChecked:
|
23120
|
+
onChecked: k
|
23110
23121
|
}, null, 8, ["selections", "option", "invalid", "exclusive-error", "contest", "disabled", "observerMode", "partial-results"]))
|
23111
23122
|
], 64))), 128)),
|
23112
|
-
e.contest.markingType.blankSubmission === "active_choice" ? (p(), K(
|
23123
|
+
e.contest.markingType.blankSubmission === "active_choice" ? (p(), K(F, {
|
23113
23124
|
key: 0,
|
23114
23125
|
checked: e.selectionPile.explicitBlank,
|
23115
23126
|
error: h.value.includes("blank"),
|
@@ -23117,10 +23128,11 @@ const bW = (e) => (V1("data-v-aaf72723"), e = e(), z1(), e), LW = ["aria-label",
|
|
23117
23128
|
observerMode: e.observerMode,
|
23118
23129
|
accentColor: e.contest.blankOptionColor,
|
23119
23130
|
"partial-results": e.partialResults ? e.partialResults.blank : null,
|
23120
|
-
|
23121
|
-
|
23131
|
+
"is-belgian-ballot": w.value,
|
23132
|
+
onToggleBlank: y
|
23133
|
+
}, null, 8, ["checked", "error", "disabled", "observerMode", "accentColor", "partial-results", "is-belgian-ballot"])) : O("", !0)
|
23122
23134
|
], 10, AW),
|
23123
|
-
e.showSubmissionHelper && !e.disabled && !e.observerMode ? (p(), K(
|
23135
|
+
e.showSubmissionHelper && !e.disabled && !e.observerMode ? (p(), K(r2, {
|
23124
23136
|
key: 2,
|
23125
23137
|
id: `ballot_${e.contest.reference}`,
|
23126
23138
|
"chosen-count": f.value.length,
|
@@ -23128,13 +23140,13 @@ const bW = (e) => (V1("data-v-aaf72723"), e = e(), z1(), e), LW = ["aria-label",
|
|
23128
23140
|
class: "AVBallot--helper",
|
23129
23141
|
"min-marks": e.contest.markingType.minMarks,
|
23130
23142
|
"max-marks": e.contest.markingType.maxMarks,
|
23131
|
-
"has-exclusive-options":
|
23143
|
+
"has-exclusive-options": M.value
|
23132
23144
|
}, null, 8, ["id", "chosen-count", "errors", "min-marks", "max-marks", "has-exclusive-options"])) : O("", !0)
|
23133
23145
|
], 10, LW);
|
23134
23146
|
};
|
23135
23147
|
}
|
23136
23148
|
});
|
23137
|
-
const xW = /* @__PURE__ */ X(NW, [["__scopeId", "data-v-
|
23149
|
+
const xW = /* @__PURE__ */ X(NW, [["__scopeId", "data-v-2ede219b"]]), SW = (e) => (V1("data-v-4c799253"), e = e(), z1(), e), kW = {
|
23138
23150
|
key: 0,
|
23139
23151
|
class: "AVPileSummary--summary"
|
23140
23152
|
}, wW = {
|
@@ -23219,17 +23231,17 @@ const xW = /* @__PURE__ */ X(NW, [["__scopeId", "data-v-aaf72723"]]), SW = (e) =
|
|
23219
23231
|
candidateName: b.text
|
23220
23232
|
});
|
23221
23233
|
else {
|
23222
|
-
const
|
23234
|
+
const A = h.options.find(
|
23223
23235
|
(V) => V.handle === b.reference
|
23224
23236
|
);
|
23225
23237
|
a.contest.options.map((V) => m(V));
|
23226
|
-
const
|
23238
|
+
const w = r.value.find(
|
23227
23239
|
(V) => V.reference === b.reference
|
23228
23240
|
);
|
23229
|
-
|
23230
|
-
title:
|
23241
|
+
A ? A.crosses += 1 : h.options.push({
|
23242
|
+
title: w.title[s.value],
|
23231
23243
|
handle: b.reference,
|
23232
|
-
image:
|
23244
|
+
image: w.image,
|
23233
23245
|
crosses: 1,
|
23234
23246
|
rank: a.contest.markingType.voteVariation === "ranked" ? h.options.length + 1 : null
|
23235
23247
|
});
|
@@ -23238,7 +23250,7 @@ const xW = /* @__PURE__ */ X(NW, [["__scopeId", "data-v-aaf72723"]]), SW = (e) =
|
|
23238
23250
|
}), h;
|
23239
23251
|
});
|
23240
23252
|
return (h, b) => {
|
23241
|
-
const
|
23253
|
+
const A = D("AVSummaryOption"), w = D("AVIcon");
|
23242
23254
|
return e.activeState === "summary" ? (p(), g("div", kW, [
|
23243
23255
|
e.contest.markingType.maxPiles !== 1 ? (p(), g("header", wW, [
|
23244
23256
|
u("span", null, S(B(n)("js.components.AVPileSummary.selection")) + " " + S(e.pileIndex + 1) + " / " + S(e.totalPiles), 1),
|
@@ -23247,12 +23259,12 @@ const xW = /* @__PURE__ */ X(NW, [["__scopeId", "data-v-aaf72723"]]), SW = (e) =
|
|
23247
23259
|
u("span", null, S(B(n)("js.components.AVPileSummary.selection")), 1)
|
23248
23260
|
])),
|
23249
23261
|
u("div", EW, [
|
23250
|
-
(p(!0), g(t2, null, y2(d.value.options, (V, M) => (p(), K(
|
23262
|
+
(p(!0), g(t2, null, y2(d.value.options, (V, M) => (p(), K(A, {
|
23251
23263
|
key: M,
|
23252
23264
|
option: V,
|
23253
23265
|
"multiple-votes-allowed": e.contest.markingType.votesAllowedPerOption > 1
|
23254
23266
|
}, null, 8, ["option", "multiple-votes-allowed"]))), 128)),
|
23255
|
-
l.value ? (p(), K(
|
23267
|
+
l.value ? (p(), K(A, {
|
23256
23268
|
key: 0,
|
23257
23269
|
blank: l.value
|
23258
23270
|
}, null, 8, ["blank"])) : O("", !0)
|
@@ -23266,7 +23278,7 @@ const xW = /* @__PURE__ */ X(NW, [["__scopeId", "data-v-aaf72723"]]), SW = (e) =
|
|
23266
23278
|
onClick: b[0] || (b[0] = (V) => c("editCurrentSelection"))
|
23267
23279
|
}, [
|
23268
23280
|
u("div", BW, [
|
23269
|
-
I(
|
23281
|
+
I(w, { icon: "pen-to-square" }),
|
23270
23282
|
u("span", null, S(B(n)("js.components.AVPileSummary.ballot_selection")) + " " + S(e.pileIndex + 1), 1)
|
23271
23283
|
]),
|
23272
23284
|
e.activeState === "overview" || e.isEditing ? (p(), g("span", FW, S(B(n)("js.components.AVPileSummary.assigned")) + " " + S(e.selectionPile.multiplier), 1)) : O("", !0)
|
@@ -23318,7 +23330,7 @@ const xW = /* @__PURE__ */ X(NW, [["__scopeId", "data-v-aaf72723"]]), SW = (e) =
|
|
23318
23330
|
"aria-label": B(n)("js.components.AVPileSummary.aria_labels.delete_selection"),
|
23319
23331
|
onClick: b[3] || (b[3] = k1((V) => c("deleteSelection"), ["stop", "prevent"]))
|
23320
23332
|
}, [
|
23321
|
-
I(
|
23333
|
+
I(w, { icon: "trash-can" })
|
23322
23334
|
], 8, UW)) : O("", !0)
|
23323
23335
|
]));
|
23324
23336
|
};
|
@@ -23422,8 +23434,8 @@ const XW = {
|
|
23422
23434
|
((W = e.contestSelection.piles) == null ? void 0 : W.length) === 0 || e.contest.markingType.maxPiles === 1 ? "ballot" : "overview"
|
23423
23435
|
), l = e2([]), o = E(() => e.contestSelection.piles), f = E(
|
23424
23436
|
() => {
|
23425
|
-
var
|
23426
|
-
return (
|
23437
|
+
var R;
|
23438
|
+
return (R = o.value) == null ? void 0 : R.reduce((F, r2) => F - r2.multiplier, e.weight);
|
23427
23439
|
}
|
23428
23440
|
), m = E(
|
23429
23441
|
() => new tI(e.contest)
|
@@ -23433,60 +23445,60 @@ const XW = {
|
|
23433
23445
|
voterWeight: e.weight
|
23434
23446
|
})
|
23435
23447
|
), h = E(() => f.value === 0 && l.value.length == 0 && o.value.every(
|
23436
|
-
(
|
23448
|
+
(R) => m.value.isComplete(R)
|
23437
23449
|
)), b = E(
|
23438
23450
|
() => {
|
23439
|
-
var
|
23440
|
-
return (
|
23451
|
+
var R;
|
23452
|
+
return (R = o.value) == null ? void 0 : R.reduce((F, r2) => F + r2.multiplier, 0);
|
23441
23453
|
}
|
23442
|
-
),
|
23443
|
-
var
|
23444
|
-
return (
|
23445
|
-
}),
|
23446
|
-
() => o.value.filter((
|
23454
|
+
), A = E(() => {
|
23455
|
+
var R;
|
23456
|
+
return (R = i.value) == null ? void 0 : R.multiplier;
|
23457
|
+
}), w = E(
|
23458
|
+
() => o.value.filter((R, F) => F !== s.value).reduce((R, F) => R - F.multiplier, e.weight)
|
23447
23459
|
), V = E(
|
23448
23460
|
() => e.contest.markingType.maxPiles !== 1 && e.weight > 1
|
23449
|
-
), M = E(() => s.value !== null), L = (
|
23461
|
+
), M = E(() => s.value !== null), L = (R) => m.value.isComplete(R), H = (R) => m.value.validate(R).length > 0, y = () => {
|
23450
23462
|
if (V.value) {
|
23451
|
-
const
|
23452
|
-
s.value === null ?
|
23463
|
+
const R = [...o.value];
|
23464
|
+
s.value === null ? R.push({ ...i.value }) : R.splice(s.value, 1, {
|
23453
23465
|
...i.value
|
23454
23466
|
}), c("update:contestSelection", {
|
23455
23467
|
...e.contestSelection,
|
23456
|
-
piles:
|
23468
|
+
piles: R
|
23457
23469
|
}), s.value = null, r.value = "overview";
|
23458
23470
|
} else
|
23459
23471
|
i.value.multiplier = e.weight, c("update:contestSelection", {
|
23460
23472
|
...e.contestSelection,
|
23461
23473
|
piles: [i.value]
|
23462
23474
|
});
|
23463
|
-
},
|
23464
|
-
i.value =
|
23475
|
+
}, k = (R) => {
|
23476
|
+
i.value = R, V.value || y();
|
23465
23477
|
}, C = () => {
|
23466
23478
|
i.value = {
|
23467
23479
|
optionSelections: [],
|
23468
|
-
multiplier:
|
23480
|
+
multiplier: w.value,
|
23469
23481
|
explicitBlank: !1
|
23470
23482
|
}, s.value = null, r.value = "ballot";
|
23471
|
-
}, _ = (
|
23472
|
-
o.value.splice(
|
23473
|
-
},
|
23474
|
-
i.value = { ...o.value[
|
23475
|
-
},
|
23476
|
-
l.value =
|
23483
|
+
}, _ = (R) => {
|
23484
|
+
o.value.splice(R, 1);
|
23485
|
+
}, N = (R) => {
|
23486
|
+
i.value = { ...o.value[R] }, s.value = R, r.value = "ballot";
|
23487
|
+
}, U = (R) => {
|
23488
|
+
l.value = R;
|
23477
23489
|
};
|
23478
|
-
return i2(h, (
|
23490
|
+
return i2(h, (R) => c("update:complete", R)), i2(A, () => {
|
23479
23491
|
i.value && (i.value.multiplier = Math.max(
|
23480
23492
|
0,
|
23481
|
-
Math.min(
|
23493
|
+
Math.min(A.value, w.value)
|
23482
23494
|
));
|
23483
|
-
}), i2(i, (
|
23484
|
-
c("update:activePile",
|
23485
|
-
}), i2(r, (
|
23495
|
+
}), i2(i, (R) => {
|
23496
|
+
c("update:activePile", R);
|
23497
|
+
}), i2(r, (R) => c("update:activeState", R)), g2(() => {
|
23486
23498
|
e.locale && d2(e.locale), c("update:activePile", i.value), c("update:activeState", r.value), c("update:complete", h.value), V.value || y();
|
23487
|
-
}), (
|
23499
|
+
}), (R, F) => {
|
23488
23500
|
var M2;
|
23489
|
-
const
|
23501
|
+
const r2 = D("AVSplitWizardHeader"), l2 = D("AVBallot"), a2 = D("AVPileSummary"), h2 = D("AVSplitWeightHelper"), R2 = D("AVIcon");
|
23490
23502
|
return p(), g(t2, null, [
|
23491
23503
|
u("h3", XW, S(e.contest.title[n.value]), 1),
|
23492
23504
|
u("div", {
|
@@ -23494,7 +23506,7 @@ const XW = {
|
|
23494
23506
|
innerHTML: (M2 = e.contest.description) == null ? void 0 : M2[n.value]
|
23495
23507
|
}, null, 8, KW),
|
23496
23508
|
V.value ? (p(), g(t2, { key: 0 }, [
|
23497
|
-
["ballot", "assign", "overview"].includes(r.value) ? (p(), K(
|
23509
|
+
["ballot", "assign", "overview"].includes(r.value) ? (p(), K(r2, {
|
23498
23510
|
key: 0,
|
23499
23511
|
"active-selection-pile-index": s.value,
|
23500
23512
|
"active-state": r.value,
|
@@ -23510,14 +23522,14 @@ const XW = {
|
|
23510
23522
|
var v2, A2, S2;
|
23511
23523
|
return [
|
23512
23524
|
i.value && r.value === "ballot" ? (p(), g("div", { key: s.value }, [
|
23513
|
-
I(
|
23525
|
+
I(l2, {
|
23514
23526
|
class: "AVSplitHelper--ballot",
|
23515
23527
|
"selection-pile": i.value,
|
23516
23528
|
"partial-results": e.partialResults,
|
23517
23529
|
contest: e.contest,
|
23518
23530
|
"custom-rulesets": e.customRulesets,
|
23519
|
-
"onUpdate:selectionPile":
|
23520
|
-
"onUpdate:errors": F[0] || (F[0] = (C2) =>
|
23531
|
+
"onUpdate:selectionPile": k,
|
23532
|
+
"onUpdate:errors": F[0] || (F[0] = (C2) => U(C2)),
|
23521
23533
|
"show-submission-helper": e.showSubmissionHelper
|
23522
23534
|
}, null, 8, ["selection-pile", "partial-results", "contest", "custom-rulesets", "show-submission-helper"]),
|
23523
23535
|
u("div", ZW, [
|
@@ -23540,7 +23552,7 @@ const XW = {
|
|
23540
23552
|
])) : r.value === "assign" ? (p(), g("div", aG, [
|
23541
23553
|
u("div", tG, [
|
23542
23554
|
u("h4", nG, S(B(t)("js.components.AVSplitHelper.assign.split_question")), 1),
|
23543
|
-
I(
|
23555
|
+
I(a2, {
|
23544
23556
|
"selection-pile": i.value,
|
23545
23557
|
contest: e.contest,
|
23546
23558
|
"maximum-options-shown": 3,
|
@@ -23561,7 +23573,7 @@ const XW = {
|
|
23561
23573
|
"onUpdate:modelValue": F[4] || (F[4] = (C2) => i.value.multiplier = C2),
|
23562
23574
|
class: "AVSplitHelper--assign-input",
|
23563
23575
|
type: "number",
|
23564
|
-
max:
|
23576
|
+
max: w.value
|
23565
23577
|
}, null, 8, iG), [
|
23566
23578
|
[ls, i.value.multiplier]
|
23567
23579
|
])
|
@@ -23583,7 +23595,7 @@ const XW = {
|
|
23583
23595
|
u("button", {
|
23584
23596
|
key: "confirm",
|
23585
23597
|
class: "AVSplitHelper--btn-primary",
|
23586
|
-
disabled: ((A2 = i.value) == null ? void 0 : A2.multiplier) < 1 || ((S2 = i.value) == null ? void 0 : S2.multiplier) >
|
23598
|
+
disabled: ((A2 = i.value) == null ? void 0 : A2.multiplier) < 1 || ((S2 = i.value) == null ? void 0 : S2.multiplier) > w.value,
|
23587
23599
|
onClick: F[6] || (F[6] = (C2) => y())
|
23588
23600
|
}, S(B(t)("js.components.AVSplitHelper.assign.confirm_button")), 9, fG)
|
23589
23601
|
])
|
@@ -23612,9 +23624,9 @@ const XW = {
|
|
23612
23624
|
])),
|
23613
23625
|
(p(!0), g(t2, null, y2(o.value, (C2, E2) => (p(), g("article", {
|
23614
23626
|
key: `preview-${E2}`,
|
23615
|
-
onClick: (F2) =>
|
23627
|
+
onClick: (F2) => N(E2)
|
23616
23628
|
}, [
|
23617
|
-
I(
|
23629
|
+
I(a2, {
|
23618
23630
|
"selection-pile": C2,
|
23619
23631
|
contest: e.contest,
|
23620
23632
|
"maximum-options-shown": 3,
|
@@ -23629,15 +23641,15 @@ const XW = {
|
|
23629
23641
|
}),
|
23630
23642
|
_: 1
|
23631
23643
|
})
|
23632
|
-
], 64)) : (p(), K(
|
23644
|
+
], 64)) : (p(), K(l2, {
|
23633
23645
|
key: 1,
|
23634
23646
|
class: "AVSplitHelper--no-split",
|
23635
23647
|
"selection-pile": i.value,
|
23636
23648
|
"partial-results": e.partialResults,
|
23637
23649
|
contest: e.contest,
|
23638
23650
|
"custom-rulesets": e.customRulesets,
|
23639
|
-
"onUpdate:selectionPile":
|
23640
|
-
"onUpdate:errors": F[7] || (F[7] = (v2) =>
|
23651
|
+
"onUpdate:selectionPile": k,
|
23652
|
+
"onUpdate:errors": F[7] || (F[7] = (v2) => U(v2)),
|
23641
23653
|
"show-submission-helper": e.showSubmissionHelper
|
23642
23654
|
}, null, 8, ["selection-pile", "partial-results", "contest", "custom-rulesets", "show-submission-helper"]))
|
23643
23655
|
], 64);
|