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

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.
@@ -864,7 +864,8 @@ var Jt = /* @__PURE__ */ I(Gt, [["render", qt]]), Yt = {
864
864
  onDragover: F(x, ["prevent"]),
865
865
  onDragleave: F(C, ["prevent"]),
866
866
  onDrop: F(w, ["prevent"]),
867
- onClick: b
867
+ onClick: b,
868
+ onKeydown: [ie(b, ["enter"]), ie(b, ["space"])]
868
869
  }, [
869
870
  t.label ? (y(), a("p", Yt, D(t.label), 1)) : i("", !0),
870
871
  u(Jt),
@@ -893,7 +894,7 @@ var Jt = /* @__PURE__ */ I(Gt, [["render", qt]]), Yt = {
893
894
  }))
894
895
  ], 64));
895
896
  }
896
- }), [["__scopeId", "data-v-fdca4876"]]), Qt = ["id", "checked"], $t = ["for"], en = ["id"], tn = /* @__PURE__ */ d({
897
+ }), [["__scopeId", "data-v-b767117a"]]), Qt = ["id", "checked"], $t = ["for"], en = ["id"], tn = /* @__PURE__ */ d({
897
898
  __name: "MucCheckbox",
898
899
  props: /* @__PURE__ */ p({
899
900
  id: {},
@@ -1382,38 +1383,54 @@ var z = {
1382
1383
  for (var n = e.children[0]; e.firstChild;) e.removeChild(e.firstChild);
1383
1384
  return n;
1384
1385
  };
1385
- })(), gr = function(e, t) {
1386
- return typeof e == "function" ? e(mr(t), t) : e;
1387
- }, _r = function(e) {
1386
+ })(), gr = function(e) {
1388
1387
  return typeof e == "function" ? e() : e;
1389
- }, vr = function(e) {
1388
+ }, _r = function(e) {
1390
1389
  if (typeof e == "string") return e;
1391
1390
  if (typeof e == "object") {
1392
1391
  if ("trusted" in e) return e.trusted;
1393
1392
  if ("raw" in e) return e.raw;
1394
1393
  }
1395
1394
  return "";
1396
- }, yr = function(e) {
1395
+ }, vr = function(e) {
1397
1396
  if (typeof e == "string") return e;
1398
1397
  if (typeof e == "object") {
1399
1398
  if ("escaped" in e) return e.escaped;
1400
1399
  if ("trusted" in e) return e.trusted;
1401
1400
  }
1402
1401
  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) {
1402
+ }, yr = function(e, t) {
1403
+ return {
1404
+ id: e.id,
1405
+ highlighted: e.highlighted,
1406
+ labelClass: e.labelClass,
1407
+ labelDescription: _r(e.labelDescription),
1408
+ customProperties: e.customProperties,
1409
+ disabled: e.disabled,
1410
+ active: e.active,
1411
+ label: e.label,
1412
+ placeholder: e.placeholder,
1413
+ value: e.value,
1414
+ groupValue: e.group ? e.group.label : void 0,
1415
+ element: e.element,
1416
+ keyCode: t
1417
+ };
1418
+ }, br = function(e, t, n) {
1419
+ return typeof e == "function" ? e(mr(t), _r(t), n) : e;
1420
+ }, xr = function(e, t) {
1421
+ return e ? vr(t) : mr(t);
1422
+ }, Sr = function(e, t, n) {
1423
+ e.innerHTML = xr(t, n);
1424
+ }, Cr = function(e, t) {
1408
1425
  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), [], {
1426
+ return _r(i).localeCompare(_r(s), [], {
1410
1427
  sensitivity: "base",
1411
1428
  ignorePunctuation: !0,
1412
1429
  numeric: !0
1413
1430
  });
1414
- }, Cr = function(e, t) {
1431
+ }, wr = function(e, t) {
1415
1432
  return e.rank - t.rank;
1416
- }, wr = function(e, t, n) {
1433
+ }, Tr = function(e, t, n) {
1417
1434
  n === void 0 && (n = null);
1418
1435
  var r = new CustomEvent(t, {
1419
1436
  detail: n,
@@ -1421,34 +1438,34 @@ var z = {
1421
1438
  cancelable: !0
1422
1439
  });
1423
1440
  return e.dispatchEvent(r);
1424
- }, Tr = function(e, t) {
1441
+ }, Er = function(e, t) {
1425
1442
  var n = Object.keys(e).sort(), r = Object.keys(t).sort();
1426
1443
  return n.filter(function(e) {
1427
1444
  return r.indexOf(e) < 0;
1428
1445
  });
1429
- }, Er = function(e) {
1430
- return Array.isArray(e) ? e : [e];
1431
1446
  }, Dr = function(e) {
1447
+ return Array.isArray(e) ? e : [e];
1448
+ }, Or = function(e) {
1432
1449
  return e && Array.isArray(e) ? e.map(function(e) {
1433
1450
  return `.${e}`;
1434
1451
  }).join("") : `.${e}`;
1435
1452
  }, H = function(e, t) {
1436
1453
  var n;
1437
- (n = e.classList).add.apply(n, Er(t));
1438
- }, Or = function(e, t) {
1454
+ (n = e.classList).add.apply(n, Dr(t));
1455
+ }, kr = function(e, t) {
1439
1456
  var n;
1440
- (n = e.classList).remove.apply(n, Er(t));
1441
- }, kr = function(e) {
1457
+ (n = e.classList).remove.apply(n, Dr(t));
1458
+ }, Ar = function(e) {
1442
1459
  if (e !== void 0) try {
1443
1460
  return JSON.parse(e);
1444
1461
  } catch {
1445
1462
  return e;
1446
1463
  }
1447
1464
  return {};
1448
- }, Ar = function(e, t, n) {
1465
+ }, jr = function(e, t, n) {
1449
1466
  var r = e.itemEl;
1450
- r && (Or(r, n), H(r, t));
1451
- }, jr = function() {
1467
+ r && (kr(r, n), H(r, t));
1468
+ }, Mr = function() {
1452
1469
  function e(e) {
1453
1470
  var t = e.element, n = e.type, r = e.classNames;
1454
1471
  this.element = t, this.classNames = r, this.type = n, this.isActive = !1;
@@ -1456,9 +1473,9 @@ var z = {
1456
1473
  return e.prototype.show = function() {
1457
1474
  return H(this.element, this.classNames.activeState), this.element.setAttribute("aria-expanded", "true"), this.isActive = !0, this;
1458
1475
  }, e.prototype.hide = function() {
1459
- return Or(this.element, this.classNames.activeState), this.element.setAttribute("aria-expanded", "false"), this.isActive = !1, this;
1476
+ return kr(this.element, this.classNames.activeState), this.element.setAttribute("aria-expanded", "false"), this.isActive = !1, this;
1460
1477
  }, e;
1461
- }(), Mr = function() {
1478
+ }(), Nr = function() {
1462
1479
  function e(e) {
1463
1480
  var t = e.element, n = e.type, r = e.classNames, i = e.position;
1464
1481
  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 +1490,17 @@ var z = {
1473
1490
  }, e.prototype.open = function(e, t) {
1474
1491
  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
1492
  }, 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);
1493
+ 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
1494
  }, e.prototype.addFocusState = function() {
1478
1495
  H(this.element, this.classNames.focusState);
1479
1496
  }, e.prototype.removeFocusState = function() {
1480
- Or(this.element, this.classNames.focusState);
1497
+ kr(this.element, this.classNames.focusState);
1498
+ }, e.prototype.addInvalidState = function() {
1499
+ H(this.element, this.classNames.invalidState);
1500
+ }, e.prototype.removeInvalidState = function() {
1501
+ kr(this.element, this.classNames.invalidState);
1481
1502
  }, 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;
1503
+ kr(this.element, this.classNames.disabledState), this.element.removeAttribute("aria-disabled"), this.type === er.SelectOne && this.element.setAttribute("tabindex", "0"), this.isDisabled = !1;
1483
1504
  }, e.prototype.disable = function() {
1484
1505
  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
1506
  }, e.prototype.wrap = function(e) {
@@ -1491,9 +1512,9 @@ var z = {
1491
1512
  }, e.prototype.addLoadingState = function() {
1492
1513
  H(this.element, this.classNames.loadingState), this.element.setAttribute("aria-busy", "true"), this.isLoading = !0;
1493
1514
  }, e.prototype.removeLoadingState = function() {
1494
- Or(this.element, this.classNames.loadingState), this.element.removeAttribute("aria-busy"), this.isLoading = !1;
1515
+ kr(this.element, this.classNames.loadingState), this.element.removeAttribute("aria-busy"), this.isLoading = !1;
1495
1516
  }, e;
1496
- }(), Nr = function() {
1517
+ }(), Pr = function() {
1497
1518
  function e(e) {
1498
1519
  var t = e.element, n = e.type, r = e.classNames, i = e.preventPaste;
1499
1520
  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 +1551,20 @@ var z = {
1530
1551
  }, e.prototype.clear = function(e) {
1531
1552
  return e === void 0 && (e = !0), this.element.value = "", e && this.setWidth(), this;
1532
1553
  }, 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`;
1554
+ var e = this.element, t = e.value, n = e.placeholder, r = 0, i = 0;
1555
+ if (t || n) {
1556
+ var a = document.createElement("span");
1557
+ 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);
1558
+ var o = parseFloat(getComputedStyle(a).width);
1559
+ n && (a.innerText = n, r = parseFloat(getComputedStyle(a).width) / o), t && (a.innerText = t, i = parseFloat(getComputedStyle(a).width) / o), a.remove();
1560
+ }
1561
+ e.style.minWidth = `${Math.ceil(r) + 1}ch`, e.style.width = `${Math.ceil(i) + 1}ch`;
1535
1562
  }, e.prototype.setActiveDescendant = function(e) {
1536
1563
  this.element.setAttribute("aria-activedescendant", e);
1537
1564
  }, e.prototype.removeActiveDescendant = function() {
1538
1565
  this.element.removeAttribute("aria-activedescendant");
1539
1566
  }, e.prototype._onInput = function() {
1540
- this.type !== er.SelectOne && this.setWidth();
1567
+ this.setWidth();
1541
1568
  }, e.prototype._onPaste = function(e) {
1542
1569
  this.preventPaste && e.preventDefault();
1543
1570
  }, e.prototype._onFocus = function() {
@@ -1545,7 +1572,7 @@ var z = {
1545
1572
  }, e.prototype._onBlur = function() {
1546
1573
  this.isFocussed = !1;
1547
1574
  }, e;
1548
- }(), Pr = 4, Fr = function() {
1575
+ }(), Fr = 4, Ir = function() {
1549
1576
  function e(e) {
1550
1577
  this.element = e.element, this.scrollPos = this.element.scrollTop, this.height = this.element.offsetHeight;
1551
1578
  }
@@ -1569,12 +1596,12 @@ var z = {
1569
1596
  var r = (e - n) / t, i = r > 1 ? r : 1;
1570
1597
  this.element.scrollTop = e - i;
1571
1598
  }, e.prototype._animateScroll = function(e, t) {
1572
- var n = this, r = Pr, i = this.element.scrollTop, a = !1;
1599
+ var n = this, r = Fr, i = this.element.scrollTop, a = !1;
1573
1600
  t > 0 ? (this._scrollDown(i, r, e), i < e && (a = !0)) : (this._scrollUp(i, r, e), i > e && (a = !0)), a && requestAnimationFrame(function() {
1574
1601
  n._animateScroll(e, t);
1575
1602
  });
1576
1603
  }, e;
1577
- }(), Ir = function() {
1604
+ }(), Lr = function() {
1578
1605
  function e(e) {
1579
1606
  var t = e.element, n = e.classNames;
1580
1607
  this.element = t, this.classNames = n, this.isDisabled = !1;
@@ -1607,7 +1634,7 @@ var z = {
1607
1634
  t && e.setAttribute("data-choice-orig-style", t), e.setAttribute("data-choice", "active");
1608
1635
  }, e.prototype.reveal = function() {
1609
1636
  var e = this.element;
1610
- Or(e, this.classNames.input), e.hidden = !1, e.removeAttribute("tabindex");
1637
+ kr(e, this.classNames.input), e.hidden = !1, e.removeAttribute("tabindex");
1611
1638
  var t = e.getAttribute("data-choice-orig-style");
1612
1639
  t ? (e.removeAttribute("data-choice-orig-style"), e.setAttribute("style", t)) : e.removeAttribute("style"), e.removeAttribute("data-choice");
1613
1640
  }, e.prototype.enable = function() {
@@ -1615,24 +1642,24 @@ var z = {
1615
1642
  }, e.prototype.disable = function() {
1616
1643
  this.element.setAttribute("disabled", ""), this.element.disabled = !0, this.isDisabled = !0;
1617
1644
  }, e.prototype.triggerEvent = function(e, t) {
1618
- wr(this.element, e, t || {});
1645
+ Tr(this.element, e, t || {});
1619
1646
  }, e;
1620
- }(), Lr = function(e) {
1647
+ }(), Rr = function(e) {
1621
1648
  Zn(t, e);
1622
1649
  function t() {
1623
1650
  return e !== null && e.apply(this, arguments) || this;
1624
1651
  }
1625
1652
  return t;
1626
- }(Ir), Rr = function(e, t) {
1653
+ }(Lr), zr = function(e, t) {
1627
1654
  return t === void 0 && (t = !0), e === void 0 ? t : !!e;
1628
- }, zr = function(e) {
1655
+ }, Br = function(e) {
1629
1656
  if (typeof e == "string" && (e = e.split(" ").filter(function(e) {
1630
1657
  return e.length;
1631
1658
  })), Array.isArray(e) && e.length) return e;
1632
- }, Br = function(e, t, n) {
1659
+ }, Vr = function(e, t, n) {
1633
1660
  if (n === void 0 && (n = !0), typeof e == "string") {
1634
1661
  var r = mr(e);
1635
- return Br({
1662
+ return Vr({
1636
1663
  value: e,
1637
1664
  label: n || r === e ? e : {
1638
1665
  escaped: r,
@@ -1645,11 +1672,11 @@ var z = {
1645
1672
  if ("choices" in i) {
1646
1673
  if (!t) throw TypeError("optGroup is not allowed");
1647
1674
  var a = i, o = a.choices.map(function(e) {
1648
- return Br(e, !1);
1675
+ return Vr(e, !1);
1649
1676
  });
1650
1677
  return {
1651
1678
  id: 0,
1652
- label: vr(a.label) || a.value,
1679
+ label: _r(a.label) || a.value,
1653
1680
  active: !!o.length,
1654
1681
  disabled: !!a.disabled,
1655
1682
  choices: o
@@ -1663,24 +1690,24 @@ var z = {
1663
1690
  rank: 0,
1664
1691
  value: s.value,
1665
1692
  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),
1693
+ active: zr(s.active),
1694
+ selected: zr(s.selected, !1),
1695
+ disabled: zr(s.disabled, !1),
1696
+ placeholder: zr(s.placeholder, !1),
1670
1697
  highlighted: !1,
1671
- labelClass: zr(s.labelClass),
1698
+ labelClass: Br(s.labelClass),
1672
1699
  labelDescription: s.labelDescription,
1673
1700
  customProperties: s.customProperties
1674
1701
  };
1675
- }, Vr = function(e) {
1676
- return e.tagName === "INPUT";
1677
1702
  }, Hr = function(e) {
1678
- return e.tagName === "SELECT";
1703
+ return e.tagName === "INPUT";
1679
1704
  }, Ur = function(e) {
1680
- return e.tagName === "OPTION";
1705
+ return e.tagName === "SELECT";
1681
1706
  }, Wr = function(e) {
1682
- return e.tagName === "OPTGROUP";
1707
+ return e.tagName === "OPTION";
1683
1708
  }, Gr = function(e) {
1709
+ return e.tagName === "OPTGROUP";
1710
+ }, Kr = function(e) {
1684
1711
  Zn(t, e);
1685
1712
  function t(t) {
1686
1713
  var n = t.element, r = t.classNames, i = t.template, a = t.extractPlaceholder, o = e.call(this, {
@@ -1707,7 +1734,7 @@ var z = {
1707
1734
  }, t.prototype.optionsAsChoices = function() {
1708
1735
  var e = this, t = [];
1709
1736
  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));
1737
+ Wr(n) ? t.push(e._optionToChoice(n)) : Gr(n) && t.push(e._optgroupToChoice(n));
1711
1738
  }), t;
1712
1739
  }, t.prototype._optionToChoice = function(e) {
1713
1740
  return !e.hasAttribute("value") && e.hasAttribute("placeholder") && (e.setAttribute("value", ""), e.value = ""), {
@@ -1723,9 +1750,9 @@ var z = {
1723
1750
  disabled: e.disabled,
1724
1751
  highlighted: !1,
1725
1752
  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)
1753
+ labelClass: e.dataset.labelClass === void 0 ? void 0 : Br(e.dataset.labelClass),
1754
+ labelDescription: e.dataset.labelDescription === void 0 ? void 0 : { trusted: e.dataset.labelDescription },
1755
+ customProperties: Ar(e.dataset.customProperties)
1729
1756
  };
1730
1757
  }, t.prototype._optgroupToChoice = function(e) {
1731
1758
  var t = this, n = e.querySelectorAll("option"), r = Array.from(n).map(function(e) {
@@ -1740,7 +1767,7 @@ var z = {
1740
1767
  choices: r
1741
1768
  };
1742
1769
  }, t;
1743
- }(Ir), Kr = {
1770
+ }(Lr), qr = {
1744
1771
  items: [],
1745
1772
  choices: [],
1746
1773
  silent: !1,
@@ -1764,6 +1791,7 @@ var z = {
1764
1791
  paste: !0,
1765
1792
  searchEnabled: !0,
1766
1793
  searchChoices: !0,
1794
+ searchDisabledChoices: !1,
1767
1795
  searchFloor: 1,
1768
1796
  searchResultLimit: 4,
1769
1797
  searchFields: ["label", "value"],
@@ -1771,7 +1799,7 @@ var z = {
1771
1799
  resetScrollPosition: !0,
1772
1800
  shouldSort: !0,
1773
1801
  shouldSortItems: !1,
1774
- sorter: Sr,
1802
+ sorter: Cr,
1775
1803
  shadowRoot: null,
1776
1804
  placeholder: !0,
1777
1805
  placeholderValue: null,
@@ -1779,6 +1807,7 @@ var z = {
1779
1807
  prependValue: null,
1780
1808
  appendValue: null,
1781
1809
  renderSelectedChoices: "auto",
1810
+ searchRenderSelectedChoices: !0,
1782
1811
  loadingText: "Loading...",
1783
1812
  noResultsText: "No results found",
1784
1813
  noChoicesText: "No choices to choose from",
@@ -1791,8 +1820,8 @@ var z = {
1791
1820
  removeItemIconText: function() {
1792
1821
  return "Remove item";
1793
1822
  },
1794
- removeItemLabelText: function(e) {
1795
- return `Remove item: ${e}`;
1823
+ removeItemLabelText: function(e, t, n) {
1824
+ return `Remove item: ${n ? mr(n.label) : e}`;
1796
1825
  },
1797
1826
  maxItemText: function(e) {
1798
1827
  return `Only ${e} values can be added`;
@@ -1830,17 +1859,18 @@ var z = {
1830
1859
  selectedState: ["is-selected"],
1831
1860
  flippedState: ["is-flipped"],
1832
1861
  loadingState: ["is-loading"],
1862
+ invalidState: ["is-invalid"],
1833
1863
  notice: ["choices__notice"],
1834
1864
  addChoice: ["choices__item--selectable", "add-choice"],
1835
1865
  noResults: ["has-no-results"],
1836
1866
  noChoices: ["has-no-choices"]
1837
1867
  },
1838
1868
  appendGroupInSearch: !1
1839
- }, qr = function(e) {
1869
+ }, Jr = function(e) {
1840
1870
  var t = e.itemEl;
1841
1871
  t && (t.remove(), e.itemEl = void 0);
1842
1872
  };
1843
- function Jr(e, t, n) {
1873
+ function Yr(e, t, n) {
1844
1874
  var r = e, i = !0;
1845
1875
  switch (t.type) {
1846
1876
  case z.ADD_ITEM:
@@ -1854,14 +1884,14 @@ function Jr(e, t, n) {
1854
1884
  if (a) {
1855
1885
  a.selected = !1, a.removeAttribute("selected");
1856
1886
  var o = a.parentElement;
1857
- o && Hr(o) && o.type === er.SelectOne && (o.value = "");
1887
+ o && Ur(o) && o.type === er.SelectOne && (o.value = "");
1858
1888
  }
1859
- qr(t.item), r = r.filter(function(e) {
1889
+ Jr(t.item), r = r.filter(function(e) {
1860
1890
  return e.id !== t.item.id;
1861
1891
  });
1862
1892
  break;
1863
1893
  case z.REMOVE_CHOICE:
1864
- qr(t.choice), r = r.filter(function(e) {
1894
+ Jr(t.choice), r = r.filter(function(e) {
1865
1895
  return e.id !== t.choice.id;
1866
1896
  });
1867
1897
  break;
@@ -1869,7 +1899,7 @@ function Jr(e, t, n) {
1869
1899
  var s = t.highlighted, c = r.find(function(e) {
1870
1900
  return e.id === t.item.id;
1871
1901
  });
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));
1902
+ 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
1903
  break;
1874
1904
  default:
1875
1905
  i = !1;
@@ -1880,7 +1910,7 @@ function Jr(e, t, n) {
1880
1910
  update: i
1881
1911
  };
1882
1912
  }
1883
- function Yr(e, t) {
1913
+ function Xr(e, t) {
1884
1914
  var n = e, r = !0;
1885
1915
  switch (t.type) {
1886
1916
  case z.ADD_GROUP:
@@ -1898,7 +1928,7 @@ function Yr(e, t) {
1898
1928
  update: r
1899
1929
  };
1900
1930
  }
1901
- function Xr(e, t, n) {
1931
+ function Zr(e, t, n) {
1902
1932
  var r = e, i = !0;
1903
1933
  switch (t.type) {
1904
1934
  case z.ADD_CHOICE:
@@ -1941,11 +1971,11 @@ function Xr(e, t, n) {
1941
1971
  update: i
1942
1972
  };
1943
1973
  }
1944
- var Zr = {
1945
- groups: Yr,
1946
- items: Jr,
1947
- choices: Xr
1948
- }, Qr = function() {
1974
+ var Qr = {
1975
+ groups: Xr,
1976
+ items: Yr,
1977
+ choices: Zr
1978
+ }, $r = function() {
1949
1979
  function e(e) {
1950
1980
  this._state = this.defaultState, this._listeners = [], this._txn = 0, this._context = e;
1951
1981
  }
@@ -1975,8 +2005,8 @@ var Zr = {
1975
2005
  return this._listeners.push(e), this;
1976
2006
  }, e.prototype.dispatch = function(e) {
1977
2007
  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);
2008
+ Object.keys(Qr).forEach(function(a) {
2009
+ var o = Qr[a](n[a], e, t._context);
1980
2010
  o.update && (r = !0, i[a] = !0, n[a] = o.state);
1981
2011
  }), r && (this._txn ? this._changeSet = i : this._listeners.forEach(function(e) {
1982
2012
  return e(i);
@@ -2029,8 +2059,9 @@ var Zr = {
2029
2059
  configurable: !0
2030
2060
  }), Object.defineProperty(e.prototype, "searchableChoices", {
2031
2061
  get: function() {
2032
- return this.choices.filter(function(e) {
2033
- return !e.disabled && !e.placeholder;
2062
+ var e = this._context;
2063
+ return this.choices.filter(function(t) {
2064
+ return !t.placeholder && (e.searchDisabledChoices || !t.disabled);
2034
2065
  });
2035
2066
  },
2036
2067
  enumerable: !1,
@@ -2070,15 +2101,15 @@ var Zr = {
2070
2101
  addChoice: "add-choice",
2071
2102
  generic: ""
2072
2103
  };
2073
- function $r(e, t, n) {
2074
- return (t = ri(t)) in e ? Object.defineProperty(e, t, {
2104
+ function ei(e, t, n) {
2105
+ return (t = ii(t)) in e ? Object.defineProperty(e, t, {
2075
2106
  value: n,
2076
2107
  enumerable: !0,
2077
2108
  configurable: !0,
2078
2109
  writable: !0
2079
2110
  }) : e[t] = n, e;
2080
2111
  }
2081
- function ei(e, t) {
2112
+ function ti(e, t) {
2082
2113
  var n = Object.keys(e);
2083
2114
  if (Object.getOwnPropertySymbols) {
2084
2115
  var r = Object.getOwnPropertySymbols(e);
@@ -2088,39 +2119,38 @@ function ei(e, t) {
2088
2119
  }
2089
2120
  return n;
2090
2121
  }
2091
- function ti(e) {
2122
+ function ni(e) {
2092
2123
  for (var t = 1; t < arguments.length; t++) {
2093
2124
  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) {
2125
+ t % 2 ? ti(Object(n), !0).forEach(function(t) {
2126
+ ei(e, t, n[t]);
2127
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ti(Object(n)).forEach(function(t) {
2097
2128
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2098
2129
  });
2099
2130
  }
2100
2131
  return e;
2101
2132
  }
2102
- function ni(e, t) {
2133
+ function ri(e, t) {
2103
2134
  if (typeof e != "object" || !e) return e;
2104
2135
  var n = e[Symbol.toPrimitive];
2105
2136
  if (n !== void 0) {
2106
- var r = n.call(e, t || "default");
2137
+ var r = n.call(e, t);
2107
2138
  if (typeof r != "object") return r;
2108
2139
  throw TypeError("@@toPrimitive must return a primitive value.");
2109
2140
  }
2110
2141
  return (t === "string" ? String : Number)(e);
2111
2142
  }
2112
- function ri(e) {
2113
- var t = ni(e, "string");
2143
+ function ii(e) {
2144
+ var t = ri(e, "string");
2114
2145
  return typeof t == "symbol" ? t : t + "";
2115
2146
  }
2116
- function ii(e) {
2147
+ function ai(e) {
2117
2148
  return Array.isArray ? Array.isArray(e) : mi(e) === "[object Array]";
2118
2149
  }
2119
- var ai = Infinity;
2120
2150
  function oi(e) {
2121
2151
  if (typeof e == "string") return e;
2122
2152
  let t = e + "";
2123
- return t == "0" && 1 / e == -ai ? "-0" : t;
2153
+ return t == "0" && 1 / e == -Infinity ? "-0" : t;
2124
2154
  }
2125
2155
  function si(e) {
2126
2156
  return e == null ? "" : oi(e);
@@ -2172,7 +2202,7 @@ var hi = "Incorrect 'index' type", gi = (e) => `Invalid value for key ${e}`, _i
2172
2202
  };
2173
2203
  function Si(e) {
2174
2204
  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);
2205
+ if (ci(e) || ai(e)) r = e, t = Ci(e), n = wi(e);
2176
2206
  else {
2177
2207
  if (!bi.call(e, "name")) throw Error(vi("name"));
2178
2208
  let o = e.name;
@@ -2188,10 +2218,10 @@ function Si(e) {
2188
2218
  };
2189
2219
  }
2190
2220
  function Ci(e) {
2191
- return ii(e) ? e : e.split(".");
2221
+ return ai(e) ? e : e.split(".");
2192
2222
  }
2193
2223
  function wi(e) {
2194
- return ii(e) ? e.join(".") : e;
2224
+ return ai(e) ? e.join(".") : e;
2195
2225
  }
2196
2226
  function Ti(e, t) {
2197
2227
  let n = [], r = !1, i = (e, t, a) => {
@@ -2200,7 +2230,7 @@ function Ti(e, t) {
2200
2230
  let o = e[t[a]];
2201
2231
  if (!W(o)) return;
2202
2232
  if (a === t.length - 1 && (ci(o) || li(o) || ui(o))) n.push(si(o));
2203
- else if (ii(o)) {
2233
+ else if (ai(o)) {
2204
2234
  r = !0;
2205
2235
  for (let e = 0, n = o.length; e < n; e += 1) i(o[e], t, a + 1);
2206
2236
  } else t.length && i(o, t, a + 1);
@@ -2228,7 +2258,7 @@ var Ei = {
2228
2258
  ignoreLocation: !1,
2229
2259
  ignoreFieldNorm: !1,
2230
2260
  fieldNormWeight: 1
2231
- }, G = ti(ti(ti(ti({}, Di), Ei), Oi), ki), Ai = /[^ ]+/g;
2261
+ }, G = ni(ni(ni(ni({}, Di), Ei), Oi), ki), Ai = /[^ ]+/g;
2232
2262
  function ji(e = 1, t = 3) {
2233
2263
  let n = /* @__PURE__ */ new Map(), r = 10 ** t;
2234
2264
  return {
@@ -2296,7 +2326,7 @@ var Mi = class {
2296
2326
  this.keys.forEach((t, r) => {
2297
2327
  let i = t.getFn ? t.getFn(e) : this.getFn(e, t.path);
2298
2328
  if (W(i)) {
2299
- if (ii(i)) {
2329
+ if (ai(i)) {
2300
2330
  let e = [], t = [{
2301
2331
  nestedArrIndex: -1,
2302
2332
  value: i
@@ -2310,7 +2340,7 @@ var Mi = class {
2310
2340
  n: this.norm.get(r)
2311
2341
  };
2312
2342
  e.push(t);
2313
- } else ii(r) && r.forEach((e, n) => {
2343
+ } else ai(r) && r.forEach((e, n) => {
2314
2344
  t.push({
2315
2345
  nestedArrIndex: n,
2316
2346
  value: e
@@ -2779,7 +2809,7 @@ var sa = {
2779
2809
  }, ca = {
2780
2810
  PATH: "$path",
2781
2811
  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] })) });
2812
+ }, 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
2813
  function pa(e, t, { auto: n = !0 } = {}) {
2784
2814
  let r = (e) => {
2785
2815
  let i = Object.keys(e), a = ua(e);
@@ -2799,7 +2829,7 @@ function pa(e, t, { auto: n = !0 } = {}) {
2799
2829
  };
2800
2830
  return i.forEach((t) => {
2801
2831
  let n = e[t];
2802
- ii(n) && n.forEach((e) => {
2832
+ ai(n) && n.forEach((e) => {
2803
2833
  o.children.push(r(e));
2804
2834
  });
2805
2835
  }), o;
@@ -2843,7 +2873,7 @@ function _a(e, t, { includeMatches: n = G.includeMatches, includeScore: r = G.in
2843
2873
  }
2844
2874
  var va = class {
2845
2875
  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);
2876
+ this.options = ni(ni({}, G), t), this.options.useExtendedSearch, this._keyStore = new xi(this.options.keys), this.setCollection(e, n);
2847
2877
  }
2848
2878
  setCollection(e, t) {
2849
2879
  if (this._docs = e, t && !(t instanceof Mi)) throw Error(hi);
@@ -2949,7 +2979,7 @@ var va = class {
2949
2979
  _findMatches({ key: e, value: t, searcher: n }) {
2950
2980
  if (!W(t)) return [];
2951
2981
  let r = [];
2952
- if (ii(t)) t.forEach(({ v: t, i, n: a }) => {
2982
+ if (ai(t)) t.forEach(({ v: t, i, n: a }) => {
2953
2983
  if (!W(t)) return;
2954
2984
  let { isMatch: o, score: s, indices: c } = n.searchIn(t);
2955
2985
  o && r.push({
@@ -3006,7 +3036,7 @@ var xa = function(e) {
3006
3036
  return !0;
3007
3037
  }, Sa = function(e, t, n) {
3008
3038
  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)));
3039
+ 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
3040
  }, Ca = function(e, t, n) {
3011
3041
  var r = t && e.querySelector(`label[for='${t}']`), i = r && r.innerText;
3012
3042
  i && n.setAttribute("aria-label", i);
@@ -3025,20 +3055,22 @@ var xa = function(e) {
3025
3055
  },
3026
3056
  placeholder: function(e, t) {
3027
3057
  var n = e.allowHTML, r = e.classNames.placeholder, i = document.createElement("div");
3028
- return H(i, r), xr(i, n, t), i;
3058
+ return H(i, r), Sr(i, n, t), i;
3029
3059
  },
3030
3060
  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");
3061
+ 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
3062
  if (H(m, c), t.labelClass) {
3033
3063
  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);
3064
+ Sr(h, r, t.label), H(h, t.labelClass), m.appendChild(h);
3065
+ } else Sr(m, r, t.label);
3036
3066
  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 = "";
3067
+ t.disabled && kr(m, d), m.dataset.deletable = "";
3038
3068
  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);
3069
+ g.type = "button", H(g, l);
3070
+ var _ = yr(t);
3071
+ Sr(g, !0, br(a, t.value, _));
3072
+ var v = br(o, t.value, _);
3073
+ v && g.setAttribute("aria-label", v), g.dataset.button = "", i ? m.insertAdjacentElement("afterbegin", g) : m.appendChild(g);
3042
3074
  }
3043
3075
  return m;
3044
3076
  },
@@ -3047,26 +3079,26 @@ var xa = function(e) {
3047
3079
  return H(r, n), t || r.setAttribute("aria-multiselectable", "true"), r.setAttribute("role", "listbox"), r;
3048
3080
  },
3049
3081
  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");
3082
+ 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
3083
  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
3084
  var f = document.createElement("div");
3053
- return H(f, a), xr(f, n, c || ""), d.appendChild(f), d;
3085
+ return H(f, a), Sr(f, n, c || ""), d.appendChild(f), d;
3054
3086
  },
3055
3087
  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 });
3088
+ 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");
3089
+ h.id = t.elementId, H(h, o), H(h, s), r && typeof p == "string" && (p = xr(i, p), p += ` (${r})`, p = { trusted: p });
3058
3090
  var g = h;
3059
3091
  if (t.labelClass) {
3060
3092
  var _ = document.createElement("span");
3061
- xr(_, i, p), H(_, t.labelClass), g = _, h.appendChild(_);
3062
- } else xr(h, i, p);
3093
+ Sr(_, i, p), H(_, t.labelClass), g = _, h.appendChild(_);
3094
+ } else Sr(h, i, p);
3063
3095
  if (t.labelDescription) {
3064
3096
  var v = `${t.elementId}-description`;
3065
3097
  g.setAttribute("aria-describedby", v);
3066
3098
  var y = document.createElement("span");
3067
- xr(y, i, t.labelDescription), y.id = v, H(y, d), h.appendChild(y);
3099
+ Sr(y, i, t.labelDescription), y.id = v, H(y, d), h.appendChild(y);
3068
3100
  }
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;
3101
+ 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
3102
  },
3071
3103
  input: function(e, t) {
3072
3104
  var n = e.classNames, r = n.input, i = n.inputCloned, a = e.labelId, o = document.createElement("input");
@@ -3080,7 +3112,7 @@ var xa = function(e) {
3080
3112
  var r = e.classNames, i = r.item, a = r.itemChoice, o = r.addChoice, s = r.noResults, c = r.noChoices, l = r.notice;
3081
3113
  n === void 0 && (n = U.generic);
3082
3114
  var u = document.createElement("div");
3083
- switch (xr(u, !0, t), H(u, i), H(u, a), H(u, l), n) {
3115
+ switch (Sr(u, !0, t), H(u, i), H(u, a), H(u, l), n) {
3084
3116
  case U.addChoice:
3085
3117
  H(u, o);
3086
3118
  break;
@@ -3094,7 +3126,7 @@ var xa = function(e) {
3094
3126
  return n === U.addChoice && (u.dataset.choiceSelectable = "", u.dataset.choice = ""), u;
3095
3127
  },
3096
3128
  option: function(e) {
3097
- var t = vr(e.label), n = new Option(t, e.value, !1, e.selected);
3129
+ var t = _r(e.label), n = new Option(t, e.value, !1, e.selected);
3098
3130
  return Sa(n, e, !0), n.disabled = e.disabled, e.selected && n.setAttribute("selected", ""), n;
3099
3131
  }
3100
3132
  }, Ta = "-ms-scroll-limit" in document.documentElement.style && "-ms-ime-align" in document.documentElement.style, Ea = {}, Da = function(e) {
@@ -3113,29 +3145,29 @@ var xa = function(e) {
3113
3145
  var o = a.shadowRoot || document.documentElement;
3114
3146
  this._docRoot = o;
3115
3147
  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");
3148
+ 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
3149
  var c = s.type, l = c === er.Text;
3118
3150
  (l || a.maxItemCount !== 1) && (a.singleModeForMultiSelect = !1), a.singleModeForMultiSelect && (c = er.SelectMultiple);
3119
3151
  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") {
3152
+ 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
3153
  var p = n.addItemFilter instanceof RegExp ? n.addItemFilter : new RegExp(n.addItemFilter);
3122
3154
  a.addItemFilter = p.test.bind(p);
3123
3155
  }
3124
- if (this._isTextElement ? this.passedElement = new Lr({
3156
+ if (this._isTextElement ? this.passedElement = new Rr({
3125
3157
  element: s,
3126
3158
  classNames: a.classNames
3127
- }) : this.passedElement = new Gr({
3159
+ }) : this.passedElement = new Kr({
3128
3160
  element: s,
3129
3161
  classNames: a.classNames,
3130
3162
  template: function(e) {
3131
3163
  return r._templates.option(e);
3132
3164
  },
3133
3165
  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) {
3166
+ }), 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
3167
  var m = window.getComputedStyle(s).direction;
3136
3168
  m !== window.getComputedStyle(document.documentElement).direction && (this._direction = m);
3137
3169
  }
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) {
3170
+ 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
3171
  a.silent || console.warn("Trying to initialise Choices on element already initialised", { element: t }), this.initialised = !0, this.initialisedOK = !1;
3140
3172
  return;
3141
3173
  }
@@ -3150,7 +3182,7 @@ var xa = function(e) {
3150
3182
  return Ea;
3151
3183
  },
3152
3184
  get allOptions() {
3153
- return Kr;
3185
+ return qr;
3154
3186
  },
3155
3187
  get templates() {
3156
3188
  return wa;
@@ -3176,25 +3208,25 @@ var xa = function(e) {
3176
3208
  var n = this._store.items.find(function(t) {
3177
3209
  return t.id === e.id;
3178
3210
  });
3179
- return !n || n.highlighted ? this : (this._store.dispatch(cr(n, !0)), t && this.passedElement.triggerEvent(B.highlightItem, this._getChoiceForOutput(n)), this);
3211
+ return !n || n.highlighted ? this : (this._store.dispatch(cr(n, !0)), t && this.passedElement.triggerEvent(B.highlightItem, yr(n)), this);
3180
3212
  }, e.prototype.unhighlightItem = function(e, t) {
3181
3213
  if (t === void 0 && (t = !0), !e || !e.id) return this;
3182
3214
  var n = this._store.items.find(function(t) {
3183
3215
  return t.id === e.id;
3184
3216
  });
3185
- return !n || !n.highlighted ? this : (this._store.dispatch(cr(n, !1)), t && this.passedElement.triggerEvent(B.unhighlightItem, this._getChoiceForOutput(n)), this);
3217
+ return !n || !n.highlighted ? this : (this._store.dispatch(cr(n, !1)), t && this.passedElement.triggerEvent(B.unhighlightItem, yr(n)), this);
3186
3218
  }, e.prototype.highlightAll = function() {
3187
3219
  var e = this;
3188
3220
  return this._store.withTxn(function() {
3189
3221
  e._store.items.forEach(function(t) {
3190
- t.highlighted || (e._store.dispatch(cr(t, !0)), e.passedElement.triggerEvent(B.highlightItem, e._getChoiceForOutput(t)));
3222
+ t.highlighted || (e._store.dispatch(cr(t, !0)), e.passedElement.triggerEvent(B.highlightItem, yr(t)));
3191
3223
  });
3192
3224
  }), this;
3193
3225
  }, e.prototype.unhighlightAll = function() {
3194
3226
  var e = this;
3195
3227
  return this._store.withTxn(function() {
3196
3228
  e._store.items.forEach(function(t) {
3197
- t.highlighted && (e._store.dispatch(cr(t, !1)), e.passedElement.triggerEvent(B.highlightItem, e._getChoiceForOutput(t)));
3229
+ t.highlighted && (e._store.dispatch(cr(t, !1)), e.passedElement.triggerEvent(B.highlightItem, yr(t)));
3198
3230
  });
3199
3231
  }), this;
3200
3232
  }, e.prototype.removeActiveItemsByValue = function(e) {
@@ -3228,22 +3260,24 @@ var xa = function(e) {
3228
3260
  t.dropdown.show();
3229
3261
  var n = t.dropdown.element.getBoundingClientRect();
3230
3262
  t.containerOuter.open(n.bottom, n.height), e || t.input.focus(), t.passedElement.triggerEvent(B.showDropdown);
3263
+ var r = t.choiceList.element.querySelector(Or(t.config.classNames.selectedState));
3264
+ r !== null && !pr(r, t.choiceList.element) && (t.choiceList.element.scrollTop = r.offsetTop);
3231
3265
  }), this);
3232
3266
  }, e.prototype.hideDropdown = function(e) {
3233
3267
  var t = this;
3234
- return this.dropdown.isActive && requestAnimationFrame(function() {
3268
+ return this.dropdown.isActive ? (this._removeHighlightedChoices(), requestAnimationFrame(function() {
3235
3269
  t.dropdown.hide(), t.containerOuter.close(), !e && t._canSearch && (t.input.removeActiveDescendant(), t.input.blur()), t.passedElement.triggerEvent(B.hideDropdown);
3236
- }), this;
3270
+ }), this) : this;
3237
3271
  }, e.prototype.getValue = function(e) {
3238
- var t = this, n = this._store.items.map(function(n) {
3239
- return e ? n.value : t._getChoiceForOutput(n);
3272
+ var t = this._store.items.map(function(t) {
3273
+ return e ? t.value : yr(t);
3240
3274
  });
3241
- return this._isSelectOneElement || this.config.singleModeForMultiSelect ? n[0] : n;
3275
+ return this._isSelectOneElement || this.config.singleModeForMultiSelect ? t[0] : t;
3242
3276
  }, e.prototype.setValue = function(e) {
3243
3277
  var t = this;
3244
3278
  return this.initialisedOK ? (this._store.withTxn(function() {
3245
3279
  e.forEach(function(e) {
3246
- e && t._addChoice(Br(e, !1));
3280
+ e && t._addChoice(Vr(e, !1));
3247
3281
  });
3248
3282
  }), this._searcher.reset(), this) : (this._warnChoicesInitFailed("setValue"), this);
3249
3283
  }, e.prototype.setChoiceByValue = function(e) {
@@ -3276,7 +3310,7 @@ var xa = function(e) {
3276
3310
  return o;
3277
3311
  });
3278
3312
  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);
3313
+ e = s;
3280
3314
  }
3281
3315
  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
3316
  return this.containerOuter.removeLoadingState(), this._store.withTxn(function() {
@@ -3285,18 +3319,18 @@ var xa = function(e) {
3285
3319
  e.forEach(function(e) {
3286
3320
  if ("choices" in e) {
3287
3321
  var r = e;
3288
- c || (r = R(R({}, r), { label: r[n] })), o._addGroup(Br(r, !0));
3322
+ c || (r = R(R({}, r), { label: r[n] })), o._addGroup(Vr(r, !0));
3289
3323
  } else {
3290
3324
  var i = e;
3291
3325
  (!c || !s) && (i = R(R({}, i), {
3292
3326
  value: i[t],
3293
3327
  label: i[n]
3294
3328
  }));
3295
- var a = Br(i, !1);
3296
- o._addChoice(a), a.placeholder && !o._hasNonChoicePlaceholder && (o._placeholderValue = yr(a.label));
3329
+ var a = Vr(i, !1);
3330
+ o._addChoice(a), a.placeholder && !o._hasNonChoicePlaceholder && (o._placeholderValue = vr(a.label));
3297
3331
  }
3298
3332
  }), o.unhighlightAll();
3299
- }), this._searcher.reset(), this;
3333
+ }), this.dropdown.isActive && this._canAddUserChoices && this._canCreateItem(this.input.value), this._searcher.reset(), this;
3300
3334
  }, e.prototype.refresh = function(e, t, n) {
3301
3335
  var r = this;
3302
3336
  return e === void 0 && (e = !1), t === void 0 && (t = !1), n === void 0 && (n = !1), this._isSelectElement ? (this._store.withTxn(function() {
@@ -3319,7 +3353,7 @@ var xa = function(e) {
3319
3353
  var t = this._store.choices.find(function(t) {
3320
3354
  return t.value === e;
3321
3355
  });
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;
3356
+ return t ? (this._clearNotice(), this._store.dispatch(nr(t)), this._searcher.reset(), t.selected && this.passedElement.triggerEvent(B.removeItem, yr(t)), this) : this;
3323
3357
  }, e.prototype.clearChoices = function(e, t) {
3324
3358
  var n = this;
3325
3359
  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 +3370,7 @@ var xa = function(e) {
3336
3370
  var e = !this._isSelectOneElement;
3337
3371
  return this.input.clear(e), this._stopSearch(), this;
3338
3372
  }, e.prototype._validateConfig = function() {
3339
- var e = this.config, t = Tr(e, Kr);
3373
+ var e = this.config, t = Er(e, qr);
3340
3374
  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
3375
  }, e.prototype._render = function(e) {
3342
3376
  e === void 0 && (e = {
@@ -3347,8 +3381,8 @@ var xa = function(e) {
3347
3381
  }, e.prototype._renderChoices = function() {
3348
3382
  var e = this;
3349
3383
  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) {
3384
+ var t = this, n = t.config, r = t._isSearching, i = this._store, a = i.activeGroups, o = i.activeChoices, s = r ? n.searchResultLimit : n.renderChoiceLimit;
3385
+ if (this._isSelectElement) {
3352
3386
  var c = o.filter(function(e) {
3353
3387
  return !e.element;
3354
3388
  });
@@ -3356,35 +3390,35 @@ var xa = function(e) {
3356
3390
  }
3357
3391
  var l = document.createDocumentFragment(), u = function(e) {
3358
3392
  return e.filter(function(e) {
3359
- return !e.placeholder && (r ? !!e.rank : n.renderSelectedChoices || !e.selected);
3393
+ return !e.placeholder && (r ? (n.searchRenderSelectedChoices || !e.selected) && !!e.rank : n.renderSelectedChoices || !e.selected);
3360
3394
  });
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;
3395
+ }, d = n.appendGroupInSearch && r, f = !1, p = null, m = function(t, i) {
3396
+ r ? t.sort(wr) : n.shouldSort && t.sort(n.sorter);
3397
+ var a = t.length;
3398
+ a = !i && s > 0 && a > s ? s : a, a--, t.every(function(t, i) {
3399
+ var o = t.choiceEl || e._templates.choice(n, t, n.itemSelectText, d && t.group ? t.group.label : void 0);
3400
+ return t.choiceEl = o, l.appendChild(o), r || !t.selected ? f = !0 : p ||= o, i < a;
3367
3401
  });
3368
3402
  };
3369
3403
  o.length && (n.resetScrollPosition && requestAnimationFrame(function() {
3370
3404
  return e.choiceList.scrollToTop();
3371
- }), !this._hasNonChoicePlaceholder && !r && this._isSelectOneElement && f(o.filter(function(e) {
3405
+ }), !this._hasNonChoicePlaceholder && !r && this._isSelectOneElement && m(o.filter(function(e) {
3372
3406
  return e.placeholder && !e.group;
3373
- }), !1, void 0), a.length && !r ? (n.shouldSort && a.sort(n.sorter), f(o.filter(function(e) {
3407
+ }), !1), a.length && !r ? (n.shouldSort && a.sort(n.sorter), m(o.filter(function(e) {
3374
3408
  return !e.placeholder && !e.group;
3375
- }), !1, void 0), a.forEach(function(t) {
3376
- var i = u(t.choices);
3377
- if (i.length) {
3409
+ }), !1), a.forEach(function(t) {
3410
+ var n = u(t.choices);
3411
+ if (n.length) {
3378
3412
  if (t.label) {
3379
- var a = t.groupEl || e._templates.choiceGroup(e.config, t);
3380
- t.groupEl = a, a.remove(), l.appendChild(a);
3413
+ var r = t.groupEl || e._templates.choiceGroup(e.config, t);
3414
+ t.groupEl = r, r.remove(), l.appendChild(r);
3381
3415
  }
3382
- f(i, !0, n.appendGroupInSearch && r ? t.label : void 0);
3416
+ m(n, !0);
3383
3417
  }
3384
- })) : f(u(o), !1, void 0)), !d && (r || !l.children.length || !n.renderSelectedChoices) && (this._notice ||= {
3385
- text: _r(r ? n.noResultsText : n.noChoicesText),
3418
+ })) : m(u(o), !1)), !f && (r || !l.children.length || !n.renderSelectedChoices) && (this._notice ||= {
3419
+ text: gr(r ? n.noResultsText : n.noChoicesText),
3386
3420
  type: r ? U.noResults : U.noChoices
3387
- }, l.replaceChildren("")), this._renderNotice(l), this.choiceList.element.replaceChildren(l), d && this._highlightChoice();
3421
+ }, l.replaceChildren("")), this._renderNotice(l), this.choiceList.element.replaceChildren(l), this._highlightChoice(p);
3388
3422
  }
3389
3423
  }, e.prototype._renderItems = function() {
3390
3424
  var e = this, t = this._store.items || [], n = this.itemList.element, r = this.config, i = document.createDocumentFragment(), a = function(e) {
@@ -3398,9 +3432,9 @@ var xa = function(e) {
3398
3432
  if (this._isSelectOneElement) {
3399
3433
  var c = n.children.length;
3400
3434
  if (s || c > 1) {
3401
- var l = n.querySelector(Dr(r.classNames.placeholder));
3435
+ var l = n.querySelector(Or(r.classNames.placeholder));
3402
3436
  l && l.remove();
3403
- } else !s && !c && this._placeholderValue && (s = !0, o(Br({
3437
+ } else !s && !c && this._placeholderValue && (s = !0, o(Vr({
3404
3438
  selected: !0,
3405
3439
  value: "",
3406
3440
  label: this._placeholderValue,
@@ -3426,7 +3460,7 @@ var xa = function(e) {
3426
3460
  } : void 0, this._renderNotice(), n && e && this.showDropdown(!0);
3427
3461
  }, e.prototype._clearNotice = function() {
3428
3462
  if (this._notice) {
3429
- var e = this.choiceList.element.querySelector(Dr(this.config.classNames.notice));
3463
+ var e = this.choiceList.element.querySelector(Or(this.config.classNames.notice));
3430
3464
  e && e.remove(), this._notice = void 0;
3431
3465
  }
3432
3466
  }, e.prototype._renderNotice = function(e) {
@@ -3436,27 +3470,13 @@ var xa = function(e) {
3436
3470
  e ? e.append(n) : this.choiceList.prepend(n);
3437
3471
  }
3438
3472
  }, 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
- };
3473
+ return yr(e, t);
3454
3474
  }, e.prototype._triggerChange = function(e) {
3455
3475
  e != null && this.passedElement.triggerEvent(B.change, { value: e });
3456
3476
  }, e.prototype._handleButtonAction = function(e) {
3457
3477
  var t = this, n = this._store.items;
3458
3478
  if (!(!n.length || !this.config.removeItems || !this.config.removeItemButton)) {
3459
- var r = e && Da(e.parentElement), i = r && n.find(function(e) {
3479
+ var r = e && Da(e.closest("[data-id]")), i = r && n.find(function(e) {
3460
3480
  return e.id === r;
3461
3481
  });
3462
3482
  i && this._store.withTxn(function() {
@@ -3501,10 +3521,10 @@ var xa = function(e) {
3501
3521
  var e, t = this, n = this.config;
3502
3522
  if (this._isTextElement) {
3503
3523
  if (this._presetChoices = n.items.map(function(e) {
3504
- return Br(e, !1);
3524
+ return Vr(e, !1);
3505
3525
  }), this.passedElement.value) {
3506
3526
  var r = this.passedElement.value.split(n.delimiter).map(function(e) {
3507
- return Br(e, !1, t.config.allowHtmlUserInput);
3527
+ return Vr(e, !1, t.config.allowHtmlUserInput);
3508
3528
  });
3509
3529
  this._presetChoices = this._presetChoices.concat(r);
3510
3530
  }
@@ -3513,7 +3533,7 @@ var xa = function(e) {
3513
3533
  });
3514
3534
  } else if (this._isSelectElement) {
3515
3535
  this._presetChoices = n.choices.map(function(e) {
3516
- return Br(e, !0);
3536
+ return Vr(e, !0);
3517
3537
  });
3518
3538
  var i = this.passedElement.optionsAsChoices();
3519
3539
  i && (e = this._presetChoices).push.apply(e, i);
@@ -3534,16 +3554,16 @@ var xa = function(e) {
3534
3554
  }) && this._stopSearch();
3535
3555
  }, e.prototype._canAddItems = function() {
3536
3556
  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);
3557
+ 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
3558
  }, e.prototype._canCreateItem = function(e) {
3539
3559
  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) {
3560
+ 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
3561
  return t.valueComparer(n.value, e);
3542
3562
  })) {
3543
3563
  if (this._isSelectElement) return this._displayNotice("", U.addChoice), !1;
3544
- t.duplicateItemsAllowed || (n = !1, r = gr(t.uniqueItemText, e));
3564
+ t.duplicateItemsAllowed || (n = !1, r = br(t.uniqueItemText, e, void 0));
3545
3565
  }
3546
- return n && (r = gr(t.addItemText, e)), r && this._displayNotice(r, U.addChoice), n;
3566
+ return n && (r = br(t.addItemText, e, void 0)), r && this._displayNotice(r, U.addChoice), n;
3547
3567
  }, e.prototype._searchChoices = function(e) {
3548
3568
  var t = e.trim().replace(/\s{2,}/, " ");
3549
3569
  if (!t.length || t === this._currentValue) return null;
@@ -3552,18 +3572,18 @@ var xa = function(e) {
3552
3572
  var r = n.search(t);
3553
3573
  this._currentValue = t, this._highlightPosition = 0, this._isSearching = !0;
3554
3574
  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;
3575
+ 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
3576
  }, e.prototype._stopSearch = function() {
3557
3577
  this._isSearching && (this._currentValue = "", this._isSearching = !1, this._clearNotice(), this._store.dispatch(ir(!0)), this.passedElement.triggerEvent(B.search, {
3558
3578
  value: "",
3559
3579
  resultCount: 0
3560
3580
  }));
3561
3581
  }, 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();
3582
+ var e = this._docRoot, t = this.containerOuter.element, n = this.input.element, r = this.passedElement.element;
3583
+ 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
3584
  }, 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();
3585
+ var e = this._docRoot, t = this.containerOuter.element, n = this.input.element, r = this.passedElement.element;
3586
+ 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
3587
  }, e.prototype._onKeyDown = function(e) {
3568
3588
  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
3589
  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 +3618,7 @@ var xa = function(e) {
3598
3618
  (this._isSelectElement || this._notice) && this.showDropdown();
3599
3619
  return;
3600
3620
  }
3601
- var a = this.dropdown.element.querySelector(Dr(this.config.classNames.highlightedState));
3621
+ var a = this.dropdown.element.querySelector(Or(this.config.classNames.highlightedState));
3602
3622
  if (!(a && this._handleChoiceAction(a))) {
3603
3623
  if (!i || !r) {
3604
3624
  this.hideDropdown(!0);
@@ -3609,7 +3629,7 @@ var xa = function(e) {
3609
3629
  this._store.withTxn(function() {
3610
3630
  if (o = n._findAndSelectChoiceByValue(r, !0), !o) {
3611
3631
  if (!n._canAddUserChoices || !n._canCreateItem(r)) return;
3612
- n._addChoice(Br(r, !1, n.config.allowHtmlUserInput), !0, !0), o = !0;
3632
+ n._addChoice(Vr(r, !1, n.config.allowHtmlUserInput), !0, !0), o = !0;
3613
3633
  }
3614
3634
  n.clearInput(), n.unhighlightAll();
3615
3635
  }), o && (this._triggerChange(r), this.config.closeDropdownOnSelect && this.hideDropdown(!0));
@@ -3624,7 +3644,7 @@ var xa = function(e) {
3624
3644
  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
3645
  if (i) a = r > 0 ? this.dropdown.element.querySelector(`${Oa}:last-of-type`) : this.dropdown.element.querySelector(Oa);
3626
3646
  else {
3627
- var o = this.dropdown.element.querySelector(Dr(this.config.classNames.highlightedState));
3647
+ var o = this.dropdown.element.querySelector(Or(this.config.classNames.highlightedState));
3628
3648
  a = o ? fr(o, Oa, r) : this.dropdown.element.querySelector(Oa);
3629
3649
  }
3630
3650
  a && (pr(a, this.choiceList.element, r) || this.choiceList.scrollToChildElement(a, r), this._highlightChoice(a)), e.preventDefault();
@@ -3638,7 +3658,7 @@ var xa = function(e) {
3638
3658
  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
3659
  }, e.prototype._onMouseDown = function(e) {
3640
3660
  var t = e.target;
3641
- if (t instanceof HTMLElement) {
3661
+ if (t instanceof Element) {
3642
3662
  if (Ta && this.choiceList.element.contains(t)) {
3643
3663
  var n = this.choiceList.element.firstElementChild;
3644
3664
  this._isScrollingOnIe = this._direction === "ltr" ? e.offsetX >= n.offsetWidth : e.offsetX < n.offsetLeft;
@@ -3662,29 +3682,39 @@ var xa = function(e) {
3662
3682
  }
3663
3683
  }, e.prototype._onBlur = function(e) {
3664
3684
  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());
3685
+ 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
3686
  }, e.prototype._onFormReset = function() {
3667
3687
  var e = this;
3668
3688
  this._store.withTxn(function() {
3669
3689
  e.clearInput(), e.hideDropdown(), e.refresh(!1, !1, !0), e._initialItems.length && e.setChoiceByValue(e._initialItems);
3670
3690
  });
3691
+ }, e.prototype._onChange = function(e) {
3692
+ e.target.checkValidity() && this.containerOuter.removeInvalidState();
3693
+ }, e.prototype._onInvalid = function() {
3694
+ this.containerOuter.addInvalidState();
3695
+ }, e.prototype._removeHighlightedChoices = function() {
3696
+ var e = this.config.classNames.highlightedState;
3697
+ Array.from(this.dropdown.element.querySelectorAll(Or(e))).forEach(function(t) {
3698
+ kr(t, e), t.setAttribute("aria-selected", "false");
3699
+ });
3671
3700
  }, e.prototype._highlightChoice = function(e) {
3672
3701
  e === void 0 && (e = null);
3673
3702
  var t = Array.from(this.dropdown.element.querySelectorAll(Oa));
3674
3703
  if (t.length) {
3675
3704
  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));
3705
+ 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
3706
  }
3680
3707
  }, e.prototype._addItem = function(e, t, n) {
3681
3708
  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)));
3709
+ if ((this.config.singleModeForMultiSelect || this._isSelectOneElement) && this.removeActiveItems(e.id), this._store.dispatch(or(e)), t) {
3710
+ var r = yr(e);
3711
+ this.passedElement.triggerEvent(B.addItem, r), n && this.passedElement.triggerEvent(B.choice, r);
3712
+ }
3683
3713
  }, e.prototype._removeItem = function(e) {
3684
3714
  if (e.id) {
3685
3715
  this._store.dispatch(sr(e));
3686
3716
  var t = this._notice;
3687
- t && t.type === U.noChoices && this._clearNotice(), this.passedElement.triggerEvent(B.removeItem, this._getChoiceForOutput(e));
3717
+ t && t.type === U.noChoices && this._clearNotice(), this.passedElement.triggerEvent(B.removeItem, yr(e));
3688
3718
  }
3689
3719
  }, e.prototype._addChoice = function(e, t, n) {
3690
3720
  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 +3734,36 @@ var xa = function(e) {
3704
3734
  }));
3705
3735
  }, e.prototype._createTemplates = function() {
3706
3736
  var e = this, t = this.config.callbackOnCreateTemplates, n = {};
3707
- typeof t == "function" && (n = t.call(this, hr, br, Er));
3737
+ typeof t == "function" && (n = t.call(this, hr, xr, Dr));
3708
3738
  var r = {};
3709
3739
  Object.keys(this._templates).forEach(function(t) {
3710
3740
  t in n ? r[t] = n[t].bind(e) : r[t] = e._templates[t].bind(e);
3711
3741
  }), this._templates = r;
3712
3742
  }, e.prototype._createElements = function() {
3713
3743
  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({
3744
+ this.containerOuter = new Nr({
3715
3745
  element: e.containerOuter(n, this._direction, this._isSelectElement, r, n.searchEnabled, o, n.labelId),
3716
3746
  classNames: a,
3717
3747
  type: o,
3718
3748
  position: i
3719
- }), this.containerInner = new Mr({
3749
+ }), this.containerInner = new Nr({
3720
3750
  element: e.containerInner(n),
3721
3751
  classNames: a,
3722
3752
  type: o,
3723
3753
  position: i
3724
- }), this.input = new Nr({
3754
+ }), this.input = new Pr({
3725
3755
  element: e.input(n, this._placeholderValue),
3726
3756
  classNames: a,
3727
3757
  type: o,
3728
3758
  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({
3759
+ }), this.choiceList = new Ir({ element: e.choiceList(n, r) }), this.itemList = new Ir({ element: e.itemList(n, r) }), this.dropdown = new Mr({
3730
3760
  element: e.dropdown(n),
3731
3761
  classNames: a,
3732
3762
  type: o
3733
3763
  });
3734
3764
  }, e.prototype._createStructure = function() {
3735
3765
  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;
3766
+ 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
3767
  }, e.prototype._initStore = function() {
3738
3768
  var e = this;
3739
3769
  this._store.subscribe(this._render).withTxn(function() {
@@ -3769,7 +3799,7 @@ var xa = function(e) {
3769
3799
  if (!this.initialised) throw TypeError(`${e} called on a non-initialised instance of Choices`);
3770
3800
  if (!this.initialisedOK) throw TypeError(`${e} called for an element which has multiple instances of Choices initialised on it`);
3771
3801
  }
3772
- }, e.version = "11.1.0", e;
3802
+ }, e.version = "11.2.2", e;
3773
3803
  }(), Aa = {
3774
3804
  class: "m-form-group",
3775
3805
  ref: "selectComponent"
@@ -4290,67 +4320,67 @@ function hs(e, t) {
4290
4320
  function gs(e, t) {
4291
4321
  return e && e.classList.contains(t);
4292
4322
  }
4293
- function Y(e) {
4323
+ function _s(e) {
4294
4324
  return e.getBoundingClientRect();
4295
4325
  }
4296
- function _s(e) {
4326
+ function vs(e) {
4297
4327
  q(e, function(e) {
4298
4328
  e && e.parentNode && e.parentNode.removeChild(e);
4299
4329
  });
4300
4330
  }
4301
- function vs(e) {
4331
+ function ys(e) {
4302
4332
  return is(new DOMParser().parseFromString(e, "text/html").body);
4303
4333
  }
4304
- function ys(e, t) {
4334
+ function bs(e, t) {
4305
4335
  e.preventDefault(), t && (e.stopPropagation(), e.stopImmediatePropagation());
4306
4336
  }
4307
- function bs(e, t) {
4337
+ function xs(e, t) {
4308
4338
  return e && e.querySelector(t);
4309
4339
  }
4310
- function xs(e, t) {
4340
+ function Ss(e, t) {
4311
4341
  return t ? Lo(e.querySelectorAll(t)) : [];
4312
4342
  }
4313
- function Ss(e, t) {
4343
+ function Cs(e, t) {
4314
4344
  Qo(e, t, !1);
4315
4345
  }
4316
- function Cs(e) {
4346
+ function ws(e) {
4317
4347
  return e.timeStamp;
4318
4348
  }
4319
- function ws(e) {
4349
+ function Ts(e) {
4320
4350
  return Go(e) ? e : e ? e + "px" : "";
4321
4351
  }
4322
- var Ts = "splide", Es = "data-" + Ts;
4323
- function Ds(e, t) {
4324
- if (!e) throw Error("[" + Ts + "] " + (t || ""));
4352
+ var Es = "splide", Ds = "data-" + Es;
4353
+ function Os(e, t) {
4354
+ if (!e) throw Error("[" + Es + "] " + (t || ""));
4325
4355
  }
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;
4356
+ var ks = Math.min, As = Math.max, js = Math.floor, Ms = Math.ceil, Y = Math.abs;
4357
+ function Ns(e, t, n) {
4358
+ return Y(e - t) < n;
4329
4359
  }
4330
- function Ns(e, t, n, r) {
4331
- var i = Os(t, n), a = ks(t, n);
4360
+ function Ps(e, t, n, r) {
4361
+ var i = ks(t, n), a = As(t, n);
4332
4362
  return r ? i < e && e < a : i <= e && e <= a;
4333
4363
  }
4334
- function Ps(e, t, n) {
4335
- var r = Os(t, n), i = ks(t, n);
4336
- return Os(ks(r, e), i);
4364
+ function Fs(e, t, n) {
4365
+ var r = ks(t, n), i = As(t, n);
4366
+ return ks(As(r, e), i);
4337
4367
  }
4338
- function Fs(e) {
4368
+ function Is(e) {
4339
4369
  return (e > 0) - +(e < 0);
4340
4370
  }
4341
- function Is(e, t) {
4371
+ function Ls(e, t) {
4342
4372
  return q(t, function(t) {
4343
4373
  e = e.replace("%s", "" + t);
4344
4374
  }), e;
4345
4375
  }
4346
- function Ls(e) {
4376
+ function Rs(e) {
4347
4377
  return e < 10 ? "0" + e : "" + e;
4348
4378
  }
4349
- var Rs = {};
4350
- function zs(e) {
4351
- return "" + e + Ls(Rs[e] = (Rs[e] || 0) + 1);
4379
+ var zs = {};
4380
+ function Bs(e) {
4381
+ return "" + e + Rs(zs[e] = (zs[e] || 0) + 1);
4352
4382
  }
4353
- function Bs() {
4383
+ function Vs() {
4354
4384
  var e = [];
4355
4385
  function t(t, n, r, a) {
4356
4386
  i(t, n, function(t, n, i) {
@@ -4400,9 +4430,9 @@ function Bs() {
4400
4430
  destroy: a
4401
4431
  };
4402
4432
  }
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();
4433
+ 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";
4434
+ function Q(e) {
4435
+ var t = e ? e.event.bus : document.createDocumentFragment(), n = Vs();
4406
4436
  function r(e, r) {
4407
4437
  n.bind(t, Yo(e).join(" "), function(e) {
4408
4438
  r.apply(r, Uo(e.detail) ? e.detail : []);
@@ -4411,18 +4441,18 @@ function $(e) {
4411
4441
  function i(e) {
4412
4442
  n.dispatch(t, e, Lo(arguments, 1));
4413
4443
  }
4414
- return e && e.event.on(ic, n.destroy), ss(n, {
4444
+ return e && e.event.on(ac, n.destroy), ss(n, {
4415
4445
  bus: t,
4416
4446
  on: r,
4417
4447
  off: K(n.unbind, t),
4418
4448
  emit: i
4419
4449
  });
4420
4450
  }
4421
- function _c(e, t, n, r) {
4451
+ function vc(e, t, n, r) {
4422
4452
  var i = Date.now, a, o = 0, s, c = !0, l = 0;
4423
4453
  function u() {
4424
4454
  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();
4455
+ if (o = e ? ks((i() - a) / e, 1) : 1, n && n(o), o >= 1 && (t(), a = i(), r && ++l >= r)) return f();
4426
4456
  s = Bo(u);
4427
4457
  }
4428
4458
  }
@@ -4453,7 +4483,7 @@ function _c(e, t, n, r) {
4453
4483
  isPaused: g
4454
4484
  };
4455
4485
  }
4456
- function vc(e) {
4486
+ function yc(e) {
4457
4487
  var t = e;
4458
4488
  function n(e) {
4459
4489
  t = e;
@@ -4466,14 +4496,14 @@ function vc(e) {
4466
4496
  is: r
4467
4497
  };
4468
4498
  }
4469
- function yc(e, t) {
4470
- var n = _c(t || 0, e, null, 1);
4499
+ function bc(e, t) {
4500
+ var n = vc(t || 0, e, null, 1);
4471
4501
  return function() {
4472
4502
  n.isPaused() && n.start();
4473
4503
  };
4474
4504
  }
4475
- function bc(e, t, n) {
4476
- var r = e.state, i = n.breakpoints || {}, a = n.reducedMotion || {}, o = Bs(), s = [];
4505
+ function xc(e, t, n) {
4506
+ var r = e.state, i = n.breakpoints || {}, a = n.reducedMotion || {}, o = Vs(), s = [];
4477
4507
  function c() {
4478
4508
  var e = n.mediaQuery === "min";
4479
4509
  as(i).sort(function(t, n) {
@@ -4499,7 +4529,7 @@ function bc(e, t, n) {
4499
4529
  matchMedia(Do).matches && (e ? cs(n, a) : ls(n, as(a)));
4500
4530
  }
4501
4531
  function p(t, i, a) {
4502
- cs(n, t), i && cs(Object.getPrototypeOf(n), t), (a || !r.is(Oo)) && e.emit(Q, n);
4532
+ cs(n, t), i && cs(Object.getPrototypeOf(n), t), (a || !r.is(Oo)) && e.emit(Z, n);
4503
4533
  }
4504
4534
  return {
4505
4535
  setup: c,
@@ -4508,45 +4538,45 @@ function bc(e, t, n) {
4508
4538
  set: p
4509
4539
  };
4510
4540
  }
4511
- var xc = "Arrow", Sc = xc + "Left", Cc = xc + "Right", wc = xc + "Up", Tc = xc + "Down", Ec = "rtl", Dc = "ttb", Oc = {
4541
+ var Sc = "Arrow", Cc = Sc + "Left", wc = Sc + "Right", Tc = Sc + "Up", Ec = Sc + "Down", Dc = "rtl", Oc = "ttb", kc = {
4512
4542
  width: ["height"],
4513
4543
  left: ["top", "right"],
4514
4544
  right: ["bottom", "left"],
4515
4545
  x: ["y"],
4516
4546
  X: ["Y"],
4517
4547
  Y: ["X"],
4518
- ArrowLeft: [wc, Cc],
4519
- ArrowRight: [Tc, Sc]
4548
+ ArrowLeft: [Tc, wc],
4549
+ ArrowRight: [Ec, Cc]
4520
4550
  };
4521
- function kc(e, t, n) {
4551
+ function Ac(e, t, n) {
4522
4552
  function r(e, t, r) {
4523
4553
  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;
4554
+ var i = r === Dc && !t ? 1 : r === Oc ? 0 : -1;
4555
+ return kc[e] && kc[e][i] || e.replace(/width|left|right/i, function(e, t) {
4556
+ var n = kc[e.toLowerCase()][i] || e;
4527
4557
  return t > 0 ? n.charAt(0).toUpperCase() + n.slice(1) : n;
4528
4558
  });
4529
4559
  }
4530
4560
  function i(e) {
4531
- return e * (n.direction === Ec ? 1 : -1);
4561
+ return e * (n.direction === Dc ? 1 : -1);
4532
4562
  }
4533
4563
  return {
4534
4564
  resolve: r,
4535
4565
  orient: i
4536
4566
  };
4537
4567
  }
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,
4568
+ 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
4569
  jc,
4541
4570
  Mc,
4542
- Pc,
4571
+ Nc,
4543
4572
  Fc,
4544
- Lc,
4573
+ Ic,
4574
+ $,
4545
4575
  Rc,
4546
4576
  zc,
4547
4577
  Bc,
4548
4578
  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 = [
4579
+ ], 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
4580
  dl,
4551
4581
  ml,
4552
4582
  fl,
@@ -4572,12 +4602,12 @@ function bl(e, t) {
4572
4602
  }
4573
4603
  var xl = 5, Sl = 200, Cl = "touchstart mousedown", wl = "touchmove mousemove", Tl = "touchend touchcancel mouseup click";
4574
4604
  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;
4605
+ var r = Q(e), i = r.on, a = r.bind, o = e.root, s = n.i18n, c = {}, l = [], u = [], d = [], f, p, m;
4576
4606
  function h() {
4577
4607
  y(), b(), v();
4578
4608
  }
4579
4609
  function g() {
4580
- i(Z, _), i(Z, h), i(Q, v), a(document, Cl + " keydown", function(e) {
4610
+ i(X, _), i(X, h), i(Z, v), a(document, Cl + " keydown", function(e) {
4581
4611
  m = e.type === "keydown";
4582
4612
  }, { capture: !0 }), a(o, "focusin", function() {
4583
4613
  Qo(o, gl, !!m);
@@ -4585,13 +4615,13 @@ function El(e, t, n) {
4585
4615
  }
4586
4616
  function _(e) {
4587
4617
  var t = Gc.concat("style");
4588
- Io(l), Ss(o, u), Ss(f, d), us([f, p], t), us(o, e ? t : ["style", Vc]);
4618
+ Io(l), Cs(o, u), Cs(f, d), us([f, p], t), us(o, e ? t : ["style", Vc]);
4589
4619
  }
4590
4620
  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);
4621
+ 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
4622
  }
4593
4623
  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({
4624
+ 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
4625
  arrows: el,
4596
4626
  pagination: il,
4597
4627
  prev: nl,
@@ -4608,11 +4638,11 @@ function El(e, t, n) {
4608
4638
  });
4609
4639
  }
4610
4640
  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");
4641
+ var e = o.id || Bs(Es), t = n.role;
4642
+ 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
4643
  }
4614
4644
  function x(e) {
4615
- var t = bs(o, e);
4645
+ var t = xs(o, e);
4616
4646
  return t && bl(t, "." + Jc) === o ? t : void 0;
4617
4647
  }
4618
4648
  function S(e) {
@@ -4632,26 +4662,26 @@ function El(e, t, n) {
4632
4662
  }
4633
4663
  var Dl = "slide", Ol = "loop", kl = "fade";
4634
4664
  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;
4665
+ 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
4666
  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();
4667
+ 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
4668
  }
4639
4669
  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);
4670
+ s(r, "click", K(o, Ks, M)), s(r, "keydown", K(o, hc, M)), a([
4671
+ Gs,
4672
+ gc,
4673
+ rc
4674
+ ], D), a(uc, T), f && a(Ws, E);
4645
4675
  }
4646
4676
  function w() {
4647
- x = !0, i.destroy(), Ss(r, vl), us(r, Gc), J(r, "style", _), J(r, Lc, v || "");
4677
+ x = !0, i.destroy(), Cs(r, vl), us(r, Gc), J(r, "style", _), J(r, $, v || "");
4648
4678
  }
4649
4679
  function T() {
4650
4680
  var i = e.splides.map(function(e) {
4651
4681
  var n = e.splide.Components.Slides.getAt(t);
4652
4682
  return n ? n.slide.id : "";
4653
4683
  }).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);
4684
+ J(r, $, Ls(p.slideX, (y ? n : t) + 1)), J(r, Fc, i), J(r, jc, h ? "button" : ""), h && us(r, Vc);
4655
4685
  }
4656
4686
  function E() {
4657
4687
  x || D();
@@ -4664,11 +4694,11 @@ function Al(e, t, n, r) {
4664
4694
  }
4665
4695
  function ee() {
4666
4696
  var e = A();
4667
- e !== gs(r, dl) && (Qo(r, dl, e), J(r, Fc, d && e || ""), o(e ? Ks : qs, M));
4697
+ e !== gs(r, dl) && (Qo(r, dl, e), J(r, Ic, d && e || ""), o(e ? qs : Js, M));
4668
4698
  }
4669
4699
  function O() {
4670
4700
  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) {
4701
+ 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
4702
  var i = c.Slides.getAt(e.index);
4673
4703
  i && ms(i.slide);
4674
4704
  }
@@ -4682,12 +4712,12 @@ function Al(e, t, n, r) {
4682
4712
  }
4683
4713
  function te() {
4684
4714
  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]);
4715
+ var t = _s(c.Elements.track), n = _s(r), i = g("left", !0), a = g("right", !0);
4716
+ return js(t[i]) <= Ms(n[i]) && js(n[a]) <= Ms(t[a]);
4687
4717
  }
4688
4718
  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;
4719
+ var i = Y(n - t);
4720
+ return !y && (u.rewind || e.is(Ol)) && (i = ks(i, e.length - i)), i <= r;
4691
4721
  }
4692
4722
  var M = {
4693
4723
  index: t,
@@ -4704,9 +4734,9 @@ function Al(e, t, n, r) {
4704
4734
  return M;
4705
4735
  }
4706
4736
  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 = [];
4737
+ var r = Q(e), i = r.on, a = r.emit, o = r.bind, s = t.Elements, c = s.slides, l = s.list, u = [];
4708
4738
  function d() {
4709
- f(), i(Z, p), i(Z, f);
4739
+ f(), i(X, p), i(X, f);
4710
4740
  }
4711
4741
  function f() {
4712
4742
  c.forEach(function(e, t) {
@@ -4737,7 +4767,7 @@ function jl(e, t, n) {
4737
4767
  function _(e) {
4738
4768
  var r = t.Controller, i = r.toIndex(e), a = r.hasFocus() ? 1 : n.perPage;
4739
4769
  return S(function(e) {
4740
- return Ns(e.index, i, i + a - 1);
4770
+ return Ps(e.index, i, i + a - 1);
4741
4771
  });
4742
4772
  }
4743
4773
  function v(e) {
@@ -4745,16 +4775,16 @@ function jl(e, t, n) {
4745
4775
  }
4746
4776
  function y(e, t) {
4747
4777
  q(e, function(e) {
4748
- if (Go(e) && (e = vs(e)), Jo(e)) {
4778
+ if (Go(e) && (e = ys(e)), Jo(e)) {
4749
4779
  var r = c[t];
4750
- r ? ts(e, r) : es(l, e), $o(e, n.classes.slide), w(e, K(a, Xs));
4780
+ r ? ts(e, r) : es(l, e), $o(e, n.classes.slide), w(e, K(a, Zs));
4751
4781
  }
4752
- }), a(Z);
4782
+ }), a(X);
4753
4783
  }
4754
4784
  function b(e) {
4755
- _s(S(e).map(function(e) {
4785
+ vs(S(e).map(function(e) {
4756
4786
  return e.slide;
4757
- })), a(Z);
4787
+ })), a(X);
4758
4788
  }
4759
4789
  function x(e, t) {
4760
4790
  g(t).forEach(e);
@@ -4770,7 +4800,7 @@ function jl(e, t, n) {
4770
4800
  });
4771
4801
  }
4772
4802
  function w(e, t) {
4773
- var n = xs(e, "img"), r = n.length;
4803
+ var n = Ss(e, "img"), r = n.length;
4774
4804
  r ? n.forEach(function(e) {
4775
4805
  o(e, "load error", function() {
4776
4806
  --r || t();
@@ -4801,50 +4831,50 @@ function jl(e, t, n) {
4801
4831
  };
4802
4832
  }
4803
4833
  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, _;
4834
+ 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
4835
  function v() {
4806
- y(), a(window, "resize load", yc(K(o, Xs))), i([Q, Z], y), i(Xs, b);
4836
+ y(), a(window, "resize load", bc(K(o, Zs))), i([Z, X], y), i(Zs, b);
4807
4837
  }
4808
4838
  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);
4839
+ 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
4840
  }
4811
4841
  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, _)));
4842
+ var t = _s(u);
4843
+ (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
4844
  }
4815
4845
  function x(e) {
4816
4846
  var t = n.padding, r = c(e ? "right" : "left");
4817
- return t && ws(t[r] || (Ho(t) ? 0 : t)) || "0px";
4847
+ return t && Ts(t[r] || (Ho(t) ? 0 : t)) || "0px";
4818
4848
  }
4819
4849
  function S() {
4820
4850
  var e = "";
4821
- return h && (e = C(), Ds(e, "height or heightRatio is missing."), e = "calc(" + e + " - " + x(!1) + " - " + x(!0) + ")"), e;
4851
+ return h && (e = C(), Os(e, "height or heightRatio is missing."), e = "calc(" + e + " - " + x(!1) + " - " + x(!0) + ")"), e;
4822
4852
  }
4823
4853
  function C() {
4824
- return ws(n.height || Y(f).width * n.heightRatio);
4854
+ return Ts(n.height || _s(f).width * n.heightRatio);
4825
4855
  }
4826
4856
  function w() {
4827
- return n.autoWidth ? null : ws(n.fixedWidth) || (h ? "" : E());
4857
+ return n.autoWidth ? null : Ts(n.fixedWidth) || (h ? "" : E());
4828
4858
  }
4829
4859
  function T() {
4830
- return ws(n.fixedHeight) || (h ? n.autoHeight ? null : E() : C());
4860
+ return Ts(n.fixedHeight) || (h ? n.autoHeight ? null : E() : C());
4831
4861
  }
4832
4862
  function E() {
4833
- var e = ws(n.gap);
4863
+ var e = Ts(n.gap);
4834
4864
  return "calc((100%" + (e && " + " + e) + ")/" + (n.perPage || 1) + (e && " - " + e) + ")";
4835
4865
  }
4836
4866
  function D() {
4837
- return Y(f)[c("width")];
4867
+ return _s(f)[c("width")];
4838
4868
  }
4839
4869
  function ee(e, t) {
4840
4870
  var n = p(e || 0);
4841
- return n ? Y(n.slide)[c("width")] + (t ? 0 : A()) : 0;
4871
+ return n ? _s(n.slide)[c("width")] + (t ? 0 : A()) : 0;
4842
4872
  }
4843
4873
  function O(e, t) {
4844
4874
  var n = p(e);
4845
4875
  if (n) {
4846
- var r = Y(n.slide)[c("right")], i = Y(f)[c("left")];
4847
- return X(r - i) + (t ? 0 : A());
4876
+ var r = _s(n.slide)[c("right")], i = _s(f)[c("left")];
4877
+ return Y(r - i) + (t ? 0 : A());
4848
4878
  }
4849
4879
  return 0;
4850
4880
  }
@@ -4874,19 +4904,19 @@ function Ml(e, t, n) {
4874
4904
  }
4875
4905
  var Nl = 2;
4876
4906
  function Pl(e, t, n) {
4877
- var r = $(e), i = r.on, a = t.Elements, o = t.Slides, s = t.Direction.resolve, c = [], l;
4907
+ var r = Q(e), i = r.on, a = t.Elements, o = t.Slides, s = t.Direction.resolve, c = [], l;
4878
4908
  function u() {
4879
- i(Z, d), i([Q, Xs], p), (l = g()) && (m(l), t.Layout.resize(!0));
4909
+ i(X, d), i([Z, Zs], p), (l = g()) && (m(l), t.Layout.resize(!0));
4880
4910
  }
4881
4911
  function d() {
4882
4912
  f(), u();
4883
4913
  }
4884
4914
  function f() {
4885
- _s(c), Io(c), r.destroy();
4915
+ vs(c), Io(c), r.destroy();
4886
4916
  }
4887
4917
  function p() {
4888
4918
  var e = g();
4889
- l !== e && (l < e || !e) && r.emit(Z);
4919
+ l !== e && (l < e || !e) && r.emit(X);
4890
4920
  }
4891
4921
  function m(e) {
4892
4922
  var t = o.get().slice(), n = t.length;
@@ -4900,14 +4930,14 @@ function Pl(e, t, n) {
4900
4930
  }
4901
4931
  function h(t, r) {
4902
4932
  var i = t.cloneNode(!0);
4903
- return $o(i, n.classes.clone), i.id = e.root.id + "-clone" + Ls(r + 1), i;
4933
+ return $o(i, n.classes.clone), i.id = e.root.id + "-clone" + Rs(r + 1), i;
4904
4934
  }
4905
4935
  function g() {
4906
4936
  var r = n.clones;
4907
4937
  if (!e.is(Ol)) r = 0;
4908
4938
  else if (Ko(r)) {
4909
4939
  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;
4940
+ r = i && Ms(_s(a.track)[s("width")] / i) || n[s("autoWidth")] && e.length || n.perPage * Nl;
4911
4941
  }
4912
4942
  return r;
4913
4943
  }
@@ -4917,21 +4947,21 @@ function Pl(e, t, n) {
4917
4947
  };
4918
4948
  }
4919
4949
  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;
4950
+ 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
4951
  function b() {
4922
4952
  y = t.Transition, i([
4923
- Vs,
4924
- Zs,
4925
- Q,
4926
- Z
4953
+ Hs,
4954
+ Qs,
4955
+ Z,
4956
+ X
4927
4957
  ], x);
4928
4958
  }
4929
4959
  function x() {
4930
4960
  t.Controller.isBusy() || (t.Scroll.cancel(), C(e.index), t.Slides.update());
4931
4961
  }
4932
4962
  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();
4963
+ e !== t && M(e > n) && (D(), w(E(k(), e > n), !0)), o(jo), a(Ws, t, n, e), y.start(t, function() {
4964
+ o(Ao), a(Gs, t, n, e), r && r();
4935
4965
  });
4936
4966
  }
4937
4967
  function C(e) {
@@ -4940,7 +4970,7 @@ function Fl(e, t, n) {
4940
4970
  function w(t, n) {
4941
4971
  if (!e.is(kl)) {
4942
4972
  var r = n ? t : T(t);
4943
- fs(_, "transform", "translate" + m("X") + "(" + r + "px)"), t !== r && a(hc);
4973
+ fs(_, "transform", "translate" + m("X") + "(" + r + "px)"), t !== r && a(gc);
4944
4974
  }
4945
4975
  }
4946
4976
  function T(n) {
@@ -4952,14 +4982,14 @@ function Fl(e, t, n) {
4952
4982
  }
4953
4983
  function E(e, t) {
4954
4984
  var n = e - j(t), r = f();
4955
- return e -= h(r * (js(X(n) / r) || 1)) * (t ? 1 : -1), e;
4985
+ return e -= h(r * (Ms(Y(n) / r) || 1)) * (t ? 1 : -1), e;
4956
4986
  }
4957
4987
  function D() {
4958
4988
  w(k(), !0), y.cancel();
4959
4989
  }
4960
4990
  function ee(e) {
4961
4991
  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);
4992
+ var o = n[a].index, s = Y(O(o, !0) - e);
4963
4993
  if (s <= i) i = s, r = o;
4964
4994
  else break;
4965
4995
  }
@@ -4971,10 +5001,10 @@ function Fl(e, t, n) {
4971
5001
  }
4972
5002
  function k() {
4973
5003
  var e = m("left");
4974
- return Y(_)[e] - Y(v)[e] + h(l(!1));
5004
+ return _s(_)[e] - _s(v)[e] + h(l(!1));
4975
5005
  }
4976
5006
  function A(t) {
4977
- return n.trimSpace && e.is(Dl) && (t = Ps(t, 0, h(f(!0) - d()))), t;
5007
+ return n.trimSpace && e.is(Dl) && (t = Fs(t, 0, h(f(!0) - d()))), t;
4978
5008
  }
4979
5009
  function te(e) {
4980
5010
  var t = n.focus;
@@ -4985,7 +5015,7 @@ function Fl(e, t, n) {
4985
5015
  }
4986
5016
  function M(e) {
4987
5017
  var t = h(E(k(), e));
4988
- return e ? t >= 0 : t <= _[m("scrollWidth")] - Y(v)[m("width")];
5018
+ return e ? t >= 0 : t <= _[m("scrollWidth")] - _s(v)[m("width")];
4989
5019
  }
4990
5020
  function ne(e, t) {
4991
5021
  t = Ko(t) ? k() : t;
@@ -5008,21 +5038,21 @@ function Fl(e, t, n) {
5008
5038
  };
5009
5039
  }
5010
5040
  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;
5041
+ 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
5042
  function w() {
5013
5043
  T(), i([
5014
- Q,
5015
5044
  Z,
5016
- gc
5017
- ], T), i(Zs, E);
5045
+ X,
5046
+ _c
5047
+ ], T), i(Qs, E);
5018
5048
  }
5019
5049
  function T() {
5020
5050
  x = f(!0), S = n.perMove, C = n.perPage, y = M();
5021
- var e = Ps(v, 0, p ? y : x - 1);
5051
+ var e = Fs(v, 0, p ? y : x - 1);
5022
5052
  e !== v && (v = e, o.reposition());
5023
5053
  }
5024
5054
  function E() {
5025
- y !== M() && a(gc);
5055
+ y !== M() && a(_c);
5026
5056
  }
5027
5057
  function D(e, t, n) {
5028
5058
  if (!ae()) {
@@ -5033,7 +5063,7 @@ function Il(e, t, n) {
5033
5063
  function ee(e, n, r, i) {
5034
5064
  t.Scroll.scroll(e, n, r, function() {
5035
5065
  var e = j(o.toIndex(s()));
5036
- re(p ? Os(e, y) : e), i && i();
5066
+ re(p ? ks(e, y) : e), i && i();
5037
5067
  });
5038
5068
  }
5039
5069
  function O(e) {
@@ -5041,22 +5071,22 @@ function Il(e, t, n) {
5041
5071
  if (Go(e)) {
5042
5072
  var n = e.match(/([+\-<>])(\d+)?/) || [], r = n[1], i = n[2];
5043
5073
  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);
5074
+ } else t = m ? e : Fs(e, 0, y);
5045
5075
  return t;
5046
5076
  }
5047
5077
  function k(e, t) {
5048
5078
  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);
5079
+ return r === -1 && h && !Ns(s(), c(!e), 1) ? e ? 0 : y : t ? r : j(r);
5050
5080
  }
5051
5081
  function A(e, t, r) {
5052
5082
  if (d() || F()) {
5053
5083
  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)));
5084
+ 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
5085
  } else e = -1;
5056
5086
  return e;
5057
5087
  }
5058
5088
  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;
5089
+ 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
5090
  return t;
5061
5091
  }
5062
5092
  function j(e) {
@@ -5067,17 +5097,17 @@ function Il(e, t, n) {
5067
5097
  e++;
5068
5098
  break;
5069
5099
  }
5070
- return Ps(e, 0, x - 1);
5100
+ return Fs(e, 0, x - 1);
5071
5101
  }
5072
5102
  function ne(e) {
5073
- return Ps(F() ? e : C * e, 0, y);
5103
+ return Fs(F() ? e : C * e, 0, y);
5074
5104
  }
5075
5105
  function N(e) {
5076
- return F() ? Os(e, y) : As((e >= y ? x - 1 : e) / C);
5106
+ return F() ? ks(e, y) : js((e >= y ? x - 1 : e) / C);
5077
5107
  }
5078
5108
  function P(e) {
5079
5109
  var t = o.toIndex(e);
5080
- return h ? Ps(t, 0, y) : t;
5110
+ return h ? Fs(t, 0, y) : t;
5081
5111
  }
5082
5112
  function re(e) {
5083
5113
  e !== v && (b = v, v = e);
@@ -5110,9 +5140,9 @@ function Il(e, t, n) {
5110
5140
  }
5111
5141
  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
5142
  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 = {};
5143
+ 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
5144
  function y() {
5115
- x(), i(Q, b);
5145
+ x(), i(Z, b);
5116
5146
  }
5117
5147
  function b() {
5118
5148
  S(), y();
@@ -5122,18 +5152,18 @@ function Bl(e, t, n) {
5122
5152
  e && !(m && h) && T(), m && h && (ss(v, {
5123
5153
  prev: m,
5124
5154
  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)));
5155
+ }), ps(p, e ? "" : "none"), $o(p, _ = el + "--" + n.direction), e && (C(), D(), J([m, h], Fc, f.id), o(oc, m, h)));
5126
5156
  }
5127
5157
  function S() {
5128
- r.destroy(), Ss(p, _), g ? (_s(d ? [m, h] : p), m = h = null) : us([m, h], Gc);
5158
+ r.destroy(), Cs(p, _), g ? (vs(d ? [m, h] : p), m = h = null) : us([m, h], Gc);
5129
5159
  }
5130
5160
  function C() {
5131
5161
  i([
5132
- Vs,
5133
- Ws,
5134
- Z,
5135
- nc,
5136
- gc
5162
+ Hs,
5163
+ Gs,
5164
+ X,
5165
+ rc,
5166
+ _c
5137
5167
  ], D), a(h, "click", K(w, ">")), a(m, "click", K(w, "<"));
5138
5168
  }
5139
5169
  function w(e) {
@@ -5143,12 +5173,12 @@ function Bl(e, t, n) {
5143
5173
  p = d || ds("div", s.arrows), m = E(!0), h = E(!1), g = !0, es(p, [m, h]), !d && ts(p, f);
5144
5174
  }
5145
5175
  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) + "\" />");
5176
+ 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
5177
  }
5148
5178
  function D() {
5149
5179
  if (m && h) {
5150
5180
  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);
5181
+ m.disabled = n < 0, h.disabled = r < 0, J(m, $, i), J(h, $, a), o(sc, m, h, n, r);
5152
5182
  }
5153
5183
  }
5154
5184
  return {
@@ -5158,11 +5188,11 @@ function Bl(e, t, n) {
5158
5188
  update: D
5159
5189
  };
5160
5190
  }
5161
- var Vl = Es + "-interval";
5191
+ var Vl = Ds + "-interval";
5162
5192
  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";
5193
+ 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
5194
  function _() {
5165
- p && (v(), f && J(f, Pc, l.track.id), g || y(), S());
5195
+ p && (v(), f && J(f, Fc, l.track.id), g || y(), S());
5166
5196
  }
5167
5197
  function v() {
5168
5198
  n.pauseOnHover && a(d, "mouseenter mouseleave", function(e) {
@@ -5172,26 +5202,26 @@ function Hl(e, t, n) {
5172
5202
  }), f && a(f, "click", function() {
5173
5203
  g ? y() : b(!0);
5174
5204
  }), i([
5175
- Us,
5176
- tc,
5177
- Z
5178
- ], s.rewind), i(Us, w);
5205
+ Ws,
5206
+ nc,
5207
+ X
5208
+ ], s.rewind), i(Ws, w);
5179
5209
  }
5180
5210
  function y() {
5181
- c() && t.Slides.isEnough() && (s.start(!n.resetProgress), h = m = g = !1, S(), o(uc));
5211
+ c() && t.Slides.isEnough() && (s.start(!n.resetProgress), h = m = g = !1, S(), o(dc));
5182
5212
  }
5183
5213
  function b(e) {
5184
- e === void 0 && (e = !0), g = !!e, S(), c() || (s.pause(), o(fc));
5214
+ e === void 0 && (e = !0), g = !!e, S(), c() || (s.pause(), o(pc));
5185
5215
  }
5186
5216
  function x() {
5187
5217
  g || (m || h ? b(!1) : y());
5188
5218
  }
5189
5219
  function S() {
5190
- f && (Qo(f, dl, !g), J(f, Lc, n.i18n[g ? "play" : "pause"]));
5220
+ f && (Qo(f, dl, !g), J(f, $, n.i18n[g ? "play" : "pause"]));
5191
5221
  }
5192
5222
  function C(e) {
5193
5223
  var t = l.bar;
5194
- t && fs(t, "width", e * 100 + "%"), o(dc, e);
5224
+ t && fs(t, "width", e * 100 + "%"), o(fc, e);
5195
5225
  }
5196
5226
  function w(e) {
5197
5227
  var r = t.Slides.getAt(e);
@@ -5206,12 +5236,12 @@ function Hl(e, t, n) {
5206
5236
  };
5207
5237
  }
5208
5238
  function Ul(e, t, n) {
5209
- var r = $(e).on;
5239
+ var r = Q(e).on;
5210
5240
  function i() {
5211
- n.cover && (r(pc, K(o, !0)), r([
5212
- Vs,
5213
- Q,
5214
- Z
5241
+ n.cover && (r(mc, K(o, !0)), r([
5242
+ Hs,
5243
+ Z,
5244
+ X
5215
5245
  ], K(a, !0)));
5216
5246
  }
5217
5247
  function a(e) {
@@ -5230,25 +5260,25 @@ function Ul(e, t, n) {
5230
5260
  }
5231
5261
  var Wl = 10, Gl = 600, Kl = .6, ql = 1.5, Jl = 800;
5232
5262
  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;
5263
+ 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
5264
  function g() {
5235
- i(Us, b), i([Q, Z], x);
5265
+ i(Ws, b), i([Z, X], x);
5236
5266
  }
5237
5267
  function _(e, n, r, i, l) {
5238
5268
  var d = c();
5239
5269
  if (b(), r && (!f || !u())) {
5240
- var g = t.Layout.sliderSize(), _ = Fs(e) * g * As(X(e) / g) || 0;
5270
+ var g = t.Layout.sliderSize(), _ = Is(e) * g * js(Y(e) / g) || 0;
5241
5271
  e = s.toPosition(t.Controller.toDest(e % g)) + _;
5242
5272
  }
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();
5273
+ var x = Ns(d, e, 1);
5274
+ 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
5275
  }
5246
5276
  function v() {
5247
- o(Ao), m && m(), a(nc);
5277
+ o(Ao), m && m(), a(rc);
5248
5278
  }
5249
5279
  function y(e, t, n, r) {
5250
5280
  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));
5281
+ d(i + a), f && !n && u() && (h *= Kl, Y(a) < Wl && _(l(u(!0)), Gl, !1, m, !0));
5252
5282
  }
5253
5283
  function b() {
5254
5284
  p && p.cancel();
@@ -5272,9 +5302,9 @@ var Xl = {
5272
5302
  capture: !0
5273
5303
  };
5274
5304
  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;
5305
+ 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
5306
  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);
5307
+ 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
5308
  }
5279
5309
  function O() {
5280
5310
  var e = n.drag;
@@ -5283,35 +5313,35 @@ function Zl(e, t, n) {
5283
5313
  function k(e) {
5284
5314
  if (T = !1, !E) {
5285
5315
  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)));
5316
+ 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
5317
  }
5288
5318
  }
5289
5319
  function A(e) {
5290
- if (c.is(No) || (c.set(No), a(Qs)), e.cancelable) if (C) {
5320
+ if (c.is(No) || (c.set(No), a($s)), e.cancelable) if (C) {
5291
5321
  l.translate(y + ce(F(e)));
5292
5322
  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));
5323
+ (t || n) && M(e), T = !0, a(ec), bs(e);
5324
+ } else P(e) && (C = N(e), bs(e));
5295
5325
  }
5296
5326
  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;
5327
+ c.is(No) && (c.set(Ao), a(tc)), C && (ne(e), bs(e)), s(D, wl, A), s(D, Tl, te), C = !1;
5298
5328
  }
5299
5329
  function j(e) {
5300
- !E && T && ys(e, !0);
5330
+ !E && T && bs(e, !0);
5301
5331
  }
5302
5332
  function M(e) {
5303
5333
  x = b, b = e, y = _();
5304
5334
  }
5305
5335
  function ne(t) {
5306
5336
  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);
5337
+ 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
5338
  }
5309
5339
  function N(e) {
5310
5340
  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);
5341
+ return Y(F(e)) > (ue(e) ? a : i);
5312
5342
  }
5313
5343
  function P(e) {
5314
- return X(F(e)) > X(F(e, !0));
5344
+ return Y(F(e)) > Y(F(e, !0));
5315
5345
  }
5316
5346
  function re(t) {
5317
5347
  if (e.is(Ol) || !w) {
@@ -5321,13 +5351,13 @@ function Zl(e, t, n) {
5321
5351
  return 0;
5322
5352
  }
5323
5353
  function ie(e) {
5324
- return _() + Fs(e) * Os(X(e) * (n.flickPower || 600), S ? Infinity : t.Layout.listSize() * (n.flickMaxPages || 1));
5354
+ return _() + Is(e) * ks(Y(e) * (n.flickPower || 600), S ? Infinity : t.Layout.listSize() * (n.flickMaxPages || 1));
5325
5355
  }
5326
5356
  function F(e, t) {
5327
5357
  return se(e, t) - se(oe(e), t);
5328
5358
  }
5329
5359
  function ae(e) {
5330
- return Cs(e) - Cs(oe(e));
5360
+ return ws(e) - ws(oe(e));
5331
5361
  }
5332
5362
  function oe(e) {
5333
5363
  return b === e && x || b;
@@ -5359,19 +5389,19 @@ function Zl(e, t, n) {
5359
5389
  }
5360
5390
  var Ql = {
5361
5391
  Spacebar: " ",
5362
- Right: Cc,
5363
- Left: Sc,
5364
- Up: wc,
5365
- Down: Tc
5392
+ Right: wc,
5393
+ Left: Cc,
5394
+ Up: Tc,
5395
+ Down: Ec
5366
5396
  };
5367
5397
  function $l(e) {
5368
5398
  return e = Go(e) ? e : e.key, Ql[e] || e;
5369
5399
  }
5370
5400
  var eu = "keydown";
5371
5401
  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;
5402
+ var r = Q(e), i = r.on, a = r.bind, o = r.unbind, s = e.root, c = t.Direction.resolve, l, u;
5373
5403
  function d() {
5374
- f(), i(Q, p), i(Q, f), i(Us, h);
5404
+ f(), i(Z, p), i(Z, f), i(Ws, h);
5375
5405
  }
5376
5406
  function f() {
5377
5407
  var e = n.keyboard;
@@ -5392,7 +5422,7 @@ function tu(e, t, n) {
5392
5422
  function g(t) {
5393
5423
  if (!u) {
5394
5424
  var n = $l(t);
5395
- n === c(Sc) ? e.go("<") : n === c(Cc) && e.go(">");
5425
+ n === c(Cc) ? e.go("<") : n === c(wc) && e.go(">");
5396
5426
  }
5397
5427
  }
5398
5428
  return {
@@ -5401,18 +5431,18 @@ function tu(e, t, n) {
5401
5431
  disable: m
5402
5432
  };
5403
5433
  }
5404
- var nu = Es + "-lazy", ru = nu + "-srcset", iu = "[" + nu + "], [" + ru + "]";
5434
+ var nu = Ds + "-lazy", ru = nu + "-srcset", iu = "[" + nu + "], [" + ru + "]";
5405
5435
  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 = [];
5436
+ 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
5437
  function d() {
5408
- n.lazyLoad && (f(), i(Z, f));
5438
+ n.lazyLoad && (f(), i(X, f));
5409
5439
  }
5410
5440
  function f() {
5411
5441
  Io(u), p(), c ? _() : (a(l), i(l, m), m());
5412
5442
  }
5413
5443
  function p() {
5414
5444
  t.Slides.forEach(function(e) {
5415
- xs(e.slide, iu).forEach(function(t) {
5445
+ Ss(e.slide, iu).forEach(function(t) {
5416
5446
  var r = hs(t, nu), i = hs(t, ru);
5417
5447
  if (r !== t.src || i !== t.srcset) {
5418
5448
  var a = n.classes.spinner, o = t.parentElement, s = is(o, "." + a) || ds("span", a, o);
@@ -5437,7 +5467,7 @@ function au(e, t, n) {
5437
5467
  }
5438
5468
  function g(e, t) {
5439
5469
  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 && _();
5470
+ Cs(r.slide, hl), t.type !== "error" && (vs(e[2]), ps(n, ""), s(mc, n, r), s(Zs)), c && _();
5441
5471
  }
5442
5472
  function _() {
5443
5473
  u.length && h(u.shift());
@@ -5449,29 +5479,29 @@ function au(e, t, n) {
5449
5479
  };
5450
5480
  }
5451
5481
  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, _;
5482
+ 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
5483
  function v() {
5454
5484
  y(), i([
5455
- Q,
5456
5485
  Z,
5457
- gc
5486
+ X,
5487
+ _c
5458
5488
  ], v);
5459
5489
  var t = n.pagination;
5460
5490
  m && ps(m, t ? "" : "none"), t && (i([
5461
- Us,
5462
- tc,
5463
- nc
5464
- ], T), b(), T(), a(sc, {
5491
+ Ws,
5492
+ nc,
5493
+ rc
5494
+ ], T), b(), T(), a(cc, {
5465
5495
  list: g,
5466
5496
  items: h
5467
5497
  }, w(e.index)));
5468
5498
  }
5469
5499
  function y() {
5470
- g &&= (_s(m ? Lo(g.children) : g), Ss(g, _), Io(h), null), r.destroy();
5500
+ g &&= (vs(m ? Lo(g.children) : g), Cs(g, _), Io(h), null), r.destroy();
5471
5501
  }
5472
5502
  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" : "");
5503
+ var t = e.length, r = n.classes, i = n.i18n, a = n.perPage, d = u() ? l.getEnd() + 1 : Ms(t / a);
5504
+ 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
5505
  for (var f = 0; f < d; f++) {
5476
5506
  var p = ds("li", null, g), v = ds("button", {
5477
5507
  class: r.page,
@@ -5479,7 +5509,7 @@ function ou(e, t, n) {
5479
5509
  }, p), y = s.getIn(f).map(function(e) {
5480
5510
  return e.slide.id;
5481
5511
  }), 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({
5512
+ 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
5513
  li: p,
5484
5514
  button: v,
5485
5515
  page: f
@@ -5491,9 +5521,9 @@ function ou(e, t, n) {
5491
5521
  }
5492
5522
  function S(e, t) {
5493
5523
  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);
5524
+ 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
5525
  var o = h[a];
5496
- o && (ms(o.button), f(">" + a), ys(t, !0));
5526
+ o && (ms(o.button), f(">" + a), bs(t, !0));
5497
5527
  }
5498
5528
  function C() {
5499
5529
  return n.paginationDirection || n.direction;
@@ -5505,13 +5535,13 @@ function ou(e, t, n) {
5505
5535
  var e = w(d(!0)), t = w(d());
5506
5536
  if (e) {
5507
5537
  var n = e.button;
5508
- Ss(n, dl), us(n, Ic), J(n, jc, -1);
5538
+ Cs(n, dl), us(n, Lc), J(n, Mc, -1);
5509
5539
  }
5510
5540
  if (t) {
5511
5541
  var r = t.button;
5512
- $o(r, dl), J(r, Ic, !0), J(r, jc, "");
5542
+ $o(r, dl), J(r, Lc, !0), J(r, Mc, "");
5513
5543
  }
5514
- a(cc, {
5544
+ a(lc, {
5515
5545
  list: g,
5516
5546
  items: h
5517
5547
  }, e, t);
@@ -5541,23 +5571,23 @@ function cu(e, t, n) {
5541
5571
  s(), o();
5542
5572
  }
5543
5573
  function l(e, t) {
5544
- var n = $(e);
5545
- n.on(Us, function(e, n, r) {
5574
+ var n = Q(e);
5575
+ n.on(Ws, function(e, n, r) {
5546
5576
  t.go(t.is(Ol) ? r : e);
5547
5577
  }), a.push(n);
5548
5578
  }
5549
5579
  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);
5580
+ var t = Q(e), n = t.on;
5581
+ n(Ks, f), n(hc, p), n([Hs, Z], d), a.push(t), t.emit(uc, e.splides);
5552
5582
  }
5553
5583
  function d() {
5554
- J(t.Elements.list, Bc, n.direction === Dc ? "vertical" : "");
5584
+ J(t.Elements.list, Bc, n.direction === Oc ? "vertical" : "");
5555
5585
  }
5556
5586
  function f(t) {
5557
5587
  e.go(t.index);
5558
5588
  }
5559
5589
  function p(e, t) {
5560
- Xo(su, $l(t)) && (f(e), ys(t));
5590
+ Xo(su, $l(t)) && (f(e), bs(t));
5561
5591
  }
5562
5592
  return {
5563
5593
  setup: K(t.Media.set, { slideFocus: Ko(i) ? r : i }, !0),
@@ -5567,14 +5597,14 @@ function cu(e, t, n) {
5567
5597
  };
5568
5598
  }
5569
5599
  function lu(e, t, n) {
5570
- var r = $(e).bind, i = 0;
5600
+ var r = Q(e).bind, i = 0;
5571
5601
  function a() {
5572
5602
  n.wheel && r(t.Elements.track, "wheel", o, Xl);
5573
5603
  }
5574
5604
  function o(t) {
5575
5605
  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);
5606
+ var r = t.deltaY, a = r < 0, o = ws(t), c = n.wheelMinThreshold || 0, l = n.wheelSleep || 0;
5607
+ Y(r) > c && o - i > l && (e.go(a ? "<" : ">"), i = o), s(a) && bs(t);
5578
5608
  }
5579
5609
  }
5580
5610
  function s(r) {
@@ -5584,19 +5614,19 @@ function lu(e, t, n) {
5584
5614
  }
5585
5615
  var uu = 90;
5586
5616
  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));
5617
+ 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
5618
  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)));
5619
+ 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
5620
  }
5591
5621
  function l(e) {
5592
- J(i, Uc, e), e ? (es(i, o), s.start()) : (_s(o), s.cancel());
5622
+ J(i, Uc, e), e ? (es(i, o), s.start()) : (vs(o), s.cancel());
5593
5623
  }
5594
5624
  function u() {
5595
5625
  us(i, [
5596
5626
  Hc,
5597
5627
  Wc,
5598
5628
  Uc
5599
- ]), _s(o);
5629
+ ]), vs(o);
5600
5630
  }
5601
5631
  function d(e) {
5602
5632
  a && J(i, Hc, e ? "off" : "polite");
@@ -5609,8 +5639,8 @@ function du(e, t, n) {
5609
5639
  }
5610
5640
  var fu = /* @__PURE__ */ Object.freeze({
5611
5641
  __proto__: null,
5612
- Media: bc,
5613
- Direction: kc,
5642
+ Media: xc,
5643
+ Direction: Ac,
5614
5644
  Elements: El,
5615
5645
  Slides: jl,
5616
5646
  Layout: Ml,
@@ -5671,7 +5701,7 @@ var fu = /* @__PURE__ */ Object.freeze({
5671
5701
  function mu(e, t, n) {
5672
5702
  var r = t.Slides;
5673
5703
  function i() {
5674
- $(e).on([Vs, Z], a);
5704
+ Q(e).on([Hs, X], a);
5675
5705
  }
5676
5706
  function a() {
5677
5707
  r.forEach(function(e) {
@@ -5690,13 +5720,13 @@ function mu(e, t, n) {
5690
5720
  function hu(e, t, n) {
5691
5721
  var r = t.Move, i = t.Controller, a = t.Scroll, o = t.Elements.list, s = K(fs, o, "transition"), c;
5692
5722
  function l() {
5693
- $(e).bind(o, "transitionend", function(e) {
5723
+ Q(e).bind(o, "transitionend", function(e) {
5694
5724
  e.target === o && c && (d(), c());
5695
5725
  });
5696
5726
  }
5697
5727
  function u(e, t) {
5698
5728
  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());
5729
+ 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
5730
  }
5701
5731
  function d() {
5702
5732
  s(""), a.cancel();
@@ -5717,28 +5747,28 @@ function hu(e, t, n) {
5717
5747
  }
5718
5748
  var gu = /* @__PURE__ */ function() {
5719
5749
  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) || "",
5750
+ this.event = Q(), this.Components = {}, this.state = yc(Oo), this.splides = [], this._o = {}, this._E = {};
5751
+ var r = Go(t) ? xs(document, t) : t;
5752
+ Os(r, r + " is invalid."), this.root = r, n = cs({
5753
+ label: hs(r, $) || "",
5724
5754
  labelledby: hs(r, Rc) || ""
5725
5755
  }, pu, e.defaults, n || {});
5726
5756
  try {
5727
- cs(n, JSON.parse(hs(r, Es)));
5757
+ cs(n, JSON.parse(hs(r, Ds)));
5728
5758
  } catch {
5729
- Ds(!1, "Invalid JSON");
5759
+ Os(!1, "Invalid JSON");
5730
5760
  }
5731
5761
  this._o = Object.create(cs({}, n));
5732
5762
  }
5733
5763
  var t = e.prototype;
5734
5764
  return t.mount = function(e, t) {
5735
5765
  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) {
5766
+ 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
5767
  var r = e(n, i, n._o);
5738
5768
  i[t] = r, r.setup && r.setup();
5739
5769
  }), os(i, function(e) {
5740
5770
  e.mount && e.mount();
5741
- }), this.emit(Vs), $o(this.root, ul), r.set(Ao), this.emit(Hs), this;
5771
+ }), this.emit(Hs), $o(this.root, ul), r.set(Ao), this.emit(Us), this;
5742
5772
  }, t.sync = function(e) {
5743
5773
  return this.splides.push({ splide: e }), e.splides.push({
5744
5774
  splide: this,
@@ -5760,13 +5790,13 @@ var gu = /* @__PURE__ */ function() {
5760
5790
  }, t.is = function(e) {
5761
5791
  return this._o.type === e;
5762
5792
  }, t.refresh = function() {
5763
- return this.emit(Z), this;
5793
+ return this.emit(X), this;
5764
5794
  }, t.destroy = function(e) {
5765
5795
  e === void 0 && (e = !0);
5766
5796
  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) {
5797
+ return n.is(Oo) ? Q(this).on(Us, this.destroy.bind(this, e)) : (os(this._C, function(t) {
5768
5798
  t.destroy && t.destroy(e);
5769
- }, !0), t.emit(ic), t.destroy(), e && Io(this.splides), n.set(Po)), this;
5799
+ }, !0), t.emit(ac), t.destroy(), e && Io(this.splides), n.set(Po)), this;
5770
5800
  }, Eo(e, [
5771
5801
  {
5772
5802
  key: "options",
@@ -5793,33 +5823,33 @@ var gu = /* @__PURE__ */ function() {
5793
5823
  }();
5794
5824
  gu.defaults = {}, gu.STATES = Fo;
5795
5825
  var _u = [
5796
- Ks,
5797
- ac,
5826
+ qs,
5798
5827
  oc,
5799
- fc,
5800
- uc,
5828
+ sc,
5829
+ pc,
5801
5830
  dc,
5802
- Gs,
5803
- ic,
5804
- Qs,
5805
- ec,
5831
+ fc,
5832
+ Ks,
5833
+ ac,
5806
5834
  $s,
5807
- Ys,
5808
- qs,
5809
- pc,
5810
- Vs,
5811
- Us,
5835
+ tc,
5836
+ ec,
5837
+ Xs,
5838
+ Js,
5839
+ mc,
5840
+ Hs,
5812
5841
  Ws,
5813
- lc,
5814
- sc,
5842
+ Gs,
5843
+ uc,
5815
5844
  cc,
5816
- Z,
5817
- Xs,
5845
+ lc,
5846
+ X,
5818
5847
  Zs,
5819
- tc,
5848
+ Qs,
5820
5849
  nc,
5821
- Q,
5822
- Js
5850
+ rc,
5851
+ Z,
5852
+ Ys
5823
5853
  ], vu = "splide";
5824
5854
  function yu(e) {
5825
5855
  return typeof e == "object" && !!e;