@txgw/payout-components 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,15 +59,6 @@ function _ft(r) {
59
59
  }), t;
60
60
  }
61
61
  var Jke = { exports: {} }, lh = {};
62
- /**
63
- * @license React
64
- * react.production.min.js
65
- *
66
- * Copyright (c) Facebook, Inc. and its affiliates.
67
- *
68
- * This source code is licensed under the MIT license found in the
69
- * LICENSE file in the root directory of this source tree.
70
- */
71
62
  var axt;
72
63
  function i_n() {
73
64
  if (axt) return lh;
@@ -264,15 +255,6 @@ function i_n() {
264
255
  }, lh.version = "18.3.1", lh;
265
256
  }
266
257
  var PSe = { exports: {} };
267
- /**
268
- * @license React
269
- * react.development.js
270
- *
271
- * Copyright (c) Facebook, Inc. and its affiliates.
272
- *
273
- * This source code is licensed under the MIT license found in the
274
- * LICENSE file in the root directory of this source tree.
275
- */
276
258
  PSe.exports;
277
259
  var sxt;
278
260
  function o_n() {
@@ -1542,19 +1524,1358 @@ const mr = /* @__PURE__ */ ya(Fn), a_n = /* @__PURE__ */ s4({
1542
1524
  __proto__: null,
1543
1525
  default: mr
1544
1526
  }, [Fn]);
1545
- var M1e = {}, eLe = { exports: {} }, Fz = {}, tLe = { exports: {} }, CHe = {};
1546
- /**
1547
- * @license React
1548
- * scheduler.production.min.js
1549
- *
1550
- * Copyright (c) Facebook, Inc. and its affiliates.
1551
- *
1552
- * This source code is licensed under the MIT license found in the
1553
- * LICENSE file in the root directory of this source tree.
1554
- */
1555
- var cxt;
1556
- function s_n() {
1557
- return cxt || (cxt = 1, (function(r) {
1527
+ function xft(r) {
1528
+ return !!(r && typeof r.then == "function");
1529
+ }
1530
+ function oIe(r, e) {
1531
+ return xft(r) ? Promise.resolve(r).then(e) : e(r);
1532
+ }
1533
+ function cxt(r) {
1534
+ const e = (Array.isArray(r) ? r : [r]).map((o) => `'${o}'`), t = e.slice(-2).join(" or ");
1535
+ return `Mi18n: You need to specify ${[...e.slice(0, -2), t].join(", ")} option`;
1536
+ }
1537
+ function s_n(r) {
1538
+ return typeof r == "object" && !Array.isArray(r) && r !== null;
1539
+ }
1540
+ function _Xt(r) {
1541
+ if (typeof r == "string")
1542
+ return [r];
1543
+ if (Array.isArray(r))
1544
+ return r;
1545
+ }
1546
+ function wN(r) {
1547
+ return _Xt(r) || [];
1548
+ }
1549
+ function l_n(r, e) {
1550
+ return s_n(e) ? wN(e?.[r]) : wN(e);
1551
+ }
1552
+ function rit(r) {
1553
+ return Array.from(new Set(r));
1554
+ }
1555
+ function xXt(r) {
1556
+ return r && r.replace(/\/+$/, "");
1557
+ }
1558
+ function c_n(r) {
1559
+ if (typeof r == "string")
1560
+ return r;
1561
+ if (typeof r?.message == "string")
1562
+ return r.message;
1563
+ }
1564
+ const u_n = (r, e) => fetch(r, e), wXt = (r = u_n) => (e, t) => r(e, Object.assign(Object.assign({}, t), { headers: Object.assign({ "X-Mi18n-SDK-Type": "JS", "X-Mi18n-SDK-Version": "5.16.2" }, t?.headers) }));
1565
+ function mZ(r) {
1566
+ let e = [];
1567
+ return Object.freeze({
1568
+ listen(t) {
1569
+ const n = (i) => {
1570
+ t(i);
1571
+ };
1572
+ return e.push(n), {
1573
+ unsubscribe() {
1574
+ e = e.filter((i) => n !== i);
1575
+ }
1576
+ };
1577
+ },
1578
+ emit(t) {
1579
+ r() && e.forEach((n) => n({ value: t }));
1580
+ }
1581
+ });
1582
+ }
1583
+ function d_n(r, e, t) {
1584
+ const n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
1585
+ function o(l) {
1586
+ const c = new Set(e());
1587
+ i.forEach((u) => {
1588
+ (l === void 0 || l?.findIndex((f) => c.has(f) || u.namespaces.has(f)) !== -1) && u.fn({ value: void 0 });
1589
+ });
1590
+ }
1591
+ let a = [];
1592
+ function s() {
1593
+ if (a.length === 0)
1594
+ return;
1595
+ const l = a;
1596
+ a = [], n.forEach((d) => {
1597
+ d({ value: void 0 });
1598
+ });
1599
+ let c = /* @__PURE__ */ new Set();
1600
+ l.forEach((d) => {
1601
+ d === void 0 ? c = void 0 : c !== void 0 && d.forEach((f) => c.add(f));
1602
+ });
1603
+ const u = c ? Array.from(c.keys()) : void 0;
1604
+ o(u);
1605
+ }
1606
+ return Object.freeze({
1607
+ emit(l, c) {
1608
+ r() && (a.push(l), c ? setTimeout(s, 0) : s());
1609
+ },
1610
+ listen(l) {
1611
+ return n.add(l), {
1612
+ unsubscribe: () => {
1613
+ n.delete(l);
1614
+ }
1615
+ };
1616
+ },
1617
+ listenSome(l) {
1618
+ const c = {
1619
+ fn: (d) => {
1620
+ l(d);
1621
+ },
1622
+ namespaces: /* @__PURE__ */ new Set()
1623
+ };
1624
+ i.add(c);
1625
+ const u = {
1626
+ unsubscribe: () => {
1627
+ i.delete(c);
1628
+ },
1629
+ subscribeNs: (d) => (wN(d).forEach((f) => c.namespaces.add(f)), d === void 0 && c.namespaces.add(t()), u)
1630
+ };
1631
+ return u;
1632
+ }
1633
+ });
1634
+ }
1635
+ function f_n(r, e) {
1636
+ let t = !0;
1637
+ function n() {
1638
+ return t;
1639
+ }
1640
+ const i = Object.freeze({
1641
+ onPendingLanguageChange: mZ(n),
1642
+ onLanguageChange: mZ(n),
1643
+ onLoadingChange: mZ(n),
1644
+ onFetchingChange: mZ(n),
1645
+ onInitialLoaded: mZ(n),
1646
+ onRunningChange: mZ(n),
1647
+ onCacheChange: mZ(n),
1648
+ onUpdate: d_n(n, r, e),
1649
+ onPermanentChange: mZ(n),
1650
+ setEmitterActive(o) {
1651
+ t = o;
1652
+ },
1653
+ on: ((o, a) => {
1654
+ switch (o) {
1655
+ case "pendingLanguage":
1656
+ return i.onPendingLanguageChange.listen(a);
1657
+ case "language":
1658
+ return i.onLanguageChange.listen(a);
1659
+ case "loading":
1660
+ return i.onLoadingChange.listen(a);
1661
+ case "fetching":
1662
+ return i.onFetchingChange.listen(a);
1663
+ case "initialLoad":
1664
+ return i.onInitialLoaded.listen(a);
1665
+ case "running":
1666
+ return i.onRunningChange.listen(a);
1667
+ case "cache":
1668
+ return i.onCacheChange.listen(a);
1669
+ case "update":
1670
+ return i.onUpdate.listen(a);
1671
+ case "permanentChange":
1672
+ return i.onPermanentChange.listen(a);
1673
+ }
1674
+ })
1675
+ });
1676
+ return i.onInitialLoaded.listen(() => i.onUpdate.emit()), i.onLanguageChange.listen(() => i.onUpdate.emit()), i.onCacheChange.listen(({ value: o }) => i.onUpdate.emit([o.namespace], !0)), i;
1677
+ }
1678
+ const AXt = (r) => {
1679
+ const e = /* @__PURE__ */ new Map();
1680
+ return Object.entries(r).forEach(([t, n]) => {
1681
+ if (n != null) {
1682
+ if (typeof n == "object") {
1683
+ AXt(n).forEach((i, o) => {
1684
+ e.set(t + "." + o, i);
1685
+ });
1686
+ return;
1687
+ }
1688
+ e.set(t, n);
1689
+ }
1690
+ }), e;
1691
+ }, FSe = (r) => {
1692
+ const [e, ...t] = r.split(":"), n = t.join(":");
1693
+ return { language: e, namespace: n || "" };
1694
+ }, S$ = ({ language: r, namespace: e }) => e ? `${r}:${e}` : r;
1695
+ function h_n(r, e, t, n, i, o, a) {
1696
+ const s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
1697
+ let c = {}, u = 0;
1698
+ function d(y, x, M) {
1699
+ const S = S$(y);
1700
+ l.set(S, {
1701
+ data: AXt(x),
1702
+ version: M
1703
+ }), r.emit(y);
1704
+ }
1705
+ function f(y) {
1706
+ let x;
1707
+ if (!x) {
1708
+ const M = c[S$(y)];
1709
+ typeof M == "function" && (x = M());
1710
+ }
1711
+ return x || (x = e(y)), x;
1712
+ }
1713
+ function g(y, x) {
1714
+ var M;
1715
+ let S;
1716
+ return x && (S = (M = t(y)) === null || M === void 0 ? void 0 : M.catch(() => (console.warn("Mi18n: Failed to fetch data from dev backend"), f(y)))), S || (S = f(y)), S;
1717
+ }
1718
+ const v = Object.freeze({
1719
+ addStaticData(y) {
1720
+ y && (c = Object.assign(Object.assign({}, c), y), Object.entries(y).forEach(([x, M]) => {
1721
+ if (typeof M != "function") {
1722
+ const S = FSe(x), C = l.get(x);
1723
+ (!C || C.version === 0) && (d(S, M, 0), v.addNamespaceRecord(S, M, 0));
1724
+ }
1725
+ }));
1726
+ },
1727
+ invalidate() {
1728
+ s.clear(), u += 1;
1729
+ },
1730
+ addNamespaceRecord(y, x, M) {
1731
+ !y.namespace && Object.values(x).some((S) => typeof S == "object" && S) && Object.entries(x).forEach(([S, C]) => {
1732
+ typeof C == "object" && C && d(Object.assign(Object.assign({}, y), { namespace: S }), C, M);
1733
+ });
1734
+ },
1735
+ addRecord(y, x) {
1736
+ d(y, x, u), v.addNamespaceRecord(y, x, u);
1737
+ },
1738
+ exists(y, x = !1) {
1739
+ const M = l.get(S$(y));
1740
+ return M && x ? M.version === u : !!M;
1741
+ },
1742
+ getRecord(y) {
1743
+ var x;
1744
+ return (x = l.get(S$(n(y)))) === null || x === void 0 ? void 0 : x.data;
1745
+ },
1746
+ getTranslation(y, x) {
1747
+ var M;
1748
+ return (M = l.get(S$(y))) === null || M === void 0 ? void 0 : M.data.get(x);
1749
+ },
1750
+ getTranslationNs(y, x, M) {
1751
+ var S;
1752
+ for (const C of y)
1753
+ for (const z of x) {
1754
+ const D = (S = l.get(S$({ language: z, namespace: C }))) === null || S === void 0 ? void 0 : S.data.get(M);
1755
+ if (D != null)
1756
+ return [C];
1757
+ }
1758
+ return rit(y);
1759
+ },
1760
+ getTranslationFallback(y, x, M) {
1761
+ var S;
1762
+ for (const C of y)
1763
+ for (const z of x) {
1764
+ const D = (S = l.get(S$({ language: z, namespace: C }))) === null || S === void 0 ? void 0 : S.data.get(M);
1765
+ if (D != null)
1766
+ return { translation: D, namespace: C };
1767
+ }
1768
+ return { translation: void 0, namespace: y[0] };
1769
+ },
1770
+ changeTranslation(y, x, M) {
1771
+ var S;
1772
+ const C = (S = l.get(S$(y))) === null || S === void 0 ? void 0 : S.data;
1773
+ C?.set(x, M), r.emit(Object.assign(Object.assign({}, y), { key: x }));
1774
+ },
1775
+ isFetching(y) {
1776
+ if (i())
1777
+ return !0;
1778
+ if (y === void 0)
1779
+ return s.size > 0;
1780
+ const x = wN(y);
1781
+ return !!Array.from(s.keys()).find((M) => x.includes(FSe(M).namespace));
1782
+ },
1783
+ isLoading(y, x) {
1784
+ const M = wN(x);
1785
+ return !!(i() || Array.from(s.keys()).find((S) => {
1786
+ const C = FSe(S);
1787
+ return (!M.length || M.includes(C.namespace)) && !v.exists({
1788
+ namespace: C.namespace,
1789
+ language: y
1790
+ });
1791
+ }));
1792
+ },
1793
+ async loadRecords(y, x) {
1794
+ const M = y.map((C) => {
1795
+ const z = n(C), D = S$(z), w = s.get(D);
1796
+ if (w)
1797
+ return {
1798
+ new: !1,
1799
+ promise: w,
1800
+ keyObject: z,
1801
+ cacheKey: D
1802
+ };
1803
+ const k = g(z, x) || Promise.resolve(void 0);
1804
+ return s.set(D, k), {
1805
+ new: !0,
1806
+ promise: k,
1807
+ keyObject: z,
1808
+ cacheKey: D
1809
+ };
1810
+ });
1811
+ o.notify(), a.notify();
1812
+ const S = await Promise.all(M.map((C) => C.promise));
1813
+ return M.forEach((C, z) => {
1814
+ const D = s.get(C.cacheKey) !== C.promise;
1815
+ if (C.new && !D) {
1816
+ s.delete(C.cacheKey);
1817
+ const w = S[z];
1818
+ w ? v.addRecord(C.keyObject, w) : v.getRecord(C.keyObject) || v.addRecord(C.keyObject, {});
1819
+ }
1820
+ }), o.notify(), a.notify(), M.map((C) => v.getRecord(C.keyObject));
1821
+ },
1822
+ getAllRecords() {
1823
+ return Array.from(l.entries()).map(([x, M]) => Object.assign(Object.assign({}, FSe(x)), { data: M.data }));
1824
+ }
1825
+ });
1826
+ return v;
1827
+ }
1828
+ function MXt(r, e) {
1829
+ var t = {};
1830
+ for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]);
1831
+ if (r != null && typeof Object.getOwnPropertySymbols == "function")
1832
+ for (var i = 0, n = Object.getOwnPropertySymbols(r); i < n.length; i++)
1833
+ e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]);
1834
+ return t;
1835
+ }
1836
+ const p_n = {
1837
+ tagAttributes: {
1838
+ textarea: ["placeholder"],
1839
+ input: ["value", "placeholder"],
1840
+ img: ["alt"],
1841
+ "*": ["aria-label", "title"]
1842
+ },
1843
+ restrictedElements: ["script", "style"],
1844
+ highlightKeys: ["Alt"],
1845
+ highlightColor: "rgb(255, 0, 0)",
1846
+ highlightWidth: 5,
1847
+ inputPrefix: "%-%mi18n:",
1848
+ inputSuffix: "%-%",
1849
+ passToParent: ["option", "optgroup"],
1850
+ fullKeyEncode: !1
1851
+ }, iit = "invalid", g_n = "https://admin.midasbuy.com/i18n/api", m_n = {
1852
+ defaultNs: "",
1853
+ observerOptions: p_n,
1854
+ observerType: "invisible",
1855
+ onFormatError: iit,
1856
+ apiUrl: g_n,
1857
+ fetch: wXt()
1858
+ }, oit = (...r) => {
1859
+ let e = {};
1860
+ return r.forEach((t) => {
1861
+ e = Object.assign(Object.assign(Object.assign({}, e), t), { observerOptions: Object.assign(Object.assign({}, e.observerOptions), t?.observerOptions) });
1862
+ }), e;
1863
+ };
1864
+ function uxt(r, e) {
1865
+ const t = oit(m_n, e?.initialOptions, r);
1866
+ return t.apiUrl = xXt(t.apiUrl), r?.fetch && (t.fetch = wXt(r.fetch)), {
1867
+ initialOptions: t,
1868
+ activeNamespaces: e?.activeNamespaces || /* @__PURE__ */ new Map(),
1869
+ language: e?.language,
1870
+ pendingLanguage: e?.language,
1871
+ isInitialLoading: !1,
1872
+ isRunning: !1
1873
+ };
1874
+ }
1875
+ function v_n(r, e, t, n, i, o, a, s) {
1876
+ const l = {
1877
+ ui: void 0
1878
+ }, c = {
1879
+ formatters: [],
1880
+ finalFormatter: void 0,
1881
+ observer: void 0,
1882
+ devBackend: void 0,
1883
+ backends: [],
1884
+ ui: void 0,
1885
+ languageDetector: void 0,
1886
+ languageStorage: void 0
1887
+ }, u = async ({ keysAndDefaults: U, event: G }) => {
1888
+ var q;
1889
+ const K = U.map(({ key: W, ns: F, defaultValue: X }) => {
1890
+ const { translation: Z } = o({
1891
+ key: W,
1892
+ ns: F
1893
+ });
1894
+ return {
1895
+ key: W,
1896
+ defaultValue: X,
1897
+ fallbackNamespaces: n(F),
1898
+ namespace: i({ key: W, ns: F })[0],
1899
+ translation: Z
1900
+ };
1901
+ });
1902
+ (q = c.ui) === null || q === void 0 || q.handleElementClick(K, G);
1903
+ }, d = (U, G) => {
1904
+ var q;
1905
+ return ((q = c.observer) === null || q === void 0 ? void 0 : q.findPositions(U, G)) || [];
1906
+ };
1907
+ function f(U) {
1908
+ const { translation: G } = o({
1909
+ key: U.key,
1910
+ ns: U.ns
1911
+ });
1912
+ return H.formatTranslation(Object.assign(Object.assign({}, U), { translation: G, formatEnabled: !0 }));
1913
+ }
1914
+ function g() {
1915
+ return { fetch: e().fetch };
1916
+ }
1917
+ function v(U) {
1918
+ c.observer = U?.();
1919
+ }
1920
+ function y() {
1921
+ return !!c.observer;
1922
+ }
1923
+ function x(U) {
1924
+ U && c.formatters.push(U);
1925
+ }
1926
+ function M(U) {
1927
+ c.finalFormatter = U;
1928
+ }
1929
+ function S(U) {
1930
+ l.ui = U;
1931
+ }
1932
+ function C() {
1933
+ return !!l.ui;
1934
+ }
1935
+ function z(U) {
1936
+ c.languageStorage = U;
1937
+ }
1938
+ function D(U) {
1939
+ c.languageDetector = U;
1940
+ }
1941
+ function w() {
1942
+ if (!c.languageDetector)
1943
+ return;
1944
+ const U = t();
1945
+ return c.languageDetector.getLanguage(Object.assign({ availableLanguages: U }, g()));
1946
+ }
1947
+ function k(U) {
1948
+ U && c.backends.push(U);
1949
+ }
1950
+ function R(U) {
1951
+ c.devBackend = U;
1952
+ }
1953
+ function P(U, G) {
1954
+ const q = Object.freeze({
1955
+ setFinalFormatter: M,
1956
+ addFormatter: x,
1957
+ setObserver: v,
1958
+ hasObserver: y,
1959
+ setUi: S,
1960
+ hasUi: C,
1961
+ setDevBackend: R,
1962
+ addBackend: k,
1963
+ setLanguageDetector: D,
1964
+ setLanguageStorage: z
1965
+ });
1966
+ G(U, q);
1967
+ }
1968
+ const H = Object.freeze({
1969
+ addPlugin: P,
1970
+ run() {
1971
+ var U, G;
1972
+ const { apiKey: q, apiUrl: K, projectId: W, observerOptions: F } = e();
1973
+ c.ui = (U = l.ui) === null || U === void 0 ? void 0 : U.call(l, {
1974
+ apiKey: q,
1975
+ apiUrl: K,
1976
+ projectId: W,
1977
+ highlight: H.highlight,
1978
+ changeTranslation: a,
1979
+ findPositions: d,
1980
+ onPermanentChange: s
1981
+ }), (G = c.observer) === null || G === void 0 || G.run({
1982
+ mouseHighlight: !0,
1983
+ options: F,
1984
+ translate: f,
1985
+ onClick: u
1986
+ });
1987
+ },
1988
+ stop() {
1989
+ var U;
1990
+ c.ui = void 0, (U = c.observer) === null || U === void 0 || U.stop();
1991
+ },
1992
+ getLanguageStorage() {
1993
+ return c.languageStorage;
1994
+ },
1995
+ getInitialLanguage() {
1996
+ var U;
1997
+ const G = t(), q = (U = c.languageStorage) === null || U === void 0 ? void 0 : U.getLanguage(g());
1998
+ return oIe(q, (K) => (!G || G.includes(K)) && K ? K : w());
1999
+ },
2000
+ setStoredLanguage(U) {
2001
+ var G;
2002
+ (G = c.languageStorage) === null || G === void 0 || G.setLanguage(U, g());
2003
+ },
2004
+ getDevBackend() {
2005
+ return c.devBackend;
2006
+ },
2007
+ getBackendRecord: (({ language: U, namespace: G }) => {
2008
+ for (const q of c.backends) {
2009
+ const K = q.getRecord(Object.assign({
2010
+ language: U,
2011
+ namespace: G
2012
+ }, g()));
2013
+ if (xft(K))
2014
+ return K?.catch((W) => (console.error(W), {}));
2015
+ if (K !== void 0)
2016
+ return K;
2017
+ }
2018
+ }),
2019
+ getBackendDevRecord: (({ language: U, namespace: G }) => {
2020
+ var q;
2021
+ const { apiKey: K, apiUrl: W, projectId: F } = e();
2022
+ return (q = c.devBackend) === null || q === void 0 ? void 0 : q.getRecord(Object.assign({
2023
+ apiKey: K,
2024
+ apiUrl: W,
2025
+ projectId: F,
2026
+ language: U,
2027
+ namespace: G
2028
+ }, g()));
2029
+ }),
2030
+ getLanguageDetector() {
2031
+ return c.languageDetector;
2032
+ },
2033
+ retranslate() {
2034
+ var U;
2035
+ (U = c.observer) === null || U === void 0 || U.retranslate();
2036
+ },
2037
+ highlight: ((U, G) => {
2038
+ var q, K;
2039
+ return ((K = (q = c.observer) === null || q === void 0 ? void 0 : q.highlight) === null || K === void 0 ? void 0 : K.call(q, U, G)) || { unhighlight() {
2040
+ } };
2041
+ }),
2042
+ unwrap(U) {
2043
+ var G;
2044
+ return c.observer ? (G = c.observer) === null || G === void 0 ? void 0 : G.unwrap(U) : { text: U, keys: [] };
2045
+ },
2046
+ wrap(U) {
2047
+ var G;
2048
+ return c.observer ? (G = c.observer) === null || G === void 0 ? void 0 : G.wrap(U) : U.translation;
2049
+ },
2050
+ hasDevBackend() {
2051
+ return !!H.getDevBackend();
2052
+ },
2053
+ formatTranslation(U) {
2054
+ var G, { formatEnabled: q } = U, K = MXt(U, ["formatEnabled"]);
2055
+ const { key: W, translation: F, defaultValue: X, noWrap: Z, params: ee, orEmpty: ie, ns: le } = K, ue = F || X || (ie ? "" : W);
2056
+ let we = ue || (ie ? "" : W);
2057
+ const ye = r(), Se = q || !(!((G = c.observer) === null || G === void 0) && G.outputNotFormattable), pe = (me) => c.observer && !Z ? c.observer.wrap({
2058
+ key: W,
2059
+ translation: me,
2060
+ defaultValue: X,
2061
+ params: ee,
2062
+ ns: le
2063
+ }) : me;
2064
+ we = pe(we);
2065
+ try {
2066
+ if (ue && ye && Se)
2067
+ for (const me of c.formatters)
2068
+ we = me.format({
2069
+ translation: we,
2070
+ language: ye,
2071
+ params: ee
2072
+ });
2073
+ c.finalFormatter && ue && ye && Se && (we = c.finalFormatter.format({
2074
+ translation: we,
2075
+ language: ye,
2076
+ params: ee
2077
+ }));
2078
+ } catch (me) {
2079
+ console.error(me);
2080
+ const se = c_n(me) || iit, xe = e().onFormatError, Ie = typeof xe;
2081
+ Ie === "string" ? we = xe : Ie === "function" ? we = xe(se, K) : we = iit, we = pe(we);
2082
+ }
2083
+ return we;
2084
+ }
2085
+ });
2086
+ return H;
2087
+ }
2088
+ const dxt = (r, e, t) => {
2089
+ let n = r;
2090
+ return Object.freeze({
2091
+ init(i) {
2092
+ n = i;
2093
+ },
2094
+ notify() {
2095
+ const i = e();
2096
+ n !== i && t(i), n = i;
2097
+ }
2098
+ });
2099
+ };
2100
+ function b_n(r, e, t) {
2101
+ let n = uxt(), i;
2102
+ const o = Object.freeze({
2103
+ init(a) {
2104
+ n = uxt(a, n);
2105
+ },
2106
+ isRunning() {
2107
+ return n.isRunning;
2108
+ },
2109
+ setRunning(a) {
2110
+ n.isRunning !== a && (n.isRunning = a, t.emit(a));
2111
+ },
2112
+ isInitialLoading() {
2113
+ return n.isInitialLoading;
2114
+ },
2115
+ setInitialLoading(a) {
2116
+ n.isInitialLoading = a;
2117
+ },
2118
+ getLanguage() {
2119
+ return n.language || n.initialOptions.language;
2120
+ },
2121
+ setLanguage(a) {
2122
+ n.language !== a && (n.language = a, r.emit(a));
2123
+ },
2124
+ getPendingLanguage() {
2125
+ return n.pendingLanguage || o.getLanguage();
2126
+ },
2127
+ setPendingLanguage(a) {
2128
+ n.pendingLanguage !== a && (n.pendingLanguage = a, e.emit(a));
2129
+ },
2130
+ getInitialOptions() {
2131
+ return Object.assign(Object.assign({}, n.initialOptions), i);
2132
+ },
2133
+ addActiveNs(a) {
2134
+ wN(a).forEach((l) => {
2135
+ const c = n.activeNamespaces.get(l);
2136
+ c !== void 0 ? n.activeNamespaces.set(l, c + 1) : n.activeNamespaces.set(l, 1);
2137
+ });
2138
+ },
2139
+ removeActiveNs(a) {
2140
+ wN(a).forEach((l) => {
2141
+ const c = n.activeNamespaces.get(l);
2142
+ c !== void 0 && c > 1 ? n.activeNamespaces.set(l, c - 1) : n.activeNamespaces.delete(l);
2143
+ });
2144
+ },
2145
+ getRequiredNamespaces() {
2146
+ return rit([
2147
+ ...n.initialOptions.ns || [n.initialOptions.defaultNs],
2148
+ ...wN(n.initialOptions.fallbackNs),
2149
+ ...n.activeNamespaces.keys()
2150
+ ]);
2151
+ },
2152
+ getFallbackLangs(a) {
2153
+ const s = a || o.getLanguage();
2154
+ return s ? rit([
2155
+ s,
2156
+ ...l_n(s, n.initialOptions.fallbackLanguage)
2157
+ ]) : [];
2158
+ },
2159
+ getFallbackNs() {
2160
+ return wN(n.initialOptions.fallbackNs);
2161
+ },
2162
+ getDefaultNs(a) {
2163
+ return a === void 0 ? n.initialOptions.defaultNs : a;
2164
+ },
2165
+ getAvailableLanguages() {
2166
+ if (n.initialOptions.availableLanguages)
2167
+ return n.initialOptions.availableLanguages;
2168
+ if (n.initialOptions.staticData) {
2169
+ const a = Object.keys(n.initialOptions.staticData).map((s) => FSe(s).language);
2170
+ return Array.from(new Set(a));
2171
+ }
2172
+ },
2173
+ withDefaultNs(a) {
2174
+ return {
2175
+ namespace: a.namespace === void 0 ? o.getInitialOptions().defaultNs : a.namespace,
2176
+ language: a.language
2177
+ };
2178
+ },
2179
+ overrideCredentials(a) {
2180
+ a ? i = Object.assign(Object.assign({}, a), { apiUrl: xXt(a.apiUrl) }) : i = void 0;
2181
+ }
2182
+ });
2183
+ return o;
2184
+ }
2185
+ function y_n(r) {
2186
+ var { ns: e, noWrap: t, orEmpty: n, params: i, language: o } = r, a = MXt(r, ["ns", "noWrap", "orEmpty", "params", "language"]);
2187
+ return Object.assign(Object.assign({}, {
2188
+ ns: e,
2189
+ noWrap: t,
2190
+ orEmpty: n,
2191
+ language: o
2192
+ }), { params: Object.assign({}, a) });
2193
+ }
2194
+ const SXt = (r, ...e) => {
2195
+ let t = {}, n;
2196
+ return typeof r == "object" ? t = r : (t.key = r, typeof e[0] == "string" ? (t.defaultValue = e[0], n = e[1]) : typeof e[0] == "object" && (n = e[0])), n && (t = Object.assign(Object.assign({}, y_n(n)), t)), t;
2197
+ };
2198
+ function __n({ options: r }) {
2199
+ const e = f_n(l, c), t = dxt(!1, () => a.isFetching(), e.onFetchingChange.emit), n = dxt(!1, () => w.isLoading(), e.onLoadingChange.emit), i = b_n(e.onLanguageChange, e.onPendingLanguageChange, e.onRunningChange), o = v_n(i.getLanguage, i.getInitialOptions, i.getAvailableLanguages, u, M, S, f, g), a = h_n(e.onCacheChange, o.getBackendRecord, o.getBackendDevRecord, i.withDefaultNs, i.isInitialLoading, t, n);
2200
+ r && v(r);
2201
+ let s;
2202
+ e.onUpdate.listen(() => {
2203
+ i.isRunning() && o.retranslate();
2204
+ });
2205
+ function l() {
2206
+ return i.getFallbackNs();
2207
+ }
2208
+ function c(k) {
2209
+ return i.getDefaultNs(k);
2210
+ }
2211
+ function u(k) {
2212
+ return [...wN(c(k)), ...l()];
2213
+ }
2214
+ function d(k) {
2215
+ return [
2216
+ ...wN(k ?? c()),
2217
+ ...i.getRequiredNamespaces()
2218
+ ];
2219
+ }
2220
+ function f(k, R, P) {
2221
+ const H = i.withDefaultNs(k), U = a.getTranslation(H, R);
2222
+ return a.changeTranslation(H, R, P), {
2223
+ revert() {
2224
+ a.changeTranslation(H, R, U);
2225
+ }
2226
+ };
2227
+ }
2228
+ function g(k) {
2229
+ e.onPermanentChange.emit({
2230
+ key: k.key,
2231
+ namespace: k.namespace
2232
+ });
2233
+ }
2234
+ function v(k) {
2235
+ i.init(k), a.addStaticData(i.getInitialOptions().staticData);
2236
+ }
2237
+ function y(k, R) {
2238
+ const P = i.getFallbackLangs(k), H = d(R), U = [];
2239
+ return P.forEach((G) => {
2240
+ H.forEach((q) => {
2241
+ a.exists({ language: G, namespace: q }, !0) || U.push({ language: G, namespace: q });
2242
+ });
2243
+ }), U;
2244
+ }
2245
+ function x(k, R) {
2246
+ const P = y(k, R);
2247
+ if (P.length)
2248
+ return oIe(w.loadRecords(P), () => {
2249
+ });
2250
+ }
2251
+ function M({ key: k, ns: R }) {
2252
+ const P = i.getFallbackLangs(), H = u(R ?? void 0);
2253
+ return a.getTranslationNs(H, P, k);
2254
+ }
2255
+ function S({ key: k, ns: R, language: P }) {
2256
+ const H = u(R ?? void 0), U = i.getFallbackLangs(P);
2257
+ return a.getTranslationFallback(H, U, k);
2258
+ }
2259
+ function C() {
2260
+ const k = oIe(z(), () => x());
2261
+ if (xft(k))
2262
+ return i.setInitialLoading(!0), t.notify(), n.notify(), Promise.resolve(k).then(() => {
2263
+ i.setInitialLoading(!1), t.notify(), n.notify(), e.onInitialLoaded.emit();
2264
+ });
2265
+ e.onInitialLoaded.emit();
2266
+ }
2267
+ function z() {
2268
+ if (i.getLanguage())
2269
+ return;
2270
+ const R = o.getInitialLanguage();
2271
+ return oIe(R, (P) => {
2272
+ const H = P || i.getInitialOptions().defaultLanguage;
2273
+ H && i.setLanguage(H);
2274
+ });
2275
+ }
2276
+ function D() {
2277
+ if ((o.getLanguageDetector() || o.getLanguageStorage()) && !i.getAvailableLanguages())
2278
+ throw new Error(cxt("availableLanguages"));
2279
+ if (!i.getLanguage() && !i.getInitialOptions().defaultLanguage)
2280
+ throw new Error(cxt(["defaultLanguage", "language"]));
2281
+ }
2282
+ const w = Object.freeze(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), i), o), a), {
2283
+ init: v,
2284
+ getTranslation: S,
2285
+ changeTranslation: f,
2286
+ getTranslationNs: M,
2287
+ getDefaultAndFallbackNs: u,
2288
+ async changeLanguage(k) {
2289
+ i.getPendingLanguage() === k && i.getLanguage() === k || (i.setPendingLanguage(k), i.isRunning() && await x(k), k === i.getPendingLanguage() && (i.setLanguage(k), o.setStoredLanguage(k)));
2290
+ },
2291
+ async addActiveNs(k, R) {
2292
+ R || i.addActiveNs(k), i.isRunning() && await x(void 0, k);
2293
+ },
2294
+ loadRecords(k) {
2295
+ return a.loadRecords(k, w.isDev());
2296
+ },
2297
+ async loadRecord(k) {
2298
+ return (await w.loadRecords([k]))[0];
2299
+ },
2300
+ isLoading(k) {
2301
+ return a.isLoading(i.getLanguage(), k);
2302
+ },
2303
+ isLoaded(k) {
2304
+ const R = i.getLanguage();
2305
+ if (!R)
2306
+ return !1;
2307
+ const P = i.getFallbackLangs(R), H = d(k), U = [];
2308
+ return P.forEach((G) => {
2309
+ H.forEach((q) => {
2310
+ a.exists({ language: G, namespace: q }) || U.push({ language: G, namespace: q });
2311
+ });
2312
+ }), U.length === 0;
2313
+ },
2314
+ t: ((...k) => {
2315
+ const R = SXt(...k), { translation: P, namespace: H } = S(R);
2316
+ return o.formatTranslation(Object.assign(Object.assign({}, R), { translation: P, ns: H }));
2317
+ }),
2318
+ isDev() {
2319
+ return !!(i.getInitialOptions().apiKey && i.getInitialOptions().apiUrl);
2320
+ },
2321
+ run() {
2322
+ return D(), i.isRunning() || (i.setRunning(!0), o.run(), s = C()), Promise.resolve(s);
2323
+ },
2324
+ stop() {
2325
+ i.isRunning() && (o.stop(), i.setRunning(!1));
2326
+ }
2327
+ }));
2328
+ return w;
2329
+ }
2330
+ function x_n(r) {
2331
+ const e = __n({
2332
+ options: r
2333
+ });
2334
+ e.isDev() && e.invalidate();
2335
+ function t(i) {
2336
+ const o = e.isRunning();
2337
+ o && e.stop(), i(), e.isDev() && e.invalidate(), o && e.run();
2338
+ }
2339
+ const n = Object.freeze({
2340
+ /**
2341
+ * Listen to mi18n events.
2342
+ */
2343
+ on: e.on,
2344
+ /**
2345
+ * Listen for specific namespaces changes.
2346
+ *
2347
+ * ```
2348
+ * const sub = mi18n.onUpdate(handler)
2349
+ *
2350
+ * // subscribe to selected namespace
2351
+ * sub.subscribeNs(['common'])
2352
+ *
2353
+ * // unsubscribe
2354
+ * sub.unsubscribe()
2355
+ * ```
2356
+ */
2357
+ onNsUpdate: e.onUpdate.listenSome,
2358
+ /**
2359
+ * Turn off/on events emitting. Is on by default.
2360
+ */
2361
+ setEmitterActive: e.setEmitterActive,
2362
+ /**
2363
+ * @return current language if set.
2364
+ */
2365
+ getLanguage: e.getLanguage,
2366
+ /**
2367
+ * `pendingLanguage` represents language which is currently being loaded.
2368
+ * @return current `pendingLanguage` if set.
2369
+ */
2370
+ getPendingLanguage: e.getPendingLanguage,
2371
+ /**
2372
+ * Change current language.
2373
+ * - if not running sets `pendingLanguage`, `language` to the new value
2374
+ * - if running sets `pendingLanguage` to the value, fetches necessary data and then changes `language`
2375
+ *
2376
+ * @return Promise which is resolved when `language` is changed.
2377
+ */
2378
+ changeLanguage: e.changeLanguage,
2379
+ /**
2380
+ * Temporarily change translation in cache.
2381
+ * @return object with revert method.
2382
+ */
2383
+ changeTranslation: e.changeTranslation,
2384
+ /**
2385
+ * Adds namespace(s) list of active namespaces. And if mi18n is running, loads required data.
2386
+ */
2387
+ addActiveNs: e.addActiveNs,
2388
+ /**
2389
+ * Remove namespace(s) from active namespaces.
2390
+ *
2391
+ * Mi18n internally counts how many times was each active namespace added,
2392
+ * so this method will remove namespace only if the counter goes down to 0.
2393
+ */
2394
+ removeActiveNs: e.removeActiveNs,
2395
+ /**
2396
+ * Manually load multiple records from `Backend` (or `DevBackend` when in dev mode)
2397
+ *
2398
+ * It loads data together and adds them to cache in one operation, to prevent partly loaded state.
2399
+ */
2400
+ loadRecords: e.loadRecords,
2401
+ /**
2402
+ * Manually load record from `Backend` (or `DevBackend` when in dev mode)
2403
+ */
2404
+ loadRecord: e.loadRecord,
2405
+ /**
2406
+ *
2407
+ */
2408
+ addStaticData: e.addStaticData,
2409
+ /**
2410
+ * Get record from cache.
2411
+ */
2412
+ getRecord: e.getRecord,
2413
+ /**
2414
+ * Get all records from cache.
2415
+ */
2416
+ getAllRecords: e.getAllRecords,
2417
+ /**
2418
+ * @param ns optional list of namespaces that you are interested in
2419
+ * @return `true` if there are data that need to be fetched.
2420
+ */
2421
+ isLoaded: e.isLoaded,
2422
+ /**
2423
+ * @return `true` if mi18n is loading initial data (triggered by `run`).
2424
+ */
2425
+ isInitialLoading: e.isInitialLoading,
2426
+ /**
2427
+ * @param ns optional list of namespaces that you are interested in
2428
+ * @return `true` if mi18n is loading some translations for the first time.
2429
+ */
2430
+ isLoading: e.isLoading,
2431
+ /**
2432
+ * @param ns optional list of namespaces that you are interested in
2433
+ * @return `true` if mi18n is fetching some translations.
2434
+ */
2435
+ isFetching: e.isFetching,
2436
+ /**
2437
+ * @return `true` if mi18n is running.
2438
+ */
2439
+ isRunning: e.isRunning,
2440
+ /**
2441
+ * Changes internal state to running: true and loads initial files.
2442
+ * Runs runnable plugins mainly Observer if present.
2443
+ */
2444
+ run: e.run,
2445
+ /**
2446
+ * Changes internal state to running: false and stops runnable plugins.
2447
+ */
2448
+ stop: e.stop,
2449
+ /**
2450
+ * Returns translated and formatted key.
2451
+ * If Observer is present and mi18n is running, wraps result to be identifiable in the DOM.
2452
+ */
2453
+ t: e.t,
2454
+ /**
2455
+ * Highlight keys that match selection.
2456
+ */
2457
+ highlight: e.highlight,
2458
+ /**
2459
+ * @return current Mi18n options.
2460
+ */
2461
+ getInitialOptions: e.getInitialOptions,
2462
+ /**
2463
+ * Mi18n is in dev mode if `DevTools` plugin is used and `apiKey` + `apiUrl` are specified.
2464
+ * @return `true` if mi18n is in dev mode.
2465
+ */
2466
+ isDev: e.isDev,
2467
+ /**
2468
+ * Wraps translation if there is `Observer` plugin
2469
+ */
2470
+ wrap: e.wrap,
2471
+ /**
2472
+ * Unwrap translation
2473
+ */
2474
+ unwrap: e.unwrap,
2475
+ /**
2476
+ * Override creadentials passed on initialization.
2477
+ *
2478
+ * When called in running state, mi18n stops and runs again.
2479
+ */
2480
+ overrideCredentials(i) {
2481
+ t(() => e.overrideCredentials(i));
2482
+ },
2483
+ /**
2484
+ * Add mi18n plugin after initialization.
2485
+ *
2486
+ * When called in running state, mi18n stops and runs again.
2487
+ */
2488
+ addPlugin(i) {
2489
+ i && t(() => e.addPlugin(n, i));
2490
+ },
2491
+ /**
2492
+ * Updates options after instance creation. Extends existing options,
2493
+ * so it only changes the fields, that are listed.
2494
+ *
2495
+ * When called in running state, mi18n stops and runs again.
2496
+ */
2497
+ updateOptions(i) {
2498
+ i && t(() => e.init(i));
2499
+ }
2500
+ });
2501
+ return n;
2502
+ }
2503
+ const w_n = () => {
2504
+ const r = {
2505
+ plugins: [],
2506
+ options: {}
2507
+ }, e = Object.freeze({
2508
+ use(t) {
2509
+ return r.plugins.push(t), e;
2510
+ },
2511
+ updateDefaults(t) {
2512
+ return r.options = oit(r.options, t), e;
2513
+ },
2514
+ init(t) {
2515
+ const n = x_n(oit(r.options, t));
2516
+ return r.plugins.forEach(n.addPlugin), n;
2517
+ }
2518
+ });
2519
+ return e;
2520
+ }, CXt = 0, ait = 1, A_n = 2;
2521
+ let M_n = class extends Error {
2522
+ constructor(e, t, n) {
2523
+ let i;
2524
+ e === CXt ? i = "Empty parameter" : e === ait ? i = "Unexpected character" : i = "Unexpected end", super(`Mi18n parser: ${i} at ${t} in "${n}"`), this.code = e, this.index = t;
2525
+ }
2526
+ };
2527
+ function fxt(r) {
2528
+ return /\s/.test(r);
2529
+ }
2530
+ const VZ = 0, sit = 1, aIe = 2, CHe = 3, OHe = 4, S_n = /* @__PURE__ */ new Set([
2531
+ aIe,
2532
+ sit,
2533
+ VZ
2534
+ ]), lit = "'", C_n = /* @__PURE__ */ new Set(["{", "}", lit]), O_n = (r) => /[0-9a-zA-Z_]/.test(r);
2535
+ function T_n(r) {
2536
+ let e = VZ, t = "", n = "", i = "";
2537
+ const o = [], a = [];
2538
+ let s = 0;
2539
+ function l(f) {
2540
+ throw new M_n(f, s, r);
2541
+ }
2542
+ const c = () => {
2543
+ o.push(t), t = "";
2544
+ }, u = () => {
2545
+ O_n(i) || l(ait), n += i;
2546
+ }, d = () => {
2547
+ n === "" && l(CXt), a.push(n), n = "";
2548
+ };
2549
+ for (s = 0; s < r.length; s++)
2550
+ switch (i = r[s], e) {
2551
+ case VZ:
2552
+ i === lit ? (t += i, e = sit) : i === "{" ? (c(), e = CHe) : (t += i, e = VZ);
2553
+ break;
2554
+ case sit:
2555
+ C_n.has(i) ? (t = t.slice(0, -1) + i, e = aIe) : (t += i, e = VZ);
2556
+ break;
2557
+ case aIe:
2558
+ i === lit ? e = VZ : (t += i, e = aIe);
2559
+ break;
2560
+ case CHe:
2561
+ i === "}" ? (d(), e = VZ) : fxt(i) ? n !== "" && (d(), e = OHe) : (u(), e = CHe);
2562
+ break;
2563
+ case OHe:
2564
+ i == "}" ? e = VZ : fxt(i) ? e = OHe : l(ait);
2565
+ }
2566
+ return S_n.has(e) || l(A_n), c(), [o, a];
2567
+ }
2568
+ function E_n(r, e) {
2569
+ const [t, n] = T_n(r), i = [t[0]];
2570
+ for (let o = 1; o < t.length; o++) {
2571
+ const a = e?.[n[o - 1]];
2572
+ if (a === void 0)
2573
+ throw new Error(`Missing parameter "${n[o - 1]}" in "${r}"`);
2574
+ i.push(String(a)), i.push(t[o]);
2575
+ }
2576
+ return i.join("");
2577
+ }
2578
+ function z_n() {
2579
+ return {
2580
+ format: ({ translation: r, params: e }) => E_n(r, e)
2581
+ };
2582
+ }
2583
+ const Y$i = () => (r, e) => (e.setFinalFormatter(z_n()), r);
2584
+ function k_n() {
2585
+ var r, e;
2586
+ return typeof ((e = (r = globalThis.window) === null || r === void 0 ? void 0 : r.document) === null || e === void 0 ? void 0 : e.createElement) > "u";
2587
+ }
2588
+ function cit(r) {
2589
+ if (k_n())
2590
+ throw new Error(`${r}: Can't run on the server`);
2591
+ }
2592
+ const L_n = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
2593
+ function R_n(r) {
2594
+ const e = L_n.indexOf(r);
2595
+ if (e === -1)
2596
+ throw new Error("Invalid character found: " + r);
2597
+ return e;
2598
+ }
2599
+ function D_n(r) {
2600
+ const e = new Uint8Array(r), t = e.length;
2601
+ let n = "", i = Math.pow(2, 16) - 1;
2602
+ for (let o = 0; o < t; o += i)
2603
+ o + i > t && (i = t - o), n += String.fromCharCode.apply(
2604
+ null,
2605
+ // @ts-ignore
2606
+ e.subarray(o, o + i)
2607
+ );
2608
+ return n;
2609
+ }
2610
+ function I_n(r) {
2611
+ r = r.toUpperCase();
2612
+ const e = r.length;
2613
+ let t = 0, n = 0, i = 0;
2614
+ const o = new Uint8Array(e * 5 / 8 | 0);
2615
+ for (let a = 0; a < e; a++)
2616
+ n = n << 5 | R_n(r[a]), t += 5, t >= 8 && (o[i++] = n >>> t - 8 & 255, t -= 8);
2617
+ return D_n(o.buffer);
2618
+ }
2619
+ function N_n(r) {
2620
+ if (r)
2621
+ try {
2622
+ const [e, t] = r.split("_");
2623
+ if (e === "tgpak") {
2624
+ const [n] = I_n(t).split("_");
2625
+ return Number(n);
2626
+ }
2627
+ } catch {
2628
+ console.warn("Mi18n: Api key can't be parsed");
2629
+ }
2630
+ }
2631
+ function P_n() {
2632
+ return {
2633
+ getRecord({ apiUrl: r, apiKey: e, projectId: t, language: n, fetch: i, namespace: o }) {
2634
+ var a;
2635
+ const s = (a = N_n(e)) !== null && a !== void 0 ? a : t;
2636
+ let l = s !== void 0 ? `${r}/v2/projects/${s}/translations/${n}` : `${r}/v2/projects/translations/${n}`;
2637
+ return o && (l += `?ns=${o}`), i(l, {
2638
+ headers: {
2639
+ "X-API-Key": e || "",
2640
+ "Content-Type": "application/json"
2641
+ }
2642
+ }).then((c) => {
2643
+ if (c.ok)
2644
+ return c.json().then((u) => u[n]);
2645
+ throw new Error(c.statusText);
2646
+ });
2647
+ }
2648
+ };
2649
+ }
2650
+ const Z$i = () => (r, e) => (e.setDevBackend(P_n()), r);
2651
+ function F_n(r, e) {
2652
+ const t = (n) => {
2653
+ var i, o;
2654
+ r.includes((i = n.data) === null || i === void 0 ? void 0 : i.type) && e((o = n.data) === null || o === void 0 ? void 0 : o.data);
2655
+ };
2656
+ return window.addEventListener("message", t, !1), {
2657
+ unsubscribe() {
2658
+ window.removeEventListener("message", t);
2659
+ }
2660
+ };
2661
+ }
2662
+ function B_n({ message: r, recievingMessage: e, data: t, attempts: n = 1, timeout: i = 300 }) {
2663
+ let o = !1;
2664
+ const a = () => new Promise((l, c) => {
2665
+ const u = F_n(e, f);
2666
+ window.postMessage({ type: r, data: t }, window.origin);
2667
+ const d = setTimeout(v, i);
2668
+ function f(y) {
2669
+ clearTimeout(d), g(), l(y);
2670
+ }
2671
+ function g() {
2672
+ u.unsubscribe();
2673
+ }
2674
+ function v() {
2675
+ g(), c();
2676
+ }
2677
+ });
2678
+ return {
2679
+ cancel() {
2680
+ o = !0;
2681
+ },
2682
+ promise: (async () => {
2683
+ for (let l = 0; l < n; l++) {
2684
+ if (o)
2685
+ return new Promise(() => {
2686
+ });
2687
+ try {
2688
+ return await a();
2689
+ } catch {
2690
+ continue;
2691
+ }
2692
+ }
2693
+ if (!o)
2694
+ throw `Didn't recieve ${e.join(" or ")} in time.`;
2695
+ return new Promise(() => {
2696
+ });
2697
+ })()
2698
+ };
2699
+ }
2700
+ function W_n() {
2701
+ let r;
2702
+ async function e(t) {
2703
+ r?.();
2704
+ const { cancel: n, promise: i } = B_n({
2705
+ message: "MI18N_READY",
2706
+ recievingMessage: ["MI18N_PLUGIN_READY", "MI18N_PLUGIN_UPDATED"],
2707
+ data: t,
2708
+ attempts: 4
2709
+ });
2710
+ return r = n, i;
2711
+ }
2712
+ return {
2713
+ update: e
2714
+ };
2715
+ }
2716
+ const q_n = "mi18n-in-context-tools.umd.min.js", H_n = "@mi18n/in-context-tools", V_n = "InContextTools", U_n = "https://cdn.jsdelivr.net/npm";
2717
+ function $_n(r) {
2718
+ return new Promise((e, t) => {
2719
+ const n = document.createElement("script");
2720
+ n.src = r, n.addEventListener("load", () => e()), n.addEventListener("error", (i) => t(i.error)), document.body.appendChild(n);
2721
+ });
2722
+ }
2723
+ let THe = null;
2724
+ function j_n(r) {
2725
+ return THe || (THe = $_n(
2726
+ `${U_n}/@mi18n/web/dist/${q_n}`
2727
+ // `${CDN_URL}/@mi18n/web@${version}/dist/${IN_CONTEXT_FILE}`
2728
+ ).then(() => window[H_n][V_n])), THe;
2729
+ }
2730
+ const OXt = "__mi18n_apiKey", TXt = "__mi18n_apiUrl";
2731
+ function hxt() {
2732
+ const r = sessionStorage.getItem(OXt) || void 0, e = sessionStorage.getItem(TXt) || void 0;
2733
+ if (!(!r || !e))
2734
+ return {
2735
+ apiKey: r,
2736
+ apiUrl: e
2737
+ };
2738
+ }
2739
+ function G_n() {
2740
+ sessionStorage.removeItem(OXt), sessionStorage.removeItem(TXt);
2741
+ }
2742
+ function X_n(r) {
2743
+ document.readyState !== "loading" ? Promise.resolve().then(() => {
2744
+ r();
2745
+ }) : document.addEventListener && document.addEventListener("DOMContentLoaded", r);
2746
+ }
2747
+ let EXt = () => (r) => r;
2748
+ const K_n = () => {
2749
+ if (typeof window > "u")
2750
+ return !1;
2751
+ try {
2752
+ return typeof sessionStorage < "u" && sessionStorage;
2753
+ } catch (r) {
2754
+ return console.error("sessionStorage not available", r), !1;
2755
+ }
2756
+ };
2757
+ K_n() && (EXt = () => (r) => {
2758
+ const e = W_n(), t = () => ({
2759
+ // prevent extension downloading ui library
2760
+ uiPresent: !0,
2761
+ uiVersion: void 0,
2762
+ // mi18n mode
2763
+ mode: r.isDev() ? "development" : "production",
2764
+ // pass credentials
2765
+ config: {
2766
+ apiUrl: r.getInitialOptions().apiUrl || "",
2767
+ apiKey: r.getInitialOptions().apiKey || ""
2768
+ }
2769
+ }), n = async () => {
2770
+ const o = await j_n();
2771
+ return (a) => {
2772
+ const s = hxt();
2773
+ return a.addPlugin(o({ credentials: s })), a;
2774
+ };
2775
+ };
2776
+ return r.on("running", ({ value: o }) => {
2777
+ o && X_n(() => {
2778
+ e.update(t()).catch(G_n);
2779
+ });
2780
+ }), hxt() && n().then((o) => {
2781
+ r.addPlugin(o);
2782
+ }).catch((o) => {
2783
+ console.error("Mi18n: Failed to load in-context tools"), console.error(o);
2784
+ }), r;
2785
+ });
2786
+ const uit = "__mi18n_currentLanguage";
2787
+ function Y_n() {
2788
+ return {
2789
+ getLanguage() {
2790
+ return cit("LanguageStorage"), localStorage.getItem(uit) || void 0;
2791
+ },
2792
+ setLanguage(r) {
2793
+ cit("LanguageStorage"), localStorage.setItem(uit, r);
2794
+ }
2795
+ };
2796
+ }
2797
+ const Q$i = () => localStorage.getItem(uit), J$i = () => (r, e) => (e.setLanguageStorage(Y_n()), r);
2798
+ function Z_n() {
2799
+ return {
2800
+ getLanguage({ availableLanguages: r }) {
2801
+ cit("LanguageDetector");
2802
+ const e = window.navigator.language, t = r.find((a) => a === e);
2803
+ if (t)
2804
+ return t;
2805
+ const n = (a) => a.replace(/^(.+?)(-.*)?$/, "$1"), i = n(window.navigator.language), o = r.find((a) => n(a) === i);
2806
+ if (o)
2807
+ return o;
2808
+ }
2809
+ };
2810
+ }
2811
+ const eji = () => (r, e) => (e.setLanguageDetector(Z_n()), r);
2812
+ function tji() {
2813
+ return w_n().use(EXt());
2814
+ }
2815
+ const Q_n = {
2816
+ useSuspense: !0
2817
+ };
2818
+ let EHe;
2819
+ const zXt = () => (EHe || (EHe = mr.createContext(void 0)), EHe), nji = ({ mi18n: r, options: e, children: t, fallback: n }) => {
2820
+ const [i, o] = Fn.useState(!r.isLoaded());
2821
+ Fn.useEffect(() => {
2822
+ r.run().catch((l) => {
2823
+ console.error(l);
2824
+ }).finally(() => {
2825
+ o(!1);
2826
+ });
2827
+ }, [r]);
2828
+ const a = Object.assign(Object.assign({}, Q_n), e), s = zXt();
2829
+ return a.useSuspense ? mr.createElement(s.Provider, { value: { mi18n: r, options: a } }, i ? n : mr.createElement(Fn.Suspense, { fallback: n || null }, t)) : mr.createElement(s.Provider, { value: { mi18n: r, options: a } }, i ? n : t);
2830
+ };
2831
+ let J_n;
2832
+ function exn() {
2833
+ return J_n;
2834
+ }
2835
+ const txn = () => {
2836
+ const r = zXt(), e = Fn.useContext(r) || exn();
2837
+ if (!e)
2838
+ throw new Error("Couldn't find mi18n instance, did you forgot to use `Mi18nProvider`?");
2839
+ return e;
2840
+ }, nxn = () => {
2841
+ const [r, e] = Fn.useState(0), t = Fn.useCallback(() => {
2842
+ e((n) => n + 1);
2843
+ }, [e]);
2844
+ return { instance: r, rerender: t };
2845
+ }, rxn = (r, e) => {
2846
+ const { mi18n: t, options: n } = txn(), i = _Xt(r), o = wN(i).join(":"), a = Object.assign(Object.assign({}, n), e), { rerender: s, instance: l } = nxn(), c = Fn.useRef(), u = Fn.useRef([]);
2847
+ u.current = [];
2848
+ const d = (v) => {
2849
+ var y;
2850
+ u.current.push(v), (y = c.current) === null || y === void 0 || y.subscribeNs(v);
2851
+ }, f = t.isLoaded(i);
2852
+ Fn.useEffect(() => {
2853
+ const v = t.onNsUpdate(s);
2854
+ return c.current = v, v.subscribeNs(i), u.current.forEach((y) => {
2855
+ v.subscribeNs(y);
2856
+ }), () => {
2857
+ v.unsubscribe();
2858
+ };
2859
+ }, [o, t]), Fn.useEffect(() => (t.addActiveNs(i), () => t.removeActiveNs(i)), [o, t]);
2860
+ const g = Fn.useCallback((v) => {
2861
+ var y;
2862
+ const x = (y = v.ns) !== null && y !== void 0 ? y : i?.[0];
2863
+ return d(x), t.t(Object.assign(Object.assign({}, v), { ns: x }));
2864
+ }, [t, l]);
2865
+ if (a.useSuspense && !f)
2866
+ throw t.addActiveNs(i, !0);
2867
+ return { t: g, isLoading: !f };
2868
+ }, rji = (r, e) => {
2869
+ const { t, isLoading: n } = rxn(r, e);
2870
+ return { t: Fn.useCallback((...o) => {
2871
+ const a = SXt(...o);
2872
+ return t(a);
2873
+ }, [t]), isLoading: n };
2874
+ };
2875
+ var M1e = {}, eLe = { exports: {} }, Fz = {}, tLe = { exports: {} }, zHe = {};
2876
+ var pxt;
2877
+ function ixn() {
2878
+ return pxt || (pxt = 1, (function(r) {
1558
2879
  function e(Z, ee) {
1559
2880
  var ie = Z.length;
1560
2881
  Z.push(ee);
@@ -1750,21 +3071,12 @@ function s_n() {
1750
3071
  }
1751
3072
  };
1752
3073
  };
1753
- })(CHe)), CHe;
1754
- }
1755
- var OHe = {};
1756
- /**
1757
- * @license React
1758
- * scheduler.development.js
1759
- *
1760
- * Copyright (c) Facebook, Inc. and its affiliates.
1761
- *
1762
- * This source code is licensed under the MIT license found in the
1763
- * LICENSE file in the root directory of this source tree.
1764
- */
1765
- var uxt;
1766
- function l_n() {
1767
- return uxt || (uxt = 1, (function(r) {
3074
+ })(zHe)), zHe;
3075
+ }
3076
+ var kHe = {};
3077
+ var gxt;
3078
+ function oxn() {
3079
+ return gxt || (gxt = 1, (function(r) {
1768
3080
  process.env.NODE_ENV !== "production" && (function() {
1769
3081
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
1770
3082
  var e = !1, t = 5;
@@ -2024,26 +3336,17 @@ function l_n() {
2024
3336
  var Gt = Ct, an = null;
2025
3337
  r.unstable_IdlePriority = g, r.unstable_ImmediatePriority = c, r.unstable_LowPriority = f, r.unstable_NormalPriority = d, r.unstable_Profiling = an, r.unstable_UserBlockingPriority = u, r.unstable_cancelCallback = Ue, r.unstable_continueExecution = xe, r.unstable_forceFrameRate = _t, r.unstable_getCurrentPriorityLevel = Be, r.unstable_getFirstCallbackNode = Ie, r.unstable_next = Se, r.unstable_pauseExecution = se, r.unstable_requestPaint = Gt, r.unstable_runWithPriority = ye, r.unstable_scheduleCallback = me, r.unstable_shouldYield = pt, r.unstable_wrapCallback = pe, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2026
3338
  })();
2027
- })(OHe)), OHe;
2028
- }
2029
- var dxt;
2030
- function _Xt() {
2031
- return dxt || (dxt = 1, process.env.NODE_ENV === "production" ? tLe.exports = s_n() : tLe.exports = l_n()), tLe.exports;
2032
- }
2033
- /**
2034
- * @license React
2035
- * react-dom.production.min.js
2036
- *
2037
- * Copyright (c) Facebook, Inc. and its affiliates.
2038
- *
2039
- * This source code is licensed under the MIT license found in the
2040
- * LICENSE file in the root directory of this source tree.
2041
- */
2042
- var fxt;
2043
- function c_n() {
2044
- if (fxt) return Fz;
2045
- fxt = 1;
2046
- var r = s0(), e = _Xt();
3339
+ })(kHe)), kHe;
3340
+ }
3341
+ var mxt;
3342
+ function kXt() {
3343
+ return mxt || (mxt = 1, process.env.NODE_ENV === "production" ? tLe.exports = ixn() : tLe.exports = oxn()), tLe.exports;
3344
+ }
3345
+ var vxt;
3346
+ function axn() {
3347
+ if (vxt) return Fz;
3348
+ vxt = 1;
3349
+ var r = s0(), e = kXt();
2047
3350
  function t(de) {
2048
3351
  for (var _e = "https://reactjs.org/docs/error-decoder.html?invariant=" + de, Ye = 1; Ye < arguments.length; Ye++) _e += "&args[]=" + encodeURIComponent(arguments[Ye]);
2049
3352
  return "Minified React error #" + de + "; visit " + _e + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
@@ -7201,20 +8504,11 @@ Error generating stack: ` + cn.message + `
7201
8504
  }, Fz.version = "18.3.1-next-f1338f8080-20240426", Fz;
7202
8505
  }
