@muenchen/muc-patternlab-vue 8.2.0-beta.1 → 8.2.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -768,16 +768,23 @@ var mt = /* @__PURE__ */ I(dt, [["render", pt], ["__scopeId", "data-v-a337b11f"]
768
768
  } : void 0]), 1032, ["rating", "variant"]));
769
769
  }
770
770
  }), Ut = {
771
- class: "m-error-message form-error-message",
772
- tabindex: "0",
771
+ class: "m-error-message",
773
772
  role: "alert",
774
773
  "aria-live": "polite"
775
- }, Wt = /* @__PURE__ */ I(/* @__PURE__ */ d({
774
+ }, Wt = /* @__PURE__ */ d({
776
775
  __name: "FormErrorMessage",
777
776
  setup(e) {
778
- return (e, t) => (y(), a("span", Ut, [u(O(L), { icon: "warning--filled" }), o("span", null, [w(e.$slots, "default", {}, void 0, !0)])]));
777
+ return (e, t) => (y(), a("p", Ut, [
778
+ u(O(L), {
779
+ class: "icon--before",
780
+ icon: "warning--filled"
781
+ }),
782
+ t[0] ||= o("span", { class: "visually-hidden" }, "Fehler:", -1),
783
+ t[1] ||= l(),
784
+ w(e.$slots, "default")
785
+ ]));
779
786
  }
780
- }), [["__scopeId", "data-v-be5ca159"]]), Gt = {}, Kt = {
787
+ }), Gt = {}, Kt = {
781
788
  "aria-hidden": "true",
782
789
  width: "108",
783
790
  height: "56",
@@ -864,7 +871,8 @@ var Jt = /* @__PURE__ */ I(Gt, [["render", qt]]), Yt = {
864
871
  onDragover: F(x, ["prevent"]),
865
872
  onDragleave: F(C, ["prevent"]),
866
873
  onDrop: F(w, ["prevent"]),
867
- onClick: b
874
+ onClick: b,
875
+ onKeydown: [ie(b, ["enter"]), ie(b, ["space"])]
868
876
  }, [
869
877
  t.label ? (y(), a("p", Yt, D(t.label), 1)) : i("", !0),
870
878
  u(Jt),
@@ -893,7 +901,7 @@ var Jt = /* @__PURE__ */ I(Gt, [["render", qt]]), Yt = {
893
901
  }))
894
902
  ], 64));
895
903
  }
