aoi-comp 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1444,30 +1444,30 @@ function E(e, t) {
1444
1444
  return t(e(n));
1445
1445
  };
1446
1446
  }
1447
- function ee(e, t) {
1447
+ function D(e, t) {
1448
1448
  let n = [t[e].parent, e], r = y[t[e].parent][e], i = t[e].parent;
1449
1449
  for (; t[i].parent;) n.unshift(t[i].parent), r = E(y[t[i].parent][i], r), i = t[i].parent;
1450
1450
  return r.conversion = n, r;
1451
1451
  }
1452
- function te(e) {
1452
+ function ee(e) {
1453
1453
  let t = T(e), n = {}, r = Object.keys(t);
1454
1454
  for (let { length: e } = r, i = 0; i < e; i++) {
1455
1455
  let e = r[i];
1456
- t[e].parent !== null && (n[e] = ee(e, t));
1456
+ t[e].parent !== null && (n[e] = D(e, t));
1457
1457
  }
1458
1458
  return n;
1459
1459
  }
1460
1460
  //#endregion
1461
1461
  //#region node_modules/.pnpm/color-convert@3.1.3/node_modules/color-convert/index.js
1462
- var D = {}, ne = Object.keys(y);
1463
- function re(e) {
1462
+ var O = {}, te = Object.keys(y);
1463
+ function ne(e) {
1464
1464
  let t = function(...t) {
1465
1465
  let n = t[0];
1466
1466
  return n == null ? n : (n.length > 1 && (t = n), e(t));
1467
1467
  };
1468
1468
  return "conversion" in e && (t.conversion = e.conversion), t;
1469
1469
  }
1470
- function ie(e) {
1470
+ function re(e) {
1471
1471
  let t = function(...t) {
1472
1472
  let n = t[0];
1473
1473
  if (n == null) return n;
@@ -1478,41 +1478,41 @@ function ie(e) {
1478
1478
  };
1479
1479
  return "conversion" in e && (t.conversion = e.conversion), t;
1480
1480
  }
1481
- for (let e of ne) {
1482
- D[e] = {}, Object.defineProperty(D[e], "channels", { value: y[e].channels }), Object.defineProperty(D[e], "labels", { value: y[e].labels });
1483
- let t = te(e), n = Object.keys(t);
1481
+ for (let e of te) {
1482
+ O[e] = {}, Object.defineProperty(O[e], "channels", { value: y[e].channels }), Object.defineProperty(O[e], "labels", { value: y[e].labels });
1483
+ let t = ee(e), n = Object.keys(t);
1484
1484
  for (let r of n) {
1485
1485
  let n = t[r];
1486
- D[e][r] = ie(n), D[e][r].raw = re(n);
1486
+ O[e][r] = re(n), O[e][r].raw = ne(n);
1487
1487
  }
1488
1488
  }
1489
1489
  //#endregion
1490
1490
  //#region node_modules/.pnpm/color@5.0.3/node_modules/color/index.js
1491
- var ae = [
1491
+ var ie = [
1492
1492
  "keyword",
1493
1493
  "gray",
1494
1494
  "hex"
1495
- ], oe = {};
1496
- for (let e of Object.keys(D)) oe[[...D[e].labels].sort().join("")] = e;
1497
- var se = {};
1498
- function O(e, t) {
1499
- if (!(this instanceof O)) return new O(e, t);
1500
- if (t && t in ae && (t = null), t && !(t in D)) throw Error("Unknown model: " + t);
1495
+ ], ae = {};
1496
+ for (let e of Object.keys(O)) ae[[...O[e].labels].sort().join("")] = e;
1497
+ var oe = {};
1498
+ function k(e, t) {
1499
+ if (!(this instanceof k)) return new k(e, t);
1500
+ if (t && t in ie && (t = null), t && !(t in O)) throw Error("Unknown model: " + t);
1501
1501
  let n, r;
1502
1502
  if (e == null) this.model = "rgb", this.color = [
1503
1503
  0,
1504
1504
  0,
1505
1505
  0
1506
1506
  ], this.valpha = 1;
1507
- else if (e instanceof O) this.model = e.model, this.color = [...e.color], this.valpha = e.valpha;
1507
+ else if (e instanceof k) this.model = e.model, this.color = [...e.color], this.valpha = e.valpha;
1508
1508
  else if (typeof e == "string") {
1509
1509
  let t = h.get(e);
1510
1510
  if (t === null) throw Error("Unable to parse color from string: " + e);
1511
- this.model = t.model, r = D[this.model].channels, this.color = t.value.slice(0, r), this.valpha = typeof t.value[r] == "number" ? t.value[r] : 1;
1511
+ this.model = t.model, r = O[this.model].channels, this.color = t.value.slice(0, r), this.valpha = typeof t.value[r] == "number" ? t.value[r] : 1;
1512
1512
  } else if (e.length > 0) {
1513
- this.model = t || "rgb", r = D[this.model].channels;
1513
+ this.model = t || "rgb", r = O[this.model].channels;
1514
1514
  let n = Array.prototype.slice.call(e, 0, r);
1515
- this.color = de(n, r), this.valpha = typeof e[r] == "number" ? e[r] : 1;
1515
+ this.color = ue(n, r), this.valpha = typeof e[r] == "number" ? e[r] : 1;
1516
1516
  } else if (typeof e == "number") this.model = "rgb", this.color = [
1517
1517
  e >> 16 & 255,
1518
1518
  e >> 8 & 255,
@@ -1523,19 +1523,19 @@ function O(e, t) {
1523
1523
  let t = Object.keys(e);
1524
1524
  "alpha" in e && (t.splice(t.indexOf("alpha"), 1), this.valpha = typeof e.alpha == "number" ? e.alpha : 0);
1525
1525
  let r = t.sort().join("");
1526
- if (!(r in oe)) throw Error("Unable to parse color from object: " + JSON.stringify(e));
1527
- this.model = oe[r];
1528
- let { labels: i } = D[this.model], a = [];
1526
+ if (!(r in ae)) throw Error("Unable to parse color from object: " + JSON.stringify(e));
1527
+ this.model = ae[r];
1528
+ let { labels: i } = O[this.model], a = [];
1529
1529
  for (n = 0; n < i.length; n++) a.push(e[i[n]]);
1530
- this.color = de(a);
1530
+ this.color = ue(a);
1531
1531
  }
1532
- if (se[this.model]) for (r = D[this.model].channels, n = 0; n < r; n++) {
1533
- let e = se[this.model][n];
1532
+ if (oe[this.model]) for (r = O[this.model].channels, n = 0; n < r; n++) {
1533
+ let e = oe[this.model][n];
1534
1534
  e && (this.color[n] = e(this.color[n]));
1535
1535
  }
1536
1536
  this.valpha = Math.max(0, Math.min(1, this.valpha)), Object.freeze && Object.freeze(this);
1537
1537
  }
1538
- O.prototype = {
1538
+ k.prototype = {
1539
1539
  toString() {
1540
1540
  return this.string();
1541
1541
  },
@@ -1556,7 +1556,7 @@ O.prototype = {
1556
1556
  return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
1557
1557
  },
1558
1558
  object() {
1559
- let e = {}, { channels: t } = D[this.model], { labels: n } = D[this.model];
1559
+ let e = {}, { channels: t } = O[this.model], { labels: n } = O[this.model];
1560
1560
  for (let r = 0; r < t; r++) e[n[r]] = this.color[r];
1561
1561
  return this.valpha !== 1 && (e.alpha = this.valpha), e;
1562
1562
  },
@@ -1569,47 +1569,47 @@ O.prototype = {
1569
1569
  return e.r /= 255, e.g /= 255, e.b /= 255, this.valpha !== 1 && (e.alpha = this.valpha), e;
1570
1570
  },
1571
1571
  round(e) {
1572
- return e = Math.max(e || 0, 0), new O([...this.color.map(le(e)), this.valpha], this.model);
1572
+ return e = Math.max(e || 0, 0), new k([...this.color.map(ce(e)), this.valpha], this.model);
1573
1573
  },
1574
1574
  alpha(e) {
1575
- return e === void 0 ? this.valpha : new O([...this.color, Math.max(0, Math.min(1, e))], this.model);
1575
+ return e === void 0 ? this.valpha : new k([...this.color, Math.max(0, Math.min(1, e))], this.model);
1576
1576
  },
1577
- red: k("rgb", 0, A(255)),
1578
- green: k("rgb", 1, A(255)),
1579
- blue: k("rgb", 2, A(255)),
1580
- hue: k([
1577
+ red: A("rgb", 0, j(255)),
1578
+ green: A("rgb", 1, j(255)),
1579
+ blue: A("rgb", 2, j(255)),
1580
+ hue: A([
1581
1581
  "hsl",
1582
1582
  "hsv",
1583
1583
  "hsl",
1584
1584
  "hwb",
1585
1585
  "hcg"
1586
1586
  ], 0, (e) => (e % 360 + 360) % 360),
1587
- saturationl: k("hsl", 1, A(100)),
1588
- lightness: k("hsl", 2, A(100)),
1589
- saturationv: k("hsv", 1, A(100)),
1590
- value: k("hsv", 2, A(100)),
1591
- chroma: k("hcg", 1, A(100)),
1592
- gray: k("hcg", 2, A(100)),
1593
- white: k("hwb", 1, A(100)),
1594
- wblack: k("hwb", 2, A(100)),
1595
- cyan: k("cmyk", 0, A(100)),
1596
- magenta: k("cmyk", 1, A(100)),
1597
- yellow: k("cmyk", 2, A(100)),
1598
- black: k("cmyk", 3, A(100)),
1599
- x: k("xyz", 0, A(95.047)),
1600
- y: k("xyz", 1, A(100)),
1601
- z: k("xyz", 2, A(108.833)),
1602
- l: k("lab", 0, A(100)),
1603
- a: k("lab", 1),
1604
- b: k("lab", 2),
1587
+ saturationl: A("hsl", 1, j(100)),
1588
+ lightness: A("hsl", 2, j(100)),
1589
+ saturationv: A("hsv", 1, j(100)),
1590
+ value: A("hsv", 2, j(100)),
1591
+ chroma: A("hcg", 1, j(100)),
1592
+ gray: A("hcg", 2, j(100)),
1593
+ white: A("hwb", 1, j(100)),
1594
+ wblack: A("hwb", 2, j(100)),
1595
+ cyan: A("cmyk", 0, j(100)),
1596
+ magenta: A("cmyk", 1, j(100)),
1597
+ yellow: A("cmyk", 2, j(100)),
1598
+ black: A("cmyk", 3, j(100)),
1599
+ x: A("xyz", 0, j(95.047)),
1600
+ y: A("xyz", 1, j(100)),
1601
+ z: A("xyz", 2, j(108.833)),
1602
+ l: A("lab", 0, j(100)),
1603
+ a: A("lab", 1),
1604
+ b: A("lab", 2),
1605
1605
  keyword(e) {
1606
- return e === void 0 ? D[this.model].keyword(this.color) : new O(e);
1606
+ return e === void 0 ? O[this.model].keyword(this.color) : new k(e);
1607
1607
  },
1608
1608
  hex(e) {
1609
- return e === void 0 ? h.to.hex(...this.rgb().round().color) : new O(e);
1609
+ return e === void 0 ? h.to.hex(...this.rgb().round().color) : new k(e);
1610
1610
  },
1611
1611
  hexa(e) {
1612
- if (e !== void 0) return new O(e);
1612
+ if (e !== void 0) return new k(e);
1613
1613
  let t = this.rgb().round().color, n = Math.round(this.valpha * 255).toString(16).toUpperCase();
1614
1614
  return n.length === 1 && (n = "0" + n), h.to.hex(...t) + n;
1615
1615
  },
@@ -1671,7 +1671,7 @@ O.prototype = {
1671
1671
  },
1672
1672
  grayscale() {
1673
1673
  let e = this.rgb().color, t = e[0] * .3 + e[1] * .59 + e[2] * .11;
1674
- return O.rgb(t, t, t);
1674
+ return k.rgb(t, t, t);
1675
1675
  },
1676
1676
  fade(e) {
1677
1677
  return this.alpha(this.valpha - this.valpha * e);
@@ -1686,55 +1686,55 @@ O.prototype = {
1686
1686
  mix(e, t) {
1687
1687
  if (!e || !e.rgb) throw Error("Argument to \"mix\" was not a Color instance, but rather an instance of " + typeof e);
1688
1688
  let n = e.rgb(), r = this.rgb(), i = t === void 0 ? .5 : t, a = 2 * i - 1, o = n.alpha() - r.alpha(), s = ((a * o === -1 ? a : (a + o) / (1 + a * o)) + 1) / 2, c = 1 - s;
1689
- return O.rgb(s * n.red() + c * r.red(), s * n.green() + c * r.green(), s * n.blue() + c * r.blue(), n.alpha() * i + r.alpha() * (1 - i));
1689
+ return k.rgb(s * n.red() + c * r.red(), s * n.green() + c * r.green(), s * n.blue() + c * r.blue(), n.alpha() * i + r.alpha() * (1 - i));
1690
1690
  }
1691
1691
  };
1692
- for (let e of Object.keys(D)) {
1693
- if (ae.includes(e)) continue;
1694
- let { channels: t } = D[e];
1695
- O.prototype[e] = function(...t) {
1696
- return this.model === e ? new O(this) : t.length > 0 ? new O(t, e) : new O([...ue(D[this.model][e].raw(this.color)), this.valpha], e);
1697
- }, O[e] = function(...n) {
1692
+ for (let e of Object.keys(O)) {
1693
+ if (ie.includes(e)) continue;
1694
+ let { channels: t } = O[e];
1695
+ k.prototype[e] = function(...t) {
1696
+ return this.model === e ? new k(this) : t.length > 0 ? new k(t, e) : new k([...le(O[this.model][e].raw(this.color)), this.valpha], e);
1697
+ }, k[e] = function(...n) {
1698
1698
  let r = n[0];
1699
- return typeof r == "number" && (r = de(n, t)), new O(r, e);
1699
+ return typeof r == "number" && (r = ue(n, t)), new k(r, e);
1700
1700
  };
1701
1701
  }
1702
- function ce(e, t) {
1702
+ function se(e, t) {
1703
1703
  return Number(e.toFixed(t));
1704
1704
  }
1705
- function le(e) {
1705
+ function ce(e) {
1706
1706
  return function(t) {
1707
- return ce(t, e);
1707
+ return se(t, e);
1708
1708
  };
1709
1709
  }
1710
- function k(e, t, n) {
1710
+ function A(e, t, n) {
1711
1711
  e = Array.isArray(e) ? e : [e];
1712
- for (let r of e) (se[r] ||= [])[t] = n;
1712
+ for (let r of e) (oe[r] ||= [])[t] = n;
1713
1713
  return e = e[0], function(r) {
1714
1714
  let i;
1715
1715
  return r === void 0 ? (i = this[e]().color[t], n && (i = n(i)), i) : (n && (r = n(r)), i = this[e](), i.color[t] = r, i);
1716
1716
  };
1717
1717
  }
1718
- function A(e) {
1718
+ function j(e) {
1719
1719
  return function(t) {
1720
1720
  return Math.max(0, Math.min(e, t));
1721
1721
  };
1722
1722
  }
1723
- function ue(e) {
1723
+ function le(e) {
1724
1724
  return Array.isArray(e) ? e : [e];
1725
1725
  }
1726
- function de(e, t) {
1726
+ function ue(e, t) {
1727
1727
  for (let n = 0; n < t; n++) typeof e[n] != "number" && (e[n] = 0);
1728
1728
  return e;
1729
1729
  }
1730
1730
  //#endregion
1731
1731
  //#region packages/themes/token.js
1732
- var j = {
1732
+ var M = {
1733
1733
  colorPrimary: "#1677ff",
1734
1734
  colorWarning: "#ffaa00",
1735
1735
  colorError: "#ff4d4f",
1736
1736
  colorText: "#ffffff"
1737
- }, M = {
1737
+ }, N = {
1738
1738
  viewBgc: "#383838",
1739
1739
  compBgc: "#141414",
1740
1740
  borderColor: "#444444",
@@ -1745,93 +1745,93 @@ var j = {
1745
1745
  hoverWhite: "#ececec",
1746
1746
  fontSize: 14,
1747
1747
  iconSize: 18
1748
- }, fe = "os-theme-light", pe = "small", me = {
1748
+ }, de = "os-theme-light", fe = "small", pe = {
1749
1749
  ok: "#00c291",
1750
1750
  ng: "#f56c6c"
1751
- }, he = O("os-theme-light".includes("light") ? "#ffffff" : "#000000").alpha(.44).string(), ge = "#ffffff", _e = "#000000", ve = O(j.colorText).alpha(.45).string(), ye = O(j.colorPrimary).alpha(.3).string(), be = O(j.colorPrimary).desaturate(.45).string(), xe = O(M.borderColor).whiten(.25).string(), Se = O(M.compBgc).mix(O("white"), .1).string(), N = O(M.hoverWhite).alpha(.15).string(), Ce = `linear-gradient(90deg, ${O(j.colorPrimary).alpha(.92).string()} 0%, ${O(j.colorPrimary).darken(.3).string()} 100%)`, P = {
1751
+ }, me = k("os-theme-light".includes("light") ? "#ffffff" : "#000000").alpha(.44).string(), he = "#ffffff", ge = "#000000", _e = k(M.colorText).alpha(.45).string(), ve = k(M.colorPrimary).alpha(.3).string(), ye = k(M.colorPrimary).desaturate(.45).string(), be = k(N.borderColor).whiten(.25).string(), xe = k(N.compBgc).mix(k("white"), .1).string(), P = k(N.hoverWhite).alpha(.15).string(), Se = `linear-gradient(90deg, ${k(M.colorPrimary).alpha(.92).string()} 0%, ${k(M.colorPrimary).darken(.3).string()} 100%)`, F = {
1752
1752
  token: {
1753
- colorPrimary: j.colorPrimary,
1754
- colorWarning: j.colorWarning,
1755
- colorError: j.colorError,
1753
+ colorPrimary: M.colorPrimary,
1754
+ colorWarning: M.colorWarning,
1755
+ colorError: M.colorError,
1756
1756
  borderRadiusLG: "4px",
1757
- colorText: j.colorText,
1758
- colorTextDescription: ve,
1759
- colorTextPlaceholder: ve,
1760
- colorBgContainer: M.compBgc,
1761
- colorBgElevated: M.compBgc,
1762
- colorIcon: M.iconColor,
1763
- colorBorder: M.borderColor,
1764
- controlItemBgActive: ye,
1765
- colorTextDisabled: M.disabledColor,
1766
- colorBgContainerDisabled: O(M.disabledColor).lighten(.8).alpha(.08).string(),
1757
+ colorText: M.colorText,
1758
+ colorTextDescription: _e,
1759
+ colorTextPlaceholder: _e,
1760
+ colorBgContainer: N.compBgc,
1761
+ colorBgElevated: N.compBgc,
1762
+ colorIcon: N.iconColor,
1763
+ colorBorder: N.borderColor,
1764
+ controlItemBgActive: ve,
1765
+ colorTextDisabled: N.disabledColor,
1766
+ colorBgContainerDisabled: k(N.disabledColor).lighten(.8).alpha(.08).string(),
1767
1767
  controlOutlineWidth: 0,
1768
- colorBorderDisabled: xe,
1769
- colorTextQuaternary: ve
1768
+ colorBorderDisabled: be,
1769
+ colorTextQuaternary: _e
1770
1770
  },
1771
1771
  components: {
1772
1772
  Layout: {
1773
- bodyBg: _e,
1774
- footerBg: M.compBgc,
1775
- headerBg: M.compBgc,
1776
- siderBg: M.compBgc,
1777
- colorText: j.colorText,
1778
- headerColor: j.colorText,
1779
- descHintHoverColor: be,
1773
+ bodyBg: ge,
1774
+ footerBg: N.compBgc,
1775
+ headerBg: N.compBgc,
1776
+ siderBg: N.compBgc,
1777
+ colorText: M.colorText,
1778
+ headerColor: M.colorText,
1779
+ descHintHoverColor: ye,
1780
1780
  footerPadding: "5px",
1781
1781
  layoutGap: "5px",
1782
- layoutContentBg: M.compBgc
1782
+ layoutContentBg: N.compBgc
1783
1783
  },
1784
- Badge: { colorBorderBg: j.colorError },
1784
+ Badge: { colorBorderBg: M.colorError },
1785
1785
  Tooltip: { colorBgSpotlight: "#424242" },
1786
- Switch: { colorTextTertiary: O(M.hoverWhite).alpha(.65).string() },
1786
+ Switch: { colorTextTertiary: k(N.hoverWhite).alpha(.65).string() },
1787
1787
  Button: {
1788
- borderColorDisabled: xe,
1788
+ borderColorDisabled: be,
1789
1789
  primaryShadow: "none",
1790
- colorBgSolid: ge,
1791
- solidTextColor: _e,
1792
- colorBgSolidHover: O(ge).darken(.25).string(),
1793
- colorBgSolidActive: O(ge).darken(.05).string()
1790
+ colorBgSolid: he,
1791
+ solidTextColor: ge,
1792
+ colorBgSolidHover: k(he).darken(.25).string(),
1793
+ colorBgSolidActive: k(he).darken(.05).string()
1794
1794
  },
1795
1795
  Select: {
1796
- controlItemBgActiveHover: be,
1797
- optionActiveBg: N
1796
+ controlItemBgActiveHover: ye,
1797
+ optionActiveBg: P
1798
1798
  },
1799
1799
  Modal: {
1800
1800
  padding: "10px",
1801
1801
  contentPadding: 0,
1802
- contentBg: M.compBgc,
1803
- titleColor: j.colorPrimary,
1804
- colorText: j.colorText,
1802
+ contentBg: N.compBgc,
1803
+ titleColor: M.colorPrimary,
1804
+ colorText: M.colorText,
1805
1805
  titleLineHeight: "44px",
1806
1806
  algorithm: !0,
1807
1807
  headerMarginBottom: 0,
1808
1808
  footerMarginTop: 0,
1809
- colorIcon: M.iconColor,
1810
- colorIconHover: M.iconColor,
1811
- colorBgTextHover: j.colorError
1809
+ colorIcon: N.iconColor,
1810
+ colorIconHover: N.iconColor,
1811
+ colorBgTextHover: M.colorError
1812
1812
  },
1813
1813
  Message: {
1814
1814
  colorTextHeading: "inherit",
1815
- contentBg: M.infoColor
1815
+ contentBg: N.infoColor
1816
1816
  },
1817
1817
  ColorPicker: {
1818
1818
  popoverInnerPadding: "8px",
1819
1819
  marginSm: "8px"
1820
1820
  },
1821
1821
  DatePicker: {
1822
- colorIcon: M.iconColor,
1823
- cellActiveWithRangeBg: ye,
1824
- cellHoverBg: N,
1825
- datePickerTimeBgActiveHover: be
1822
+ colorIcon: N.iconColor,
1823
+ cellActiveWithRangeBg: ve,
1824
+ cellHoverBg: P,
1825
+ datePickerTimeBgActiveHover: ye
1826
1826
  },
1827
1827
  Table: {
1828
- borderColor: M.borderColor,
1829
- footerBg: Se,
1830
- headerBg: Se,
1831
- rowHoverBg: N,
1832
- rowSelectedHoverBg: be,
1833
- stickyScrollBarBg: he,
1834
- colorSplit: he,
1828
+ borderColor: N.borderColor,
1829
+ footerBg: xe,
1830
+ headerBg: xe,
1831
+ rowHoverBg: P,
1832
+ rowSelectedHoverBg: ye,
1833
+ stickyScrollBarBg: me,
1834
+ colorSplit: me,
1835
1835
  tableCellPadding: "2px",
1836
1836
  tableCellHeight: "32px"
1837
1837
  },
@@ -1840,80 +1840,80 @@ var j = {
1840
1840
  controlPaddingHorizontal: "13px",
1841
1841
  marginSm: "0px",
1842
1842
  trackBg: "transparent",
1843
- itemColor: j.colorText,
1844
- itemActiveBg: ye,
1845
- itemSelectedBg: Ce,
1846
- itemHoverBg: N,
1843
+ itemColor: M.colorText,
1844
+ itemActiveBg: ve,
1845
+ itemSelectedBg: Se,
1846
+ itemHoverBg: P,
1847
1847
  fontSizeLg: "15px"
1848
1848
  },
1849
1849
  Tabs: {
1850
1850
  cardGutter: "6px",
1851
- tabsItemHoverBg: N
1851
+ tabsItemHoverBg: P
1852
1852
  },
1853
1853
  Descriptions: {
1854
- colorSplit: M.borderColor,
1855
- colorTextSecondary: j.colorText
1854
+ colorSplit: N.borderColor,
1855
+ colorTextSecondary: M.colorText
1856
1856
  }
1857
1857
  }
1858
- }, we = (e) => {
1859
- let t = e.split("."), n = P.components;
1858
+ }, Ce = (e) => {
1859
+ let t = e.split("."), n = F.components;
1860
1860
  for (let e of t) n = n[e];
1861
- return n === P.components ? null : n;
1862
- }, { getDesignToken: Te } = e, Ee = Te(P), De = {
1863
- ...P.token,
1864
- ...M
1865
- }, Oe = {
1866
- ...Ee,
1867
- ...M
1868
- }, F = (e) => typeof e == "string", I = () => {
1861
+ return n === F.components ? null : n;
1862
+ }, { getDesignToken: we } = e, Te = we(F), Ee = {
1863
+ ...F.token,
1864
+ ...N
1865
+ }, De = {
1866
+ ...Te,
1867
+ ...N
1868
+ }, I = (e) => typeof e == "string", L = () => {
1869
1869
  let e, t, n = new Promise((n, r) => {
1870
1870
  e = n, t = r;
1871
1871
  });
1872
1872
  return n.resolve = e, n.reject = t, n;
1873
- }, ke = (e) => e == null ? "" : String(e), Ae = (e, t, n) => {
1873
+ }, Oe = (e) => e == null ? "" : String(e), ke = (e, t, n) => {
1874
1874
  e.forEach((e) => {
1875
1875
  t[e] && (n[e] = t[e]);
1876
1876
  });
1877
- }, je = /###/g, Me = (e) => e && e.includes("###") ? e.replace(je, ".") : e, Ne = (e) => !e || F(e), L = (e, t, n) => {
1878
- let r = F(t) ? t.split(".") : t, i = 0;
1877
+ }, Ae = /###/g, je = (e) => e && e.includes("###") ? e.replace(Ae, ".") : e, Me = (e) => !e || I(e), R = (e, t, n) => {
1878
+ let r = I(t) ? t.split(".") : t, i = 0;
1879
1879
  for (; i < r.length - 1;) {
1880
- if (Ne(e)) return {};
1881
- let t = Me(r[i]);
1880
+ if (Me(e)) return {};
1881
+ let t = je(r[i]);
1882
1882
  !e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
1883
1883
  }
1884
- return Ne(e) ? {} : {
1884
+ return Me(e) ? {} : {
1885
1885
  obj: e,
1886
- k: Me(r[i])
1886
+ k: je(r[i])
1887
1887
  };
1888
- }, Pe = (e, t, n) => {
1889
- let { obj: r, k: i } = L(e, t, Object);
1888
+ }, Ne = (e, t, n) => {
1889
+ let { obj: r, k: i } = R(e, t, Object);
1890
1890
  if (r !== void 0 || t.length === 1) {
1891
1891
  r[i] = n;
1892
1892
  return;
1893
1893
  }
1894
- let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = L(e, o, Object);
1895
- for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = L(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
1894
+ let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = R(e, o, Object);
1895
+ for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = R(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
1896
1896
  s.obj[`${s.k}.${a}`] = n;
1897
- }, Fe = (e, t, n, r) => {
1898
- let { obj: i, k: a } = L(e, t, Object);
1897
+ }, Pe = (e, t, n, r) => {
1898
+ let { obj: i, k: a } = R(e, t, Object);
1899
1899
  i[a] = i[a] || [], i[a].push(n);
1900
- }, Ie = (e, t) => {
1901
- let { obj: n, k: r } = L(e, t);
1900
+ }, Fe = (e, t) => {
1901
+ let { obj: n, k: r } = R(e, t);
1902
1902
  if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
1903
+ }, Ie = (e, t, n) => {
1904
+ let r = Fe(e, n);
1905
+ return r === void 0 ? Fe(t, n) : r;
1903
1906
  }, Le = (e, t, n) => {
1904
- let r = Ie(e, n);
1905
- return r === void 0 ? Ie(t, n) : r;
1906
- }, Re = (e, t, n) => {
1907
- for (let r in t) r !== "__proto__" && r !== "constructor" && (Object.prototype.hasOwnProperty.call(e, r) ? F(e[r]) || e[r] instanceof String || F(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : Re(e[r], t[r], n) : e[r] = t[r]);
1907
+ for (let r in t) r !== "__proto__" && r !== "constructor" && (Object.prototype.hasOwnProperty.call(e, r) ? I(e[r]) || e[r] instanceof String || I(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : Le(e[r], t[r], n) : e[r] = t[r]);
1908
1908
  return e;
1909
- }, R = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), ze = {
1909
+ }, z = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Re = {
1910
1910
  "&": "&amp;",
1911
1911
  "<": "&lt;",
1912
1912
  ">": "&gt;",
1913
1913
  "\"": "&quot;",
1914
1914
  "'": "&#39;",
1915
1915
  "/": "&#x2F;"
1916
- }, Be = (e) => F(e) ? e.replace(/[&<>"'\/]/g, (e) => ze[e]) : e, Ve = class {
1916
+ }, ze = (e) => I(e) ? e.replace(/[&<>"'\/]/g, (e) => Re[e]) : e, Be = class {
1917
1917
  constructor(e) {
1918
1918
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
1919
1919
  }
@@ -1923,23 +1923,23 @@ var j = {
1923
1923
  let n = new RegExp(e);
1924
1924
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
1925
1925
  }
1926
- }, He = [
1926
+ }, Ve = [
1927
1927
  " ",
1928
1928
  ",",
1929
1929
  "?",
1930
1930
  "!",
1931
1931
  ";"
1932
- ], Ue = new Ve(20), We = (e, t, n) => {
1932
+ ], He = new Be(20), Ue = (e, t, n) => {
1933
1933
  t ||= "", n ||= "";
1934
- let r = He.filter((e) => !t.includes(e) && !n.includes(e));
1934
+ let r = Ve.filter((e) => !t.includes(e) && !n.includes(e));
1935
1935
  if (r.length === 0) return !0;
1936
- let i = Ue.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
1936
+ let i = He.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
1937
1937
  if (!a) {
1938
1938
  let t = e.indexOf(n);
1939
1939
  t > 0 && !i.test(e.substring(0, t)) && (a = !0);
1940
1940
  }
1941
1941
  return a;
1942
- }, Ge = (e, t, n = ".") => {
1942
+ }, We = (e, t, n = ".") => {
1943
1943
  if (!e) return;
1944
1944
  if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
1945
1945
  let r = t.split(n), i = e;
@@ -1958,7 +1958,7 @@ var j = {
1958
1958
  i = t;
1959
1959
  }
1960
1960
  return i;
1961
- }, z = (e) => e?.replace(/_/g, "-"), Ke = {
1961
+ }, B = (e) => e?.replace(/_/g, "-"), Ge = {
1962
1962
  type: "logger",
1963
1963
  log(e) {
1964
1964
  this.output("log", e);
@@ -1972,12 +1972,12 @@ var j = {
1972
1972
  output(e, t) {
1973
1973
  console?.[e]?.apply?.(console, t);
1974
1974
  }
1975
- }, B = new class e {
1975
+ }, V = new class e {
1976
1976
  constructor(e, t = {}) {
1977
1977
  this.init(e, t);
1978
1978
  }
1979
1979
  init(e, t = {}) {
1980
- this.prefix = t.prefix || "i18next:", this.logger = e || Ke, this.options = t, this.debug = t.debug;
1980
+ this.prefix = t.prefix || "i18next:", this.logger = e || Ge, this.options = t, this.debug = t.debug;
1981
1981
  }
1982
1982
  log(...e) {
1983
1983
  return this.forward(e, "log", "", !0);
@@ -1992,7 +1992,7 @@ var j = {
1992
1992
  return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
1993
1993
  }
1994
1994
  forward(e, t, n, r) {
1995
- return r && !this.debug ? null : (e = e.map((e) => F(e) ? e.replace(/[\r\n\x00-\x1F\x7F]/g, " ") : e), F(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
1995
+ return r && !this.debug ? null : (e = e.map((e) => I(e) ? e.replace(/[\r\n\x00-\x1F\x7F]/g, " ") : e), I(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
1996
1996
  }
1997
1997
  create(t) {
1998
1998
  return new e(this.logger, {
@@ -2003,7 +2003,7 @@ var j = {
2003
2003
  clone(t) {
2004
2004
  return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
2005
2005
  }
2006
- }(), V = class {
2006
+ }(), H = class {
2007
2007
  constructor() {
2008
2008
  this.observers = {};
2009
2009
  }
@@ -2036,7 +2036,7 @@ var j = {
2036
2036
  for (let i = 0; i < r; i++) n(e, ...t);
2037
2037
  });
2038
2038
  }
2039
- }, qe = class extends V {
2039
+ }, Ke = class extends H {
2040
2040
  constructor(e, t = {
2041
2041
  ns: ["translation"],
2042
2042
  defaultNS: "translation"
@@ -2052,16 +2052,16 @@ var j = {
2052
2052
  }
2053
2053
  getResource(e, t, n, r = {}) {
2054
2054
  let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
2055
- e.includes(".") ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : F(n) && i ? o.push(...n.split(i)) : o.push(n)));
2056
- let s = Ie(this.data, o);
2057
- return !s && !t && !n && e.includes(".") && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !F(n) ? s : Ge(this.data?.[e]?.[t], n, i);
2055
+ e.includes(".") ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : I(n) && i ? o.push(...n.split(i)) : o.push(n)));
2056
+ let s = Fe(this.data, o);
2057
+ return !s && !t && !n && e.includes(".") && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !I(n) ? s : We(this.data?.[e]?.[t], n, i);
2058
2058
  }
2059
2059
  addResource(e, t, n, r, i = { silent: !1 }) {
2060
2060
  let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
2061
- n && (o = o.concat(a ? n.split(a) : n)), e.includes(".") && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), Pe(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
2061
+ n && (o = o.concat(a ? n.split(a) : n)), e.includes(".") && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), Ne(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
2062
2062
  }
2063
2063
  addResources(e, t, n, r = { silent: !1 }) {
2064
- for (let r in n) (F(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
2064
+ for (let r in n) (I(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
2065
2065
  r.silent || this.emit("added", e, t, n);
2066
2066
  }
2067
2067
  addResourceBundle(e, t, n, r, i, a = {
@@ -2070,11 +2070,11 @@ var j = {
2070
2070
  }) {
2071
2071
  let o = [e, t];
2072
2072
  e.includes(".") && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
2073
- let s = Ie(this.data, o) || {};
2074
- a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? Re(s, n, i) : s = {
2073
+ let s = Fe(this.data, o) || {};
2074
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? Le(s, n, i) : s = {
2075
2075
  ...s,
2076
2076
  ...n
2077
- }, Pe(this.data, o, s), a.silent || this.emit("added", e, t, n);
2077
+ }, Ne(this.data, o, s), a.silent || this.emit("added", e, t, n);
2078
2078
  }
2079
2079
  removeResourceBundle(e, t) {
2080
2080
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2095,7 +2095,7 @@ var j = {
2095
2095
  toJSON() {
2096
2096
  return this.data;
2097
2097
  }
2098
- }, Je = {
2098
+ }, qe = {
2099
2099
  processors: {},
2100
2100
  addPostProcessor(e) {
2101
2101
  this.processors[e.name] = e;
@@ -2105,22 +2105,22 @@ var j = {
2105
2105
  t = this.processors[e]?.process(t, n, r, i) ?? t;
2106
2106
  }), t;
2107
2107
  }
2108
- }, Ye = Symbol("i18next/PATH_KEY");
2109
- function Xe() {
2108
+ }, Je = Symbol("i18next/PATH_KEY");
2109
+ function Ye() {
2110
2110
  let e = [], t = Object.create(null), n;
2111
- return t.get = (r, i) => (n?.revoke?.(), i === Ye ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2111
+ return t.get = (r, i) => (n?.revoke?.(), i === Je ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2112
2112
  }
2113
- function H(e, t) {
2114
- let { [Ye]: n } = e(Xe()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":", a = t?.enableSelector === "strict";
2113
+ function U(e, t) {
2114
+ let { [Je]: n } = e(Ye()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":", a = t?.enableSelector === "strict";
2115
2115
  if (n.length > 1 && i) {
2116
2116
  let e = t?.ns, o = a ? Array.isArray(e) ? e : e ? [e] : null : Array.isArray(e) ? e : null;
2117
2117
  if (o && (a ? o : o.length > 1 ? o.slice(1) : []).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
2118
2118
  }
2119
2119
  return n.join(r);
2120
2120
  }
2121
- var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = class e extends V {
2121
+ var Xe = (e) => !I(e) && typeof e != "boolean" && typeof e != "number", Ze = class e extends H {
2122
2122
  constructor(e, t = {}) {
2123
- super(), Ae([
2123
+ super(), ke([
2124
2124
  "resourceStore",
2125
2125
  "languageUtils",
2126
2126
  "pluralResolver",
@@ -2128,7 +2128,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2128
2128
  "backendConnector",
2129
2129
  "i18nFormat",
2130
2130
  "utils"
2131
- ], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = B.create("translator"), this.checkedLoadedFor = {};
2131
+ ], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = V.create("translator"), this.checkedLoadedFor = {};
2132
2132
  }
2133
2133
  changeLanguage(e) {
2134
2134
  e && (this.language = e);
@@ -2138,34 +2138,34 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2138
2138
  if (e == null) return !1;
2139
2139
  let r = this.resolve(e, n);
2140
2140
  if (r?.res === void 0) return !1;
2141
- let i = Ze(r.res);
2141
+ let i = Xe(r.res);
2142
2142
  return !(n.returnObjects === !1 && i);
2143
2143
  }
2144
2144
  extractFromKey(e, t) {
2145
2145
  let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
2146
2146
  n === void 0 && (n = ":");
2147
- let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.includes(n), o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !We(e, n, r);
2147
+ let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.includes(n), o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Ue(e, n, r);
2148
2148
  if (a && !o) {
2149
2149
  let t = e.match(this.interpolator.nestingRegexp);
2150
2150
  if (t && t.length > 0) return {
2151
2151
  key: e,
2152
- namespaces: F(i) ? [i] : i
2152
+ namespaces: I(i) ? [i] : i
2153
2153
  };
2154
2154
  let a = e.split(n);
2155
2155
  (n !== r || n === r && this.options.ns.includes(a[0])) && (i = a.shift()), e = a.join(r);
2156
2156
  }
2157
2157
  return {
2158
2158
  key: e,
2159
- namespaces: F(i) ? [i] : i
2159
+ namespaces: I(i) ? [i] : i
2160
2160
  };
2161
2161
  }
2162
2162
  translate(t, n, r) {
2163
2163
  let i = typeof n == "object" ? { ...n } : n;
2164
2164
  if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
2165
- typeof t == "function" && (t = H(t, {
2165
+ typeof t == "function" && (t = U(t, {
2166
2166
  ...this.options,
2167
2167
  ...i
2168
- })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? H(e, {
2168
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? U(e, {
2169
2169
  ...this.options,
2170
2170
  ...i
2171
2171
  }) : String(e));
@@ -2191,10 +2191,10 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2191
2191
  "[object Number]",
2192
2192
  "[object Function]",
2193
2193
  "[object RegExp]"
2194
- ], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !F(i.count), x = e.hasDefaultValue(i), S = b ? this.pluralResolver.getSuffix(d, i.count, i) : "", C = i.ordinal && b ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", w = b && !i.ordinal && i.count === 0, T = w && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${S}`] || i[`defaultValue${C}`] || i.defaultValue, E = m;
2194
+ ], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !I(i.count), x = e.hasDefaultValue(i), S = b ? this.pluralResolver.getSuffix(d, i.count, i) : "", C = i.ordinal && b ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", w = b && !i.ordinal && i.count === 0, T = w && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${S}`] || i[`defaultValue${C}`] || i.defaultValue, E = m;
2195
2195
  y && !m && x && (E = T);
2196
- let ee = Ze(E), te = Object.prototype.toString.apply(E);
2197
- if (y && E && ee && !_.includes(te) && !(F(v) && Array.isArray(E))) {
2196
+ let D = Xe(E), ee = Object.prototype.toString.apply(E);
2197
+ if (y && E && D && !_.includes(ee) && !(I(v) && Array.isArray(E))) {
2198
2198
  if (!i.returnObjects && !this.options.returnObjects) {
2199
2199
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2200
2200
  let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, E, {
@@ -2209,7 +2209,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2209
2209
  let r = `${n}${o}${e}`;
2210
2210
  t[e] = x && !m ? this.translate(r, {
2211
2211
  ...i,
2212
- defaultValue: Ze(T) ? T[e] : void 0,
2212
+ defaultValue: Xe(T) ? T[e] : void 0,
2213
2213
  joinArrays: !1,
2214
2214
  ns: c
2215
2215
  }) : this.translate(r, {
@@ -2220,7 +2220,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2220
2220
  }
2221
2221
  m = t;
2222
2222
  }
2223
- } else if (y && F(v) && Array.isArray(m)) m = m.join(v), m &&= this.extendTranslation(m, t, i, r);
2223
+ } else if (y && I(v) && Array.isArray(m)) m = m.join(v), m &&= this.extendTranslation(m, t, i, r);
2224
2224
  else {
2225
2225
  let e = !1, n = !1;
2226
2226
  !this.isValidLookup(m) && x && (e = !0, m = T), this.isValidLookup(m) || (n = !0, m = s);
@@ -2264,12 +2264,12 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2264
2264
  ...n.interpolation
2265
2265
  }
2266
2266
  });
2267
- let a = F(e) && (n?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n.interpolation.skipOnVariables), o;
2267
+ let a = I(e) && (n?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n.interpolation.skipOnVariables), o;
2268
2268
  if (a) {
2269
2269
  let t = e.match(this.interpolator.nestingRegexp);
2270
2270
  o = t && t.length;
2271
2271
  }
2272
- let s = n.replace && !F(n.replace) ? n.replace : n;
2272
+ let s = n.replace && !I(n.replace) ? n.replace : n;
2273
2273
  if (this.options.interpolation.defaultVariables && (s = {
2274
2274
  ...this.options.interpolation.defaultVariables,
2275
2275
  ...s
@@ -2279,8 +2279,8 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2279
2279
  }
2280
2280
  !n.lng && r && r.res && (n.lng = this.language || r.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...e) => i?.[0] === e[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : this.translate(...e, t), n)), n.interpolation && this.interpolator.reset();
2281
2281
  }
2282
- let a = n.postProcess || this.options.postProcess, o = F(a) ? [a] : a;
2283
- return e != null && o?.length && n.applyPostProcessor !== !1 && (e = Je.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
2282
+ let a = n.postProcess || this.options.postProcess, o = I(a) ? [a] : a;
2283
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = qe.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
2284
2284
  i18nResolved: {
2285
2285
  ...r,
2286
2286
  usedParams: this.getUsedParamsDetails(n)
@@ -2290,7 +2290,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2290
2290
  }
2291
2291
  resolve(e, t = {}) {
2292
2292
  let n, r, i, a, o;
2293
- return F(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? H(e, {
2293
+ return I(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? U(e, {
2294
2294
  ...this.options,
2295
2295
  ...t
2296
2296
  }) : e)), e.forEach((e) => {
@@ -2299,7 +2299,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2299
2299
  r = c;
2300
2300
  let l = s.namespaces;
2301
2301
  this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
2302
- let u = t.count !== void 0 && !F(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (F(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2302
+ let u = t.count !== void 0 && !I(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (I(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2303
2303
  l.forEach((e) => {
2304
2304
  this.isValidLookup(n) || (o = e, !this.checkedLoadedFor[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (this.checkedLoadedFor[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
2305
2305
  if (this.isValidLookup(n)) return;
@@ -2350,7 +2350,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2350
2350
  "joinArrays",
2351
2351
  "postProcess",
2352
2352
  "interpolation"
2353
- ], n = e.replace && !F(e.replace), r = n ? e.replace : e;
2353
+ ], n = e.replace && !I(e.replace), r = n ? e.replace : e;
2354
2354
  if (n && e.count !== void 0 && (r = {
2355
2355
  ...r,
2356
2356
  count: e.count
@@ -2367,25 +2367,25 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2367
2367
  for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.startsWith("defaultValue") && e[t] !== void 0) return !0;
2368
2368
  return !1;
2369
2369
  }
2370
- }, $e = class {
2370
+ }, Qe = class {
2371
2371
  constructor(e) {
2372
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = B.create("languageUtils"), this.resolveHierarchyCache = {};
2372
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = V.create("languageUtils"), this.resolveHierarchyCache = {};
2373
2373
  }
2374
2374
  clearCache() {
2375
2375
  this.resolveHierarchyCache = {};
2376
2376
  }
2377
2377
  getScriptPartFromCode(e) {
2378
- if (e = z(e), !e || !e.includes("-")) return null;
2378
+ if (e = B(e), !e || !e.includes("-")) return null;
2379
2379
  let t = e.split("-");
2380
2380
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
2381
2381
  }
2382
2382
  getLanguagePartFromCode(e) {
2383
- if (e = z(e), !e || !e.includes("-")) return e;
2383
+ if (e = B(e), !e || !e.includes("-")) return e;
2384
2384
  let t = e.split("-");
2385
2385
  return this.formatLanguageCode(t[0]);
2386
2386
  }
2387
2387
  formatLanguageCode(e) {
2388
- if (F(e) && e.includes("-")) {
2388
+ if (I(e) && e.includes("-")) {
2389
2389
  let t;
2390
2390
  try {
2391
2391
  t = Intl.getCanonicalLocales(e)[0];
@@ -2415,7 +2415,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2415
2415
  }
2416
2416
  getFallbackCodes(e, t) {
2417
2417
  if (!e) return [];
2418
- if (typeof e == "function" && (e = e(t)), F(e) && (e = [e]), Array.isArray(e)) return e;
2418
+ if (typeof e == "function" && (e = e(t)), I(e) && (e = [e]), Array.isArray(e)) return e;
2419
2419
  if (!t) return e.default || [];
2420
2420
  let n = e[t];
2421
2421
  return n ||= e[this.getScriptPartFromCode(t)], n ||= e[this.formatLanguageCode(t)], n ||= e[this.getLanguagePartFromCode(t)], n ||= e.default, n || [];
@@ -2423,7 +2423,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2423
2423
  toResolveHierarchy(e, t) {
2424
2424
  let n = this.options.fallbackLng, r = Array.isArray(n) ? n.join("|") : n;
2425
2425
  r !== this._cachedFallbackLng && (this.resolveHierarchyCache = {}, this._cachedFallbackLng = r);
2426
- let i = t === void 0 || t === !1 || F(t), a = t === void 0 && typeof this.options.fallbackLng == "function", o = F(e) && i && !a, s = null;
2426
+ let i = t === void 0 || t === !1 || I(t), a = t === void 0 && typeof this.options.fallbackLng == "function", o = I(e) && i && !a, s = null;
2427
2427
  if (o) {
2428
2428
  let n;
2429
2429
  n = t === void 0 ? "undefined" : t === !1 ? "boolean:false" : `string:${t}`, s = `${e.length}:${e}|${n}`;
@@ -2435,29 +2435,29 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2435
2435
  let c = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), l = [], u = (e) => {
2436
2436
  e && (this.isSupportedCode(e) ? l.push(e) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`));
2437
2437
  };
2438
- return F(e) && (e.includes("-") || e.includes("_")) ? (this.options.load !== "languageOnly" && u(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && u(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && u(this.getLanguagePartFromCode(e))) : F(e) && u(this.formatLanguageCode(e)), c.forEach((e) => {
2438
+ return I(e) && (e.includes("-") || e.includes("_")) ? (this.options.load !== "languageOnly" && u(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && u(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && u(this.getLanguagePartFromCode(e))) : I(e) && u(this.formatLanguageCode(e)), c.forEach((e) => {
2439
2439
  l.includes(e) || u(this.formatLanguageCode(e));
2440
2440
  }), s === null ? l : (this.resolveHierarchyCache[s] = l, l.slice());
2441
2441
  }
2442
- }, et = {
2442
+ }, $e = {
2443
2443
  zero: 0,
2444
2444
  one: 1,
2445
2445
  two: 2,
2446
2446
  few: 3,
2447
2447
  many: 4,
2448
2448
  other: 5
2449
- }, tt = {
2449
+ }, et = {
2450
2450
  select: (e) => e === 1 ? "one" : "other",
2451
2451
  resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
2452
- }, nt = class {
2452
+ }, tt = class {
2453
2453
  constructor(e, t = {}) {
2454
- this.languageUtils = e, this.options = t, this.logger = B.create("pluralResolver"), this.pluralRulesCache = {};
2454
+ this.languageUtils = e, this.options = t, this.logger = V.create("pluralResolver"), this.pluralRulesCache = {};
2455
2455
  }
2456
2456
  clearCache() {
2457
2457
  this.pluralRulesCache = {};
2458
2458
  }
2459
2459
  getRule(e, t = {}) {
2460
- let n = z(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
2460
+ let n = B(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
2461
2461
  cleanedCode: n,
2462
2462
  type: r
2463
2463
  });
@@ -2466,8 +2466,8 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2466
2466
  try {
2467
2467
  a = new Intl.PluralRules(n, { type: r });
2468
2468
  } catch {
2469
- if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), tt;
2470
- if (!e.match(/-|_/)) return tt;
2469
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), et;
2470
+ if (!e.match(/-|_/)) return et;
2471
2471
  let n = this.languageUtils.getLanguagePartFromCode(e);
2472
2472
  a = this.getRule(n, t);
2473
2473
  }
@@ -2482,23 +2482,23 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2482
2482
  }
2483
2483
  getSuffixes(e, t = {}) {
2484
2484
  let n = this.getRule(e, t);
2485
- return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => et[e] - et[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
2485
+ return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => $e[e] - $e[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
2486
2486
  }
2487
2487
  getSuffix(e, t, n = {}) {
2488
2488
  let r = this.getRule(e, n);
2489
2489
  return r ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${r.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
2490
2490
  }
2491
- }, rt = (e, t, n, r = ".", i = !0) => {
2492
- let a = Le(e, t, n);
2493
- return !a && i && F(n) && (a = Ge(e, n, r), a === void 0 && (a = Ge(t, n, r))), a;
2494
- }, it = (e) => e.replace(/\$/g, "$$$$"), at = class {
2491
+ }, nt = (e, t, n, r = ".", i = !0) => {
2492
+ let a = Ie(e, t, n);
2493
+ return !a && i && I(n) && (a = We(e, n, r), a === void 0 && (a = We(t, n, r))), a;
2494
+ }, rt = (e) => e.replace(/\$/g, "$$$$"), it = class {
2495
2495
  constructor(e = {}) {
2496
- this.logger = B.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
2496
+ this.logger = V.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
2497
2497
  }
2498
2498
  init(e = {}) {
2499
2499
  e.interpolation ||= { escapeValue: !0 };
2500
2500
  let { escape: t, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: o, suffixEscaped: s, formatSeparator: c, unescapeSuffix: l, unescapePrefix: u, nestingPrefix: d, nestingPrefixEscaped: f, nestingSuffix: p, nestingSuffixEscaped: m, nestingOptionsSeparator: h, maxReplaces: g, alwaysFormat: _ } = e.interpolation;
2501
- this.escape = t === void 0 ? Be : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? R(i) : a || "{{", this.suffix = o ? R(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u ? R(u) : "-", this.unescapeSuffix = this.unescapePrefix ? "" : l ? R(l) : "", this.nestingPrefix = d ? R(d) : f || R("$t("), this.nestingSuffix = p ? R(p) : m || R(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ !== void 0 && _, this.resetRegExp();
2501
+ this.escape = t === void 0 ? ze : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? z(i) : a || "{{", this.suffix = o ? z(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u ? z(u) : "-", this.unescapeSuffix = this.unescapePrefix ? "" : l ? z(l) : "", this.nestingPrefix = d ? z(d) : f || z("$t("), this.nestingSuffix = p ? z(p) : m || z(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ !== void 0 && _, this.resetRegExp();
2502
2502
  }
2503
2503
  reset() {
2504
2504
  this.options && this.init(this.options);
@@ -2510,7 +2510,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2510
2510
  interpolate(e, t, n, r) {
2511
2511
  let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
2512
2512
  if (!e.includes(this.formatSeparator)) {
2513
- let i = rt(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
2513
+ let i = nt(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
2514
2514
  return this.alwaysFormat ? this.format(i, void 0, n, {
2515
2515
  ...r,
2516
2516
  ...t,
@@ -2518,7 +2518,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2518
2518
  }) : i;
2519
2519
  }
2520
2520
  let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
2521
- return this.format(rt(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
2521
+ return this.format(nt(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
2522
2522
  ...r,
2523
2523
  ...t,
2524
2524
  interpolationkey: a
@@ -2538,15 +2538,15 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2538
2538
  if (a = c(n), a === void 0) {
2539
2539
  if (typeof l == "function") {
2540
2540
  let t = l(e, i, r);
2541
- a = F(t) ? t : "";
2541
+ a = I(t) ? t : "";
2542
2542
  } else if (r && Object.prototype.hasOwnProperty.call(r, n)) a = "";
2543
2543
  else if (u) {
2544
2544
  a = i[0];
2545
2545
  continue;
2546
2546
  } else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
2547
- } else !F(a) && !this.useRawValueToEscape && (a = ke(a));
2547
+ } else !I(a) && !this.useRawValueToEscape && (a = Oe(a));
2548
2548
  let s = t.safeValue(a);
2549
- if (e = e.replace(i[0], it(s)), u ? (t.regex.lastIndex += s.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
2549
+ if (e = e.replace(i[0], rt(s)), u ? (t.regex.lastIndex += s.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
2550
2550
  }
2551
2551
  }), e;
2552
2552
  }
@@ -2554,7 +2554,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2554
2554
  let r, i, a, o = (e, t) => {
2555
2555
  let n = this.nestingOptionsSeparator;
2556
2556
  if (!e.includes(n)) return e;
2557
- let r = e.split(RegExp(`${R(n)}[ ]*{`)), i = `{${r[1]}`;
2557
+ let r = e.split(RegExp(`${z(n)}[ ]*{`)), i = `{${r[1]}`;
2558
2558
  e = r[0], i = this.interpolate(i, a);
2559
2559
  let o = i.match(/'/g), s = i.match(/"/g);
2560
2560
  ((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
@@ -2570,17 +2570,17 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2570
2570
  };
2571
2571
  for (; r = this.nestingRegexp.exec(e);) {
2572
2572
  let s = [];
2573
- a = { ...n }, a = a.replace && !F(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
2573
+ a = { ...n }, a = a.replace && !I(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
2574
2574
  let c = /{.*}/s.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
2575
- if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !F(i)) return i;
2576
- F(i) || (i = ke(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
2575
+ if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !I(i)) return i;
2576
+ I(i) || (i = Oe(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
2577
2577
  ...n,
2578
2578
  interpolationkey: r[1].trim()
2579
- }), i.trim())), e = e.replace(r[0], it(ke(i))), this.regexp.lastIndex = 0;
2579
+ }), i.trim())), e = e.replace(r[0], rt(Oe(i))), this.regexp.lastIndex = 0;
2580
2580
  }
2581
2581
  return e;
2582
2582
  }
2583
- }, ot = (e) => {
2583
+ }, at = (e) => {
2584
2584
  let t = e.toLowerCase().trim(), n = {};
2585
2585
  if (e.includes("(")) {
2586
2586
  let r = e.split("(");
@@ -2597,7 +2597,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2597
2597
  formatName: t,
2598
2598
  formatOptions: n
2599
2599
  };
2600
- }, st = (e) => {
2600
+ }, ot = (e) => {
2601
2601
  let t = {};
2602
2602
  return (n, r, i) => {
2603
2603
  let a = i;
@@ -2606,15 +2606,15 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2606
2606
  [i.interpolationkey]: void 0
2607
2607
  });
2608
2608
  let o = r + JSON.stringify(a), s = t[o];
2609
- return s || (s = e(z(r), i), t[o] = s), s(n);
2609
+ return s || (s = e(B(r), i), t[o] = s), s(n);
2610
2610
  };
2611
- }, ct = (e) => (t, n, r) => e(z(n), r)(t), lt = class {
2611
+ }, st = (e) => (t, n, r) => e(B(n), r)(t), ct = class {
2612
2612
  constructor(e = {}) {
2613
- this.logger = B.create("formatter"), this.options = e, this.init(e);
2613
+ this.logger = V.create("formatter"), this.options = e, this.init(e);
2614
2614
  }
2615
2615
  init(e, t = { interpolation: {} }) {
2616
2616
  this.formatSeparator = t.interpolation.formatSeparator || ",";
2617
- let n = t.cacheInBuiltFormats ? st : ct;
2617
+ let n = t.cacheInBuiltFormats ? ot : st;
2618
2618
  this.formats = {
2619
2619
  number: n((e, t) => {
2620
2620
  let n = new Intl.NumberFormat(e, { ...t });
@@ -2645,7 +2645,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2645
2645
  this.formats[e.toLowerCase().trim()] = t;
2646
2646
  }
2647
2647
  addCached(e, t) {
2648
- this.formats[e.toLowerCase().trim()] = st(t);
2648
+ this.formats[e.toLowerCase().trim()] = ot(t);
2649
2649
  }
2650
2650
  format(e, t, n, r = {}) {
2651
2651
  if (!t || e == null) return e;
@@ -2656,7 +2656,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2656
2656
  a.push(t);
2657
2657
  }
2658
2658
  return a.reduce((e, t) => {
2659
- let { formatName: i, formatOptions: a } = ot(t);
2659
+ let { formatName: i, formatOptions: a } = at(t);
2660
2660
  if (this.formats[i]) {
2661
2661
  let t = e;
2662
2662
  try {
@@ -2674,11 +2674,11 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2674
2674
  return this.logger.warn(`there was no format function for ${i}`), e;
2675
2675
  }, e);
2676
2676
  }
2677
- }, ut = (e, t) => {
2677
+ }, lt = (e, t) => {
2678
2678
  e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
2679
- }, dt = class extends V {
2679
+ }, ut = class extends H {
2680
2680
  constructor(e, t, n, r = {}) {
2681
- super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = B.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
2681
+ super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = V.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
2682
2682
  }
2683
2683
  queueLoad(e, t, n, r) {
2684
2684
  let i = {}, a = {}, o = {}, s = {};
@@ -2706,7 +2706,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2706
2706
  t && this.emit("failedLoading", i, a, t), !t && n && this.store.addResourceBundle(i, a, n, void 0, void 0, { skipCopy: !0 }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
2707
2707
  let o = {};
2708
2708
  this.queue.forEach((n) => {
2709
- Fe(n.loaded, [i], a), ut(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
2709
+ Pe(n.loaded, [i], a), lt(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
2710
2710
  o[e] || (o[e] = {});
2711
2711
  let t = n.loaded[e];
2712
2712
  t.length && t.forEach((t) => {
@@ -2755,7 +2755,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2755
2755
  }
2756
2756
  prepareLoading(e, t, n = {}, r) {
2757
2757
  if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), r && r();
2758
- F(e) && (e = this.languageUtils.toResolveHierarchy(e)), F(t) && (t = [t]);
2758
+ I(e) && (e = this.languageUtils.toResolveHierarchy(e)), I(t) && (t = [t]);
2759
2759
  let i = this.queueLoad(e, t, n, r);
2760
2760
  if (!i.toLoad.length) return i.pending.length || r(), null;
2761
2761
  i.toLoad.forEach((e) => {
@@ -2796,7 +2796,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2796
2796
  e && e[0] && this.store.addResource(e[0], t, n, r);
2797
2797
  }
2798
2798
  }
2799
- }, ft = () => ({
2799
+ }, dt = () => ({
2800
2800
  debug: !1,
2801
2801
  initAsync: !0,
2802
2802
  ns: ["translation"],
@@ -2831,7 +2831,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2831
2831
  appendNamespaceToCIMode: !1,
2832
2832
  overloadTranslationOptionHandler: (e) => {
2833
2833
  let t = {};
2834
- if (typeof e[1] == "object" && (t = e[1]), F(e[1]) && (t.defaultValue = e[1]), F(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
2834
+ if (typeof e[1] == "object" && (t = e[1]), I(e[1]) && (t.defaultValue = e[1]), I(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
2835
2835
  let n = e[3] || e[2];
2836
2836
  Object.keys(n).forEach((e) => {
2837
2837
  t[e] = n[e];
@@ -2852,13 +2852,13 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2852
2852
  skipOnVariables: !0
2853
2853
  },
2854
2854
  cacheInBuiltFormats: !0
2855
- }), pt = (e) => (F(e.ns) && (e.ns = [e.ns]), F(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), F(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && !e.supportedLngs.includes("cimode") && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e), mt = () => {}, ht = (e) => {
2855
+ }), ft = (e) => (I(e.ns) && (e.ns = [e.ns]), I(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), I(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && !e.supportedLngs.includes("cimode") && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e), pt = () => {}, mt = (e) => {
2856
2856
  Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
2857
2857
  typeof e[t] == "function" && (e[t] = e[t].bind(e));
2858
2858
  });
2859
- }, U = class e extends V {
2859
+ }, W = class e extends H {
2860
2860
  constructor(e = {}, t) {
2861
- if (super(), this.options = pt(e), this.services = {}, this.logger = B, this.modules = { external: [] }, ht(this), t && !this.isInitialized && !e.isClone) {
2861
+ if (super(), this.options = ft(e), this.services = {}, this.logger = V, this.modules = { external: [] }, mt(this), t && !this.isInitialized && !e.isClone) {
2862
2862
  if (!this.options.initAsync) return this.init(e, t), this;
2863
2863
  setTimeout(() => {
2864
2864
  this.init(e, t);
@@ -2866,33 +2866,33 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2866
2866
  }
2867
2867
  }
2868
2868
  init(e = {}, t) {
2869
- this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (F(e.ns) ? e.defaultNS = e.ns : e.ns.includes("translation") || (e.defaultNS = e.ns[0]));
2870
- let n = ft();
2869
+ this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (I(e.ns) ? e.defaultNS = e.ns : e.ns.includes("translation") || (e.defaultNS = e.ns[0]));
2870
+ let n = dt();
2871
2871
  this.options = {
2872
2872
  ...n,
2873
2873
  ...this.options,
2874
- ...pt(e)
2874
+ ...ft(e)
2875
2875
  }, this.options.interpolation = {
2876
2876
  ...n.interpolation,
2877
2877
  ...this.options.interpolation
2878
2878
  }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler);
2879
2879
  let r = (e) => e ? typeof e == "function" ? new e() : e : null;
2880
2880
  if (!this.options.isClone) {
2881
- this.modules.logger ? B.init(r(this.modules.logger), this.options) : B.init(null, this.options);
2881
+ this.modules.logger ? V.init(r(this.modules.logger), this.options) : V.init(null, this.options);
2882
2882
  let e;
2883
- e = this.modules.formatter ? this.modules.formatter : lt;
2884
- let t = new $e(this.options);
2885
- this.store = new qe(this.options.resources, this.options);
2883
+ e = this.modules.formatter ? this.modules.formatter : ct;
2884
+ let t = new Qe(this.options);
2885
+ this.store = new Ke(this.options.resources, this.options);
2886
2886
  let n = this.services;
2887
- n.logger = B, n.resourceStore = this.store, n.languageUtils = t, n.pluralResolver = new nt(t, { prepend: this.options.pluralSeparator }), e && (n.formatter = r(e), n.formatter.init && n.formatter.init(n, this.options), this.options.interpolation.format = n.formatter.format.bind(n.formatter)), n.interpolator = new at(this.options), n.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n.backendConnector = new dt(r(this.modules.backend), n.resourceStore, n, this.options), n.backendConnector.on("*", (e, ...t) => {
2887
+ n.logger = V, n.resourceStore = this.store, n.languageUtils = t, n.pluralResolver = new tt(t, { prepend: this.options.pluralSeparator }), e && (n.formatter = r(e), n.formatter.init && n.formatter.init(n, this.options), this.options.interpolation.format = n.formatter.format.bind(n.formatter)), n.interpolator = new it(this.options), n.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n.backendConnector = new ut(r(this.modules.backend), n.resourceStore, n, this.options), n.backendConnector.on("*", (e, ...t) => {
2888
2888
  this.emit(e, ...t);
2889
- }), this.modules.languageDetector && (n.languageDetector = r(this.modules.languageDetector), n.languageDetector.init && n.languageDetector.init(n, this.options.detection, this.options)), this.modules.i18nFormat && (n.i18nFormat = r(this.modules.i18nFormat), n.i18nFormat.init && n.i18nFormat.init(this)), this.translator = new Qe(this.services, this.options), this.translator.on("*", (e, ...t) => {
2889
+ }), this.modules.languageDetector && (n.languageDetector = r(this.modules.languageDetector), n.languageDetector.init && n.languageDetector.init(n, this.options.detection, this.options)), this.modules.i18nFormat && (n.i18nFormat = r(this.modules.i18nFormat), n.i18nFormat.init && n.i18nFormat.init(this)), this.translator = new Ze(this.services, this.options), this.translator.on("*", (e, ...t) => {
2890
2890
  this.emit(e, ...t);
2891
2891
  }), this.modules.external.forEach((e) => {
2892
2892
  e.init && e.init(this);
2893
2893
  });
2894
2894
  }
2895
- if (this.format = this.options.interpolation.format, t ||= mt, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2895
+ if (this.format = this.options.interpolation.format, t ||= pt, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2896
2896
  let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
2897
2897
  e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
2898
2898
  }
@@ -2911,7 +2911,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2911
2911
  ].forEach((e) => {
2912
2912
  this[e] = (...t) => (this.store[e](...t), this);
2913
2913
  });
2914
- let i = I(), a = () => {
2914
+ let i = L(), a = () => {
2915
2915
  let e = (e, n) => {
2916
2916
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(n), t(e, n);
2917
2917
  };
@@ -2920,8 +2920,8 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2920
2920
  };
2921
2921
  return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
2922
2922
  }
2923
- loadResources(e, t = mt) {
2924
- let n = t, r = F(e) ? e : this.language;
2923
+ loadResources(e, t = pt) {
2924
+ let n = t, r = I(e) ? e : this.language;
2925
2925
  if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
2926
2926
  if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
2927
2927
  let e = [], t = (t) => {
@@ -2935,15 +2935,15 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2935
2935
  } else n(null);
2936
2936
  }
2937
2937
  reloadResources(e, t, n) {
2938
- let r = I();
2939
- return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= mt, this.services.backendConnector.reload(e, t, (e) => {
2938
+ let r = L();
2939
+ return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= pt, this.services.backendConnector.reload(e, t, (e) => {
2940
2940
  r.resolve(), n(e);
2941
2941
  }), r;
2942
2942
  }
2943
2943
  use(e) {
2944
2944
  if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
2945
2945
  if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
2946
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Je.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
2946
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && qe.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
2947
2947
  }
2948
2948
  setResolvedLanguage(e) {
2949
2949
  if (e && this.languages && !["cimode", "dev"].includes(e)) {
@@ -2959,7 +2959,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2959
2959
  }
2960
2960
  changeLanguage(e, t) {
2961
2961
  this.isLanguageChangingTo = e;
2962
- let n = I();
2962
+ let n = L();
2963
2963
  this.emit("languageChanging", e);
2964
2964
  let r = (e) => {
2965
2965
  this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
@@ -2967,7 +2967,7 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2967
2967
  a ? this.isLanguageChangingTo === e && (r(a), this.translator.changeLanguage(a), this.isLanguageChangingTo = void 0, this.emit("languageChanged", a), this.logger.log("languageChanged", a)) : this.isLanguageChangingTo = void 0, n.resolve((...e) => this.t(...e)), t && t(i, (...e) => this.t(...e));
2968
2968
  }, a = (t) => {
2969
2969
  !e && !t && this.services.languageDetector && (t = []);
2970
- let n = F(t) ? t : t && t[0], a = this.store.hasLanguageSomeTranslations(n) ? n : this.services.languageUtils.getBestMatchFromCodes(F(t) ? [t] : t);
2970
+ let n = I(t) ? t : t && t[0], a = this.store.hasLanguageSomeTranslations(n) ? n : this.services.languageUtils.getBestMatchFromCodes(I(t) ? [t] : t);
2971
2971
  a && (this.language || r(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector?.cacheUserLanguage?.(a)), this.loadResources(a, (e) => {
2972
2972
  i(e, a);
2973
2973
  });
@@ -2984,11 +2984,11 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
2984
2984
  ...this.options,
2985
2985
  ...o
2986
2986
  };
2987
- Array.isArray(i) && !s && (c.ns = i), typeof o.keyPrefix == "function" && (o.keyPrefix = H(o.keyPrefix, c));
2987
+ Array.isArray(i) && !s && (c.ns = i), typeof o.keyPrefix == "function" && (o.keyPrefix = U(o.keyPrefix, c));
2988
2988
  let l = this.options.keySeparator || ".", u;
2989
- return o.keyPrefix && Array.isArray(e) ? u = e.map((e) => (typeof e == "function" && (e = H(e, c)), `${o.keyPrefix}${l}${e}`)) : (typeof e == "function" && (e = H(e, c)), u = o.keyPrefix ? `${o.keyPrefix}${l}${e}` : e), this.t(u, o);
2989
+ return o.keyPrefix && Array.isArray(e) ? u = e.map((e) => (typeof e == "function" && (e = U(e, c)), `${o.keyPrefix}${l}${e}`)) : (typeof e == "function" && (e = U(e, c)), u = o.keyPrefix ? `${o.keyPrefix}${l}${e}` : e), this.t(u, o);
2990
2990
  };
2991
- return F(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = n, a;
2991
+ return I(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = n, a;
2992
2992
  }
2993
2993
  t(...e) {
2994
2994
  return this.translator?.translate(...e);
@@ -3015,16 +3015,16 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
3015
3015
  return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
3016
3016
  }
3017
3017
  loadNamespaces(e, t) {
3018
- let n = I();
3019
- return this.options.ns ? (F(e) && (e = [e]), e.forEach((e) => {
3018
+ let n = L();
3019
+ return this.options.ns ? (I(e) && (e = [e]), e.forEach((e) => {
3020
3020
  this.options.ns.includes(e) || this.options.ns.push(e);
3021
3021
  }), this.loadResources((e) => {
3022
3022
  n.resolve(), t && t(e);
3023
3023
  }), n) : (t && t(), Promise.resolve());
3024
3024
  }
3025
3025
  loadLanguages(e, t) {
3026
- let n = I();
3027
- F(e) && (e = [e]);
3026
+ let n = L();
3027
+ I(e) && (e = [e]);
3028
3028
  let r = this.options.preload || [], i = e.filter((e) => !r.includes(e) && this.services.languageUtils.isSupportedCode(e));
3029
3029
  return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
3030
3030
  n.resolve(), t && t(e);
@@ -3039,14 +3039,14 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
3039
3039
  if (e && e.direction) return e.direction;
3040
3040
  }
3041
3041
  } catch {}
3042
- let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new $e(ft());
3042
+ let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new Qe(dt());
3043
3043
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.includes(n.getLanguagePartFromCode(e)) || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3044
3044
  }
3045
3045
  static createInstance(t = {}, n) {
3046
3046
  let r = new e(t, n);
3047
3047
  return r.createInstance = e.createInstance, r;
3048
3048
  }
3049
- cloneInstance(t = {}, n = mt) {
3049
+ cloneInstance(t = {}, n = pt) {
3050
3050
  let r = t.forkResourceStore;
3051
3051
  r && delete t.forkResourceStore;
3052
3052
  let i = {
@@ -3060,18 +3060,18 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
3060
3060
  "language"
3061
3061
  ].forEach((e) => {
3062
3062
  a[e] = this[e];
3063
- }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new qe(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
3063
+ }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new Ke(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
3064
3064
  let e = {
3065
- ...ft().interpolation,
3065
+ ...dt().interpolation,
3066
3066
  ...this.options.interpolation,
3067
3067
  ...t.interpolation
3068
3068
  }, n = {
3069
3069
  ...i,
3070
3070
  interpolation: e
3071
3071
  };
3072
- a.services.interpolator = new at(n);
3072
+ a.services.interpolator = new it(n);
3073
3073
  }
3074
- return a.translator = new Qe(a.services, i), a.translator.on("*", (e, ...t) => {
3074
+ return a.translator = new Ze(a.services, i), a.translator.on("*", (e, ...t) => {
3075
3075
  a.emit(e, ...t);
3076
3076
  }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
3077
3077
  }
@@ -3085,10 +3085,10 @@ var Ze = (e) => !F(e) && typeof e != "boolean" && typeof e != "number", Qe = cla
3085
3085
  };
3086
3086
  }
3087
3087
  }.createInstance();
3088
- U.createInstance, U.dir, U.init, U.loadResources, U.reloadResources, U.use, U.changeLanguage, U.getFixedT, U.t, U.exists, U.setDefaultNamespace, U.hasLoadedNamespace, U.loadNamespaces, U.loadLanguages;
3088
+ W.createInstance, W.dir, W.init, W.loadResources, W.reloadResources, W.use, W.changeLanguage, W.getFixedT, W.t, W.exists, W.setDefaultNamespace, W.hasLoadedNamespace, W.loadNamespaces, W.loadLanguages;
3089
3089
  //#endregion
3090
3090
  //#region node_modules/.pnpm/react-i18next@17.0.13_i18ne_77b937ecedfb676debf3096b5685165d/node_modules/react-i18next/dist/es/unescape.js
3091
- var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, _t = {
3091
+ var ht = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, gt = {
3092
3092
  "&amp;": "&",
3093
3093
  "&#38;": "&",
3094
3094
  "&lt;": "<",
@@ -3109,7 +3109,7 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3109
3109
  "&#8230;": "…",
3110
3110
  "&#x2F;": "/",
3111
3111
  "&#47;": "/"
3112
- }, vt = (e) => _t[e], yt = (e) => e.replace(gt, vt), bt = {
3112
+ }, _t = (e) => gt[e], vt = (e) => e.replace(ht, _t), yt = {
3113
3113
  bindI18n: "languageChanged",
3114
3114
  bindI18nStore: "",
3115
3115
  transEmptyNodeValue: "",
@@ -3122,21 +3122,21 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3122
3122
  "p"
3123
3123
  ],
3124
3124
  useSuspense: !0,
3125
- unescape: yt,
3125
+ unescape: vt,
3126
3126
  transDefaultProps: void 0
3127
- }, xt = (e = {}) => {
3128
- bt = {
3129
- ...bt,
3127
+ }, bt = (e = {}) => {
3128
+ yt = {
3129
+ ...yt,
3130
3130
  ...e
3131
3131
  };
3132
- }, St = () => bt, Ct, wt = (e) => {
3133
- Ct = e;
3134
- }, Tt = () => Ct, Et = {
3132
+ }, xt = () => yt, St, Ct = (e) => {
3133
+ St = e;
3134
+ }, wt = () => St, Tt = {
3135
3135
  type: "3rdParty",
3136
3136
  init(e) {
3137
- xt(e.options.react), wt(e);
3137
+ bt(e.options.react), Ct(e);
3138
3138
  }
3139
- }, Dt = /* @__PURE__ */ s(((e, t) => {
3139
+ }, Et = /* @__PURE__ */ s(((e, t) => {
3140
3140
  (function(n, r) {
3141
3141
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
3142
3142
  })(e, (function() {
@@ -3410,8 +3410,8 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3410
3410
  }, _.toString = function() {
3411
3411
  return this.$d.toUTCString();
3412
3412
  }, g;
3413
- }(), ee = E.prototype;
3414
- return w.prototype = ee, [
3413
+ }(), D = E.prototype;
3414
+ return w.prototype = D, [
3415
3415
  ["$ms", r],
3416
3416
  ["$s", i],
3417
3417
  ["$m", a],
@@ -3421,7 +3421,7 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3421
3421
  ["$y", d],
3422
3422
  ["$D", f]
3423
3423
  ].forEach((function(e) {
3424
- ee[e[1]] = function(t) {
3424
+ D[e[1]] = function(t) {
3425
3425
  return this.$g(t, e[0], e[1]);
3426
3426
  };
3427
3427
  })), w.extend = function(e, t) {
@@ -3430,19 +3430,19 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3430
3430
  return w(1e3 * e);
3431
3431
  }, w.en = b[y], w.Ls = b, w.p = {}, w;
3432
3432
  }));
3433
- })), Ot = /* @__PURE__ */ u(Dt(), 1), kt = (e = Date.now(), t = "YYYY-MM-DD HH:mm:ss") => (0, Ot.default)(e).format(t), At = (e) => Object.prototype.toString.call(e).slice(8, -1).toLowerCase(), jt = (e, t) => At(e).includes(t), Mt = (e = {}, t = {}) => {
3433
+ })), Dt = /* @__PURE__ */ u(Et(), 1), Ot = (e = Date.now(), t = "YYYY-MM-DD HH:mm:ss") => (0, Dt.default)(e).format(t), kt = (e) => Object.prototype.toString.call(e).slice(8, -1).toLowerCase(), At = (e, t) => kt(e).includes(t), jt = (e = {}, t = {}) => {
3434
3434
  for (let n of Object.keys(t)) {
3435
3435
  let r = t[n];
3436
- jt(r, "object") ? (e[n] || (e[n] = {}), Mt(e[n], r)) : e[n] = r;
3436
+ At(r, "object") ? (e[n] || (e[n] = {}), jt(e[n], r)) : e[n] = r;
3437
3437
  }
3438
3438
  return e;
3439
- }, W = (e, t, n) => {
3439
+ }, G = (e, t, n) => {
3440
3440
  for (let r of t) Reflect.defineProperty(e, r, {
3441
3441
  value: e[r],
3442
3442
  ...n
3443
3443
  });
3444
3444
  return e;
3445
- }, Nt = { ui: {
3445
+ }, Mt = { ui: {
3446
3446
  tool: {
3447
3447
  add: "添加",
3448
3448
  cancel: "取消",
@@ -3472,7 +3472,11 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3472
3472
  ratio: "比例",
3473
3473
  reset: "清零",
3474
3474
  query: "查询",
3475
- export: "导出"
3475
+ export: "导出",
3476
+ measure: "测量",
3477
+ return: "返回",
3478
+ prev: "上一张",
3479
+ next: "下一张"
3476
3480
  },
3477
3481
  use: {
3478
3482
  contextErr: "useAppContext 必须在 {{key}} provider 内使用",
@@ -3483,12 +3487,16 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3483
3487
  filePlace: "请输入或选择文件",
3484
3488
  pathPlace: "请输入或选择路径",
3485
3489
  selectPlace: "请选择选项",
3490
+ selectTool: "请选择工具",
3486
3491
  selectFile: "请选择文件",
3487
3492
  selectPath: "请选择文件夹",
3488
3493
  total: "共 <bold>{{total}}</bold> 条",
3489
3494
  formatErr: "格式错误",
3490
3495
  confirmClear: "确认清空?",
3491
- statisTotal: "合计"
3496
+ statisTotal: "合计",
3497
+ removeRecent: "删除最近",
3498
+ removeAll: "删除全部",
3499
+ equivalent: "当量"
3492
3500
  },
3493
3501
  exe: {
3494
3502
  initErr: "exe 或 cv 未定义",
@@ -3535,7 +3543,14 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3535
3543
  dayOut: "当日产量",
3536
3544
  dayYield: "当日良率",
3537
3545
  workStaff: "当班人员",
3538
- productModel: "产品型号"
3546
+ productModel: "产品型号",
3547
+ measureTool: "测量工具",
3548
+ measurePoint: "点距离",
3549
+ measureLine: "线间距",
3550
+ measureCircle: "圆直径",
3551
+ distance: "像素距离:{{px}}px\n实际距离:{{um}}um",
3552
+ spacing: "像素间距:{{px}}px\n实际间距:{{um}}um",
3553
+ diameter: "像素直径:{{px}}px\n实际直径:{{um}}um"
3539
3554
  },
3540
3555
  config: {
3541
3556
  mesSaveTime: "MES消息保存时间",
@@ -3548,7 +3563,7 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3548
3563
  dayNg: "当日NG",
3549
3564
  clearTime: "清空时间"
3550
3565
  }
3551
- } }, Pt = { ui: {
3566
+ } }, Nt = { ui: {
3552
3567
  tool: {
3553
3568
  add: "Add",
3554
3569
  cancel: "Cancel",
@@ -3578,7 +3593,11 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3578
3593
  ratio: "Ratio",
3579
3594
  reset: "Reset",
3580
3595
  query: "Query",
3581
- export: "Export"
3596
+ export: "Export",
3597
+ measure: "Measure",
3598
+ return: "Return",
3599
+ prev: "Prev",
3600
+ next: "Next"
3582
3601
  },
3583
3602
  use: {
3584
3603
  contextErr: "useAppContext must be used within a {{key}} provider",
@@ -3589,12 +3608,16 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3589
3608
  filePlace: "Please enter or select a file",
3590
3609
  pathPlace: "Please enter or select a path",
3591
3610
  selectPlace: "Please select an option",
3611
+ selectTool: "Please select a tool",
3592
3612
  selectFile: "Please select a file",
3593
3613
  selectPath: "Please select a folder",
3594
3614
  total: "Total <bold>{{total}}</bold> items",
3595
3615
  formatErr: "format error",
3596
3616
  confirmClear: "Confirm clear?",
3597
- statisTotal: "Total"
3617
+ statisTotal: "Total",
3618
+ removeRecent: "Remove Recent",
3619
+ removeAll: "Remove All",
3620
+ equivalent: "EqvPx"
3598
3621
  },
3599
3622
  exe: {
3600
3623
  initErr: "exe or cv is not defined",
@@ -3641,7 +3664,14 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3641
3664
  dayOut: "Daily output",
3642
3665
  dayYield: "Daily yield",
3643
3666
  workStaff: "On-duty staff",
3644
- productModel: "Product model"
3667
+ productModel: "Product model",
3668
+ measureTool: "Measure Tool",
3669
+ measurePoint: "P-distance",
3670
+ measureLine: "L-spacing",
3671
+ measureCircle: "C-diameter",
3672
+ distance: "P-distance:{{px}}px\nA-distance:{{um}}um",
3673
+ spacing: "P-spacing:{{px}}px\nA-spacing:{{um}}um",
3674
+ diameter: "P-diameter:{{px}}px\nA-diameter:{{um}}um"
3645
3675
  },
3646
3676
  config: {
3647
3677
  mesSaveTime: "MES data save time",
@@ -3654,22 +3684,22 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3654
3684
  dayNg: "Daily NG",
3655
3685
  clearTime: "Clear time"
3656
3686
  }
3657
- } }, Ft = (e, t) => {
3658
- let n = [], r = Mt(e, {
3659
- zh: Nt,
3660
- en: Pt
3687
+ } }, Pt = (e, t) => {
3688
+ let n = [], r = jt(e, {
3689
+ zh: Mt,
3690
+ en: Nt
3661
3691
  }), i = Object.keys(r), a = i.reduce((e, t) => {
3662
3692
  let i = r[t];
3663
3693
  return e[t] = { translation: i }, i?.ui || n.push(t), e;
3664
3694
  }, {});
3665
- return U.use(Et).init({
3695
+ return W.use(Tt).init({
3666
3696
  lng: t,
3667
3697
  resources: a,
3668
3698
  interpolation: { escapeValue: !1 }
3669
3699
  }), n.length ? [] : i;
3670
- }, It = (e = "") => new Proxy((t) => U.t(e, t), { get(t, n) {
3671
- return n === "toString" || typeof n == "symbol" ? void 0 : It(e ? `${e}.${n}` : n);
3672
- } }), G = It("ui"), Lt = class {
3700
+ }, Ft = (e = "") => new Proxy((t) => W.t(e, t), { get(t, n) {
3701
+ return n === "toString" || typeof n == "symbol" ? void 0 : Ft(e ? `${e}.${n}` : n);
3702
+ } }), K = Ft("ui"), It = class {
3673
3703
  #e = {};
3674
3704
  #t = new EventTarget();
3675
3705
  emit = (e, t) => (this.#t.dispatchEvent(new CustomEvent(e, { detail: t })), this);
@@ -3692,16 +3722,17 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3692
3722
  }
3693
3723
  return this;
3694
3724
  };
3695
- }, Rt = [
3725
+ }, Lt = [
3696
3726
  "systemError",
3697
3727
  "messageUpdated",
3698
3728
  "defectUpdated",
3699
- "systemMode"
3700
- ], K = {}, zt = (e = []) => {
3701
- let t = [...Rt, ...e];
3702
- for (let e of t) K[e] = e.replace(/([A-Z])/g, "-$1").toLowerCase();
3703
- return t.length === Rt.length + e.length;
3704
- }, { emit: Bt, emitSync: Vt, on: Ht, off: Ut, once: Wt, clear: Gt } = new Lt(), Kt = {
3729
+ "systemMode",
3730
+ "historyUpdated"
3731
+ ], q = {}, Rt = (e = []) => {
3732
+ let t = [...Lt, ...e];
3733
+ for (let e of t) q[e] = e.replace(/([A-Z])/g, "-$1").toLowerCase();
3734
+ return t.length === Lt.length + e.length;
3735
+ }, { emit: zt, emitSync: Bt, on: Vt, off: Ht, once: Ut, clear: Wt } = new It(), Gt = {
3705
3736
  0: {
3706
3737
  editing: !0,
3707
3738
  visible: !0,
@@ -3717,7 +3748,7 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3717
3748
  visible: !1,
3718
3749
  operate: !1
3719
3750
  }
3720
- }, qt = W({
3751
+ }, Kt = G({
3721
3752
  dayOk: {
3722
3753
  type: "text",
3723
3754
  value: 0
@@ -3728,7 +3759,7 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3728
3759
  },
3729
3760
  date: {
3730
3761
  type: "text",
3731
- value: kt(Date.now(), "YYYY-MM-DD"),
3762
+ value: Ot(Date.now(), "YYYY-MM-DD"),
3732
3763
  visible: !1
3733
3764
  },
3734
3765
  clearTime: {
@@ -3737,19 +3768,23 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3737
3768
  },
3738
3769
  toProps: () => {
3739
3770
  let e = {};
3740
- for (let t in qt) e[t] = qt[t].value;
3771
+ for (let t in Kt) e[t] = Kt[t].value;
3741
3772
  return e;
3742
3773
  }
3743
3774
  }, ["toProps"], {
3744
3775
  enumerable: !1,
3745
3776
  writable: !1,
3746
3777
  configurable: !1
3747
- }), Jt = [
3778
+ }), qt = [
3748
3779
  15,
3749
3780
  25,
3750
3781
  50,
3751
3782
  100
3752
- ], Yt = "app-config-set", Xt = new class {
3783
+ ], Jt = [
3784
+ 24,
3785
+ 240,
3786
+ 138
3787
+ ], Yt = "#808080", Xt = "app-config-set", Zt = new class {
3753
3788
  #e = !1;
3754
3789
  #t = [];
3755
3790
  #n = "";
@@ -3763,26 +3798,26 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3763
3798
  return this.#e;
3764
3799
  }
3765
3800
  set work(e) {
3766
- this.#e = e, this.#n = e ? q.workDefectPath : q.globalDefectPath, this.read(this.#n, this.#e);
3801
+ this.#e = e, this.#n = e ? J.workDefectPath : J.globalDefectPath, this.read(this.#n, this.#e);
3767
3802
  }
3768
3803
  constructor() {
3769
3804
  this.#t.splice(0, this.#t.length);
3770
3805
  }
3771
3806
  #r() {
3772
- Bt(K.defectUpdated);
3807
+ zt(q.defectUpdated);
3773
3808
  }
3774
3809
  setValue(e, t = null) {
3775
- this.value = e, t?.(G.tool.setOk(), { key: Yt });
3810
+ this.value = e, t?.(K.tool.setOk(), { key: Xt });
3776
3811
  }
3777
3812
  read(e, t = this.#e) {
3778
- this.#n = e, this.#e = t, X.access(this.#n, X.constants.F_OK, (e) => {
3779
- e ? yn(this.#n, this.#t) : vn(this.#n, (e) => {
3813
+ this.#n = e, this.#e = t, Z.access(this.#n, Z.constants.F_OK, (e) => {
3814
+ e ? bn(this.#n, this.#t) : yn(this.#n, (e) => {
3780
3815
  this.#t = e, this.#r();
3781
3816
  });
3782
3817
  });
3783
3818
  }
3784
3819
  write() {
3785
- yn(this.#n, this.#t);
3820
+ bn(this.#n, this.#t);
3786
3821
  }
3787
3822
  get(e) {
3788
3823
  return this.#t.find((t) => t.type === e);
@@ -3827,7 +3862,7 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3827
3862
  t && e[t.type]++;
3828
3863
  }
3829
3864
  }
3830
- }(), q = W({
3865
+ }(), J = G({
3831
3866
  workDir: "{workDir}",
3832
3867
  rootDir: "{rootDir}",
3833
3868
  dataDir: "{workDir}/Data",
@@ -3842,7 +3877,7 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3842
3877
  enumerable: !1,
3843
3878
  writable: !0,
3844
3879
  configurable: !0
3845
- }), Zt = {
3880
+ }), Qt = {
3846
3881
  saveDir: "",
3847
3882
  mesSaveTime: 90,
3848
3883
  recordSaveTime: 30,
@@ -3857,39 +3892,39 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3857
3892
  DatabaseName: "aoi",
3858
3893
  UserName: "root",
3859
3894
  Password: "123456"
3860
- }, Qt = () => {
3861
- let e = JSON.stringify(J, void 0, 4);
3862
- return yn(q.settingPath, e), !0;
3863
- }, $t = async (e = !0) => {
3864
- let t = await vn(q.settingPath, e);
3865
- return t && en(t, !1), J.onChange?.(), !0;
3866
- }, en = (e = {}, t = !0) => {
3895
+ }, $t = () => {
3896
+ let e = JSON.stringify(Y, void 0, 4);
3897
+ return bn(J.settingPath, e), !0;
3898
+ }, en = async (e = !0) => {
3899
+ let t = await yn(J.settingPath, e);
3900
+ return t && tn(t, !1), Y.onChange?.(), !0;
3901
+ }, tn = (e = {}, t = !0) => {
3867
3902
  let n = !1, r = {};
3868
- for (let t of Object.keys(J)) e[t] === void 0 ? (e[t] = Zt[t], n = !0) : (J[t] !== e[t] && (J[t] = e[t], n = !0), t.endsWith("Mode") && (r[t] = e[t]));
3869
- Object.keys(r).length > 0 && Bt(K.systemMode, r), t && n && Qt();
3870
- }, tn = async (e = !0) => (nn.level = (await vn(q.userPath, e))?.UserLevel ?? 0, nn.onChange?.(), !0), J = W({
3871
- ...Zt,
3872
- setConfig: en,
3903
+ for (let t of Object.keys(Y)) e[t] === void 0 ? (e[t] = Qt[t], n = !0) : (Y[t] !== e[t] && (Y[t] = e[t], n = !0), t.endsWith("Mode") && (r[t] = e[t]));
3904
+ Object.keys(r).length > 0 && zt(q.systemMode, r), t && n && $t();
3905
+ }, nn = async (e = !0) => (rn.level = (await yn(J.userPath, e))?.UserLevel ?? 0, rn.onChange?.(), !0), Y = G({
3906
+ ...Qt,
3907
+ setConfig: tn,
3873
3908
  onChange: void 0
3874
3909
  }, ["setConfig", "onChange"], {
3875
3910
  enumerable: !1,
3876
3911
  writable: !0,
3877
3912
  configurable: !0
3878
- }), nn = W({
3913
+ }), rn = G({
3879
3914
  level: 0,
3880
3915
  onChange: void 0
3881
3916
  }, ["onChange"], {
3882
3917
  enumerable: !1,
3883
3918
  writable: !0,
3884
3919
  configurable: !0
3885
- }), rn = (e = {}) => {
3920
+ }), an = (e = {}) => {
3886
3921
  let { exe: t } = $, n = t.getWorkDir(), r = t.getCurrentPath();
3887
- q.workDir = n, q.rootDir = r;
3888
- for (let e in q) q[e] = q[e].replace(/\{(\w+)\}/g, (e, t) => q[t]);
3889
- J.saveDir = q.dataDir, Object.assign(J, e), Wt(K.systemMode, ({ detail: e }) => Xt.work = !!e?.defectMode);
3890
- for (let e of ["dataDir", "ngImagesDir"]) X.mkdir(q[e], { recursive: !0 }, () => {});
3891
- X.existsSync(q.settingPath) ? $t(!1) : Qt(), X.existsSync(q.userPath) && tn(!1), setTimeout(() => bn(q.settingPath, $t), 1e3), setTimeout(() => bn(q.userPath, tn), 1e3);
3892
- }, an = () => q.workDir.replace(/\\/g, "/").match(/[^/]+$/)?.[0], Y = new class {
3922
+ J.workDir = n, J.rootDir = r;
3923
+ for (let e in J) J[e] = J[e].replace(/\{(\w+)\}/g, (e, t) => J[t]);
3924
+ Y.saveDir = J.dataDir, Object.assign(Y, e), Ut(q.systemMode, ({ detail: e }) => Zt.work = !!e?.defectMode);
3925
+ for (let e of ["dataDir", "ngImagesDir"]) Z.mkdir(J[e], { recursive: !0 }, () => {});
3926
+ Z.existsSync(J.settingPath) ? en(!1) : $t(), Z.existsSync(J.userPath) && nn(!1), setTimeout(() => xn(J.settingPath, en), 1e3), setTimeout(() => xn(J.userPath, nn), 1e3);
3927
+ }, on = () => J.workDir.replace(/\\/g, "/").match(/[^/]+$/)?.[0], X = new class {
3893
3928
  maxLength = 100;
3894
3929
  #e = [];
3895
3930
  get value() {
@@ -3902,7 +3937,7 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3902
3937
  this.#e.splice(0, this.#e.length);
3903
3938
  }
3904
3939
  #t() {
3905
- Bt(K.messageUpdated);
3940
+ zt(q.messageUpdated);
3906
3941
  }
3907
3942
  #n(e, t, n, r = {}) {
3908
3943
  let i = Date.now();
@@ -3916,13 +3951,13 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3916
3951
  }), this.#e.length > this.maxLength && this.#e.pop(), this.#t(), i;
3917
3952
  }
3918
3953
  error(e, t, n) {
3919
- return this.#n("error", e, t ?? G.tool.error(), n);
3954
+ return this.#n("error", e, t ?? K.tool.error(), n);
3920
3955
  }
3921
3956
  warning(e, t, n) {
3922
- return this.#n("warning", e, t ?? G.tool.warning(), n);
3957
+ return this.#n("warning", e, t ?? K.tool.warning(), n);
3923
3958
  }
3924
3959
  info(e, t, n) {
3925
- return this.#n("info", e, t ?? G.tool.info(), n);
3960
+ return this.#n("info", e, t ?? K.tool.info(), n);
3926
3961
  }
3927
3962
  delete(e) {
3928
3963
  let t = this.#e.findIndex((t) => t.id === e);
@@ -3939,42 +3974,42 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3939
3974
  clear() {
3940
3975
  this.#e.splice(0, this.#e.length), this.#t();
3941
3976
  }
3942
- }(), X = typeof __non_webpack_require__ == "function" ? __non_webpack_require__("fs") : typeof globalThis.require == "function" ? globalThis.require("fs") : null, on = (e, t = 1500) => {
3977
+ }(), Z = typeof __non_webpack_require__ == "function" ? __non_webpack_require__("fs") : typeof globalThis.require == "function" ? globalThis.require("fs") : null, sn = (e, t = 1500) => {
3943
3978
  let n = null;
3944
3979
  return function(...r) {
3945
3980
  n && clearTimeout(n), n = setTimeout(e.bind(this, ...r), t);
3946
3981
  };
3947
- }, sn = (e, t = 1500) => {
3982
+ }, cn = (e, t = 1500) => {
3948
3983
  let n = null;
3949
3984
  return function(...r) {
3950
3985
  n ||= setTimeout(() => {
3951
3986
  e.call(this, ...r), n = null;
3952
3987
  }, t);
3953
3988
  };
3954
- }, cn = (e) => {
3989
+ }, ln = (e) => {
3955
3990
  if (!e || typeof e != "object") return e;
3956
3991
  let t = e.constructor();
3957
- for (let n in e) Object.hasOwn(e, n) && (t[n] = cn(e[n]));
3992
+ for (let n in e) Object.hasOwn(e, n) && (t[n] = ln(e[n]));
3958
3993
  return t;
3959
- }, ln = (e, t) => {
3994
+ }, un = (e, t) => {
3960
3995
  if (e === t) return !0;
3961
3996
  if (typeof e != "object" || typeof t != "object" || e === null || t === null) return !1;
3962
3997
  let n = Object.keys(e), r = Object.keys(t);
3963
3998
  if (n.length !== r.length) return !1;
3964
- for (let i of n) if (!r.includes(i) || !ln(e[i], t[i])) return !1;
3999
+ for (let i of n) if (!r.includes(i) || !un(e[i], t[i])) return !1;
3965
4000
  return !0;
3966
- }, un = (e = "_") => `${Date.now()}${e}${Math.floor(Math.random() * 1e4)}`, dn = (e) => e == null ? !1 : typeof e == "string" || Array.isArray(e) ? e.length > 0 : typeof e != "object" || Object.keys(e).length > 0, fn = (e, t = {}) => {
4001
+ }, dn = (e = "_") => `${Date.now()}${e}${Math.floor(Math.random() * 1e4)}`, fn = (e) => e == null ? !1 : typeof e == "string" || Array.isArray(e) ? e.length > 0 : typeof e != "object" || Object.keys(e).length > 0, pn = (e, t = {}) => {
3967
4002
  try {
3968
- let n = O(e);
4003
+ let n = k(e);
3969
4004
  for (let e in t) n = n[e]?.(t[e]);
3970
4005
  return n.hexa();
3971
4006
  } catch {
3972
4007
  return !1;
3973
4008
  }
3974
- }, pn = (e) => {
4009
+ }, mn = (e) => {
3975
4010
  let t = $.token?.[e];
3976
- return dn(t) ? t : getComputedStyle(document.getElementById("root")).getPropertyValue(`--aoi-${e}`).trim();
3977
- }, mn = (e = pe) => {
4011
+ return fn(t) ? t : getComputedStyle(document.getElementById("root")).getPropertyValue(`--aoi-${e}`).trim();
4012
+ }, hn = (e = fe) => {
3978
4013
  let t;
3979
4014
  switch (e) {
3980
4015
  case "small":
@@ -3986,26 +4021,26 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3986
4021
  default: t = $.token.controlHeight ?? 32;
3987
4022
  }
3988
4023
  return Number.parseInt(t);
3989
- }, hn = (e, t = 2) => {
4024
+ }, gn = (e, t = 2) => {
3990
4025
  let n = Number(e);
3991
4026
  return Number.isNaN(n) ? 0 : Number(n.toFixed(t));
3992
- }, gn = (e, t = {}, n = {}) => {
4027
+ }, _n = (e, t = {}, n = {}) => {
3993
4028
  let r = e.constructor === String ? document.createElement(e) : e;
3994
- for (let [e, n] of Object.entries(t)) n.constructor === Object ? gn(r[e], n) : e.startsWith("--") ? r.setProperty(e, n) : r[e] = n;
4029
+ for (let [e, n] of Object.entries(t)) n.constructor === Object ? _n(r[e], n) : e.startsWith("--") ? r.setProperty(e, n) : r[e] = n;
3995
4030
  for (let [e, t] of Object.entries(n)) r.addEventListener(e, t);
3996
4031
  return r;
3997
- }, _n = (e) => {
4032
+ }, vn = (e) => {
3998
4033
  e?.stopPropagation(), e?.preventDefault(), e.cancelBubble = !0;
3999
- }, vn = (e, t = !1) => {
4000
- if (jt(t, "function")) {
4001
- X.readFile(e, "utf-8", (n, r) => {
4034
+ }, yn = (e, t = !1) => {
4035
+ if (At(t, "function")) {
4036
+ Z.readFile(e, "utf-8", (n, r) => {
4002
4037
  if (n || !r) {
4003
4038
  n && $.dev && console.error(n);
4004
4039
  return;
4005
4040
  }
4006
- let i = Z(r);
4041
+ let i = Q(r);
4007
4042
  if (!i) {
4008
- Y.error(G.file.filePath({ path: e }), G.file.readErr());
4043
+ X.error(K.file.filePath({ path: e }), K.file.readErr());
4009
4044
  return;
4010
4045
  }
4011
4046
  t(i);
@@ -4016,40 +4051,40 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
4016
4051
  try {
4017
4052
  if (t) return new Promise((t, r) => {
4018
4053
  n.readTextFileSync(e, (e, n) => {
4019
- t(n ? Z(n) : null);
4054
+ t(n ? Q(n) : null);
4020
4055
  });
4021
4056
  });
4022
4057
  {
4023
4058
  let t = n.readTextFileSync(e);
4024
- return t ? Z(t) : null;
4059
+ return t ? Q(t) : null;
4025
4060
  }
4026
4061
  } catch (t) {
4027
- return Y.error(G.file.filePath({ path: e }), G.file.readErr()), $.dev && console.error(t), null;
4062
+ return X.error(K.file.filePath({ path: e }), K.file.readErr()), $.dev && console.error(t), null;
4028
4063
  }
4029
- }, yn = (e, t, n) => {
4030
- X.writeFile(e, Q(t), "utf-8", (t) => {
4031
- n?.(t), t && (Y.error(G.file.filePath({ path: e }), G.file.writeErr()), $.dev && console.error(t));
4064
+ }, bn = (e, t, n) => {
4065
+ Z.writeFile(e, Sn(t), "utf-8", (t) => {
4066
+ n?.(t), t && (X.error(K.file.filePath({ path: e }), K.file.writeErr()), $.dev && console.error(t));
4032
4067
  });
4033
- }, bn = (e, t) => {
4034
- jt(t, "function") && X.watch(e, (e) => {
4068
+ }, xn = (e, t) => {
4069
+ At(t, "function") && Z.watch(e, (e) => {
4035
4070
  e === "change" && (clearTimeout(t?.timer), t.timer = setTimeout(t, 1e3));
4036
4071
  });
4037
- }, Z = (e, t = null) => {
4072
+ }, Q = (e, t = null) => {
4038
4073
  if (typeof e == "object") return e;
4039
4074
  try {
4040
4075
  return JSON.parse(e);
4041
4076
  } catch {
4042
4077
  return t;
4043
4078
  }
4044
- }, Q = (e, t = "") => {
4079
+ }, Sn = (e, t = "") => {
4045
4080
  if (typeof e == "string") return e;
4046
4081
  try {
4047
4082
  return JSON.stringify(e);
4048
4083
  } catch {
4049
4084
  return t;
4050
4085
  }
4051
- }, xn = (e, t = {}) => {
4052
- let { x: n = 0, y: r = 0, w: i = 0, h: a = 0, fileName: o, prefixDir: s = q.ngImagesDir, ratio: c = J.ngImgRatio } = t;
4086
+ }, Cn = (e, t = {}) => {
4087
+ let { x: n = 0, y: r = 0, w: i = 0, h: a = 0, fileName: o, prefixDir: s = J.ngImagesDir, ratio: c = Y.ngImgRatio } = t;
4053
4088
  if (!e || n <= 0 || r <= 0 || i <= 0 || a <= 0 || !o) return {
4054
4089
  image: e,
4055
4090
  x: n,
@@ -4066,9 +4101,9 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
4066
4101
  "jpeg",
4067
4102
  "png",
4068
4103
  "bmp"
4069
- ].includes(l) || (t += `.${J.ngImgSuffix}`);
4104
+ ].includes(l) || (t += `.${Y.ngImgSuffix}`);
4070
4105
  let u = t.substring(0, t.lastIndexOf("/"));
4071
- X.existsSync(u) || X.mkdirSync(u, { recursive: !0 });
4106
+ Z.existsSync(u) || Z.mkdirSync(u, { recursive: !0 });
4072
4107
  let { cv: d } = $, f = d.cropSharedMemImage(e, n, r, n + i, r + a);
4073
4108
  return !f || new Promise((e, n) => {
4074
4109
  d.imwriteWithRatio(t, f, c, (t) => {
@@ -4078,8 +4113,8 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
4078
4113
  } catch (e) {
4079
4114
  return $.dev && console.error(e), !0;
4080
4115
  }
4081
- }, Sn = (e = {}) => {
4082
- let { fileName: t, prefixDir: n = q.ngImagesDir } = e;
4116
+ }, wn = (e = {}) => {
4117
+ let { fileName: t, prefixDir: n = J.ngImagesDir } = e;
4083
4118
  if (!t) return;
4084
4119
  let r = `${n}/${t}`, i = r.split(".").pop().toLowerCase();
4085
4120
  [
@@ -4087,27 +4122,27 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
4087
4122
  "jpeg",
4088
4123
  "png",
4089
4124
  "bmp"
4090
- ].includes(i) || (r += `.${J.ngImgSuffix}`);
4125
+ ].includes(i) || (r += `.${Y.ngImgSuffix}`);
4091
4126
  let { cv: a } = $;
4092
4127
  return new Promise((e, t) => {
4093
4128
  a.imread(r, (t, n) => {
4094
4129
  t ? ($.dev && console.error("error read image: ", t), e(!1)) : e(n);
4095
4130
  });
4096
4131
  });
4097
- }, Cn = async (e = {}) => {
4098
- let { fileName: t, prefixDir: n = q.ngImagesDir } = e;
4132
+ }, Tn = async (e = {}) => {
4133
+ let { fileName: t, prefixDir: n = J.ngImagesDir } = e;
4099
4134
  if (!t) return;
4100
4135
  let r = n ? `${n}/${t}` : t;
4101
- if (!X.existsSync(r)) return;
4136
+ if (!Z.existsSync(r)) return;
4102
4137
  let { exe: i } = $;
4103
4138
  return await i.deletePath(r) === "delete successed";
4104
- }, wn = (e, t = "", n = []) => {
4105
- let { cv: r } = $, i = q.dataDir;
4139
+ }, En = (e, t = "", n = []) => {
4140
+ let { cv: r } = $, i = J.dataDir;
4106
4141
  return e ? r.getOpenFileName(t, `*${n.join(";*")}`, i) : r.getExistingDirectory(t, i);
4107
- }, Tn = (e, ...t) => e.replace(/\?/g, () => {
4142
+ }, Dn = (e, ...t) => e.replace(/\?/g, () => {
4108
4143
  let e = t.shift();
4109
- return e instanceof Object && (e = Q(e, void 0)), typeof e == "string" ? e.length ? `'${e}'` : "null" : e === void 0 ? "null" : e;
4110
- }).replace(/[\n\r\s]+/g, " "), En = class {
4144
+ return e instanceof Object && (e = Sn(e, void 0)), typeof e == "string" ? e.length ? `'${e}'` : "null" : e === void 0 ? "null" : e;
4145
+ }).replace(/[\n\r\s]+/g, " "), On = class {
4111
4146
  #e = [];
4112
4147
  #t = !1;
4113
4148
  get sqls() {
@@ -4118,25 +4153,28 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
4118
4153
  }
4119
4154
  constructor(e) {
4120
4155
  let { exe: t } = $;
4121
- this.#e = e || [], this.#t = !this.#e.length || e.some((e) => t.verifyDatabase(e.tableName, Q(e.fields)));
4156
+ this.#e = e || [], this.#t = !this.#e.length || e.some((e) => t.verifyDatabase(e.tableName, Sn(e.fields)));
4122
4157
  }
4123
4158
  async #n({ tableName: e, sqlKey: t, typeErr: n, execFunc: r }, ...i) {
4124
- let a = this.#e.find((t) => t.tableName === e);
4125
- if (!a) return Y.error(G.sql.tableErr({ tableName: e }), G.sql.error()), !1;
4126
- let { exe: o } = $, s = Tn(a.sqls[t], ...i);
4159
+ let a = this.getTable(e);
4160
+ if (!a) return !1;
4161
+ let { exe: o } = $, s = Dn(a.sqls?.[t] ?? t, ...i);
4127
4162
  try {
4128
4163
  let e = await r(o, s);
4129
4164
  if (e) return e;
4130
4165
  throw Error();
4131
4166
  } catch (e) {
4132
- return Y.error(G.sql.execErr({ error: s }), n), $.dev && console.error(e), !1;
4167
+ return X.error(K.sql.execErr({ error: s }), n), $.dev && console.error(e), !1;
4133
4168
  }
4134
4169
  }
4170
+ getTable(e) {
4171
+ return this.#e.find((t) => t.tableName === e) || (X.error(K.sql.tableErr({ tableName: e }), K.sql.error()), !1);
4172
+ }
4135
4173
  update(e, t, ...n) {
4136
4174
  return this.#n({
4137
4175
  tableName: e,
4138
4176
  sqlKey: t,
4139
- typeErr: G.sql.updateErr(),
4177
+ typeErr: K.sql.updateErr(),
4140
4178
  execFunc: async (e, t) => await e.writeDataBase(t) === 0
4141
4179
  }, ...n);
4142
4180
  }
@@ -4144,10 +4182,10 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
4144
4182
  return this.#n({
4145
4183
  tableName: e,
4146
4184
  sqlKey: t,
4147
- typeErr: G.sql.selectErr(),
4185
+ typeErr: K.sql.selectErr(),
4148
4186
  execFunc: async (e, t) => {
4149
4187
  let n = await e.findDataBaseData(t);
4150
- return n?.length ? Z(n, []) : [];
4188
+ return n?.length ? Q(n, []) : [];
4151
4189
  }
4152
4190
  }, ...n);
4153
4191
  }
@@ -4155,10 +4193,10 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
4155
4193
  return this.#n({
4156
4194
  tableName: e,
4157
4195
  sqlKey: t,
4158
- typeErr: G.sql.selectErr(),
4196
+ typeErr: K.sql.selectErr(),
4159
4197
  execFunc: async (e, t) => {
4160
4198
  let n = await e.findSingleDataBaseData(t);
4161
- return n?.length ? Z(n) : null;
4199
+ return n?.length ? Q(n) : null;
4162
4200
  }
4163
4201
  }, ...n);
4164
4202
  }
@@ -4166,24 +4204,24 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
4166
4204
  let t = /* @__PURE__ */ new Set(), n = [];
4167
4205
  for (let r of e) {
4168
4206
  let e = this.#e.find((e) => e.tableName === r.name);
4169
- e ? n.push(Tn(e.sqls[r.key], ...r?.params ?? [])) : t.add(r.name);
4207
+ e ? n.push(Dn(e.sqls?.[r.key] ?? r.key, ...r?.params ?? [])) : t.add(r.name);
4170
4208
  }
4171
4209
  if (t.size) {
4172
4210
  let e = Array.from(t).join(", ");
4173
- return Y.error(G.sql.tableErr({ tableName: e }), G.sql.error()), !1;
4211
+ return X.error(K.sql.tableErr({ tableName: e }), K.sql.error()), !1;
4174
4212
  }
4175
4213
  let { exe: r } = $, i = n.join("&");
4176
4214
  try {
4177
4215
  if (await r.batchWriteDataBase(i)) return !0;
4178
4216
  throw Error();
4179
4217
  } catch (e) {
4180
- return Y.error(G.sql.execErr({ error: i }), G.sql.batchErr()), $.dev && console.error(e), !1;
4218
+ return X.error(K.sql.execErr({ error: i }), K.sql.batchErr()), $.dev && console.error(e), !1;
4181
4219
  }
4182
4220
  }
4183
- }, Dn = (e) => {
4184
- let t = new En(e);
4221
+ }, kn = (e) => {
4222
+ let t = new On(e);
4185
4223
  return !t.error && t;
4186
- }, On = new class {
4224
+ }, An = new class {
4187
4225
  maxLength = 3;
4188
4226
  #e = [];
4189
4227
  get length() {
@@ -4214,7 +4252,7 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
4214
4252
  this.#e.splice(0, this.#e.length);
4215
4253
  }
4216
4254
  }(), $ = {
4217
- token: Oe,
4255
+ token: De,
4218
4256
  langs: [],
4219
4257
  exe: null,
4220
4258
  cv: null,
@@ -4224,8 +4262,8 @@ var gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
4224
4262
  dev: !1,
4225
4263
  level: null,
4226
4264
  project: {}
4227
- }, kn = ({ exe: e = null, cv: t = null, neat: n = !1, dev: r = !1, resource: i = {}, lang: a = "zh", sqls: o = [], evt: s = [], level: c = {}, config: l = {}, project: u = {}, imgQueueLen: d = 3, msgMaxLen: f = 100 } = {}) => {
4228
- $.exe = e, $.cv = t, $.neat = n, $.dev = r, $.level = c, $.langs = Ft(i, a), $.db = Dn(o), $.evt = zt(s), Y.maxLength = f, On.maxLength = d, rn(l), $.project = Object.assign(u, qt.toProps());
4265
+ }, jn = ({ exe: e = null, cv: t = null, neat: n = !1, dev: r = !1, resource: i = {}, lang: a = "zh", sqls: o = [], evt: s = [], level: c = {}, config: l = {}, project: u = {}, imgQueueLen: d = 3, msgMaxLen: f = 100 } = {}) => {
4266
+ $.exe = e, $.cv = t, $.neat = n, $.dev = r, $.level = c, $.langs = Pt(i, a), $.db = kn(o), $.evt = Rt(s), X.maxLength = f, An.maxLength = d, an(l), $.project = Object.assign(u, Kt.toProps());
4229
4267
  };
4230
4268
  //#endregion
4231
- export { Tt as $, an as A, Bt as B, pn as C, Y as D, yn as E, qt as F, Wt as G, zt as H, Jt as I, kt as J, G as K, Kt as L, nn as M, Xt as N, q as O, Yt as P, Dt as Q, K as R, hn as S, bn as T, Ut as U, Vt as V, Ht as W, W as X, jt as Y, At as Z, _n as _, on as a, P as at, fn as b, X as c, me as ct, Z as d, s as dt, St as et, vn as f, c as ft, gn as g, xn as h, Dn as i, De as it, J as j, rn as k, wn as l, fe as lt, Cn as m, u as mt, kn as n, U as nt, cn as o, we as ot, Sn as p, d as pt, Mt as q, On as r, H as rt, ln as s, pe as st, $ as t, yt as tt, dn as u, O as ut, Q as v, un as w, mn as x, sn as y, Gt as z };
4269
+ export { kt as $, on as A, q as B, mn as C, X as D, bn as E, Xt as F, Ht as G, zt as H, Jt as I, K as J, Vt as K, Kt as L, rn as M, Zt as N, J as O, Yt as P, G as Q, qt as R, gn as S, xn as T, Bt as U, Wt as V, Rt as W, Ot as X, jt as Y, At as Z, vn as _, sn as a, U as at, pn as b, Z as c, Ce as ct, Q as d, de as dt, Et as et, yn as f, k as ft, _n as g, u as gt, Cn as h, d as ht, kn as i, W as it, Y as j, an as k, En as l, fe as lt, Tn as m, c as mt, jn as n, xt as nt, ln as o, Ee as ot, wn as p, s as pt, Ut as q, An as r, vt as rt, un as s, F as st, $ as t, wt as tt, fn as u, pe as ut, Sn as v, dn as w, hn as x, cn as y, Gt as z };