@assemblyvoting/ui-library 3.1.27-beta.25 → 3.1.27-beta.27

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as G, h as J4, getCurrentInstance as O3, effectScope as _$, inject as D1, onMounted as A1, onUnmounted as x$, shallowRef as ts, ref as i1, computed as E, onBeforeMount as N$, watch as l1, Fragment as a1, isRef as y$, createVNode as T, Text as k$, pushScopeId as e2, popScopeId as c2, nextTick as is, openBlock as d, createBlock as K, createElementBlock as h, normalizeClass as $, renderSlot as H1, normalizeProps as S$, guardReactiveProps as w$, withScopeId as T$, resolveComponent as D, normalizeStyle as W1, withKeys as $8, createElementVNode as f, createCommentVNode as I, mergeProps as U8, withCtx as s1, createApp as I$, toDisplayString as N, createTextVNode as z1, resolveDirective as B2, withDirectives as G1, reactive as ns, provide as ss, renderList as g1, Transition as Y2, unref as B, useCssVars as E$, vShow as E4, withModifiers as m2, createSlots as D$, vModelText as ls } from "vue";
1
+ import { defineComponent as G, h as J4, getCurrentInstance as O3, effectScope as _$, inject as D1, onMounted as A1, onUnmounted as x$, shallowRef as ts, ref as i1, computed as E, onBeforeMount as N$, watch as l1, Fragment as a1, isRef as y$, createVNode as T, Text as k$, pushScopeId as e2, popScopeId as c2, nextTick as is, openBlock as d, createBlock as K, createElementBlock as h, normalizeClass as $, renderSlot as H1, normalizeProps as S$, guardReactiveProps as w$, withScopeId as T$, resolveComponent as D, normalizeStyle as W1, withKeys as $8, createElementVNode as f, createCommentVNode as I, mergeProps as U8, withCtx as s1, createApp as I$, toDisplayString as N, createTextVNode as z1, resolveDirective as B2, withDirectives as G1, reactive as ns, provide as ss, renderList as g1, Transition as Y2, unref as F, useCssVars as E$, vShow as E4, withModifiers as m2, createSlots as D$, vModelText as ls } from "vue";
2
2
  /*!
3
3
  * shared v9.13.1
4
4
  * (c) 2024 kazuya kawaguchi
@@ -206,10 +206,10 @@ function iU(e) {
206
206
  function L() {
207
207
  a = 0, t = 1, i = 1, n = 0;
208
208
  }
209
- function A(k = 0) {
209
+ function y(k = 0) {
210
210
  n = k;
211
211
  }
212
- function y() {
212
+ function A() {
213
213
  const k = a + n;
214
214
  for (; k !== a; )
215
215
  g();
@@ -226,8 +226,8 @@ function iU(e) {
226
226
  next: g,
227
227
  peek: z,
228
228
  reset: L,
229
- resetPeek: A,
230
- skipToPeek: y
229
+ resetPeek: y,
230
+ skipToPeek: A
231
231
  };
232
232
  }
233
233
  const x2 = void 0, nU = ".", ki = "'", sU = "tokenizer";
@@ -308,7 +308,7 @@ function lU(e, c = {}) {
308
308
  const X = V.currentPeek() === "-" ? V.peek() : V.currentPeek(), _1 = g(X);
309
309
  return V.resetPeek(), _1;
310
310
  }
311
- function A(V, M) {
311
+ function y(V, M) {
312
312
  const { currentType: P } = M;
313
313
  if (P !== 2)
314
314
  return !1;
@@ -316,7 +316,7 @@ function lU(e, c = {}) {
316
316
  const X = V.currentPeek() === ki;
317
317
  return V.resetPeek(), X;
318
318
  }
319
- function y(V, M) {
319
+ function A(V, M) {
320
320
  const { currentType: P } = M;
321
321
  if (P !== 8)
322
322
  return !1;
@@ -332,7 +332,7 @@ function lU(e, c = {}) {
332
332
  const X = _(V.currentPeek());
333
333
  return V.resetPeek(), X;
334
334
  }
335
- function w(V, M) {
335
+ function S(V, M) {
336
336
  const { currentType: P } = M;
337
337
  if (!(P === 8 || P === 12))
338
338
  return !1;
@@ -350,12 +350,12 @@ function lU(e, c = {}) {
350
350
  }, _1 = X();
351
351
  return V.resetPeek(), _1;
352
352
  }
353
- function F(V) {
353
+ function B(V) {
354
354
  C(V);
355
355
  const M = V.currentPeek() === "|";
356
356
  return V.resetPeek(), M;
357
357
  }
358
- function Q(V) {
358
+ function Z(V) {
359
359
  const M = C(V), P = V.currentPeek() === "%" && V.peek() === "{";
360
360
  return V.resetPeek(), {
361
361
  isModulo: P,
@@ -364,8 +364,8 @@ function lU(e, c = {}) {
364
364
  }
365
365
  function O(V, M = !0) {
366
366
  const P = (_1 = !1, M1 = "", h1 = !1) => {
367
- const S = V.currentPeek();
368
- return S === "{" ? M1 === "%" ? !1 : _1 : S === "@" || !S ? M1 === "%" ? !0 : _1 : S === "%" ? (V.peek(), P(_1, "%", !0)) : S === "|" ? M1 === "%" || h1 ? !0 : !(M1 === V2 || M1 === R1) : S === V2 ? (V.peek(), P(!0, V2, h1)) : S === R1 ? (V.peek(), P(!0, R1, h1)) : !0;
367
+ const w = V.currentPeek();
368
+ return w === "{" ? M1 === "%" ? !1 : _1 : w === "@" || !w ? M1 === "%" ? !0 : _1 : w === "%" ? (V.peek(), P(_1, "%", !0)) : w === "|" ? M1 === "%" || h1 ? !0 : !(M1 === V2 || M1 === R1) : w === V2 ? (V.peek(), P(!0, V2, h1)) : w === R1 ? (V.peek(), P(!0, R1, h1)) : !0;
369
369
  }, X = P();
370
370
  return M && V.resetPeek(), X;
371
371
  }
@@ -384,7 +384,7 @@ function lU(e, c = {}) {
384
384
  function U(V) {
385
385
  return e1(V, r1);
386
386
  }
387
- function Z(V) {
387
+ function Y(V) {
388
388
  const M = V.charCodeAt(0);
389
389
  return M >= 97 && M <= 122 || // a-z
390
390
  M >= 65 && M <= 90 || // A-Z
@@ -394,7 +394,7 @@ function lU(e, c = {}) {
394
394
  M === 45;
395
395
  }
396
396
  function m1(V) {
397
- return e1(V, Z);
397
+ return e1(V, Y);
398
398
  }
399
399
  function P1(V) {
400
400
  const M = V.charCodeAt(0);
@@ -438,7 +438,7 @@ function lU(e, c = {}) {
438
438
  if (O(V))
439
439
  M += P, V.next();
440
440
  else {
441
- if (F(V))
441
+ if (B(V))
442
442
  break;
443
443
  M += P, V.next();
444
444
  }
@@ -550,7 +550,7 @@ function lU(e, c = {}) {
550
550
  return M.braceNest > 0 && u(c1.UNTERMINATED_CLOSING_BRACE, n(), 0), P = R2(V, M) || p(M), M.braceNest = 0, P;
551
551
  default: {
552
552
  let _1 = !0, M1 = !0, h1 = !0;
553
- if (F(V))
553
+ if (B(V))
554
554
  return M.braceNest > 0 && u(c1.UNTERMINATED_CLOSING_BRACE, n(), 0), P = v(M, 1, d1(V)), M.braceNest = 0, M.inLinked = !1, P;
555
555
  if (M.braceNest > 0 && (M.currentType === 5 || M.currentType === 6 || M.currentType === 7))
556
556
  return u(c1.UNTERMINATED_CLOSING_BRACE, n(), 0), M.braceNest = 0, y3(V, M);
@@ -558,7 +558,7 @@ function lU(e, c = {}) {
558
558
  return P = v(M, 5, A2(V)), b(V), P;
559
559
  if (M1 = L(V, M))
560
560
  return P = v(M, 6, F1(V)), b(V), P;
561
- if (h1 = A(V, M))
561
+ if (h1 = y(V, M))
562
562
  return P = v(M, 7, t3(V)), b(V), P;
563
563
  if (!_1 && !M1 && !h1)
564
564
  return P = v(M, 13, _3(V)), u(c1.INVALID_TOKEN_IN_PLACEHOLDER, n(), 0, P.value), b(V), P;
@@ -594,7 +594,7 @@ function lU(e, c = {}) {
594
594
  /* TokenChars.LinkedDelimiter */
595
595
  );
596
596
  default:
597
- return F(V) ? (X = v(M, 1, d1(V)), M.braceNest = 0, M.inLinked = !1, X) : y(V, M) || w(V, M) ? (b(V), R2(V, M)) : k(V, M) ? (b(V), v(M, 12, x3(V))) : x(V, M) ? (b(V), _1 === "{" ? N3(V, M) || X : v(M, 11, j(V))) : (P === 8 && u(c1.INVALID_LINKED_FORMAT, n(), 0), M.braceNest = 0, M.inLinked = !1, y3(V, M));
597
+ return B(V) ? (X = v(M, 1, d1(V)), M.braceNest = 0, M.inLinked = !1, X) : A(V, M) || S(V, M) ? (b(V), R2(V, M)) : k(V, M) ? (b(V), v(M, 12, x3(V))) : x(V, M) ? (b(V), _1 === "{" ? N3(V, M) || X : v(M, 11, j(V))) : (P === 8 && u(c1.INVALID_LINKED_FORMAT, n(), 0), M.braceNest = 0, M.inLinked = !1, y3(V, M));
598
598
  }
599
599
  }