7203
8506
  var Bz = {};
7204
- /**
7205
- * @license React
7206
- * react-dom.development.js
7207
- *
7208
- * Copyright (c) Facebook, Inc. and its affiliates.
7209
- *
7210
- * This source code is licensed under the MIT license found in the
7211
- * LICENSE file in the root directory of this source tree.
7212
- */
7213
- var hxt;
7214
- function u_n() {
7215
- return hxt || (hxt = 1, process.env.NODE_ENV !== "production" && (function() {
8507
+ var bxt;
8508
+ function sxn() {
8509
+ return bxt || (bxt = 1, process.env.NODE_ENV !== "production" && (function() {
7216
8510
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
7217
- var r = s0(), e = _Xt(), t = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, n = !1;
8511
+ var r = s0(), e = kXt(), t = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, n = !1;
7218
8512
  function i(j) {
7219
8513
  n = j;
7220
8514
  }
@@ -11320,19 +12614,6 @@ Check the render method of \`` + j + "`." : "";
11320
12614
  var te = j && j.nodeName && j.nodeName.toLowerCase();
11321
12615
  return te === "input" ? !!PS[j.type] : te === "textarea";
11322
12616
  }
11323
- /**
11324
- * Checks if an event is supported in the current execution environment.
11325
- *
11326
- * NOTE: This will not work correctly for non-generic events such as `change`,
11327
- * `reset`, `load`, `error`, and `select`.
11328
- *
11329
- * Borrows from Modernizr.
11330
- *
11331
- * @param {string} eventNameSuffix Event name, e.g. "click".
11332
- * @return {boolean} True if the event is supported.
11333
- * @internal
11334
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
11335
- */
11336
12617
  function yb(j) {
11337
12618
  if (!Ue)
11338
12619
  return !1;
@@ -20651,10 +21932,10 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
20651
21932
  Bz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = d_, Bz.createPortal = Zee, Bz.createRoot = aR, Bz.findDOMNode = T8, Bz.flushSync = _w, Bz.hydrate = KD, Bz.hydrateRoot = a3, Bz.render = mX, Bz.unmountComponentAtNode = wC, Bz.unstable_batchedUpdates = d8, Bz.unstable_renderSubtreeIntoContainer = pV, Bz.version = Tv, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
20652
21933
  })()), Bz;
20653
21934
  }
20654
- var pxt;
21935
+ var yxt;
20655
21936
  function C7e() {
20656
- if (pxt) return eLe.exports;
20657
- pxt = 1;
21937
+ if (yxt) return eLe.exports;
21938
+ yxt = 1;
20658
21939
  function r() {
20659
21940
  if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
20660
21941
  if (process.env.NODE_ENV !== "production")
@@ -20666,12 +21947,12 @@ function C7e() {
20666
21947
  }
20667
21948
  }
20668
21949
  }
20669
- return process.env.NODE_ENV === "production" ? (r(), eLe.exports = c_n()) : eLe.exports = u_n(), eLe.exports;
21950
+ return process.env.NODE_ENV === "production" ? (r(), eLe.exports = axn()) : eLe.exports = sxn(), eLe.exports;
20670
21951
  }
20671
- var gxt;
20672
- function d_n() {
20673
- if (gxt) return M1e;
20674
- gxt = 1;
21952
+ var _xt;
21953
+ function lxn() {
21954
+ if (_xt) return M1e;
21955
+ _xt = 1;
20675
21956
  var r = C7e();
20676
21957
  if (process.env.NODE_ENV === "production")
20677
21958
  M1e.createRoot = r.createRoot, M1e.hydrateRoot = r.hydrateRoot;
@@ -20695,24 +21976,15 @@ function d_n() {
20695
21976
  }
20696
21977
  return M1e;
20697
21978
  }
20698
- var f_n = d_n();
20699
- const K$i = /* @__PURE__ */ s4({
21979
+ var cxn = lxn();
21980
+ const iji = /* @__PURE__ */ s4({
20700
21981
  __proto__: null
20701
- }, [f_n]);
21982
+ }, [cxn]);
20702
21983
  var nLe = { exports: {} }, tMe = {};
20703
- /**
20704
- * @license React
20705
- * react-jsx-runtime.production.min.js
20706
- *
20707
- * Copyright (c) Facebook, Inc. and its affiliates.
20708
- *
20709
- * This source code is licensed under the MIT license found in the
20710
- * LICENSE file in the root directory of this source tree.
20711
- */
20712
- var mxt;
20713
- function h_n() {
20714
- if (mxt) return tMe;
20715
- mxt = 1;
21984
+ var xxt;
21985
+ function uxn() {
21986
+ if (xxt) return tMe;
21987
+ xxt = 1;
20716
21988
  var r = s0(), e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
20717
21989
  function a(s, l, c) {
20718
21990
  var u, d = {}, f = null, g = null;
@@ -20724,18 +21996,9 @@ function h_n() {
20724
21996
  return tMe.Fragment = t, tMe.jsx = a, tMe.jsxs = a, tMe;
20725
21997
  }
20726
21998
  var nMe = {};
20727
- /**
20728
- * @license React
20729
- * react-jsx-runtime.development.js
20730
- *
20731
- * Copyright (c) Facebook, Inc. and its affiliates.
20732
- *
20733
- * This source code is licensed under the MIT license found in the
20734
- * LICENSE file in the root directory of this source tree.
20735
- */
20736
- var vxt;
20737
- function p_n() {
20738
- return vxt || (vxt = 1, process.env.NODE_ENV !== "production" && (function() {
21999
+ var wxt;
22000
+ function dxn() {
22001
+ return wxt || (wxt = 1, process.env.NODE_ENV !== "production" && (function() {
20739
22002
  var r = s0(), e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = Symbol.iterator, y = "@@iterator";
20740
22003
  function x(He) {
20741
22004
  if (He === null || typeof He != "object")
@@ -21323,1360 +22586,11 @@ React keys must be passed directly to JSX without using spread:
21323
22586
  nMe.Fragment = n, nMe.jsx = pn, nMe.jsxs = Bt;
21324
22587
  })()), nMe;
21325
22588
  }
21326
- var bxt;
21327
- function g_n() {
21328
- return bxt || (bxt = 1, process.env.NODE_ENV === "production" ? nLe.exports = h_n() : nLe.exports = p_n()), nLe.exports;
21329
- }
21330
- var A_ = g_n();
21331
- function xft(r) {
21332
- return !!(r && typeof r.then == "function");
21333
- }
21334
- function oIe(r, e) {
21335
- return xft(r) ? Promise.resolve(r).then(e) : e(r);
21336
- }
21337
- function yxt(r) {
21338
- const e = (Array.isArray(r) ? r : [r]).map((o) => `'${o}'`), t = e.slice(-2).join(" or ");
21339
- return `Mi18n: You need to specify ${[...e.slice(0, -2), t].join(", ")} option`;
21340
- }
21341
- function m_n(r) {
21342
- return typeof r == "object" && !Array.isArray(r) && r !== null;
21343
- }
21344
- function xXt(r) {
21345
- if (typeof r == "string")
21346
- return [r];
21347
- if (Array.isArray(r))
21348
- return r;
21349
- }
21350
- function wN(r) {
21351
- return xXt(r) || [];
21352
- }
21353
- function v_n(r, e) {
21354
- return m_n(e) ? wN(e?.[r]) : wN(e);
21355
- }
21356
- function rit(r) {
21357
- return Array.from(new Set(r));
21358
- }
21359
- function wXt(r) {
21360
- return r && r.replace(/\/+$/, "");
21361
- }
21362
- function b_n(r) {
21363
- if (typeof r == "string")
21364
- return r;
21365
- if (typeof r?.message == "string")
21366
- return r.message;
21367
- }
21368
- const y_n = (r, e) => fetch(r, e), AXt = (r = y_n) => (e, t) => r(e, Object.assign(Object.assign({}, t), { headers: Object.assign({ "X-Mi18n-SDK-Type": "JS", "X-Mi18n-SDK-Version": "5.16.2" }, t?.headers) }));
21369
- function mZ(r) {
21370
- let e = [];
21371
- return Object.freeze({
21372
- listen(t) {
21373
- const n = (i) => {
21374
- t(i);
21375
- };
21376
- return e.push(n), {
21377
- unsubscribe() {
21378
- e = e.filter((i) => n !== i);
21379
- }
21380
- };
21381
- },
21382
- emit(t) {
21383
- r() && e.forEach((n) => n({ value: t }));
21384
- }
21385
- });
21386
- }
21387
- function __n(r, e, t) {
21388
- const n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
21389
- function o(l) {
21390
- const c = new Set(e());
21391
- i.forEach((u) => {
21392
- (l === void 0 || l?.findIndex((f) => c.has(f) || u.namespaces.has(f)) !== -1) && u.fn({ value: void 0 });
21393
- });
21394
- }
21395
- let a = [];
21396
- function s() {
21397
- if (a.length === 0)
21398
- return;
21399
- const l = a;
21400
- a = [], n.forEach((d) => {
21401
- d({ value: void 0 });
21402
- });
21403
- let c = /* @__PURE__ */ new Set();
21404
- l.forEach((d) => {
21405
- d === void 0 ? c = void 0 : c !== void 0 && d.forEach((f) => c.add(f));
21406
- });
21407
- const u = c ? Array.from(c.keys()) : void 0;
21408
- o(u);
21409
- }
21410
- return Object.freeze({
21411
- emit(l, c) {
21412
- r() && (a.push(l), c ? setTimeout(s, 0) : s());
21413
- },
21414
- listen(l) {
21415
- return n.add(l), {
21416
- unsubscribe: () => {
21417
- n.delete(l);
21418
- }
21419
- };
21420
- },
21421
- listenSome(l) {
21422
- const c = {
21423
- fn: (d) => {
21424
- l(d);
21425
- },
21426
- namespaces: /* @__PURE__ */ new Set()
21427
- };
21428
- i.add(c);
21429
- const u = {
21430
- unsubscribe: () => {
21431
- i.delete(c);
21432
- },
21433
- subscribeNs: (d) => (wN(d).forEach((f) => c.namespaces.add(f)), d === void 0 && c.namespaces.add(t()), u)
21434
- };
21435
- return u;
21436
- }
21437
- });
21438
- }
21439
- function x_n(r, e) {
21440
- let t = !0;
21441
- function n() {
21442
- return t;
21443
- }
21444
- const i = Object.freeze({
21445
- onPendingLanguageChange: mZ(n),
21446
- onLanguageChange: mZ(n),
21447
- onLoadingChange: mZ(n),
21448
- onFetchingChange: mZ(n),
21449
- onInitialLoaded: mZ(n),
21450
- onRunningChange: mZ(n),
21451
- onCacheChange: mZ(n),
21452
- onUpdate: __n(n, r, e),
21453
- onPermanentChange: mZ(n),
21454
- setEmitterActive(o) {
21455
- t = o;
21456
- },
21457
- on: ((o, a) => {
21458
- switch (o) {
21459
- case "pendingLanguage":
21460
- return i.onPendingLanguageChange.listen(a);
21461
- case "language":
21462
- return i.onLanguageChange.listen(a);
21463
- case "loading":
21464
- return i.onLoadingChange.listen(a);
21465
- case "fetching":
21466
- return i.onFetchingChange.listen(a);
21467
- case "initialLoad":
21468
- return i.onInitialLoaded.listen(a);
21469
- case "running":
21470
- return i.onRunningChange.listen(a);
21471
- case "cache":
21472
- return i.onCacheChange.listen(a);
21473
- case "update":
21474
- return i.onUpdate.listen(a);
21475
- case "permanentChange":
21476
- return i.onPermanentChange.listen(a);
21477
- }
21478
- })
21479
- });
21480
- return i.onInitialLoaded.listen(() => i.onUpdate.emit()), i.onLanguageChange.listen(() => i.onUpdate.emit()), i.onCacheChange.listen(({ value: o }) => i.onUpdate.emit([o.namespace], !0)), i;
21481
- }
21482
- const MXt = (r) => {
21483
- const e = /* @__PURE__ */ new Map();
21484
- return Object.entries(r).forEach(([t, n]) => {
21485
- if (n != null) {
21486
- if (typeof n == "object") {
21487
- MXt(n).forEach((i, o) => {
21488
- e.set(t + "." + o, i);
21489
- });
21490
- return;
21491
- }
21492
- e.set(t, n);
21493
- }
21494
- }), e;
21495
- }, FSe = (r) => {
21496
- const [e, ...t] = r.split(":"), n = t.join(":");
21497
- return { language: e, namespace: n || "" };
21498
- }, S$ = ({ language: r, namespace: e }) => e ? `${r}:${e}` : r;
21499
- function w_n(r, e, t, n, i, o, a) {
21500
- const s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
21501
- let c = {}, u = 0;
21502
- function d(y, x, M) {
21503
- const S = S$(y);
21504
- l.set(S, {
21505
- data: MXt(x),
21506
- version: M
21507
- }), r.emit(y);
21508
- }
21509
- function f(y) {
21510
- let x;
21511
- if (!x) {
21512
- const M = c[S$(y)];
21513
- typeof M == "function" && (x = M());
21514
- }
21515
- return x || (x = e(y)), x;
21516
- }
21517
- function g(y, x) {
21518
- var M;
21519
- let S;
21520
- return x && (S = (M = t(y)) === null || M === void 0 ? void 0 : M.catch(() => (console.warn("Mi18n: Failed to fetch data from dev backend"), f(y)))), S || (S = f(y)), S;
21521
- }
21522
- const v = Object.freeze({
21523
- addStaticData(y) {
21524
- y && (c = Object.assign(Object.assign({}, c), y), Object.entries(y).forEach(([x, M]) => {
21525
- if (typeof M != "function") {
21526
- const S = FSe(x), C = l.get(x);
21527
- (!C || C.version === 0) && (d(S, M, 0), v.addNamespaceRecord(S, M, 0));
21528
- }
21529
- }));
21530
- },
21531
- invalidate() {
21532
- s.clear(), u += 1;
21533
- },
21534
- addNamespaceRecord(y, x, M) {
21535
- !y.namespace && Object.values(x).some((S) => typeof S == "object" && S) && Object.entries(x).forEach(([S, C]) => {
21536
- typeof C == "object" && C && d(Object.assign(Object.assign({}, y), { namespace: S }), C, M);
21537
- });
21538
- },
21539
- addRecord(y, x) {
21540
- d(y, x, u), v.addNamespaceRecord(y, x, u);
21541
- },
21542
- exists(y, x = !1) {
21543
- const M = l.get(S$(y));
21544
- return M && x ? M.version === u : !!M;
21545
- },
21546
- getRecord(y) {
21547
- var x;
21548
- return (x = l.get(S$(n(y)))) === null || x === void 0 ? void 0 : x.data;
21549
- },
21550
- getTranslation(y, x) {
21551
- var M;
21552
- return (M = l.get(S$(y))) === null || M === void 0 ? void 0 : M.data.get(x);
21553
- },
21554
- getTranslationNs(y, x, M) {
21555
- var S;
21556
- for (const C of y)
21557
- for (const z of x) {
21558
- const D = (S = l.get(S$({ language: z, namespace: C }))) === null || S === void 0 ? void 0 : S.data.get(M);
21559
- if (D != null)
21560
- return [C];
21561
- }
21562
- return rit(y);
21563
- },
21564
- getTranslationFallback(y, x, M) {
21565
- var S;
21566
- for (const C of y)
21567
- for (const z of x) {
21568
- const D = (S = l.get(S$({ language: z, namespace: C }))) === null || S === void 0 ? void 0 : S.data.get(M);
21569
- if (D != null)
21570
- return { translation: D, namespace: C };
21571
- }
21572
- return { translation: void 0, namespace: y[0] };
21573
- },
21574
- changeTranslation(y, x, M) {
21575
- var S;
21576
- const C = (S = l.get(S$(y))) === null || S === void 0 ? void 0 : S.data;
21577
- C?.set(x, M), r.emit(Object.assign(Object.assign({}, y), { key: x }));
21578
- },
21579
- isFetching(y) {
21580
- if (i())
21581
- return !0;
21582
- if (y === void 0)
21583
- return s.size > 0;
21584
- const x = wN(y);
21585
- return !!Array.from(s.keys()).find((M) => x.includes(FSe(M).namespace));
21586
- },
21587
- isLoading(y, x) {
21588
- const M = wN(x);
21589
- return !!(i() || Array.from(s.keys()).find((S) => {
21590
- const C = FSe(S);
21591
- return (!M.length || M.includes(C.namespace)) && !v.exists({
21592
- namespace: C.namespace,
21593
- language: y
21594
- });
21595
- }));
21596
- },
21597
- async loadRecords(y, x) {
21598
- const M = y.map((C) => {
21599
- const z = n(C), D = S$(z), w = s.get(D);
21600
- if (w)
21601
- return {
21602
- new: !1,
21603
- promise: w,
21604
- keyObject: z,
21605
- cacheKey: D
21606
- };
21607
- const k = g(z, x) || Promise.resolve(void 0);
21608
- return s.set(D, k), {
21609
- new: !0,
21610
- promise: k,
21611
- keyObject: z,
21612
- cacheKey: D
21613
- };
21614
- });
21615
- o.notify(), a.notify();
21616
- const S = await Promise.all(M.map((C) => C.promise));
21617
- return M.forEach((C, z) => {
21618
- const D = s.get(C.cacheKey) !== C.promise;
21619
- if (C.new && !D) {
21620
- s.delete(C.cacheKey);
21621
- const w = S[z];
21622
- w ? v.addRecord(C.keyObject, w) : v.getRecord(C.keyObject) || v.addRecord(C.keyObject, {});
21623
- }
21624
- }), o.notify(), a.notify(), M.map((C) => v.getRecord(C.keyObject));
21625
- },
21626
- getAllRecords() {
21627
- return Array.from(l.entries()).map(([x, M]) => Object.assign(Object.assign({}, FSe(x)), { data: M.data }));
21628
- }
21629
- });
21630
- return v;
21631
- }
21632
- function SXt(r, e) {
21633
- var t = {};
21634
- for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]);
21635
- if (r != null && typeof Object.getOwnPropertySymbols == "function")
21636
- for (var i = 0, n = Object.getOwnPropertySymbols(r); i < n.length; i++)
21637
- e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]);
21638
- return t;
21639
- }
21640
- const A_n = {
21641
- tagAttributes: {
21642
- textarea: ["placeholder"],
21643
- input: ["value", "placeholder"],
21644
- img: ["alt"],
21645
- "*": ["aria-label", "title"]
21646
- },
21647
- restrictedElements: ["script", "style"],
21648
- highlightKeys: ["Alt"],
21649
- highlightColor: "rgb(255, 0, 0)",
21650
- highlightWidth: 5,
21651
- inputPrefix: "%-%mi18n:",
21652
- inputSuffix: "%-%",
21653
- passToParent: ["option", "optgroup"],
21654
- fullKeyEncode: !1
21655
- }, iit = "invalid", M_n = "https://admin.midasbuy.com/i18n/api", S_n = {
21656
- defaultNs: "",
21657
- observerOptions: A_n,
21658
- observerType: "invisible",
21659
- onFormatError: iit,
21660
- apiUrl: M_n,
21661
- fetch: AXt()
21662
- }, oit = (...r) => {
21663
- let e = {};
21664
- return r.forEach((t) => {
21665
- e = Object.assign(Object.assign(Object.assign({}, e), t), { observerOptions: Object.assign(Object.assign({}, e.observerOptions), t?.observerOptions) });
21666
- }), e;
21667
- };
21668
- function _xt(r, e) {
21669
- const t = oit(S_n, e?.initialOptions, r);
21670
- return t.apiUrl = wXt(t.apiUrl), r?.fetch && (t.fetch = AXt(r.fetch)), {
21671
- initialOptions: t,
21672
- activeNamespaces: e?.activeNamespaces || /* @__PURE__ */ new Map(),
21673
- language: e?.language,
21674
- pendingLanguage: e?.language,
21675
- isInitialLoading: !1,
21676
- isRunning: !1
21677
- };
21678
- }
21679
- function C_n(r, e, t, n, i, o, a, s) {
21680
- const l = {
21681
- ui: void 0
21682
- }, c = {
21683
- formatters: [],
21684
- finalFormatter: void 0,
21685
- observer: void 0,
21686
- devBackend: void 0,
21687
- backends: [],
21688
- ui: void 0,
21689
- languageDetector: void 0,
21690
- languageStorage: void 0
21691
- }, u = async ({ keysAndDefaults: U, event: G }) => {
21692
- var q;
21693
- const K = U.map(({ key: W, ns: F, defaultValue: X }) => {
21694
- const { translation: Z } = o({
21695
- key: W,
21696
- ns: F
21697
- });
21698
- return {
21699
- key: W,
21700
- defaultValue: X,
21701
- fallbackNamespaces: n(F),
21702
- namespace: i({ key: W, ns: F })[0],
21703
- translation: Z
21704
- };
21705
- });
21706
- (q = c.ui) === null || q === void 0 || q.handleElementClick(K, G);
21707
- }, d = (U, G) => {
21708
- var q;
21709
- return ((q = c.observer) === null || q === void 0 ? void 0 : q.findPositions(U, G)) || [];
21710
- };
21711
- function f(U) {
21712
- const { translation: G } = o({
21713
- key: U.key,
21714
- ns: U.ns
21715
- });
21716
- return H.formatTranslation(Object.assign(Object.assign({}, U), { translation: G, formatEnabled: !0 }));
21717
- }
21718
- function g() {
21719
- return { fetch: e().fetch };
21720
- }
21721
- function v(U) {
21722
- c.observer = U?.();
21723
- }
21724
- function y() {
21725
- return !!c.observer;
21726
- }
21727
- function x(U) {
21728
- U && c.formatters.push(U);
21729
- }
21730
- function M(U) {
21731
- c.finalFormatter = U;
21732
- }
21733
- function S(U) {
21734
- l.ui = U;
21735
- }
21736
- function C() {
21737
- return !!l.ui;
21738
- }
21739
- function z(U) {
21740
- c.languageStorage = U;
21741
- }
21742
- function D(U) {
21743
- c.languageDetector = U;
21744
- }
21745
- function w() {
21746
- if (!c.languageDetector)
21747
- return;
21748
- const U = t();
21749
- return c.languageDetector.getLanguage(Object.assign({ availableLanguages: U }, g()));
21750
- }
21751
- function k(U) {
21752
- U && c.backends.push(U);
21753
- }
21754
- function R(U) {
21755
- c.devBackend = U;
21756
- }
21757
- function P(U, G) {
21758
- const q = Object.freeze({
21759
- setFinalFormatter: M,
21760
- addFormatter: x,
21761
- setObserver: v,
21762
- hasObserver: y,
21763
- setUi: S,
21764
- hasUi: C,
21765
- setDevBackend: R,
21766
- addBackend: k,
21767
- setLanguageDetector: D,
21768
- setLanguageStorage: z
21769
- });
21770
- G(U, q);
21771
- }
21772
- const H = Object.freeze({
21773
- addPlugin: P,
21774
- run() {
21775
- var U, G;
21776
- const { apiKey: q, apiUrl: K, projectId: W, observerOptions: F } = e();
21777
- c.ui = (U = l.ui) === null || U === void 0 ? void 0 : U.call(l, {
21778
- apiKey: q,
21779
- apiUrl: K,
21780
- projectId: W,
21781
- highlight: H.highlight,
21782
- changeTranslation: a,
21783
- findPositions: d,
21784
- onPermanentChange: s
21785
- }), (G = c.observer) === null || G === void 0 || G.run({
21786
- mouseHighlight: !0,
21787
- options: F,
21788
- translate: f,
21789
- onClick: u
21790
- });
21791
- },
21792
- stop() {
21793
- var U;
21794
- c.ui = void 0, (U = c.observer) === null || U === void 0 || U.stop();
21795
- },
21796
- getLanguageStorage() {
21797
- return c.languageStorage;
21798
- },
21799
- getInitialLanguage() {
21800
- var U;
21801
- const G = t(), q = (U = c.languageStorage) === null || U === void 0 ? void 0 : U.getLanguage(g());
21802
- return oIe(q, (K) => (!G || G.includes(K)) && K ? K : w());
21803
- },
21804
- setStoredLanguage(U) {
21805
- var G;
21806
- (G = c.languageStorage) === null || G === void 0 || G.setLanguage(U, g());
21807
- },
21808
- getDevBackend() {
21809
- return c.devBackend;
21810
- },
21811
- getBackendRecord: (({ language: U, namespace: G }) => {
21812
- for (const q of c.backends) {
21813
- const K = q.getRecord(Object.assign({
21814
- language: U,
21815
- namespace: G
21816
- }, g()));
21817
- if (xft(K))
21818
- return K?.catch((W) => (console.error(W), {}));
21819
- if (K !== void 0)
21820
- return K;
21821
- }
21822
- }),
21823
- getBackendDevRecord: (({ language: U, namespace: G }) => {
21824
- var q;
21825
- const { apiKey: K, apiUrl: W, projectId: F } = e();
21826
- return (q = c.devBackend) === null || q === void 0 ? void 0 : q.getRecord(Object.assign({
21827
- apiKey: K,
21828
- apiUrl: W,
21829
- projectId: F,
21830
- language: U,
21831
- namespace: G
21832
- }, g()));
21833
- }),
21834
- getLanguageDetector() {
21835
- return c.languageDetector;
21836
- },
21837
- retranslate() {
21838
- var U;
21839
- (U = c.observer) === null || U === void 0 || U.retranslate();
21840
- },
21841
- highlight: ((U, G) => {
21842
- var q, K;
21843
- return ((K = (q = c.observer) === null || q === void 0 ? void 0 : q.highlight) === null || K === void 0 ? void 0 : K.call(q, U, G)) || { unhighlight() {
21844
- } };
21845
- }),
21846
- unwrap(U) {
21847
- var G;
21848
- return c.observer ? (G = c.observer) === null || G === void 0 ? void 0 : G.unwrap(U) : { text: U, keys: [] };
21849
- },
21850
- wrap(U) {
21851
- var G;
21852
- return c.observer ? (G = c.observer) === null || G === void 0 ? void 0 : G.wrap(U) : U.translation;
21853
- },
21854
- hasDevBackend() {
21855
- return !!H.getDevBackend();
21856
- },
21857
- formatTranslation(U) {
21858
- var G, { formatEnabled: q } = U, K = SXt(U, ["formatEnabled"]);
21859
- const { key: W, translation: F, defaultValue: X, noWrap: Z, params: ee, orEmpty: ie, ns: le } = K, ue = F || X || (ie ? "" : W);
21860
- let we = ue || (ie ? "" : W);
21861
- const ye = r(), Se = q || !(!((G = c.observer) === null || G === void 0) && G.outputNotFormattable), pe = (me) => c.observer && !Z ? c.observer.wrap({
21862
- key: W,
21863
- translation: me,
21864
- defaultValue: X,
21865
- params: ee,
21866
- ns: le
21867
- }) : me;
21868
- we = pe(we);
21869
- try {
21870
- if (ue && ye && Se)
21871
- for (const me of c.formatters)
21872
- we = me.format({
21873
- translation: we,
21874
- language: ye,
21875
- params: ee
21876
- });
21877
- c.finalFormatter && ue && ye && Se && (we = c.finalFormatter.format({
21878
- translation: we,
21879
- language: ye,
21880
- params: ee
21881
- }));
21882
- } catch (me) {
21883
- console.error(me);
21884
- const se = b_n(me) || iit, xe = e().onFormatError, Ie = typeof xe;
21885
- Ie === "string" ? we = xe : Ie === "function" ? we = xe(se, K) : we = iit, we = pe(we);
21886
- }
21887
- return we;
21888
- }
21889
- });
21890
- return H;
22589
+ var Axt;
22590
+ function fxn() {
22591
+ return Axt || (Axt = 1, process.env.NODE_ENV === "production" ? nLe.exports = uxn() : nLe.exports = dxn()), nLe.exports;
21891
22592
  }
21892
- const xxt = (r, e, t) => {
21893
- let n = r;
21894
- return Object.freeze({
21895
- init(i) {
21896
- n = i;
21897
- },
21898
- notify() {
21899
- const i = e();
21900
- n !== i && t(i), n = i;
21901
- }
21902
- });
21903
- };
21904
- function O_n(r, e, t) {
21905
- let n = _xt(), i;
21906
- const o = Object.freeze({
21907
- init(a) {
21908
- n = _xt(a, n);
21909
- },
21910
- isRunning() {
21911
- return n.isRunning;
21912
- },
21913
- setRunning(a) {
21914
- n.isRunning !== a && (n.isRunning = a, t.emit(a));
21915
- },
21916
- isInitialLoading() {
21917
- return n.isInitialLoading;
21918
- },
21919
- setInitialLoading(a) {
21920
- n.isInitialLoading = a;
21921
- },
21922
- getLanguage() {
21923
- return n.language || n.initialOptions.language;
21924
- },
21925
- setLanguage(a) {
21926
- n.language !== a && (n.language = a, r.emit(a));
21927
- },
21928
- getPendingLanguage() {
21929
- return n.pendingLanguage || o.getLanguage();
21930
- },
21931
- setPendingLanguage(a) {
21932
- n.pendingLanguage !== a && (n.pendingLanguage = a, e.emit(a));
21933
- },
21934
- getInitialOptions() {
21935
- return Object.assign(Object.assign({}, n.initialOptions), i);
21936
- },
21937
- addActiveNs(a) {
21938
- wN(a).forEach((l) => {
21939
- const c = n.activeNamespaces.get(l);
21940
- c !== void 0 ? n.activeNamespaces.set(l, c + 1) : n.activeNamespaces.set(l, 1);
21941
- });
21942
- },
21943
- removeActiveNs(a) {
21944
- wN(a).forEach((l) => {
21945
- const c = n.activeNamespaces.get(l);
21946
- c !== void 0 && c > 1 ? n.activeNamespaces.set(l, c - 1) : n.activeNamespaces.delete(l);
21947
- });
21948
- },
21949
- getRequiredNamespaces() {
21950
- return rit([
21951
- ...n.initialOptions.ns || [n.initialOptions.defaultNs],
21952
- ...wN(n.initialOptions.fallbackNs),
21953
- ...n.activeNamespaces.keys()
21954
- ]);
21955
- },
21956
- getFallbackLangs(a) {
21957
- const s = a || o.getLanguage();
21958
- return s ? rit([
21959
- s,
21960
- ...v_n(s, n.initialOptions.fallbackLanguage)
21961
- ]) : [];
21962
- },
21963
- getFallbackNs() {
21964
- return wN(n.initialOptions.fallbackNs);
21965
- },
21966
- getDefaultNs(a) {
21967
- return a === void 0 ? n.initialOptions.defaultNs : a;
21968
- },
21969
- getAvailableLanguages() {
21970
- if (n.initialOptions.availableLanguages)
21971
- return n.initialOptions.availableLanguages;
21972
- if (n.initialOptions.staticData) {
21973
- const a = Object.keys(n.initialOptions.staticData).map((s) => FSe(s).language);
21974
- return Array.from(new Set(a));
21975
- }
21976
- },
21977
- withDefaultNs(a) {
21978
- return {
21979
- namespace: a.namespace === void 0 ? o.getInitialOptions().defaultNs : a.namespace,
21980
- language: a.language
21981
- };
21982
- },
21983
- overrideCredentials(a) {
21984
- a ? i = Object.assign(Object.assign({}, a), { apiUrl: wXt(a.apiUrl) }) : i = void 0;
21985
- }
21986
- });
21987
- return o;
21988
- }
21989
- function T_n(r) {
21990
- var { ns: e, noWrap: t, orEmpty: n, params: i, language: o } = r, a = SXt(r, ["ns", "noWrap", "orEmpty", "params", "language"]);
21991
- return Object.assign(Object.assign({}, {
21992
- ns: e,
21993
- noWrap: t,
21994
- orEmpty: n,
21995
- language: o
21996
- }), { params: Object.assign({}, a) });
21997
- }
21998
- const CXt = (r, ...e) => {
21999
- let t = {}, n;
22000
- return typeof r == "object" ? t = r : (t.key = r, typeof e[0] == "string" ? (t.defaultValue = e[0], n = e[1]) : typeof e[0] == "object" && (n = e[0])), n && (t = Object.assign(Object.assign({}, T_n(n)), t)), t;
22001
- };
22002
- function E_n({ options: r }) {
22003
- const e = x_n(l, c), t = xxt(!1, () => a.isFetching(), e.onFetchingChange.emit), n = xxt(!1, () => w.isLoading(), e.onLoadingChange.emit), i = O_n(e.onLanguageChange, e.onPendingLanguageChange, e.onRunningChange), o = C_n(i.getLanguage, i.getInitialOptions, i.getAvailableLanguages, u, M, S, f, g), a = w_n(e.onCacheChange, o.getBackendRecord, o.getBackendDevRecord, i.withDefaultNs, i.isInitialLoading, t, n);
22004
- r && v(r);
22005
- let s;
22006
- e.onUpdate.listen(() => {
22007
- i.isRunning() && o.retranslate();
22008
- });
22009
- function l() {
22010
- return i.getFallbackNs();
22011
- }
22012
- function c(k) {
22013
- return i.getDefaultNs(k);
22014
- }
22015
- function u(k) {
22016
- return [...wN(c(k)), ...l()];
22017
- }
22018
- function d(k) {
22019
- return [
22020
- ...wN(k ?? c()),
22021
- ...i.getRequiredNamespaces()
22022
- ];
22023
- }
22024
- function f(k, R, P) {
22025
- const H = i.withDefaultNs(k), U = a.getTranslation(H, R);
22026
- return a.changeTranslation(H, R, P), {
22027
- revert() {
22028
- a.changeTranslation(H, R, U);
22029
- }
22030
- };
22031
- }
22032
- function g(k) {
22033
- e.onPermanentChange.emit({
22034
- key: k.key,
22035
- namespace: k.namespace
22036
- });
22037
- }
22038
- function v(k) {
22039
- i.init(k), a.addStaticData(i.getInitialOptions().staticData);
22040
- }
22041
- function y(k, R) {
22042
- const P = i.getFallbackLangs(k), H = d(R), U = [];
22043
- return P.forEach((G) => {
22044
- H.forEach((q) => {
22045
- a.exists({ language: G, namespace: q }, !0) || U.push({ language: G, namespace: q });
22046
- });
22047
- }), U;
22048
- }
22049
- function x(k, R) {
22050
- const P = y(k, R);
22051
- if (P.length)
22052
- return oIe(w.loadRecords(P), () => {
22053
- });
22054
- }
22055
- function M({ key: k, ns: R }) {
22056
- const P = i.getFallbackLangs(), H = u(R ?? void 0);
22057
- return a.getTranslationNs(H, P, k);
22058
- }
22059
- function S({ key: k, ns: R, language: P }) {
22060
- const H = u(R ?? void 0), U = i.getFallbackLangs(P);
22061
- return a.getTranslationFallback(H, U, k);
22062
- }
22063
- function C() {
22064
- const k = oIe(z(), () => x());
22065
- if (xft(k))
22066
- return i.setInitialLoading(!0), t.notify(), n.notify(), Promise.resolve(k).then(() => {
22067
- i.setInitialLoading(!1), t.notify(), n.notify(), e.onInitialLoaded.emit();
22068
- });
22069
- e.onInitialLoaded.emit();
22070
- }
22071
- function z() {
22072
- if (i.getLanguage())
22073
- return;
22074
- const R = o.getInitialLanguage();
22075
- return oIe(R, (P) => {
22076
- const H = P || i.getInitialOptions().defaultLanguage;
22077
- H && i.setLanguage(H);
22078
- });
22079
- }
22080
- function D() {
22081
- if ((o.getLanguageDetector() || o.getLanguageStorage()) && !i.getAvailableLanguages())
22082
- throw new Error(yxt("availableLanguages"));
22083
- if (!i.getLanguage() && !i.getInitialOptions().defaultLanguage)
22084
- throw new Error(yxt(["defaultLanguage", "language"]));
22085
- }
22086
- const w = Object.freeze(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), i), o), a), {
22087
- init: v,
22088
- getTranslation: S,
22089
- changeTranslation: f,
22090
- getTranslationNs: M,
22091
- getDefaultAndFallbackNs: u,
22092
- async changeLanguage(k) {
22093
- i.getPendingLanguage() === k && i.getLanguage() === k || (i.setPendingLanguage(k), i.isRunning() && await x(k), k === i.getPendingLanguage() && (i.setLanguage(k), o.setStoredLanguage(k)));
22094
- },
22095
- async addActiveNs(k, R) {
22096
- R || i.addActiveNs(k), i.isRunning() && await x(void 0, k);
22097
- },
22098
- loadRecords(k) {
22099
- return a.loadRecords(k, w.isDev());
22100
- },
22101
- async loadRecord(k) {
22102
- return (await w.loadRecords([k]))[0];
22103
- },
22104
- isLoading(k) {
22105
- return a.isLoading(i.getLanguage(), k);
22106
- },
22107
- isLoaded(k) {
22108
- const R = i.getLanguage();
22109
- if (!R)
22110
- return !1;
22111
- const P = i.getFallbackLangs(R), H = d(k), U = [];
22112
- return P.forEach((G) => {
22113
- H.forEach((q) => {
22114
- a.exists({ language: G, namespace: q }) || U.push({ language: G, namespace: q });
22115
- });
22116
- }), U.length === 0;
22117
- },
22118
- t: ((...k) => {
22119
- const R = CXt(...k), { translation: P, namespace: H } = S(R);
22120
- return o.formatTranslation(Object.assign(Object.assign({}, R), { translation: P, ns: H }));
22121
- }),
22122
- isDev() {
22123
- return !!(i.getInitialOptions().apiKey && i.getInitialOptions().apiUrl);
22124
- },
22125
- run() {
22126
- return D(), i.isRunning() || (i.setRunning(!0), o.run(), s = C()), Promise.resolve(s);
22127
- },
22128
- stop() {
22129
- i.isRunning() && (o.stop(), i.setRunning(!1));
22130
- }
22131
- }));
22132
- return w;
22133
- }
22134
- function z_n(r) {
22135
- const e = E_n({
22136
- options: r
22137
- });
22138
- e.isDev() && e.invalidate();
22139
- function t(i) {
22140
- const o = e.isRunning();
22141
- o && e.stop(), i(), e.isDev() && e.invalidate(), o && e.run();
22142
- }
22143
- const n = Object.freeze({
22144
- /**
22145
- * Listen to mi18n events.
22146
- */
22147
- on: e.on,
22148
- /**
22149
- * Listen for specific namespaces changes.
22150
- *
22151
- * ```
22152
- * const sub = mi18n.onUpdate(handler)
22153
- *
22154
- * // subscribe to selected namespace
22155
- * sub.subscribeNs(['common'])
22156
- *
22157
- * // unsubscribe
22158
- * sub.unsubscribe()
22159
- * ```
22160
- */
22161
- onNsUpdate: e.onUpdate.listenSome,
22162
- /**
22163
- * Turn off/on events emitting. Is on by default.
22164
- */
22165
- setEmitterActive: e.setEmitterActive,
22166
- /**
22167
- * @return current language if set.
22168
- */
22169
- getLanguage: e.getLanguage,
22170
- /**
22171
- * `pendingLanguage` represents language which is currently being loaded.
22172
- * @return current `pendingLanguage` if set.
22173
- */
22174
- getPendingLanguage: e.getPendingLanguage,
22175
- /**
22176
- * Change current language.
22177
- * - if not running sets `pendingLanguage`, `language` to the new value
22178
- * - if running sets `pendingLanguage` to the value, fetches necessary data and then changes `language`
22179
- *
22180
- * @return Promise which is resolved when `language` is changed.
22181
- */
22182
- changeLanguage: e.changeLanguage,
22183
- /**
22184
- * Temporarily change translation in cache.
22185
- * @return object with revert method.
22186
- */
22187
- changeTranslation: e.changeTranslation,
22188
- /**
22189
- * Adds namespace(s) list of active namespaces. And if mi18n is running, loads required data.
22190
- */
22191
- addActiveNs: e.addActiveNs,
22192
- /**
22193
- * Remove namespace(s) from active namespaces.
22194
- *
22195
- * Mi18n internally counts how many times was each active namespace added,
22196
- * so this method will remove namespace only if the counter goes down to 0.
22197
- */
22198
- removeActiveNs: e.removeActiveNs,
22199
- /**
22200
- * Manually load multiple records from `Backend` (or `DevBackend` when in dev mode)
22201
- *
22202
- * It loads data together and adds them to cache in one operation, to prevent partly loaded state.
22203
- */
22204
- loadRecords: e.loadRecords,
22205
- /**
22206
- * Manually load record from `Backend` (or `DevBackend` when in dev mode)
22207
- */
22208
- loadRecord: e.loadRecord,
22209
- /**
22210
- *
22211
- */
22212
- addStaticData: e.addStaticData,
22213
- /**
22214
- * Get record from cache.
22215
- */
22216
- getRecord: e.getRecord,
22217
- /**
22218
- * Get all records from cache.
22219
- */
22220
- getAllRecords: e.getAllRecords,
22221
- /**
22222
- * @param ns optional list of namespaces that you are interested in
22223
- * @return `true` if there are data that need to be fetched.
22224
- */
22225
- isLoaded: e.isLoaded,
22226
- /**
22227
- * @return `true` if mi18n is loading initial data (triggered by `run`).
22228
- */
22229
- isInitialLoading: e.isInitialLoading,
22230
- /**
22231
- * @param ns optional list of namespaces that you are interested in
22232
- * @return `true` if mi18n is loading some translations for the first time.
22233
- */
22234
- isLoading: e.isLoading,
22235
- /**
22236
- * @param ns optional list of namespaces that you are interested in
22237
- * @return `true` if mi18n is fetching some translations.
22238
- */
22239
- isFetching: e.isFetching,
22240
- /**
22241
- * @return `true` if mi18n is running.
22242
- */
22243
- isRunning: e.isRunning,
22244
- /**
22245
- * Changes internal state to running: true and loads initial files.
22246
- * Runs runnable plugins mainly Observer if present.
22247
- */
22248
- run: e.run,
22249
- /**
22250
- * Changes internal state to running: false and stops runnable plugins.
22251
- */
22252
- stop: e.stop,
22253
- /**
22254
- * Returns translated and formatted key.
22255
- * If Observer is present and mi18n is running, wraps result to be identifiable in the DOM.
22256
- */
22257
- t: e.t,
22258
- /**
22259
- * Highlight keys that match selection.
22260
- */
22261
- highlight: e.highlight,
22262
- /**
22263
- * @return current Mi18n options.
22264
- */
22265
- getInitialOptions: e.getInitialOptions,
22266
- /**
22267
- * Mi18n is in dev mode if `DevTools` plugin is used and `apiKey` + `apiUrl` are specified.
22268
- * @return `true` if mi18n is in dev mode.
22269
- */
22270
- isDev: e.isDev,
22271
- /**
22272
- * Wraps translation if there is `Observer` plugin
22273
- */
22274
- wrap: e.wrap,
22275
- /**
22276
- * Unwrap translation
22277
- */
22278
- unwrap: e.unwrap,
22279
- /**
22280
- * Override creadentials passed on initialization.
22281
- *
22282
- * When called in running state, mi18n stops and runs again.
22283
- */
22284
- overrideCredentials(i) {
22285
- t(() => e.overrideCredentials(i));
22286
- },
22287
- /**
22288
- * Add mi18n plugin after initialization.
22289
- *
22290
- * When called in running state, mi18n stops and runs again.
22291
- */
22292
- addPlugin(i) {
22293
- i && t(() => e.addPlugin(n, i));
22294
- },
22295
- /**
22296
- * Updates options after instance creation. Extends existing options,
22297
- * so it only changes the fields, that are listed.
22298
- *
22299
- * When called in running state, mi18n stops and runs again.
22300
- */
22301
- updateOptions(i) {
22302
- i && t(() => e.init(i));
22303
- }
22304
- });
22305
- return n;
22306
- }
22307
- const k_n = () => {
22308
- const r = {
22309
- plugins: [],
22310
- options: {}
22311
- }, e = Object.freeze({
22312
- use(t) {
22313
- return r.plugins.push(t), e;
22314
- },
22315
- updateDefaults(t) {
22316
- return r.options = oit(r.options, t), e;
22317
- },
22318
- init(t) {
22319
- const n = z_n(oit(r.options, t));
22320
- return r.plugins.forEach(n.addPlugin), n;
22321
- }
22322
- });
22323
- return e;
22324
- }, OXt = 0, ait = 1, L_n = 2;
22325
- let R_n = class extends Error {
22326
- constructor(e, t, n) {
22327
- let i;
22328
- e === OXt ? i = "Empty parameter" : e === ait ? i = "Unexpected character" : i = "Unexpected end", super(`Mi18n parser: ${i} at ${t} in "${n}"`), this.code = e, this.index = t;
22329
- }
22330
- };
22331
- function wxt(r) {
22332
- return /\s/.test(r);
22333
- }
22334
- const VZ = 0, sit = 1, aIe = 2, THe = 3, EHe = 4, D_n = /* @__PURE__ */ new Set([
22335
- aIe,
22336
- sit,
22337
- VZ
22338
- ]), lit = "'", I_n = /* @__PURE__ */ new Set(["{", "}", lit]), N_n = (r) => /[0-9a-zA-Z_]/.test(r);
22339
- function P_n(r) {
22340
- let e = VZ, t = "", n = "", i = "";
22341
- const o = [], a = [];
22342
- let s = 0;
22343
- function l(f) {
22344
- throw new R_n(f, s, r);
22345
- }
22346
- const c = () => {
22347
- o.push(t), t = "";
22348
- }, u = () => {
22349
- N_n(i) || l(ait), n += i;
22350
- }, d = () => {
22351
- n === "" && l(OXt), a.push(n), n = "";
22352
- };
22353
- for (s = 0; s < r.length; s++)
22354
- switch (i = r[s], e) {
22355
- case VZ:
22356
- i === lit ? (t += i, e = sit) : i === "{" ? (c(), e = THe) : (t += i, e = VZ);
22357
- break;
22358
- case sit:
22359
- I_n.has(i) ? (t = t.slice(0, -1) + i, e = aIe) : (t += i, e = VZ);
22360
- break;
22361
- case aIe:
22362
- i === lit ? e = VZ : (t += i, e = aIe);
22363
- break;
22364
- case THe:
22365
- i === "}" ? (d(), e = VZ) : wxt(i) ? n !== "" && (d(), e = EHe) : (u(), e = THe);
22366
- break;
22367
- case EHe:
22368
- i == "}" ? e = VZ : wxt(i) ? e = EHe : l(ait);
22369
- }
22370
- return D_n.has(e) || l(L_n), c(), [o, a];
22371
- }
22372
- function F_n(r, e) {
22373
- const [t, n] = P_n(r), i = [t[0]];
22374
- for (let o = 1; o < t.length; o++) {
22375
- const a = e?.[n[o - 1]];
22376
- if (a === void 0)
22377
- throw new Error(`Missing parameter "${n[o - 1]}" in "${r}"`);
22378
- i.push(String(a)), i.push(t[o]);
22379
- }
22380
- return i.join("");
22381
- }
22382
- function B_n() {
22383
- return {
22384
- format: ({ translation: r, params: e }) => F_n(r, e)
22385
- };
22386
- }
22387
- const Z$i = () => (r, e) => (e.setFinalFormatter(B_n()), r);
22388
- function W_n() {
22389
- var r, e;
22390
- return typeof ((e = (r = globalThis.window) === null || r === void 0 ? void 0 : r.document) === null || e === void 0 ? void 0 : e.createElement) > "u";
22391
- }
22392
- function cit(r) {
22393
- if (W_n())
22394
- throw new Error(`${r}: Can't run on the server`);
22395
- }
22396
- const q_n = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
22397
- function H_n(r) {
22398
- const e = q_n.indexOf(r);
22399
- if (e === -1)
22400
- throw new Error("Invalid character found: " + r);
22401
- return e;
22402
- }
22403
- function V_n(r) {
22404
- const e = new Uint8Array(r), t = e.length;
22405
- let n = "", i = Math.pow(2, 16) - 1;
22406
- for (let o = 0; o < t; o += i)
22407
- o + i > t && (i = t - o), n += String.fromCharCode.apply(
22408
- null,
22409
- // @ts-ignore
22410
- e.subarray(o, o + i)
22411
- );
22412
- return n;
22413
- }
22414
- function U_n(r) {
22415
- r = r.toUpperCase();
22416
- const e = r.length;
22417
- let t = 0, n = 0, i = 0;
22418
- const o = new Uint8Array(e * 5 / 8 | 0);
22419
- for (let a = 0; a < e; a++)
22420
- n = n << 5 | H_n(r[a]), t += 5, t >= 8 && (o[i++] = n >>> t - 8 & 255, t -= 8);
22421
- return V_n(o.buffer);
22422
- }
22423
- function $_n(r) {
22424
- if (r)
22425
- try {
22426
- const [e, t] = r.split("_");
22427
- if (e === "tgpak") {
22428
- const [n] = U_n(t).split("_");
22429
- return Number(n);
22430
- }
22431
- } catch {
22432
- console.warn("Mi18n: Api key can't be parsed");
22433
- }
22434
- }
22435
- function j_n() {
22436
- return {
22437
- getRecord({ apiUrl: r, apiKey: e, projectId: t, language: n, fetch: i, namespace: o }) {
22438
- var a;
22439
- const s = (a = $_n(e)) !== null && a !== void 0 ? a : t;
22440
- let l = s !== void 0 ? `${r}/v2/projects/${s}/translations/${n}` : `${r}/v2/projects/translations/${n}`;
22441
- return o && (l += `?ns=${o}`), i(l, {
22442
- headers: {
22443
- "X-API-Key": e || "",
22444
- "Content-Type": "application/json"
22445
- }
22446
- }).then((c) => {
22447
- if (c.ok)
22448
- return c.json().then((u) => u[n]);
22449
- throw new Error(c.statusText);
22450
- });
22451
- }
22452
- };
22453
- }
22454
- const Q$i = () => (r, e) => (e.setDevBackend(j_n()), r);
22455
- function G_n(r, e) {
22456
- const t = (n) => {
22457
- var i, o;
22458
- r.includes((i = n.data) === null || i === void 0 ? void 0 : i.type) && e((o = n.data) === null || o === void 0 ? void 0 : o.data);
22459
- };
22460
- return window.addEventListener("message", t, !1), {
22461
- unsubscribe() {
22462
- window.removeEventListener("message", t);
22463
- }
22464
- };
22465
- }
22466
- function X_n({ message: r, recievingMessage: e, data: t, attempts: n = 1, timeout: i = 300 }) {
22467
- let o = !1;
22468
- const a = () => new Promise((l, c) => {
22469
- const u = G_n(e, f);
22470
- window.postMessage({ type: r, data: t }, window.origin);
22471
- const d = setTimeout(v, i);
22472
- function f(y) {
22473
- clearTimeout(d), g(), l(y);
22474
- }
22475
- function g() {
22476
- u.unsubscribe();
22477
- }
22478
- function v() {
22479
- g(), c();
22480
- }
22481
- });
22482
- return {
22483
- cancel() {
22484
- o = !0;
22485
- },
22486
- promise: (async () => {
22487
- for (let l = 0; l < n; l++) {
22488
- if (o)
22489
- return new Promise(() => {
22490
- });
22491
- try {
22492
- return await a();
22493
- } catch {
22494
- continue;
22495
- }
22496
- }
22497
- if (!o)
22498
- throw `Didn't recieve ${e.join(" or ")} in time.`;
22499
- return new Promise(() => {
22500
- });
22501
- })()
22502
- };
22503
- }
22504
- function K_n() {
22505
- let r;
22506
- async function e(t) {
22507
- r?.();
22508
- const { cancel: n, promise: i } = X_n({
22509
- message: "MI18N_READY",
22510
- recievingMessage: ["MI18N_PLUGIN_READY", "MI18N_PLUGIN_UPDATED"],
22511
- data: t,
22512
- attempts: 4
22513
- });
22514
- return r = n, i;
22515
- }
22516
- return {
22517
- update: e
22518
- };
22519
- }
22520
- const Y_n = "mi18n-in-context-tools.umd.min.js", Z_n = "@mi18n/in-context-tools", Q_n = "InContextTools", J_n = "https://cdn.jsdelivr.net/npm";
22521
- function exn(r) {
22522
- return new Promise((e, t) => {
22523
- const n = document.createElement("script");
22524
- n.src = r, n.addEventListener("load", () => e()), n.addEventListener("error", (i) => t(i.error)), document.body.appendChild(n);
22525
- });
22526
- }
22527
- let zHe = null;
22528
- function txn(r) {
22529
- return zHe || (zHe = exn(
22530
- `${J_n}/@mi18n/web/dist/${Y_n}`
22531
- // `${CDN_URL}/@mi18n/web@${version}/dist/${IN_CONTEXT_FILE}`
22532
- ).then(() => window[Z_n][Q_n])), zHe;
22533
- }
22534
- const TXt = "__mi18n_apiKey", EXt = "__mi18n_apiUrl";
22535
- function Axt() {
22536
- const r = sessionStorage.getItem(TXt) || void 0, e = sessionStorage.getItem(EXt) || void 0;
22537
- if (!(!r || !e))
22538
- return {
22539
- apiKey: r,
22540
- apiUrl: e
22541
- };
22542
- }
22543
- function nxn() {
22544
- sessionStorage.removeItem(TXt), sessionStorage.removeItem(EXt);
22545
- }
22546
- function rxn(r) {
22547
- document.readyState !== "loading" ? Promise.resolve().then(() => {
22548
- r();
22549
- }) : document.addEventListener && document.addEventListener("DOMContentLoaded", r);
22550
- }
22551
- let zXt = () => (r) => r;
22552
- const ixn = () => {
22553
- if (typeof window > "u")
22554
- return !1;
22555
- try {
22556
- return typeof sessionStorage < "u" && sessionStorage;
22557
- } catch (r) {
22558
- return console.error("sessionStorage not available", r), !1;
22559
- }
22560
- };
22561
- ixn() && (zXt = () => (r) => {
22562
- const e = K_n(), t = () => ({
22563
- // prevent extension downloading ui library
22564
- uiPresent: !0,
22565
- uiVersion: void 0,
22566
- // mi18n mode
22567
- mode: r.isDev() ? "development" : "production",
22568
- // pass credentials
22569
- config: {
22570
- apiUrl: r.getInitialOptions().apiUrl || "",
22571
- apiKey: r.getInitialOptions().apiKey || ""
22572
- }
22573
- }), n = async () => {
22574
- const o = await txn();
22575
- return (a) => {
22576
- const s = Axt();
22577
- return a.addPlugin(o({ credentials: s })), a;
22578
- };
22579
- };
22580
- return r.on("running", ({ value: o }) => {
22581
- o && rxn(() => {
22582
- e.update(t()).catch(nxn);
22583
- });
22584
- }), Axt() && n().then((o) => {
22585
- r.addPlugin(o);
22586
- }).catch((o) => {
22587
- console.error("Mi18n: Failed to load in-context tools"), console.error(o);
22588
- }), r;
22589
- });
22590
- const uit = "__mi18n_currentLanguage";
22591
- function oxn() {
22592
- return {
22593
- getLanguage() {
22594
- return cit("LanguageStorage"), localStorage.getItem(uit) || void 0;
22595
- },
22596
- setLanguage(r) {
22597
- cit("LanguageStorage"), localStorage.setItem(uit, r);
22598
- }
22599
- };
22600
- }
22601
- const J$i = () => localStorage.getItem(uit), eji = () => (r, e) => (e.setLanguageStorage(oxn()), r);
22602
- function axn() {
22603
- return {
22604
- getLanguage({ availableLanguages: r }) {
22605
- cit("LanguageDetector");
22606
- const e = window.navigator.language, t = r.find((a) => a === e);
22607
- if (t)
22608
- return t;
22609
- const n = (a) => a.replace(/^(.+?)(-.*)?$/, "$1"), i = n(window.navigator.language), o = r.find((a) => n(a) === i);
22610
- if (o)
22611
- return o;
22612
- }
22613
- };
22614
- }
22615
- const tji = () => (r, e) => (e.setLanguageDetector(axn()), r);
22616
- function nji() {
22617
- return k_n().use(zXt());
22618
- }
22619
- const sxn = {
22620
- useSuspense: !0
22621
- };
22622
- let kHe;
22623
- const kXt = () => (kHe || (kHe = mr.createContext(void 0)), kHe), rji = ({ mi18n: r, options: e, children: t, fallback: n }) => {
22624
- const [i, o] = Fn.useState(!r.isLoaded());
22625
- Fn.useEffect(() => {
22626
- r.run().catch((l) => {
22627
- console.error(l);
22628
- }).finally(() => {
22629
- o(!1);
22630
- });
22631
- }, [r]);
22632
- const a = Object.assign(Object.assign({}, sxn), e), s = kXt();
22633
- return a.useSuspense ? mr.createElement(s.Provider, { value: { mi18n: r, options: a } }, i ? n : mr.createElement(Fn.Suspense, { fallback: n || null }, t)) : mr.createElement(s.Provider, { value: { mi18n: r, options: a } }, i ? n : t);
22634
- };
22635
- let lxn;
22636
- function cxn() {
22637
- return lxn;
22638
- }
22639
- const uxn = () => {
22640
- const r = kXt(), e = Fn.useContext(r) || cxn();
22641
- if (!e)
22642
- throw new Error("Couldn't find mi18n instance, did you forgot to use `Mi18nProvider`?");
22643
- return e;
22644
- }, dxn = () => {
22645
- const [r, e] = Fn.useState(0), t = Fn.useCallback(() => {
22646
- e((n) => n + 1);
22647
- }, [e]);
22648
- return { instance: r, rerender: t };
22649
- }, fxn = (r, e) => {
22650
- const { mi18n: t, options: n } = uxn(), i = xXt(r), o = wN(i).join(":"), a = Object.assign(Object.assign({}, n), e), { rerender: s, instance: l } = dxn(), c = Fn.useRef(), u = Fn.useRef([]);
22651
- u.current = [];
22652
- const d = (v) => {
22653
- var y;
22654
- u.current.push(v), (y = c.current) === null || y === void 0 || y.subscribeNs(v);
22655
- }, f = t.isLoaded(i);
22656
- Fn.useEffect(() => {
22657
- const v = t.onNsUpdate(s);
22658
- return c.current = v, v.subscribeNs(i), u.current.forEach((y) => {
22659
- v.subscribeNs(y);
22660
- }), () => {
22661
- v.unsubscribe();
22662
- };
22663
- }, [o, t]), Fn.useEffect(() => (t.addActiveNs(i), () => t.removeActiveNs(i)), [o, t]);
22664
- const g = Fn.useCallback((v) => {
22665
- var y;
22666
- const x = (y = v.ns) !== null && y !== void 0 ? y : i?.[0];
22667
- return d(x), t.t(Object.assign(Object.assign({}, v), { ns: x }));
22668
- }, [t, l]);
22669
- if (a.useSuspense && !f)
22670
- throw t.addActiveNs(i, !0);
22671
- return { t: g, isLoading: !f };
22672
- }, iji = (r, e) => {
22673
- const { t, isLoading: n } = fxn(r, e);
22674
- return { t: Fn.useCallback((...o) => {
22675
- const a = CXt(...o);
22676
- return t(a);
22677
- }, [t]), isLoading: n };
22678
- };
22679
- var dit = function(r, e) {
22593
+ var A_ = fxn(), dit = function(r, e) {
22680
22594
  return dit = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
22681
22595
  t.__proto__ = n;
22682
22596
  } || function(t, n) {
@@ -23012,20 +22926,6 @@ var Kme = {
23012
22926
  structural: Mxn,
23013
22927
  default: Sxn
23014
22928
  };
23015
- /*! *****************************************************************************
23016
- Copyright (c) Microsoft Corporation. All rights reserved.
23017
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
23018
- this file except in compliance with the License. You may obtain a copy of the
23019
- License at http://www.apache.org/licenses/LICENSE-2.0
23020
-
23021
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23022
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
23023
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
23024
- MERCHANTABLITY OR NON-INFRINGEMENT.
23025
-
23026
- See the Apache Version 2.0 License for specific language governing permissions
23027
- and limitations under the License.
23028
- ***************************************************************************** */
23029
22929
  var fit = function(r, e) {
23030
22930
  return fit = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
23031
22931
  t.__proto__ = n;
@@ -25280,20 +25180,6 @@ var yS;
25280
25180
  (function(r) {
25281
25181
  r.afterCreate = "afterCreate", r.afterAttach = "afterAttach", r.afterCreationFinalization = "afterCreationFinalization", r.beforeDetach = "beforeDetach", r.beforeDestroy = "beforeDestroy";
25282
25182
  })(yS || (yS = {}));
25283
- /*! *****************************************************************************
25284
- Copyright (c) Microsoft Corporation.
25285
-
25286
- Permission to use, copy, modify, and/or distribute this software for any
25287
- purpose with or without fee is hereby granted.
25288
-
25289
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
25290
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
25291
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25292
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
25293
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25294
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25295
- PERFORMANCE OF THIS SOFTWARE.
25296
- ***************************************************************************** */
25297
25183
  var xit = function(r, e) {
25298
25184
  return xit = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
25299
25185
  t.__proto__ = n;
@@ -30465,12 +30351,6 @@ function dSn() {
30465
30351
  }
30466
30352
  var fSn = dSn();
30467
30353
  const hSn = /* @__PURE__ */ ya(fSn);
30468
- /**
30469
- * @name match-sorter
30470
- * @license MIT license.
30471
- * @copyright (c) 2020 Kent C. Dodds
30472
- * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
30473
- */
30474
30354
  const DE = {
30475
30355
  CASE_SENSITIVE_EQUAL: 7,
30476
30356
  EQUAL: 6,
@@ -30654,11 +30534,6 @@ function ASn(r) {
30654
30534
  ...r
30655
30535
  };
30656
30536
  }
30657
- //! moment.js
30658
- //! version : 2.30.1
30659
- //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
30660
- //! license : MIT
30661
- //! momentjs.com
30662
30537
  var dYt;
30663
30538
  function bl() {
30664
30539
  return dYt.apply(null, arguments);
@@ -33190,7 +33065,6 @@ ev("X", function(r, e, t) {
33190
33065
  ev("x", function(r, e, t) {
33191
33066
  t._d = new Date($h(r));
33192
33067
  });
33193
- //! moment.js
33194
33068
  bl.version = "2.30.1";
33195
33069
  MSn(ey);
33196
33070
  bl.fn = Fa;
@@ -35329,11 +35203,6 @@ function c4n() {
35329
35203
  var u4n = c4n();
35330
35204
  const $ji = /* @__PURE__ */ ya(u4n);
35331
35205
  var gGe = { exports: {} };
35332
- /*!
35333
- Copyright (c) 2018 Jed Watson.
35334
- Licensed under the MIT License (MIT), see
35335
- http://jedwatson.github.io/classnames
35336
- */
35337
35206
  var NCt;
35338
35207
  function _m() {
35339
35208
  return NCt || (NCt = 1, (function(r) {
@@ -36609,14 +36478,6 @@ function Czn(r, e, t) {
36609
36478
  }, l;
36610
36479
  }
36611
36480
  var lLe = { exports: {} }, Pg = {};
36612
- /** @license React v16.13.1
36613
- * react-is.production.min.js
36614
- *
36615
- * Copyright (c) Facebook, Inc. and its affiliates.
36616
- *
36617
- * This source code is licensed under the MIT license found in the
36618
- * LICENSE file in the root directory of this source tree.
36619
- */
36620
36481
  var yOt;
36621
36482
  function Ozn() {
36622
36483
  if (yOt) return Pg;
@@ -36684,14 +36545,6 @@ function Ozn() {
36684
36545
  }, Pg.typeOf = C, Pg;
36685
36546
  }
36686
36547
  var Fg = {};
36687
- /** @license React v16.13.1
36688
- * react-is.development.js
36689
- *
36690
- * Copyright (c) Facebook, Inc. and its affiliates.
36691
- *
36692
- * This source code is licensed under the MIT license found in the
36693
- * LICENSE file in the root directory of this source tree.
36694
- */
36695
36548
  var _Ot;
36696
36549
  function Tzn() {
36697
36550
  return _Ot || (_Ot = 1, process.env.NODE_ENV !== "production" && (function() {
@@ -37299,11 +37152,6 @@ function hGi({
37299
37152
  return S.ref = S[0], S.inView = S[1], S.entry = S[2], S;
37300
37153
  }
37301
37154
  var dLe = { exports: {} };
37302
- /*
37303
- object-assign
37304
- (c) Sindre Sorhus
37305
- @license MIT
37306
- */
37307
37155
  var tXe, qOt;
37308
37156
  function skn() {
37309
37157
  if (qOt) return tXe;
@@ -37859,15 +37707,6 @@ function pkn() {
37859
37707
  var gkn = pkn();
37860
37708
  const pGi = /* @__PURE__ */ ya(gkn);
37861
37709
  var fLe = { exports: {} }, Bg = {};
37862
- /**
37863
- * @license React
37864
- * react-is.production.min.js
37865
- *
37866
- * Copyright (c) Facebook, Inc. and its affiliates.
37867
- *
37868
- * This source code is licensed under the MIT license found in the
37869
- * LICENSE file in the root directory of this source tree.
37870
- */
37871
37710
  var YOt;
37872
37711
  function mkn() {
37873
37712
  if (YOt) return Bg;
@@ -37937,15 +37776,6 @@ function mkn() {
37937
37776
  }, Bg.typeOf = y, Bg;
37938
37777
  }
37939
37778
  var Wg = {};
37940
- /**
37941
- * @license React
37942
- * react-is.development.js
37943
- *
37944
- * Copyright (c) Facebook, Inc. and its affiliates.
37945
- *
37946
- * This source code is licensed under the MIT license found in the
37947
- * LICENSE file in the root directory of this source tree.
37948
- */
37949
37779
  var ZOt;
37950
37780
  function vkn() {
37951
37781
  return ZOt || (ZOt = 1, process.env.NODE_ENV !== "production" && (function() {
@@ -38679,9 +38509,6 @@ function Skn() {
38679
38509
  del: 46,
38680
38510
  cmd: 91
38681
38511
  };
38682
- /*!
38683
- * Programatically add the following
38684
- */
38685
38512
  for (o = 97; o < 123; o++) n[String.fromCharCode(o)] = o - 32;
38686
38513
  for (var o = 48; o < 58; o++) n[o - 48] = o;
38687
38514
  for (o = 1; o < 13; o++) n["f" + o] = o + 111;
@@ -39640,14 +39467,6 @@ function kkn() {
39640
39467
  var Lkn = kkn();
39641
39468
  const vGi = /* @__PURE__ */ ya(Lkn);
39642
39469
  var mLe = { exports: {} }, jm = {};
39643
- /** @license React v17.0.2
39644
- * react-is.production.min.js
39645
- *
39646
- * Copyright (c) Facebook, Inc. and its affiliates.
39647
- *
39648
- * This source code is licensed under the MIT license found in the
39649
- * LICENSE file in the root directory of this source tree.
39650
- */
39651
39470
  var d3t;
39652
39471
  function Rkn() {
39653
39472
  if (d3t) return jm;
@@ -39718,14 +39537,6 @@ function Rkn() {
39718
39537
  }, jm.typeOf = S, jm;
39719
39538
  }
39720
39539
  var Gm = {};
39721
- /** @license React v17.0.2
39722
- * react-is.development.js
39723
- *
39724
- * Copyright (c) Facebook, Inc. and its affiliates.
39725
- *
39726
- * This source code is licensed under the MIT license found in the
39727
- * LICENSE file in the root directory of this source tree.
39728
- */
39729
39540
  var f3t;
39730
39541
  function Dkn() {
39731
39542
  return f3t || (f3t = 1, process.env.NODE_ENV !== "production" && (function() {
@@ -43116,7 +42927,6 @@ Arguments: ` + Array.prototype.slice.call(vt).join("") + `
43116
42927
  }), yn("x", function(ot, Te, Ze) {
43117
42928
  Ze._d = new Date(Wn(ot));
43118
42929
  });
43119
- //! moment.js
43120
42930
  return n.version = "2.30.1", i(Ka), n.fn = si, n.min = y1, n.max = Sf, n.now = bg, n.utc = v, n.unix = Fd, n.months = Jf, n.isDate = d, n.locale = Ua, n.invalid = C, n.duration = D0, n.isMoment = R, n.weekdays = Q1, n.parseZone = Gc, n.localeData = ga, n.isDuration = u0, n.monthsShort = Ag, n.weekdaysMin = av, n.defineLocale = ll, n.updateLocale = cl, n.locales = hc, n.weekdaysShort = Qp, n.normalizeUnits = yt, n.relativeTimeRounding = gc, n.relativeTimeThreshold = pd, n.calendarFormat = Xp, n.prototype = si, n.HTML5_FMT = {
43121
42931
  DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
43122
42932
  // <input type="datetime-local" />
@@ -43146,7 +42956,6 @@ function oLn() {
43146
42956
  (function(t, n) {
43147
42957
  n(typeof Eae == "function" ? SQt() : t.moment);
43148
42958
  })(iLn, (function(t) {
43149
- //! moment.js locale configuration
43150
42959
  var n = t.defineLocale("zh-cn", {
43151
42960
  months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split(
43152
42961
  "_"
@@ -43242,7 +43051,6 @@ function sLn() {
43242
43051
  (function(t, n) {
43243
43052
  n(typeof Eae == "function" ? SQt() : t.moment);
43244
43053
  })(aLn, (function(t) {
43245
- //! moment.js locale configuration
43246
43054
  function n(o, a, s, l) {
43247
43055
  var c = {
43248
43056
  m: ["eine Minute", "einer Minute"],
@@ -43317,12 +43125,6 @@ function sLn() {
43317
43125
  })()), Uit.exports;
43318
43126
  }
43319
43127
  sLn();
43320
- /**!
43321
- * Sortable 1.15.0
43322
- * @author RubaXa <trash@rubaxa.org>
43323
- * @author owenm <owen23355@gmail.com>
43324
- * @license MIT
43325
- */
43326
43128
  function L3t(r, e) {
43327
43129
  var t = Object.keys(r);
43328
43130
  if (Object.getOwnPropertySymbols) {
@@ -53851,12 +53653,6 @@ const LNn = /* @__PURE__ */ ya(gen), VGi = /* @__PURE__ */ s4({
53851
53653
  default: LNn
53852
53654
  }, [gen]);
53853
53655
  var kIe = { exports: {} };
53854
- /* @license
53855
- Papa Parse
53856
- v5.5.3
53857
- https://github.com/mholt/PapaParse
53858
- License: MIT
53859
- */
53860
53656
  var RNn = kIe.exports, bEt;
53861
53657
  function DNn() {
53862
53658
  return bEt || (bEt = 1, (function(r, e) {
@@ -118029,7 +117825,6 @@ class iZe {
118029
117825
  return e.type === 2 && this.owner === e.owner;
118030
117826
  }
118031
117827
  }
118032
- /*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */
118033
117828
  function WQn(r) {
118034
117829
  if (Array.isArray(r)) {
118035
117830
  for (var e = 0, t = Array(r.length); e < r.length; e++)
@@ -148634,7 +148429,6 @@ const Har = /* @__PURE__ */ ya(Psn), QKi = /* @__PURE__ */ s4({
148634
148429
  default: Har
148635
148430
  }, [Psn]);
148636
148431
  var CZe = { exports: {} };
148637
- /*! ExcelJS 19-10-2023 */
148638
148432
  var gRt;
148639
148433
  function Var() {
148640
148434
  return gRt || (gRt = 1, (function(r, e) {
@@ -164319,7 +164113,6 @@ function Var() {
164319
164113
  return this._update(d), this._reseed++, a.encode(v, u);
164320
164114
  };
164321
164115
  }, { "hash.js": 426, "minimalistic-assert": 453, "minimalistic-crypto-utils": 454 }], 439: [function(t, n, i) {
164322
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
164323
164116
  i.read = function(o, a, s, l, c) {
164324
164117
  var u, d, f = 8 * c - l - 1, g = (1 << f) - 1, v = g >> 1, y = -7, x = s ? c - 1 : 0, M = s ? -1 : 1, S = o[a + x];
164325
164118
  for (x += M, u = S & (1 << -y) - 1, S >>= -y, y += f; y > 0; u = 256 * u + o[a + x], x += M, y -= 8) ;
@@ -164350,17 +164143,6 @@ function Var() {
164350
164143
  }, {}], 441: [function(t, n, i) {
164351
164144
  (function(o, a, s, l, c, u, d, f) {
164352
164145
  (function() {
164353
- /*!
164354
-
164355
- JSZip v3.10.1 - A JavaScript class for generating and reading zip files
164356
- <http://stuartk.com/jszip>
164357
-
164358
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
164359
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
164360
-
164361
- JSZip uses the library pako released under the MIT license :
164362
- https://github.com/nodeca/pako/blob/main/LICENSE
164363
- */
164364
164146
  (function(g) {
164365
164147
  typeof i == "object" && n !== void 0 ? n.exports = g() : (typeof window < "u" ? window : a !== void 0 ? a : typeof self < "u" ? self : this).JSZip = g();
164366
164148
  })((function() {
@@ -169504,7 +169286,6 @@ use chrome, FireFox or Internet Explorer 11`);
169504
169286
  return w.writeInt32LE(this._a, 0), w.writeInt32LE(this._b, 4), w.writeInt32LE(this._c, 8), w.writeInt32LE(this._d, 12), w.writeInt32LE(this._e, 16), w;
169505
169287
  }, n.exports = y;
169506
169288
  }, { buffer: 220, "hash-base": 425, inherits: 440 }], 494: [function(t, n, i) {
169507
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
169508
169289
  var o = t("buffer"), a = o.Buffer;
169509
169290
  function s(c, u) {
169510
169291
  for (var d in c) u[d] = c[d];
@@ -171588,13 +171369,6 @@ use chrome, FireFox or Internet Explorer 11`);
171588
171369
  };
171589
171370
  i.default = s;
171590
171371
  }, { "./validate.js": 541 }], 543: [function(t, n, i) {
171591
- /**
171592
- * Character classes and associated utilities for the 5th edition of XML 1.0.
171593
- *
171594
- * @author Louis-Dominique Dubeau
171595
- * @license MIT
171596
- * @copyright Louis-Dominique Dubeau
171597
- */
171598
171372
  Object.defineProperty(i, "__esModule", { value: !0 }), i.CHAR = `
171599
171373
  \r -퟿-�𐀀-􏿿`, i.S = ` \r
171600
171374
  `, i.NAME_START_CHAR = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", i.NAME_CHAR = "-" + i.NAME_START_CHAR + ".0-9·̀-ͯ‿-⁀", i.CHAR_RE = new RegExp("^[" + i.CHAR + "]$", "u"), i.S_RE = new RegExp("^[" + i.S + "]+$", "u"), i.NAME_START_CHAR_RE = new RegExp("^[" + i.NAME_START_CHAR + "]$", "u"), i.NAME_CHAR_RE = new RegExp("^[" + i.NAME_CHAR + "]$", "u"), i.NAME_RE = new RegExp("^[" + i.NAME_START_CHAR + "][" + i.NAME_CHAR + "]*$", "u"), i.NMTOKEN_RE = new RegExp("^[" + i.NAME_CHAR + "]+$", "u");
@@ -171609,13 +171383,6 @@ use chrome, FireFox or Internet Explorer 11`);
171609
171383
  return o(a) || a >= 48 && a <= 57 || a === 45 || a === 46 || a === 183 || a >= 768 && a <= 879 || a >= 8255 && a <= 8256;
171610
171384
  };
171611
171385
  }, {}], 544: [function(t, n, i) {
171612
- /**
171613
- * Character classes and associated utilities for the 2nd edition of XML 1.1.
171614
- *
171615
- * @author Louis-Dominique Dubeau
171616
- * @license MIT
171617
- * @copyright Louis-Dominique Dubeau
171618
- */
171619
171386
  Object.defineProperty(i, "__esModule", { value: !0 }), i.CHAR = "-퟿-�𐀀-􏿿", i.RESTRICTED_CHAR = "-\b\v\f--„†-Ÿ", i.S = ` \r
171620
171387
  `, i.NAME_START_CHAR = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", i.NAME_CHAR = "-" + i.NAME_START_CHAR + ".0-9·̀-ͯ‿-⁀", i.CHAR_RE = new RegExp("^[" + i.CHAR + "]$", "u"), i.RESTRICTED_CHAR_RE = new RegExp("^[" + i.RESTRICTED_CHAR + "]$", "u"), i.S_RE = new RegExp("^[" + i.S + "]+$", "u"), i.NAME_START_CHAR_RE = new RegExp("^[" + i.NAME_START_CHAR + "]$", "u"), i.NAME_CHAR_RE = new RegExp("^[" + i.NAME_CHAR + "]$", "u"), i.NAME_RE = new RegExp("^[" + i.NAME_START_CHAR + "][" + i.NAME_CHAR + "]*$", "u"), i.NMTOKEN_RE = new RegExp("^[" + i.NAME_CHAR + "]+$", "u");
171621
171388
  function o(a) {
@@ -171633,13 +171400,6 @@ use chrome, FireFox or Internet Explorer 11`);
171633
171400
  return o(a) || a >= 48 && a <= 57 || a === 45 || a === 46 || a === 183 || a >= 768 && a <= 879 || a >= 8255 && a <= 8256;
171634
171401
  };
171635
171402
  }, {}], 545: [function(t, n, i) {
171636
- /**
171637
- * Character class utilities for XML NS 1.0 edition 3.
171638
- *
171639
- * @author Louis-Dominique Dubeau
171640
- * @license MIT
171641
- * @copyright Louis-Dominique Dubeau
171642
- */
171643
171403
  function o(a) {
171644
171404
  return a >= 65 && a <= 90 || a === 95 || a >= 97 && a <= 122 || a >= 192 && a <= 214 || a >= 216 && a <= 246 || a >= 248 && a <= 767 || a >= 880 && a <= 893 || a >= 895 && a <= 8191 || a >= 8204 && a <= 8205 || a >= 8304 && a <= 8591 || a >= 11264 && a <= 12271 || a >= 12289 && a <= 55295 || a >= 63744 && a <= 64975 || a >= 65008 && a <= 65533 || a >= 65536 && a <= 983039;
171645
171405
  }
@@ -171655,15 +171415,6 @@ const Uar = /* @__PURE__ */ ya(Fsn), JKi = /* @__PURE__ */ s4({
171655
171415
  __proto__: null,
171656
171416
  default: Uar
171657
171417
  }, [Fsn]);
171658
- /*!
171659
- * Cropper.js v1.6.2
171660
- * https://fengyuanchen.github.io/cropperjs
171661
- *
171662
- * Copyright 2015-present Chen Fengyuan
171663
- * Released under the MIT license
171664
- *
171665
- * Date: 2024-04-21T07:43:05.335Z
171666
- */
171667
171418
  function mRt(r, e) {
171668
171419
  var t = Object.keys(r);
171669
171420
  if (Object.getOwnPropertySymbols) {
@@ -180873,7 +180624,6 @@ Required: ` + E.join(", "));
180873
180624
  be.replace(XD(be.attr("type"), be.name === "object" ? be.attr("data") : be.attr("src"), be.attr("width"), be.attr("height"), E.sandbox_iframes));
180874
180625
  })), E.sandbox_iframes && _.addNodeFilter("iframe", (oe) => Qe(oe, (be) => be.attr("sandbox", "")));
180875
180626
  };
180876
- /*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */
180877
180627
  const {
180878
180628
  entries: O8,
180879
180629
  setPrototypeOf: T8,
@@ -195031,7 +194781,6 @@ Components: ` + JSON.stringify(N.components, null, 2));
195031
194781
  })
195032
194782
  };
195033
194783
  };
195034
- /*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */
195035
194784
  const {
195036
194785
  entries: sz,
195037
194786
  setPrototypeOf: AD,
@@ -226786,11 +226535,6 @@ tinymce.Resource.add(
226786
226535
  `
226787
226536
  );
226788
226537
  var yNe = { exports: {} };
226789
- /*!
226790
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
226791
- * License https://froala.com/wysiwyg-editor/terms/
226792
- * Copyright 2014-2020 Froala Labs
226793
- */
226794
226538
  var Nlr = yNe.exports, zDt;
226795
226539
  function vg() {
226796
226540
  return zDt || (zDt = 1, (function(r, e) {
@@ -230981,11 +230725,6 @@ function vg() {
230981
230725
  var Plr = vg();
230982
230726
  const nYi = /* @__PURE__ */ ya(Plr);
230983
230727
  var Oct = { exports: {} };
230984
- /*!
230985
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
230986
- * License https://froala.com/wysiwyg-editor/terms/
230987
- * Copyright 2014-2020 Froala Labs
230988
- */
230989
230728
  var Flr = Oct.exports, kDt;
230990
230729
  function Blr() {
230991
230730
  return kDt || (kDt = 1, (function(r, e) {
@@ -231055,11 +230794,6 @@ function Blr() {
231055
230794
  }
231056
230795
  Blr();
231057
230796
  var Tct = { exports: {} };
231058
- /*!
231059
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
231060
- * License https://froala.com/wysiwyg-editor/terms/
231061
- * Copyright 2014-2020 Froala Labs
231062
- */
231063
230797
  var Wlr = Tct.exports, LDt;
231064
230798
  function qlr() {
231065
230799
  return LDt || (LDt = 1, (function(r, e) {
@@ -231168,11 +230902,6 @@ function qlr() {
231168
230902
  }
231169
230903
  qlr();
231170
230904
  var Ect = { exports: {} };
231171
- /*!
231172
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
231173
- * License https://froala.com/wysiwyg-editor/terms/
231174
- * Copyright 2014-2020 Froala Labs
231175
- */
231176
230905
  var Hlr = Ect.exports, RDt;
231177
230906
  function Vlr() {
231178
230907
  return RDt || (RDt = 1, (function(r, e) {
@@ -231212,11 +230941,6 @@ function Vlr() {
231212
230941
  }
231213
230942
  Vlr();
231214
230943
  var zct = { exports: {} };
231215
- /*!
231216
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
231217
- * License https://froala.com/wysiwyg-editor/terms/
231218
- * Copyright 2014-2020 Froala Labs
231219
- */
231220
230944
  var Ulr = zct.exports, DDt;
231221
230945
  function $lr() {
231222
230946
  return DDt || (DDt = 1, (function(r, e) {
@@ -231305,11 +231029,6 @@ function $lr() {
231305
231029
  }
231306
231030
  $lr();
231307
231031
  var kct = { exports: {} };
231308
- /*!
231309
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
231310
- * License https://froala.com/wysiwyg-editor/terms/
231311
- * Copyright 2014-2020 Froala Labs
231312
- */
231313
231032
  var jlr = kct.exports, IDt;
231314
231033
  function Glr() {
231315
231034
  return IDt || (IDt = 1, (function(r, e) {
@@ -231397,11 +231116,6 @@ function Glr() {
231397
231116
  }
231398
231117
  Glr();
231399
231118
  var Lct = { exports: {} };
231400
- /*!
231401
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
231402
- * License https://froala.com/wysiwyg-editor/terms/
231403
- * Copyright 2014-2020 Froala Labs
231404
- */
231405
231119
  var Xlr = Lct.exports, NDt;
231406
231120
  function Klr() {
231407
231121
  return NDt || (NDt = 1, (function(r, e) {
@@ -231441,11 +231155,6 @@ function Klr() {
231441
231155
  }
231442
231156
  Klr();
231443
231157
  var Rct = { exports: {} };
231444
- /*!
231445
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
231446
- * License https://froala.com/wysiwyg-editor/terms/
231447
- * Copyright 2014-2020 Froala Labs
231448
- */
231449
231158
  var Ylr = Rct.exports, PDt;
231450
231159
  function Zlr() {
231451
231160
  return PDt || (PDt = 1, (function(r, e) {
@@ -231506,11 +231215,6 @@ function Zlr() {
231506
231215
  }
231507
231216
  Zlr();
231508
231217
  var Dct = { exports: {} };
231509
- /*!
231510
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
231511
- * License https://froala.com/wysiwyg-editor/terms/
231512
- * Copyright 2014-2020 Froala Labs
231513
- */
231514
231218
  var Qlr = Dct.exports, FDt;
231515
231219
  function Jlr() {
231516
231220
  return FDt || (FDt = 1, (function(r, e) {
@@ -231552,11 +231256,6 @@ function Jlr() {
231552
231256
  }
231553
231257
  Jlr();
231554
231258
  var Ict = { exports: {} };
231555
- /*!
231556
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
231557
- * License https://froala.com/wysiwyg-editor/terms/
231558
- * Copyright 2014-2020 Froala Labs
231559
- */
231560
231259
  var ecr = Ict.exports, BDt;
231561
231260
  function tcr() {
231562
231261
  return BDt || (BDt = 1, (function(r, e) {
@@ -231681,11 +231380,6 @@ function tcr() {
231681
231380
  }
231682
231381
  tcr();
231683
231382
  var Nct = { exports: {} };
231684
- /*!
231685
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
231686
- * License https://froala.com/wysiwyg-editor/terms/
231687
- * Copyright 2014-2020 Froala Labs
231688
- */
231689
231383
  var ncr = Nct.exports, WDt;
231690
231384
  function rcr() {
231691
231385
  return WDt || (WDt = 1, (function(r, e) {
@@ -231739,11 +231433,6 @@ function rcr() {
231739
231433
  }
231740
231434
  rcr();
231741
231435
  var Pct = { exports: {} };
231742
- /*!
231743
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
231744
- * License https://froala.com/wysiwyg-editor/terms/
231745
- * Copyright 2014-2020 Froala Labs
231746
- */
231747
231436
  var icr = Pct.exports, qDt;
231748
231437
  function ocr() {
231749
231438
  return qDt || (qDt = 1, (function(r, e) {
@@ -231783,11 +231472,6 @@ function ocr() {
231783
231472
  }
231784
231473
  ocr();
231785
231474
  var Fct = { exports: {} };
231786
- /*!
231787
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
231788
- * License https://froala.com/wysiwyg-editor/terms/
231789
- * Copyright 2014-2020 Froala Labs
231790
- */
231791
231475
  var acr = Fct.exports, HDt;
231792
231476
  function scr() {
231793
231477
  return HDt || (HDt = 1, (function(r, e) {
@@ -232595,11 +232279,6 @@ function scr() {
232595
232279
  }
232596
232280
  scr();
232597
232281
  var Bct = { exports: {} };
232598
- /*!
232599
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
232600
- * License https://froala.com/wysiwyg-editor/terms/
232601
- * Copyright 2014-2020 Froala Labs
232602
- */
232603
232282
  var lcr = Bct.exports, VDt;
232604
232283
  function ccr() {
232605
232284
  return VDt || (VDt = 1, (function(r, e) {
@@ -232630,11 +232309,6 @@ function ccr() {
232630
232309
  }
232631
232310
  ccr();
232632
232311
  var Wct = { exports: {} };
232633
- /*!
232634
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
232635
- * License https://froala.com/wysiwyg-editor/terms/
232636
- * Copyright 2014-2020 Froala Labs
232637
- */
232638
232312
  var ucr = Wct.exports, UDt;
232639
232313
  function dcr() {
232640
232314
  return UDt || (UDt = 1, (function(r, e) {
@@ -232663,11 +232337,6 @@ function dcr() {
232663
232337
  }
232664
232338
  dcr();
232665
232339
  var qct = { exports: {} };
232666
- /*!
232667
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
232668
- * License https://froala.com/wysiwyg-editor/terms/
232669
- * Copyright 2014-2020 Froala Labs
232670
- */
232671
232340
  var fcr = qct.exports, $Dt;
232672
232341
  function hcr() {
232673
232342
  return $Dt || ($Dt = 1, (function(r, e) {
@@ -232768,11 +232437,6 @@ function hcr() {
232768
232437
  }
232769
232438
  hcr();
232770
232439
  var Hct = { exports: {} };
232771
- /*!
232772
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
232773
- * License https://froala.com/wysiwyg-editor/terms/
232774
- * Copyright 2014-2020 Froala Labs
232775
- */
232776
232440
  var pcr = Hct.exports, jDt;
232777
232441
  function gcr() {
232778
232442
  return jDt || (jDt = 1, (function(r, e) {
@@ -232816,11 +232480,6 @@ function gcr() {
232816
232480
  }
232817
232481
  gcr();
232818
232482
  var Vct = { exports: {} };
232819
- /*!
232820
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
232821
- * License https://froala.com/wysiwyg-editor/terms/
232822
- * Copyright 2014-2020 Froala Labs
232823
- */
232824
232483
  var mcr = Vct.exports, GDt;
232825
232484
  function vcr() {
232826
232485
  return GDt || (GDt = 1, (function(r, e) {
@@ -233096,11 +232755,6 @@ function vcr() {
233096
232755
  }
233097
232756
  vcr();
233098
232757
  var Uct = { exports: {} };
233099
- /*!
233100
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
233101
- * License https://froala.com/wysiwyg-editor/terms/
233102
- * Copyright 2014-2020 Froala Labs
233103
- */
233104
232758
  var bcr = Uct.exports, XDt;
233105
232759
  function ycr() {
233106
232760
  return XDt || (XDt = 1, (function(r, e) {
@@ -233249,11 +232903,6 @@ function ycr() {
233249
232903
  }
233250
232904
  ycr();
233251
232905
  var $ct = { exports: {} };
233252
- /*!
233253
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
233254
- * License https://froala.com/wysiwyg-editor/terms/
233255
- * Copyright 2014-2020 Froala Labs
233256
- */
233257
232906
  var _cr = $ct.exports, KDt;
233258
232907
  function xcr() {
233259
232908
  return KDt || (KDt = 1, (function(r, e) {
@@ -233319,11 +232968,6 @@ function xcr() {
233319
232968
  }
233320
232969
  xcr();
233321
232970
  var jct = { exports: {} };
233322
- /*!
233323
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
233324
- * License https://froala.com/wysiwyg-editor/terms/
233325
- * Copyright 2014-2020 Froala Labs
233326
- */
233327
232971
  var wcr = jct.exports, YDt;
233328
232972
  function Acr() {
233329
232973
  return YDt || (YDt = 1, (function(r, e) {
@@ -233365,11 +233009,6 @@ function Acr() {
233365
233009
  }
233366
233010
  Acr();
233367
233011
  var Gct = { exports: {} };
233368
- /*!
233369
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
233370
- * License https://froala.com/wysiwyg-editor/terms/
233371
- * Copyright 2014-2020 Froala Labs
233372
- */
233373
233012
  var Mcr = Gct.exports, ZDt;
233374
233013
  function Scr() {
233375
233014
  return ZDt || (ZDt = 1, (function(r, e) {
@@ -233421,11 +233060,6 @@ function Scr() {
233421
233060
  }
233422
233061
  Scr();
233423
233062
  var Xct = { exports: {} };
233424
- /*!
233425
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
233426
- * License https://froala.com/wysiwyg-editor/terms/
233427
- * Copyright 2014-2020 Froala Labs
233428
- */
233429
233063
  var Ccr = Xct.exports, QDt;
233430
233064
  function Ocr() {
233431
233065
  return QDt || (QDt = 1, (function(r, e) {
@@ -233544,11 +233178,6 @@ function Ocr() {
233544
233178
  }
233545
233179
  Ocr();
233546
233180
  var Kct = { exports: {} };
233547
- /*!
233548
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
233549
- * License https://froala.com/wysiwyg-editor/terms/
233550
- * Copyright 2014-2020 Froala Labs
233551
- */
233552
233181
  var Tcr = Kct.exports, JDt;
233553
233182
  function Ecr() {
233554
233183
  return JDt || (JDt = 1, (function(r, e) {
@@ -233591,11 +233220,6 @@ function Ecr() {
233591
233220
  }
233592
233221
  Ecr();
233593
233222
  var Yct = { exports: {} };
233594
- /*!
233595
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
233596
- * License https://froala.com/wysiwyg-editor/terms/
233597
- * Copyright 2014-2020 Froala Labs
233598
- */
233599
233223
  var zcr = Yct.exports, eIt;
233600
233224
  function kcr() {
233601
233225
  return eIt || (eIt = 1, (function(r, e) {
@@ -233650,11 +233274,6 @@ function kcr() {
233650
233274
  }
233651
233275
  kcr();
233652
233276
  var Zct = { exports: {} };
233653
- /*!
233654
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
233655
- * License https://froala.com/wysiwyg-editor/terms/
233656
- * Copyright 2014-2020 Froala Labs
233657
- */
233658
233277
  var Lcr = Zct.exports, tIt;
233659
233278
  function Rcr() {
233660
233279
  return tIt || (tIt = 1, (function(r, e) {
@@ -233744,11 +233363,6 @@ function Rcr() {
233744
233363
  }
233745
233364
  Rcr();
233746
233365
  var Qct = { exports: {} };
233747
- /*!
233748
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
233749
- * License https://froala.com/wysiwyg-editor/terms/
233750
- * Copyright 2014-2020 Froala Labs
233751
- */
233752
233366
  var Dcr = Qct.exports, nIt;
233753
233367
  function Icr() {
233754
233368
  return nIt || (nIt = 1, (function(r, e) {
@@ -234576,11 +234190,6 @@ function Icr() {
234576
234190
  }
234577
234191
  Icr();
234578
234192
  var Jct = { exports: {} };
234579
- /*!
234580
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
234581
- * License https://froala.com/wysiwyg-editor/terms/
234582
- * Copyright 2014-2020 Froala Labs
234583
- */
234584
234193
  var Ncr = Jct.exports, rIt;
234585
234194
  function Pcr() {
234586
234195
  return rIt || (rIt = 1, (function(r, e) {
@@ -234639,11 +234248,6 @@ function Pcr() {
234639
234248
  }
234640
234249
  Pcr();
234641
234250
  var eut = { exports: {} };
234642
- /*!
234643
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
234644
- * License https://froala.com/wysiwyg-editor/terms/
234645
- * Copyright 2014-2020 Froala Labs
234646
- */
234647
234251
  var Fcr = eut.exports, iIt;
234648
234252
  function Bcr() {
234649
234253
  return iIt || (iIt = 1, (function(r, e) {
@@ -235190,11 +234794,6 @@ function Bcr() {
235190
234794
  }
235191
234795
  Bcr();
235192
234796
  var tut = { exports: {} };
235193
- /*!
235194
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
235195
- * License https://froala.com/wysiwyg-editor/terms/
235196
- * Copyright 2014-2020 Froala Labs
235197
- */
235198
234797
  var Wcr = tut.exports, oIt;
235199
234798
  function qcr() {
235200
234799
  return oIt || (oIt = 1, (function(r, e) {
@@ -235586,11 +235185,6 @@ Ignore`) && (pe.innerHTML = pe.innerHTML.replace(/mso-list:\nIgnore/gi, "mso-lis
235586
235185
  }
235587
235186
  qcr();
235588
235187
  var nut = { exports: {} };
235589
- /*!
235590
- * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
235591
- * License https://froala.com/wysiwyg-editor/terms/
235592
- * Copyright 2014-2020 Froala Labs
235593
- */
235594
235188
  var Hcr = nut.exports, aIt;
235595
235189
  function Vcr() {
235596
235190
  return aIt || (aIt = 1, (function(r, e) {
@@ -235933,11 +235527,6 @@ const Ycr = /* @__PURE__ */ _ft(MTn);
235933
235527
  var Zcr = _Ne.exports, dIt;
235934
235528
  function Qcr() {
235935
235529
  return dIt || (dIt = 1, (function(r) {
235936
- //! moment-timezone.js
235937
- //! version : 0.5.48
235938
- //! Copyright (c) JS Foundation and other contributors
235939
- //! license : MIT
235940
- //! github.com/moment/moment-timezone
235941
235530
  (function(e, t) {
235942
235531
  r.exports ? r.exports = t(Ycr) : t(e.moment);
235943
235532
  })(Zcr, function(e) {
@@ -272188,9 +271777,6 @@ const hgr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
272188
271777
  conf: dgr,
272189
271778
  language: fgr
272190
271779
  }, Symbol.toStringTag, { value: "Module" }));
272191
- /*!---------------------------------------------------------------------------------------------
272192
- * Copyright (C) David Owens II, owensd.io. All rights reserved.
272193
- *--------------------------------------------------------------------------------------------*/
272194
271780
  var pgr = {
272195
271781
  comments: {
272196
271782
  lineComment: "//",
@@ -274284,7 +273870,6 @@ const Rgr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
274284
273870
  conf: kgr,
274285
273871
  language: Lgr
274286
273872
  }, Symbol.toStringTag, { value: "Module" }));
274287
- /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
274288
273873
  var nEe = {};
274289
273874
  nEe.version = "0.18.5";
274290
273875
  var g5 = 1200, vle = 1252, Dgr = [874, 932, 936, 949, 950, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258, 1e4], zmt = {
@@ -297319,7 +296904,6 @@ function adn(r, e) {
297319
296904
  /*, opts*/
297320
296905
  )), t;
297321
296906
  }
297322
- /*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */
297323
296907
  function Ale(r) {
297324
296908
  return new DataView(r.buffer, r.byteOffset, r.byteLength);
297325
296909
  }
@@ -305040,20 +304624,6 @@ Kvt.defaultProps = {
305040
304624
  header: "Color picker"
305041
304625
  };
305042
304626
  Rk(Kvt);
305043
- /*! *****************************************************************************
305044
- Copyright (c) Microsoft Corporation.
305045
-
305046
- Permission to use, copy, modify, and/or distribute this software for any
305047
- purpose with or without fee is hereby granted.
305048
-
305049
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
305050
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
305051
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
305052
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
305053
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
305054
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
305055
- PERFORMANCE OF THIS SOFTWARE.
305056
- ***************************************************************************** */
305057
304627
  var $ut = function(r, e) {
305058
304628
  return $ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
305059
304629
  t.__proto__ = n;
@@ -308747,15 +308317,6 @@ var Jl = (function(r) {
308747
308317
  }, e;
308748
308318
  })(UWe);
308749
308319
  Jl.prototype.type = "group";
308750
- /*!
308751
- * ZRender, a high performance 2d drawing library.
308752
- *
308753
- * Copyright (c) 2013, Baidu Inc.
308754
- * All rights reserved.
308755
- *
308756
- * LICENSE
308757
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
308758
- */
308759
308320
  var bCe = {}, Fae = {};
308760
308321
  function xLr(r) {
308761
308322
  delete Fae[r];
@@ -350539,20 +350100,6 @@ function mXr() {
350539
350100
  (function(t, n) {
350540
350101
  n(e);
350541
350102
  })(gXr, (function(t) {
350542
- /*! *****************************************************************************
350543
- Copyright (c) Microsoft Corporation.
350544
-
350545
- Permission to use, copy, modify, and/or distribute this software for any
350546
- purpose with or without fee is hereby granted.
350547
-
350548
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
350549
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
350550
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
350551
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
350552
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
350553
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
350554
- PERFORMANCE OF THIS SOFTWARE.
350555
- ***************************************************************************** */
350556
350103
  var n = function(m, p) {
350557
350104
  return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(h, b) {
350558
350105
  h.__proto__ = b;
@@ -354235,15 +353782,6 @@ function mXr() {
354235
353782
  }, p;
354236
353783
  })(Of);
354237
353784
  xa.prototype.type = "group";
354238
- /*!
354239
- * ZRender, a high performance 2d drawing library.
354240
- *
354241
- * Copyright (c) 2013, Baidu Inc.
354242
- * All rights reserved.
354243
- *
354244
- * LICENSE
354245
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
354246
- */
354247
353785
  var sv = {}, Rs = {};
354248
353786
  function nd(m) {
354249
353787
  delete Rs[m];
@@ -394672,13 +394210,6 @@ function vXr() {
394672
394210
  this._model.layoutInstance.dispose();
394673
394211
  }
394674
394212
  });
394675
- /*!
394676
- * wordcloud2.js
394677
- * http://timdream.org/wordcloud2.js/
394678
- *
394679
- * Copyright 2011 - 2019 Tim Guan-tin Chien and contributors.
394680
- * Released under the MIT license
394681
- */
394682
394213
  window.setImmediate || (window.setImmediate = (function() {
394683
394214
  return window.msSetImmediate || window.webkitSetImmediate || window.mozSetImmediate || window.oSetImmediate || (function() {
394684
394215
  if (!window.postMessage || !window.addEventListener)
@@ -399566,13 +399097,6 @@ function yXr() {
399566
399097
  t.exports = i(25).default;
399567
399098
  }, function(t, n, i) {
399568
399099
  (function(o, a) {
399569
- /*!
399570
- * @overview es6-promise - a tiny implementation of Promises/A+.
399571
- * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
399572
- * @license Licensed under MIT license
399573
- * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
399574
- * @version v4.2.8+1e68dce6
399575
- */
399576
399100
  var s;
399577
399101
  s = function() {
399578
399102
  function l(me) {
@@ -465014,13 +464538,6 @@ function _Li(r, e, t) {
465014
464538
  }
465015
464539
  return l.suff === "space" ? f.innerHTML += " " : l.suff === "tab" && (f.innerHTML += "&emsp;"), f;
465016
464540
  }
465017
- /**
465018
- * Character classes and associated utilities for the 5th edition of XML 1.0.
465019
- *
465020
- * @author Louis-Dominique Dubeau
465021
- * @license MIT
465022
- * @copyright Louis-Dominique Dubeau
465023
- */
465024
464541
  var Wvn = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", xLi = "-".concat(Wvn, ".0-9·̀-ͯ‿-⁀"), wLi = new RegExp("^[".concat(Wvn, "][").concat(xLi, "]*$"), "u"), T2t = 9, E2t = 10, z2t = 13, k2t = 32, ALi = [k2t, E2t, z2t, T2t];
465025
464542
  function MLi(r) {
465026
464543
  return r >= k2t && r <= 55295 || r === E2t || r === z2t || r === T2t || r >= 57344 && r <= 65533 || r >= 65536 && r <= 1114111;
@@ -465034,23 +464551,9 @@ function qvn(r) {
465034
464551
  function CLi(r) {
465035
464552
  return qvn(r) || r >= 48 && r <= 57 || r === 45 || r === 46 || r === 183 || r >= 768 && r <= 879 || r >= 8255 && r <= 8256;
465036
464553
  }
465037
- /**
465038
- * Character classes and associated utilities for the 2nd edition of XML 1.1.
465039
- *
465040
- * @author Louis-Dominique Dubeau
465041
- * @license MIT
465042
- * @copyright Louis-Dominique Dubeau
465043
- */
465044
464554
  function OLi(r) {
465045
464555
  return r >= 1 && r <= 55295 || r >= 57344 && r <= 65533 || r >= 65536 && r <= 1114111;
465046
464556
  }
465047
- /**
465048
- * Character class utilities for XML NS 1.0 edition 3.
465049
- *
465050
- * @author Louis-Dominique Dubeau
465051
- * @license MIT
465052
- * @copyright Louis-Dominique Dubeau
465053
- */
465054
464557
  var Hvn = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", TLi = "-".concat(Hvn, ".0-9·̀-ͯ‿-⁀"), ELi = new RegExp("^[".concat(Hvn, "][").concat(TLi, "]*$"), "u");
465055
464558
  function Vvn(r) {
465056
464559
  return r >= 65 && r <= 90 || r === 95 || r >= 97 && r <= 122 || r >= 192 && r <= 214 || r >= 216 && r <= 246 || r >= 248 && r <= 767 || r >= 880 && r <= 893 || r >= 895 && r <= 8191 || r >= 8204 && r <= 8205 || r >= 8304 && r <= 8591 || r >= 11264 && r <= 12271 || r >= 12289 && r <= 55295 || r >= 63744 && r <= 64975 || r >= 65008 && r <= 65533 || r >= 65536 && r <= 983039;
@@ -543349,9 +542852,9 @@ export {
543349
542852
  kYi as bV,
543350
542853
  O2n as bW,
543351
542854
  A_ as bX,
543352
- iji as bY,
542855
+ rji as bY,
543353
542856
  nji as bZ,
543354
- Z$i as b_,
542857
+ X$i as b_,
543355
542858
  kGi as ba,
543356
542859
  LGi as bb,
543357
542860
  NGi as bc,
@@ -543378,12 +542881,12 @@ export {
543378
542881
  m1t as bx,
543379
542882
  HGi as by,
543380
542883
  JIn as bz,
543381
- K$i as c,
543382
- eji as c0,
543383
- Q$i as c1,
542884
+ iji as c,
542885
+ Y$i as c0,
542886
+ eji as c1,
543384
542887
  J$i as c2,
543385
- rji as c3,
543386
- X$i as c4,
542888
+ Z$i as c3,
542889
+ Q$i as c4,
543387
542890
  jKi as c5,
543388
542891
  eYi as c6,
543389
542892
  gYi as c7,