896
- }), [["__scopeId", "data-v-fdca4876"]]), Qt = ["id", "checked"], $t = ["for"], en = ["id"], tn = /* @__PURE__ */ d({
904
+ }), [["__scopeId", "data-v-b767117a"]]), Qt = ["id", "checked"], $t = ["for"], en = ["id"], tn = /* @__PURE__ */ d({
897
905
  __name: "MucCheckbox",
898
906
  props: /* @__PURE__ */ p({
899
907
  id: {},
@@ -1382,38 +1390,54 @@ var z = {
1382
1390
  for (var n = e.children[0]; e.firstChild;) e.removeChild(e.firstChild);
1383
1391
  return n;
1384
1392
  };
1385
- })(), gr = function(e, t) {
1386
- return typeof e == "function" ? e(mr(t), t) : e;
1387
- }, _r = function(e) {
1393
+ })(), gr = function(e) {
1388
1394
  return typeof e == "function" ? e() : e;
1389
- }, vr = function(e) {
1395
+ }, _r = function(e) {
1390
1396
  if (typeof e == "string") return e;
1391
1397
  if (typeof e == "object") {
1392
1398
  if ("trusted" in e) return e.trusted;
1393
1399
  if ("raw" in e) return e.raw;
1394
1400
  }
1395
1401
  return "";
1396
- }, yr = function(e) {
1402
+ }, vr = function(e) {
1397
1403
  if (typeof e == "string") return e;
1398
1404
  if (typeof e == "object") {
1399
1405
  if ("escaped" in e) return e.escaped;
1400
1406
  if ("trusted" in e) return e.trusted;
1401
1407
  }
1402
1408
  return "";
1403
- }, br = function(e, t) {
1404
- return e ? yr(t) : mr(t);
1405
- }, xr = function(e, t, n) {
1406
- e.innerHTML = br(t, n);
1407
- }, Sr = function(e, t) {
1409
+ }, yr = function(e, t) {
1410
+ return {
1411
+ id: e.id,
1412
+ highlighted: e.highlighted,
1413
+ labelClass: e.labelClass,
1414
+ labelDescription: _r(e.labelDescription),
1415
+ customProperties: e.customProperties,
1416
+ disabled: e.disabled,
1417
+ active: e.active,
1418
+ label: e.label,
1419
+ placeholder: e.placeholder,
1420
+ value: e.value,
1421
+ groupValue: e.group ? e.group.label : void 0,
1422
+ element: e.element,
1423
+ keyCode: t
1424
+ };
1425
+ }, br = function(e, t, n) {
1426
+ return typeof e == "function" ? e(mr(t), _r(t), n) : e;
1427
+ }, xr = function(e, t) {
1428
+ return e ? vr(t) : mr(t);
1429
+ }, Sr = function(e, t, n) {
1430
+ e.innerHTML = xr(t, n);
1431
+ }, Cr = function(e, t) {
1408
1432
  var n = e.value, r = e.label, i = r === void 0 ? n : r, a = t.value, o = t.label, s = o === void 0 ? a : o;
1409
- return vr(i).localeCompare(vr(s), [], {
1433
+ return _r(i).localeCompare(_r(s), [], {
1410
1434
  sensitivity: "base",
1411
1435
  ignorePunctuation: !0,
1412
1436
  numeric: !0
1413
1437
  });
1414
- }, Cr = function(e, t) {
1438
+ }, wr = function(e, t) {
1415
1439
  return e.rank - t.rank;
1416
- }, wr = function(e, t, n) {
1440
+ }, Tr = function(e, t, n) {
1417
1441
  n === void 0 && (n = null);
1418
1442
  var r = new CustomEvent(t, {
1419
1443
  detail: n,
@@ -1421,34 +1445,34 @@ var z = {
1421
1445
  cancelable: !0
1422
1446
  });
1423
1447
  return e.dispatchEvent(r);
1424
- }, Tr = function(e, t) {
1448
+ }, Er = function(e, t) {
1425
1449
  var n = Object.keys(e).sort(), r = Object.keys(t).sort();
1426
1450
  return n.filter(function(e) {
1427
1451
  return r.indexOf(e) < 0;
1428
1452
  });
1429
- }, Er = function(e) {
1430
- return Array.isArray(e) ? e : [e];
1431
1453
  }, Dr = function(e) {
1454
+ return Array.isArray(e) ? e : [e];
1455
+ }, Or = function(e) {
1432
1456
  return e && Array.isArray(e) ? e.map(function(e) {
1433
1457
  return `.${e}`;
1434
1458
  }).join("") : `.${e}`;
1435
1459
  }, H = function(e, t) {
1436
1460
  var n;
1437
- (n = e.classList).add.apply(n, Er(t));
1438
- }, Or = function(e, t) {
1461
+ (n = e.classList).add.apply(n, Dr(t));
1462
+ }, kr = function(e, t) {
1439
1463
  var n;
1440
- (n = e.classList).remove.apply(n, Er(t));
1441
- }, kr = function(e) {
1464
+ (n = e.classList).remove.apply(n, Dr(t));
1465
+ }, Ar = function(e) {
1442
1466
  if (e !== void 0) try {
1443
1467
  return JSON.parse(e);
1444
1468
  } catch {
1445
1469
  return e;
1446
1470
  }
1447
1471
  return {};
1448
- }, Ar = function(e, t, n) {
1472
+ }, jr = function(e, t, n) {
1449
1473
  var r = e.itemEl;
1450
- r && (Or(r, n), H(r, t));
1451
- }, jr = function() {
1474
+ r && (kr(r, n), H(r, t));
1475
+ }, Mr = function() {
1452
1476
  function e(e) {
1453
1477
  var t = e.element, n = e.type, r = e.classNames;
1454
1478
  this.element = t, this.classNames = r, this.type = n, this.isActive = !1;
@@ -1456,9 +1480,9 @@ var z = {
1456
1480
  return e.prototype.show = function() {
1457
1481
  return H(this.element, this.classNames.activeState), this.element.setAttribute("aria-expanded", "true"), this.isActive = !0, this;
1458
1482
  }, e.prototype.hide = function() {
1459
- return Or(this.element, this.classNames.activeState), this.element.setAttribute("aria-expanded", "false"), this.isActive = !1, this;
1483
+ return kr(this.element, this.classNames.activeState), this.element.setAttribute("aria-expanded", "false"), this.isActive = !1, this;
1460
1484
  }, e;
1461
- }(), Mr = function() {
1485
+ }(), Nr = function() {
1462
1486
  function e(e) {
1463
1487
  var t = e.element, n = e.type, r = e.classNames, i = e.position;
1464
1488
  this.element = t, this.classNames = r, this.type = n, this.position = i, this.isOpen = !1, this.isFlipped = !1, this.isDisabled = !1, this.isLoading = !1;
@@ -1473,13 +1497,17 @@ var z = {
1473
1497
  }, e.prototype.open = function(e, t) {
1474
1498
  H(this.element, this.classNames.openState), this.element.setAttribute("aria-expanded", "true"), this.isOpen = !0, this.shouldFlip(e, t) && (H(this.element, this.classNames.flippedState), this.isFlipped = !0);
1475
1499
  }, e.prototype.close = function() {
1476
- Or(this.element, this.classNames.openState), this.element.setAttribute("aria-expanded", "false"), this.removeActiveDescendant(), this.isOpen = !1, this.isFlipped &&= (Or(this.element, this.classNames.flippedState), !1);
1500
+ kr(this.element, this.classNames.openState), this.element.setAttribute("aria-expanded", "false"), this.removeActiveDescendant(), this.isOpen = !1, this.isFlipped &&= (kr(this.element, this.classNames.flippedState), !1);
1477
1501
  }, e.prototype.addFocusState = function() {
1478
1502
  H(this.element, this.classNames.focusState);
1479
1503
  }, e.prototype.removeFocusState = function() {
1480
- Or(this.element, this.classNames.focusState);
1504
+ kr(this.element, this.classNames.focusState);
1505
+ }, e.prototype.addInvalidState = function() {
1506
+ H(this.element, this.classNames.invalidState);
1507
+ }, e.prototype.removeInvalidState = function() {
1508
+ kr(this.element, this.classNames.invalidState);
1481
1509
  }, e.prototype.enable = function() {
1482
- Or(this.element, this.classNames.disabledState), this.element.removeAttribute("aria-disabled"), this.type === er.SelectOne && this.element.setAttribute("tabindex", "0"), this.isDisabled = !1;
1510
+ kr(this.element, this.classNames.disabledState), this.element.removeAttribute("aria-disabled"), this.type === er.SelectOne && this.element.setAttribute("tabindex", "0"), this.isDisabled = !1;
1483
1511
  }, e.prototype.disable = function() {
1484
1512
  H(this.element, this.classNames.disabledState), this.element.setAttribute("aria-disabled", "true"), this.type === er.SelectOne && this.element.setAttribute("tabindex", "-1"), this.isDisabled = !0;
1485
1513
  }, e.prototype.wrap = function(e) {
@@ -1491,9 +1519,9 @@ var z = {
1491
1519
  }, e.prototype.addLoadingState = function() {
1492
1520
  H(this.element, this.classNames.loadingState), this.element.setAttribute("aria-busy", "true"), this.isLoading = !0;
1493
1521
  }, e.prototype.removeLoadingState = function() {
1494
- Or(this.element, this.classNames.loadingState), this.element.removeAttribute("aria-busy"), this.isLoading = !1;
1522
+ kr(this.element, this.classNames.loadingState), this.element.removeAttribute("aria-busy"), this.isLoading = !1;
1495
1523
  }, e;
1496
- }(), Nr = function() {
1524
+ }(), Pr = function() {
1497
1525
  function e(e) {
1498
1526
  var t = e.element, n = e.type, r = e.classNames, i = e.preventPaste;
1499
1527
  this.element = t, this.type = n, this.classNames = r, this.preventPaste = i, this.isFocussed = this.element.isEqualNode(document.activeElement), this.isDisabled = t.disabled, this._onPaste = this._onPaste.bind(this), this._onInput = this._onInput.bind(this), this._onFocus = this._onFocus.bind(this), this._onBlur = this._onBlur.bind(this);
@@ -1530,14 +1558,20 @@ var z = {
1530
1558
  }, e.prototype.clear = function(e) {
1531
1559
  return e === void 0 && (e = !0), this.element.value = "", e && this.setWidth(), this;
1532
1560
  }, e.prototype.setWidth = function() {
1533
- var e = this.element;
1534
- e.style.minWidth = `${e.placeholder.length + 1}ch`, e.style.width = `${e.value.length + 1}ch`;
1561
+ var e = this.element, t = e.value, n = e.placeholder, r = 0, i = 0;
1562
+ if (t || n) {
1563
+ var a = document.createElement("span");
1564
+ a.style.position = "absolute", a.style.visibility = "hidden", a.style.whiteSpace = "pre", a.style.height = "auto", a.style.width = "auto", a.style.minWidth = "1ch", H(a, Array.from(e.classList)), e.after(a);
1565
+ var o = parseFloat(getComputedStyle(a).width);
1566
+ n && (a.innerText = n, r = parseFloat(getComputedStyle(a).width) / o), t && (a.innerText = t, i = parseFloat(getComputedStyle(a).width) / o), a.remove();
1567
+ }
1568
+ e.style.minWidth = `${Math.ceil(r) + 1}ch`, e.style.width = `${Math.ceil(i) + 1}ch`;
1535
1569
  }, e.prototype.setActiveDescendant = function(e) {
1536
1570
  this.element.setAttribute("aria-activedescendant", e);
1537
1571
  }, e.prototype.removeActiveDescendant = function() {
1538
1572
  this.element.removeAttribute("aria-activedescendant");
1539
1573
  }, e.prototype._onInput = function() {
1540
- this.type !== er.SelectOne && this.setWidth();
1574
+ this.setWidth();
1541
1575
  }, e.prototype._onPaste = function(e) {
1542
1576
  this.preventPaste && e.preventDefault();
1543
1577
  }, e.prototype._onFocus = function() {
@@ -1545,7 +1579,7 @@ var z = {
1545
1579
  }, e.prototype._onBlur = function() {
1546
1580
  this.isFocussed = !1;
1547
1581
  }, e;
1548
- }(), Pr = 4, Fr = function() {
1582
+ }(), Fr = 4, Ir = function() {
1549
1583
  function e(e) {
1550
1584
  this.element = e.element, this.scrollPos = this.element.scrollTop, this.height = this.element.offsetHeight;
1551
1585
  }
@@ -1569,12 +1603,12 @@ var z = {
1569
1603
  var r = (e - n) / t, i = r > 1 ? r : 1;
1570
1604
  this.element.scrollTop = e - i;
1571
1605
  }, e.prototype._animateScroll = function(e, t) {
1572
- var n = this, r = Pr, i = this.element.scrollTop, a = !1;
1606
+ var n = this, r = Fr, i = this.element.scrollTop, a = !1;
1573
1607
  t > 0 ? (this._scrollDown(i, r, e), i < e && (a = !0)) : (this._scrollUp(i, r, e), i > e && (a = !0)), a && requestAnimationFrame(function() {
1574
1608
  n._animateScroll(e, t);
1575
1609
  });
1576
1610
  }, e;
1577
- }(), Ir = function() {
1611
+ }(), Lr = function() {
1578
1612
  function e(e) {
1579
1613
  var t = e.element, n = e.classNames;
1580
1614
  this.element = t, this.classNames = n, this.isDisabled = !1;
@@ -1607,7 +1641,7 @@ var z = {
1607
1641
  t && e.setAttribute("data-choice-orig-style", t), e.setAttribute("data-choice", "active");
1608
1642
  }, e.prototype.reveal = function() {
1609
1643
  var e = this.element;
1610
- Or(e, this.classNames.input), e.hidden = !1, e.removeAttribute("tabindex");
1644
+ kr(e, this.classNames.input), e.hidden = !1, e.removeAttribute("tabindex");
1611
1645
  var t = e.getAttribute("data-choice-orig-style");
1612
1646
  t ? (e.removeAttribute("data-choice-orig-style"), e.setAttribute("style", t)) : e.removeAttribute("style"), e.removeAttribute("data-choice");
1613
1647
  }, e.prototype.enable = function() {
@@ -1615,24 +1649,24 @@ var z = {
1615
1649
  }, e.prototype.disable = function() {
1616
1650
  this.element.setAttribute("disabled", ""), this.element.disabled = !0, this.isDisabled = !0;
1617
1651
  }, e.prototype.triggerEvent = function(e, t) {
1618
- wr(this.element, e, t || {});
1652
+ Tr(this.element, e, t || {});
1619
1653
  }, e;
1620
- }(), Lr = function(e) {
1654
+ }(), Rr = function(e) {
1621
1655
  Zn(t, e);
1622
1656
  function t() {
1623
1657
  return e !== null && e.apply(this, arguments) || this;
1624
1658
  }
1625
1659
  return t;
1626
- }(Ir), Rr = function(e, t) {
1660
+ }(Lr), zr = function(e, t) {
1627
1661
  return t === void 0 && (t = !0), e === void 0 ? t : !!e;
1628
- }, zr = function(e) {
1662
+ }, Br = function(e) {
1629
1663
  if (typeof e == "string" && (e = e.split(" ").filter(function(e) {
1630
1664
  return e.length;
1631
1665
  })), Array.isArray(e) && e.length) return e;
1632
- }, Br = function(e, t, n) {
1666
+ }, Vr = function(e, t, n) {
1633
1667
  if (n === void 0 && (n = !0), typeof e == "string") {
1634
1668
  var r = mr(e);
1635
- return Br({
1669
+ return Vr({
1636
1670
  value: e,
1637
1671
  label: n || r === e ? e : {
1638
1672
  escaped: r,
@@ -1645,11 +1679,11 @@ var z = {
1645
1679
  if ("choices" in i) {
1646
1680
  if (!t) throw TypeError("optGroup is not allowed");
1647
1681
  var a = i, o = a.choices.map(function(e) {
1648
- return Br(e, !1);
1682
+ return Vr(e, !1);
1649
1683
  });
1650
1684
  return {
1651
1685
  id: 0,
1652
- label: vr(a.label) || a.value,
1686
+ label: _r(a.label) || a.value,
1653
1687
  active: !!o.length,
1654
1688
  disabled: !!a.disabled,
1655
1689
  choices: o
@@ -1663,24 +1697,24 @@ var z = {
1663
1697
  rank: 0,
1664
1698
  value: s.value,
1665
1699
  label: s.label || s.value,
1666
- active: Rr(s.active),
1667
- selected: Rr(s.selected, !1),
1668
- disabled: Rr(s.disabled, !1),
1669
- placeholder: Rr(s.placeholder, !1),
1700
+ active: zr(s.active),
1701
+ selected: zr(s.selected, !1),
1702
+ disabled: zr(s.disabled, !1),
1703
+ placeholder: zr(s.placeholder, !1),
1670
1704
  highlighted: !1,
1671
- labelClass: zr(s.labelClass),
1705
+ labelClass: Br(s.labelClass),
1672
1706
  labelDescription: s.labelDescription,
1673
1707
  customProperties: s.customProperties
1674
1708
  };
1675
- }, Vr = function(e) {
1676
- return e.tagName === "INPUT";
1677
1709
  }, Hr = function(e) {
1678
- return e.tagName === "SELECT";
1710
+ return e.tagName === "INPUT";
1679
1711
  }, Ur = function(e) {
1680
- return e.tagName === "OPTION";
1712
+ return e.tagName === "SELECT";
1681
1713
  }, Wr = function(e) {
1682
- return e.tagName === "OPTGROUP";
1714
+ return e.tagName === "OPTION";
1683
1715
  }, Gr = function(e) {
1716
+ return e.tagName === "OPTGROUP";
1717
+ }, Kr = function(e) {
1684
1718
  Zn(t, e);
1685
1719
  function t(t) {
1686
1720
  var n = t.element, r = t.classNames, i = t.template, a = t.extractPlaceholder, o = e.call(this, {
@@ -1707,7 +1741,7 @@ var z = {
1707
1741
  }, t.prototype.optionsAsChoices = function() {
1708
1742
  var e = this, t = [];
1709
1743
  return this.element.querySelectorAll(":scope > option, :scope > optgroup").forEach(function(n) {
1710
- Ur(n) ? t.push(e._optionToChoice(n)) : Wr(n) && t.push(e._optgroupToChoice(n));
1744
+ Wr(n) ? t.push(e._optionToChoice(n)) : Gr(n) && t.push(e._optgroupToChoice(n));
1711
1745
  }), t;
1712
1746
  }, t.prototype._optionToChoice = function(e) {
1713
1747
  return !e.hasAttribute("value") && e.hasAttribute("placeholder") && (e.setAttribute("value", ""), e.value = ""), {
@@ -1723,9 +1757,9 @@ var z = {
1723
1757
  disabled: e.disabled,
1724
1758
  highlighted: !1,
1725
1759
  placeholder: this.extractPlaceholder && (!e.value || e.hasAttribute("placeholder")),
1726
- labelClass: e.dataset.labelClass === void 0 ? void 0 : zr(e.dataset.labelClass),
1727
- labelDescription: e.dataset.labelDescription === void 0 ? void 0 : e.dataset.labelDescription,
1728
- customProperties: kr(e.dataset.customProperties)
1760
+ labelClass: e.dataset.labelClass === void 0 ? void 0 : Br(e.dataset.labelClass),
1761
+ labelDescription: e.dataset.labelDescription === void 0 ? void 0 : { trusted: e.dataset.labelDescription },
1762
+ customProperties: Ar(e.dataset.customProperties)
1729
1763
  };
1730
1764
  }, t.prototype._optgroupToChoice = function(e) {
1731
1765
  var t = this, n = e.querySelectorAll("option"), r = Array.from(n).map(function(e) {
@@ -1740,7 +1774,7 @@ var z = {
1740
1774
  choices: r
1741
1775
  };
1742
1776
  }, t;
1743
- }(Ir), Kr = {
1777
+ }(Lr), qr = {
1744
1778
  items: [],
1745
1779
  choices: [],
1746
1780
  silent: !1,
@@ -1764,6 +1798,7 @@ var z = {
1764
1798
  paste: !0,
1765
1799
  searchEnabled: !0,
1766
1800
  searchChoices: !0,
1801
+ searchDisabledChoices: !1,
1767
1802
  searchFloor: 1,
1768
1803
  searchResultLimit: 4,
1769
1804
  searchFields: ["label", "value"],
@@ -1771,7 +1806,7 @@ var z = {
1771
1806
  resetScrollPosition: !0,
1772
1807
  shouldSort: !0,
1773
1808
  shouldSortItems: !1,
1774
- sorter: Sr,
1809
+ sorter: Cr,
1775
1810
  shadowRoot: null,
1776
1811
  placeholder: !0,
1777
1812
  placeholderValue: null,
@@ -1779,6 +1814,7 @@ var z = {
1779
1814
  prependValue: null,
1780
1815
  appendValue: null,
1781
1816
  renderSelectedChoices: "auto",
1817
+ searchRenderSelectedChoices: !0,
1782
1818
  loadingText: "Loading...",
1783
1819
  noResultsText: "No results found",
1784
1820
  noChoicesText: "No choices to choose from",
@@ -1791,8 +1827,8 @@ var z = {
1791
1827
  removeItemIconText: function() {
1792
1828
  return "Remove item";
1793
1829
  },
1794
- removeItemLabelText: function(e) {
1795
- return `Remove item: ${e}`;
1830
+ removeItemLabelText: function(e, t, n) {
1831
+ return `Remove item: ${n ? mr(n.label) : e}`;
1796
1832
  },
1797
1833
  maxItemText: function(e) {
1798
1834
  return `Only ${e} values can be added`;
@@ -1830,17 +1866,18 @@ var z = {
1830
1866
  selectedState: ["is-selected"],
1831
1867
  flippedState: ["is-flipped"],
1832
1868
  loadingState: ["is-loading"],
1869
+ invalidState: ["is-invalid"],
1833
1870
  notice: ["choices__notice"],
1834
1871
  addChoice: ["choices__item--selectable", "add-choice"],
1835
1872
  noResults: ["has-no-results"],
1836
1873
  noChoices: ["has-no-choices"]
1837
1874
  },
1838
1875
  appendGroupInSearch: !1
1839
- }, qr = function(e) {
1876
+ }, Jr = function(e) {
1840
1877
  var t = e.itemEl;
1841
1878
  t && (t.remove(), e.itemEl = void 0);
1842
1879
  };
1843
- function Jr(e, t, n) {
1880
+ function Yr(e, t, n) {
1844
1881
  var r = e, i = !0;
1845
1882
  switch (t.type) {
1846
1883
  case z.ADD_ITEM:
@@ -1854,14 +1891,14 @@ function Jr(e, t, n) {
1854
1891
  if (a) {
1855
1892
  a.selected = !1, a.removeAttribute("selected");
1856
1893
  var o = a.parentElement;
1857
- o && Hr(o) && o.type === er.SelectOne && (o.value = "");
1894
+ o && Ur(o) && o.type === er.SelectOne && (o.value = "");
1858
1895
  }
1859
- qr(t.item), r = r.filter(function(e) {
1896
+ Jr(t.item), r = r.filter(function(e) {
1860
1897
  return e.id !== t.item.id;
1861
1898
  });
1862
1899
  break;
1863
1900
  case z.REMOVE_CHOICE:
1864
- qr(t.choice), r = r.filter(function(e) {
1901
+ Jr(t.choice), r = r.filter(function(e) {
1865
1902
  return e.id !== t.choice.id;
1866
1903
  });
1867
1904
  break;
@@ -1869,7 +1906,7 @@ function Jr(e, t, n) {
1869
1906
  var s = t.highlighted, c = r.find(function(e) {
1870
1907
  return e.id === t.item.id;
1871
1908
  });
1872
- c && c.highlighted !== s && (c.highlighted = s, n && Ar(c, s ? n.classNames.highlightedState : n.classNames.selectedState, s ? n.classNames.selectedState : n.classNames.highlightedState));
1909
+ c && c.highlighted !== s && (c.highlighted = s, n && jr(c, s ? n.classNames.highlightedState : n.classNames.selectedState, s ? n.classNames.selectedState : n.classNames.highlightedState));
1873
1910
  break;
1874
1911
  default:
1875
1912
  i = !1;
@@ -1880,7 +1917,7 @@ function Jr(e, t, n) {
1880
1917
  update: i
1881
1918
  };
1882
1919
  }
1883
- function Yr(e, t) {
1920
+ function Xr(e, t) {
1884
1921
  var n = e, r = !0;
1885
1922
  switch (t.type) {
1886
1923
  case z.ADD_GROUP:
@@ -1898,7 +1935,7 @@ function Yr(e, t) {
1898
1935
  update: r
1899
1936
  };
1900
1937
  }
1901
- function Xr(e, t, n) {
1938
+ function Zr(e, t, n) {
1902
1939
  var r = e, i = !0;
1903
1940
  switch (t.type) {
1904
1941
  case z.ADD_CHOICE:
@@ -1941,11 +1978,11 @@ function Xr(e, t, n) {
1941
1978
  update: i
1942
1979
  };
1943
1980
  }
1944
- var Zr = {
1945
- groups: Yr,
1946
- items: Jr,
1947
- choices: Xr
1948
- }, Qr = function() {
1981
+ var Qr = {
1982
+ groups: Xr,
1983
+ items: Yr,
1984
+ choices: Zr
1985
+ }, $r = function() {
1949
1986
  function e(e) {
1950
1987
  this._state = this.defaultState, this._listeners = [], this._txn = 0, this._context = e;
1951
1988
  }
@@ -1975,8 +2012,8 @@ var Zr = {
1975
2012
  return this._listeners.push(e), this;
1976
2013
  }, e.prototype.dispatch = function(e) {
1977
2014
  var t = this, n = this._state, r = !1, i = this._changeSet || this.changeSet(!1);
1978
- Object.keys(Zr).forEach(function(a) {
1979
- var o = Zr[a](n[a], e, t._context);
2015
+ Object.keys(Qr).forEach(function(a) {
2016
+ var o = Qr[a](n[a], e, t._context);
1980
2017
  o.update && (r = !0, i[a] = !0, n[a] = o.state);
1981
2018
  }), r && (this._txn ? this._changeSet = i : this._listeners.forEach(function(e) {
1982
2019
  return e(i);
@@ -2029,8 +2066,9 @@ var Zr = {
2029
2066
  configurable: !0
2030
2067
  }), Object.defineProperty(e.prototype, "searchableChoices", {
2031
2068
  get: function() {
2032
- return this.choices.filter(function(e) {
2033
- return !e.disabled && !e.placeholder;
2069
+ var e = this._context;
2070
+ return this.choices.filter(function(t) {
2071
+ return !t.placeholder && (e.searchDisabledChoices || !t.disabled);
2034
2072
  });
2035
2073
  },
2036
2074
  enumerable: !1,
@@ -2070,15 +2108,15 @@ var Zr = {
2070
2108
  addChoice: "add-choice",
2071
2109
  generic: ""
2072
2110
  };
2073
- function $r(e, t, n) {
2074
- return (t = ri(t)) in e ? Object.defineProperty(e, t, {
2111
+ function ei(e, t, n) {
2112
+ return (t = ii(t)) in e ? Object.defineProperty(e, t, {
2075
2113
  value: n,
2076
2114
  enumerable: !0,
2077
2115
  configurable: !0,
2078
2116
  writable: !0
2079
2117
  }) : e[t] = n, e;
2080
2118
  }
2081
- function ei(e, t) {
2119
+ function ti(e, t) {
2082
2120
  var n = Object.keys(e);
2083
2121
  if (Object.getOwnPropertySymbols) {
2084
2122
  var r = Object.getOwnPropertySymbols(e);
@@ -2088,39 +2126,38 @@ function ei(e, t) {
2088
2126
  }
2089
2127
  return n;
2090
2128
  }
2091
- function ti(e) {
2129
+ function ni(e) {
2092
2130
  for (var t = 1; t < arguments.length; t++) {
2093
2131
  var n = arguments[t] == null ? {} : arguments[t];
2094
- t % 2 ? ei(Object(n), !0).forEach(function(t) {
2095
- $r(e, t, n[t]);
2096
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ei(Object(n)).forEach(function(t) {
2132
+ t % 2 ? ti(Object(n), !0).forEach(function(t) {
2133
+ ei(e, t, n[t]);
2134
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ti(Object(n)).forEach(function(t) {
2097
2135
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2098
2136
  });
2099
2137
  }
2100
2138
  return e;
2101
2139
  }
2102
- function ni(e, t) {
2140
+ function ri(e, t) {
2103
2141
  if (typeof e != "object" || !e) return e;
2104
2142
  var n = e[Symbol.toPrimitive];
2105
2143
  if (n !== void 0) {
2106
- var r = n.call(e, t || "default");
2144
+ var r = n.call(e, t);
2107
2145
  if (typeof r != "object") return r;
2108
2146
  throw TypeError("@@toPrimitive must return a primitive value.");
2109
2147
  }
2110
2148
  return (t === "string" ? String : Number)(e);
2111
2149
  }
2112
- function ri(e) {
2113
- var t = ni(e, "string");
2150
+ function ii(e) {
2151
+ var t = ri(e, "string");
2114
2152
  return typeof t == "symbol" ? t : t + "";
2115
2153
  }
2116
- function ii(e) {
2154
+ function ai(e) {
2117
2155
  return Array.isArray ? Array.isArray(e) : mi(e) === "[object Array]";
2118
2156
  }
2119
- var ai = Infinity;
2120
2157
  function oi(e) {
2121
2158
  if (typeof e == "string") return e;
2122
2159
  let t = e + "";
2123
- return t == "0" && 1 / e == -ai ? "-0" : t;
2160
+ return t == "0" && 1 / e == -Infinity ? "-0" : t;
2124
2161
  }
2125
2162
  function si(e) {
2126
2163
  return e == null ? "" : oi(e);
@@ -2172,7 +2209,7 @@ var hi = "Incorrect 'index' type", gi = (e) => `Invalid value for key ${e}`, _i
2172
2209
  };
2173
2210
  function Si(e) {
2174
2211
  let t = null, n = null, r = null, i = 1, a = null;
2175
- if (ci(e) || ii(e)) r = e, t = Ci(e), n = wi(e);
2212
+ if (ci(e) || ai(e)) r = e, t = Ci(e), n = wi(e);
2176
2213
  else {
2177
2214
  if (!bi.call(e, "name")) throw Error(vi("name"));
2178
2215
  let o = e.name;
@@ -2188,10 +2225,10 @@ function Si(e) {
2188
2225
  };
2189
2226
  }
2190
2227
  function Ci(e) {
2191
- return ii(e) ? e : e.split(".");
2228
+ return ai(e) ? e : e.split(".");
2192
2229
  }
2193
2230
  function wi(e) {
2194
- return ii(e) ? e.join(".") : e;
2231
+ return ai(e) ? e.join(".") : e;
2195
2232
  }
2196
2233
  function Ti(e, t) {
2197
2234
  let n = [], r = !1, i = (e, t, a) => {
@@ -2200,7 +2237,7 @@ function Ti(e, t) {
2200
2237
  let o = e[t[a]];
2201
2238
  if (!W(o)) return;
2202
2239
  if (a === t.length - 1 && (ci(o) || li(o) || ui(o))) n.push(si(o));
2203
- else if (ii(o)) {
2240
+ else if (ai(o)) {
2204
2241
  r = !0;
2205
2242
  for (let e = 0, n = o.length; e < n; e += 1) i(o[e], t, a + 1);
2206
2243
  } else t.length && i(o, t, a + 1);
@@ -2228,7 +2265,7 @@ var Ei = {
2228
2265
  ignoreLocation: !1,
2229
2266
  ignoreFieldNorm: !1,
2230
2267
  fieldNormWeight: 1
2231
- }, G = ti(ti(ti(ti({}, Di), Ei), Oi), ki), Ai = /[^ ]+/g;
2268
+ }, G = ni(ni(ni(ni({}, Di), Ei), Oi), ki), Ai = /[^ ]+/g;
2232
2269
  function ji(e = 1, t = 3) {
2233
2270
  let n = /* @__PURE__ */ new Map(), r = 10 ** t;
2234
2271
  return {
@@ -2296,7 +2333,7 @@ var Mi = class {
2296
2333
  this.keys.forEach((t, r) => {
2297
2334
  let i = t.getFn ? t.getFn(e) : this.getFn(e, t.path);
2298
2335
  if (W(i)) {
2299
- if (ii(i)) {
2336
+ if (ai(i)) {
2300
2337
  let e = [], t = [{
2301
2338
  nestedArrIndex: -1,
2302
2339
  value: i
@@ -2310,7 +2347,7 @@ var Mi = class {
2310
2347
  n: this.norm.get(r)
2311
2348
  };
2312
2349
  e.push(t);
2313
- } else ii(r) && r.forEach((e, n) => {
2350
+ } else ai(r) && r.forEach((e, n) => {
2314
2351
  t.push({
2315
2352
  nestedArrIndex: n,
2316
2353
  value: e
@@ -2779,7 +2816,7 @@ var sa = {
2779
2816
  }, ca = {
2780
2817
  PATH: "$path",
2781
2818
  PATTERN: "$val"
2782
- }, la = (e) => !!(e[sa.AND] || e[sa.OR]), ua = (e) => !!e[ca.PATH], da = (e) => !ii(e) && di(e) && !la(e), fa = (e) => ({ [sa.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
2819
+ }, la = (e) => !!(e[sa.AND] || e[sa.OR]), ua = (e) => !!e[ca.PATH], da = (e) => !ai(e) && di(e) && !la(e), fa = (e) => ({ [sa.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
2783
2820
  function pa(e, t, { auto: n = !0 } = {}) {
2784
2821
  let r = (e) => {
2785
2822
  let i = Object.keys(e), a = ua(e);
@@ -2799,7 +2836,7 @@ function pa(e, t, { auto: n = !0 } = {}) {
2799
2836
  };
2800
2837
  return i.forEach((t) => {
2801
2838
  let n = e[t];
2802
- ii(n) && n.forEach((e) => {
2839
+ ai(n) && n.forEach((e) => {
2803
2840
  o.children.push(r(e));
2804
2841
  });
2805
2842
  }), o;
@@ -2843,7 +2880,7 @@ function _a(e, t, { includeMatches: n = G.includeMatches, includeScore: r = G.in
2843
2880
  }
2844
2881
  var va = class {
2845
2882
  constructor(e, t = {}, n) {
2846
- this.options = ti(ti({}, G), t), this.options.useExtendedSearch, this._keyStore = new xi(this.options.keys), this.setCollection(e, n);
2883
+ this.options = ni(ni({}, G), t), this.options.useExtendedSearch, this._keyStore = new xi(this.options.keys), this.setCollection(e, n);
2847
2884
  }
2848
2885
  setCollection(e, t) {
2849
2886
  if (this._docs = e, t && !(t instanceof Mi)) throw Error(hi);
@@ -2949,7 +2986,7 @@ var va = class {
2949
2986
  _findMatches({ key: e, value: t, searcher: n }) {
2950
2987
  if (!W(t)) return [];
2951
2988
  let r = [];
2952
- if (ii(t)) t.forEach(({ v: t, i, n: a }) => {
2989
+ if (ai(t)) t.forEach(({ v: t, i, n: a }) => {
2953
2990
  if (!W(t)) return;
2954
2991
  let { isMatch: o, score: s, indices: c } = n.searchIn(t);
2955
2992
  o && r.push({
@@ -3006,7 +3043,7 @@ var xa = function(e) {
3006
3043
  return !0;
3007
3044
  }, Sa = function(e, t, n) {
3008
3045
  var r = e.dataset, i = t.customProperties, a = t.labelClass, o = t.labelDescription;
3009
- a && (r.labelClass = Er(a).join(" ")), o && (r.labelDescription = o), n && i && (typeof i == "string" ? r.customProperties = i : typeof i == "object" && !xa(i) && (r.customProperties = JSON.stringify(i)));
3046
+ a && (r.labelClass = Dr(a).join(" ")), o && (r.labelDescription = _r(o)), n && i && (typeof i == "string" ? r.customProperties = i : typeof i == "object" && !xa(i) && (r.customProperties = JSON.stringify(i)));
3010
3047
  }, Ca = function(e, t, n) {
3011
3048
  var r = t && e.querySelector(`label[for='${t}']`), i = r && r.innerText;
3012
3049
  i && n.setAttribute("aria-label", i);
@@ -3025,20 +3062,22 @@ var xa = function(e) {
3025
3062
  },
3026
3063
  placeholder: function(e, t) {
3027
3064
  var n = e.allowHTML, r = e.classNames.placeholder, i = document.createElement("div");
3028
- return H(i, r), xr(i, n, t), i;
3065
+ return H(i, r), Sr(i, n, t), i;
3029
3066
  },
3030
3067
  item: function(e, t, n) {
3031
- var r = e.allowHTML, i = e.removeItemButtonAlignLeft, a = e.removeItemIconText, o = e.removeItemLabelText, s = e.classNames, c = s.item, l = s.button, u = s.highlightedState, d = s.itemSelectable, f = s.placeholder, p = vr(t.value), m = document.createElement("div");
3068
+ var r = e.allowHTML, i = e.removeItemButtonAlignLeft, a = e.removeItemIconText, o = e.removeItemLabelText, s = e.classNames, c = s.item, l = s.button, u = s.highlightedState, d = s.itemSelectable, f = s.placeholder, p = _r(t.value), m = document.createElement("div");
3032
3069
  if (H(m, c), t.labelClass) {
3033
3070
  var h = document.createElement("span");
3034
- xr(h, r, t.label), H(h, t.labelClass), m.appendChild(h);
3035
- } else xr(m, r, t.label);
3071
+ Sr(h, r, t.label), H(h, t.labelClass), m.appendChild(h);
3072
+ } else Sr(m, r, t.label);
3036
3073
  if (m.dataset.item = "", m.dataset.id = t.id, m.dataset.value = p, Sa(m, t, !0), (t.disabled || this.containerOuter.isDisabled) && m.setAttribute("aria-disabled", "true"), this._isSelectElement && (m.setAttribute("aria-selected", "true"), m.setAttribute("role", "option")), t.placeholder && (H(m, f), m.dataset.placeholder = ""), H(m, t.highlighted ? u : d), n) {
3037
- t.disabled && Or(m, d), m.dataset.deletable = "";
3074
+ t.disabled && kr(m, d), m.dataset.deletable = "";
3038
3075
  var g = document.createElement("button");
3039
- g.type = "button", H(g, l), xr(g, !0, gr(a, t.value));
3040
- var _ = gr(o, t.value);
3041
- _ && g.setAttribute("aria-label", _), g.dataset.button = "", i ? m.insertAdjacentElement("afterbegin", g) : m.appendChild(g);
3076
+ g.type = "button", H(g, l);
3077
+ var _ = yr(t);
3078
+ Sr(g, !0, br(a, t.value, _));
3079
+ var v = br(o, t.value, _);
3080
+ v && g.setAttribute("aria-label", v), g.dataset.button = "", i ? m.insertAdjacentElement("afterbegin", g) : m.appendChild(g);
3042
3081
  }
3043
3082
  return m;
3044
3083
  },
@@ -3047,26 +3086,26 @@ var xa = function(e) {
3047
3086
  return H(r, n), t || r.setAttribute("aria-multiselectable", "true"), r.setAttribute("role", "listbox"), r;
3048
3087
  },
3049
3088
  choiceGroup: function(e, t) {
3050
- var n = e.allowHTML, r = e.classNames, i = r.group, a = r.groupHeading, o = r.itemDisabled, s = t.id, c = t.label, l = t.disabled, u = vr(c), d = document.createElement("div");
3089
+ var n = e.allowHTML, r = e.classNames, i = r.group, a = r.groupHeading, o = r.itemDisabled, s = t.id, c = t.label, l = t.disabled, u = _r(c), d = document.createElement("div");
3051
3090
  H(d, i), l && H(d, o), d.setAttribute("role", "group"), d.dataset.group = "", d.dataset.id = s, d.dataset.value = u, l && d.setAttribute("aria-disabled", "true");
3052
3091
  var f = document.createElement("div");
3053
- return H(f, a), xr(f, n, c || ""), d.appendChild(f), d;
3092
+ return H(f, a), Sr(f, n, c || ""), d.appendChild(f), d;
3054
3093
  },
3055
3094
  choice: function(e, t, n, r) {
3056
- var i = e.allowHTML, a = e.classNames, o = a.item, s = a.itemChoice, c = a.itemSelectable, l = a.selectedState, u = a.itemDisabled, d = a.description, f = a.placeholder, p = t.label, m = vr(t.value), h = document.createElement("div");
3057
- h.id = t.elementId, H(h, o), H(h, s), r && typeof p == "string" && (p = br(i, p), p += ` (${r})`, p = { trusted: p });
3095
+ var i = e.allowHTML, a = e.classNames, o = a.item, s = a.itemChoice, c = a.itemSelectable, l = a.selectedState, u = a.itemDisabled, d = a.description, f = a.placeholder, p = t.label, m = _r(t.value), h = document.createElement("div");
3096
+ h.id = t.elementId, H(h, o), H(h, s), r && typeof p == "string" && (p = xr(i, p), p += ` (${r})`, p = { trusted: p });
3058
3097
  var g = h;
3059
3098
  if (t.labelClass) {
3060
3099
  var _ = document.createElement("span");
3061
- xr(_, i, p), H(_, t.labelClass), g = _, h.appendChild(_);
3062
- } else xr(h, i, p);
3100
+ Sr(_, i, p), H(_, t.labelClass), g = _, h.appendChild(_);
3101
+ } else Sr(h, i, p);
3063
3102
  if (t.labelDescription) {
3064
3103
  var v = `${t.elementId}-description`;
3065
3104
  g.setAttribute("aria-describedby", v);
3066
3105
  var y = document.createElement("span");
3067
- xr(y, i, t.labelDescription), y.id = v, H(y, d), h.appendChild(y);
3106
+ Sr(y, i, t.labelDescription), y.id = v, H(y, d), h.appendChild(y);
3068
3107
  }
3069
- return t.selected && H(h, l), t.placeholder && H(h, f), h.setAttribute("role", t.group ? "treeitem" : "option"), h.dataset.choice = "", h.dataset.id = t.id, h.dataset.value = m, n && (h.dataset.selectText = n), t.group && (h.dataset.groupId = `${t.group.id}`), Sa(h, t, !1), t.disabled ? (H(h, u), h.dataset.choiceDisabled = "", h.setAttribute("aria-disabled", "true")) : (H(h, c), h.dataset.choiceSelectable = ""), h;
3108
+ return t.selected && H(h, l), t.placeholder && H(h, f), h.setAttribute("role", t.group ? "treeitem" : "option"), h.dataset.choice = "", h.dataset.id = t.id, h.dataset.value = m, n && (h.dataset.selectText = n), t.group && (h.dataset.groupId = `${t.group.id}`), Sa(h, t, !1), t.disabled ? (H(h, u), h.dataset.choiceDisabled = "", h.setAttribute("aria-disabled", "true")) : (H(h, c), h.dataset.choiceSelectable = "", h.setAttribute("aria-selected", t.selected ? "true" : "false")), h;
3070
3109
  },
3071
3110
  input: function(e, t) {
3072
3111
  var n = e.classNames, r = n.input, i = n.inputCloned, a = e.labelId, o = document.createElement("input");
@@ -3080,7 +3119,7 @@ var xa = function(e) {
3080
3119
  var r = e.classNames, i = r.item, a = r.itemChoice, o = r.addChoice, s = r.noResults, c = r.noChoices, l = r.notice;
3081
3120
  n === void 0 && (n = U.generic);
3082
3121
  var u = document.createElement("div");
3083
- switch (xr(u, !0, t), H(u, i), H(u, a), H(u, l), n) {
3122
+ switch (Sr(u, !0, t), H(u, i), H(u, a), H(u, l), n) {
3084
3123
  case U.addChoice:
3085
3124
  H(u, o);
3086
3125
  break;
@@ -3094,7 +3133,7 @@ var xa = function(e) {
3094
3133
  return n === U.addChoice && (u.dataset.choiceSelectable = "", u.dataset.choice = ""), u;
3095
3134
  },
3096
3135
  option: function(e) {
3097
- var t = vr(e.label), n = new Option(t, e.value, !1, e.selected);
3136
+ var t = _r(e.label), n = new Option(t, e.value, !1, e.selected);
3098
3137
  return Sa(n, e, !0), n.disabled = e.disabled, e.selected && n.setAttribute("selected", ""), n;
3099
3138
  }
3100
3139
  }, Ta = "-ms-scroll-limit" in document.documentElement.style && "-ms-ime-align" in document.documentElement.style, Ea = {}, Da = function(e) {
@@ -3113,29 +3152,29 @@ var xa = function(e) {
3113
3152
  var o = a.shadowRoot || document.documentElement;
3114
3153
  this._docRoot = o;
3115
3154
  var s = typeof t == "string" ? o.querySelector(t) : t;
3116
- if (!s || typeof s != "object" || !(Vr(s) || Hr(s))) throw TypeError(!s && typeof t == "string" ? `Selector ${t} failed to find an element` : "Expected one of the following types text|select-one|select-multiple");
3155
+ if (!s || typeof s != "object" || !(Hr(s) || Ur(s))) throw TypeError(!s && typeof t == "string" ? `Selector ${t} failed to find an element` : "Expected one of the following types text|select-one|select-multiple");
3117
3156
  var c = s.type, l = c === er.Text;
3118
3157
  (l || a.maxItemCount !== 1) && (a.singleModeForMultiSelect = !1), a.singleModeForMultiSelect && (c = er.SelectMultiple);
3119
3158
  var u = c === er.SelectOne, d = c === er.SelectMultiple, f = u || d;
3120
- if (this._elementType = c, this._isTextElement = l, this._isSelectOneElement = u, this._isSelectMultipleElement = d, this._isSelectElement = u || d, this._canAddUserChoices = l && a.addItems || f && a.addChoices, typeof a.renderSelectedChoices != "boolean" && (a.renderSelectedChoices = a.renderSelectedChoices === "always" || u), a.closeDropdownOnSelect === "auto" ? a.closeDropdownOnSelect = l || u || a.singleModeForMultiSelect : a.closeDropdownOnSelect = Rr(a.closeDropdownOnSelect), a.placeholder && (a.placeholderValue ? this._hasNonChoicePlaceholder = !0 : s.dataset.placeholder && (this._hasNonChoicePlaceholder = !0, a.placeholderValue = s.dataset.placeholder)), n.addItemFilter && typeof n.addItemFilter != "function") {
3159
+ if (this._elementType = c, this._isTextElement = l, this._isSelectOneElement = u, this._isSelectMultipleElement = d, this._isSelectElement = u || d, this._canAddUserChoices = l && a.addItems || f && a.addChoices, typeof a.renderSelectedChoices != "boolean" && (a.renderSelectedChoices = a.renderSelectedChoices === "always" || u), a.closeDropdownOnSelect === "auto" ? a.closeDropdownOnSelect = l || u || a.singleModeForMultiSelect : a.closeDropdownOnSelect = zr(a.closeDropdownOnSelect), a.placeholder && (a.placeholderValue ? this._hasNonChoicePlaceholder = !0 : s.dataset.placeholder && (this._hasNonChoicePlaceholder = !0, a.placeholderValue = s.dataset.placeholder)), n.addItemFilter && typeof n.addItemFilter != "function") {
3121
3160
  var p = n.addItemFilter instanceof RegExp ? n.addItemFilter : new RegExp(n.addItemFilter);
3122
3161
  a.addItemFilter = p.test.bind(p);
3123
3162
  }
3124
- if (this._isTextElement ? this.passedElement = new Lr({
3163
+ if (this._isTextElement ? this.passedElement = new Rr({
3125
3164
  element: s,
3126
3165
  classNames: a.classNames
3127
- }) : this.passedElement = new Gr({
3166
+ }) : this.passedElement = new Kr({
3128
3167
  element: s,
3129
3168
  classNames: a.classNames,
3130
3169
  template: function(e) {
3131
3170
  return r._templates.option(e);
3132
3171
  },
3133
3172
  extractPlaceholder: a.placeholder && !this._hasNonChoicePlaceholder
3134
- }), this.initialised = !1, this._store = new Qr(a), this._currentValue = "", a.searchEnabled = !l && a.searchEnabled || d, this._canSearch = a.searchEnabled, this._isScrollingOnIe = !1, this._highlightPosition = 0, this._wasTap = !0, this._placeholderValue = this._generatePlaceholderValue(), this._baseId = dr(s, "choices-"), this._direction = s.dir, !this._direction) {
3173
+ }), this.initialised = !1, this._store = new $r(a), this._currentValue = "", a.searchEnabled = !l && a.searchEnabled, this._canSearch = a.searchEnabled, this._isScrollingOnIe = !1, this._highlightPosition = 0, this._wasTap = !0, this._placeholderValue = this._generatePlaceholderValue(), this._baseId = dr(s, "choices-"), this._direction = s.dir, !this._direction) {
3135
3174
  var m = window.getComputedStyle(s).direction;
3136
3175
  m !== window.getComputedStyle(document.documentElement).direction && (this._direction = m);
3137
3176
  }
3138
- if (this._idNames = { itemChoice: "item-choice" }, this._templates = i.templates, this._render = this._render.bind(this), this._onFocus = this._onFocus.bind(this), this._onBlur = this._onBlur.bind(this), this._onKeyUp = this._onKeyUp.bind(this), this._onKeyDown = this._onKeyDown.bind(this), this._onInput = this._onInput.bind(this), this._onClick = this._onClick.bind(this), this._onTouchMove = this._onTouchMove.bind(this), this._onTouchEnd = this._onTouchEnd.bind(this), this._onMouseDown = this._onMouseDown.bind(this), this._onMouseOver = this._onMouseOver.bind(this), this._onFormReset = this._onFormReset.bind(this), this._onSelectKey = this._onSelectKey.bind(this), this._onEnterKey = this._onEnterKey.bind(this), this._onEscapeKey = this._onEscapeKey.bind(this), this._onDirectionKey = this._onDirectionKey.bind(this), this._onDeleteKey = this._onDeleteKey.bind(this), this.passedElement.isActive) {
3177
+ if (this._idNames = { itemChoice: "item-choice" }, this._templates = i.templates, this._render = this._render.bind(this), this._onFocus = this._onFocus.bind(this), this._onBlur = this._onBlur.bind(this), this._onKeyUp = this._onKeyUp.bind(this), this._onKeyDown = this._onKeyDown.bind(this), this._onInput = this._onInput.bind(this), this._onClick = this._onClick.bind(this), this._onTouchMove = this._onTouchMove.bind(this), this._onTouchEnd = this._onTouchEnd.bind(this), this._onMouseDown = this._onMouseDown.bind(this), this._onMouseOver = this._onMouseOver.bind(this), this._onFormReset = this._onFormReset.bind(this), this._onSelectKey = this._onSelectKey.bind(this), this._onEnterKey = this._onEnterKey.bind(this), this._onEscapeKey = this._onEscapeKey.bind(this), this._onDirectionKey = this._onDirectionKey.bind(this), this._onDeleteKey = this._onDeleteKey.bind(this), this._onChange = this._onChange.bind(this), this._onInvalid = this._onInvalid.bind(this), this.passedElement.isActive) {
3139
3178
  a.silent || console.warn("Trying to initialise Choices on element already initialised", { element: t }), this.initialised = !0, this.initialisedOK = !1;
3140
3179
  return;
3141
3180
  }
@@ -3150,7 +3189,7 @@ var xa = function(e) {
3150
3189
  return Ea;
3151
3190
  },
3152
3191
  get allOptions() {
3153
- return Kr;
3192
+ return qr;
3154
3193
  },
3155
3194
  get templates() {
3156
3195
  return wa;
@@ -3176,25 +3215,25 @@ var xa = function(e) {
3176
3215
  var n = this._store.items.find(function(t) {
3177
3216
  return t.id === e.id;
3178
3217
  });
3179
- return !n || n.highlighted ? this : (this._store.dispatch(cr(n, !0)), t && this.passedElement.triggerEvent(B.highlightItem, this._getChoiceForOutput(n)), this);
3218
+ return !n || n.highlighted ? this : (this._store.dispatch(cr(n, !0)), t && this.passedElement.triggerEvent(B.highlightItem, yr(n)), this);
3180
3219
  }, e.prototype.unhighlightItem = function(e, t) {
3181
3220
  if (t === void 0 && (t = !0), !e || !e.id) return this;
3182
3221
  var n = this._store.items.find(function(t) {
3183
3222
  return t.id === e.id;
3184
3223
  });
3185
- return !n || !n.highlighted ? this : (this._store.dispatch(cr(n, !1)), t && this.passedElement.triggerEvent(B.unhighlightItem, this._getChoiceForOutput(n)), this);
3224
+ return !n || !n.highlighted ? this : (this._store.dispatch(cr(n, !1)), t && this.passedElement.triggerEvent(B.unhighlightItem, yr(n)), this);
3186
3225
  }, e.prototype.highlightAll = function() {
3187
3226
  var e = this;
3188
3227
  return this._store.withTxn(function() {
3189
3228
  e._store.items.forEach(function(t) {
3190
- t.highlighted || (e._store.dispatch(cr(t, !0)), e.passedElement.triggerEvent(B.highlightItem, e._getChoiceForOutput(t)));
3229
+ t.highlighted || (e._store.dispatch(cr(t, !0)), e.passedElement.triggerEvent(B.highlightItem, yr(t)));
3191
3230
  });
3192
3231
  }), this;
3193
3232
  }, e.prototype.unhighlightAll = function() {
3194
3233
  var e = this;
3195
3234
  return this._store.withTxn(function() {
3196
3235
  e._store.items.forEach(function(t) {
3197
- t.highlighted && (e._store.dispatch(cr(t, !1)), e.passedElement.triggerEvent(B.highlightItem, e._getChoiceForOutput(t)));
3236
+ t.highlighted && (e._store.dispatch(cr(t, !1)), e.passedElement.triggerEvent(B.highlightItem, yr(t)));
3198
3237
  });
3199
3238
  }), this;
3200
3239
  }, e.prototype.removeActiveItemsByValue = function(e) {
@@ -3228,22 +3267,24 @@ var xa = function(e) {
3228
3267
  t.dropdown.show();
3229
3268
  var n = t.dropdown.element.getBoundingClientRect();
3230
3269
  t.containerOuter.open(n.bottom, n.height), e || t.input.focus(), t.passedElement.triggerEvent(B.showDropdown);
3270
+ var r = t.choiceList.element.querySelector(Or(t.config.classNames.selectedState));
3271
+ r !== null && !pr(r, t.choiceList.element) && (t.choiceList.element.scrollTop = r.offsetTop);
3231
3272
  }), this);
3232
3273
  }, e.prototype.hideDropdown = function(e) {
3233
3274
  var t = this;
3234
- return this.dropdown.isActive && requestAnimationFrame(function() {
3275
+ return this.dropdown.isActive ? (this._removeHighlightedChoices(), requestAnimationFrame(function() {
3235
3276
  t.dropdown.hide(), t.containerOuter.close(), !e && t._canSearch && (t.input.removeActiveDescendant(), t.input.blur()), t.passedElement.triggerEvent(B.hideDropdown);
3236
- }), this;
3277
+ }), this) : this;
3237
3278
  }, e.prototype.getValue = function(e) {
3238
- var t = this, n = this._store.items.map(function(n) {
3239
- return e ? n.value : t._getChoiceForOutput(n);
3279
+ var t = this._store.items.map(function(t) {
3280
+ return e ? t.value : yr(t);
3240
3281
  });
3241
- return this._isSelectOneElement || this.config.singleModeForMultiSelect ? n[0] : n;
3282
+ return this._isSelectOneElement || this.config.singleModeForMultiSelect ? t[0] : t;
3242
3283
  }, e.prototype.setValue = function(e) {
3243
3284
  var t = this;
3244
3285
  return this.initialisedOK ? (this._store.withTxn(function() {
3245
3286
  e.forEach(function(e) {
3246
- e && t._addChoice(Br(e, !1));
3287
+ e && t._addChoice(Vr(e, !1));
3247
3288
  });
3248
3289
  }), this._searcher.reset(), this) : (this._warnChoicesInitFailed("setValue"), this);
3249
3290
  }, e.prototype.setChoiceByValue = function(e) {
@@ -3276,7 +3317,7 @@ var xa = function(e) {
3276
3317
  return o;
3277
3318
  });
3278
3319
  if (!Array.isArray(s)) throw TypeError(`.setChoices first argument function must return either array of choices or Promise, got: ${typeof s}`);
3279
- return this.setChoices(s, t, n, !1);
3320
+ e = s;
3280
3321
  }
3281
3322
  if (!Array.isArray(e)) throw TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");
3282
3323
  return this.containerOuter.removeLoadingState(), this._store.withTxn(function() {
@@ -3285,18 +3326,18 @@ var xa = function(e) {
3285
3326
  e.forEach(function(e) {
3286
3327
  if ("choices" in e) {
3287
3328
  var r = e;
3288
- c || (r = R(R({}, r), { label: r[n] })), o._addGroup(Br(r, !0));
3329
+ c || (r = R(R({}, r), { label: r[n] })), o._addGroup(Vr(r, !0));
3289
3330
  } else {
3290
3331
  var i = e;
3291
3332
  (!c || !s) && (i = R(R({}, i), {
3292
3333
  value: i[t],
3293
3334
  label: i[n]
3294
3335
  }));
3295
- var a = Br(i, !1);
3296
- o._addChoice(a), a.placeholder && !o._hasNonChoicePlaceholder && (o._placeholderValue = yr(a.label));
3336
+ var a = Vr(i, !1);
3337
+ o._addChoice(a), a.placeholder && !o._hasNonChoicePlaceholder && (o._placeholderValue = vr(a.label));
3297
3338
  }
3298
3339
  }), o.unhighlightAll();
3299
- }), this._searcher.reset(), this;
3340
+ }), this.dropdown.isActive && this._canAddUserChoices && this._canCreateItem(this.input.value), this._searcher.reset(), this;
3300
3341
  }, e.prototype.refresh = function(e, t, n) {
3301
3342
  var r = this;
3302
3343
  return e === void 0 && (e = !1), t === void 0 && (t = !1), n === void 0 && (n = !1), this._isSelectElement ? (this._store.withTxn(function() {
@@ -3319,7 +3360,7 @@ var xa = function(e) {
3319
3360
  var t = this._store.choices.find(function(t) {
3320
3361
  return t.value === e;
3321
3362
  });
3322
- return t ? (this._clearNotice(), this._store.dispatch(nr(t)), this._searcher.reset(), t.selected && this.passedElement.triggerEvent(B.removeItem, this._getChoiceForOutput(t)), this) : this;
3363
+ return t ? (this._clearNotice(), this._store.dispatch(nr(t)), this._searcher.reset(), t.selected && this.passedElement.triggerEvent(B.removeItem, yr(t)), this) : this;
3323
3364
  }, e.prototype.clearChoices = function(e, t) {
3324
3365
  var n = this;
3325
3366
  return e === void 0 && (e = !0), t === void 0 && (t = !1), e && (t ? this.passedElement.element.replaceChildren("") : this.passedElement.element.querySelectorAll(":not([selected])").forEach(function(e) {
@@ -3336,7 +3377,7 @@ var xa = function(e) {
3336
3377
  var e = !this._isSelectOneElement;
3337
3378
  return this.input.clear(e), this._stopSearch(), this;
3338
3379
  }, e.prototype._validateConfig = function() {
3339
- var e = this.config, t = Tr(e, Kr);
3380
+ var e = this.config, t = Er(e, qr);
3340
3381
  t.length && console.warn("Unknown config option(s) passed", t.join(", ")), e.allowHTML && e.allowHtmlUserInput && (e.addItems && console.warn("Warning: allowHTML/allowHtmlUserInput/addItems all being true is strongly not recommended and may lead to XSS attacks"), e.addChoices && console.warn("Warning: allowHTML/allowHtmlUserInput/addChoices all being true is strongly not recommended and may lead to XSS attacks"));
3341
3382
  }, e.prototype._render = function(e) {
3342
3383
  e === void 0 && (e = {
@@ -3347,8 +3388,8 @@ var xa = function(e) {
3347
3388
  }, e.prototype._renderChoices = function() {
3348
3389
  var e = this;
3349
3390
  if (this._canAddItems()) {
3350
- var t = this, n = t.config, r = t._isSearching, i = this._store, a = i.activeGroups, o = i.activeChoices, s = 0;
3351
- if (r && n.searchResultLimit > 0 ? s = n.searchResultLimit : n.renderChoiceLimit > 0 && (s = n.renderChoiceLimit), this._isSelectElement) {
3391
+ var t = this, n = t.config, r = t._isSearching, i = this._store, a = i.activeGroups, o = i.activeChoices, s = r ? n.searchResultLimit : n.renderChoiceLimit;
3392
+ if (this._isSelectElement) {
3352
3393
  var c = o.filter(function(e) {
3353
3394
  return !e.element;
3354
3395
  });
@@ -3356,35 +3397,35 @@ var xa = function(e) {
3356
3397
  }
3357
3398
  var l = document.createDocumentFragment(), u = function(e) {
3358
3399
  return e.filter(function(e) {
3359
- return !e.placeholder && (r ? !!e.rank : n.renderSelectedChoices || !e.selected);
3400
+ return !e.placeholder && (r ? (n.searchRenderSelectedChoices || !e.selected) && !!e.rank : n.renderSelectedChoices || !e.selected);
3360
3401
  });
3361
- }, d = !1, f = function(t, i, a) {
3362
- r ? t.sort(Cr) : n.shouldSort && t.sort(n.sorter);
3363
- var o = t.length;
3364
- o = !i && s && o > s ? s : o, o--, t.every(function(t, i) {
3365
- var s = t.choiceEl || e._templates.choice(n, t, n.itemSelectText, a);
3366
- return t.choiceEl = s, l.appendChild(s), (r || !t.selected) && (d = !0), i < o;
3402
+ }, d = n.appendGroupInSearch && r, f = !1, p = null, m = function(t, i) {
3403
+ r ? t.sort(wr) : n.shouldSort && t.sort(n.sorter);
3404
+ var a = t.length;
3405
+ a = !i && s > 0 && a > s ? s : a, a--, t.every(function(t, i) {
3406
+ var o = t.choiceEl || e._templates.choice(n, t, n.itemSelectText, d && t.group ? t.group.label : void 0);
3407
+ return t.choiceEl = o, l.appendChild(o), r || !t.selected ? f = !0 : p ||= o, i < a;
3367
3408
  });
3368
3409
  };
3369
3410
  o.length && (n.resetScrollPosition && requestAnimationFrame(function() {
3370
3411
  return e.choiceList.scrollToTop();
3371
- }), !this._hasNonChoicePlaceholder && !r && this._isSelectOneElement && f(o.filter(function(e) {
3412
+ }), !this._hasNonChoicePlaceholder && !r && this._isSelectOneElement && m(o.filter(function(e) {
3372
3413
  return e.placeholder && !e.group;
3373
- }), !1, void 0), a.length && !r ? (n.shouldSort && a.sort(n.sorter), f(o.filter(function(e) {
3414
+ }), !1), a.length && !r ? (n.shouldSort && a.sort(n.sorter), m(o.filter(function(e) {
3374
3415
  return !e.placeholder && !e.group;
3375
- }), !1, void 0), a.forEach(function(t) {
3376
- var i = u(t.choices);
3377
- if (i.length) {
3416
+ }), !1), a.forEach(function(t) {
3417
+ var n = u(t.choices);
3418
+ if (n.length) {
3378
3419
  if (t.label) {
3379
- var a = t.groupEl || e._templates.choiceGroup(e.config, t);
3380
- t.groupEl = a, a.remove(), l.appendChild(a);
3420
+ var r = t.groupEl || e._templates.choiceGroup(e.config, t);
3421
+ t.groupEl = r, r.remove(), l.appendChild(r);
3381
3422
  }
3382
- f(i, !0, n.appendGroupInSearch && r ? t.label : void 0);
3423
+ m(n, !0);
3383
3424
  }
3384
- })) : f(u(o), !1, void 0)), !d && (r || !l.children.length || !n.renderSelectedChoices) && (this._notice ||= {
3385
- text: _r(r ? n.noResultsText : n.noChoicesText),
3425
+ })) : m(u(o), !1)), !f && (r || !l.children.length || !n.renderSelectedChoices) && (this._notice ||= {
3426
+ text: gr(r ? n.noResultsText : n.noChoicesText),
3386
3427
  type: r ? U.noResults : U.noChoices
3387
- }, l.replaceChildren("")), this._renderNotice(l), this.choiceList.element.replaceChildren(l), d && this._highlightChoice();
3428
+ }, l.replaceChildren("")), this._renderNotice(l), this.choiceList.element.replaceChildren(l), this._highlightChoice(p);
3388
3429
  }
3389
3430
  }, e.prototype._renderItems = function() {
3390
3431
  var e = this, t = this._store.items || [], n = this.itemList.element, r = this.config, i = document.createDocumentFragment(), a = function(e) {
@@ -3398,9 +3439,9 @@ var xa = function(e) {
3398
3439
  if (this._isSelectOneElement) {
3399
3440
  var c = n.children.length;
3400
3441
  if (s || c > 1) {
3401
- var l = n.querySelector(Dr(r.classNames.placeholder));
3442
+ var l = n.querySelector(Or(r.classNames.placeholder));
3402
3443
  l && l.remove();
3403
- } else !s && !c && this._placeholderValue && (s = !0, o(Br({
3444
+ } else !s && !c && this._placeholderValue && (s = !0, o(Vr({
3404
3445
  selected: !0,
3405
3446
  value: "",
3406
3447
  label: this._placeholderValue,
@@ -3426,7 +3467,7 @@ var xa = function(e) {
3426
3467
  } : void 0, this._renderNotice(), n && e && this.showDropdown(!0);
3427
3468
  }, e.prototype._clearNotice = function() {
3428
3469
  if (this._notice) {
3429
- var e = this.choiceList.element.querySelector(Dr(this.config.classNames.notice));
3470
+ var e = this.choiceList.element.querySelector(Or(this.config.classNames.notice));
3430
3471
  e && e.remove(), this._notice = void 0;
3431
3472
  }
3432
3473
  }, e.prototype._renderNotice = function(e) {
@@ -3436,27 +3477,13 @@ var xa = function(e) {
3436
3477
  e ? e.append(n) : this.choiceList.prepend(n);
3437
3478
  }
3438
3479
  }, e.prototype._getChoiceForOutput = function(e, t) {
3439
- return {
3440
- id: e.id,
3441
- highlighted: e.highlighted,
3442
- labelClass: e.labelClass,
3443
- labelDescription: e.labelDescription,
3444
- customProperties: e.customProperties,
3445
- disabled: e.disabled,
3446
- active: e.active,
3447
- label: e.label,
3448
- placeholder: e.placeholder,
3449
- value: e.value,
3450
- groupValue: e.group ? e.group.label : void 0,
3451
- element: e.element,
3452
- keyCode: t
3453
- };
3480
+ return yr(e, t);
3454
3481
  }, e.prototype._triggerChange = function(e) {
3455
3482
  e != null && this.passedElement.triggerEvent(B.change, { value: e });
3456
3483
  }, e.prototype._handleButtonAction = function(e) {
3457
3484
  var t = this, n = this._store.items;
3458
3485
  if (!(!n.length || !this.config.removeItems || !this.config.removeItemButton)) {
3459
- var r = e && Da(e.parentElement), i = r && n.find(function(e) {
3486
+ var r = e && Da(e.closest("[data-id]")), i = r && n.find(function(e) {
3460
3487
  return e.id === r;
3461
3488
  });
3462
3489
  i && this._store.withTxn(function() {
@@ -3501,10 +3528,10 @@ var xa = function(e) {
3501
3528
  var e, t = this, n = this.config;
3502
3529
  if (this._isTextElement) {
3503
3530
  if (this._presetChoices = n.items.map(function(e) {
3504
- return Br(e, !1);
3531
+ return Vr(e, !1);
3505
3532
  }), this.passedElement.value) {
3506
3533
  var r = this.passedElement.value.split(n.delimiter).map(function(e) {
3507
- return Br(e, !1, t.config.allowHtmlUserInput);
3534
+ return Vr(e, !1, t.config.allowHtmlUserInput);
3508
3535
  });
3509
3536
  this._presetChoices = this._presetChoices.concat(r);
3510
3537
  }
@@ -3513,7 +3540,7 @@ var xa = function(e) {
3513
3540
  });
3514
3541
  } else if (this._isSelectElement) {
3515
3542
  this._presetChoices = n.choices.map(function(e) {
3516
- return Br(e, !0);
3543
+ return Vr(e, !0);
3517
3544
  });
3518
3545
  var i = this.passedElement.optionsAsChoices();
3519
3546
  i && (e = this._presetChoices).push.apply(e, i);
@@ -3534,16 +3561,16 @@ var xa = function(e) {
3534
3561
  }) && this._stopSearch();
3535
3562
  }, e.prototype._canAddItems = function() {
3536
3563
  var e = this.config, t = e.maxItemCount, n = e.maxItemText;
3537
- return !e.singleModeForMultiSelect && t > 0 && t <= this._store.items.length ? (this.choiceList.element.replaceChildren(""), this._notice = void 0, this._displayNotice(typeof n == "function" ? n(t) : n, U.addChoice), !1) : (this._notice && this._notice.type === U.addChoice && this._clearNotice(), !0);
3564
+ return !e.singleModeForMultiSelect && t > 0 && t <= this._store.items.length ? (this.choiceList.element.replaceChildren(""), this._notice = void 0, this._displayNotice(typeof n == "function" ? n(t) : n, U.addChoice, !1), !1) : (this._notice && this._notice.type === U.addChoice && this._clearNotice(), !0);
3538
3565
  }, e.prototype._canCreateItem = function(e) {
3539
3566
  var t = this.config, n = !0, r = "";
3540
- if (n && typeof t.addItemFilter == "function" && !t.addItemFilter(e) && (n = !1, r = gr(t.customAddItemText, e)), n && this._store.choices.find(function(n) {
3567
+ if (n && typeof t.addItemFilter == "function" && !t.addItemFilter(e) && (n = !1, r = br(t.customAddItemText, e, void 0)), n && this._store.choices.find(function(n) {
3541
3568
  return t.valueComparer(n.value, e);
3542
3569
  })) {
3543
3570
  if (this._isSelectElement) return this._displayNotice("", U.addChoice), !1;
3544
- t.duplicateItemsAllowed || (n = !1, r = gr(t.uniqueItemText, e));
3571
+ t.duplicateItemsAllowed || (n = !1, r = br(t.uniqueItemText, e, void 0));
3545
3572
  }
3546
- return n && (r = gr(t.addItemText, e)), r && this._displayNotice(r, U.addChoice), n;
3573
+ return n && (r = br(t.addItemText, e, void 0)), r && this._displayNotice(r, U.addChoice), n;
3547
3574
  }, e.prototype._searchChoices = function(e) {
3548
3575
  var t = e.trim().replace(/\s{2,}/, " ");
3549
3576
  if (!t.length || t === this._currentValue) return null;
@@ -3552,18 +3579,18 @@ var xa = function(e) {
3552
3579
  var r = n.search(t);
3553
3580
  this._currentValue = t, this._highlightPosition = 0, this._isSearching = !0;
3554
3581
  var i = this._notice;
3555
- return (i && i.type) !== U.addChoice && (r.length ? this._clearNotice() : this._displayNotice(_r(this.config.noResultsText), U.noResults)), this._store.dispatch(rr(r)), r.length;
3582
+ return (i && i.type) !== U.addChoice && (r.length ? this._clearNotice() : this._displayNotice(gr(this.config.noResultsText), U.noResults)), this._store.dispatch(rr(r)), r.length;
3556
3583
  }, e.prototype._stopSearch = function() {
3557
3584
  this._isSearching && (this._currentValue = "", this._isSearching = !1, this._clearNotice(), this._store.dispatch(ir(!0)), this.passedElement.triggerEvent(B.search, {
3558
3585
  value: "",
3559
3586
  resultCount: 0
3560
3587
  }));
3561
3588
  }, e.prototype._addEventListeners = function() {
3562
- var e = this._docRoot, t = this.containerOuter.element, n = this.input.element;
3563
- e.addEventListener("touchend", this._onTouchEnd, !0), t.addEventListener("keydown", this._onKeyDown, !0), t.addEventListener("mousedown", this._onMouseDown, !0), e.addEventListener("click", this._onClick, { passive: !0 }), e.addEventListener("touchmove", this._onTouchMove, { passive: !0 }), this.dropdown.element.addEventListener("mouseover", this._onMouseOver, { passive: !0 }), this._isSelectOneElement && (t.addEventListener("focus", this._onFocus, { passive: !0 }), t.addEventListener("blur", this._onBlur, { passive: !0 })), n.addEventListener("keyup", this._onKeyUp, { passive: !0 }), n.addEventListener("input", this._onInput, { passive: !0 }), n.addEventListener("focus", this._onFocus, { passive: !0 }), n.addEventListener("blur", this._onBlur, { passive: !0 }), n.form && n.form.addEventListener("reset", this._onFormReset, { passive: !0 }), this.input.addEventListeners();
3589
+ var e = this._docRoot, t = this.containerOuter.element, n = this.input.element, r = this.passedElement.element;
3590
+ e.addEventListener("touchend", this._onTouchEnd, !0), t.addEventListener("keydown", this._onKeyDown, !0), t.addEventListener("mousedown", this._onMouseDown, !0), e.addEventListener("click", this._onClick, { passive: !0 }), e.addEventListener("touchmove", this._onTouchMove, { passive: !0 }), this.dropdown.element.addEventListener("mouseover", this._onMouseOver, { passive: !0 }), this._isSelectOneElement && (t.addEventListener("focus", this._onFocus, { passive: !0 }), t.addEventListener("blur", this._onBlur, { passive: !0 })), n.addEventListener("keyup", this._onKeyUp, { passive: !0 }), n.addEventListener("input", this._onInput, { passive: !0 }), n.addEventListener("focus", this._onFocus, { passive: !0 }), n.addEventListener("blur", this._onBlur, { passive: !0 }), n.form && n.form.addEventListener("reset", this._onFormReset, { passive: !0 }), r.hasAttribute("required") && (r.addEventListener("change", this._onChange, { passive: !0 }), r.addEventListener("invalid", this._onInvalid, { passive: !0 })), this.input.addEventListeners();
3564
3591
  }, e.prototype._removeEventListeners = function() {
3565
- var e = this._docRoot, t = this.containerOuter.element, n = this.input.element;
3566
- e.removeEventListener("touchend", this._onTouchEnd, !0), t.removeEventListener("keydown", this._onKeyDown, !0), t.removeEventListener("mousedown", this._onMouseDown, !0), e.removeEventListener("click", this._onClick), e.removeEventListener("touchmove", this._onTouchMove), this.dropdown.element.removeEventListener("mouseover", this._onMouseOver), this._isSelectOneElement && (t.removeEventListener("focus", this._onFocus), t.removeEventListener("blur", this._onBlur)), n.removeEventListener("keyup", this._onKeyUp), n.removeEventListener("input", this._onInput), n.removeEventListener("focus", this._onFocus), n.removeEventListener("blur", this._onBlur), n.form && n.form.removeEventListener("reset", this._onFormReset), this.input.removeEventListeners();
3592
+ var e = this._docRoot, t = this.containerOuter.element, n = this.input.element, r = this.passedElement.element;
3593
+ e.removeEventListener("touchend", this._onTouchEnd, !0), t.removeEventListener("keydown", this._onKeyDown, !0), t.removeEventListener("mousedown", this._onMouseDown, !0), e.removeEventListener("click", this._onClick), e.removeEventListener("touchmove", this._onTouchMove), this.dropdown.element.removeEventListener("mouseover", this._onMouseOver), this._isSelectOneElement && (t.removeEventListener("focus", this._onFocus), t.removeEventListener("blur", this._onBlur)), n.removeEventListener("keyup", this._onKeyUp), n.removeEventListener("input", this._onInput), n.removeEventListener("focus", this._onFocus), n.removeEventListener("blur", this._onBlur), n.form && n.form.removeEventListener("reset", this._onFormReset), r.hasAttribute("required") && (r.removeEventListener("change", this._onChange), r.removeEventListener("invalid", this._onInvalid)), this.input.removeEventListeners();
3567
3594
  }, e.prototype._onKeyDown = function(e) {
3568
3595
  var t = e.keyCode, n = this.dropdown.isActive, r = e.key.length === 1 || e.key.length === 2 && e.key.charCodeAt(0) >= 55296 || e.key === "Unidentified";
3569
3596
  switch (!this._isTextElement && !n && t !== V.ESC_KEY && t !== V.TAB_KEY && t !== V.SHIFT_KEY && (this.showDropdown(), !this.input.isFocussed && r && (this.input.value += e.key, e.key === " " && e.preventDefault())), t) {
@@ -3598,7 +3625,7 @@ var xa = function(e) {
3598
3625
  (this._isSelectElement || this._notice) && this.showDropdown();
3599
3626
  return;
3600
3627
  }
3601
- var a = this.dropdown.element.querySelector(Dr(this.config.classNames.highlightedState));
3628
+ var a = this.dropdown.element.querySelector(Or(this.config.classNames.highlightedState));
3602
3629
  if (!(a && this._handleChoiceAction(a))) {
3603
3630
  if (!i || !r) {
3604
3631
  this.hideDropdown(!0);
@@ -3609,7 +3636,7 @@ var xa = function(e) {
3609
3636
  this._store.withTxn(function() {
3610
3637
  if (o = n._findAndSelectChoiceByValue(r, !0), !o) {
3611
3638
  if (!n._canAddUserChoices || !n._canCreateItem(r)) return;
3612
- n._addChoice(Br(r, !1, n.config.allowHtmlUserInput), !0, !0), o = !0;
3639
+ n._addChoice(Vr(r, !1, n.config.allowHtmlUserInput), !0, !0), o = !0;
3613
3640
  }
3614
3641
  n.clearInput(), n.unhighlightAll();
3615
3642
  }), o && (this._triggerChange(r), this.config.closeDropdownOnSelect && this.hideDropdown(!0));
@@ -3624,7 +3651,7 @@ var xa = function(e) {
3624
3651
  var r = n === V.DOWN_KEY || n === V.PAGE_DOWN_KEY ? 1 : -1, i = e.metaKey || n === V.PAGE_DOWN_KEY || n === V.PAGE_UP_KEY, a = void 0;
3625
3652
  if (i) a = r > 0 ? this.dropdown.element.querySelector(`${Oa}:last-of-type`) : this.dropdown.element.querySelector(Oa);
3626
3653
  else {
3627
- var o = this.dropdown.element.querySelector(Dr(this.config.classNames.highlightedState));
3654
+ var o = this.dropdown.element.querySelector(Or(this.config.classNames.highlightedState));
3628
3655
  a = o ? fr(o, Oa, r) : this.dropdown.element.querySelector(Oa);
3629
3656
  }
3630
3657
  a && (pr(a, this.choiceList.element, r) || this.choiceList.scrollToChildElement(a, r), this._highlightChoice(a)), e.preventDefault();
@@ -3638,7 +3665,7 @@ var xa = function(e) {
3638
3665
  this._wasTap && this.containerOuter.element.contains(t) && ((t === this.containerOuter.element || t === this.containerInner.element) && (this._isTextElement ? this.input.focus() : this._isSelectMultipleElement && this.showDropdown()), e.stopPropagation()), this._wasTap = !0;
3639
3666
  }, e.prototype._onMouseDown = function(e) {
3640
3667
  var t = e.target;
3641
- if (t instanceof HTMLElement) {
3668
+ if (t instanceof Element) {
3642
3669
  if (Ta && this.choiceList.element.contains(t)) {
3643
3670
  var n = this.choiceList.element.firstElementChild;
3644
3671
  this._isScrollingOnIe = this._direction === "ltr" ? e.offsetX >= n.offsetWidth : e.offsetX < n.offsetLeft;
@@ -3662,29 +3689,39 @@ var xa = function(e) {
3662
3689
  }
3663
3690
  }, e.prototype._onBlur = function(e) {
3664
3691
  var t = e.target, n = this.containerOuter;
3665
- t && n.element.contains(t) && !this._isScrollingOnIe ? t === this.input.element ? (n.removeFocusState(), this.hideDropdown(!0), (this._isTextElement || this._isSelectMultipleElement) && this.unhighlightAll()) : t === this.containerOuter.element && (n.removeFocusState(), this._canSearch || this.hideDropdown(!0)) : (this._isScrollingOnIe = !1, this.input.element.focus());
3692
+ t && n.element.contains(t) && !this._isScrollingOnIe ? t === this.input.element ? (n.removeFocusState(), this.hideDropdown(!0), (this._isTextElement || this._isSelectMultipleElement) && this.unhighlightAll()) : t === this.containerOuter.element && (n.removeFocusState(), this.config.searchEnabled || this.hideDropdown(!0)) : (this._isScrollingOnIe = !1, this.input.element.focus());
3666
3693
  }, e.prototype._onFormReset = function() {
3667
3694
  var e = this;
3668
3695
  this._store.withTxn(function() {
3669
3696
  e.clearInput(), e.hideDropdown(), e.refresh(!1, !1, !0), e._initialItems.length && e.setChoiceByValue(e._initialItems);
3670
3697
  });
3698
+ }, e.prototype._onChange = function(e) {
3699
+ e.target.checkValidity() && this.containerOuter.removeInvalidState();
3700
+ }, e.prototype._onInvalid = function() {
3701
+ this.containerOuter.addInvalidState();
3702
+ }, e.prototype._removeHighlightedChoices = function() {
3703
+ var e = this.config.classNames.highlightedState;
3704
+ Array.from(this.dropdown.element.querySelectorAll(Or(e))).forEach(function(t) {
3705
+ kr(t, e), t.setAttribute("aria-selected", "false");
3706
+ });
3671
3707
  }, e.prototype._highlightChoice = function(e) {
3672
3708
  e === void 0 && (e = null);
3673
3709
  var t = Array.from(this.dropdown.element.querySelectorAll(Oa));
3674
3710
  if (t.length) {
3675
3711
  var n = e, r = this.config.classNames.highlightedState;
3676
- Array.from(this.dropdown.element.querySelectorAll(Dr(r))).forEach(function(e) {
3677
- Or(e, r), e.setAttribute("aria-selected", "false");
3678
- }), n ? this._highlightPosition = t.indexOf(n) : (n = t.length > this._highlightPosition ? t[this._highlightPosition] : t[t.length - 1], n ||= t[0]), H(n, r), n.setAttribute("aria-selected", "true"), this.passedElement.triggerEvent(B.highlightChoice, { el: n }), this.dropdown.isActive && (this.input.setActiveDescendant(n.id), this.containerOuter.setActiveDescendant(n.id));
3712
+ this._removeHighlightedChoices(), n ? this._highlightPosition = t.indexOf(n) : (n = t.length > this._highlightPosition ? t[this._highlightPosition] : t[t.length - 1], n ||= t[0]), H(n, r), n.setAttribute("aria-selected", "true"), this.passedElement.triggerEvent(B.highlightChoice, { el: n }), this.dropdown.isActive && (this.input.setActiveDescendant(n.id), this.containerOuter.setActiveDescendant(n.id));
3679
3713
  }
3680
3714
  }, e.prototype._addItem = function(e, t, n) {
3681
3715
  if (t === void 0 && (t = !0), n === void 0 && (n = !1), !e.id) throw TypeError("item.id must be set before _addItem is called for a choice/item");
3682
- (this.config.singleModeForMultiSelect || this._isSelectOneElement) && this.removeActiveItems(e.id), this._store.dispatch(or(e)), t && (this.passedElement.triggerEvent(B.addItem, this._getChoiceForOutput(e)), n && this.passedElement.triggerEvent(B.choice, this._getChoiceForOutput(e)));
3716
+ if ((this.config.singleModeForMultiSelect || this._isSelectOneElement) && this.removeActiveItems(e.id), this._store.dispatch(or(e)), t) {
3717
+ var r = yr(e);
3718
+ this.passedElement.triggerEvent(B.addItem, r), n && this.passedElement.triggerEvent(B.choice, r);
3719
+ }
3683
3720
  }, e.prototype._removeItem = function(e) {
3684
3721
  if (e.id) {
3685
3722
  this._store.dispatch(sr(e));
3686
3723
  var t = this._notice;
3687
- t && t.type === U.noChoices && this._clearNotice(), this.passedElement.triggerEvent(B.removeItem, this._getChoiceForOutput(e));
3724
+ t && t.type === U.noChoices && this._clearNotice(), this.passedElement.triggerEvent(B.removeItem, yr(e));
3688
3725
  }
3689
3726
  }, e.prototype._addChoice = function(e, t, n) {
3690
3727
  if (t === void 0 && (t = !0), n === void 0 && (n = !1), e.id) throw TypeError("Can not re-add a choice which has already been added");
@@ -3704,36 +3741,36 @@ var xa = function(e) {
3704
3741
  }));
3705
3742
  }, e.prototype._createTemplates = function() {
3706
3743
  var e = this, t = this.config.callbackOnCreateTemplates, n = {};
3707
- typeof t == "function" && (n = t.call(this, hr, br, Er));
3744
+ typeof t == "function" && (n = t.call(this, hr, xr, Dr));
3708
3745
  var r = {};
3709
3746
  Object.keys(this._templates).forEach(function(t) {
3710
3747
  t in n ? r[t] = n[t].bind(e) : r[t] = e._templates[t].bind(e);
3711
3748
  }), this._templates = r;
3712
3749
  }, e.prototype._createElements = function() {
3713
3750
  var e = this._templates, t = this, n = t.config, r = t._isSelectOneElement, i = n.position, a = n.classNames, o = this._elementType;
3714
- this.containerOuter = new Mr({
3751
+ this.containerOuter = new Nr({
3715
3752
  element: e.containerOuter(n, this._direction, this._isSelectElement, r, n.searchEnabled, o, n.labelId),
3716
3753
  classNames: a,
3717
3754
  type: o,
3718
3755
  position: i
3719
- }), this.containerInner = new Mr({
3756
+ }), this.containerInner = new Nr({
3720
3757
  element: e.containerInner(n),
3721
3758
  classNames: a,
3722
3759
  type: o,
3723
3760
  position: i
3724
- }), this.input = new Nr({
3761
+ }), this.input = new Pr({
3725
3762
  element: e.input(n, this._placeholderValue),
3726
3763
  classNames: a,
3727
3764
  type: o,
3728
3765
  preventPaste: !n.paste
3729
- }), this.choiceList = new Fr({ element: e.choiceList(n, r) }), this.itemList = new Fr({ element: e.itemList(n, r) }), this.dropdown = new jr({
3766
+ }), this.choiceList = new Ir({ element: e.choiceList(n, r) }), this.itemList = new Ir({ element: e.itemList(n, r) }), this.dropdown = new Mr({
3730
3767
  element: e.dropdown(n),
3731
3768
  classNames: a,
3732
3769
  type: o
3733
3770
  });
3734
3771
  }, e.prototype._createStructure = function() {
3735
3772
  var e = this, t = e.containerInner, n = e.containerOuter, r = e.passedElement, i = this.dropdown.element;
3736
- r.conceal(), t.wrap(r.element), n.wrap(t.element), this._isSelectOneElement ? this.input.placeholder = this.config.searchPlaceholderValue || "" : (this._placeholderValue && (this.input.placeholder = this._placeholderValue), this.input.setWidth()), n.element.appendChild(t.element), n.element.appendChild(i), t.element.appendChild(this.itemList.element), i.appendChild(this.choiceList.element), this._isSelectOneElement ? this.config.searchEnabled && i.insertBefore(this.input.element, i.firstChild) : t.element.appendChild(this.input.element), this._highlightPosition = 0, this._isSearching = !1;
3773
+ r.conceal(), t.wrap(r.element), n.wrap(t.element), n.element.appendChild(t.element), n.element.appendChild(i), t.element.appendChild(this.itemList.element), i.appendChild(this.choiceList.element), this._isSelectOneElement ? (this.input.placeholder = this.config.searchPlaceholderValue || "", this.config.searchEnabled && i.insertBefore(this.input.element, i.firstChild)) : ((!this._isSelectMultipleElement || this.config.searchEnabled) && t.element.appendChild(this.input.element), this._placeholderValue && (this.input.placeholder = this._placeholderValue), this.input.setWidth()), this._highlightPosition = 0, this._isSearching = !1;
3737
3774
  }, e.prototype._initStore = function() {
3738
3775
  var e = this;
3739
3776
  this._store.subscribe(this._render).withTxn(function() {
@@ -3769,7 +3806,7 @@ var xa = function(e) {
3769
3806
  if (!this.initialised) throw TypeError(`${e} called on a non-initialised instance of Choices`);
3770
3807
  if (!this.initialisedOK) throw TypeError(`${e} called for an element which has multiple instances of Choices initialised on it`);
3771
3808
  }
3772
- }, e.version = "11.1.0", e;
3809
+ }, e.version = "11.2.2", e;
3773
3810
  }(), Aa = {
3774
3811
  class: "m-form-group",
3775
3812
  ref: "selectComponent"
@@ -4290,67 +4327,67 @@ function hs(e, t) {
4290
4327
  function gs(e, t) {
4291
4328
  return e && e.classList.contains(t);
4292
4329
  }
4293
- function Y(e) {
4330
+ function _s(e) {
4294
4331
  return e.getBoundingClientRect();
4295
4332
  }
4296
- function _s(e) {
4333
+ function vs(e) {
4297
4334
  q(e, function(e) {
4298
4335
  e && e.parentNode && e.parentNode.removeChild(e);
4299
4336
  });
4300
4337
  }
4301
- function vs(e) {
4338
+ function ys(e) {
4302
4339
  return is(new DOMParser().parseFromString(e, "text/html").body);
4303
4340
  }
4304
- function ys(e, t) {
4341
+ function bs(e, t) {
4305
4342
  e.preventDefault(), t && (e.stopPropagation(), e.stopImmediatePropagation());
4306
4343
  }
4307
- function bs(e, t) {
4344
+ function xs(e, t) {
4308
4345
  return e && e.querySelector(t);
4309
4346
  }
4310
- function xs(e, t) {
4347
+ function Ss(e, t) {
4311
4348
  return t ? Lo(e.querySelectorAll(t)) : [];
4312
4349
  }
4313
- function Ss(e, t) {
4350
+ function Cs(e, t) {
4314
4351
  Qo(e, t, !1);
4315
4352
  }
4316
- function Cs(e) {
4353
+ function ws(e) {
4317
4354
  return e.timeStamp;
4318
4355
  }
4319
- function ws(e) {
4356
+ function Ts(e) {
4320
4357
  return Go(e) ? e : e ? e + "px" : "";
4321
4358
  }
4322
- var Ts = "splide", Es = "data-" + Ts;
4323
- function Ds(e, t) {
4324
- if (!e) throw Error("[" + Ts + "] " + (t || ""));
4359
+ var Es = "splide", Ds = "data-" + Es;
4360
+ function Os(e, t) {
4361
+ if (!e) throw Error("[" + Es + "] " + (t || ""));
4325
4362
  }
4326
- var Os = Math.min, ks = Math.max, As = Math.floor, js = Math.ceil, X = Math.abs;
4327
- function Ms(e, t, n) {
4328
- return X(e - t) < n;
4363
+ var ks = Math.min, As = Math.max, js = Math.floor, Ms = Math.ceil, Y = Math.abs;
4364
+ function Ns(e, t, n) {
4365
+ return Y(e - t) < n;
4329
4366
  }
4330
- function Ns(e, t, n, r) {
4331
- var i = Os(t, n), a = ks(t, n);
4367
+ function Ps(e, t, n, r) {
4368
+ var i = ks(t, n), a = As(t, n);
4332
4369
  return r ? i < e && e < a : i <= e && e <= a;
4333
4370
  }
4334
- function Ps(e, t, n) {
4335
- var r = Os(t, n), i = ks(t, n);
4336
- return Os(ks(r, e), i);
4371
+ function Fs(e, t, n) {
4372
+ var r = ks(t, n), i = As(t, n);
4373
+ return ks(As(r, e), i);
4337
4374
  }
4338
- function Fs(e) {
4375
+ function Is(e) {
4339
4376
  return (e > 0) - +(e < 0);
4340
4377
  }
4341
- function Is(e, t) {
4378
+ function Ls(e, t) {
4342
4379
  return q(t, function(t) {
4343
4380
  e = e.replace("%s", "" + t);
4344
4381
  }), e;
4345
4382
  }
4346
- function Ls(e) {
4383
+ function Rs(e) {
4347
4384
  return e < 10 ? "0" + e : "" + e;
4348
4385
  }
4349
- var Rs = {};
4350
- function zs(e) {
4351
- return "" + e + Ls(Rs[e] = (Rs[e] || 0) + 1);
4386
+ var zs = {};
4387
+ function Bs(e) {
4388
+ return "" + e + Rs(zs[e] = (zs[e] || 0) + 1);
4352
4389
  }
4353
- function Bs() {
4390
+ function Vs() {
4354
4391
  var e = [];
4355
4392
  function t(t, n, r, a) {
4356
4393
  i(t, n, function(t, n, i) {
@@ -4400,9 +4437,9 @@ function Bs() {
4400
4437
  destroy: a
4401
4438
  };
4402
4439
  }
4403
- var Vs = "mounted", Hs = "ready", Us = "move", Ws = "moved", Gs = "click", Ks = "active", qs = "inactive", Js = "visible", Ys = "hidden", Z = "refresh", Q = "updated", Xs = "resize", Zs = "resized", Qs = "drag", $s = "dragging", ec = "dragged", tc = "scroll", nc = "scrolled", rc = "overflow", ic = "destroy", ac = "arrows:mounted", oc = "arrows:updated", sc = "pagination:mounted", cc = "pagination:updated", lc = "navigation:mounted", uc = "autoplay:play", dc = "autoplay:playing", fc = "autoplay:pause", pc = "lazyload:loaded", mc = "sk", hc = "sh", gc = "ei";
4404
- function $(e) {
4405
- var t = e ? e.event.bus : document.createDocumentFragment(), n = Bs();
4440
+ var Hs = "mounted", Us = "ready", Ws = "move", Gs = "moved", Ks = "click", qs = "active", Js = "inactive", Ys = "visible", Xs = "hidden", X = "refresh", Z = "updated", Zs = "resize", Qs = "resized", $s = "drag", ec = "dragging", tc = "dragged", nc = "scroll", rc = "scrolled", ic = "overflow", ac = "destroy", oc = "arrows:mounted", sc = "arrows:updated", cc = "pagination:mounted", lc = "pagination:updated", uc = "navigation:mounted", dc = "autoplay:play", fc = "autoplay:playing", pc = "autoplay:pause", mc = "lazyload:loaded", hc = "sk", gc = "sh", _c = "ei";
4441
+ function Q(e) {
4442
+ var t = e ? e.event.bus : document.createDocumentFragment(), n = Vs();
4406
4443
  function r(e, r) {
4407
4444
  n.bind(t, Yo(e).join(" "), function(e) {
4408
4445
  r.apply(r, Uo(e.detail) ? e.detail : []);
@@ -4411,18 +4448,18 @@ function $(e) {
4411
4448
  function i(e) {
4412
4449
  n.dispatch(t, e, Lo(arguments, 1));
4413
4450
  }
4414
- return e && e.event.on(ic, n.destroy), ss(n, {
4451
+ return e && e.event.on(ac, n.destroy), ss(n, {
4415
4452
  bus: t,
4416
4453
  on: r,
4417
4454
  off: K(n.unbind, t),
4418
4455
  emit: i
4419
4456
  });
4420
4457
  }
4421
- function _c(e, t, n, r) {
4458
+ function vc(e, t, n, r) {
4422
4459
  var i = Date.now, a, o = 0, s, c = !0, l = 0;
4423
4460
  function u() {
4424
4461
  if (!c) {
4425
- if (o = e ? Os((i() - a) / e, 1) : 1, n && n(o), o >= 1 && (t(), a = i(), r && ++l >= r)) return f();
4462
+ if (o = e ? ks((i() - a) / e, 1) : 1, n && n(o), o >= 1 && (t(), a = i(), r && ++l >= r)) return f();
4426
4463
  s = Bo(u);
4427
4464
  }
4428
4465
  }
@@ -4453,7 +4490,7 @@ function _c(e, t, n, r) {
4453
4490
  isPaused: g
4454
4491
  };
4455
4492
  }
4456
- function vc(e) {
4493
+ function yc(e) {
4457
4494
  var t = e;
4458
4495
  function n(e) {
4459
4496
  t = e;
@@ -4466,14 +4503,14 @@ function vc(e) {
4466
4503
  is: r
4467
4504
  };
4468
4505
  }
4469
- function yc(e, t) {
4470
- var n = _c(t || 0, e, null, 1);
4506
+ function bc(e, t) {
4507
+ var n = vc(t || 0, e, null, 1);
4471
4508
  return function() {
4472
4509
  n.isPaused() && n.start();
4473
4510
  };
4474
4511
  }
4475
- function bc(e, t, n) {
4476
- var r = e.state, i = n.breakpoints || {}, a = n.reducedMotion || {}, o = Bs(), s = [];
4512
+ function xc(e, t, n) {
4513
+ var r = e.state, i = n.breakpoints || {}, a = n.reducedMotion || {}, o = Vs(), s = [];
4477
4514
  function c() {
4478
4515
  var e = n.mediaQuery === "min";
4479
4516
  as(i).sort(function(t, n) {
@@ -4499,7 +4536,7 @@ function bc(e, t, n) {
4499
4536
  matchMedia(Do).matches && (e ? cs(n, a) : ls(n, as(a)));
4500
4537
  }
4501
4538
  function p(t, i, a) {
4502
- cs(n, t), i && cs(Object.getPrototypeOf(n), t), (a || !r.is(Oo)) && e.emit(Q, n);
4539
+ cs(n, t), i && cs(Object.getPrototypeOf(n), t), (a || !r.is(Oo)) && e.emit(Z, n);
4503
4540
  }
4504
4541
  return {
4505
4542
  setup: c,
@@ -4508,45 +4545,45 @@ function bc(e, t, n) {
4508
4545
  set: p
4509
4546
  };
4510
4547
  }
4511
- var xc = "Arrow", Sc = xc + "Left", Cc = xc + "Right", wc = xc + "Up", Tc = xc + "Down", Ec = "rtl", Dc = "ttb", Oc = {
4548
+ var Sc = "Arrow", Cc = Sc + "Left", wc = Sc + "Right", Tc = Sc + "Up", Ec = Sc + "Down", Dc = "rtl", Oc = "ttb", kc = {
4512
4549
  width: ["height"],
4513
4550
  left: ["top", "right"],
4514
4551
  right: ["bottom", "left"],
4515
4552
  x: ["y"],
4516
4553
  X: ["Y"],
4517
4554
  Y: ["X"],
4518
- ArrowLeft: [wc, Cc],
4519
- ArrowRight: [Tc, Sc]
4555
+ ArrowLeft: [Tc, wc],
4556
+ ArrowRight: [Ec, Cc]
4520
4557
  };
4521
- function kc(e, t, n) {
4558
+ function Ac(e, t, n) {
4522
4559
  function r(e, t, r) {
4523
4560
  r ||= n.direction;
4524
- var i = r === Ec && !t ? 1 : r === Dc ? 0 : -1;
4525
- return Oc[e] && Oc[e][i] || e.replace(/width|left|right/i, function(e, t) {
4526
- var n = Oc[e.toLowerCase()][i] || e;
4561
+ var i = r === Dc && !t ? 1 : r === Oc ? 0 : -1;
4562
+ return kc[e] && kc[e][i] || e.replace(/width|left|right/i, function(e, t) {
4563
+ var n = kc[e.toLowerCase()][i] || e;
4527
4564
  return t > 0 ? n.charAt(0).toUpperCase() + n.slice(1) : n;
4528
4565
  });
4529
4566
  }
4530
4567
  function i(e) {
4531
- return e * (n.direction === Ec ? 1 : -1);
4568
+ return e * (n.direction === Dc ? 1 : -1);
4532
4569
  }
4533
4570
  return {
4534
4571
  resolve: r,
4535
4572
  orient: i
4536
4573
  };
4537
4574
  }
4538
- var Ac = "role", jc = "tabindex", Mc = "disabled", Nc = "aria-", Pc = Nc + "controls", Fc = Nc + "current", Ic = Nc + "selected", Lc = Nc + "label", Rc = Nc + "labelledby", zc = Nc + "hidden", Bc = Nc + "orientation", Vc = Nc + "roledescription", Hc = Nc + "live", Uc = Nc + "busy", Wc = Nc + "atomic", Gc = [
4539
- Ac,
4575
+ var jc = "role", Mc = "tabindex", Nc = "disabled", Pc = "aria-", Fc = Pc + "controls", Ic = Pc + "current", Lc = Pc + "selected", $ = Pc + "label", Rc = Pc + "labelledby", zc = Pc + "hidden", Bc = Pc + "orientation", Vc = Pc + "roledescription", Hc = Pc + "live", Uc = Pc + "busy", Wc = Pc + "atomic", Gc = [
4540
4576
  jc,
4541
4577
  Mc,
4542
- Pc,
4578
+ Nc,
4543
4579
  Fc,
4544
- Lc,
4580
+ Ic,
4581
+ $,
4545
4582
  Rc,
4546
4583
  zc,
4547
4584
  Bc,
4548
4585
  Vc
4549
- ], Kc = Ts + "__", qc = "is-", Jc = Ts, Yc = Kc + "track", Xc = Kc + "list", Zc = Kc + "slide", Qc = Zc + "--clone", $c = Zc + "__container", el = Kc + "arrows", tl = Kc + "arrow", nl = tl + "--prev", rl = tl + "--next", il = Kc + "pagination", al = il + "__page", ol = Kc + "progress__bar", sl = Kc + "toggle", cl = Kc + "spinner", ll = Kc + "sr", ul = qc + "initialized", dl = qc + "active", fl = qc + "prev", pl = qc + "next", ml = qc + "visible", hl = qc + "loading", gl = qc + "focus-in", _l = qc + "overflow", vl = [
4586
+ ], Kc = Es + "__", qc = "is-", Jc = Es, Yc = Kc + "track", Xc = Kc + "list", Zc = Kc + "slide", Qc = Zc + "--clone", $c = Zc + "__container", el = Kc + "arrows", tl = Kc + "arrow", nl = tl + "--prev", rl = tl + "--next", il = Kc + "pagination", al = il + "__page", ol = Kc + "progress__bar", sl = Kc + "toggle", cl = Kc + "spinner", ll = Kc + "sr", ul = qc + "initialized", dl = qc + "active", fl = qc + "prev", pl = qc + "next", ml = qc + "visible", hl = qc + "loading", gl = qc + "focus-in", _l = qc + "overflow", vl = [
4550
4587
  dl,
4551
4588
  ml,
4552
4589
  fl,
@@ -4572,12 +4609,12 @@ function bl(e, t) {
4572
4609
  }
4573
4610
  var xl = 5, Sl = 200, Cl = "touchstart mousedown", wl = "touchmove mousemove", Tl = "touchend touchcancel mouseup click";
4574
4611
  function El(e, t, n) {
4575
- var r = $(e), i = r.on, a = r.bind, o = e.root, s = n.i18n, c = {}, l = [], u = [], d = [], f, p, m;
4612
+ var r = Q(e), i = r.on, a = r.bind, o = e.root, s = n.i18n, c = {}, l = [], u = [], d = [], f, p, m;
4576
4613
  function h() {
4577
4614
  y(), b(), v();
4578
4615
  }
4579
4616
  function g() {
4580
- i(Z, _), i(Z, h), i(Q, v), a(document, Cl + " keydown", function(e) {
4617
+ i(X, _), i(X, h), i(Z, v), a(document, Cl + " keydown", function(e) {
4581
4618
  m = e.type === "keydown";
4582
4619
  }, { capture: !0 }), a(o, "focusin", function() {
4583
4620
  Qo(o, gl, !!m);
@@ -4585,13 +4622,13 @@ function El(e, t, n) {
4585
4622
  }
4586
4623
  function _(e) {
4587
4624
  var t = Gc.concat("style");
4588
- Io(l), Ss(o, u), Ss(f, d), us([f, p], t), us(o, e ? t : ["style", Vc]);
4625
+ Io(l), Cs(o, u), Cs(f, d), us([f, p], t), us(o, e ? t : ["style", Vc]);
4589
4626
  }
4590
4627
  function v() {
4591
- Ss(o, u), Ss(f, d), u = S(Jc), d = S(Yc), $o(o, u), $o(f, d), J(o, Lc, n.label), J(o, Rc, n.labelledby);
4628
+ Cs(o, u), Cs(f, d), u = S(Jc), d = S(Yc), $o(o, u), $o(f, d), J(o, $, n.label), J(o, Rc, n.labelledby);
4592
4629
  }
4593
4630
  function y() {
4594
- f = x("." + Yc), p = is(f, "." + Xc), Ds(f && p, "A track/list element is missing."), Zo(l, rs(p, "." + Zc + ":not(." + Qc + ")")), os({
4631
+ f = x("." + Yc), p = is(f, "." + Xc), Os(f && p, "A track/list element is missing."), Zo(l, rs(p, "." + Zc + ":not(." + Qc + ")")), os({
4595
4632
  arrows: el,
4596
4633
  pagination: il,
4597
4634
  prev: nl,
@@ -4608,11 +4645,11 @@ function El(e, t, n) {
4608
4645
  });
4609
4646
  }
4610
4647
  function b() {
4611
- var e = o.id || zs(Ts), t = n.role;
4612
- o.id = e, f.id = f.id || e + "-track", p.id = p.id || e + "-list", !hs(o, Ac) && o.tagName !== "SECTION" && t && J(o, Ac, t), J(o, Vc, s.carousel), J(p, Ac, "presentation");
4648
+ var e = o.id || Bs(Es), t = n.role;
4649
+ o.id = e, f.id = f.id || e + "-track", p.id = p.id || e + "-list", !hs(o, jc) && o.tagName !== "SECTION" && t && J(o, jc, t), J(o, Vc, s.carousel), J(p, jc, "presentation");
4613
4650
  }
4614
4651
  function x(e) {
4615
- var t = bs(o, e);
4652
+ var t = xs(o, e);
4616
4653
  return t && bl(t, "." + Jc) === o ? t : void 0;
4617
4654
  }
4618
4655
  function S(e) {
@@ -4632,26 +4669,26 @@ function El(e, t, n) {
4632
4669
  }
4633
4670
  var Dl = "slide", Ol = "loop", kl = "fade";
4634
4671
  function Al(e, t, n, r) {
4635
- var i = $(e), a = i.on, o = i.emit, s = i.bind, c = e.Components, l = e.root, u = e.options, d = u.isNavigation, f = u.updateOnMove, p = u.i18n, m = u.pagination, h = u.slideFocus, g = c.Direction.resolve, _ = hs(r, "style"), v = hs(r, Lc), y = n > -1, b = is(r, "." + $c), x;
4672
+ var i = Q(e), a = i.on, o = i.emit, s = i.bind, c = e.Components, l = e.root, u = e.options, d = u.isNavigation, f = u.updateOnMove, p = u.i18n, m = u.pagination, h = u.slideFocus, g = c.Direction.resolve, _ = hs(r, "style"), v = hs(r, $), y = n > -1, b = is(r, "." + $c), x;
4636
4673
  function S() {
4637
- y || (r.id = l.id + "-slide" + Ls(t + 1), J(r, Ac, m ? "tabpanel" : "group"), J(r, Vc, p.slide), J(r, Lc, v || Is(p.slideLabel, [t + 1, e.length]))), C();
4674
+ y || (r.id = l.id + "-slide" + Rs(t + 1), J(r, jc, m ? "tabpanel" : "group"), J(r, Vc, p.slide), J(r, $, v || Ls(p.slideLabel, [t + 1, e.length]))), C();
4638
4675
  }
4639
4676
  function C() {
4640
- s(r, "click", K(o, Gs, M)), s(r, "keydown", K(o, mc, M)), a([
4641
- Ws,
4642
- hc,
4643
- nc
4644
- ], D), a(lc, T), f && a(Us, E);
4677
+ s(r, "click", K(o, Ks, M)), s(r, "keydown", K(o, hc, M)), a([
4678
+ Gs,
4679
+ gc,
4680
+ rc
4681
+ ], D), a(uc, T), f && a(Ws, E);
4645
4682
  }
4646
4683
  function w() {
4647
- x = !0, i.destroy(), Ss(r, vl), us(r, Gc), J(r, "style", _), J(r, Lc, v || "");
4684
+ x = !0, i.destroy(), Cs(r, vl), us(r, Gc), J(r, "style", _), J(r, $, v || "");
4648
4685
  }
4649
4686
  function T() {
4650
4687
  var i = e.splides.map(function(e) {
4651
4688
  var n = e.splide.Components.Slides.getAt(t);
4652
4689
  return n ? n.slide.id : "";
4653
4690
  }).join(" ");
4654
- J(r, Lc, Is(p.slideX, (y ? n : t) + 1)), J(r, Pc, i), J(r, Ac, h ? "button" : ""), h && us(r, Vc);
4691
+ J(r, $, Ls(p.slideX, (y ? n : t) + 1)), J(r, Fc, i), J(r, jc, h ? "button" : ""), h && us(r, Vc);
4655
4692
  }
4656
4693
  function E() {
4657
4694
  x || D();
@@ -4664,11 +4701,11 @@ function Al(e, t, n, r) {
4664
4701
  }
4665
4702
  function ee() {
4666
4703
  var e = A();
4667
- e !== gs(r, dl) && (Qo(r, dl, e), J(r, Fc, d && e || ""), o(e ? Ks : qs, M));
4704
+ e !== gs(r, dl) && (Qo(r, dl, e), J(r, Ic, d && e || ""), o(e ? qs : Js, M));
4668
4705
  }
4669
4706
  function O() {
4670
4707
  var t = te(), n = !t && (!A() || y);
4671
- if (e.state.is([jo, Mo]) || J(r, zc, n || ""), J(xs(r, u.focusableNodes || ""), jc, n ? -1 : ""), h && J(r, jc, n ? -1 : 0), t !== gs(r, ml) && (Qo(r, ml, t), o(t ? Js : Ys, M)), !t && document.activeElement === r) {
4708
+ if (e.state.is([jo, Mo]) || J(r, zc, n || ""), J(Ss(r, u.focusableNodes || ""), Mc, n ? -1 : ""), h && J(r, Mc, n ? -1 : 0), t !== gs(r, ml) && (Qo(r, ml, t), o(t ? Ys : Xs, M)), !t && document.activeElement === r) {
4672
4709
  var i = c.Slides.getAt(e.index);
4673
4710
  i && ms(i.slide);
4674
4711
  }
@@ -4682,12 +4719,12 @@ function Al(e, t, n, r) {
4682
4719
  }
4683
4720
  function te() {
4684
4721
  if (e.is(kl)) return A();
4685
- var t = Y(c.Elements.track), n = Y(r), i = g("left", !0), a = g("right", !0);
4686
- return As(t[i]) <= js(n[i]) && As(n[a]) <= js(t[a]);
4722
+ var t = _s(c.Elements.track), n = _s(r), i = g("left", !0), a = g("right", !0);
4723
+ return js(t[i]) <= Ms(n[i]) && js(n[a]) <= Ms(t[a]);
4687
4724
  }
4688
4725
  function j(n, r) {
4689
- var i = X(n - t);
4690
- return !y && (u.rewind || e.is(Ol)) && (i = Os(i, e.length - i)), i <= r;
4726
+ var i = Y(n - t);
4727
+ return !y && (u.rewind || e.is(Ol)) && (i = ks(i, e.length - i)), i <= r;
4691
4728
  }
4692
4729
  var M = {
4693
4730
  index: t,
@@ -4704,9 +4741,9 @@ function Al(e, t, n, r) {
4704
4741
  return M;
4705
4742
  }
4706
4743
  function jl(e, t, n) {
4707
- var r = $(e), i = r.on, a = r.emit, o = r.bind, s = t.Elements, c = s.slides, l = s.list, u = [];
4744
+ var r = Q(e), i = r.on, a = r.emit, o = r.bind, s = t.Elements, c = s.slides, l = s.list, u = [];
4708
4745
  function d() {
4709
- f(), i(Z, p), i(Z, f);
4746
+ f(), i(X, p), i(X, f);
4710
4747
  }
4711
4748
  function f() {
4712
4749
  c.forEach(function(e, t) {
@@ -4737,7 +4774,7 @@ function jl(e, t, n) {
4737
4774
  function _(e) {
4738
4775
  var r = t.Controller, i = r.toIndex(e), a = r.hasFocus() ? 1 : n.perPage;
4739
4776
  return S(function(e) {
4740
- return Ns(e.index, i, i + a - 1);
4777
+ return Ps(e.index, i, i + a - 1);
4741
4778
  });
4742
4779
  }
4743
4780
  function v(e) {
@@ -4745,16 +4782,16 @@ function jl(e, t, n) {
4745
4782
  }
4746
4783
  function y(e, t) {
4747
4784
  q(e, function(e) {
4748
- if (Go(e) && (e = vs(e)), Jo(e)) {
4785
+ if (Go(e) && (e = ys(e)), Jo(e)) {
4749
4786
  var r = c[t];
4750
- r ? ts(e, r) : es(l, e), $o(e, n.classes.slide), w(e, K(a, Xs));
4787
+ r ? ts(e, r) : es(l, e), $o(e, n.classes.slide), w(e, K(a, Zs));
4751
4788
  }
4752
- }), a(Z);
4789
+ }), a(X);
4753
4790
  }
4754
4791
  function b(e) {
4755
- _s(S(e).map(function(e) {
4792
+ vs(S(e).map(function(e) {
4756
4793
  return e.slide;
4757
- })), a(Z);
4794
+ })), a(X);
4758
4795
  }
4759
4796
  function x(e, t) {
4760
4797
  g(t).forEach(e);
@@ -4770,7 +4807,7 @@ function jl(e, t, n) {
4770
4807
  });
4771
4808
  }
4772
4809
  function w(e, t) {
4773
- var n = xs(e, "img"), r = n.length;
4810
+ var n = Ss(e, "img"), r = n.length;
4774
4811
  r ? n.forEach(function(e) {
4775
4812
  o(e, "load error", function() {
4776
4813
  --r || t();
@@ -4801,50 +4838,50 @@ function jl(e, t, n) {
4801
4838
  };
4802
4839
  }
4803
4840
  function Ml(e, t, n) {
4804
- var r = $(e), i = r.on, a = r.bind, o = r.emit, s = t.Slides, c = t.Direction.resolve, l = t.Elements, u = l.root, d = l.track, f = l.list, p = s.getAt, m = s.style, h, g, _;
4841
+ var r = Q(e), i = r.on, a = r.bind, o = r.emit, s = t.Slides, c = t.Direction.resolve, l = t.Elements, u = l.root, d = l.track, f = l.list, p = s.getAt, m = s.style, h, g, _;
4805
4842
  function v() {
4806
- y(), a(window, "resize load", yc(K(o, Xs))), i([Q, Z], y), i(Xs, b);
4843
+ y(), a(window, "resize load", bc(K(o, Zs))), i([Z, X], y), i(Zs, b);
4807
4844
  }
4808
4845
  function y() {
4809
- h = n.direction === Dc, fs(u, "maxWidth", ws(n.width)), fs(d, c("paddingLeft"), x(!1)), fs(d, c("paddingRight"), x(!0)), b(!0);
4846
+ h = n.direction === Oc, fs(u, "maxWidth", Ts(n.width)), fs(d, c("paddingLeft"), x(!1)), fs(d, c("paddingRight"), x(!0)), b(!0);
4810
4847
  }
4811
4848
  function b(e) {
4812
- var t = Y(u);
4813
- (e || g.width !== t.width || g.height !== t.height) && (fs(d, "height", S()), m(c("marginRight"), ws(n.gap)), m("width", w()), m("height", T(), !0), g = t, o(Zs), _ !== (_ = j()) && (Qo(u, _l, _), o(rc, _)));
4849
+ var t = _s(u);
4850
+ (e || g.width !== t.width || g.height !== t.height) && (fs(d, "height", S()), m(c("marginRight"), Ts(n.gap)), m("width", w()), m("height", T(), !0), g = t, o(Qs), _ !== (_ = j()) && (Qo(u, _l, _), o(ic, _)));
4814
4851
  }
4815
4852
  function x(e) {
4816
4853
  var t = n.padding, r = c(e ? "right" : "left");
4817
- return t && ws(t[r] || (Ho(t) ? 0 : t)) || "0px";
4854
+ return t && Ts(t[r] || (Ho(t) ? 0 : t)) || "0px";
4818
4855
  }
4819
4856
  function S() {
4820
4857
  var e = "";
4821
- return h && (e = C(), Ds(e, "height or heightRatio is missing."), e = "calc(" + e + " - " + x(!1) + " - " + x(!0) + ")"), e;
4858
+ return h && (e = C(), Os(e, "height or heightRatio is missing."), e = "calc(" + e + " - " + x(!1) + " - " + x(!0) + ")"), e;
4822
4859
  }
4823
4860
  function C() {
4824
- return ws(n.height || Y(f).width * n.heightRatio);
4861
+ return Ts(n.height || _s(f).width * n.heightRatio);
4825
4862
  }
4826
4863
  function w() {
4827
- return n.autoWidth ? null : ws(n.fixedWidth) || (h ? "" : E());
4864
+ return n.autoWidth ? null : Ts(n.fixedWidth) || (h ? "" : E());
4828
4865
  }
4829
4866
  function T() {
4830
- return ws(n.fixedHeight) || (h ? n.autoHeight ? null : E() : C());
4867
+ return Ts(n.fixedHeight) || (h ? n.autoHeight ? null : E() : C());
4831
4868
  }
4832
4869
  function E() {
4833
- var e = ws(n.gap);
4870
+ var e = Ts(n.gap);
4834
4871
  return "calc((100%" + (e && " + " + e) + ")/" + (n.perPage || 1) + (e && " - " + e) + ")";
4835
4872
  }
4836
4873
  function D() {
4837
- return Y(f)[c("width")];
4874
+ return _s(f)[c("width")];
4838
4875
  }
4839
4876
  function ee(e, t) {
4840
4877
  var n = p(e || 0);
4841
- return n ? Y(n.slide)[c("width")] + (t ? 0 : A()) : 0;
4878
+ return n ? _s(n.slide)[c("width")] + (t ? 0 : A()) : 0;
4842
4879
  }
4843
4880
  function O(e, t) {
4844
4881
  var n = p(e);
4845
4882
  if (n) {
4846
- var r = Y(n.slide)[c("right")], i = Y(f)[c("left")];
4847
- return X(r - i) + (t ? 0 : A());
4883
+ var r = _s(n.slide)[c("right")], i = _s(f)[c("left")];
4884
+ return Y(r - i) + (t ? 0 : A());
4848
4885
  }
4849
4886
  return 0;
4850
4887
  }
@@ -4874,19 +4911,19 @@ function Ml(e, t, n) {
4874
4911
  }
4875
4912
  var Nl = 2;
4876
4913
  function Pl(e, t, n) {
4877
- var r = $(e), i = r.on, a = t.Elements, o = t.Slides, s = t.Direction.resolve, c = [], l;
4914
+ var r = Q(e), i = r.on, a = t.Elements, o = t.Slides, s = t.Direction.resolve, c = [], l;
4878
4915
  function u() {
4879
- i(Z, d), i([Q, Xs], p), (l = g()) && (m(l), t.Layout.resize(!0));
4916
+ i(X, d), i([Z, Zs], p), (l = g()) && (m(l), t.Layout.resize(!0));
4880
4917
  }
4881
4918
  function d() {
4882
4919
  f(), u();
4883
4920
  }
4884
4921
  function f() {
4885
- _s(c), Io(c), r.destroy();
4922
+ vs(c), Io(c), r.destroy();
4886
4923
  }
4887
4924
  function p() {
4888
4925
  var e = g();
4889
- l !== e && (l < e || !e) && r.emit(Z);
4926
+ l !== e && (l < e || !e) && r.emit(X);
4890
4927
  }
4891
4928
  function m(e) {
4892
4929
  var t = o.get().slice(), n = t.length;
@@ -4900,14 +4937,14 @@ function Pl(e, t, n) {
4900
4937
  }
4901
4938
  function h(t, r) {
4902
4939
  var i = t.cloneNode(!0);
4903
- return $o(i, n.classes.clone), i.id = e.root.id + "-clone" + Ls(r + 1), i;
4940
+ return $o(i, n.classes.clone), i.id = e.root.id + "-clone" + Rs(r + 1), i;
4904
4941
  }
4905
4942
  function g() {
4906
4943
  var r = n.clones;
4907
4944
  if (!e.is(Ol)) r = 0;
4908
4945
  else if (Ko(r)) {
4909
4946
  var i = n[s("fixedWidth")] && t.Layout.slideSize(0);
4910
- r = i && js(Y(a.track)[s("width")] / i) || n[s("autoWidth")] && e.length || n.perPage * Nl;
4947
+ r = i && Ms(_s(a.track)[s("width")] / i) || n[s("autoWidth")] && e.length || n.perPage * Nl;
4911
4948
  }
4912
4949
  return r;
4913
4950
  }
@@ -4917,21 +4954,21 @@ function Pl(e, t, n) {
4917
4954
  };
4918
4955
  }
4919
4956
  function Fl(e, t, n) {
4920
- var r = $(e), i = r.on, a = r.emit, o = e.state.set, s = t.Layout, c = s.slideSize, l = s.getPadding, u = s.totalSize, d = s.listSize, f = s.sliderSize, p = t.Direction, m = p.resolve, h = p.orient, g = t.Elements, _ = g.list, v = g.track, y;
4957
+ var r = Q(e), i = r.on, a = r.emit, o = e.state.set, s = t.Layout, c = s.slideSize, l = s.getPadding, u = s.totalSize, d = s.listSize, f = s.sliderSize, p = t.Direction, m = p.resolve, h = p.orient, g = t.Elements, _ = g.list, v = g.track, y;
4921
4958
  function b() {
4922
4959
  y = t.Transition, i([
4923
- Vs,
4924
- Zs,
4925
- Q,
4926
- Z
4960
+ Hs,
4961
+ Qs,
4962
+ Z,
4963
+ X
4927
4964
  ], x);
4928
4965
  }
4929
4966
  function x() {
4930
4967
  t.Controller.isBusy() || (t.Scroll.cancel(), C(e.index), t.Slides.update());
4931
4968
  }
4932
4969
  function S(e, t, n, r) {
4933
- e !== t && M(e > n) && (D(), w(E(k(), e > n), !0)), o(jo), a(Us, t, n, e), y.start(t, function() {
4934
- o(Ao), a(Ws, t, n, e), r && r();
4970
+ e !== t && M(e > n) && (D(), w(E(k(), e > n), !0)), o(jo), a(Ws, t, n, e), y.start(t, function() {
4971
+ o(Ao), a(Gs, t, n, e), r && r();
4935
4972
  });
4936
4973
  }
4937
4974
  function C(e) {
@@ -4940,7 +4977,7 @@ function Fl(e, t, n) {
4940
4977
  function w(t, n) {
4941
4978
  if (!e.is(kl)) {
4942
4979
  var r = n ? t : T(t);
4943
- fs(_, "transform", "translate" + m("X") + "(" + r + "px)"), t !== r && a(hc);
4980
+ fs(_, "transform", "translate" + m("X") + "(" + r + "px)"), t !== r && a(gc);
4944
4981
  }
4945
4982
  }
4946
4983
  function T(n) {
@@ -4952,14 +4989,14 @@ function Fl(e, t, n) {
4952
4989
  }
4953
4990
  function E(e, t) {
4954
4991
  var n = e - j(t), r = f();
4955
- return e -= h(r * (js(X(n) / r) || 1)) * (t ? 1 : -1), e;
4992
+ return e -= h(r * (Ms(Y(n) / r) || 1)) * (t ? 1 : -1), e;
4956
4993
  }
4957
4994
  function D() {
4958
4995
  w(k(), !0), y.cancel();
4959
4996
  }
4960
4997
  function ee(e) {
4961
4998
  for (var n = t.Slides.get(), r = 0, i = Infinity, a = 0; a < n.length; a++) {
4962
- var o = n[a].index, s = X(O(o, !0) - e);
4999
+ var o = n[a].index, s = Y(O(o, !0) - e);
4963
5000
  if (s <= i) i = s, r = o;
4964
5001
  else break;
4965
5002
  }
@@ -4971,10 +5008,10 @@ function Fl(e, t, n) {
4971
5008
  }
4972
5009
  function k() {
4973
5010
  var e = m("left");
4974
- return Y(_)[e] - Y(v)[e] + h(l(!1));
5011
+ return _s(_)[e] - _s(v)[e] + h(l(!1));
4975
5012
  }
4976
5013
  function A(t) {
4977
- return n.trimSpace && e.is(Dl) && (t = Ps(t, 0, h(f(!0) - d()))), t;
5014
+ return n.trimSpace && e.is(Dl) && (t = Fs(t, 0, h(f(!0) - d()))), t;
4978
5015
  }
4979
5016
  function te(e) {
4980
5017
  var t = n.focus;
@@ -4985,7 +5022,7 @@ function Fl(e, t, n) {
4985
5022
  }
4986
5023
  function M(e) {
4987
5024
  var t = h(E(k(), e));
4988
- return e ? t >= 0 : t <= _[m("scrollWidth")] - Y(v)[m("width")];
5025
+ return e ? t >= 0 : t <= _[m("scrollWidth")] - _s(v)[m("width")];
4989
5026
  }
4990
5027
  function ne(e, t) {
4991
5028
  t = Ko(t) ? k() : t;
@@ -5008,21 +5045,21 @@ function Fl(e, t, n) {
5008
5045
  };
5009
5046
  }
5010
5047
  function Il(e, t, n) {
5011
- var r = $(e), i = r.on, a = r.emit, o = t.Move, s = o.getPosition, c = o.getLimit, l = o.toPosition, u = t.Slides, d = u.isEnough, f = u.getLength, p = n.omitEnd, m = e.is(Ol), h = e.is(Dl), g = K(k, !1), _ = K(k, !0), v = n.start || 0, y, b = v, x, S, C;
5048
+ var r = Q(e), i = r.on, a = r.emit, o = t.Move, s = o.getPosition, c = o.getLimit, l = o.toPosition, u = t.Slides, d = u.isEnough, f = u.getLength, p = n.omitEnd, m = e.is(Ol), h = e.is(Dl), g = K(k, !1), _ = K(k, !0), v = n.start || 0, y, b = v, x, S, C;
5012
5049
  function w() {
5013
5050
  T(), i([
5014
- Q,
5015
5051
  Z,
5016
- gc
5017
- ], T), i(Zs, E);
5052
+ X,
5053
+ _c
5054
+ ], T), i(Qs, E);
5018
5055
  }
5019
5056
  function T() {
5020
5057
  x = f(!0), S = n.perMove, C = n.perPage, y = M();
5021
- var e = Ps(v, 0, p ? y : x - 1);
5058
+ var e = Fs(v, 0, p ? y : x - 1);
5022
5059
  e !== v && (v = e, o.reposition());
5023
5060
  }
5024
5061
  function E() {
5025
- y !== M() && a(gc);
5062
+ y !== M() && a(_c);
5026
5063
  }
5027
5064
  function D(e, t, n) {
5028
5065
  if (!ae()) {
@@ -5033,7 +5070,7 @@ function Il(e, t, n) {
5033
5070
  function ee(e, n, r, i) {
5034
5071
  t.Scroll.scroll(e, n, r, function() {
5035
5072
  var e = j(o.toIndex(s()));
5036
- re(p ? Os(e, y) : e), i && i();
5073
+ re(p ? ks(e, y) : e), i && i();
5037
5074
  });
5038
5075
  }
5039
5076
  function O(e) {
@@ -5041,22 +5078,22 @@ function Il(e, t, n) {
5041
5078
  if (Go(e)) {
5042
5079
  var n = e.match(/([+\-<>])(\d+)?/) || [], r = n[1], i = n[2];
5043
5080
  r === "+" || r === "-" ? t = A(v + +("" + r + (+i || 1)), v) : r === ">" ? t = i ? ne(+i) : g(!0) : r === "<" && (t = _(!0));
5044
- } else t = m ? e : Ps(e, 0, y);
5081
+ } else t = m ? e : Fs(e, 0, y);
5045
5082
  return t;
5046
5083
  }
5047
5084
  function k(e, t) {
5048
5085
  var n = S || (F() ? 1 : C), r = A(v + n * (e ? -1 : 1), v, !(S || F()));
5049
- return r === -1 && h && !Ms(s(), c(!e), 1) ? e ? 0 : y : t ? r : j(r);
5086
+ return r === -1 && h && !Ns(s(), c(!e), 1) ? e ? 0 : y : t ? r : j(r);
5050
5087
  }
5051
5088
  function A(e, t, r) {
5052
5089
  if (d() || F()) {
5053
5090
  var i = te(e);
5054
- i !== e && (t = e, e = i, r = !1), e < 0 || e > y ? e = !S && (Ns(0, e, t, !0) || Ns(y, t, e, !0)) ? ne(N(e)) : m ? r ? e < 0 ? -(x % C || C) : x : e : n.rewind ? e < 0 ? y : 0 : -1 : r && e !== t && (e = ne(N(t) + (e < t ? -1 : 1)));
5091
+ i !== e && (t = e, e = i, r = !1), e < 0 || e > y ? e = !S && (Ps(0, e, t, !0) || Ps(y, t, e, !0)) ? ne(N(e)) : m ? r ? e < 0 ? -(x % C || C) : x : e : n.rewind ? e < 0 ? y : 0 : -1 : r && e !== t && (e = ne(N(t) + (e < t ? -1 : 1)));
5055
5092
  } else e = -1;
5056
5093
  return e;
5057
5094
  }
5058
5095
  function te(t) {
5059
- if (h && n.trimSpace === "move" && t !== v) for (var r = s(); r === l(t, !0) && Ns(t, 0, e.length - 1, !n.rewind);) t < v ? --t : ++t;
5096
+ if (h && n.trimSpace === "move" && t !== v) for (var r = s(); r === l(t, !0) && Ps(t, 0, e.length - 1, !n.rewind);) t < v ? --t : ++t;
5060
5097
  return t;
5061
5098
  }
5062
5099
  function j(e) {
@@ -5067,17 +5104,17 @@ function Il(e, t, n) {
5067
5104
  e++;
5068
5105
  break;
5069
5106
  }
5070
- return Ps(e, 0, x - 1);
5107
+ return Fs(e, 0, x - 1);
5071
5108
  }
5072
5109
  function ne(e) {
5073
- return Ps(F() ? e : C * e, 0, y);
5110
+ return Fs(F() ? e : C * e, 0, y);
5074
5111
  }
5075
5112
  function N(e) {
5076
- return F() ? Os(e, y) : As((e >= y ? x - 1 : e) / C);
5113
+ return F() ? ks(e, y) : js((e >= y ? x - 1 : e) / C);
5077
5114
  }
5078
5115
  function P(e) {
5079
5116
  var t = o.toIndex(e);
5080
- return h ? Ps(t, 0, y) : t;
5117
+ return h ? Fs(t, 0, y) : t;
5081
5118
  }
5082
5119
  function re(e) {
5083
5120
  e !== v && (b = v, v = e);
@@ -5110,9 +5147,9 @@ function Il(e, t, n) {
5110
5147
  }
5111
5148
  var Ll = "http://www.w3.org/2000/svg", Rl = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z", zl = 40;
5112
5149
  function Bl(e, t, n) {
5113
- var r = $(e), i = r.on, a = r.bind, o = r.emit, s = n.classes, c = n.i18n, l = t.Elements, u = t.Controller, d = l.arrows, f = l.track, p = d, m = l.prev, h = l.next, g, _, v = {};
5150
+ var r = Q(e), i = r.on, a = r.bind, o = r.emit, s = n.classes, c = n.i18n, l = t.Elements, u = t.Controller, d = l.arrows, f = l.track, p = d, m = l.prev, h = l.next, g, _, v = {};
5114
5151
  function y() {
5115
- x(), i(Q, b);
5152
+ x(), i(Z, b);
5116
5153
  }
5117
5154
  function b() {
5118
5155
  S(), y();
@@ -5122,18 +5159,18 @@ function Bl(e, t, n) {
5122
5159
  e && !(m && h) && T(), m && h && (ss(v, {
5123
5160
  prev: m,
5124
5161
  next: h
5125
- }), ps(p, e ? "" : "none"), $o(p, _ = el + "--" + n.direction), e && (C(), D(), J([m, h], Pc, f.id), o(ac, m, h)));
5162
+ }), ps(p, e ? "" : "none"), $o(p, _ = el + "--" + n.direction), e && (C(), D(), J([m, h], Fc, f.id), o(oc, m, h)));
5126
5163
  }
5127
5164
  function S() {
5128
- r.destroy(), Ss(p, _), g ? (_s(d ? [m, h] : p), m = h = null) : us([m, h], Gc);
5165
+ r.destroy(), Cs(p, _), g ? (vs(d ? [m, h] : p), m = h = null) : us([m, h], Gc);
5129
5166
  }
5130
5167
  function C() {
5131
5168
  i([
5132
- Vs,
5133
- Ws,
5134
- Z,
5135
- nc,
5136
- gc
5169
+ Hs,
5170
+ Gs,
5171
+ X,
5172
+ rc,
5173
+ _c
5137
5174
  ], D), a(h, "click", K(w, ">")), a(m, "click", K(w, "<"));
5138
5175
  }
5139
5176
  function w(e) {
@@ -5143,12 +5180,12 @@ function Bl(e, t, n) {
5143
5180
  p = d || ds("div", s.arrows), m = E(!0), h = E(!1), g = !0, es(p, [m, h]), !d && ts(p, f);
5144
5181
  }
5145
5182
  function E(e) {
5146
- return vs("<button class=\"" + s.arrow + " " + (e ? s.prev : s.next) + "\" type=\"button\"><svg xmlns=\"" + Ll + "\" viewBox=\"0 0 " + zl + " " + zl + "\" width=\"" + zl + "\" height=\"" + zl + "\" focusable=\"false\"><path d=\"" + (n.arrowPath || Rl) + "\" />");
5183
+ return ys("<button class=\"" + s.arrow + " " + (e ? s.prev : s.next) + "\" type=\"button\"><svg xmlns=\"" + Ll + "\" viewBox=\"0 0 " + zl + " " + zl + "\" width=\"" + zl + "\" height=\"" + zl + "\" focusable=\"false\"><path d=\"" + (n.arrowPath || Rl) + "\" />");
5147
5184
  }
5148
5185
  function D() {
5149
5186
  if (m && h) {
5150
5187
  var t = e.index, n = u.getPrev(), r = u.getNext(), i = n > -1 && t < n ? c.last : c.prev, a = r > -1 && t > r ? c.first : c.next;
5151
- m.disabled = n < 0, h.disabled = r < 0, J(m, Lc, i), J(h, Lc, a), o(oc, m, h, n, r);
5188
+ m.disabled = n < 0, h.disabled = r < 0, J(m, $, i), J(h, $, a), o(sc, m, h, n, r);
5152
5189
  }
5153
5190
  }
5154
5191
  return {
@@ -5158,11 +5195,11 @@ function Bl(e, t, n) {
5158
5195
  update: D
5159
5196
  };
5160
5197
  }
5161
- var Vl = Es + "-interval";
5198
+ var Vl = Ds + "-interval";
5162
5199
  function Hl(e, t, n) {
5163
- var r = $(e), i = r.on, a = r.bind, o = r.emit, s = _c(n.interval, e.go.bind(e, ">"), C), c = s.isPaused, l = t.Elements, u = t.Elements, d = u.root, f = u.toggle, p = n.autoplay, m, h, g = p === "pause";
5200
+ var r = Q(e), i = r.on, a = r.bind, o = r.emit, s = vc(n.interval, e.go.bind(e, ">"), C), c = s.isPaused, l = t.Elements, u = t.Elements, d = u.root, f = u.toggle, p = n.autoplay, m, h, g = p === "pause";
5164
5201
  function _() {
5165
- p && (v(), f && J(f, Pc, l.track.id), g || y(), S());
5202
+ p && (v(), f && J(f, Fc, l.track.id), g || y(), S());
5166
5203
  }
5167
5204
  function v() {
5168
5205
  n.pauseOnHover && a(d, "mouseenter mouseleave", function(e) {
@@ -5172,26 +5209,26 @@ function Hl(e, t, n) {
5172
5209
  }), f && a(f, "click", function() {
5173
5210
  g ? y() : b(!0);
5174
5211
  }), i([
5175
- Us,
5176
- tc,
5177
- Z
5178
- ], s.rewind), i(Us, w);
5212
+ Ws,
5213
+ nc,
5214
+ X
5215
+ ], s.rewind), i(Ws, w);
5179
5216
  }
5180
5217
  function y() {
5181
- c() && t.Slides.isEnough() && (s.start(!n.resetProgress), h = m = g = !1, S(), o(uc));
5218
+ c() && t.Slides.isEnough() && (s.start(!n.resetProgress), h = m = g = !1, S(), o(dc));
5182
5219
  }
5183
5220
  function b(e) {
5184
- e === void 0 && (e = !0), g = !!e, S(), c() || (s.pause(), o(fc));
5221
+ e === void 0 && (e = !0), g = !!e, S(), c() || (s.pause(), o(pc));
5185
5222
  }
5186
5223
  function x() {
5187
5224
  g || (m || h ? b(!1) : y());
5188
5225
  }
5189
5226
  function S() {
5190
- f && (Qo(f, dl, !g), J(f, Lc, n.i18n[g ? "play" : "pause"]));
5227
+ f && (Qo(f, dl, !g), J(f, $, n.i18n[g ? "play" : "pause"]));
5191
5228
  }
5192
5229
  function C(e) {
5193
5230
  var t = l.bar;
5194
- t && fs(t, "width", e * 100 + "%"), o(dc, e);
5231
+ t && fs(t, "width", e * 100 + "%"), o(fc, e);
5195
5232
  }
5196
5233
  function w(e) {
5197
5234
  var r = t.Slides.getAt(e);
@@ -5206,12 +5243,12 @@ function Hl(e, t, n) {
5206
5243
  };
5207
5244
  }
5208
5245
  function Ul(e, t, n) {
5209
- var r = $(e).on;
5246
+ var r = Q(e).on;
5210
5247
  function i() {
5211
- n.cover && (r(pc, K(o, !0)), r([
5212
- Vs,
5213
- Q,
5214
- Z
5248
+ n.cover && (r(mc, K(o, !0)), r([
5249
+ Hs,
5250
+ Z,
5251
+ X
5215
5252
  ], K(a, !0)));
5216
5253
  }
5217
5254
  function a(e) {
@@ -5230,25 +5267,25 @@ function Ul(e, t, n) {
5230
5267
  }
5231
5268
  var Wl = 10, Gl = 600, Kl = .6, ql = 1.5, Jl = 800;
5232
5269
  function Yl(e, t, n) {
5233
- var r = $(e), i = r.on, a = r.emit, o = e.state.set, s = t.Move, c = s.getPosition, l = s.getLimit, u = s.exceededLimit, d = s.translate, f = e.is(Dl), p, m, h = 1;
5270
+ var r = Q(e), i = r.on, a = r.emit, o = e.state.set, s = t.Move, c = s.getPosition, l = s.getLimit, u = s.exceededLimit, d = s.translate, f = e.is(Dl), p, m, h = 1;
5234
5271
  function g() {
5235
- i(Us, b), i([Q, Z], x);
5272
+ i(Ws, b), i([Z, X], x);
5236
5273
  }
5237
5274
  function _(e, n, r, i, l) {
5238
5275
  var d = c();
5239
5276
  if (b(), r && (!f || !u())) {
5240
- var g = t.Layout.sliderSize(), _ = Fs(e) * g * As(X(e) / g) || 0;
5277
+ var g = t.Layout.sliderSize(), _ = Is(e) * g * js(Y(e) / g) || 0;
5241
5278
  e = s.toPosition(t.Controller.toDest(e % g)) + _;
5242
5279
  }
5243
- var x = Ms(d, e, 1);
5244
- h = 1, n = x ? 0 : n || ks(X(e - d) / ql, Jl), m = i, p = _c(n, v, K(y, d, e, l), 1), o(Mo), a(tc), p.start();
5280
+ var x = Ns(d, e, 1);
5281
+ h = 1, n = x ? 0 : n || As(Y(e - d) / ql, Jl), m = i, p = vc(n, v, K(y, d, e, l), 1), o(Mo), a(nc), p.start();
5245
5282
  }
5246
5283
  function v() {
5247
- o(Ao), m && m(), a(nc);
5284
+ o(Ao), m && m(), a(rc);
5248
5285
  }
5249
5286
  function y(e, t, n, r) {
5250
5287
  var i = c(), a = (e + (t - e) * S(r) - i) * h;
5251
- d(i + a), f && !n && u() && (h *= Kl, X(a) < Wl && _(l(u(!0)), Gl, !1, m, !0));
5288
+ d(i + a), f && !n && u() && (h *= Kl, Y(a) < Wl && _(l(u(!0)), Gl, !1, m, !0));
5252
5289
  }
5253
5290
  function b() {
5254
5291
  p && p.cancel();
@@ -5272,9 +5309,9 @@ var Xl = {
5272
5309
  capture: !0
5273
5310
  };
5274
5311
  function Zl(e, t, n) {
5275
- var r = $(e), i = r.on, a = r.emit, o = r.bind, s = r.unbind, c = e.state, l = t.Move, u = t.Scroll, d = t.Controller, f = t.Elements.track, p = t.Media.reduce, m = t.Direction, h = m.resolve, g = m.orient, _ = l.getPosition, v = l.exceededLimit, y, b, x, S, C, w = !1, T, E, D;
5312
+ var r = Q(e), i = r.on, a = r.emit, o = r.bind, s = r.unbind, c = e.state, l = t.Move, u = t.Scroll, d = t.Controller, f = t.Elements.track, p = t.Media.reduce, m = t.Direction, h = m.resolve, g = m.orient, _ = l.getPosition, v = l.exceededLimit, y, b, x, S, C, w = !1, T, E, D;
5276
5313
  function ee() {
5277
- o(f, wl, zo, Xl), o(f, Tl, zo, Xl), o(f, Cl, k, Xl), o(f, "click", j, { capture: !0 }), o(f, "dragstart", ys), i([Vs, Q], O);
5314
+ o(f, wl, zo, Xl), o(f, Tl, zo, Xl), o(f, Cl, k, Xl), o(f, "click", j, { capture: !0 }), o(f, "dragstart", bs), i([Hs, Z], O);
5278
5315
  }
5279
5316
  function O() {
5280
5317
  var e = n.drag;
@@ -5283,35 +5320,35 @@ function Zl(e, t, n) {
5283
5320
  function k(e) {
5284
5321
  if (T = !1, !E) {
5285
5322
  var t = ue(e);
5286
- le(e.target) && (t || !e.button) && (d.isBusy() ? ys(e, !0) : (D = t ? f : window, C = c.is([jo, Mo]), x = null, o(D, wl, A, Xl), o(D, Tl, te, Xl), l.cancel(), u.cancel(), M(e)));
5323
+ le(e.target) && (t || !e.button) && (d.isBusy() ? bs(e, !0) : (D = t ? f : window, C = c.is([jo, Mo]), x = null, o(D, wl, A, Xl), o(D, Tl, te, Xl), l.cancel(), u.cancel(), M(e)));
5287
5324
  }
5288
5325
  }
5289
5326
  function A(e) {
5290
- if (c.is(No) || (c.set(No), a(Qs)), e.cancelable) if (C) {
5327
+ if (c.is(No) || (c.set(No), a($s)), e.cancelable) if (C) {
5291
5328
  l.translate(y + ce(F(e)));
5292
5329
  var t = ae(e) > Sl, n = w !== (w = v());
5293
- (t || n) && M(e), T = !0, a($s), ys(e);
5294
- } else P(e) && (C = N(e), ys(e));
5330
+ (t || n) && M(e), T = !0, a(ec), bs(e);
5331
+ } else P(e) && (C = N(e), bs(e));
5295
5332
  }
5296
5333
  function te(e) {
5297
- c.is(No) && (c.set(Ao), a(ec)), C && (ne(e), ys(e)), s(D, wl, A), s(D, Tl, te), C = !1;
5334
+ c.is(No) && (c.set(Ao), a(tc)), C && (ne(e), bs(e)), s(D, wl, A), s(D, Tl, te), C = !1;
5298
5335
  }
5299
5336
  function j(e) {
5300
- !E && T && ys(e, !0);
5337
+ !E && T && bs(e, !0);
5301
5338
  }
5302
5339
  function M(e) {
5303
5340
  x = b, b = e, y = _();
5304
5341
  }
5305
5342
  function ne(t) {
5306
5343
  var r = re(t), i = ie(r), a = n.rewind && n.rewindByDrag;
5307
- p(!1), S ? d.scroll(i, 0, n.snap) : e.is(kl) ? d.go(g(Fs(r)) < 0 ? a ? "<" : "-" : a ? ">" : "+") : e.is(Dl) && w && a ? d.go(v(!0) ? ">" : "<") : d.go(d.toDest(i), !0), p(!0);
5344
+ p(!1), S ? d.scroll(i, 0, n.snap) : e.is(kl) ? d.go(g(Is(r)) < 0 ? a ? "<" : "-" : a ? ">" : "+") : e.is(Dl) && w && a ? d.go(v(!0) ? ">" : "<") : d.go(d.toDest(i), !0), p(!0);
5308
5345
  }
5309
5346
  function N(e) {
5310
5347
  var t = n.dragMinThreshold, r = Ho(t), i = r && t.mouse || 0, a = (r ? t.touch : +t) || 10;
5311
- return X(F(e)) > (ue(e) ? a : i);
5348
+ return Y(F(e)) > (ue(e) ? a : i);
5312
5349
  }
5313
5350
  function P(e) {
5314
- return X(F(e)) > X(F(e, !0));
5351
+ return Y(F(e)) > Y(F(e, !0));
5315
5352
  }
5316
5353
  function re(t) {
5317
5354
  if (e.is(Ol) || !w) {
@@ -5321,13 +5358,13 @@ function Zl(e, t, n) {
5321
5358
  return 0;
5322
5359
  }
5323
5360
  function ie(e) {
5324
- return _() + Fs(e) * Os(X(e) * (n.flickPower || 600), S ? Infinity : t.Layout.listSize() * (n.flickMaxPages || 1));
5361
+ return _() + Is(e) * ks(Y(e) * (n.flickPower || 600), S ? Infinity : t.Layout.listSize() * (n.flickMaxPages || 1));
5325
5362
  }
5326
5363
  function F(e, t) {
5327
5364
  return se(e, t) - se(oe(e), t);
5328
5365
  }
5329
5366
  function ae(e) {
5330
- return Cs(e) - Cs(oe(e));
5367
+ return ws(e) - ws(oe(e));
5331
5368
  }
5332
5369
  function oe(e) {
5333
5370
  return b === e && x || b;
@@ -5359,19 +5396,19 @@ function Zl(e, t, n) {
5359
5396
  }
5360
5397
  var Ql = {
5361
5398
  Spacebar: " ",
5362
- Right: Cc,
5363
- Left: Sc,
5364
- Up: wc,
5365
- Down: Tc
5399
+ Right: wc,
5400
+ Left: Cc,
5401
+ Up: Tc,
5402
+ Down: Ec
5366
5403
  };
5367
5404
  function $l(e) {
5368
5405
  return e = Go(e) ? e : e.key, Ql[e] || e;
5369
5406
  }
5370
5407
  var eu = "keydown";
5371
5408
  function tu(e, t, n) {
5372
- var r = $(e), i = r.on, a = r.bind, o = r.unbind, s = e.root, c = t.Direction.resolve, l, u;
5409
+ var r = Q(e), i = r.on, a = r.bind, o = r.unbind, s = e.root, c = t.Direction.resolve, l, u;
5373
5410
  function d() {
5374
- f(), i(Q, p), i(Q, f), i(Us, h);
5411
+ f(), i(Z, p), i(Z, f), i(Ws, h);
5375
5412
  }
5376
5413
  function f() {
5377
5414
  var e = n.keyboard;
@@ -5392,7 +5429,7 @@ function tu(e, t, n) {
5392
5429
  function g(t) {
5393
5430
  if (!u) {
5394
5431
  var n = $l(t);
5395
- n === c(Sc) ? e.go("<") : n === c(Cc) && e.go(">");
5432
+ n === c(Cc) ? e.go("<") : n === c(wc) && e.go(">");
5396
5433
  }
5397
5434
  }
5398
5435
  return {
@@ -5401,18 +5438,18 @@ function tu(e, t, n) {
5401
5438
  disable: m
5402
5439
  };
5403
5440
  }
5404
- var nu = Es + "-lazy", ru = nu + "-srcset", iu = "[" + nu + "], [" + ru + "]";
5441
+ var nu = Ds + "-lazy", ru = nu + "-srcset", iu = "[" + nu + "], [" + ru + "]";
5405
5442
  function au(e, t, n) {
5406
- var r = $(e), i = r.on, a = r.off, o = r.bind, s = r.emit, c = n.lazyLoad === "sequential", l = [Ws, nc], u = [];
5443
+ var r = Q(e), i = r.on, a = r.off, o = r.bind, s = r.emit, c = n.lazyLoad === "sequential", l = [Gs, rc], u = [];
5407
5444
  function d() {
5408
- n.lazyLoad && (f(), i(Z, f));
5445
+ n.lazyLoad && (f(), i(X, f));
5409
5446
  }
5410
5447
  function f() {
5411
5448
  Io(u), p(), c ? _() : (a(l), i(l, m), m());
5412
5449
  }
5413
5450
  function p() {
5414
5451
  t.Slides.forEach(function(e) {
5415
- xs(e.slide, iu).forEach(function(t) {
5452
+ Ss(e.slide, iu).forEach(function(t) {
5416
5453
  var r = hs(t, nu), i = hs(t, ru);
5417
5454
  if (r !== t.src || i !== t.srcset) {
5418
5455
  var a = n.classes.spinner, o = t.parentElement, s = is(o, "." + a) || ds("span", a, o);
@@ -5437,7 +5474,7 @@ function au(e, t, n) {
5437
5474
  }
5438
5475
  function g(e, t) {
5439
5476
  var n = e[0], r = e[1];
5440
- Ss(r.slide, hl), t.type !== "error" && (_s(e[2]), ps(n, ""), s(pc, n, r), s(Xs)), c && _();
5477
+ Cs(r.slide, hl), t.type !== "error" && (vs(e[2]), ps(n, ""), s(mc, n, r), s(Zs)), c && _();
5441
5478
  }
5442
5479
  function _() {
5443
5480
  u.length && h(u.shift());
@@ -5449,29 +5486,29 @@ function au(e, t, n) {
5449
5486
  };
5450
5487
  }
5451
5488
  function ou(e, t, n) {
5452
- var r = $(e), i = r.on, a = r.emit, o = r.bind, s = t.Slides, c = t.Elements, l = t.Controller, u = l.hasFocus, d = l.getIndex, f = l.go, p = t.Direction.resolve, m = c.pagination, h = [], g, _;
5489
+ var r = Q(e), i = r.on, a = r.emit, o = r.bind, s = t.Slides, c = t.Elements, l = t.Controller, u = l.hasFocus, d = l.getIndex, f = l.go, p = t.Direction.resolve, m = c.pagination, h = [], g, _;
5453
5490
  function v() {
5454
5491
  y(), i([
5455
- Q,
5456
5492
  Z,
5457
- gc
5493
+ X,
5494
+ _c
5458
5495
  ], v);
5459
5496
  var t = n.pagination;
5460
5497
  m && ps(m, t ? "" : "none"), t && (i([
5461
- Us,
5462
- tc,
5463
- nc
5464
- ], T), b(), T(), a(sc, {
5498
+ Ws,
5499
+ nc,
5500
+ rc
5501
+ ], T), b(), T(), a(cc, {
5465
5502
  list: g,
5466
5503
  items: h
5467
5504
  }, w(e.index)));
5468
5505
  }
5469
5506
  function y() {
5470
- g &&= (_s(m ? Lo(g.children) : g), Ss(g, _), Io(h), null), r.destroy();
5507
+ g &&= (vs(m ? Lo(g.children) : g), Cs(g, _), Io(h), null), r.destroy();
5471
5508
  }
5472
5509
  function b() {
5473
- var t = e.length, r = n.classes, i = n.i18n, a = n.perPage, d = u() ? l.getEnd() + 1 : js(t / a);
5474
- g = m || ds("ul", r.pagination, c.track.parentElement), $o(g, _ = il + "--" + C()), J(g, Ac, "tablist"), J(g, Lc, i.select), J(g, Bc, C() === Dc ? "vertical" : "");
5510
+ var t = e.length, r = n.classes, i = n.i18n, a = n.perPage, d = u() ? l.getEnd() + 1 : Ms(t / a);
5511
+ g = m || ds("ul", r.pagination, c.track.parentElement), $o(g, _ = il + "--" + C()), J(g, jc, "tablist"), J(g, $, i.select), J(g, Bc, C() === Oc ? "vertical" : "");
5475
5512
  for (var f = 0; f < d; f++) {
5476
5513
  var p = ds("li", null, g), v = ds("button", {
5477
5514
  class: r.page,
@@ -5479,7 +5516,7 @@ function ou(e, t, n) {
5479
5516
  }, p), y = s.getIn(f).map(function(e) {
5480
5517
  return e.slide.id;
5481
5518
  }), b = !u() && a > 1 ? i.pageX : i.slideX;
5482
- o(v, "click", K(x, f)), n.paginationKeyboard && o(v, "keydown", K(S, f)), J(p, Ac, "presentation"), J(v, Ac, "tab"), J(v, Pc, y.join(" ")), J(v, Lc, Is(b, f + 1)), J(v, jc, -1), h.push({
5519
+ o(v, "click", K(x, f)), n.paginationKeyboard && o(v, "keydown", K(S, f)), J(p, jc, "presentation"), J(v, jc, "tab"), J(v, Fc, y.join(" ")), J(v, $, Ls(b, f + 1)), J(v, Mc, -1), h.push({
5483
5520
  li: p,
5484
5521
  button: v,
5485
5522
  page: f
@@ -5491,9 +5528,9 @@ function ou(e, t, n) {
5491
5528
  }
5492
5529
  function S(e, t) {
5493
5530
  var n = h.length, r = $l(t), i = C(), a = -1;
5494
- r === p(Cc, !1, i) ? a = ++e % n : r === p(Sc, !1, i) ? a = (--e + n) % n : r === "Home" ? a = 0 : r === "End" && (a = n - 1);
5531
+ r === p(wc, !1, i) ? a = ++e % n : r === p(Cc, !1, i) ? a = (--e + n) % n : r === "Home" ? a = 0 : r === "End" && (a = n - 1);
5495
5532
  var o = h[a];
5496
- o && (ms(o.button), f(">" + a), ys(t, !0));
5533
+ o && (ms(o.button), f(">" + a), bs(t, !0));
5497
5534
  }
5498
5535
  function C() {
5499
5536
  return n.paginationDirection || n.direction;
@@ -5505,13 +5542,13 @@ function ou(e, t, n) {
5505
5542
  var e = w(d(!0)), t = w(d());
5506
5543
  if (e) {
5507
5544
  var n = e.button;
5508
- Ss(n, dl), us(n, Ic), J(n, jc, -1);
5545
+ Cs(n, dl), us(n, Lc), J(n, Mc, -1);
5509
5546
  }
5510
5547
  if (t) {
5511
5548
  var r = t.button;
5512
- $o(r, dl), J(r, Ic, !0), J(r, jc, "");
5549
+ $o(r, dl), J(r, Lc, !0), J(r, Mc, "");
5513
5550
  }
5514
- a(cc, {
5551
+ a(lc, {
5515
5552
  list: g,
5516
5553
  items: h
5517
5554
  }, e, t);
@@ -5541,23 +5578,23 @@ function cu(e, t, n) {
5541
5578
  s(), o();
5542
5579
  }
5543
5580
  function l(e, t) {
5544
- var n = $(e);
5545
- n.on(Us, function(e, n, r) {
5581
+ var n = Q(e);
5582
+ n.on(Ws, function(e, n, r) {
5546
5583
  t.go(t.is(Ol) ? r : e);
5547
5584
  }), a.push(n);
5548
5585
  }
5549
5586
  function u() {
5550
- var t = $(e), n = t.on;
5551
- n(Gs, f), n(mc, p), n([Vs, Q], d), a.push(t), t.emit(lc, e.splides);
5587
+ var t = Q(e), n = t.on;
5588
+ n(Ks, f), n(hc, p), n([Hs, Z], d), a.push(t), t.emit(uc, e.splides);
5552
5589
  }
5553
5590
  function d() {
5554
- J(t.Elements.list, Bc, n.direction === Dc ? "vertical" : "");
5591
+ J(t.Elements.list, Bc, n.direction === Oc ? "vertical" : "");
5555
5592
  }
5556
5593
  function f(t) {
5557
5594
  e.go(t.index);
5558
5595
  }
5559
5596
  function p(e, t) {
5560
- Xo(su, $l(t)) && (f(e), ys(t));
5597
+ Xo(su, $l(t)) && (f(e), bs(t));
5561
5598
  }
5562
5599
  return {
5563
5600
  setup: K(t.Media.set, { slideFocus: Ko(i) ? r : i }, !0),
@@ -5567,14 +5604,14 @@ function cu(e, t, n) {
5567
5604
  };
5568
5605
  }
5569
5606
  function lu(e, t, n) {
5570
- var r = $(e).bind, i = 0;
5607
+ var r = Q(e).bind, i = 0;
5571
5608
  function a() {
5572
5609
  n.wheel && r(t.Elements.track, "wheel", o, Xl);
5573
5610
  }
5574
5611
  function o(t) {
5575
5612
  if (t.cancelable) {
5576
- var r = t.deltaY, a = r < 0, o = Cs(t), c = n.wheelMinThreshold || 0, l = n.wheelSleep || 0;
5577
- X(r) > c && o - i > l && (e.go(a ? "<" : ">"), i = o), s(a) && ys(t);
5613
+ var r = t.deltaY, a = r < 0, o = ws(t), c = n.wheelMinThreshold || 0, l = n.wheelSleep || 0;
5614
+ Y(r) > c && o - i > l && (e.go(a ? "<" : ">"), i = o), s(a) && bs(t);
5578
5615
  }
5579
5616
  }
5580
5617
  function s(r) {
@@ -5584,19 +5621,19 @@ function lu(e, t, n) {
5584
5621
  }
5585
5622
  var uu = 90;
5586
5623
  function du(e, t, n) {
5587
- var r = $(e).on, i = t.Elements.track, a = n.live && !n.isNavigation, o = ds("span", ll), s = _c(uu, K(l, !1));
5624
+ var r = Q(e).on, i = t.Elements.track, a = n.live && !n.isNavigation, o = ds("span", ll), s = vc(uu, K(l, !1));
5588
5625
  function c() {
5589
- a && (d(!t.Autoplay.isPaused()), J(i, Wc, !0), o.textContent = "…", r(uc, K(d, !0)), r(fc, K(d, !1)), r([Ws, nc], K(l, !0)));
5626
+ a && (d(!t.Autoplay.isPaused()), J(i, Wc, !0), o.textContent = "…", r(dc, K(d, !0)), r(pc, K(d, !1)), r([Gs, rc], K(l, !0)));
5590
5627
  }
5591
5628
  function l(e) {
5592
- J(i, Uc, e), e ? (es(i, o), s.start()) : (_s(o), s.cancel());
5629
+ J(i, Uc, e), e ? (es(i, o), s.start()) : (vs(o), s.cancel());
5593
5630
  }
5594
5631
  function u() {
5595
5632
  us(i, [
5596
5633
  Hc,
5597
5634
  Wc,
5598
5635
  Uc
5599
- ]), _s(o);
5636
+ ]), vs(o);
5600
5637
  }
5601
5638
  function d(e) {
5602
5639
  a && J(i, Hc, e ? "off" : "polite");
@@ -5609,8 +5646,8 @@ function du(e, t, n) {
5609
5646
  }
5610
5647
  var fu = /* @__PURE__ */ Object.freeze({
5611
5648
  __proto__: null,
5612
- Media: bc,
5613
- Direction: kc,
5649
+ Media: xc,
5650
+ Direction: Ac,
5614
5651
  Elements: El,
5615
5652
  Slides: jl,
5616
5653
  Layout: Ml,
@@ -5671,7 +5708,7 @@ var fu = /* @__PURE__ */ Object.freeze({
5671
5708
  function mu(e, t, n) {
5672
5709
  var r = t.Slides;
5673
5710
  function i() {
5674
- $(e).on([Vs, Z], a);
5711
+ Q(e).on([Hs, X], a);
5675
5712
  }
5676
5713
  function a() {
5677
5714
  r.forEach(function(e) {
@@ -5690,13 +5727,13 @@ function mu(e, t, n) {
5690
5727
  function hu(e, t, n) {
5691
5728
  var r = t.Move, i = t.Controller, a = t.Scroll, o = t.Elements.list, s = K(fs, o, "transition"), c;
5692
5729
  function l() {
5693
- $(e).bind(o, "transitionend", function(e) {
5730
+ Q(e).bind(o, "transitionend", function(e) {
5694
5731
  e.target === o && c && (d(), c());
5695
5732
  });
5696
5733
  }
5697
5734
  function u(e, t) {
5698
5735
  var i = r.toPosition(e, !0), o = r.getPosition(), l = f(e);
5699
- X(i - o) >= 1 && l >= 1 ? n.useScroll ? a.scroll(i, l, !1, t) : (s("transform " + l + "ms " + n.easing), r.translate(i, !0), c = t) : (r.jump(e), t());
5736
+ Y(i - o) >= 1 && l >= 1 ? n.useScroll ? a.scroll(i, l, !1, t) : (s("transform " + l + "ms " + n.easing), r.translate(i, !0), c = t) : (r.jump(e), t());
5700
5737
  }
5701
5738
  function d() {
5702
5739
  s(""), a.cancel();
@@ -5717,28 +5754,28 @@ function hu(e, t, n) {
5717
5754
  }
5718
5755
  var gu = /* @__PURE__ */ function() {
5719
5756
  function e(t, n) {
5720
- this.event = $(), this.Components = {}, this.state = vc(Oo), this.splides = [], this._o = {}, this._E = {};
5721
- var r = Go(t) ? bs(document, t) : t;
5722
- Ds(r, r + " is invalid."), this.root = r, n = cs({
5723
- label: hs(r, Lc) || "",
5757
+ this.event = Q(), this.Components = {}, this.state = yc(Oo), this.splides = [], this._o = {}, this._E = {};
5758
+ var r = Go(t) ? xs(document, t) : t;
5759
+ Os(r, r + " is invalid."), this.root = r, n = cs({
5760
+ label: hs(r, $) || "",
5724
5761
  labelledby: hs(r, Rc) || ""
5725
5762
  }, pu, e.defaults, n || {});
5726
5763
  try {
5727
- cs(n, JSON.parse(hs(r, Es)));
5764
+ cs(n, JSON.parse(hs(r, Ds)));
5728
5765
  } catch {
5729
- Ds(!1, "Invalid JSON");
5766
+ Os(!1, "Invalid JSON");
5730
5767
  }
5731
5768
  this._o = Object.create(cs({}, n));
5732
5769
  }
5733
5770
  var t = e.prototype;
5734
5771
  return t.mount = function(e, t) {
5735
5772
  var n = this, r = this.state, i = this.Components;
5736
- return Ds(r.is([Oo, Po]), "Already mounted!"), r.set(Oo), this._C = i, this._T = t || this._T || (this.is(kl) ? mu : hu), this._E = e || this._E, os(ss({}, fu, this._E, { Transition: this._T }), function(e, t) {
5773
+ return Os(r.is([Oo, Po]), "Already mounted!"), r.set(Oo), this._C = i, this._T = t || this._T || (this.is(kl) ? mu : hu), this._E = e || this._E, os(ss({}, fu, this._E, { Transition: this._T }), function(e, t) {
5737
5774
  var r = e(n, i, n._o);
5738
5775
  i[t] = r, r.setup && r.setup();
5739
5776
  }), os(i, function(e) {
5740
5777
  e.mount && e.mount();
5741
- }), this.emit(Vs), $o(this.root, ul), r.set(Ao), this.emit(Hs), this;
5778
+ }), this.emit(Hs), $o(this.root, ul), r.set(Ao), this.emit(Us), this;
5742
5779
  }, t.sync = function(e) {
5743
5780
  return this.splides.push({ splide: e }), e.splides.push({
5744
5781
  splide: this,
@@ -5760,13 +5797,13 @@ var gu = /* @__PURE__ */ function() {
5760
5797
  }, t.is = function(e) {
5761
5798
  return this._o.type === e;
5762
5799
  }, t.refresh = function() {
5763
- return this.emit(Z), this;
5800
+ return this.emit(X), this;
5764
5801
  }, t.destroy = function(e) {
5765
5802
  e === void 0 && (e = !0);
5766
5803
  var t = this.event, n = this.state;
5767
- return n.is(Oo) ? $(this).on(Hs, this.destroy.bind(this, e)) : (os(this._C, function(t) {
5804
+ return n.is(Oo) ? Q(this).on(Us, this.destroy.bind(this, e)) : (os(this._C, function(t) {
5768
5805
  t.destroy && t.destroy(e);
5769
- }, !0), t.emit(ic), t.destroy(), e && Io(this.splides), n.set(Po)), this;
5806
+ }, !0), t.emit(ac), t.destroy(), e && Io(this.splides), n.set(Po)), this;
5770
5807
  }, Eo(e, [
5771
5808
  {
5772
5809
  key: "options",
@@ -5793,33 +5830,33 @@ var gu = /* @__PURE__ */ function() {
5793
5830
  }();
5794
5831
  gu.defaults = {}, gu.STATES = Fo;
5795
5832
  var _u = [
5796
- Ks,
5797
- ac,
5833
+ qs,
5798
5834
  oc,
5799
- fc,
5800
- uc,
5835
+ sc,
5836
+ pc,
5801
5837
  dc,
5802
- Gs,
5803
- ic,
5804
- Qs,
5805
- ec,
5838
+ fc,
5839
+ Ks,
5840
+ ac,
5806
5841
  $s,
5807
- Ys,
5808
- qs,
5809
- pc,
5810
- Vs,
5811
- Us,
5842
+ tc,
5843
+ ec,
5844
+ Xs,
5845
+ Js,
5846
+ mc,
5847
+ Hs,
5812
5848
  Ws,
5813
- lc,
5814
- sc,
5849
+ Gs,
5850
+ uc,
5815
5851
  cc,
5816
- Z,
5817
- Xs,
5852
+ lc,
5853
+ X,
5818
5854
  Zs,
5819
- tc,
5855
+ Qs,
5820
5856
  nc,
5821
- Q,
5822
- Js
5857
+ rc,
5858
+ Z,
5859
+ Ys
5823
5860
  ], vu = "splide";
5824
5861
  function yu(e) {
5825
5862
  return typeof e == "object" && !!e;