600
600
  function y3(V, M) {
@@ -619,9 +619,9 @@ function lU(e, c = {}) {
619
619
  case "@":
620
620
  return R2(V, M) || p(M);
621
621
  default: {
622
- if (F(V))
622
+ if (B(V))
623
623
  return P = v(M, 1, d1(V)), M.braceNest = 0, M.inLinked = !1, P;
624
- const { isModulo: _1, hasSpace: M1 } = Q(V);
624
+ const { isModulo: _1, hasSpace: M1 } = Z(V);
625
625
  if (_1)
626
626
  return M1 ? v(M, 0, z2(V)) : v(M, 4, a2(V));
627
627
  if (O(V))
@@ -661,99 +661,99 @@ function fU(e, c, a) {
661
661
  }
662
662
  function uU(e = {}) {
663
663
  const c = e.location !== !1, { onError: a, onWarn: t } = e;
664
- function i(z, L, A, y, ...k) {
665
- const w = z.currentPosition();
666
- if (w.offset += y, w.column += y, a) {
667
- const x = c ? P4(A, w) : null, F = z3(L, x, {
664
+ function i(z, L, y, A, ...k) {
665
+ const S = z.currentPosition();
666
+ if (S.offset += A, S.column += A, a) {
667
+ const x = c ? P4(y, S) : null, B = z3(L, x, {
668
668
  domain: rU,
669
669
  args: k
670
670
  });
671
- a(F);
671
+ a(B);
672
672
  }
673
673
  }
674
- function n(z, L, A, y, ...k) {
675
- const w = z.currentPosition();
676
- if (w.offset += y, w.column += y, t) {
677
- const x = c ? P4(A, w) : null;
674
+ function n(z, L, y, A, ...k) {
675
+ const S = z.currentPosition();
676
+ if (S.offset += A, S.column += A, t) {
677
+ const x = c ? P4(y, S) : null;
678
678
  t(Y$(L, x, k));
679
679
  }
680
680
  }
681
- function s(z, L, A) {
682
- const y = { type: z };
683
- return c && (y.start = L, y.end = L, y.loc = { start: A, end: A }), y;
681
+ function s(z, L, y) {
682
+ const A = { type: z };
683
+ return c && (A.start = L, A.end = L, A.loc = { start: y, end: y }), A;
684
684
  }
685
- function l(z, L, A, y) {
686
- y && (z.type = y), c && (z.end = L, z.loc && (z.loc.end = A));
685
+ function l(z, L, y, A) {
686
+ A && (z.type = A), c && (z.end = L, z.loc && (z.loc.end = y));
687
687
  }
688
688
  function r(z, L) {
689
- const A = z.context(), y = s(3, A.offset, A.startLoc);
690
- return y.value = L, l(y, z.currentOffset(), z.currentPosition()), y;
689
+ const y = z.context(), A = s(3, y.offset, y.startLoc);
690
+ return A.value = L, l(A, z.currentOffset(), z.currentPosition()), A;
691
691
  }
692
692
  function o(z, L) {
693
- const A = z.context(), { lastOffset: y, lastStartLoc: k } = A, w = s(5, y, k);
694
- return w.index = parseInt(L, 10), z.nextToken(), l(w, z.currentOffset(), z.currentPosition()), w;
693
+ const y = z.context(), { lastOffset: A, lastStartLoc: k } = y, S = s(5, A, k);
694
+ return S.index = parseInt(L, 10), z.nextToken(), l(S, z.currentOffset(), z.currentPosition()), S;
695
695
  }
696
- function m(z, L, A) {
697
- const y = z.context(), { lastOffset: k, lastStartLoc: w } = y, x = s(4, k, w);
698
- return x.key = L, A === !0 && (x.modulo = !0), z.nextToken(), l(x, z.currentOffset(), z.currentPosition()), x;
696
+ function m(z, L, y) {
697
+ const A = z.context(), { lastOffset: k, lastStartLoc: S } = A, x = s(4, k, S);
698
+ return x.key = L, y === !0 && (x.modulo = !0), z.nextToken(), l(x, z.currentOffset(), z.currentPosition()), x;
699
699
  }
700
700
  function u(z, L) {
701
- const A = z.context(), { lastOffset: y, lastStartLoc: k } = A, w = s(9, y, k);
702
- return w.value = L.replace(oU, fU), z.nextToken(), l(w, z.currentOffset(), z.currentPosition()), w;
701
+ const y = z.context(), { lastOffset: A, lastStartLoc: k } = y, S = s(9, A, k);
702
+ return S.value = L.replace(oU, fU), z.nextToken(), l(S, z.currentOffset(), z.currentPosition()), S;
703
703
  }
704
704
  function v(z) {
705
- const L = z.nextToken(), A = z.context(), { lastOffset: y, lastStartLoc: k } = A, w = s(8, y, k);
706
- return L.type !== 12 ? (i(z, c1.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), w.value = "", l(w, y, k), {
705
+ const L = z.nextToken(), y = z.context(), { lastOffset: A, lastStartLoc: k } = y, S = s(8, A, k);
706
+ return L.type !== 12 ? (i(z, c1.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), S.value = "", l(S, A, k), {
707
707
  nextConsumeToken: L,
708
- node: w
709
- }) : (L.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, t2(L)), w.value = L.value || "", l(w, z.currentOffset(), z.currentPosition()), {
710
- node: w
708
+ node: S
709
+ }) : (L.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, t2(L)), S.value = L.value || "", l(S, z.currentOffset(), z.currentPosition()), {
710
+ node: S
711
711
  });
712
712
  }
713
713
  function p(z, L) {
714
- const A = z.context(), y = s(7, A.offset, A.startLoc);
715
- return y.value = L, l(y, z.currentOffset(), z.currentPosition()), y;
714
+ const y = z.context(), A = s(7, y.offset, y.startLoc);
715
+ return A.value = L, l(A, z.currentOffset(), z.currentPosition()), A;
716
716
  }
717
717
  function H(z) {
718
- const L = z.context(), A = s(6, L.offset, L.startLoc);
719
- let y = z.nextToken();
720
- if (y.type === 9) {
718
+ const L = z.context(), y = s(6, L.offset, L.startLoc);
719
+ let A = z.nextToken();
720
+ if (A.type === 9) {
721
721
  const k = v(z);
722
- A.modifier = k.node, y = k.nextConsumeToken || z.nextToken();
722
+ y.modifier = k.node, A = k.nextConsumeToken || z.nextToken();
723
723
  }
724
- switch (y.type !== 10 && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(y)), y = z.nextToken(), y.type === 2 && (y = z.nextToken()), y.type) {
724
+ switch (A.type !== 10 && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(A)), A = z.nextToken(), A.type === 2 && (A = z.nextToken()), A.type) {
725
725
  case 11:
726
- y.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(y)), A.key = p(z, y.value || "");
726
+ A.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(A)), y.key = p(z, A.value || "");
727
727
  break;
728
728
  case 5:
729
- y.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(y)), A.key = m(z, y.value || "");
729
+ A.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(A)), y.key = m(z, A.value || "");
730
730
  break;
731
731
  case 6:
732
- y.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(y)), A.key = o(z, y.value || "");
732
+ A.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(A)), y.key = o(z, A.value || "");
733
733
  break;
734
734
  case 7:
735
- y.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(y)), A.key = u(z, y.value || "");
735
+ A.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(A)), y.key = u(z, A.value || "");
736
736
  break;
737
737
  default: {
738
738
  i(z, c1.UNEXPECTED_EMPTY_LINKED_KEY, L.lastStartLoc, 0);
739
- const k = z.context(), w = s(7, k.offset, k.startLoc);
740
- return w.value = "", l(w, k.offset, k.startLoc), A.key = w, l(A, k.offset, k.startLoc), {
741
- nextConsumeToken: y,
742
- node: A
739
+ const k = z.context(), S = s(7, k.offset, k.startLoc);
740
+ return S.value = "", l(S, k.offset, k.startLoc), y.key = S, l(y, k.offset, k.startLoc), {
741
+ nextConsumeToken: A,
742
+ node: y
743
743
  };
744
744
  }
745
745
  }
746
- return l(A, z.currentOffset(), z.currentPosition()), {
747
- node: A
746
+ return l(y, z.currentOffset(), z.currentPosition()), {
747
+ node: y
748
748
  };
749
749
  }
750
750
  function C(z) {
751
- const L = z.context(), A = L.currentType === 1 ? z.currentOffset() : L.offset, y = L.currentType === 1 ? L.endLoc : L.startLoc, k = s(2, A, y);
751
+ const L = z.context(), y = L.currentType === 1 ? z.currentOffset() : L.offset, A = L.currentType === 1 ? L.endLoc : L.startLoc, k = s(2, y, A);
752
752
  k.items = [];
753
- let w = null, x = null;
753
+ let S = null, x = null;
754
754
  do {
755
- const O = w || z.nextToken();
756
- switch (w = null, O.type) {
755
+ const O = S || z.nextToken();
756
+ switch (S = null, O.type) {
757
757
  case 0:
758
758
  O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)), k.items.push(r(z, O.value || ""));
759
759
  break;
@@ -771,32 +771,32 @@ function uU(e = {}) {
771
771
  break;
772
772
  case 8: {
773
773
  const e1 = H(z);
774
- k.items.push(e1.node), w = e1.nextConsumeToken || null;
774
+ k.items.push(e1.node), S = e1.nextConsumeToken || null;
775
775
  break;
776
776
  }
777
777
  }
778
778
  } while (L.currentType !== 14 && L.currentType !== 1);
779
- const F = L.currentType === 1 ? L.lastOffset : z.currentOffset(), Q = L.currentType === 1 ? L.lastEndLoc : z.currentPosition();
780
- return l(k, F, Q), k;
779
+ const B = L.currentType === 1 ? L.lastOffset : z.currentOffset(), Z = L.currentType === 1 ? L.lastEndLoc : z.currentPosition();
780
+ return l(k, B, Z), k;
781
781
  }
782
- function b(z, L, A, y) {
782
+ function b(z, L, y, A) {
783
783
  const k = z.context();
784
- let w = y.items.length === 0;
785
- const x = s(1, L, A);
786
- x.cases = [], x.cases.push(y);
784
+ let S = A.items.length === 0;
785
+ const x = s(1, L, y);
786
+ x.cases = [], x.cases.push(A);
787
787
  do {
788
- const F = C(z);
789
- w || (w = F.items.length === 0), x.cases.push(F);
788
+ const B = C(z);
789
+ S || (S = B.items.length === 0), x.cases.push(B);
790
790
  } while (k.currentType !== 14);
791
- return w && i(z, c1.MUST_HAVE_MESSAGES_IN_PLURAL, A, 0), l(x, z.currentOffset(), z.currentPosition()), x;
791
+ return S && i(z, c1.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), l(x, z.currentOffset(), z.currentPosition()), x;
792
792
  }
793
793
  function _(z) {
794
- const L = z.context(), { offset: A, startLoc: y } = L, k = C(z);
795
- return L.currentType === 14 ? k : b(z, A, y, k);
794
+ const L = z.context(), { offset: y, startLoc: A } = L, k = C(z);
795
+ return L.currentType === 14 ? k : b(z, y, A, k);
796
796
  }
797
797
  function g(z) {
798
- const L = lU(z, ms({}, e)), A = L.context(), y = s(0, A.offset, A.startLoc);
799
- return c && y.loc && (y.loc.source = z), y.body = _(L), e.onCacheKey && (y.cacheKey = e.onCacheKey(z)), A.currentType !== 14 && i(L, c1.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, z[A.offset] || ""), l(y, L.currentOffset(), L.currentPosition()), y;
798
+ const L = lU(z, ms({}, e)), y = L.context(), A = s(0, y.offset, y.startLoc);
799
+ return c && A.loc && (A.loc.source = z), A.body = _(L), e.onCacheKey && (A.cacheKey = e.onCacheKey(z)), y.currentType !== 14 && i(L, c1.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, z[y.offset] || ""), l(A, L.currentOffset(), L.currentPosition()), A;
800
800
  }
801
801
  return { parse: g };
802
802
  }
@@ -1403,13 +1403,13 @@ function FU(e = {}) {
1403
1403
  plural: n,
1404
1404
  linked: (_, ...g) => {
1405
1405
  const [z, L] = g;
1406
- let A = "text", y = "";
1407
- g.length === 1 ? u1(z) ? (y = z.modifier || y, A = z.type || A) : q(z) && (y = z || y) : g.length === 2 && (q(z) && (y = z || y), q(L) && (A = L || A));
1408
- const k = m(_)(b), w = (
1406
+ let y = "text", A = "";
1407
+ g.length === 1 ? u1(z) ? (A = z.modifier || A, y = z.type || y) : q(z) && (A = z || A) : g.length === 2 && (q(z) && (A = z || A), q(L) && (y = L || y));
1408
+ const k = m(_)(b), S = (
1409
1409
  // The message in vnode resolved with linked are returned as an array by processor.nomalize
1410
- A === "vnode" && C1(k) && y ? k[0] : k
1410
+ y === "vnode" && C1(k) && A ? k[0] : k
1411
1411
  );
1412
- return y ? u(y)(w, A) : w;
1412
+ return A ? u(A)(S, y) : S;
1413
1413
  },
1414
1414
  message: m,
1415
1415
  type: H,
@@ -1595,7 +1595,7 @@ let Fi = 0;
1595
1595
  function tW(e = {}) {
1596
1596
  const c = V1(e.onWarn) ? e.onWarn : S1, a = q(e.version) ? e.version : YU, t = q(e.locale) || V1(e.locale) ? e.locale : v3, i = V1(t) ? v3 : t, n = C1(e.fallbackLocale) || t1(e.fallbackLocale) || q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, s = t1(e.messages) ? e.messages : { [i]: {} }, l = t1(e.datetimeFormats) ? e.datetimeFormats : { [i]: {} }, r = t1(e.numberFormats) ? e.numberFormats : { [i]: {} }, o = B1({}, e.modifiers || {}, QU()), m = e.pluralRules || {}, u = V1(e.missing) ? e.missing : null, v = n1(e.missingWarn) || T2(e.missingWarn) ? e.missingWarn : !0, p = n1(e.fallbackWarn) || T2(e.fallbackWarn) ? e.fallbackWarn : !0, H = !!e.fallbackFormat, C = !!e.unresolving, b = V1(e.postTranslation) ? e.postTranslation : null, _ = t1(e.processor) ? e.processor : null, g = n1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, z = !!e.escapeParameter, L = V1(e.messageCompiler) ? e.messageCompiler : zs;
1597
1597
  process.env.NODE_ENV !== "production" && V1(e.messageCompiler) && fs(K2(j1.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1598
- const A = V1(e.messageResolver) ? e.messageResolver : Vs || SU, y = V1(e.localeFallbacker) ? e.localeFallbacker : Ms || GU, k = u1(e.fallbackContext) ? e.fallbackContext : void 0, w = e, x = u1(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), F = u1(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), Q = u1(w.__meta) ? w.__meta : {};
1598
+ const y = V1(e.messageResolver) ? e.messageResolver : Vs || SU, A = V1(e.localeFallbacker) ? e.localeFallbacker : Ms || GU, k = u1(e.fallbackContext) ? e.fallbackContext : void 0, S = e, x = u1(S.__datetimeFormatters) ? S.__datetimeFormatters : /* @__PURE__ */ new Map(), B = u1(S.__numberFormatters) ? S.__numberFormatters : /* @__PURE__ */ new Map(), Z = u1(S.__meta) ? S.__meta : {};
1599
1599
  Fi++;
1600
1600
  const O = {
1601
1601
  version: a,
@@ -1615,13 +1615,13 @@ function tW(e = {}) {
1615
1615
  warnHtmlMessage: g,
1616
1616
  escapeParameter: z,
1617
1617
  messageCompiler: L,
1618
- messageResolver: A,
1619
- localeFallbacker: y,
1618
+ messageResolver: y,
1619
+ localeFallbacker: A,
1620
1620
  fallbackContext: k,
1621
1621
  onWarn: c,
1622
- __meta: Q
1622
+ __meta: Z
1623
1623
  };
1624
- return O.datetimeFormats = l, O.numberFormats = r, O.__datetimeFormatters = x, O.__numberFormatters = F, process.env.NODE_ENV !== "production" && (O.__v_emitter = w.__v_emitter != null ? w.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && jU(O, a, Q), O;
1624
+ return O.datetimeFormats = l, O.numberFormats = r, O.__datetimeFormatters = x, O.__numberFormatters = B, process.env.NODE_ENV !== "production" && (O.__v_emitter = S.__v_emitter != null ? S.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && jU(O, a, Z), O;
1625
1625
  }
1626
1626
  function X4(e, c) {
1627
1627
  return e instanceof RegExp ? e.test(c) : e;
@@ -1785,18 +1785,18 @@ function qi(e, ...c) {
1785
1785
  r,
1786
1786
  b,
1787
1787
  l[b] || {}
1788
- ] : Ns(e, r, b, s, u, m), L = _, A = r;
1789
- if (!p && !(q(L) || I2(L) || K1(L)) && C && (L = H, A = L), !p && (!(q(L) || I2(L) || K1(L)) || !q(g)))
1788
+ ] : Ns(e, r, b, s, u, m), L = _, y = r;
1789
+ if (!p && !(q(L) || I2(L) || K1(L)) && C && (L = H, y = L), !p && (!(q(L) || I2(L) || K1(L)) || !q(g)))
1790
1790
  return i ? K4 : r;
1791
1791
  if (process.env.NODE_ENV !== "production" && q(L) && e.messageCompiler == null)
1792
1792
  return S1(`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 '${r}'.`), r;
1793
- let y = !1;
1793
+ let A = !1;
1794
1794
  const k = () => {
1795
- y = !0;
1796
- }, w = K1(L) ? L : ys(e, r, g, L, A, k);
1797
- if (y)
1795
+ A = !0;
1796
+ }, S = K1(L) ? L : ys(e, r, g, L, y, k);
1797
+ if (A)
1798
1798
  return L;
1799
- const x = dW(e, g, z, o), F = FU(x), Q = fW(e, w, F), O = t ? t(Q, r) : Q;
1799
+ const x = dW(e, g, z, o), B = FU(x), Z = fW(e, S, B), O = t ? t(Z, r) : Z;
1800
1800
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1801
1801
  const e1 = {
1802
1802
  timestamp: Date.now(),
@@ -1823,8 +1823,8 @@ function Ns(e, c, a, t, i, n) {
1823
1823
  key: c,
1824
1824
  target: v
1825
1825
  })), process.env.NODE_ENV !== "production" && a !== v) {
1826
- const A = e.__v_emitter;
1827
- A && A.emit("fallback", {
1826
+ const y = e.__v_emitter;
1827
+ y && y.emit("fallback", {
1828
1828
  type: b,
1829
1829
  key: c,
1830
1830
  from: H,
@@ -1835,19 +1835,19 @@ function Ns(e, c, a, t, i, n) {
1835
1835
  u = s[v] || {};
1836
1836
  let g = null, z, L;
1837
1837
  if (process.env.NODE_ENV !== "production" && r2 && (g = window.performance.now(), z = "intlify-message-resolve-start", L = "intlify-message-resolve-end", Y1 && Y1(z)), (p = r(u, c)) === null && (p = u[c]), process.env.NODE_ENV !== "production" && r2) {
1838
- const A = window.performance.now(), y = e.__v_emitter;
1839
- y && g && p && y.emit("message-resolve", {
1838
+ const y = window.performance.now(), A = e.__v_emitter;
1839
+ A && g && p && A.emit("message-resolve", {
1840
1840
  type: "message-resolve",
1841
1841
  key: c,
1842
1842
  message: p,
1843
- time: A - g,
1843
+ time: y - g,
1844
1844
  groupId: `${b}:${c}`
1845
1845
  }), z && L && Y1 && Q2 && (Y1(L), Q2("intlify message resolve", z, L));
1846
1846
  }
1847
1847
  if (q(p) || I2(p) || K1(p))
1848
1848
  break;
1849
1849
  if (!iW(v, m)) {
1850
- const A = Y8(
1850
+ const y = Y8(
1851
1851
  e,
1852
1852
  // eslint-disable-line @typescript-eslint/no-explicit-any
1853
1853
  c,
@@ -1855,7 +1855,7 @@ function Ns(e, c, a, t, i, n) {
1855
1855
  n,
1856
1856
  b
1857
1857
  );
1858
- A !== c && (p = A);
1858
+ y !== c && (p = y);
1859
1859
  }
1860
1860
  H = C;
1861
1861
  }
@@ -1974,32 +1974,32 @@ function Ui(e, ...c) {
1974
1974
  );
1975
1975
  if (!q(r) || r === "")
1976
1976
  return new Intl.DateTimeFormat(C, u).format(o);
1977
- let _ = {}, g, z = null, L = C, A = null;
1978
- const y = "datetime format";
1977
+ let _ = {}, g, z = null, L = C, y = null;
1978
+ const A = "datetime format";
1979
1979
  for (let x = 0; x < b.length; x++) {
1980
- if (g = A = b[x], process.env.NODE_ENV !== "production" && C !== g && X4(p, r) && n(K2(j1.FALLBACK_TO_DATE_FORMAT, {
1980
+ if (g = y = b[x], process.env.NODE_ENV !== "production" && C !== g && X4(p, r) && n(K2(j1.FALLBACK_TO_DATE_FORMAT, {
1981
1981
  key: r,
1982
1982
  target: g
1983
1983
  })), process.env.NODE_ENV !== "production" && C !== g) {
1984
- const F = e.__v_emitter;
1985
- F && F.emit("fallback", {
1986
- type: y,
1984
+ const B = e.__v_emitter;
1985
+ B && B.emit("fallback", {
1986
+ type: A,
1987
1987
  key: r,
1988
1988
  from: L,
1989
- to: A,
1990
- groupId: `${y}:${r}`
1989
+ to: y,
1990
+ groupId: `${A}:${r}`
1991
1991
  });
1992
1992
  }
1993
1993
  if (_ = a[g] || {}, z = _[r], t1(z))
1994
1994
  break;
1995
- Y8(e, r, g, v, y), L = A;
1995
+ Y8(e, r, g, v, A), L = y;
1996
1996
  }
1997
1997
  if (!t1(z) || !q(g))
1998
1998
  return t ? K4 : r;
1999
1999
  let k = `${g}__${r}`;
2000
2000
  Z4(u) || (k = `${k}__${JSON.stringify(u)}`);
2001
- let w = l.get(k);
2002
- return w || (w = new Intl.DateTimeFormat(g, B1({}, z, u)), l.set(k, w)), H ? w.formatToParts(o) : w.format(o);
2001
+ let S = l.get(k);
2002
+ return S || (S = new Intl.DateTimeFormat(g, B1({}, z, u)), l.set(k, S)), H ? S.formatToParts(o) : S.format(o);
2003
2003
  }
2004
2004
  const Ss = [
2005
2005
  "localeMatcher",
@@ -2068,32 +2068,32 @@ function Gi(e, ...c) {
2068
2068
  );
2069
2069
  if (!q(r) || r === "")
2070
2070
  return new Intl.NumberFormat(C, u).format(o);
2071
- let _ = {}, g, z = null, L = C, A = null;
2072
- const y = "number format";
2071
+ let _ = {}, g, z = null, L = C, y = null;
2072
+ const A = "number format";
2073
2073
  for (let x = 0; x < b.length; x++) {
2074
- if (g = A = b[x], process.env.NODE_ENV !== "production" && C !== g && X4(p, r) && n(K2(j1.FALLBACK_TO_NUMBER_FORMAT, {
2074
+ if (g = y = b[x], process.env.NODE_ENV !== "production" && C !== g && X4(p, r) && n(K2(j1.FALLBACK_TO_NUMBER_FORMAT, {
2075
2075
  key: r,
2076
2076
  target: g
2077
2077
  })), process.env.NODE_ENV !== "production" && C !== g) {
2078
- const F = e.__v_emitter;
2079
- F && F.emit("fallback", {
2080
- type: y,
2078
+ const B = e.__v_emitter;
2079
+ B && B.emit("fallback", {
2080
+ type: A,
2081
2081
  key: r,
2082
2082
  from: L,
2083
- to: A,
2084
- groupId: `${y}:${r}`
2083
+ to: y,
2084
+ groupId: `${A}:${r}`
2085
2085
  });
2086
2086
  }
2087
2087
  if (_ = a[g] || {}, z = _[r], t1(z))
2088
2088
  break;
2089
- Y8(e, r, g, v, y), L = A;
2089
+ Y8(e, r, g, v, A), L = y;
2090
2090
  }
2091
2091
  if (!t1(z) || !q(g))
2092
2092
  return t ? K4 : r;
2093
2093
  let k = `${g}__${r}`;
2094
2094
  Z4(u) || (k = `${k}__${JSON.stringify(u)}`);
2095
- let w = l.get(k);
2096
- return w || (w = new Intl.NumberFormat(g, B1({}, z, u)), l.set(k, w)), H ? w.formatToParts(o) : w.format(o);
2095
+ let S = l.get(k);
2096
+ return S || (S = new Intl.NumberFormat(g, B1({}, z, u)), l.set(k, S)), H ? S.formatToParts(o) : S.format(o);
2097
2097
  }
2098
2098
  const ws = [
2099
2099
  "localeMatcher",
@@ -2420,35 +2420,35 @@ function Q8(e = {}, c) {
2420
2420
  // prettier-ignore
2421
2421
  a && r ? a.fallbackLocale.value : q(e.fallbackLocale) || C1(e.fallbackLocale) || t1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o.value
2422
2422
  ), u = s(e6(o.value, e)), v = s(t1(e.datetimeFormats) ? e.datetimeFormats : { [o.value]: {} }), p = s(t1(e.numberFormats) ? e.numberFormats : { [o.value]: {} });
2423
- let H = a ? a.missingWarn : n1(e.missingWarn) || T2(e.missingWarn) ? e.missingWarn : !0, C = a ? a.fallbackWarn : n1(e.fallbackWarn) || T2(e.fallbackWarn) ? e.fallbackWarn : !0, b = a ? a.fallbackRoot : n1(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, g = V1(e.missing) ? e.missing : null, z = V1(e.missing) ? Xi(e.missing) : null, L = V1(e.postTranslation) ? e.postTranslation : null, A = a ? a.warnHtmlMessage : n1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter;
2423
+ let H = a ? a.missingWarn : n1(e.missingWarn) || T2(e.missingWarn) ? e.missingWarn : !0, C = a ? a.fallbackWarn : n1(e.fallbackWarn) || T2(e.fallbackWarn) ? e.fallbackWarn : !0, b = a ? a.fallbackRoot : n1(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, g = V1(e.missing) ? e.missing : null, z = V1(e.missing) ? Xi(e.missing) : null, L = V1(e.postTranslation) ? e.postTranslation : null, y = a ? a.warnHtmlMessage : n1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter;
2424
2424
  const k = a ? a.modifiers : t1(e.modifiers) ? e.modifiers : {};
2425
- let w = e.pluralRules || a && a.pluralRules, x;
2425
+ let S = e.pluralRules || a && a.pluralRules, x;
2426
2426
  x = (() => {
2427
2427
  i && Bi(null);
2428
- const S = {
2428
+ const w = {
2429
2429
  version: CW,
2430
2430
  locale: o.value,
2431
2431
  fallbackLocale: m.value,
2432
2432
  messages: u.value,
2433
2433
  modifiers: k,
2434
- pluralRules: w,
2434
+ pluralRules: S,
2435
2435
  missing: z === null ? void 0 : z,
2436
2436
  missingWarn: H,
2437
2437
  fallbackWarn: C,
2438
2438
  fallbackFormat: _,
2439
2439
  unresolving: !0,
2440
2440
  postTranslation: L === null ? void 0 : L,
2441
- warnHtmlMessage: A,
2442
- escapeParameter: y,
2441
+ warnHtmlMessage: y,
2442
+ escapeParameter: A,
2443
2443
  messageResolver: e.messageResolver,
2444
2444
  messageCompiler: e.messageCompiler,
2445
2445
  __meta: { framework: "vue" }
2446
2446
  };
2447
- S.datetimeFormats = v.value, S.numberFormats = p.value, S.__datetimeFormatters = t1(x) ? x.__datetimeFormatters : void 0, S.__numberFormatters = t1(x) ? x.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (S.__v_emitter = t1(x) ? x.__v_emitter : void 0);
2448
- const R = tW(S);
2447
+ w.datetimeFormats = v.value, w.numberFormats = p.value, w.__datetimeFormatters = t1(x) ? x.__datetimeFormatters : void 0, w.__numberFormatters = t1(x) ? x.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (w.__v_emitter = t1(x) ? x.__v_emitter : void 0);
2448
+ const R = tW(w);
2449
2449
  return i && Bi(R), R;
2450
2450
  })(), k3(x, o.value, m.value);
2451
- function Q() {
2451
+ function Z() {
2452
2452
  return [
2453
2453
  o.value,
2454
2454
  m.value,
@@ -2459,35 +2459,35 @@ function Q8(e = {}, c) {
2459
2459
  }
2460
2460
  const O = E({
2461
2461
  get: () => o.value,
2462
- set: (S) => {
2463
- o.value = S, x.locale = o.value;
2462
+ set: (w) => {
2463
+ o.value = w, x.locale = o.value;
2464
2464
  }
2465
2465
  }), e1 = E({
2466
2466
  get: () => m.value,
2467
- set: (S) => {
2468
- m.value = S, x.fallbackLocale = m.value, k3(x, o.value, S);
2467
+ set: (w) => {
2468
+ m.value = w, x.fallbackLocale = m.value, k3(x, o.value, w);
2469
2469
  }
2470
- }), r1 = E(() => u.value), U = /* @__PURE__ */ E(() => v.value), Z = /* @__PURE__ */ E(() => p.value);
2470
+ }), r1 = E(() => u.value), U = /* @__PURE__ */ E(() => v.value), Y = /* @__PURE__ */ E(() => p.value);
2471
2471
  function m1() {
2472
2472
  return V1(L) ? L : null;
2473
2473
  }
2474
- function P1(S) {
2475
- L = S, x.postTranslation = S;
2474
+ function P1(w) {
2475
+ L = w, x.postTranslation = w;
2476
2476
  }
2477
2477
  function q1() {
2478
2478
  return g;
2479
2479
  }
2480
- function O1(S) {
2481
- S !== null && (z = Xi(S)), g = S, x.missing = z;
2480
+ function O1(w) {
2481
+ w !== null && (z = Xi(w)), g = w, x.missing = z;
2482
2482
  }
2483
- function J1(S, R) {
2484
- return S !== "translate" || !R.resolvedMessage;
2483
+ function J1(w, R) {
2484
+ return w !== "translate" || !R.resolvedMessage;
2485
2485
  }
2486
- const I1 = (S, R, v1, y1, _2, V4) => {
2487
- Q();
2486
+ const I1 = (w, R, v1, y1, _2, V4) => {
2487
+ Z();
2488
2488
  let n3;
2489
2489
  try {
2490
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (x.fallbackContext = a ? aW() : void 0), n3 = S(x);
2490
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (x.fallbackContext = a ? aW() : void 0), n3 = w(x);
2491
2491
  } finally {
2492
2492
  process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (x.fallbackContext = void 0);
2493
2493
  }
@@ -2513,87 +2513,87 @@ function Q8(e = {}, c) {
2513
2513
  throw w1(f1.UNEXPECTED_RETURN_TYPE);
2514
2514
  }
2515
2515
  };
2516
- function a2(...S) {
2517
- return I1((R) => Reflect.apply(qi, null, [R, ...S]), () => z8(...S), "translate", (R) => Reflect.apply(R.t, R, [...S]), (R) => R, (R) => q(R));
2516
+ function a2(...w) {
2517
+ return I1((R) => Reflect.apply(qi, null, [R, ...w]), () => z8(...w), "translate", (R) => Reflect.apply(R.t, R, [...w]), (R) => R, (R) => q(R));
2518
2518
  }
2519
- function z2(...S) {
2520
- const [R, v1, y1] = S;
2519
+ function z2(...w) {
2520
+ const [R, v1, y1] = w;
2521
2521
  if (y1 && !u1(y1))
2522
2522
  throw w1(f1.INVALID_ARGUMENT);
2523
2523
  return a2(R, v1, B1({ resolvedMessage: !0 }, y1 || {}));
2524
2524
  }
2525
- function A2(...S) {
2526
- return I1((R) => Reflect.apply(Ui, null, [R, ...S]), () => V8(...S), "datetime format", (R) => Reflect.apply(R.d, R, [...S]), () => O4, (R) => q(R));
2525
+ function A2(...w) {
2526
+ return I1((R) => Reflect.apply(Ui, null, [R, ...w]), () => V8(...w), "datetime format", (R) => Reflect.apply(R.d, R, [...w]), () => O4, (R) => q(R));
2527
2527
  }
2528
- function F1(...S) {
2529
- return I1((R) => Reflect.apply(Gi, null, [R, ...S]), () => M8(...S), "number format", (R) => Reflect.apply(R.n, R, [...S]), () => O4, (R) => q(R));
2528
+ function F1(...w) {
2529
+ return I1((R) => Reflect.apply(Gi, null, [R, ...w]), () => M8(...w), "number format", (R) => Reflect.apply(R.n, R, [...w]), () => O4, (R) => q(R));
2530
2530
  }
2531
- function o2(S) {
2532
- return S.map((R) => q(R) || k1(R) || n1(R) ? Zi(String(R)) : R);
2531
+ function o2(w) {
2532
+ return w.map((R) => q(R) || k1(R) || n1(R) ? Zi(String(R)) : R);
2533
2533
  }
2534
2534
  const L3 = {
2535
2535
  normalize: o2,
2536
- interpolate: (S) => S,
2536
+ interpolate: (w) => w,
2537
2537
  type: "vnode"
2538
2538
  };
2539
- function i3(...S) {
2539
+ function i3(...w) {
2540
2540
  return I1(
2541
2541
  (R) => {
2542
2542
  let v1;
2543
2543
  const y1 = R;
2544
2544
  try {
2545
- y1.processor = L3, v1 = Reflect.apply(qi, null, [y1, ...S]);
2545
+ y1.processor = L3, v1 = Reflect.apply(qi, null, [y1, ...w]);
2546
2546
  } finally {
2547
2547
  y1.processor = null;
2548
2548
  }
2549
2549
  return v1;
2550
2550
  },
2551
- () => z8(...S),
2551
+ () => z8(...w),
2552
2552
  "translate",
2553
2553
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2554
- (R) => R[g8](...S),
2554
+ (R) => R[g8](...w),
2555
2555
  (R) => [Zi(R)],
2556
2556
  (R) => C1(R)
2557
2557
  );
2558
2558
  }
2559
- function A3(...S) {
2559
+ function A3(...w) {
2560
2560
  return I1(
2561
- (R) => Reflect.apply(Gi, null, [R, ...S]),
2562
- () => M8(...S),
2561
+ (R) => Reflect.apply(Gi, null, [R, ...w]),
2562
+ () => M8(...w),
2563
2563
  "number format",
2564
2564
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2565
- (R) => R[b8](...S),
2565
+ (R) => R[b8](...w),
2566
2566
  Qi,
2567
2567
  (R) => q(R) || C1(R)
2568
2568
  );
2569
2569
  }
2570
- function _3(...S) {
2570
+ function _3(...w) {
2571
2571
  return I1(
2572
- (R) => Reflect.apply(Ui, null, [R, ...S]),
2573
- () => V8(...S),
2572
+ (R) => Reflect.apply(Ui, null, [R, ...w]),
2573
+ () => V8(...w),
2574
2574
  "datetime format",
2575
2575
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2576
- (R) => R[C8](...S),
2576
+ (R) => R[C8](...w),
2577
2577
  Qi,
2578
2578
  (R) => q(R) || C1(R)
2579
2579
  );
2580
2580
  }
2581
- function x3(S) {
2582
- w = S, x.pluralRules = w;
2581
+ function x3(w) {
2582
+ S = w, x.pluralRules = S;
2583
2583
  }
2584
- function j(S, R) {
2584
+ function j(w, R) {
2585
2585
  return I1(() => {
2586
- if (!S)
2586
+ if (!w)
2587
2587
  return !1;
2588
- const v1 = q(R) ? R : o.value, y1 = R2(v1), _2 = x.messageResolver(y1, S);
2588
+ const v1 = q(R) ? R : o.value, y1 = R2(v1), _2 = x.messageResolver(y1, w);
2589
2589
  return l ? _2 != null : I2(_2) || K1(_2) || q(_2);
2590
- }, () => [S], "translate exists", (v1) => Reflect.apply(v1.te, v1, [S, R]), _W, (v1) => n1(v1));
2590
+ }, () => [w], "translate exists", (v1) => Reflect.apply(v1.te, v1, [w, R]), _W, (v1) => n1(v1));
2591
2591
  }
2592
- function d1(S) {
2592
+ function d1(w) {
2593
2593
  let R = null;
2594
2594
  const v1 = hs(x, m.value, o.value);
2595
2595
  for (let y1 = 0; y1 < v1.length; y1++) {
2596
- const _2 = u.value[v1[y1]] || {}, V4 = x.messageResolver(_2, S);
2596
+ const _2 = u.value[v1[y1]] || {}, V4 = x.messageResolver(_2, w);
2597
2597
  if (V4 != null) {
2598
2598
  R = V4;
2599
2599
  break;
@@ -2601,52 +2601,52 @@ function Q8(e = {}, c) {
2601
2601
  }
2602
2602
  return R;
2603
2603
  }
2604
- function N3(S) {
2605
- const R = d1(S);
2606
- return R ?? (a ? a.tm(S) || {} : {});
2604
+ function N3(w) {
2605
+ const R = d1(w);
2606
+ return R ?? (a ? a.tm(w) || {} : {});
2607
2607
  }
2608
- function R2(S) {
2609
- return u.value[S] || {};
2608
+ function R2(w) {
2609
+ return u.value[w] || {};
2610
2610
  }
2611
- function y3(S, R) {
2611
+ function y3(w, R) {
2612
2612
  if (n) {
2613
- const v1 = { [S]: R };
2613
+ const v1 = { [w]: R };
2614
2614
  for (const y1 in v1)
2615
2615
  D4(v1, y1) && R3(v1[y1]);
2616
- R = v1[S];
2616
+ R = v1[w];
2617
2617
  }
2618
- u.value[S] = R, x.messages = u.value;
2618
+ u.value[w] = R, x.messages = u.value;
2619
2619
  }
2620
- function i8(S, R) {
2621
- u.value[S] = u.value[S] || {};
2622
- const v1 = { [S]: R };
2620
+ function i8(w, R) {
2621
+ u.value[w] = u.value[w] || {};
2622
+ const v1 = { [w]: R };
2623
2623
  if (n)
2624
2624
  for (const y1 in v1)
2625
2625
  D4(v1, y1) && R3(v1[y1]);
2626
- R = v1[S], S4(R, u.value[S]), x.messages = u.value;
2626
+ R = v1[w], S4(R, u.value[w]), x.messages = u.value;
2627
2627
  }
2628
- function V(S) {
2629
- return v.value[S] || {};
2628
+ function V(w) {
2629
+ return v.value[w] || {};
2630
2630
  }
2631
- function M(S, R) {
2632
- v.value[S] = R, x.datetimeFormats = v.value, Wi(x, S, R);
2631
+ function M(w, R) {
2632
+ v.value[w] = R, x.datetimeFormats = v.value, Wi(x, w, R);
2633
2633
  }
2634
- function P(S, R) {
2635
- v.value[S] = B1(v.value[S] || {}, R), x.datetimeFormats = v.value, Wi(x, S, R);
2634
+ function P(w, R) {
2635
+ v.value[w] = B1(v.value[w] || {}, R), x.datetimeFormats = v.value, Wi(x, w, R);
2636
2636
  }
2637
- function X(S) {
2638
- return p.value[S] || {};
2637
+ function X(w) {
2638
+ return p.value[w] || {};
2639
2639
  }
2640
- function _1(S, R) {
2641
- p.value[S] = R, x.numberFormats = p.value, Ji(x, S, R);
2640
+ function _1(w, R) {
2641
+ p.value[w] = R, x.numberFormats = p.value, Ji(x, w, R);
2642
2642
  }
2643
- function M1(S, R) {
2644
- p.value[S] = B1(p.value[S] || {}, R), x.numberFormats = p.value, Ji(x, S, R);
2643
+ function M1(w, R) {
2644
+ p.value[w] = B1(p.value[w] || {}, R), x.numberFormats = p.value, Ji(x, w, R);
2645
2645
  }
2646
- Ki++, a && r2 && (l1(a.locale, (S) => {
2647
- r && (o.value = S, x.locale = S, k3(x, o.value, m.value));
2648
- }), l1(a.fallbackLocale, (S) => {
2649
- r && (m.value = S, x.fallbackLocale = S, k3(x, o.value, m.value));
2646
+ Ki++, a && r2 && (l1(a.locale, (w) => {
2647
+ r && (o.value = w, x.locale = w, k3(x, o.value, m.value));
2648
+ }), l1(a.fallbackLocale, (w) => {
2649
+ r && (m.value = w, x.fallbackLocale = w, k3(x, o.value, m.value));
2650
2650
  }));
2651
2651
  const h1 = {
2652
2652
  id: Ki,
@@ -2655,8 +2655,8 @@ function Q8(e = {}, c) {
2655
2655
  get inheritLocale() {
2656
2656
  return r;
2657
2657
  },
2658
- set inheritLocale(S) {
2659
- r = S, S && a && (o.value = a.locale.value, m.value = a.fallbackLocale.value, k3(x, o.value, m.value));
2658
+ set inheritLocale(w) {
2659
+ r = w, w && a && (o.value = a.locale.value, m.value = a.fallbackLocale.value, k3(x, o.value, m.value));
2660
2660
  },
2661
2661
  get availableLocales() {
2662
2662
  return Object.keys(u.value).sort();
@@ -2666,7 +2666,7 @@ function Q8(e = {}, c) {
2666
2666
  return k;
2667
2667
  },
2668
2668
  get pluralRules() {
2669
- return w || {};
2669
+ return S || {};
2670
2670
  },
2671
2671
  get isGlobal() {
2672
2672
  return i;
@@ -2674,38 +2674,38 @@ function Q8(e = {}, c) {
2674
2674
  get missingWarn() {
2675
2675
  return H;
2676
2676
  },
2677
- set missingWarn(S) {
2678
- H = S, x.missingWarn = H;
2677
+ set missingWarn(w) {
2678
+ H = w, x.missingWarn = H;
2679
2679
  },
2680
2680
  get fallbackWarn() {
2681
2681
  return C;
2682
2682
  },
2683
- set fallbackWarn(S) {
2684
- C = S, x.fallbackWarn = C;
2683
+ set fallbackWarn(w) {
2684
+ C = w, x.fallbackWarn = C;
2685
2685
  },
2686
2686
  get fallbackRoot() {
2687
2687
  return b;
2688
2688
  },
2689
- set fallbackRoot(S) {
2690
- b = S;
2689
+ set fallbackRoot(w) {
2690
+ b = w;
2691
2691
  },
2692
2692
  get fallbackFormat() {
2693
2693
  return _;
2694
2694
  },
2695
- set fallbackFormat(S) {
2696
- _ = S, x.fallbackFormat = _;
2695
+ set fallbackFormat(w) {
2696
+ _ = w, x.fallbackFormat = _;
2697
2697
  },
2698
2698
  get warnHtmlMessage() {
2699
- return A;
2699
+ return y;
2700
2700
  },
2701
- set warnHtmlMessage(S) {
2702
- A = S, x.warnHtmlMessage = S;
2701
+ set warnHtmlMessage(w) {
2702
+ y = w, x.warnHtmlMessage = w;
2703
2703
  },
2704
2704
  get escapeParameter() {
2705
- return y;
2705
+ return A;
2706
2706
  },
2707
- set escapeParameter(S) {
2708
- y = S, x.escapeParameter = S;
2707
+ set escapeParameter(w) {
2708
+ A = w, x.escapeParameter = w;
2709
2709
  },
2710
2710
  t: a2,
2711
2711
  getLocaleMessage: R2,
@@ -2717,8 +2717,8 @@ function Q8(e = {}, c) {
2717
2717
  setMissingHandler: O1,
2718
2718
  [Ds]: x3
2719
2719
  };
2720
- return h1.datetimeFormats = U, h1.numberFormats = Z, h1.rt = z2, h1.te = j, h1.tm = N3, h1.d = A2, h1.n = F1, h1.getDateTimeFormat = V, h1.setDateTimeFormat = M, h1.mergeDateTimeFormat = P, h1.getNumberFormat = X, h1.setNumberFormat = _1, h1.mergeNumberFormat = M1, h1[Ps] = t, h1[g8] = i3, h1[C8] = _3, h1[b8] = A3, process.env.NODE_ENV !== "production" && (h1[X2] = (S) => {
2721
- x.__v_emitter = S;
2720
+ return h1.datetimeFormats = U, h1.numberFormats = Y, h1.rt = z2, h1.te = j, h1.tm = N3, h1.d = A2, h1.n = F1, h1.getDateTimeFormat = V, h1.setDateTimeFormat = M, h1.mergeDateTimeFormat = P, h1.getNumberFormat = X, h1.setNumberFormat = _1, h1.mergeNumberFormat = M1, h1[Ps] = t, h1[g8] = i3, h1[C8] = _3, h1[b8] = A3, process.env.NODE_ENV !== "production" && (h1[X2] = (w) => {
2721
+ x.__v_emitter = w;
2722
2722
  }, h1[F3] = () => {
2723
2723
  x.__v_emitter = void 0;
2724
2724
  }), h1;
@@ -2728,13 +2728,13 @@ function NW(e) {
2728
2728
  process.env.NODE_ENV !== "production" && e.formatter && S1(U1(x1.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && S1(U1(x1.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
2729
2729
  let H = e.messages;
2730
2730
  if (t1(e.sharedMessages)) {
2731
- const y = e.sharedMessages;
2732
- H = Object.keys(y).reduce((w, x) => {
2733
- const F = w[x] || (w[x] = {});
2734
- return B1(F, y[x]), w;
2731
+ const A = e.sharedMessages;
2732
+ H = Object.keys(A).reduce((S, x) => {
2733
+ const B = S[x] || (S[x] = {});
2734
+ return B1(B, A[x]), S;
2735
2735
  }, H || {});
2736
2736
  }
2737
- const { __i18n: C, __root: b, __injectWithOption: _ } = e, g = e.datetimeFormats, z = e.numberFormats, L = e.flatJson, A = e.translateExistCompatible;
2737
+ const { __i18n: C, __root: b, __injectWithOption: _ } = e, g = e.datetimeFormats, z = e.numberFormats, L = e.flatJson, y = e.translateExistCompatible;
2738
2738
  return {
2739
2739
  locale: c,
2740
2740
  fallbackLocale: a,
@@ -2754,7 +2754,7 @@ function NW(e) {
2754
2754
  escapeParameter: v,
2755
2755
  messageResolver: e.messageResolver,
2756
2756
  inheritLocale: p,
2757
- translateExistCompatible: A,
2757
+ translateExistCompatible: y,
2758
2758
  __i18n: C,
2759
2759
  __root: b,
2760
2760
  __injectWithOption: _
@@ -3664,8 +3664,8 @@ function sG(e, c, a, t = {}) {
3664
3664
  ), r = i1(
3665
3665
  // prettier-ignore
3666
3666
  !i || s ? a.fallbackLocale.value : q(t.fallbackLocale) || C1(t.fallbackLocale) || t1(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : l.value
3667
- ), o = i1(e6(l.value, t)), m = i1(t1(t.datetimeFormats) ? t.datetimeFormats : { [l.value]: {} }), u = i1(t1(t.numberFormats) ? t.numberFormats : { [l.value]: {} }), v = i ? a.missingWarn : n1(t.missingWarn) || T2(t.missingWarn) ? t.missingWarn : !0, p = i ? a.fallbackWarn : n1(t.fallbackWarn) || T2(t.fallbackWarn) ? t.fallbackWarn : !0, H = i ? a.fallbackRoot : n1(t.fallbackRoot) ? t.fallbackRoot : !0, C = !!t.fallbackFormat, b = V1(t.missing) ? t.missing : null, _ = V1(t.postTranslation) ? t.postTranslation : null, g = i ? a.warnHtmlMessage : n1(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, z = !!t.escapeParameter, L = i ? a.modifiers : t1(t.modifiers) ? t.modifiers : {}, A = t.pluralRules || i && a.pluralRules;
3668
- function y() {
3667
+ ), o = i1(e6(l.value, t)), m = i1(t1(t.datetimeFormats) ? t.datetimeFormats : { [l.value]: {} }), u = i1(t1(t.numberFormats) ? t.numberFormats : { [l.value]: {} }), v = i ? a.missingWarn : n1(t.missingWarn) || T2(t.missingWarn) ? t.missingWarn : !0, p = i ? a.fallbackWarn : n1(t.fallbackWarn) || T2(t.fallbackWarn) ? t.fallbackWarn : !0, H = i ? a.fallbackRoot : n1(t.fallbackRoot) ? t.fallbackRoot : !0, C = !!t.fallbackFormat, b = V1(t.missing) ? t.missing : null, _ = V1(t.postTranslation) ? t.postTranslation : null, g = i ? a.warnHtmlMessage : n1(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, z = !!t.escapeParameter, L = i ? a.modifiers : t1(t.modifiers) ? t.modifiers : {}, y = t.pluralRules || i && a.pluralRules;
3668
+ function A() {
3669
3669
  return [
3670
3670
  l.value,
3671
3671
  r.value,
@@ -3679,12 +3679,12 @@ function sG(e, c, a, t = {}) {
3679
3679
  set: (j) => {
3680
3680
  n.value && (n.value.locale.value = j), l.value = j;
3681
3681
  }
3682
- }), w = E({
3682
+ }), S = E({
3683
3683
  get: () => n.value ? n.value.fallbackLocale.value : r.value,
3684
3684
  set: (j) => {
3685
3685
  n.value && (n.value.fallbackLocale.value = j), r.value = j;
3686
3686
  }
3687
- }), x = E(() => n.value ? n.value.messages.value : o.value), F = E(() => m.value), Q = E(() => u.value);
3687
+ }), x = E(() => n.value ? n.value.messages.value : o.value), B = E(() => m.value), Z = E(() => u.value);
3688
3688
  function O() {
3689
3689
  return n.value ? n.value.getPostTranslationHandler() : _;
3690
3690
  }
@@ -3697,20 +3697,20 @@ function sG(e, c, a, t = {}) {
3697
3697
  function U(j) {
3698
3698
  n.value && n.value.setMissingHandler(j);
3699
3699
  }
3700
- function Z(j) {
3701
- return y(), j();
3700
+ function Y(j) {
3701
+ return A(), j();
3702
3702
  }
3703
3703
  function m1(...j) {
3704
- return n.value ? Z(() => Reflect.apply(n.value.t, null, [...j])) : Z(() => "");
3704
+ return n.value ? Y(() => Reflect.apply(n.value.t, null, [...j])) : Y(() => "");
3705
3705
  }
3706
3706
  function P1(...j) {
3707
3707
  return n.value ? Reflect.apply(n.value.rt, null, [...j]) : "";
3708
3708
  }
3709
3709
  function q1(...j) {
3710
- return n.value ? Z(() => Reflect.apply(n.value.d, null, [...j])) : Z(() => "");
3710
+ return n.value ? Y(() => Reflect.apply(n.value.d, null, [...j])) : Y(() => "");
3711
3711
  }
3712
3712
  function O1(...j) {
3713
- return n.value ? Z(() => Reflect.apply(n.value.n, null, [...j])) : Z(() => "");
3713
+ return n.value ? Y(() => Reflect.apply(n.value.n, null, [...j])) : Y(() => "");
3714
3714
  }
3715
3715
  function J1(j) {
3716
3716
  return n.value ? n.value.tm(j) : {};
@@ -3750,10 +3750,10 @@ function sG(e, c, a, t = {}) {
3750
3750
  return n.value ? n.value.id : -1;
3751
3751
  },
3752
3752
  locale: k,
3753
- fallbackLocale: w,
3753
+ fallbackLocale: S,
3754
3754
  messages: x,
3755
- datetimeFormats: F,
3756
- numberFormats: Q,
3755
+ datetimeFormats: B,
3756
+ numberFormats: Z,
3757
3757
  get inheritLocale() {
3758
3758
  return n.value ? n.value.inheritLocale : s;
3759
3759
  },
@@ -3767,7 +3767,7 @@ function sG(e, c, a, t = {}) {
3767
3767
  return n.value ? n.value.modifiers : L;
3768
3768
  },
3769
3769
  get pluralRules() {
3770
- return n.value ? n.value.pluralRules : A;
3770
+ return n.value ? n.value.pluralRules : y;
3771
3771
  },
3772
3772
  get isGlobal() {
3773
3773
  return n.value ? n.value.isGlobal : !1;
@@ -18530,7 +18530,7 @@ const OG = async (e, c, a) => {
18530
18530
  x: g,
18531
18531
  y: z,
18532
18532
  data: L,
18533
- reset: A
18533
+ reset: y
18534
18534
  } = await _({
18535
18535
  x: m,
18536
18536
  y: u,
@@ -18551,11 +18551,11 @@ const OG = async (e, c, a) => {
18551
18551
  ...p[b],
18552
18552
  ...L
18553
18553
  }
18554
- }, A && H <= 50 && (H++, typeof A == "object" && (A.placement && (v = A.placement), A.rects && (o = A.rects === !0 ? await s.getElementRects({
18554
+ }, y && H <= 50 && (H++, typeof y == "object" && (y.placement && (v = y.placement), y.rects && (o = y.rects === !0 ? await s.getElementRects({
18555
18555
  reference: e,
18556
18556
  floating: c,
18557
18557
  strategy: i
18558
- }) : A.rects), {
18558
+ }) : y.rects), {
18559
18559
  x: m,
18560
18560
  y: u
18561
18561
  } = un(o, v, r)), C = -1);
@@ -18600,17 +18600,17 @@ async function J6(e, c) {
18600
18600
  } : {
18601
18601
  x: 1,
18602
18602
  y: 1
18603
- }, A = w3(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
18603
+ }, y = w3(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
18604
18604
  elements: l,
18605
18605
  rect: g,
18606
18606
  offsetParent: z,
18607
18607
  strategy: r
18608
18608
  }) : g);
18609
18609
  return {
18610
- top: (_.top - A.top + H.top) / L.y,
18611
- bottom: (A.bottom - _.bottom + H.bottom) / L.y,
18612
- left: (_.left - A.left + H.left) / L.x,
18613
- right: (A.right - _.right + H.right) / L.x
18610
+ top: (_.top - y.top + H.top) / L.y,
18611
+ bottom: (y.bottom - _.bottom + H.bottom) / L.y,
18612
+ left: (_.left - y.left + H.left) / L.x,
18613
+ right: (y.right - _.right + H.right) / L.x
18614
18614
  };
18615
18615
  }
18616
18616
  const BG = (e) => ({
@@ -18634,20 +18634,20 @@ const BG = (e) => ({
18634
18634
  const u = Cq(m), v = {
18635
18635
  x: a,
18636
18636
  y: t
18637
- }, p = si(i), H = ni(p), C = await s.getDimensions(o), b = p === "y", _ = b ? "top" : "left", g = b ? "bottom" : "right", z = b ? "clientHeight" : "clientWidth", L = n.reference[H] + n.reference[p] - v[p] - n.floating[H], A = v[p] - n.reference[p], y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(o));
18638
- let k = y ? y[z] : 0;
18639
- (!k || !await (s.isElement == null ? void 0 : s.isElement(y))) && (k = l.floating[z] || n.floating[H]);
18640
- const w = L / 2 - A / 2, x = k / 2 - C[H] / 2 - 1, F = G2(u[_], x), Q = G2(u[g], x), O = F, e1 = k - C[H] - Q, r1 = k / 2 - C[H] / 2 + w, U = x8(O, r1, e1), Z = !r.arrow && s2(i) != null && r1 !== U && n.reference[H] / 2 - (r1 < O ? F : Q) - C[H] / 2 < 0, m1 = Z ? r1 < O ? r1 - O : r1 - e1 : 0;
18637
+ }, p = si(i), H = ni(p), C = await s.getDimensions(o), b = p === "y", _ = b ? "top" : "left", g = b ? "bottom" : "right", z = b ? "clientHeight" : "clientWidth", L = n.reference[H] + n.reference[p] - v[p] - n.floating[H], y = v[p] - n.reference[p], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(o));
18638
+ let k = A ? A[z] : 0;
18639
+ (!k || !await (s.isElement == null ? void 0 : s.isElement(A))) && (k = l.floating[z] || n.floating[H]);
18640
+ const S = L / 2 - y / 2, x = k / 2 - C[H] / 2 - 1, B = G2(u[_], x), Z = G2(u[g], x), O = B, e1 = k - C[H] - Z, r1 = k / 2 - C[H] / 2 + S, U = x8(O, r1, e1), Y = !r.arrow && s2(i) != null && r1 !== U && n.reference[H] / 2 - (r1 < O ? B : Z) - C[H] / 2 < 0, m1 = Y ? r1 < O ? r1 - O : r1 - e1 : 0;
18641
18641
  return {
18642
18642
  [p]: v[p] + m1,
18643
18643
  data: {
18644
18644
  [p]: U,
18645
18645
  centerOffset: r1 - U - m1,
18646
- ...Z && {
18646
+ ...Y && {
18647
18647
  alignmentOffset: m1
18648
18648
  }
18649
18649
  },
18650
- reset: Z
18650
+ reset: Y
18651
18651
  };
18652
18652
  }
18653
18653
  });
@@ -18682,39 +18682,39 @@ const RG = function(e) {
18682
18682
  placement: C[0]
18683
18683
  }
18684
18684
  };
18685
- const L = [b[p2(g)], b[z[0]], b[z[1]]], A = [...((t = s.autoPlacement) == null ? void 0 : t.overflows) || [], {
18685
+ const L = [b[p2(g)], b[z[0]], b[z[1]]], y = [...((t = s.autoPlacement) == null ? void 0 : t.overflows) || [], {
18686
18686
  placement: g,
18687
18687
  overflows: L
18688
- }], y = C[_ + 1];
18689
- if (y)
18688
+ }], A = C[_ + 1];
18689
+ if (A)
18690
18690
  return {
18691
18691
  data: {
18692
18692
  index: _ + 1,
18693
- overflows: A
18693
+ overflows: y
18694
18694
  },
18695
18695
  reset: {
18696
- placement: y
18696
+ placement: A
18697
18697
  }
18698
18698
  };
18699
- const k = A.map((F) => {
18700
- const Q = s2(F.placement);
18701
- return [F.placement, Q && m ? (
18699
+ const k = y.map((B) => {
18700
+ const Z = s2(B.placement);
18701
+ return [B.placement, Z && m ? (
18702
18702
  // Check along the mainAxis and main crossAxis side.
18703
- F.overflows.slice(0, 2).reduce((O, e1) => O + e1, 0)
18703
+ B.overflows.slice(0, 2).reduce((O, e1) => O + e1, 0)
18704
18704
  ) : (
18705
18705
  // Check only the mainAxis.
18706
- F.overflows[0]
18707
- ), F.overflows];
18708
- }).sort((F, Q) => F[1] - Q[1]), x = ((i = k.filter((F) => F[2].slice(
18706
+ B.overflows[0]
18707
+ ), B.overflows];
18708
+ }).sort((B, Z) => B[1] - Z[1]), x = ((i = k.filter((B) => B[2].slice(
18709
18709
  0,
18710
18710
  // Aligned placements should not check their opposite crossAxis
18711
18711
  // side.
18712
- s2(F[0]) ? 2 : 3
18713
- ).every((Q) => Q <= 0))[0]) == null ? void 0 : i[0]) || k[0][0];
18712
+ s2(B[0]) ? 2 : 3
18713
+ ).every((Z) => Z <= 0))[0]) == null ? void 0 : i[0]) || k[0][0];
18714
18714
  return x !== l ? {
18715
18715
  data: {
18716
18716
  index: _ + 1,
18717
- overflows: A
18717
+ overflows: y
18718
18718
  },
18719
18719
  reset: {
18720
18720
  placement: x
@@ -18748,34 +18748,34 @@ const RG = function(e) {
18748
18748
  return {};
18749
18749
  const _ = p2(i), g = p2(l) === l, z = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), L = v || (g || !C ? [F4(l)] : IG(l));
18750
18750
  !v && H !== "none" && L.push(...DG(l, C, H, z));
18751
- const A = [l, ...L], y = await J6(c, b), k = [];
18752
- let w = ((t = n.flip) == null ? void 0 : t.overflows) || [];
18753
- if (m && k.push(y[_]), u) {
18751
+ const y = [l, ...L], A = await J6(c, b), k = [];
18752
+ let S = ((t = n.flip) == null ? void 0 : t.overflows) || [];
18753
+ if (m && k.push(A[_]), u) {
18754
18754
  const O = gq(i, s, z);
18755
- k.push(y[O[0]], y[O[1]]);
18755
+ k.push(A[O[0]], A[O[1]]);
18756
18756
  }
18757
- if (w = [...w, {
18757
+ if (S = [...S, {
18758
18758
  placement: i,
18759
18759
  overflows: k
18760
18760
  }], !k.every((O) => O <= 0)) {
18761
- var x, F;
18762
- const O = (((x = n.flip) == null ? void 0 : x.index) || 0) + 1, e1 = A[O];
18761
+ var x, B;
18762
+ const O = (((x = n.flip) == null ? void 0 : x.index) || 0) + 1, e1 = y[O];
18763
18763
  if (e1)
18764
18764
  return {
18765
18765
  data: {
18766
18766
  index: O,
18767
- overflows: w
18767
+ overflows: S
18768
18768
  },
18769
18769
  reset: {
18770
18770
  placement: e1
18771
18771
  }
18772
18772
  };
18773
- let r1 = (F = w.filter((U) => U.overflows[0] <= 0).sort((U, Z) => U.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : F.placement;
18773
+ let r1 = (B = S.filter((U) => U.overflows[0] <= 0).sort((U, Y) => U.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : B.placement;
18774
18774
  if (!r1)
18775
18775
  switch (p) {
18776
18776
  case "bestFit": {
18777
- var Q;
18778
- const U = (Q = w.map((Z) => [Z.placement, Z.overflows.filter((m1) => m1 > 0).reduce((m1, P1) => m1 + P1, 0)]).sort((Z, m1) => Z[1] - m1[1])[0]) == null ? void 0 : Q[0];
18777
+ var Z;
18778
+ const U = (Z = S.map((Y) => [Y.placement, Y.overflows.filter((m1) => m1 > 0).reduce((m1, P1) => m1 + P1, 0)]).sort((Y, m1) => Y[1] - m1[1])[0]) == null ? void 0 : Z[0];
18779
18779
  U && (r1 = U);
18780
18780
  break;
18781
18781
  }
@@ -18917,15 +18917,15 @@ const $G = function(e) {
18917
18917
  let H, C;
18918
18918
  o === "top" || o === "bottom" ? (H = o, C = m === (await (i.isRTL == null ? void 0 : i.isRTL(n.floating)) ? "start" : "end") ? "left" : "right") : (C = o, H = m === "end" ? "top" : "bottom");
18919
18919
  const b = p - r.top - r.bottom, _ = v - r.left - r.right, g = G2(p - r[H], b), z = G2(v - r[C], _), L = !c.middlewareData.shift;
18920
- let A = g, y = z;
18921
- if (u ? y = m || L ? G2(z, _) : _ : A = m || L ? G2(g, b) : b, L && !m) {
18922
- const w = W2(r.left, 0), x = W2(r.right, 0), F = W2(r.top, 0), Q = W2(r.bottom, 0);
18923
- u ? y = v - 2 * (w !== 0 || x !== 0 ? w + x : W2(r.left, r.right)) : A = p - 2 * (F !== 0 || Q !== 0 ? F + Q : W2(r.top, r.bottom));
18920
+ let y = g, A = z;
18921
+ if (u ? A = m || L ? G2(z, _) : _ : y = m || L ? G2(g, b) : b, L && !m) {
18922
+ const S = W2(r.left, 0), x = W2(r.right, 0), B = W2(r.top, 0), Z = W2(r.bottom, 0);
18923
+ u ? A = v - 2 * (S !== 0 || x !== 0 ? S + x : W2(r.left, r.right)) : y = p - 2 * (B !== 0 || Z !== 0 ? B + Z : W2(r.top, r.bottom));
18924
18924
  }
18925
18925
  await s({
18926
18926
  ...c,
18927
- availableWidth: y,
18928
- availableHeight: A
18927
+ availableWidth: A,
18928
+ availableHeight: y
18929
18929
  });
18930
18930
  const k = await i.getDimensions(n.floating);
18931
18931
  return v !== k.width || p !== k.height ? {
@@ -20945,13 +20945,13 @@ var c$ = {
20945
20945
  D3.familyPrefix && (D3.cssPrefix = D3.familyPrefix);
20946
20946
  var h3 = W(W({}, c$), D3);
20947
20947
  h3.autoReplaceSvg || (h3.observeMutations = !1);
20948
- var Y = {};
20948
+ var Q = {};
20949
20949
  Object.keys(c$).forEach(function(e) {
20950
- Object.defineProperty(Y, e, {
20950
+ Object.defineProperty(Q, e, {
20951
20951
  enumerable: !0,
20952
20952
  set: function(a) {
20953
20953
  h3[e] = a, P3.forEach(function(t) {
20954
- return t(Y);
20954
+ return t(Q);
20955
20955
  });
20956
20956
  },
20957
20957
  get: function() {
@@ -20959,18 +20959,18 @@ Object.keys(c$).forEach(function(e) {
20959
20959
  }
20960
20960
  });
20961
20961
  });
20962
- Object.defineProperty(Y, "familyPrefix", {
20962
+ Object.defineProperty(Q, "familyPrefix", {
20963
20963
  enumerable: !0,
20964
20964
  set: function(c) {
20965
20965
  h3.cssPrefix = c, P3.forEach(function(a) {
20966
- return a(Y);
20966
+ return a(Q);
20967
20967
  });
20968
20968
  },
20969
20969
  get: function() {
20970
20970
  return h3.cssPrefix;
20971
20971
  }
20972
20972
  });
20973
- D2.FontAwesomeConfig = Y;
20973
+ D2.FontAwesomeConfig = Q;
20974
20974
  var P3 = [];
20975
20975
  function eZ(e) {
20976
20976
  return P3.push(e), function() {
@@ -21804,7 +21804,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
21804
21804
  color: var(--fa-inverse, #fff);
21805
21805
  }`;
21806
21806
  function t$() {
21807
- var e = Yq, c = Qq, a = Y.cssPrefix, t = Y.replacementClass, i = sZ;
21807
+ var e = Yq, c = Qq, a = Q.cssPrefix, t = Q.replacementClass, i = sZ;
21808
21808
  if (a !== e || t !== c) {
21809
21809
  var n = new RegExp("\\.".concat(e, "\\-"), "g"), s = new RegExp("\\--".concat(e, "\\-"), "g"), l = new RegExp("\\.".concat(c), "g");
21810
21810
  i = i.replace(n, ".".concat(a, "-")).replace(s, "--".concat(a, "-")).replace(l, ".".concat(t));
@@ -21813,7 +21813,7 @@ function t$() {
21813
21813
  }
21814
21814
  var Dn = !1;
21815
21815
  function m8() {
21816
- Y.autoAddCss && !Dn && (cZ(t$()), Dn = !0);
21816
+ Q.autoAddCss && !Dn && (cZ(t$()), Dn = !0);
21817
21817
  }
21818
21818
  var lZ = {
21819
21819
  mixout: function() {
@@ -21939,7 +21939,7 @@ var f$ = function() {
21939
21939
  i[r] = s;
21940
21940
  }), i;
21941
21941
  });
21942
- var a = "far" in o3 || Y.autoFetchSvg, t = d8(dZ, function(i, n) {
21942
+ var a = "far" in o3 || Q.autoFetchSvg, t = d8(dZ, function(i, n) {
21943
21943
  var s = n[0], l = n[1], r = n[2];
21944
21944
  return l === "far" && !a && (l = "fas"), typeof s == "string" && (i.names[s] = {
21945
21945
  prefix: l,
@@ -21952,13 +21952,13 @@ var f$ = function() {
21952
21952
  names: {},
21953
21953
  unicodes: {}
21954
21954
  });
21955
- l$ = t.names, r$ = t.unicodes, hi = e8(Y.styleDefault, {
21956
- family: Y.familyDefault
21955
+ l$ = t.names, r$ = t.unicodes, hi = e8(Q.styleDefault, {
21956
+ family: Q.familyDefault
21957
21957
  });
21958
21958
  };
21959
21959
  eZ(function(e) {
21960
21960
  hi = e8(e.styleDefault, {
21961
- family: Y.familyDefault
21961
+ family: Q.familyDefault
21962
21962
  });
21963
21963
  });
21964
21964
  f$();
@@ -22003,23 +22003,23 @@ function e8(e) {
22003
22003
  }
22004
22004
  var Bn = (k4 = {}, T1(k4, b1, Object.keys(Z3[b1])), T1(k4, N1, Object.keys(Z3[N1])), k4);
22005
22005
  function c8(e) {
22006
- var c, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.skipLookups, i = t === void 0 ? !1 : t, n = (c = {}, T1(c, b1, "".concat(Y.cssPrefix, "-").concat(b1)), T1(c, N1, "".concat(Y.cssPrefix, "-").concat(N1)), c), s = null, l = b1;
22006
+ var c, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.skipLookups, i = t === void 0 ? !1 : t, n = (c = {}, T1(c, b1, "".concat(Q.cssPrefix, "-").concat(b1)), T1(c, N1, "".concat(Q.cssPrefix, "-").concat(N1)), c), s = null, l = b1;
22007
22007
  (e.includes(n[b1]) || e.some(function(o) {
22008
22008
  return Bn[b1].includes(o);
22009
22009
  })) && (l = b1), (e.includes(n[N1]) || e.some(function(o) {
22010
22010
  return Bn[N1].includes(o);
22011
22011
  })) && (l = N1);
22012
22012
  var r = e.reduce(function(o, m) {
22013
- var u = zZ(Y.cssPrefix, m);
22013
+ var u = zZ(Q.cssPrefix, m);
22014
22014
  if (o3[m] ? (m = vZ[l].includes(m) ? $J[l][m] : m, s = m, o.prefix = m) : pZ[l].indexOf(m) > -1 ? (s = m, o.prefix = e8(m, {
22015
22015
  family: l
22016
- })) : u ? o.iconName = u : m !== Y.replacementClass && m !== n[b1] && m !== n[N1] && o.rest.push(m), !i && o.prefix && o.iconName) {
22016
+ })) : u ? o.iconName = u : m !== Q.replacementClass && m !== n[b1] && m !== n[N1] && o.rest.push(m), !i && o.prefix && o.iconName) {
22017
22017
  var v = s === "fa" ? u$(o.iconName) : {}, p = Z2(o.prefix, o.iconName);
22018
- v.prefix && (s = null), o.iconName = v.iconName || p || o.iconName, o.prefix = v.prefix || o.prefix, o.prefix === "far" && !o3.far && o3.fas && !Y.autoFetchSvg && (o.prefix = "fas");
22018
+ v.prefix && (s = null), o.iconName = v.iconName || p || o.iconName, o.prefix = v.prefix || o.prefix, o.prefix === "far" && !o3.far && o3.fas && !Q.autoFetchSvg && (o.prefix = "fas");
22019
22019
  }
22020
22020
  return o;
22021
22021
  }, Vi());
22022
- return (e.includes("fa-brands") || e.includes("fab")) && (r.prefix = "fab"), (e.includes("fa-duotone") || e.includes("fad")) && (r.prefix = "fad"), !r.prefix && l === N1 && (o3.fass || Y.autoFetchSvg) && (r.prefix = "fass", r.iconName = Z2(r.prefix, r.iconName) || r.iconName), (r.prefix === "fa" || s === "fa") && (r.prefix = P2() || "fas"), r;
22022
+ return (e.includes("fa-brands") || e.includes("fab")) && (r.prefix = "fab"), (e.includes("fa-duotone") || e.includes("fad")) && (r.prefix = "fad"), !r.prefix && l === N1 && (o3.fass || Q.autoFetchSvg) && (r.prefix = "fass", r.iconName = Z2(r.prefix, r.iconName) || r.iconName), (r.prefix === "fa" || s === "fa") && (r.prefix = P2() || "fas"), r;
22023
22023
  }
22024
22024
  var HZ = /* @__PURE__ */ function() {
22025
22025
  function e() {
@@ -22103,7 +22103,7 @@ function O8(e) {
22103
22103
  return c = Z2(a, c) || c, Pn(m$.definitions, a, c) || Pn(n2.styles, a, c);
22104
22104
  }
22105
22105
  var m$ = new HZ(), bZ = function() {
22106
- Y.autoReplaceSvg = !1, Y.observeMutations = !1, c3("noAuto");
22106
+ Q.autoReplaceSvg = !1, Q.observeMutations = !1, c3("noAuto");
22107
22107
  }, LZ = {
22108
22108
  i2svg: function() {
22109
22109
  var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -22111,7 +22111,7 @@ var m$ = new HZ(), bZ = function() {
22111
22111
  },
22112
22112
  watch: function() {
22113
22113
  var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = c.autoReplaceSvgRoot;
22114
- Y.autoReplaceSvg === !1 && (Y.autoReplaceSvg = !0), Y.observeMutations = !0, oZ(function() {
22114
+ Q.autoReplaceSvg === !1 && (Q.autoReplaceSvg = !0), Q.observeMutations = !0, oZ(function() {
22115
22115
  _Z({
22116
22116
  autoReplaceSvgRoot: a
22117
22117
  }), c3("watch", c);
@@ -22133,7 +22133,7 @@ var m$ = new HZ(), bZ = function() {
22133
22133
  iconName: Z2(t, a) || a
22134
22134
  };
22135
22135
  }
22136
- if (typeof c == "string" && (c.indexOf("".concat(Y.cssPrefix, "-")) > -1 || c.match(UJ))) {
22136
+ if (typeof c == "string" && (c.indexOf("".concat(Q.cssPrefix, "-")) > -1 || c.match(UJ))) {
22137
22137
  var i = c8(c.split(" "), {
22138
22138
  skipLookups: !0
22139
22139
  });
@@ -22152,7 +22152,7 @@ var m$ = new HZ(), bZ = function() {
22152
22152
  }
22153
22153
  }, Q1 = {
22154
22154
  noAuto: bZ,
22155
- config: Y,
22155
+ config: Q,
22156
22156
  dom: LZ,
22157
22157
  parse: AZ,
22158
22158
  library: m$,
@@ -22160,7 +22160,7 @@ var m$ = new HZ(), bZ = function() {
22160
22160
  toHtml: z4
22161
22161
  }, _Z = function() {
22162
22162
  var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = c.autoReplaceSvgRoot, t = a === void 0 ? L1 : a;
22163
- (Object.keys(n2.styles).length > 0 || Y.autoFetchSvg) && L2 && Y.autoReplaceSvg && Q1.dom.i2svg({
22163
+ (Object.keys(n2.styles).length > 0 || Q.autoFetchSvg) && L2 && Q.autoReplaceSvg && Q1.dom.i2svg({
22164
22164
  node: t
22165
22165
  });
22166
22166
  };
@@ -22200,7 +22200,7 @@ function xZ(e) {
22200
22200
  }];
22201
22201
  }
22202
22202
  function NZ(e) {
22203
- var c = e.prefix, a = e.iconName, t = e.children, i = e.attributes, n = e.symbol, s = n === !0 ? "".concat(c, "-").concat(Y.cssPrefix, "-").concat(a) : n;
22203
+ var c = e.prefix, a = e.iconName, t = e.children, i = e.attributes, n = e.symbol, s = n === !0 ? "".concat(c, "-").concat(Q.cssPrefix, "-").concat(a) : n;
22204
22204
  return [{
22205
22205
  tag: "svg",
22206
22206
  attributes: {
@@ -22216,7 +22216,7 @@ function NZ(e) {
22216
22216
  }];
22217
22217
  }
22218
22218
  function Mi(e) {
22219
- var c = e.icons, a = c.main, t = c.mask, i = e.prefix, n = e.iconName, s = e.transform, l = e.symbol, r = e.title, o = e.maskId, m = e.titleId, u = e.extra, v = e.watchable, p = v === void 0 ? !1 : v, H = t.found ? t : a, C = H.width, b = H.height, _ = i === "fak", g = [Y.replacementClass, n ? "".concat(Y.cssPrefix, "-").concat(n) : ""].filter(function(x) {
22219
+ var c = e.icons, a = c.main, t = c.mask, i = e.prefix, n = e.iconName, s = e.transform, l = e.symbol, r = e.title, o = e.maskId, m = e.titleId, u = e.extra, v = e.watchable, p = v === void 0 ? !1 : v, H = t.found ? t : a, C = H.width, b = H.height, _ = i === "fak", g = [Q.replacementClass, n ? "".concat(Q.cssPrefix, "-").concat(n) : ""].filter(function(x) {
22220
22220
  return u.classes.indexOf(x) === -1;
22221
22221
  }).filter(function(x) {
22222
22222
  return x !== "" || !!x;
@@ -22240,7 +22240,7 @@ function Mi(e) {
22240
22240
  },
22241
22241
  children: [r]
22242
22242
  }), delete z.attributes.title);
22243
- var A = W(W({}, z), {}, {
22243
+ var y = W(W({}, z), {}, {
22244
22244
  prefix: i,
22245
22245
  iconName: n,
22246
22246
  main: a,
@@ -22249,14 +22249,14 @@ function Mi(e) {
22249
22249
  transform: s,
22250
22250
  symbol: l,
22251
22251
  styles: W(W({}, L), u.styles)
22252
- }), y = t.found && a.found ? b2("generateAbstractMask", A) || {
22252
+ }), A = t.found && a.found ? b2("generateAbstractMask", y) || {
22253
22253
  children: [],
22254
22254
  attributes: {}
22255
- } : b2("generateAbstractIcon", A) || {
22255
+ } : b2("generateAbstractIcon", y) || {
22256
22256
  children: [],
22257
22257
  attributes: {}
22258
- }, k = y.children, w = y.attributes;
22259
- return A.children = k, A.attributes = w, l ? NZ(A) : xZ(A);
22258
+ }, k = A.children, S = A.attributes;
22259
+ return y.children = k, y.attributes = S, l ? NZ(y) : xZ(y);
22260
22260
  }
22261
22261
  function Rn(e) {
22262
22262
  var c = e.content, a = e.width, t = e.height, i = e.transform, n = e.title, s = e.extra, l = e.watchable, r = l === void 0 ? !1 : l, o = W(W(W({}, s.attributes), n ? {
@@ -22313,19 +22313,19 @@ function B8(e) {
22313
22313
  return Array.isArray(n) ? s = {
22314
22314
  tag: "g",
22315
22315
  attributes: {
22316
- class: "".concat(Y.cssPrefix, "-").concat(J2.GROUP)
22316
+ class: "".concat(Q.cssPrefix, "-").concat(J2.GROUP)
22317
22317
  },
22318
22318
  children: [{
22319
22319
  tag: "path",
22320
22320
  attributes: {
22321
- class: "".concat(Y.cssPrefix, "-").concat(J2.SECONDARY),
22321
+ class: "".concat(Q.cssPrefix, "-").concat(J2.SECONDARY),
22322
22322
  fill: "currentColor",
22323
22323
  d: n[0]
22324
22324
  }
22325
22325
  }, {
22326
22326
  tag: "path",
22327
22327
  attributes: {
22328
- class: "".concat(Y.cssPrefix, "-").concat(J2.PRIMARY),
22328
+ class: "".concat(Q.cssPrefix, "-").concat(J2.PRIMARY),
22329
22329
  fill: "currentColor",
22330
22330
  d: n[1]
22331
22331
  }
@@ -22349,11 +22349,11 @@ var kZ = {
22349
22349
  height: 512
22350
22350
  };
22351
22351
  function SZ(e, c) {
22352
- !Kq && !Y.showMissingIcons && e && console.error('Icon with name "'.concat(e, '" and prefix "').concat(c, '" is missing.'));
22352
+ !Kq && !Q.showMissingIcons && e && console.error('Icon with name "'.concat(e, '" and prefix "').concat(c, '" is missing.'));
22353
22353
  }
22354
22354
  function F8(e, c) {
22355
22355
  var a = c;
22356
- return c === "fa" && Y.styleDefault !== null && (c = P2()), new Promise(function(t, i) {
22356
+ return c === "fa" && Q.styleDefault !== null && (c = P2()), new Promise(function(t, i) {
22357
22357
  if (b2("missingIconAbstract"), a === "fa") {
22358
22358
  var n = u$(e) || {};
22359
22359
  e = n.iconName || e, c = n.prefix || c;
@@ -22363,12 +22363,12 @@ function F8(e, c) {
22363
22363
  return t(B8(s));
22364
22364
  }
22365
22365
  SZ(e, c), t(W(W({}, kZ), {}, {
22366
- icon: Y.showMissingIcons && e ? b2("missingIconAbstract") || {} : {}
22366
+ icon: Q.showMissingIcons && e ? b2("missingIconAbstract") || {} : {}
22367
22367
  }));
22368
22368
  });
22369
22369
  }
22370
22370
  var jn = function() {
22371
- }, R8 = Y.measurePerformance && C4 && C4.mark && C4.measure ? C4 : {
22371
+ }, R8 = Q.measurePerformance && C4 && C4.mark && C4.measure ? C4 : {
22372
22372
  mark: jn,
22373
22373
  measure: jn
22374
22374
  }, S3 = 'FA "6.4.2"', wZ = function(c) {
@@ -22391,12 +22391,12 @@ function TZ(e) {
22391
22391
  return c && a;
22392
22392
  }
22393
22393
  function IZ(e) {
22394
- return e && e.classList && e.classList.contains && e.classList.contains(Y.replacementClass);
22394
+ return e && e.classList && e.classList.contains && e.classList.contains(Q.replacementClass);
22395
22395
  }
22396
22396
  function EZ() {
22397
- if (Y.autoReplaceSvg === !0)
22397
+ if (Q.autoReplaceSvg === !0)
22398
22398
  return I4.replace;
22399
- var e = I4[Y.autoReplaceSvg];
22399
+ var e = I4[Q.autoReplaceSvg];
22400
22400
  return e || I4.replace;
22401
22401
  }
22402
22402
  function DZ(e) {
@@ -22430,7 +22430,7 @@ var I4 = {
22430
22430
  if (a.parentNode)
22431
22431
  if (c[1].forEach(function(i) {
22432
22432
  a.parentNode.insertBefore(v$(i), a);
22433
- }), a.getAttribute(e3) === null && Y.keepOriginalSource) {
22433
+ }), a.getAttribute(e3) === null && Q.keepOriginalSource) {
22434
22434
  var t = L1.createComment(OZ(a));
22435
22435
  a.parentNode.replaceChild(t, a);
22436
22436
  } else
@@ -22438,12 +22438,12 @@ var I4 = {
22438
22438
  },
22439
22439
  nest: function(c) {
22440
22440
  var a = c[0], t = c[1];
22441
- if (~vi(a).indexOf(Y.replacementClass))
22441
+ if (~vi(a).indexOf(Q.replacementClass))
22442
22442
  return I4.replace(c);
22443
- var i = new RegExp("".concat(Y.cssPrefix, "-.*"));
22443
+ var i = new RegExp("".concat(Q.cssPrefix, "-.*"));
22444
22444
  if (delete t[0].attributes.id, t[0].attributes.class) {
22445
22445
  var n = t[0].attributes.class.split(" ").reduce(function(l, r) {
22446
- return r === Y.replacementClass || r.match(i) ? l.toSvg.push(r) : l.toNode.push(r), l;
22446
+ return r === Q.replacementClass || r.match(i) ? l.toSvg.push(r) : l.toNode.push(r), l;
22447
22447
  }, {
22448
22448
  toNode: [],
22449
22449
  toSvg: []
@@ -22466,7 +22466,7 @@ function p$(e, c) {
22466
22466
  a();
22467
22467
  else {
22468
22468
  var t = $n;
22469
- Y.mutateApproach === jJ && (t = D2.requestAnimationFrame || $n), t(function() {
22469
+ Q.mutateApproach === jJ && (t = D2.requestAnimationFrame || $n), t(function() {
22470
22470
  var i = EZ(), n = Hi.begin("mutate");
22471
22471
  e.map(i), n(), a();
22472
22472
  });
@@ -22481,13 +22481,13 @@ function j8() {
22481
22481
  }
22482
22482
  var W4 = null;
22483
22483
  function Un(e) {
22484
- if (In && Y.observeMutations) {
22484
+ if (In && Q.observeMutations) {
22485
22485
  var c = e.treeCallback, a = c === void 0 ? T4 : c, t = e.nodeCallback, i = t === void 0 ? T4 : t, n = e.pseudoElementsCallback, s = n === void 0 ? T4 : n, l = e.observeMutationsRoot, r = l === void 0 ? L1 : l;
22486
22486
  W4 = new In(function(o) {
22487
22487
  if (!gi) {
22488
22488
  var m = P2();
22489
22489
  b3(o).forEach(function(u) {
22490
- if (u.type === "childList" && u.addedNodes.length > 0 && !qn(u.addedNodes[0]) && (Y.searchPseudoElements && s(u.target), a(u.target)), u.type === "attributes" && u.target.parentNode && Y.searchPseudoElements && s(u.target.parentNode), u.type === "attributes" && qn(u.target) && ~ZJ.indexOf(u.attributeName))
22490
+ if (u.type === "childList" && u.addedNodes.length > 0 && !qn(u.addedNodes[0]) && (Q.searchPseudoElements && s(u.target), a(u.target)), u.type === "attributes" && u.target.parentNode && Q.searchPseudoElements && s(u.target.parentNode), u.type === "attributes" && qn(u.target) && ~ZJ.indexOf(u.attributeName))
22491
22491
  if (u.attributeName === "class" && TZ(u.target)) {
22492
22492
  var v = c8(vi(u.target)), p = v.prefix, H = v.iconName;
22493
22493
  u.target.setAttribute(ui, p || m), H && u.target.setAttribute(mi, H);
@@ -22515,13 +22515,13 @@ function FZ(e) {
22515
22515
  }
22516
22516
  function RZ(e) {
22517
22517
  var c = e.getAttribute("data-prefix"), a = e.getAttribute("data-icon"), t = e.innerText !== void 0 ? e.innerText.trim() : "", i = c8(vi(e));
22518
- return i.prefix || (i.prefix = P2()), c && a && (i.prefix = c, i.iconName = a), i.iconName && i.prefix || (i.prefix && t.length > 0 && (i.iconName = VZ(i.prefix, e.innerText) || zi(i.prefix, E8(e.innerText))), !i.iconName && Y.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (i.iconName = e.firstChild.data)), i;
22518
+ return i.prefix || (i.prefix = P2()), c && a && (i.prefix = c, i.iconName = a), i.iconName && i.prefix || (i.prefix && t.length > 0 && (i.iconName = VZ(i.prefix, e.innerText) || zi(i.prefix, E8(e.innerText))), !i.iconName && Q.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (i.iconName = e.firstChild.data)), i;
22519
22519
  }
22520
22520
  function jZ(e) {
22521
22521
  var c = b3(e.attributes).reduce(function(i, n) {
22522
22522
  return i.name !== "class" && i.name !== "style" && (i[n.name] = n.value), i;
22523
22523
  }, {}), a = e.getAttribute("title"), t = e.getAttribute("data-fa-title-id");
22524
- return Y.autoA11y && (a ? c["aria-labelledby"] = "".concat(Y.replacementClass, "-title-").concat(t || Q3()) : (c["aria-hidden"] = "true", c.focusable = "false")), c;
22524
+ return Q.autoA11y && (a ? c["aria-labelledby"] = "".concat(Q.replacementClass, "-title-").concat(t || Q3()) : (c["aria-hidden"] = "true", c.focusable = "false")), c;
22525
22525
  }
22526
22526
  function qZ() {
22527
22527
  return {
@@ -22570,7 +22570,7 @@ function Wn(e) {
22570
22570
  }
22571
22571
  var $Z = n2.styles;
22572
22572
  function z$(e) {
22573
- var c = Y.autoReplaceSvg === "nest" ? Wn(e, {
22573
+ var c = Q.autoReplaceSvg === "nest" ? Wn(e, {
22574
22574
  styleParser: !1
22575
22575
  }) : Wn(e);
22576
22576
  return ~c.extra.classes.indexOf(Xq) ? b2("generateLayersText", e, c) : b2("generateSvgReplacementMutation", e, c);
@@ -22590,7 +22590,7 @@ function Gn(e) {
22590
22590
  return a.add("".concat(En, "-").concat(u));
22591
22591
  }, i = function(u) {
22592
22592
  return a.remove("".concat(En, "-").concat(u));
22593
- }, n = Y.autoFetchSvg ? O2 : di.map(function(m) {
22593
+ }, n = Q.autoFetchSvg ? O2 : di.map(function(m) {
22594
22594
  return "fa-".concat(m);
22595
22595
  }).concat(Object.keys($Z));
22596
22596
  n.includes("fa") || n.push("fa");
@@ -22644,14 +22644,14 @@ function WZ(e) {
22644
22644
  var GZ = function(c) {
22645
22645
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.transform, i = t === void 0 ? u2 : t, n = a.symbol, s = n === void 0 ? !1 : n, l = a.mask, r = l === void 0 ? null : l, o = a.maskId, m = o === void 0 ? null : o, u = a.title, v = u === void 0 ? null : u, p = a.titleId, H = p === void 0 ? null : p, C = a.classes, b = C === void 0 ? [] : C, _ = a.attributes, g = _ === void 0 ? {} : _, z = a.styles, L = z === void 0 ? {} : z;
22646
22646
  if (c) {
22647
- var A = c.prefix, y = c.iconName, k = c.icon;
22647
+ var y = c.prefix, A = c.iconName, k = c.icon;
22648
22648
  return a8(W({
22649
22649
  type: "icon"
22650
22650
  }, c), function() {
22651
22651
  return c3("beforeDOMElementCreation", {
22652
22652
  iconDefinition: c,
22653
22653
  params: a
22654
- }), Y.autoA11y && (v ? g["aria-labelledby"] = "".concat(Y.replacementClass, "-title-").concat(H || Q3()) : (g["aria-hidden"] = "true", g.focusable = "false")), Mi({
22654
+ }), Q.autoA11y && (v ? g["aria-labelledby"] = "".concat(Q.replacementClass, "-title-").concat(H || Q3()) : (g["aria-hidden"] = "true", g.focusable = "false")), Mi({
22655
22655
  icons: {
22656
22656
  main: B8(k),
22657
22657
  mask: r ? B8(r.icon) : {
@@ -22661,8 +22661,8 @@ var GZ = function(c) {
22661
22661
  icon: {}
22662
22662
  }
22663
22663
  },
22664
- prefix: A,
22665
- iconName: y,
22664
+ prefix: y,
22665
+ iconName: A,
22666
22666
  transform: W(W({}, u2), i),
22667
22667
  symbol: s,
22668
22668
  title: v,
@@ -22756,7 +22756,7 @@ var GZ = function(c) {
22756
22756
  }), [{
22757
22757
  tag: "span",
22758
22758
  attributes: {
22759
- class: ["".concat(Y.cssPrefix, "-layers")].concat(p4(n)).join(" ")
22759
+ class: ["".concat(Q.cssPrefix, "-layers")].concat(p4(n)).join(" ")
22760
22760
  },
22761
22761
  children: s
22762
22762
  }];
@@ -22782,7 +22782,7 @@ var GZ = function(c) {
22782
22782
  extra: {
22783
22783
  attributes: o,
22784
22784
  styles: u,
22785
- classes: ["".concat(Y.cssPrefix, "-layers-counter")].concat(p4(l))
22785
+ classes: ["".concat(Q.cssPrefix, "-layers-counter")].concat(p4(l))
22786
22786
  }
22787
22787
  });
22788
22788
  });
@@ -22808,7 +22808,7 @@ var GZ = function(c) {
22808
22808
  extra: {
22809
22809
  attributes: u,
22810
22810
  styles: p,
22811
- classes: ["".concat(Y.cssPrefix, "-layers-text")].concat(p4(o))
22811
+ classes: ["".concat(Q.cssPrefix, "-layers-text")].concat(p4(o))
22812
22812
  }
22813
22813
  });
22814
22814
  });
@@ -22822,7 +22822,7 @@ var GZ = function(c) {
22822
22822
  var o = parseInt(getComputedStyle(a).fontSize, 10), m = a.getBoundingClientRect();
22823
22823
  l = m.width / o, r = m.height / o;
22824
22824
  }
22825
- return Y.autoA11y && !i && (s.attributes["aria-hidden"] = "true"), Promise.resolve([a, Rn({
22825
+ return Q.autoA11y && !i && (s.attributes["aria-hidden"] = "true"), Promise.resolve([a, Rn({
22826
22826
  content: a.innerHTML,
22827
22827
  width: l,
22828
22828
  height: r,
@@ -22859,20 +22859,20 @@ function Zn(e, c) {
22859
22859
  }
22860
22860
  if (g && !b && (!s || s.getAttribute(ui) !== p || s.getAttribute(mi) !== z)) {
22861
22861
  e.setAttribute(a, z), s && e.removeChild(s);
22862
- var A = qZ(), y = A.extra;
22863
- y.attributes[I8] = c, F8(g, p).then(function(k) {
22864
- var w = Mi(W(W({}, A), {}, {
22862
+ var y = qZ(), A = y.extra;
22863
+ A.attributes[I8] = c, F8(g, p).then(function(k) {
22864
+ var S = Mi(W(W({}, y), {}, {
22865
22865
  icons: {
22866
22866
  main: k,
22867
22867
  mask: Vi()
22868
22868
  },
22869
22869
  prefix: p,
22870
22870
  iconName: z,
22871
- extra: y,
22871
+ extra: A,
22872
22872
  watchable: !0
22873
22873
  })), x = L1.createElementNS("http://www.w3.org/2000/svg", "svg");
22874
- c === "::before" ? e.insertBefore(x, e.firstChild) : e.appendChild(x), x.outerHTML = w.map(function(F) {
22875
- return z4(F);
22874
+ c === "::before" ? e.insertBefore(x, e.firstChild) : e.appendChild(x), x.outerHTML = S.map(function(B) {
22875
+ return z4(B);
22876
22876
  }).join(`
22877
22877
  `), e.removeAttribute(a), t();
22878
22878
  }).catch(i);
@@ -22910,7 +22910,7 @@ var aY = {
22910
22910
  provides: function(c) {
22911
22911
  c.pseudoElements2svg = function(a) {
22912
22912
  var t = a.node, i = t === void 0 ? L1 : t;
22913
- Y.searchPseudoElements && Yn(i);
22913
+ Q.searchPseudoElements && Yn(i);
22914
22914
  };
22915
22915
  }
22916
22916
  }, Qn = !1, tY = {
@@ -23083,7 +23083,7 @@ var sY = {
23083
23083
  maskContentUnits: "userSpaceOnUse"
23084
23084
  }),
23085
23085
  children: [H, _]
23086
- }, A = {
23086
+ }, y = {
23087
23087
  tag: "defs",
23088
23088
  children: [{
23089
23089
  tag: "clipPath",
@@ -23093,7 +23093,7 @@ var sY = {
23093
23093
  children: nY(v)
23094
23094
  }, L]
23095
23095
  };
23096
- return t.push(A, {
23096
+ return t.push(y, {
23097
23097
  tag: "rect",
23098
23098
  attributes: W({
23099
23099
  fill: "currentColor",
@@ -24479,10 +24479,10 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
24479
24479
  const a = D1("i18n"), { t } = a.global, i = e, n = i1(!1), s = i1(null), l = i1([]);
24480
24480
  A1(() => {
24481
24481
  if (i.locale && p1(i.locale), i.value && (l.value = i.value), i.customOpenMethod !== null) {
24482
- const [A, y] = i.customOpenMethod;
24483
- s.value.onclick = async (k) => {
24484
- k.preventDefault();
24485
- const w = await A({
24482
+ const [A, k] = i.customOpenMethod;
24483
+ s.value.onclick = async (S) => {
24484
+ S.preventDefault();
24485
+ const x = await A({
24486
24486
  multiple: !1,
24487
24487
  directory: !1,
24488
24488
  filters: [
@@ -24492,11 +24492,11 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
24492
24492
  }
24493
24493
  ]
24494
24494
  });
24495
- if (w !== null) {
24496
- const x = w.split("/").pop(), F = await y("read_local_file_content", {
24497
- filePath: w
24498
- }), Q = new Blob([F], { type: "plain/text" }), O = new File([Q], x);
24499
- l.value.push(O), r("update", l.value);
24495
+ if (x !== null) {
24496
+ const B = x.split("/").pop(), Z = await k("read_local_file_content", {
24497
+ filePath: x
24498
+ }), O = new Blob([Z], { type: "plain/text" }), e1 = new File([O], B);
24499
+ l.value.push(e1), r("update", l.value);
24500
24500
  }
24501
24501
  };
24502
24502
  }
@@ -24514,24 +24514,36 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
24514
24514
  }, u = () => {
24515
24515
  n.value = !1;
24516
24516
  }, v = (A) => {
24517
- const y = Array.from(A), k = new DataTransfer();
24518
- for (let w of y) {
24519
- const x = w.name.split(".").pop();
24517
+ const k = Array.from(A), S = new DataTransfer();
24518
+ for (let x of k) {
24519
+ const B = x.name.split(".").pop();
24520
24520
  if (C.value.includes(
24521
- `.${x.toLowerCase()}`
24521
+ `.${B.toLowerCase()}`
24522
24522
  )) {
24523
- const Q = new File([w], w.name, {
24524
- type: w.type,
24525
- lastModified: w.lastModified
24523
+ const O = new File([x], x.name, {
24524
+ type: x.type,
24525
+ lastModified: x.lastModified
24526
24526
  });
24527
- k.items.add(Q);
24527
+ S.items.add(O);
24528
24528
  } else
24529
- r("fileFormatNotAccepted", w.name);
24529
+ r("fileFormatNotAccepted", x.name);
24530
24530
  }
24531
- return k.files;
24531
+ return S.files;
24532
24532
  }, p = E(() => i.accept.split(",")), H = E(() => i.accept.split(",").join(", ")), C = E(
24533
24533
  () => p.value.map((A) => A.toLocaleLowerCase())
24534
- ), b = (A) => A.split("/").pop(), _ = (A) => {
24534
+ ), b = (A) => {
24535
+ const k = Math.round(A / 1024), S = Math.round(k / 1024), x = Math.round(S / 1024);
24536
+ switch (!0) {
24537
+ case !!x:
24538
+ return `${x}Gb`;
24539
+ case !!S:
24540
+ return `${S}Mb`;
24541
+ case !!k:
24542
+ return `${k}Kb`;
24543
+ default:
24544
+ return `${A}b`;
24545
+ }
24546
+ }, _ = (A) => A.split("/").pop(), g = (A) => {
24535
24547
  if (A.preventDefault(), !i.disabled) {
24536
24548
  if (s.value.files = v(Array.from(A.dataTransfer.files)), !s.value.files.length) {
24537
24549
  n.value = !1;
@@ -24539,18 +24551,18 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
24539
24551
  }
24540
24552
  l.value = i.multiple ? [...s.value.files] : [s.value.files[0]], r("update", l.value), n.value = !1;
24541
24553
  }
24542
- }, g = (A) => {
24543
- l.value.splice(A, 1), r("update", l.value);
24544
24554
  }, z = (A) => {
24545
- const y = URL.createObjectURL(A);
24546
- return setTimeout(() => {
24547
- URL.revokeObjectURL(y);
24548
- }, 1e3), y;
24555
+ l.value.splice(A, 1), r("update", l.value);
24549
24556
  }, L = (A) => {
24557
+ const k = URL.createObjectURL(A);
24558
+ return setTimeout(() => {
24559
+ URL.revokeObjectURL(k);
24560
+ }, 1e3), k;
24561
+ }, y = (A) => {
24550
24562
  r("download", A);
24551
24563
  };
24552
- return (A, y) => {
24553
- const k = D("AVIcon"), w = B2("tooltip");
24564
+ return (A, k) => {
24565
+ const S = D("AVIcon"), x = B2("tooltip");
24554
24566
  return d(), h("div", TQ, [
24555
24567
  e.disableLabel ? I("", !0) : (d(), h("label", {
24556
24568
  key: 0,
@@ -24560,12 +24572,12 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
24560
24572
  }, [
24561
24573
  f("span", null, [
24562
24574
  z1(N(e.inputLabel) + " ", 1),
24563
- e.tooltipText ? G1((d(), K(k, {
24575
+ e.tooltipText ? G1((d(), K(S, {
24564
24576
  key: 0,
24565
24577
  icon: "circle-question",
24566
24578
  class: "AVFileInput--tooltip-icon"
24567
24579
  }, null, 512)), [
24568
- [w, e.tooltipText]
24580
+ [x, e.tooltipText]
24569
24581
  ]) : I("", !0)
24570
24582
  ])
24571
24583
  ], 8, IQ)),
@@ -24577,7 +24589,7 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
24577
24589
  }]),
24578
24590
  onDragover: m,
24579
24591
  onDragleave: u,
24580
- onDrop: _
24592
+ onDrop: g
24581
24593
  }, [
24582
24594
  f("input", {
24583
24595
  type: "file",
@@ -24592,7 +24604,7 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
24592
24604
  disabled: e.disabled
24593
24605
  }, null, 40, DQ),
24594
24606
  f("div", PQ, [
24595
- T(k, {
24607
+ T(S, {
24596
24608
  icon: "fa-solid fa-cloud-arrow-up",
24597
24609
  class: "AVFileInput--input-icon",
24598
24610
  "data-test": "input-icon"
@@ -24600,25 +24612,25 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
24600
24612
  ]),
24601
24613
  f("div", OQ, [
24602
24614
  n.value ? (d(), h("div", BQ, [
24603
- f("div", FQ, N(B(t)("js.components.AVFileInput.release")), 1)
24615
+ f("div", FQ, N(F(t)("js.components.AVFileInput.release")), 1)
24604
24616
  ])) : (d(), h("div", RQ, [
24605
- f("div", jQ, N(B(t)("js.components.AVFileInput.primary")), 1),
24617
+ f("div", jQ, N(F(t)("js.components.AVFileInput.primary")), 1),
24606
24618
  f("div", qQ, [
24607
- z1(N(B(t)("js.components.AVFileInput.secondary.start")) + " ", 1),
24608
- f("strong", null, N(B(t)("js.components.AVFileInput.secondary.strong")), 1),
24609
- z1(" " + N(B(t)("js.components.AVFileInput.secondary.end")), 1)
24619
+ z1(N(F(t)("js.components.AVFileInput.secondary.start")) + " ", 1),
24620
+ f("strong", null, N(F(t)("js.components.AVFileInput.secondary.strong")), 1),
24621
+ z1(" " + N(F(t)("js.components.AVFileInput.secondary.end")), 1)
24610
24622
  ])
24611
24623
  ]))
24612
24624
  ])
24613
24625
  ], 42, EQ),
24614
24626
  e.disableAcceptedFormats ? I("", !0) : (d(), h("p", $Q, [
24615
- z1(N(B(t)("js.components.AVFileInput.acceptedFormats")) + " ", 1),
24627
+ z1(N(F(t)("js.components.AVFileInput.acceptedFormats")) + " ", 1),
24616
24628
  f("em", UQ, N(H.value), 1)
24617
24629
  ])),
24618
24630
  l.value.length ? (d(), h("div", WQ, [
24619
- f("p", GQ, N(B(t)("js.components.AVFileInput.uploading")), 1),
24620
- (d(!0), h(a1, null, g1(l.value, (x) => (d(), h("div", {
24621
- key: x.name,
24631
+ f("p", GQ, N(F(t)("js.components.AVFileInput.uploading")), 1),
24632
+ (d(!0), h(a1, null, g1(l.value, (B) => (d(), h("div", {
24633
+ key: B.name,
24622
24634
  class: $(["AVFileInput--preview-card", { error: e.error }])
24623
24635
  }, [
24624
24636
  f("div", JQ, [
@@ -24626,8 +24638,8 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
24626
24638
  e.showPreview ? (d(), h("img", {
24627
24639
  key: 0,
24628
24640
  class: "AVFileInput--preview-img",
24629
- src: z(x)
24630
- }, null, 8, YQ)) : (d(), K(k, {
24641
+ src: L(B)
24642
+ }, null, 8, YQ)) : (d(), K(S, {
24631
24643
  key: 1,
24632
24644
  icon: "fa-solid fa-file",
24633
24645
  class: "AVTextInput--preview-icon",
@@ -24635,18 +24647,18 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
24635
24647
  }))
24636
24648
  ]),
24637
24649
  f("p", QQ, [
24638
- z1(N(x.name) + " ", 1),
24639
- f("em", null, N(Math.round(x.size / 1e3) + "kb"), 1)
24650
+ z1(N(B.name) + " ", 1),
24651
+ f("em", null, N(b(B.size)), 1)
24640
24652
  ])
24641
24653
  ]),
24642
24654
  e.disabled ? I("", !0) : (d(), h("button", {
24643
24655
  key: 0,
24644
24656
  class: "AVTextInput--delete-btn",
24645
24657
  type: "button",
24646
- onClick: (F) => g(l.value.indexOf(x)),
24658
+ onClick: (Z) => z(l.value.indexOf(B)),
24647
24659
  title: "Remove file"
24648
24660
  }, [
24649
- T(k, {
24661
+ T(S, {
24650
24662
  icon: "fa-solid fa-trash",
24651
24663
  class: "AVTextInput--delete-icon",
24652
24664
  "data-test": "file-preview-icon"
@@ -24655,33 +24667,33 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
24655
24667
  ], 2))), 128))
24656
24668
  ])) : I("", !0),
24657
24669
  e.currentValue.length ? (d(), h("div", XQ, [
24658
- f("p", eK, N(B(t)("js.components.AVFileInput.current")), 1),
24659
- (d(!0), h(a1, null, g1(e.currentValue, (x) => (d(), h("div", {
24660
- key: `image-${x}`
24670
+ f("p", eK, N(F(t)("js.components.AVFileInput.current")), 1),
24671
+ (d(!0), h(a1, null, g1(e.currentValue, (B) => (d(), h("div", {
24672
+ key: `image-${B}`
24661
24673
  }, [
24662
24674
  e.showPreview ? (d(), h("img", {
24663
24675
  key: 0,
24664
24676
  class: "AVFileInput--current-img",
24665
- src: x,
24666
- alt: B(t)("js.components.AVFileInput.alt_preview")
24677
+ src: B,
24678
+ alt: F(t)("js.components.AVFileInput.alt_preview")
24667
24679
  }, null, 8, cK)) : (d(), h("div", aK, [
24668
24680
  f("div", tK, [
24669
24681
  f("div", iK, [
24670
- T(k, {
24682
+ T(S, {
24671
24683
  icon: "fa-solid fa-file",
24672
24684
  class: "AVTextInput--preview-icon",
24673
24685
  "data-test": "file-preview-icon"
24674
24686
  })
24675
24687
  ]),
24676
- f("p", nK, N(b(x)), 1)
24688
+ f("p", nK, N(_(B)), 1)
24677
24689
  ]),
24678
24690
  f("button", {
24679
24691
  class: "AVTextInput--delete-btn",
24680
24692
  type: "button",
24681
24693
  title: "Download file",
24682
- onClick: (F) => L(x)
24694
+ onClick: (Z) => y(B)
24683
24695
  }, [
24684
- T(k, {
24696
+ T(S, {
24685
24697
  icon: "fa-solid fa-download",
24686
24698
  class: "AVTextInput--download-icon",
24687
24699
  "data-test": "file-download-icon"
@@ -24695,7 +24707,7 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
24695
24707
  };
24696
24708
  }
24697
24709
  });
24698
- const oK = /* @__PURE__ */ J(rK, [["__scopeId", "data-v-455f2d1b"]]), fK = (e) => (e2("data-v-065c2914"), e = e(), c2(), e), uK = ["for"], mK = ["id", "checked", "disabled"], dK = /* @__PURE__ */ fK(() => /* @__PURE__ */ f("span", { class: "AVRadio--mark" }, null, -1)), vK = /* @__PURE__ */ G({
24710
+ const oK = /* @__PURE__ */ J(rK, [["__scopeId", "data-v-79fb2c61"]]), fK = (e) => (e2("data-v-065c2914"), e = e(), c2(), e), uK = ["for"], mK = ["id", "checked", "disabled"], dK = /* @__PURE__ */ fK(() => /* @__PURE__ */ f("span", { class: "AVRadio--mark" }, null, -1)), vK = /* @__PURE__ */ G({
24699
24711
  __name: "AVRadio",
24700
24712
  props: {
24701
24713
  id: {
@@ -24981,7 +24993,7 @@ const LK = /* @__PURE__ */ J(bK, [["__scopeId", "data-v-00ff3c9d"]]), AK = ["hre
24981
24993
  "aria-label": e.label,
24982
24994
  role: "button"
24983
24995
  }, [
24984
- T(B(q8), {
24996
+ T(F(q8), {
24985
24997
  type: l.value,
24986
24998
  active: e.active,
24987
24999
  value: r.value,
@@ -25001,7 +25013,7 @@ const LK = /* @__PURE__ */ J(bK, [["__scopeId", "data-v-00ff3c9d"]]), AK = ["hre
25001
25013
  onMouseleave: o,
25002
25014
  "aria-label": e.label
25003
25015
  }, [
25004
- T(B(q8), {
25016
+ T(F(q8), {
25005
25017
  type: l.value,
25006
25018
  active: e.active,
25007
25019
  value: r.value,
@@ -25747,7 +25759,7 @@ const AX = /* @__PURE__ */ J(LX, [["__scopeId", "data-v-59ee2583"]]), _X = { cla
25747
25759
  const m = D("AVOptionSelect");
25748
25760
  return d(), h("div", _X, [
25749
25761
  e.exclusiveError && e.checked ? (d(), h("div", xX, [
25750
- f("div", NX, N(B(t)("js.components.AVOptionCheckbox.exclusive_option")), 1)
25762
+ f("div", NX, N(F(t)("js.components.AVOptionCheckbox.exclusive_option")), 1)
25751
25763
  ])) : I("", !0),
25752
25764
  f("button", U8({
25753
25765
  class: {
@@ -26485,7 +26497,7 @@ const I11 = /* @__PURE__ */ J(T11, [["__scopeId", "data-v-c682a2cf"]]), E11 = ["
26485
26497
  const p = D("AVOptionCheckbox");
26486
26498
  return d(), h("div", {
26487
26499
  class: "AVSummaryOption",
26488
- "aria-label": B(a)("js.components.AVSummaryOption.aria_label.option")
26500
+ "aria-label": F(a)("js.components.AVSummaryOption.aria_label.option")
26489
26501
  }, [
26490
26502
  l.value ? (d(), h("div", D11, [
26491
26503
  f("ul", P11, [
@@ -26505,7 +26517,7 @@ const I11 = /* @__PURE__ */ J(T11, [["__scopeId", "data-v-c682a2cf"]]), E11 = ["
26505
26517
  key: 0,
26506
26518
  src: m.value,
26507
26519
  class: "AVSummaryOption--img",
26508
- alt: B(a)("js.components.AVSummaryOption.aria_label.option_image")
26520
+ alt: F(a)("js.components.AVSummaryOption.aria_label.option_image")
26509
26521
  }, null, 8, O11)) : I("", !0),
26510
26522
  f("div", B11, [
26511
26523
  f("div", F11, N(r.value), 1)
@@ -26658,24 +26670,24 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
26658
26670
  }), O;
26659
26671
  }), z = E(
26660
26672
  () => r.option.children && r.option.children.length > 0
26661
- ), L = E(() => r.option.selectable !== void 0 && !r.option.selectable ? 0 : y.value ? 1 : r.option.voteLimit || r.contest.markingType.votesAllowedPerOption || 1), A = E(() => r.selections.length > 0 ? F(r.option.children) : 0), y = E(() => r.option.exclusive), k = E(() => {
26673
+ ), L = E(() => r.option.selectable !== void 0 && !r.option.selectable ? 0 : A.value ? 1 : r.option.voteLimit || r.contest.markingType.votesAllowedPerOption || 1), y = E(() => r.selections.length > 0 ? B(r.option.children) : 0), A = E(() => r.option.exclusive), k = E(() => {
26662
26674
  const O = Array.from(Array(L.value).keys());
26663
- O.forEach((Z) => O[Z] = Z + 1);
26675
+ O.forEach((Y) => O[Y] = Y + 1);
26664
26676
  const e1 = O.indexOf(Math.ceil(L.value / 2)) + 1, r1 = O.slice(0, e1), U = O.slice(e1);
26665
26677
  return U.length ? [r1, U] : [r1];
26666
- }), w = E(() => r.partialResults ? r.partialResults[r.option.reference] : null), x = (O, e1 = 1) => {
26678
+ }), S = E(() => r.partialResults ? r.partialResults[r.option.reference] : null), x = (O, e1 = 1) => {
26667
26679
  o("checked", {
26668
26680
  reference: O,
26669
26681
  amount: e1
26670
26682
  });
26671
- }, F = (O) => {
26683
+ }, B = (O) => {
26672
26684
  if (!O)
26673
26685
  return 0;
26674
26686
  let e1 = O.filter(
26675
26687
  (r1) => r.selections.map((U) => U.reference).includes(r1.reference)
26676
26688
  ).length;
26677
- return O.reduce((r1, U) => r1 + F(U.children), e1);
26678
- }, Q = (O) => {
26689
+ return O.reduce((r1, U) => r1 + B(U.children), e1);
26690
+ }, Z = (O) => {
26679
26691
  s.value = !1, O === r.option.reference && (o("accordion-open"), is(() => {
26680
26692
  s.value = !0, l.value.scrollIntoView({ behavior: "smooth", block: "center" });
26681
26693
  }));
@@ -26684,10 +26696,10 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
26684
26696
  () => n.value.get("highlight-option"),
26685
26697
  (O) => {
26686
26698
  const [e1] = O ?? [];
26687
- Q(e1);
26699
+ Z(e1);
26688
26700
  }
26689
26701
  ), (O, e1) => {
26690
- const r1 = D("AVIcon"), U = D("AVOptionCheckbox"), Z = D("AVOption", !0), m1 = D("AVCollapser");
26702
+ const r1 = D("AVIcon"), U = D("AVOptionCheckbox"), Y = D("AVOption", !0), m1 = D("AVCollapser");
26691
26703
  return d(), h("div", {
26692
26704
  class: $({
26693
26705
  "AVOption--background": !0,
@@ -26717,7 +26729,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
26717
26729
  style: W1(
26718
26730
  e.option.accentColor ? `border-left-color: ${e.option.accentColor}` : ""
26719
26731
  ),
26720
- "aria-label": B(t)("js.components.AVOption.aria_labels.option")
26732
+ "aria-label": F(t)("js.components.AVOption.aria_labels.option")
26721
26733
  }, [
26722
26734
  f("div", {
26723
26735
  class: $(["AVOption--container", {
@@ -26730,7 +26742,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
26730
26742
  e.option.image ? (d(), h("img", {
26731
26743
  key: 0,
26732
26744
  src: _.value,
26733
- alt: B(t)("js.components.AVOption.aria_labels.option_image"),
26745
+ alt: F(t)("js.components.AVOption.aria_labels.option_image"),
26734
26746
  class: "AVOption-image"
26735
26747
  }, null, 8, J11)) : I("", !0),
26736
26748
  f("h5", {
@@ -26747,7 +26759,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
26747
26759
  key: 0,
26748
26760
  class: "AVOption--link",
26749
26761
  onClick: e1[0] || (e1[0] = (O1) => o("view-candidate", e.option.candidateId))
26750
- }, N(B(t)("js.components.AVOption.view_candidate")), 1)) : I("", !0),
26762
+ }, N(F(t)("js.components.AVOption.view_candidate")), 1)) : I("", !0),
26751
26763
  (d(!0), h(a1, null, g1(g.value, (O1) => (d(), h("a", {
26752
26764
  key: O1.toString(),
26753
26765
  href: O1.url,
@@ -26767,18 +26779,18 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
26767
26779
  }, null, 8, ["icon"]),
26768
26780
  f("span", {
26769
26781
  class: "AVOption--expander-help-text",
26770
- innerHTML: P1 ? B(t)("js.components.AVOption.collapse_text") : B(t)("js.components.AVOption.expand_text")
26782
+ innerHTML: P1 ? F(t)("js.components.AVOption.collapse_text") : F(t)("js.components.AVOption.expand_text")
26771
26783
  }, null, 8, t21)
26772
26784
  ], 8, a21),
26773
- A.value && !P1 ? (d(), h("span", {
26785
+ y.value && !P1 ? (d(), h("span", {
26774
26786
  key: 0,
26775
26787
  class: $(["AVOption--suboption-badge", {
26776
26788
  "AVOption--suboption-badge-danger": e.invalid,
26777
26789
  "AVOption--suboption-badge-normal": !e.invalid
26778
26790
  }])
26779
- }, N(m.value ? `${B(t)(
26791
+ }, N(m.value ? `${F(t)(
26780
26792
  "js.components.AVOption.sub_options_select"
26781
- )} ${A.value}` : `${A.value} ${B(t)(
26793
+ )} ${y.value}` : `${y.value} ${F(t)(
26782
26794
  "js.components.AVOption.sub_options_select"
26783
26795
  )}`), 3)) : I("", !0)
26784
26796
  ])) : I("", !0)
@@ -26810,15 +26822,15 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
26810
26822
  }, null, 8, ["checked", "rank", "exclusive-error", "invalid", "option-reference", "check-box-index", "disabled", "onToggled"]))), 128))
26811
26823
  ]))), 128))
26812
26824
  ], 6)) : I("", !0),
26813
- w.value && (e.observerMode || e.disabled) ? (d(), h("div", i21, [
26825
+ S.value && (e.observerMode || e.disabled) ? (d(), h("div", i21, [
26814
26826
  T(r1, {
26815
26827
  icon: "user",
26816
26828
  class: "AVOption--realtime-results-icon"
26817
26829
  }),
26818
- f("span", null, N(m.value ? `${w.value.results.count === 1 ? B(t)("js.components.AVOption.vote_count_singular") : B(t)("js.components.AVOption.vote_count_plural")} ${w.value.results.count}` : `${w.value.results.count} ${w.value.results.count === 1 ? B(t)("js.components.AVOption.vote_count_singular") : B(t)("js.components.AVOption.vote_count_plural")}`), 1),
26819
- w.value.showPercentage ? (d(), h(a1, { key: 0 }, [
26830
+ f("span", null, N(m.value ? `${S.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")} ${S.value.results.count}` : `${S.value.results.count} ${S.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")}`), 1),
26831
+ S.value.showPercentage ? (d(), h(a1, { key: 0 }, [
26820
26832
  n21,
26821
- f("span", null, N(`${w.value.results.percentage}%`), 1)
26833
+ f("span", null, N(`${S.value.results.percentage}%`), 1)
26822
26834
  ], 64)) : I("", !0)
26823
26835
  ])) : I("", !0)
26824
26836
  ], 2)
@@ -26826,7 +26838,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
26826
26838
  ]),
26827
26839
  pane: s1(({ toggleCollapse: P1 }) => [
26828
26840
  z.value ? (d(), h("div", r21, [
26829
- (d(!0), h(a1, null, g1(e.option.children, (q1) => (d(), K(Z, {
26841
+ (d(!0), h(a1, null, g1(e.option.children, (q1) => (d(), K(Y, {
26830
26842
  key: q1.reference,
26831
26843
  option: q1,
26832
26844
  selections: e.selections,
@@ -26844,7 +26856,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
26844
26856
  ]),
26845
26857
  _: 2
26846
26858
  }, [
26847
- !e.disabled && w.value && !e.observerMode ? {
26859
+ !e.disabled && S.value && !e.observerMode ? {
26848
26860
  name: "results",
26849
26861
  fn: s1(() => [
26850
26862
  f("div", s21, [
@@ -26852,10 +26864,10 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
26852
26864
  icon: "user",
26853
26865
  class: "AVOption--realtime-results-icon"
26854
26866
  }),
26855
- f("span", null, N(m.value ? `${w.value.results.count === 1 ? B(t)("js.components.AVOption.vote_count_singular") : B(t)("js.components.AVOption.vote_count_plural")} ${w.value.results.count}` : `${w.value.results.count} ${w.value.results.count === 1 ? B(t)("js.components.AVOption.vote_count_singular") : B(t)("js.components.AVOption.vote_count_plural")}`), 1),
26856
- w.value.showPercentage ? (d(), h(a1, { key: 0 }, [
26867
+ f("span", null, N(m.value ? `${S.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")} ${S.value.results.count}` : `${S.value.results.count} ${S.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")}`), 1),
26868
+ S.value.showPercentage ? (d(), h(a1, { key: 0 }, [
26857
26869
  l21,
26858
- f("span", null, N(`${w.value.results.percentage}%`), 1)
26870
+ f("span", null, N(`${S.value.results.percentage}%`), 1)
26859
26871
  ], 64)) : I("", !0)
26860
26872
  ])
26861
26873
  ]),
@@ -26939,10 +26951,10 @@ const f21 = /* @__PURE__ */ J(o21, [["__scopeId", "data-v-785ef04b"]]), g$ = (e)
26939
26951
  "AVBlankOption--accent": e.accentColor
26940
26952
  }),
26941
26953
  style: W1(e.accentColor ? `border-left-color: ${e.accentColor}` : ""),
26942
- "aria-label": B(a)("js.components.AVBlankOption.aria_labels.option")
26954
+ "aria-label": F(a)("js.components.AVBlankOption.aria_labels.option")
26943
26955
  }, [
26944
26956
  f("div", m21, [
26945
- f("h5", d21, N(B(a)("js.components.AVBlankOption.title")), 1),
26957
+ f("h5", d21, N(F(a)("js.components.AVBlankOption.title")), 1),
26946
26958
  f("div", v21, [
26947
26959
  T(l, {
26948
26960
  "option-reference": "blank",
@@ -26959,7 +26971,7 @@ const f21 = /* @__PURE__ */ J(o21, [["__scopeId", "data-v-785ef04b"]]), g$ = (e)
26959
26971
  icon: "user",
26960
26972
  class: "AVBlankOption--realtime-results-icon"
26961
26973
  }),
26962
- f("span", null, N(i.value ? `${e.partialResults.results.count === 1 ? B(a)("js.components.AVBlankOption.vote_count_singular") : B(a)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}` : `${e.partialResults.results.count} ${e.partialResults.results.count === 1 ? B(a)("js.components.AVBlankOption.vote_count_singular") : B(a)("js.components.AVBlankOption.vote_count_plural")}`), 1),
26974
+ f("span", null, N(i.value ? `${e.partialResults.results.count === 1 ? F(a)("js.components.AVBlankOption.vote_count_singular") : F(a)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}` : `${e.partialResults.results.count} ${e.partialResults.results.count === 1 ? F(a)("js.components.AVBlankOption.vote_count_singular") : F(a)("js.components.AVBlankOption.vote_count_plural")}`), 1),
26963
26975
  e.partialResults.showPercentage ? (d(), h(a1, { key: 0 }, [
26964
26976
  h21,
26965
26977
  f("span", null, N(`${e.partialResults.results.percentage}%`), 1)
@@ -26972,7 +26984,7 @@ const f21 = /* @__PURE__ */ J(o21, [["__scopeId", "data-v-785ef04b"]]), g$ = (e)
26972
26984
  icon: "user",
26973
26985
  class: "AVBlankOption--realtime-results-icon"
26974
26986
  }),
26975
- f("span", null, N(i.value ? `${e.partialResults.results.count === 1 ? B(a)("js.components.AVBlankOption.vote_count_singular") : B(a)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}` : `${e.partialResults.results.count} ${e.partialResults.results.count === 1 ? B(a)("js.components.AVBlankOption.vote_count_singular") : B(a)("js.components.AVBlankOption.vote_count_plural")}`), 1),
26987
+ f("span", null, N(i.value ? `${e.partialResults.results.count === 1 ? F(a)("js.components.AVBlankOption.vote_count_singular") : F(a)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}` : `${e.partialResults.results.count} ${e.partialResults.results.count === 1 ? F(a)("js.components.AVBlankOption.vote_count_singular") : F(a)("js.components.AVBlankOption.vote_count_plural")}`), 1),
26976
26988
  e.partialResults.showPercentage ? (d(), h(a1, { key: 0 }, [
26977
26989
  V21,
26978
26990
  f("span", null, N(`${e.partialResults.results.percentage}%`), 1)
@@ -27048,19 +27060,19 @@ const H21 = /* @__PURE__ */ J(M21, [["__scopeId", "data-v-ee117d09"]]), g21 = ["
27048
27060
  AVWriteInOption: !0,
27049
27061
  "AVWriteInOption--disabled": e.disabled
27050
27062
  }),
27051
- "aria-label": B(t)("js.components.AVWriteInOption.aria_labels.option")
27063
+ "aria-label": F(t)("js.components.AVWriteInOption.aria_labels.option")
27052
27064
  }, [
27053
27065
  f("div", C21, [
27054
27066
  f("div", b21, [
27055
- f("div", L21, N(B(t)("js.components.AVWriteInOption.title")), 1),
27067
+ f("div", L21, N(F(t)("js.components.AVWriteInOption.title")), 1),
27056
27068
  f("div", A21, [
27057
27069
  f("select", {
27058
27070
  class: "AVWriteInOption--form-control",
27059
- "aria-label": B(t)("js.components.AVWriteInOption.aria_labels.party"),
27071
+ "aria-label": F(t)("js.components.AVWriteInOption.aria_labels.party"),
27060
27072
  disabled: e.disabled,
27061
27073
  onInput: m[0] || (m[0] = (v) => l(v.target.value))
27062
27074
  }, [
27063
- f("option", x21, N(B(t)("js.components.AVWriteInOption.choose_party")), 1),
27075
+ f("option", x21, N(F(t)("js.components.AVWriteInOption.choose_party")), 1),
27064
27076
  (d(!0), h(a1, null, g1(e.parties, (v) => (d(), h("option", {
27065
27077
  key: v.letter,
27066
27078
  value: v.letter,
@@ -27070,8 +27082,8 @@ const H21 = /* @__PURE__ */ J(M21, [["__scopeId", "data-v-ee117d09"]]), g21 = ["
27070
27082
  f("input", {
27071
27083
  value: e.candidateValue,
27072
27084
  class: "AVWriteInOption--form-control",
27073
- placeholder: B(t)("js.components.AVWriteInOption.placeholder"),
27074
- "aria-label": B(t)("js.components.AVWriteInOption.aria_labels.candidate"),
27085
+ placeholder: F(t)("js.components.AVWriteInOption.placeholder"),
27086
+ "aria-label": F(t)("js.components.AVWriteInOption.aria_labels.candidate"),
27075
27087
  disabled: e.disabled,
27076
27088
  onInput: m[1] || (m[1] = (v) => s(v.target.value))
27077
27089
  }, null, 40, y21)
@@ -27146,7 +27158,7 @@ const S21 = /* @__PURE__ */ J(k21, [["__scopeId", "data-v-f2bba574"]]), w21 = (e
27146
27158
  "AVSubmissionHelper--weight": !0,
27147
27159
  "AVSubmissionHelper--weight-danger": e.errors.length > 0
27148
27160
  })
27149
- }, N(B(a)("js.components.AVSubmissionHelper.your_vote_weight", { weight: e.weight })), 3)) : I("", !0),
27161
+ }, N(F(a)("js.components.AVSubmissionHelper.your_vote_weight", { weight: e.weight })), 3)) : I("", !0),
27150
27162
  e.errors.length > 0 ? (d(), h("div", I21, [
27151
27163
  (d(!0), h(a1, null, g1(n.value, (r) => (d(), h("div", {
27152
27164
  key: r,
@@ -27157,25 +27169,25 @@ const S21 = /* @__PURE__ */ J(k21, [["__scopeId", "data-v-f2bba574"]]), w21 = (e
27157
27169
  ])) : I("", !0),
27158
27170
  e.maxMarks > 1 ? (d(), h("div", P21, [
27159
27171
  f("div", O21, [
27160
- e.minMarks === e.maxMarks ? (d(), h("div", B21, N(`${B(a)("js.components.AVSubmissionHelper.select_exactly", {
27172
+ e.minMarks === e.maxMarks ? (d(), h("div", B21, N(`${F(a)("js.components.AVSubmissionHelper.select_exactly", {
27161
27173
  min_marks: e.minMarks
27162
- })}`), 1)) : (d(), h("div", F21, N(`${e.hasExclusiveOptions ? B(a)(
27174
+ })}`), 1)) : (d(), h("div", F21, N(`${e.hasExclusiveOptions ? F(a)(
27163
27175
  "js.components.AVSubmissionHelper.select_multiple_with_exclusives",
27164
27176
  { min_marks: e.minMarks, max_marks: e.maxMarks }
27165
- ) : B(a)("js.components.AVSubmissionHelper.select_multiple", {
27177
+ ) : F(a)("js.components.AVSubmissionHelper.select_multiple", {
27166
27178
  min_marks: e.minMarks,
27167
27179
  max_marks: e.maxMarks
27168
27180
  })}`), 1)),
27169
27181
  e.chosenCount > 0 ? (d(), h("div", {
27170
27182
  key: 2,
27171
- innerHTML: B(a)("js.components.AVSubmissionHelper.selected", {
27183
+ innerHTML: F(a)("js.components.AVSubmissionHelper.selected", {
27172
27184
  selected: e.chosenCount
27173
27185
  }),
27174
27186
  class: "AVSubmissionHelper--count"
27175
27187
  }, null, 8, R21)) : I("", !0)
27176
27188
  ])
27177
27189
  ])) : (d(), h("div", j21, [
27178
- f("div", null, N(B(a)("js.components.AVSubmissionHelper.select_single")), 1)
27190
+ f("div", null, N(F(a)("js.components.AVSubmissionHelper.select_single")), 1)
27179
27191
  ]))
27180
27192
  ], 2)
27181
27193
  ]));
@@ -27238,7 +27250,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
27238
27250
  return (v, p) => (d(), h("form", {
27239
27251
  role: "search",
27240
27252
  class: "AVSearchBallot",
27241
- "aria-label": B(a)("js.components.AVSearchBallot.aria_labels.ballot_options"),
27253
+ "aria-label": F(a)("js.components.AVSearchBallot.aria_labels.ballot_options"),
27242
27254
  onSubmit: p[1] || (p[1] = m2(() => {
27243
27255
  }, ["prevent"]))
27244
27256
  }, [
@@ -27246,7 +27258,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
27246
27258
  f("label", {
27247
27259
  for: "ballot_search",
27248
27260
  class: "AVSearchBallot--label",
27249
- textContent: N(B(a)("js.components.AVSearchBallot.search_the_ballot"))
27261
+ textContent: N(F(a)("js.components.AVSearchBallot.search_the_ballot"))
27250
27262
  }, null, 8, J21),
27251
27263
  f("div", Z21, [
27252
27264
  G1(f("input", {
@@ -27254,7 +27266,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
27254
27266
  "onUpdate:modelValue": p[0] || (p[0] = (H) => s.value = H),
27255
27267
  type: "search",
27256
27268
  class: "AVSearchBallot--form-control",
27257
- placeholder: B(a)("js.components.AVSearchBallot.enter_option_name")
27269
+ placeholder: F(a)("js.components.AVSearchBallot.enter_option_name")
27258
27270
  }, null, 8, Y21), [
27259
27271
  [ls, s.value]
27260
27272
  ])
@@ -27277,7 +27289,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
27277
27289
  id: `search_result_${H.reference}`,
27278
27290
  class: "AVSearchBallot--option",
27279
27291
  role: "button",
27280
- "aria-label": B(a)("js.components.AVSearchBallot.aria_labels.go_to_option"),
27292
+ "aria-label": F(a)("js.components.AVSearchBallot.aria_labels.go_to_option"),
27281
27293
  onClick: m2((C) => u(H), ["prevent"])
27282
27294
  }, [
27283
27295
  f("span", {
@@ -27289,7 +27301,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
27289
27301
  s.value && l.value.length === 0 ? (d(), h("div", {
27290
27302
  key: 0,
27291
27303
  class: "AVSearchBallot--alert",
27292
- textContent: N(B(a)("js.components.AVSearchBallot.no_results"))
27304
+ textContent: N(F(a)("js.components.AVSearchBallot.no_results"))
27293
27305
  }, null, 8, t31)) : I("", !0)
27294
27306
  ])
27295
27307
  ], 40, W21));
@@ -27328,19 +27340,19 @@ const n31 = /* @__PURE__ */ J(i31, [["__scopeId", "data-v-727c3aa7"]]), s31 = {
27328
27340
  ), (i, n) => (d(), h("div", s31, [
27329
27341
  f("div", l31, [
27330
27342
  f("span", null, [
27331
- z1(N(B(a)("js.components.AVSplitWeightHelper.total")) + " ", 1),
27343
+ z1(N(F(a)("js.components.AVSplitWeightHelper.total")) + " ", 1),
27332
27344
  f("strong", null, N(e.assignedWeight + e.unusedWeight), 1)
27333
27345
  ])
27334
27346
  ]),
27335
27347
  f("div", r31, [
27336
27348
  f("span", null, [
27337
- z1(N(B(a)("js.components.AVSplitWeightHelper.assigned")) + " ", 1),
27349
+ z1(N(F(a)("js.components.AVSplitWeightHelper.assigned")) + " ", 1),
27338
27350
  f("strong", null, N(e.assignedWeight), 1)
27339
27351
  ])
27340
27352
  ]),
27341
27353
  f("div", o31, [
27342
27354
  f("span", null, [
27343
- z1(N(B(a)("js.components.AVSplitWeightHelper.unused")) + " ", 1),
27355
+ z1(N(F(a)("js.components.AVSplitWeightHelper.unused")) + " ", 1),
27344
27356
  f("strong", null, N(e.unusedWeight), 1)
27345
27357
  ])
27346
27358
  ])
@@ -27400,9 +27412,9 @@ const u31 = /* @__PURE__ */ J(f31, [["__scopeId", "data-v-f145cdd2"]]), m31 = {
27400
27412
  ), (i, n) => {
27401
27413
  const s = D("AVTooltip");
27402
27414
  return d(), h("header", m31, [
27403
- e.activeState === "ballot" ? (d(), h("p", d31, N(e.isEditing ? `${B(a)("js.components.AVSplitWizardHeader.ballot.editing")} ${e.activeSelectionPileIndex + 1}` : `${B(a)("js.components.AVSplitWizardHeader.ballot.adding")} ${e.selectionPiles.length + 1}`), 1)) : e.activeState === "assign" ? (d(), h("p", v31, N(e.isEditing ? `${B(a)("js.components.AVSplitWizardHeader.assign.header")} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}` : `${B(a)(
27415
+ e.activeState === "ballot" ? (d(), h("p", d31, N(e.isEditing ? `${F(a)("js.components.AVSplitWizardHeader.ballot.editing")} ${e.activeSelectionPileIndex + 1}` : `${F(a)("js.components.AVSplitWizardHeader.ballot.adding")} ${e.selectionPiles.length + 1}`), 1)) : e.activeState === "assign" ? (d(), h("p", v31, N(e.isEditing ? `${F(a)("js.components.AVSplitWizardHeader.assign.header")} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}` : `${F(a)(
27404
27416
  "js.components.AVSplitWizardHeader.assign.header_edit_mode"
27405
- )} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}`), 1)) : (d(), h("p", p31, N(B(a)("js.components.AVSplitWizardHeader.overview.header")), 1)),
27417
+ )} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}`), 1)) : (d(), h("p", p31, N(F(a)("js.components.AVSplitWizardHeader.overview.header")), 1)),
27406
27418
  (e.activeState, I("", !0))
27407
27419
  ]);
27408
27420
  };
@@ -27451,7 +27463,7 @@ const z31 = /* @__PURE__ */ J(h31, [["__scopeId", "data-v-8df55e3a"]]), V31 = "d
27451
27463
  }, [
27452
27464
  H31,
27453
27465
  f("img", {
27454
- src: B(V31),
27466
+ src: F(V31),
27455
27467
  alt: "Assembly Voting",
27456
27468
  class: "AVFooter--img"
27457
27469
  }, null, 8, g31)
@@ -27746,27 +27758,27 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
27746
27758
  const l = i1(!1), r = i1(""), o = i1(""), m = i1(null), u = E(() => n.selectionPile.optionSelections), v = E(() => new C$(n.contest)), p = E(
27747
27759
  () => n.contest.disregardVoterWeight ? null : n.weight
27748
27760
  ), H = E(() => {
27749
- var F;
27761
+ var B;
27750
27762
  let x = [];
27751
- return (F = n.contest.customRulesets) != null && F.includes("belgian_ballot_rules") && x.push(new $31(n.contest)), x;
27763
+ return (B = n.contest.customRulesets) != null && B.includes("belgian_ballot_rules") && x.push(new $31(n.contest)), x;
27752
27764
  }), C = E(() => {
27753
27765
  let x = [];
27754
- H.value.forEach((Q) => {
27755
- x.push(...Q.validate(n.selectionPile));
27766
+ H.value.forEach((Z) => {
27767
+ x.push(...Z.validate(n.selectionPile));
27756
27768
  });
27757
- const F = [
27769
+ const B = [
27758
27770
  ...v.value.validate(n.selectionPile, n.includeLazyErrors),
27759
27771
  ...x
27760
27772
  ];
27761
- if (g.value && F.some((Q) => Q.message === "cross_party_voting")) {
27762
- let Q;
27763
- F.some((O) => O.message === "exclusive") && (Q = F.findIndex(
27773
+ if (g.value && B.some((Z) => Z.message === "cross_party_voting")) {
27774
+ let Z;
27775
+ B.some((O) => O.message === "exclusive") && (Z = B.findIndex(
27764
27776
  (O) => O.message === "exclusive"
27765
- ), F.splice(Q, 1)), F.some((O) => O.message === "blank") && (Q = F.findIndex(
27777
+ ), B.splice(Z, 1)), B.some((O) => O.message === "blank") && (Z = B.findIndex(
27766
27778
  (O) => O.message === "cross_party_voting"
27767
- ), F.splice(Q, 1));
27779
+ ), B.splice(Z, 1));
27768
27780
  }
27769
- return s("update:errors", F), F;
27781
+ return s("update:errors", B), B;
27770
27782
  }), b = E(() => C.value.length === 0), _ = E(() => {
27771
27783
  var x;
27772
27784
  return (x = n.contest.question) == null ? void 0 : x[i.value];
@@ -27775,41 +27787,41 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
27775
27787
  var x;
27776
27788
  return (x = n.contest.customRulesets) == null ? void 0 : x.includes("belgian_ballot_rules");
27777
27789
  }
27778
- ), z = E(() => w(n.contest.options).some(
27790
+ ), z = E(() => S(n.contest.options).some(
27779
27791
  (x) => x.exclusive
27780
27792
  )), L = E(() => n.contest);
27781
- l1(L, (x, F) => {
27782
- var Q;
27783
- F && x && x.reference !== F.reference && ((Q = document.getElementById("content")) == null || Q.focus(), F.searchForm && (m.value.value = ""));
27793
+ l1(L, (x, B) => {
27794
+ var Z;
27795
+ B && x && x.reference !== B.reference && ((Z = document.getElementById("content")) == null || Z.focus(), B.searchForm && (m.value.value = ""));
27784
27796
  });
27785
- const A = () => {
27797
+ const y = () => {
27786
27798
  s("update:selectionPile", {
27787
27799
  ...n.selectionPile,
27788
27800
  explicitBlank: !n.selectionPile.explicitBlank
27789
27801
  });
27790
- }, y = ({ reference: x, amount: F }) => {
27791
- const Q = u.value.filter(
27802
+ }, A = ({ reference: x, amount: B }) => {
27803
+ const Z = u.value.filter(
27792
27804
  (e1) => e1.reference === x
27793
27805
  ).length;
27794
- F === Q && (F = F - 1);
27806
+ B === Z && (B = B - 1);
27795
27807
  const O = u.value.filter(
27796
27808
  (e1) => e1.reference !== x
27797
27809
  );
27798
- for (let e1 = 0; e1 < F; e1++)
27810
+ for (let e1 = 0; e1 < B; e1++)
27799
27811
  O.push({ reference: x });
27800
27812
  s("update:selectionPile", {
27801
27813
  ...n.selectionPile,
27802
27814
  optionSelections: O
27803
27815
  });
27804
- }, k = (x) => s("view-candidate", x), w = (x, F) => x.flatMap((Q) => (F && (Q.parentContent = F), Q.children ? [Q, ...w(Q.children, Q)] : [Q]));
27805
- return (x, F) => {
27806
- const Q = D("AVSearchBallot"), O = D("AVWriteInOption"), e1 = D("AVOption"), r1 = D("AVBlankOption"), U = D("AVSubmissionHelper");
27816
+ }, k = (x) => s("view-candidate", x), S = (x, B) => x.flatMap((Z) => (B && (Z.parentContent = B), Z.children ? [Z, ...S(Z.children, Z)] : [Z]));
27817
+ return (x, B) => {
27818
+ const Z = D("AVSearchBallot"), O = D("AVWriteInOption"), e1 = D("AVOption"), r1 = D("AVBlankOption"), U = D("AVSubmissionHelper");
27807
27819
  return d(), h("div", {
27808
27820
  class: $({
27809
27821
  AVBallot: !0,
27810
27822
  "AVBallot--error": !b.value
27811
27823
  }),
27812
- "aria-label": B(t)("js.components.AVBallot.aria_labels.ballot"),
27824
+ "aria-label": F(t)("js.components.AVBallot.aria_labels.ballot"),
27813
27825
  "aria-describedby": `ballot_${e.contest.reference}`
27814
27826
  }, [
27815
27827
  _.value ? (d(), h("h5", {
@@ -27818,11 +27830,11 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
27818
27830
  class: "AVBallot--question",
27819
27831
  "aria-live": "polite"
27820
27832
  }, N(_.value), 9, G31)) : I("", !0),
27821
- e.contest.searchForm && !e.disabled && !e.observerMode ? (d(), K(Q, {
27833
+ e.contest.searchForm && !e.disabled && !e.observerMode ? (d(), K(Z, {
27822
27834
  key: 1,
27823
27835
  ref_key: "search",
27824
27836
  ref: m,
27825
- options: w(e.contest.options),
27837
+ options: S(e.contest.options),
27826
27838
  "options-container-id": "ballot_options"
27827
27839
  }, null, 8, ["options"])) : I("", !0),
27828
27840
  J31,
@@ -27831,50 +27843,50 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
27831
27843
  class: $({
27832
27844
  "AVBallot--options": !0,
27833
27845
  "AVBallot--options-with-list": e.contest.options.some(
27834
- (Z) => Z.children
27846
+ (Y) => Y.children
27835
27847
  )
27836
27848
  }),
27837
- "aria-label": B(t)("js.components.AVBallot.aria_labels.ballot_options")
27849
+ "aria-label": F(t)("js.components.AVBallot.aria_labels.ballot_options")
27838
27850
  }, [
27839
- (d(!0), h(a1, null, g1(e.contest.options, (Z) => (d(), h(a1, {
27840
- key: Z.reference
27851
+ (d(!0), h(a1, null, g1(e.contest.options, (Y) => (d(), h(a1, {
27852
+ key: Y.reference
27841
27853
  }, [
27842
- Z.writeIn ? (d(), K(O, {
27854
+ Y.writeIn ? (d(), K(O, {
27843
27855
  key: 0,
27844
27856
  "candidate-value": o.value,
27845
- "onUpdate:candidateValue": F[0] || (F[0] = (m1) => o.value = m1),
27857
+ "onUpdate:candidateValue": B[0] || (B[0] = (m1) => o.value = m1),
27846
27858
  "party-value": r.value,
27847
- "onUpdate:partyValue": F[1] || (F[1] = (m1) => r.value = m1),
27859
+ "onUpdate:partyValue": B[1] || (B[1] = (m1) => r.value = m1),
27848
27860
  "checked-value": l.value,
27849
- "onUpdate:checkedValue": F[2] || (F[2] = (m1) => l.value = m1),
27861
+ "onUpdate:checkedValue": B[2] || (B[2] = (m1) => l.value = m1),
27850
27862
  parties: [],
27851
27863
  disabled: e.disabled,
27852
27864
  observerMode: e.observerMode
27853
27865
  }, null, 8, ["candidate-value", "party-value", "checked-value", "disabled", "observerMode"])) : (d(), K(e1, {
27854
27866
  key: 1,
27855
27867
  selections: u.value,
27856
- option: Z,
27868
+ option: Y,
27857
27869
  invalid: !b.value,
27858
- "exclusive-error": !g.value && Z.exclusive && C.value.some((m1) => m1.message.includes("exclusive")),
27870
+ "exclusive-error": !g.value && Y.exclusive && C.value.some((m1) => m1.message.includes("exclusive")),
27859
27871
  contest: e.contest,
27860
27872
  disabled: e.disabled,
27861
27873
  observerMode: e.observerMode,
27862
27874
  "partial-results": e.partialResults,
27863
27875
  "image-option": e.imageOption,
27864
- onChecked: y,
27876
+ onChecked: A,
27865
27877
  onViewCandidate: k
27866
27878
  }, null, 8, ["selections", "option", "invalid", "exclusive-error", "contest", "disabled", "observerMode", "partial-results", "image-option"]))
27867
27879
  ], 64))), 128)),
27868
27880
  e.contest.markingType.blankSubmission === "active_choice" ? (d(), K(r1, {
27869
27881
  key: 0,
27870
27882
  checked: e.selectionPile.explicitBlank,
27871
- error: !g.value && C.value.some((Z) => Z.message.includes("blank")),
27883
+ error: !g.value && C.value.some((Y) => Y.message.includes("blank")),
27872
27884
  disabled: e.disabled,
27873
27885
  invalid: !b.value,
27874
27886
  observerMode: e.observerMode,
27875
27887
  accentColor: e.contest.blankOptionColor,
27876
27888
  "partial-results": e.partialResults ? e.partialResults.blank : null,
27877
- onToggleBlank: A
27889
+ onToggleBlank: y
27878
27890
  }, null, 8, ["checked", "error", "disabled", "invalid", "observerMode", "accentColor", "partial-results"])) : I("", !0)
27879
27891
  ], 10, Z31),
27880
27892
  e.showSubmissionHelper && !e.disabled && !e.observerMode ? (d(), K(U, {
@@ -28005,10 +28017,10 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
28005
28017
  const _ = D("AVSummaryOption"), g = D("AVIcon");
28006
28018
  return e.activeState === "summary" ? (d(), h("div", X31, [
28007
28019
  e.contest.markingType.maxPiles !== 1 ? (d(), h("header", e41, [
28008
- f("span", null, N(B(t)("js.components.AVPileSummary.selection")) + " " + N(e.pileIndex + 1) + " / " + N(e.totalPiles), 1),
28009
- f("span", c41, N(e.selectionPile.multiplier) + " " + N(B(t)("js.components.AVPileSummary.ballots")), 1)
28020
+ f("span", null, N(F(t)("js.components.AVPileSummary.selection")) + " " + N(e.pileIndex + 1) + " / " + N(e.totalPiles), 1),
28021
+ f("span", c41, N(e.selectionPile.multiplier) + " " + N(F(t)("js.components.AVPileSummary.ballots")), 1)
28010
28022
  ])) : (d(), h("header", a41, [
28011
- f("span", null, N(B(t)("js.components.AVPileSummary.selection")), 1)
28023
+ f("span", null, N(F(t)("js.components.AVPileSummary.selection")), 1)
28012
28024
  ])),
28013
28025
  f("div", t41, [
28014
28026
  (d(!0), h(a1, null, g1(H.value.options, (z, L) => (d(), K(_, {
@@ -28027,18 +28039,18 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
28027
28039
  f("div", n41, [
28028
28040
  f("div", {
28029
28041
  class: "AVPileSummary--assign-header",
28030
- "aria-label": B(t)("js.components.AVPileSummary.aria_labels.edit_selection"),
28042
+ "aria-label": F(t)("js.components.AVPileSummary.aria_labels.edit_selection"),
28031
28043
  role: "button",
28032
28044
  onClick: b[0] || (b[0] = (z) => n("editCurrentSelection"))
28033
28045
  }, [
28034
28046
  f("div", l41, [
28035
28047
  T(g, { icon: "pen-to-square" }),
28036
- f("span", null, N(B(t)("js.components.AVPileSummary.ballot_selection")) + " " + N(e.pileIndex + 1), 1)
28048
+ f("span", null, N(F(t)("js.components.AVPileSummary.ballot_selection")) + " " + N(e.pileIndex + 1), 1)
28037
28049
  ]),
28038
- e.activeState === "overview" || e.isEditing ? (d(), h("span", r41, N(B(t)("js.components.AVPileSummary.assigned")) + " " + N(e.selectionPile.multiplier), 1)) : I("", !0)
28050
+ e.activeState === "overview" || e.isEditing ? (d(), h("span", r41, N(F(t)("js.components.AVPileSummary.assigned")) + " " + N(e.selectionPile.multiplier), 1)) : I("", !0)
28039
28051
  ], 8, s41),
28040
28052
  f("div", o41, [
28041
- o.value ? (d(), h("p", f41, N(B(t)("js.components.AVPileSummary.blank")), 1)) : I("", !0),
28053
+ o.value ? (d(), h("p", f41, N(F(t)("js.components.AVPileSummary.blank")), 1)) : I("", !0),
28042
28054
  (d(!0), h(a1, null, g1(H.value.options, (z, L) => (d(), h("p", {
28043
28055
  key: L,
28044
28056
  class: "AVPileSummary--assign-text"
@@ -28058,9 +28070,9 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
28058
28070
  onClick: b[1] || (b[1] = m2((z) => l.value = !0, ["stop", "prevent"]))
28059
28071
  }, [
28060
28072
  f("u", null, [
28061
- f("em", null, N(`${B(t)(
28073
+ f("em", null, N(`${F(t)(
28062
28074
  "js.components.AVPileSummary.and_n_more_pre"
28063
- )} ${u.value} ${B(t)(
28075
+ )} ${u.value} ${F(t)(
28064
28076
  "js.components.AVPileSummary.and_n_more_pos"
28065
28077
  )}`), 1)
28066
28078
  ])
@@ -28072,7 +28084,7 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
28072
28084
  onClick: b[2] || (b[2] = m2((z) => l.value = !1, ["stop", "prevent"]))
28073
28085
  }, [
28074
28086
  f("u", null, [
28075
- f("em", null, N(B(t)("js.components.AVPileSummary.show_less")), 1)
28087
+ f("em", null, N(F(t)("js.components.AVPileSummary.show_less")), 1)
28076
28088
  ])
28077
28089
  ])) : I("", !0)
28078
28090
  ])
@@ -28081,7 +28093,7 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
28081
28093
  key: 0,
28082
28094
  class: "AVPileSummary--assign-delete-button",
28083
28095
  role: "button",
28084
- "aria-label": B(t)("js.components.AVPileSummary.aria_labels.delete_selection"),
28096
+ "aria-label": F(t)("js.components.AVPileSummary.aria_labels.delete_selection"),
28085
28097
  onClick: b[3] || (b[3] = m2((z) => n("deleteSelection"), ["stop", "prevent"]))
28086
28098
  }, [
28087
28099
  T(g, { icon: "trash-can" })
@@ -28196,7 +28208,7 @@ const V41 = {
28196
28208
  ), m = i1([]), u = E(() => n.contestSelection.piles), v = E(
28197
28209
  () => {
28198
28210
  var U;
28199
- return (U = u.value) == null ? void 0 : U.reduce((Z, m1) => Z - m1.multiplier, n.weight);
28211
+ return (U = u.value) == null ? void 0 : U.reduce((Y, m1) => Y - m1.multiplier, n.weight);
28200
28212
  }
28201
28213
  ), p = E(
28202
28214
  () => new C$(n.contest)
@@ -28210,16 +28222,16 @@ const V41 = {
28210
28222
  )), b = E(
28211
28223
  () => {
28212
28224
  var U;
28213
- return (U = u.value) == null ? void 0 : U.reduce((Z, m1) => Z + m1.multiplier, 0);
28225
+ return (U = u.value) == null ? void 0 : U.reduce((Y, m1) => Y + m1.multiplier, 0);
28214
28226
  }
28215
28227
  ), _ = E(() => {
28216
28228
  var U;
28217
28229
  return (U = r.value) == null ? void 0 : U.multiplier;
28218
28230
  }), g = E(
28219
- () => u.value.filter((U, Z) => Z !== l.value).reduce((U, Z) => U - Z.multiplier, n.weight)
28231
+ () => u.value.filter((U, Y) => Y !== l.value).reduce((U, Y) => U - Y.multiplier, n.weight)
28220
28232
  ), z = E(
28221
28233
  () => n.contest.markingType.maxPiles !== 1 && n.weight > 1
28222
- ), L = E(() => l.value !== null), A = (U) => p.value.isComplete(U), y = (U) => p.value.validate(U, n.includeLazyErrors).length > 0, k = () => {
28234
+ ), L = E(() => l.value !== null), y = (U) => p.value.isComplete(U), A = (U) => p.value.validate(U, n.includeLazyErrors).length > 0, k = () => {
28223
28235
  if (z.value) {
28224
28236
  const U = [...u.value];
28225
28237
  l.value === null ? U.push({ ...r.value }) : U.splice(l.value, 1, {
@@ -28233,7 +28245,7 @@ const V41 = {
28233
28245
  ...n.contestSelection,
28234
28246
  piles: [r.value]
28235
28247
  });
28236
- }, w = (U) => {
28248
+ }, S = (U) => {
28237
28249
  r.value = U, z.value || k();
28238
28250
  }, x = () => {
28239
28251
  r.value = {
@@ -28241,9 +28253,9 @@ const V41 = {
28241
28253
  multiplier: g.value,
28242
28254
  explicitBlank: !1
28243
28255
  }, l.value = null, o.value = "ballot";
28244
- }, F = (U) => {
28256
+ }, B = (U) => {
28245
28257
  u.value.splice(U, 1);
28246
- }, Q = (U) => {
28258
+ }, Z = (U) => {
28247
28259
  r.value = { ...u.value[U] }, l.value = U, o.value = "ballot";
28248
28260
  }, O = (U) => {
28249
28261
  m.value = U;
@@ -28257,7 +28269,7 @@ const V41 = {
28257
28269
  s("update:activePile", U);
28258
28270
  }), l1(o, (U) => s("update:activeState", U)), A1(() => {
28259
28271
  n.locale && p1(n.locale), s("update:activePile", r.value), s("update:activeState", o.value), s("update:complete", C.value), z.value || k();
28260
- }), (U, Z) => {
28272
+ }), (U, Y) => {
28261
28273
  var I1;
28262
28274
  const m1 = D("AVSplitWizardHeader"), P1 = D("AVBallot"), q1 = D("AVPileSummary"), O1 = D("AVSplitWeightHelper"), J1 = D("AVIcon");
28263
28275
  return d(), h(a1, null, [
@@ -28292,29 +28304,29 @@ const V41 = {
28292
28304
  includeLazyErrors: e.includeLazyErrors,
28293
28305
  "show-submission-helper": e.showSubmissionHelper,
28294
28306
  "image-option": e.imageOption,
28295
- "onUpdate:selectionPile": w,
28296
- "onUpdate:errors": Z[0] || (Z[0] = (F1) => O(F1))
28307
+ "onUpdate:selectionPile": S,
28308
+ "onUpdate:errors": Y[0] || (Y[0] = (F1) => O(F1))
28297
28309
  }, null, 8, ["selection-pile", "partial-results", "contest", "weight", "includeLazyErrors", "show-submission-helper", "image-option"]),
28298
28310
  f("div", H41, [
28299
28311
  f("div", g41, [
28300
28312
  u.value.length > 0 ? (d(), h("button", {
28301
28313
  key: "back",
28302
28314
  class: "AVSplitHelper--btn-secondary",
28303
- onClick: Z[1] || (Z[1] = (F1) => o.value = "overview")
28304
- }, N(B(t)("js.components.AVSplitHelper.ballot.back_button")), 1)) : I("", !0)
28315
+ onClick: Y[1] || (Y[1] = (F1) => o.value = "overview")
28316
+ }, N(F(t)("js.components.AVSplitHelper.ballot.back_button")), 1)) : I("", !0)
28305
28317
  ]),
28306
28318
  f("div", C41, [
28307
28319
  f("button", {
28308
28320
  key: "assign",
28309
28321
  class: "AVSplitHelper--btn-primary",
28310
- disabled: !A(r.value) || y(r.value),
28311
- onClick: Z[2] || (Z[2] = (F1) => o.value = "assign")
28312
- }, N(B(t)("js.components.AVSplitHelper.ballot.confirm_button")), 9, b41)
28322
+ disabled: !y(r.value) || A(r.value),
28323
+ onClick: Y[2] || (Y[2] = (F1) => o.value = "assign")
28324
+ }, N(F(t)("js.components.AVSplitHelper.ballot.confirm_button")), 9, b41)
28313
28325
  ])
28314
28326
  ])
28315
28327
  ])) : o.value === "assign" ? (d(), h("div", L41, [
28316
28328
  f("div", A41, [
28317
- f("h4", _41, N(B(t)("js.components.AVSplitHelper.assign.split_question")), 1),
28329
+ f("h4", _41, N(F(t)("js.components.AVSplitHelper.assign.split_question")), 1),
28318
28330
  T(q1, {
28319
28331
  "selection-pile": r.value,
28320
28332
  contest: e.contest,
@@ -28324,17 +28336,17 @@ const V41 = {
28324
28336
  "is-editing": L.value,
28325
28337
  "total-piles": e.contestSelection.piles.length,
28326
28338
  "image-option": e.imageOption,
28327
- onEditCurrentSelection: Z[3] || (Z[3] = (F1) => o.value = "ballot")
28339
+ onEditCurrentSelection: Y[3] || (Y[3] = (F1) => o.value = "ballot")
28328
28340
  }, null, 8, ["selection-pile", "contest", "pile-index", "active-state", "is-editing", "total-piles", "image-option"]),
28329
28341
  f("label", {
28330
28342
  for: `${e.contest.reference}-ballot-selector`,
28331
28343
  class: "AVSplitHelper--assign-label"
28332
- }, N(L.value ? B(t)(
28344
+ }, N(L.value ? F(t)(
28333
28345
  "js.components.AVSplitHelper.assign.ballots_to_assign_edit_mode"
28334
- ) : B(t)("js.components.AVSplitHelper.assign.ballots_to_assign")), 9, x41),
28346
+ ) : F(t)("js.components.AVSplitHelper.assign.ballots_to_assign")), 9, x41),
28335
28347
  G1(f("input", {
28336
28348
  id: `${e.contest.reference}-ballot-selector`,
28337
- "onUpdate:modelValue": Z[4] || (Z[4] = (F1) => r.value.multiplier = F1),
28349
+ "onUpdate:modelValue": Y[4] || (Y[4] = (F1) => r.value.multiplier = F1),
28338
28350
  class: "AVSplitHelper--assign-input",
28339
28351
  type: "number",
28340
28352
  max: g.value
@@ -28352,16 +28364,16 @@ const V41 = {
28352
28364
  f("button", {
28353
28365
  key: "ballot",
28354
28366
  class: "AVSplitHelper--btn-secondary",
28355
- onClick: Z[5] || (Z[5] = (F1) => o.value = "ballot")
28356
- }, N(B(t)("js.components.AVSplitHelper.assign.back_button")), 1)
28367
+ onClick: Y[5] || (Y[5] = (F1) => o.value = "ballot")
28368
+ }, N(F(t)("js.components.AVSplitHelper.assign.back_button")), 1)
28357
28369
  ]),
28358
28370
  f("div", S41, [
28359
28371
  f("button", {
28360
28372
  key: "confirm",
28361
28373
  class: "AVSplitHelper--btn-primary",
28362
28374
  disabled: ((z2 = r.value) == null ? void 0 : z2.multiplier) < 1 || ((A2 = r.value) == null ? void 0 : A2.multiplier) > g.value,
28363
- onClick: Z[6] || (Z[6] = (F1) => k())
28364
- }, N(B(t)("js.components.AVSplitHelper.assign.confirm_button")), 9, w41)
28375
+ onClick: Y[6] || (Y[6] = (F1) => k())
28376
+ }, N(F(t)("js.components.AVSplitHelper.assign.confirm_button")), 9, w41)
28365
28377
  ])
28366
28378
  ])
28367
28379
  ])) : o.value === "overview" ? (d(), h("div", T41, [
@@ -28370,11 +28382,11 @@ const V41 = {
28370
28382
  icon: "circle-check",
28371
28383
  class: "AVSplitHelper--overview-success-icon"
28372
28384
  }),
28373
- z1(" " + N(B(t)("js.components.AVSplitHelper.overview.all_ballots_assigned")), 1)
28385
+ z1(" " + N(F(t)("js.components.AVSplitHelper.overview.all_ballots_assigned")), 1)
28374
28386
  ])) : (d(), h("div", E41, [
28375
28387
  f("p", D41, [
28376
28388
  f("strong", null, N(v.value), 1),
28377
- z1(" " + N(B(t)("js.components.AVSplitHelper.overview.ballots_left")), 1)
28389
+ z1(" " + N(F(t)("js.components.AVSplitHelper.overview.ballots_left")), 1)
28378
28390
  ]),
28379
28391
  f("button", {
28380
28392
  key: "newSelection",
@@ -28383,12 +28395,12 @@ const V41 = {
28383
28395
  onClick: x
28384
28396
  }, [
28385
28397
  T(J1, { icon: "file-circle-plus" }),
28386
- z1(" " + N(B(t)("js.components.AVSplitHelper.overview.new_ballot_selection")), 1)
28398
+ z1(" " + N(F(t)("js.components.AVSplitHelper.overview.new_ballot_selection")), 1)
28387
28399
  ], 8, P41)
28388
28400
  ])),
28389
28401
  (d(!0), h(a1, null, g1(u.value, (F1, o2) => (d(), h("article", {
28390
28402
  key: `preview-${o2}`,
28391
- onClick: (t3) => Q(o2)
28403
+ onClick: (t3) => Z(o2)
28392
28404
  }, [
28393
28405
  T(q1, {
28394
28406
  "selection-pile": F1,
@@ -28398,7 +28410,7 @@ const V41 = {
28398
28410
  "pile-index": o2,
28399
28411
  "total-piles": e.contestSelection.piles.length,
28400
28412
  "image-option": e.imageOption,
28401
- onDeleteSelection: (t3) => F(o2)
28413
+ onDeleteSelection: (t3) => B(o2)
28402
28414
  }, null, 8, ["selection-pile", "contest", "active-state", "pile-index", "total-piles", "image-option", "onDeleteSelection"])
28403
28415
  ], 8, O41))), 128))
28404
28416
  ])) : I("", !0)
@@ -28416,8 +28428,8 @@ const V41 = {
28416
28428
  weight: e.weight,
28417
28429
  "image-option": e.imageOption,
28418
28430
  "show-submission-helper": e.showSubmissionHelper,
28419
- "onUpdate:selectionPile": w,
28420
- "onUpdate:errors": Z[7] || (Z[7] = (a2) => O(a2)),
28431
+ "onUpdate:selectionPile": S,
28432
+ "onUpdate:errors": Y[7] || (Y[7] = (a2) => O(a2)),
28421
28433
  onViewCandidate: e1
28422
28434
  }, null, 8, ["selection-pile", "partial-results", "includeLazyErrors", "contest", "weight", "image-option", "show-submission-helper"]))
28423
28435
  ], 64);
@@ -28528,7 +28540,7 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
28528
28540
  e.summary && v.value ? (d(), h("div", j41, [
28529
28541
  f("img", {
28530
28542
  src: v.value,
28531
- alt: B(a)("js.components.AVResourceSection.alt_candidate"),
28543
+ alt: F(a)("js.components.AVResourceSection.alt_candidate"),
28532
28544
  class: "AVResourceSection--image"
28533
28545
  }, null, 8, q41)
28534
28546
  ])) : I("", !0),
@@ -28544,7 +28556,7 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
28544
28556
  f("h4", J41, N(l.value.title), 1),
28545
28557
  l.value.surplus ? (d(), K(C, {
28546
28558
  key: 0,
28547
- text: B(a)("js.components.AVResourceSection.and_more", {
28559
+ text: F(a)("js.components.AVResourceSection.and_more", {
28548
28560
  amount: l.value.surplus
28549
28561
  }),
28550
28562
  content: l.value.remaining,
@@ -28574,7 +28586,7 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
28574
28586
  class: $(
28575
28587
  g.form_content ? "AVResourceFields--checkbox-true" : "AVResourceFields--checkbox-false"
28576
28588
  ),
28577
- "aria-label": g.form_content ? B(a)("js.components.AVResourceSection.true") : B(a)("js.components.AVResourceSection.false")
28589
+ "aria-label": g.form_content ? F(a)("js.components.AVResourceSection.true") : F(a)("js.components.AVResourceSection.false")
28578
28590
  }, null, 8, ["icon", "class", "aria-label"])) : I("", !0)
28579
28591
  ], 2)),
28580
28592
  !e.summary && g.item_type !== "check_box" ? (d(), h("hr", Z41)) : I("", !0),
@@ -28592,7 +28604,7 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
28592
28604
  class: $(
28593
28605
  g.form_content ? "AVResourceFields--checkbox-true" : "AVResourceFields--checkbox-false"
28594
28606
  ),
28595
- "aria-label": g.form_content ? B(a)("js.components.AVResourceSection.true") : B(a)("js.components.AVResourceSection.false")
28607
+ "aria-label": g.form_content ? F(a)("js.components.AVResourceSection.true") : F(a)("js.components.AVResourceSection.false")
28596
28608
  }, null, 8, ["icon", "class", "aria-label"])
28597
28609
  ])) : g.item_type === "select" && m(g) ? (d(), h("div", X41, [
28598
28610
  e.summary ? (d(), h("span", e61, N(`${g.label[i.value]}:`), 1)) : I("", !0),
@@ -28609,7 +28621,7 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
28609
28621
  }, null, 8, t61)) : g.item_type !== "rich_text_area" && g.item_type !== "check_box" ? (d(), h("p", i61, [
28610
28622
  e.summary ? (d(), h("span", n61, N(`${g.label[i.value]}: `), 1)) : I("", !0),
28611
28623
  g.item_type === "date" || g.item_type === "date_time" ? (d(), h(a1, { key: 1 }, [
28612
- z1(N(B(t)(
28624
+ z1(N(F(t)(
28613
28625
  g.form_content,
28614
28626
  g.item_type === "date" ? null : "long"
28615
28627
  )), 1)