@feedmepos/mf-payment 1.6.5-dev → 1.6.5

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.
Files changed (42) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-YYDPaS_E.js → Actions.vue_vue_type_script_setup_true_lang-DAxaoH2_.js} +1 -1
  2. package/dist/{Chargeback-BUu9f1RK.js → Chargeback-mmahMkU2.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DzJh-Vaf.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CdICJijx.js} +1 -1
  4. package/dist/{OnboardForm-C2IBqB-n.js → OnboardForm-0wfXiZNq.js} +5 -5
  5. package/dist/{OnboardForm-vsYIDpeX.js → OnboardForm-DcHQqYYX.js} +5 -5
  6. package/dist/{OnboardSubmission-B-aQpnpa.js → OnboardSubmission-CRIsACkI.js} +5 -5
  7. package/dist/{OnboardSubmission-Cd1RB0Jg.js → OnboardSubmission-Dp4QmPAZ.js} +2 -2
  8. package/dist/{PayoutAccount-C0f7Xt95.js → PayoutAccount-B0fiUu5k.js} +5 -5
  9. package/dist/{PayoutAccount-RUxuoh4c.js → PayoutAccount-CVP7XAWH.js} +5 -5
  10. package/dist/{PayoutAccountSetting-OwViZYiH.js → PayoutAccountSetting-AfiXAw4i.js} +6 -6
  11. package/dist/{Restaurant-WoIPOuVK.js → Restaurant-DjVmC321.js} +4 -4
  12. package/dist/{RestaurantSetting-CSp5KYPV.js → RestaurantSetting-otcaVBEY.js} +3 -3
  13. package/dist/{Settlement-BzEWt-Sp.js → Settlement-BR0eiOvD.js} +4 -4
  14. package/dist/{Settlement-s7Sg5yMu.js → Settlement-EvbyEhZy.js} +3 -3
  15. package/dist/{SettlementTransactions-BSWyhuT9.js → SettlementTransactions-Cl5MpLRe.js} +4 -4
  16. package/dist/{SettlementTransactions-TCIV9KXu.js → SettlementTransactions-CzXpI06o.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-CUb440nP.js → Status.vue_vue_type_script_setup_true_lang-1c-L6wBM.js} +1 -1
  18. package/dist/{Terminal-Dewmg13M.js → Terminal-CFw1icwx.js} +5 -5
  19. package/dist/{TerminalSetting-QK1F8399.js → TerminalSetting-BnHK2VcU.js} +243 -245
  20. package/dist/{Transaction-DvgbScu9.js → Transaction-D2LeKB1L.js} +13 -13
  21. package/dist/{Transaction-Edd4br9p.js → Transaction-Hh9DsZti.js} +9 -9
  22. package/dist/{TransactionOld-DKrLquBs.js → TransactionOld-CZzDvZ4V.js} +7 -7
  23. package/dist/{app-DRhh29hN.js → app-CnRmLdS_.js} +546 -563
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-CbdfLdMj.js → assets-8u-qS55J.js} +1 -1
  26. package/dist/{grafana-DQRXJ2-g.js → grafana-DVHjaRm4.js} +1 -1
  27. package/dist/{index-DJnq80r2.js → index-BnFjLAZ9.js} +1 -1
  28. package/dist/index-BwdnN4a2.js +58 -0
  29. package/dist/{index-DRSGui6T.js → index-CWbl1nrA.js} +1 -1
  30. package/dist/{index-CpNhb1dz.js → index-D6wYQSLs.js} +1 -1
  31. package/dist/{index-Kv65DwXY.js → index-DP823O2i.js} +1 -1
  32. package/dist/{index-DTkPWXFi.js → index-DTY9OeUA.js} +1 -1
  33. package/dist/{index-Db6LPSD_.js → index-DjPlzbUi.js} +1 -1
  34. package/dist/{index-S6NOUgPl.js → index-DyVl5OC4.js} +1 -1
  35. package/dist/{index-BJNPknyd.js → index-fKbtEyKA.js} +1 -1
  36. package/dist/{index-BZnFjrTl.js → index-iujpUb8Z.js} +2 -2
  37. package/dist/{index.vue_vue_type_script_setup_true_lang-CJ5N_POT.js → index.vue_vue_type_script_setup_true_lang-D-7OGj8L.js} +1 -1
  38. package/dist/package.json +2 -2
  39. package/dist/{payout-account-DDuxDcff.js → payout-account-CpX1Qppg.js} +3 -3
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/package.json +1 -1
  42. package/dist/index-FbkInaFL.js +0 -62
@@ -1,10 +1,10 @@
1
- import { routes as is, i18nMessages as os } from "@feedmepos/mf-financing";
2
- import { isRef as cs, ref as yt, shallowRef as ls, watchEffect as As, computed as jt, h as wt, defineComponent as st, unref as re, openBlock as at, createBlock as Ot, renderSlot as us, createCommentVNode as ds, createElementBlock as gs, createElementVNode as de, toDisplayString as Jt, defineAsyncComponent as Yn, watch as Vn, resolveComponent as Tn, onMounted as ms, onBeforeMount as hs } from "vue";
3
- import { useRoute as jn, createRouter as fs, createWebHistory as ps, useRouter as bs } from "vue-router";
4
- import { useCoreStore as kt, useI18n as On } from "@feedmepos/mf-common";
5
- import { defineStore as ys } from "pinia";
6
- import { components as ws } from "@feedmepos/ui-library";
7
- const Bs = {
1
+ import { routes as as, i18nMessages as is } from "@feedmepos/mf-financing";
2
+ import { isRef as os, ref as bt, shallowRef as cs, watchEffect as ls, computed as Tt, h as yt, defineComponent as rt, unref as re, openBlock as st, createBlock as jt, renderSlot as As, createCommentVNode as us, createElementBlock as ds, createElementVNode as de, toDisplayString as Kt, defineAsyncComponent as Gn, watch as Yn, resolveComponent as Vn, onMounted as gs, onBeforeMount as ms } from "vue";
3
+ import { useRoute as Tn, createRouter as hs, createWebHistory as fs, useRouter as ps } from "vue-router";
4
+ import { useCoreStore as Ot, useI18n as jn } from "@feedmepos/mf-common";
5
+ import { defineStore as bs } from "pinia";
6
+ import { components as ys } from "@feedmepos/ui-library";
7
+ const ws = {
8
8
  components: {
9
9
  select: "Select filter entity",
10
10
  select_payout_account: "Select payout account",
@@ -408,9 +408,9 @@ const Bs = {
408
408
  }
409
409
  }
410
410
  }
411
+ }, Bs = {
412
+ payment: ws
411
413
  }, vs = {
412
- payment: Bs
413
- }, Ds = {
414
414
  components: {
415
415
  select: "เลือกตัวกรอง",
416
416
  restaurant: "ร้านอาหาร",
@@ -811,9 +811,9 @@ const Bs = {
811
811
  }
812
812
  }
813
813
  }
814
+ }, Ds = {
815
+ payment: vs
814
816
  }, Cs = {
815
- payment: Ds
816
- }, Es = {
817
817
  components: {
818
818
  select: "选择筛选对象",
819
819
  restaurant: "餐厅",
@@ -1214,25 +1214,25 @@ const Bs = {
1214
1214
  }
1215
1215
  }
1216
1216
  }
1217
- }, Ms = {
1218
- payment: Es
1217
+ }, Es = {
1218
+ payment: Cs
1219
1219
  };
1220
1220
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1221
- const Is = () => {
1221
+ const Ms = () => {
1222
1222
  };
1223
- function Ps(t, e, n) {
1223
+ function Is(t, e, n) {
1224
1224
  let r;
1225
- cs(n) ? r = {
1225
+ os(n) ? r = {
1226
1226
  evaluating: n
1227
1227
  } : r = {};
1228
1228
  const {
1229
1229
  lazy: s = !1,
1230
1230
  evaluating: a = void 0,
1231
1231
  shallow: o = !0,
1232
- onError: l = Is
1233
- } = r, A = yt(!s), d = o ? ls(e) : yt(e);
1232
+ onError: l = Ms
1233
+ } = r, A = bt(!s), d = o ? cs(e) : bt(e);
1234
1234
  let h = 0;
1235
- return As(async (p) => {
1235
+ return ls(async (p) => {
1236
1236
  if (!A.value)
1237
1237
  return;
1238
1238
  h++;
@@ -1253,10 +1253,10 @@ function Ps(t, e, n) {
1253
1253
  } finally {
1254
1254
  a && E === h && (a.value = !1), C = !0;
1255
1255
  }
1256
- }), s ? jt(() => (A.value = !0, d.value)) : d;
1256
+ }), s ? Tt(() => (A.value = !0, d.value)) : d;
1257
1257
  }
1258
- var Gs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1259
- function Ys(t) {
1258
+ var Ps = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1259
+ function Gs(t) {
1260
1260
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1261
1261
  }
1262
1262
  function Zl(t) {
@@ -1278,11 +1278,11 @@ function Zl(t) {
1278
1278
  });
1279
1279
  }), n;
1280
1280
  }
1281
- var kn = { exports: {} };
1281
+ var On = { exports: {} };
1282
1282
  (function(t, e) {
1283
1283
  (function(n, r) {
1284
1284
  t.exports = r();
1285
- })(Gs, function() {
1285
+ })(Ps, function() {
1286
1286
  return function(n) {
1287
1287
  var r = {};
1288
1288
  function s(a) {
@@ -1559,13 +1559,13 @@ var kn = { exports: {} };
1559
1559
  }
1560
1560
  function Fe(c, g) {
1561
1561
  var m = c.keyPath, f = c.child, b = c.query, w = [];
1562
- if (function Lt(J, Me, Ie, ss, At) {
1562
+ if (function Zt(J, Me, Ie, rs, lt) {
1563
1563
  if (Ie === Me.length || J == null)
1564
- return void At.push([J, Me[Ie - 1], ss]);
1565
- var Kt = h(Me, Ie);
1566
- if (l(J) && isNaN(Number(Kt)))
1567
- for (var ut = 0, as = J.length; ut < as; ut++) Lt(h(J, ut), Me, Ie, J, At);
1568
- else Lt(h(J, Kt), Me, Ie + 1, J, At);
1564
+ return void lt.push([J, Me[Ie - 1], rs]);
1565
+ var Lt = h(Me, Ie);
1566
+ if (l(J) && isNaN(Number(Lt)))
1567
+ for (var At = 0, ss = J.length; At < ss; At++) Zt(h(J, At), Me, Ie, J, lt);
1568
+ else Zt(h(J, Lt), Me, Ie + 1, J, lt);
1569
1569
  }(g, m, 0, g, w), w.length === 1) {
1570
1570
  var v = w[0];
1571
1571
  return C(f, v[0], v[1], v[2]);
@@ -1655,32 +1655,32 @@ var kn = { exports: {} };
1655
1655
  }
1656
1656
  ]);
1657
1657
  });
1658
- })(kn);
1659
- var Vs = kn.exports;
1660
- const Ts = /* @__PURE__ */ Ys(Vs);
1661
- function js(t, e) {
1658
+ })(On);
1659
+ var Ys = On.exports;
1660
+ const Vs = /* @__PURE__ */ Gs(Ys);
1661
+ function Ts(t, e) {
1662
1662
  for (var n = 0; n < e.length; n++) {
1663
1663
  var r = e[n];
1664
1664
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1665
1665
  }
1666
1666
  }
1667
- function Os(t, e, n) {
1668
- return e && js(t.prototype, e), t;
1667
+ function js(t, e, n) {
1668
+ return e && Ts(t.prototype, e), t;
1669
1669
  }
1670
- function ks(t, e) {
1670
+ function Os(t, e) {
1671
1671
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
1672
1672
  }
1673
- function Bt(t) {
1674
- return Bt = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
1673
+ function wt(t) {
1674
+ return wt = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
1675
1675
  return n.__proto__ || Object.getPrototypeOf(n);
1676
- }, Bt(t);
1676
+ }, wt(t);
1677
1677
  }
1678
1678
  function Le(t, e) {
1679
1679
  return Le = Object.setPrototypeOf || function(r, s) {
1680
1680
  return r.__proto__ = s, r;
1681
1681
  }, Le(t, e);
1682
1682
  }
1683
- function xs() {
1683
+ function ks() {
1684
1684
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
1685
1685
  if (typeof Proxy == "function") return !0;
1686
1686
  try {
@@ -1691,20 +1691,20 @@ function xs() {
1691
1691
  }
1692
1692
  }
1693
1693
  function Ue(t, e, n) {
1694
- return xs() ? Ue = Reflect.construct : Ue = function(s, a, o) {
1694
+ return ks() ? Ue = Reflect.construct : Ue = function(s, a, o) {
1695
1695
  var l = [null];
1696
1696
  l.push.apply(l, a);
1697
1697
  var A = Function.bind.apply(s, l), d = new A();
1698
1698
  return o && Le(d, o.prototype), d;
1699
1699
  }, Ue.apply(null, arguments);
1700
1700
  }
1701
- function Rs(t) {
1701
+ function xs(t) {
1702
1702
  return Function.toString.call(t).indexOf("[native code]") !== -1;
1703
1703
  }
1704
- function vt(t) {
1704
+ function Bt(t) {
1705
1705
  var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1706
- return vt = function(r) {
1707
- if (r === null || !Rs(r)) return r;
1706
+ return Bt = function(r) {
1707
+ if (r === null || !xs(r)) return r;
1708
1708
  if (typeof r != "function")
1709
1709
  throw new TypeError("Super expression must either be null or a function");
1710
1710
  if (typeof e < "u") {
@@ -1712,7 +1712,7 @@ function vt(t) {
1712
1712
  e.set(r, s);
1713
1713
  }
1714
1714
  function s() {
1715
- return Ue(r, arguments, Bt(this).constructor);
1715
+ return Ue(r, arguments, wt(this).constructor);
1716
1716
  }
1717
1717
  return s.prototype = Object.create(r.prototype, {
1718
1718
  constructor: {
@@ -1722,18 +1722,18 @@ function vt(t) {
1722
1722
  configurable: !0
1723
1723
  }
1724
1724
  }), Le(s, r);
1725
- }, vt(t);
1725
+ }, Bt(t);
1726
1726
  }
1727
- function _t(t) {
1727
+ function Jt(t) {
1728
1728
  if (t === void 0)
1729
1729
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1730
1730
  return t;
1731
1731
  }
1732
- var xn = function(e) {
1732
+ var kn = function(e) {
1733
1733
  return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
1734
- }, Xe = xn, Ns = /* @__PURE__ */ function(t) {
1735
- ks(e, t), e.setDefaultMessage = function(s) {
1736
- s === null ? Xe = xn : Xe = typeof s == "string" ? function() {
1734
+ }, Xe = kn, Rs = /* @__PURE__ */ function(t) {
1735
+ Os(e, t), e.setDefaultMessage = function(s) {
1736
+ s === null ? Xe = kn : Xe = typeof s == "string" ? function() {
1737
1737
  return s;
1738
1738
  } : s;
1739
1739
  }, e.from = function(s) {
@@ -1744,7 +1744,7 @@ var xn = function(e) {
1744
1744
  };
1745
1745
  function e(r, s) {
1746
1746
  var a;
1747
- return s === void 0 && (s = {}), a = t.call(this, r) || this, a._setMetadata(s), a.message = r || Xe(_t(a)), a._customMessage = null, typeof Error.captureStackTrace == "function" && (a.name = a.constructor.name, Error.captureStackTrace(_t(a), a.constructor)), a;
1747
+ return s === void 0 && (s = {}), a = t.call(this, r) || this, a._setMetadata(s), a.message = r || Xe(Jt(a)), a._customMessage = null, typeof Error.captureStackTrace == "function" && (a.name = a.constructor.name, Error.captureStackTrace(Jt(a), a.constructor)), a;
1748
1748
  }
1749
1749
  var n = e.prototype;
1750
1750
  return n.setMessage = function(s) {
@@ -1766,40 +1766,40 @@ var xn = function(e) {
1766
1766
  }, n._setMetadata = function(s) {
1767
1767
  this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
1768
1768
  }, e;
1769
- }(vt(Error));
1770
- function Dt(t) {
1769
+ }(Bt(Error));
1770
+ function vt(t) {
1771
1771
  return Array.isArray(t) ? t : [t];
1772
1772
  }
1773
- function Fs(t) {
1773
+ function Ns(t) {
1774
1774
  if (!t || typeof t == "string")
1775
1775
  return t;
1776
1776
  var e = typeof t == "object" ? t.constructor : t;
1777
1777
  return e.modelName || e.name;
1778
1778
  }
1779
- function Hs(t) {
1779
+ function Fs(t) {
1780
1780
  return JSON.parse(JSON.stringify(t));
1781
1781
  }
1782
- var qs = /[-/\\^$+?.()|[\]{}]/g, Xs = /\.?\*+\.?/g, Qs = /\*+/, Us = /\./g;
1783
- function Ws(t, e, n) {
1784
- var r = n[0] === "*" || t[0] === "." && t[t.length - 1] === "." ? "+" : "*", s = t.indexOf("**") === -1 ? "[^.]" : ".", a = t.replace(Us, "\\$&").replace(Qs, s + r);
1782
+ var Hs = /[-/\\^$+?.()|[\]{}]/g, qs = /\.?\*+\.?/g, Xs = /\*+/, Qs = /\./g;
1783
+ function Us(t, e, n) {
1784
+ var r = n[0] === "*" || t[0] === "." && t[t.length - 1] === "." ? "+" : "*", s = t.indexOf("**") === -1 ? "[^.]" : ".", a = t.replace(Qs, "\\$&").replace(Xs, s + r);
1785
1785
  return e + t.length === n.length ? "(?:" + a + ")?" : a;
1786
1786
  }
1787
- function Ss(t, e, n) {
1787
+ function Ws(t, e, n) {
1788
1788
  return t === "." && (n[e - 1] === "*" || n[e + 1] === "*") ? t : "\\" + t;
1789
1789
  }
1790
- function zs(t) {
1790
+ function Ss(t) {
1791
1791
  var e = t.map(function(r) {
1792
- return r.replace(qs, Ss).replace(Xs, Ws);
1792
+ return r.replace(Hs, Ws).replace(qs, Us);
1793
1793
  }), n = e.length > 1 ? "(?:" + e.join("|") + ")" : e[0];
1794
1794
  return new RegExp("^" + n + "$");
1795
1795
  }
1796
- var Zs = /* @__PURE__ */ function() {
1796
+ var zs = /* @__PURE__ */ function() {
1797
1797
  function t(n) {
1798
- this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 : Dt(n.fields), Object.defineProperty(this, "_fieldsPattern", {
1798
+ this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 : vt(n.fields), Object.defineProperty(this, "_fieldsPattern", {
1799
1799
  writable: !0
1800
1800
  }), this.inverted = !!n.inverted, this.conditions = n.conditions, Object.defineProperty(this, "_matches", {
1801
1801
  writable: !0,
1802
- value: this.conditions ? Ts(this.conditions) : void 0
1802
+ value: this.conditions ? Vs(this.conditions) : void 0
1803
1803
  }), this.reason = n.reason;
1804
1804
  }
1805
1805
  var e = t.prototype;
@@ -1808,33 +1808,33 @@ var Zs = /* @__PURE__ */ function() {
1808
1808
  }, e.isRelevantFor = function(r, s) {
1809
1809
  return this.fields ? s ? this.matchesField(s) : !this.inverted : !0;
1810
1810
  }, e.matchesField = function(r) {
1811
- return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null : zs(this.fields)), this._fieldsPattern === null || r.indexOf("*") !== -1 ? this.fields.indexOf(r) !== -1 : this._fieldsPattern.test(r);
1811
+ return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null : Ss(this.fields)), this._fieldsPattern === null || r.indexOf("*") !== -1 ? this.fields.indexOf(r) !== -1 : this._fieldsPattern.test(r);
1812
1812
  }, t;
1813
- }(), R = typeof Symbol < "u" ? Symbol("private") : "__" + Date.now(), $t = {
1813
+ }(), R = typeof Symbol < "u" ? Symbol("private") : "__" + Date.now(), _t = {
1814
1814
  crud: ["create", "read", "update", "delete"]
1815
1815
  };
1816
- function en(t, e) {
1816
+ function $t(t, e) {
1817
1817
  return t === e || Array.isArray(e) && e.indexOf(t) !== -1;
1818
1818
  }
1819
- var Ls = /* @__PURE__ */ function() {
1819
+ var Zs = /* @__PURE__ */ function() {
1820
1820
  t.addAlias = function(r, s) {
1821
- if (r === "manage" || en("manage", s))
1821
+ if (r === "manage" || $t("manage", s))
1822
1822
  throw new Error('Cannot add alias for "manage" action because it represents any action');
1823
- if (en(r, s))
1823
+ if ($t(r, s))
1824
1824
  throw new Error("Attempt to alias action to itself: " + r + " -> " + s.toString());
1825
- return $t[r] = s, this;
1825
+ return _t[r] = s, this;
1826
1826
  };
1827
1827
  function t(n, r) {
1828
1828
  r === void 0 && (r = {}), Object.defineProperty(this, "subjectName", {
1829
- value: r.subjectName || Fs
1829
+ value: r.subjectName || Ns
1830
1830
  }), this[R] = {
1831
- RuleType: r.RuleType || Zs,
1831
+ RuleType: r.RuleType || zs,
1832
1832
  originalRules: n || [],
1833
1833
  hasPerFieldRules: !1,
1834
1834
  indexedRules: /* @__PURE__ */ Object.create(null),
1835
1835
  mergedRules: /* @__PURE__ */ Object.create(null),
1836
1836
  events: {},
1837
- aliases: Hs($t)
1837
+ aliases: Fs(_t)
1838
1838
  }, this.update(n);
1839
1839
  }
1840
1840
  var e = t.prototype;
@@ -1850,7 +1850,7 @@ var Ls = /* @__PURE__ */ function() {
1850
1850
  return process.env.NODE_ENV !== "production" && a.isAllInverted && r.length && console.warn("[casl]: Ability contains only inverted rules. That means user will not be able to do any actions. This will be changed to Error throw in the next major version"), this[R].indexedRules = a.rules, this[R].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", s), this;
1851
1851
  }, e.buildIndexFor = function(r) {
1852
1852
  for (var s = /* @__PURE__ */ Object.create(null), a = this[R].RuleType, o = !0, l = !1, A = 0; A < r.length; A++) {
1853
- var d = new a(r[A]), h = this.expandActions(d.actions), p = Dt(d.subject), E = r.length - A - 1;
1853
+ var d = new a(r[A]), h = this.expandActions(d.actions), p = vt(d.subject), E = r.length - A - 1;
1854
1854
  o = !!(o && d.inverted), !l && d.fields && (l = !0);
1855
1855
  for (var C = 0; C < p.length; C++) {
1856
1856
  var G = p[C];
@@ -1867,7 +1867,7 @@ var Ls = /* @__PURE__ */ function() {
1867
1867
  rules: s
1868
1868
  };
1869
1869
  }, e.expandActions = function(r) {
1870
- for (var s = this[R].aliases, a = Dt(r), o = 0; o < a.length; ) {
1870
+ for (var s = this[R].aliases, a = vt(r), o = 0; o < a.length; ) {
1871
1871
  var l = a[o++];
1872
1872
  s.hasOwnProperty(l) && (a = a.concat(s[l]));
1873
1873
  }
@@ -1903,7 +1903,7 @@ var Ls = /* @__PURE__ */ function() {
1903
1903
  console.warn(`
1904
1904
  Ability.throwUnlessCan is deprecated and will be removed in 4.x version.
1905
1905
  Please use "ForbiddenError.from(ability).throwUnlessCan(...)" instead.
1906
- `.trim()), (r = Ns.from(this)).throwUnlessCan.apply(r, arguments);
1906
+ `.trim()), (r = Rs.from(this)).throwUnlessCan.apply(r, arguments);
1907
1907
  }, e.on = function(r, s) {
1908
1908
  var a = this[R].events, o = !0;
1909
1909
  return a[r] || (a[r] = []), a[r].push(s), function() {
@@ -1917,14 +1917,14 @@ var Ls = /* @__PURE__ */ function() {
1917
1917
  a && a.slice(0).forEach(function(o) {
1918
1918
  return o(s);
1919
1919
  });
1920
- }, Os(t, [{
1920
+ }, js(t, [{
1921
1921
  key: "rules",
1922
1922
  get: function() {
1923
1923
  return this[R].originalRules;
1924
1924
  }
1925
1925
  }]), t;
1926
- }(), i = /* @__PURE__ */ ((t) => (t.manage = "manage", t.create = "create", t.read = "read", t.update = "update", t.delete = "delete", t))(i || {}), xt = /* @__PURE__ */ ((t) => (t.all = "all", t.restaurant = "restaurant", t.business = "business", t.delivery = "delivery", t.agent = "agent", t))(xt || {}), Rn = /* @__PURE__ */ ((t) => (t.quota = "quota", t.owner = "owner", t))(Rn || {}), u = /* @__PURE__ */ ((t) => (t.crm = "business::crm", t.crm_promotion = "business::crm::promotion", t.crm_voucher = "business::crm::voucher", t.crm_membership = "business::crm::membership", t.crm_analytic = "business::crm::analytic", t.crm_tier = "business::crm::tier", t.crm_title = "business::crm::title", t.crm_broadcast = "business::crm::broadcast", t.crm_point = "business::crm::point", t.crm_credit = "business::crm::credit", t.crm_experience = "business::crm::experience", t.crm_game = "business::crm::game", t.crm_mission = "business::crm::mission", t.crm_loyaltyMember = "business::crm::loyaltyMember", t.crm_loyaltySegment = "business::crm::loyaltySegment", t.crm_loyaltyCard = "business::crm::loyaltyCard", t.crm_referral = "business::crm::referral", t.crm_store = "business::crm::store", t.crm_transaction = "business::crm::transaction", t.crm_setting = "business::crm::setting", t.crm_bin = "business::crm::bin", t.payment = "business::payment", t.payment_payoutAccount = "business::payment::payoutAccount", t.payment_paymentOnboarding = "business::payment::paymentOnboarding", t.payment_transactions = "business::payment::transactions", t.payment_settlements = "business::payment::settlements", t.inventory_stock = "business::inventory::stock", t.inventory_stockBalance = "business::inventory::stockBalance", t.inventory_stockAdjustment = "business::inventory::stockAdjustment", t.inventory_unitCostHistory = "business::inventory::unitCostHistory", t.inventory_wastageTemplate = "business::inventory::wastageTemplate", t.inventory_closingHistory = "business::inventory::closingHistory", t.inventory_closingTemplate = "business::inventory::closingTemplate", t.inventory_closingDraft = "business::inventory::closingDraft", t.inventory_ingredient = "business::inventory::ingredient", t.inventory_ingredientGroup = "business::inventory::ingredientGroup", t.inventory_recipe = "business::inventory::recipe", t.inventory_unit = "business::inventory::unit", t.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", t.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", t.inventory_transferOut = "business::inventory::transferOut", t.inventory_surcharge = "business::inventory::surcharge", t.inventory_orderTemplate = "business::inventory::orderTemplate", t.inventory_supplier = "business::inventory::supplier", t.inventory_warehouse = "business::inventory::warehouse", t.inventory_publish = "business::inventory::publish", t.inventory_import = "business::inventory::import", t.inventory_integration = "business::inventory::integration", t.hrm = "business::hrm", t.hrm_employee = "business::hrm::employee", t.hrm_teamMember = "business::hrm::teamMember", t.hrm_auditLog = "business::hrm::auditLog", t.menu_item = "business::menu::item", t.menu_catalog = "business::menu::catalog", t.menu_category = "business::menu::category", t.menu_subCategory = "business::menu::subCategory", t.menu_group = "business::menu::group", t.menu_takeaway = "business::menu::takeaway", t.menu_scheduler = "business::menu::scheduler", t.menu_variant = "business::menu::variant", t.menu_cookingGuide = "business::menu::cookingGuide", t.menu_printRoute = "business::menu::printRoute", t.menu_servingSequence = "business::menu::servingSequence", t.menu_settings = "business::menu::settings", t.menu_publish = "business::menu::publish", t.menu_menuManagement = "business::menu::menuManagement", t.menu_importExport = "business::menu::importExport", t.menu_unit = "business::menu::unit", t.menu_ingredient = "business::menu::ingredient", t.menu_recipe = "business::menu::recipe", t.restaurant = "business::restaurant", t.role = "business::role", t.mdm_deviceManagement = "business::mdm::deviceManagement", t.mdm_createDevice = "business::mdm::createDevice", t.mdm_deviceBinding = "business::mdm::deviceBinding", t.mdm_customerDisplay = "business::mdm::customerDisplay", t.eInvoice_management = "business::eInvoice::management", t.eInvoice_integration = "business::eInvoice::integration", t.profile = "business::profile", t.report_createReport = "business::report::createReport", t.report_accessInsight = "business::report::accessInsight", t.report_accessSetting = "business::report::accessSetting", t.report_accessIntegration = "business::report::accessIntegration", t.report_accessOverview = "business::report::accessOverview", t.report_reports_allDefaultReports = "business::report::allDefaultReports", t.report_reports_allCustomReports = "business::report::allCustomReports", t))(u || {}), Y = /* @__PURE__ */ ((t) => (t.profile = "business::profile", t.restaurant = "business::restaurant", t.menu = "business::menu", t.promotion = "business::promotion", t.voucher = "business::voucher", t.membership = "business::membership", t.stock = "business::stock", t.permission = "business::permission", t.role = "business::role", t.wastageTemplate = "business::wastageTemplate", t.closingTemplate = "business::closingTemplate", t.orderTemplate = "business::orderTemplate", t.ingredient = "business::ingredient", t.recipe = "business::recipe", t.unit = "business::unit", t.supplier = "business::supplier", t.warehouse = "business::warehouse", t.publish = "business::publish", t.integration = "business::integration", t.orderDraft = "business::orderDraft", t.unitCostHistory = "business::unitCostHistory", t))(Y || {});
1927
- const Ks = "access-denied", Js = {
1926
+ }(), i = /* @__PURE__ */ ((t) => (t.manage = "manage", t.create = "create", t.read = "read", t.update = "update", t.delete = "delete", t))(i || {}), xn = /* @__PURE__ */ ((t) => (t.all = "all", t.restaurant = "restaurant", t.business = "business", t.delivery = "delivery", t.agent = "agent", t))(xn || {}), Rn = /* @__PURE__ */ ((t) => (t.quota = "quota", t.owner = "owner", t))(Rn || {}), u = /* @__PURE__ */ ((t) => (t.crm = "business::crm", t.crm_promotion = "business::crm::promotion", t.crm_voucher = "business::crm::voucher", t.crm_membership = "business::crm::membership", t.crm_analytic = "business::crm::analytic", t.crm_tier = "business::crm::tier", t.crm_title = "business::crm::title", t.crm_broadcast = "business::crm::broadcast", t.crm_point = "business::crm::point", t.crm_credit = "business::crm::credit", t.crm_experience = "business::crm::experience", t.crm_game = "business::crm::game", t.crm_mission = "business::crm::mission", t.crm_loyaltyMember = "business::crm::loyaltyMember", t.crm_loyaltySegment = "business::crm::loyaltySegment", t.crm_loyaltyCard = "business::crm::loyaltyCard", t.crm_referral = "business::crm::referral", t.crm_store = "business::crm::store", t.crm_transaction = "business::crm::transaction", t.crm_setting = "business::crm::setting", t.crm_bin = "business::crm::bin", t.payment = "business::payment", t.payment_payoutAccount = "business::payment::payoutAccount", t.payment_paymentOnboarding = "business::payment::paymentOnboarding", t.payment_transactions = "business::payment::transactions", t.payment_settlements = "business::payment::settlements", t.inventory_stock = "business::inventory::stock", t.inventory_stockBalance = "business::inventory::stockBalance", t.inventory_stockAdjustment = "business::inventory::stockAdjustment", t.inventory_unitCostHistory = "business::inventory::unitCostHistory", t.inventory_wastageTemplate = "business::inventory::wastageTemplate", t.inventory_closingHistory = "business::inventory::closingHistory", t.inventory_closingTemplate = "business::inventory::closingTemplate", t.inventory_closingDraft = "business::inventory::closingDraft", t.inventory_ingredient = "business::inventory::ingredient", t.inventory_ingredientGroup = "business::inventory::ingredientGroup", t.inventory_recipe = "business::inventory::recipe", t.inventory_unit = "business::inventory::unit", t.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", t.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", t.inventory_transferOut = "business::inventory::transferOut", t.inventory_surcharge = "business::inventory::surcharge", t.inventory_orderTemplate = "business::inventory::orderTemplate", t.inventory_supplier = "business::inventory::supplier", t.inventory_warehouse = "business::inventory::warehouse", t.inventory_publish = "business::inventory::publish", t.inventory_import = "business::inventory::import", t.inventory_integration = "business::inventory::integration", t.hrm = "business::hrm", t.hrm_employee = "business::hrm::employee", t.hrm_teamMember = "business::hrm::teamMember", t.hrm_auditLog = "business::hrm::auditLog", t.menu_item = "business::menu::item", t.menu_catalog = "business::menu::catalog", t.menu_category = "business::menu::category", t.menu_subCategory = "business::menu::subCategory", t.menu_group = "business::menu::group", t.menu_takeaway = "business::menu::takeaway", t.menu_scheduler = "business::menu::scheduler", t.menu_variant = "business::menu::variant", t.menu_cookingGuide = "business::menu::cookingGuide", t.menu_printRoute = "business::menu::printRoute", t.menu_servingSequence = "business::menu::servingSequence", t.menu_settings = "business::menu::settings", t.menu_publish = "business::menu::publish", t.menu_menuManagement = "business::menu::menuManagement", t.menu_importExport = "business::menu::importExport", t.menu_unit = "business::menu::unit", t.menu_ingredient = "business::menu::ingredient", t.menu_recipe = "business::menu::recipe", t.restaurant = "business::restaurant", t.role = "business::role", t.mdm_deviceManagement = "business::mdm::deviceManagement", t.mdm_createDevice = "business::mdm::createDevice", t.mdm_deviceBinding = "business::mdm::deviceBinding", t.mdm_customerDisplay = "business::mdm::customerDisplay", t.eInvoice_management = "business::eInvoice::management", t.eInvoice_integration = "business::eInvoice::integration", t.profile = "business::profile", t.report_createReport = "business::report::createReport", t.report_accessInsight = "business::report::accessInsight", t.report_accessSetting = "business::report::accessSetting", t.report_accessIntegration = "business::report::accessIntegration", t.report_accessOverview = "business::report::accessOverview", t.report_reports_allDefaultReports = "business::report::allDefaultReports", t.report_reports_allCustomReports = "business::report::allCustomReports", t))(u || {}), Y = /* @__PURE__ */ ((t) => (t.profile = "business::profile", t.restaurant = "business::restaurant", t.menu = "business::menu", t.promotion = "business::promotion", t.voucher = "business::voucher", t.membership = "business::membership", t.stock = "business::stock", t.permission = "business::permission", t.role = "business::role", t.wastageTemplate = "business::wastageTemplate", t.closingTemplate = "business::closingTemplate", t.orderTemplate = "business::orderTemplate", t.ingredient = "business::ingredient", t.recipe = "business::recipe", t.unit = "business::unit", t.supplier = "business::supplier", t.warehouse = "business::warehouse", t.publish = "business::publish", t.integration = "business::integration", t.orderDraft = "business::orderDraft", t.unitCostHistory = "business::unitCostHistory", t))(Y || {});
1927
+ const Ls = "access-denied", Ks = {
1928
1928
  [Y.permission]: u.hrm_teamMember,
1929
1929
  [Y.promotion]: u.crm_promotion,
1930
1930
  [Y.voucher]: u.crm_voucher,
@@ -1943,21 +1943,21 @@ const Ks = "access-denied", Js = {
1943
1943
  [Y.orderDraft]: u.inventory_orderDraftApproval,
1944
1944
  [Y.unitCostHistory]: u.inventory_unitCostHistory
1945
1945
  };
1946
- function _s(t) {
1947
- return Js[t] ?? t;
1946
+ function Js(t) {
1947
+ return Ks[t] ?? t;
1948
1948
  }
1949
- function $s(t) {
1949
+ function _s(t) {
1950
1950
  return t.map((e) => ({
1951
1951
  ...e,
1952
- subject: _s(e.subject),
1952
+ subject: Js(e.subject),
1953
1953
  reason: e.source !== void 0 ? JSON.stringify(e.source) : e.reason
1954
1954
  }));
1955
1955
  }
1956
- function ea(t) {
1957
- return new Ls($s(t));
1956
+ function $s(t) {
1957
+ return new Zs(_s(t));
1958
1958
  }
1959
- function Nn(t, e, n) {
1960
- const r = Array.isArray(t) ? t : [t], s = ea(e), a = (h) => h.subject, o = (h) => s.can(h.action, a(h), h.field) ? !0 : h.coverSubject !== void 0 ? s.can(h.action, h.coverSubject, h.field) : !1, l = r.find((h) => !o(h));
1959
+ function ea(t, e, n) {
1960
+ const r = Array.isArray(t) ? t : [t], s = $s(e), a = (h) => h.subject, o = (h) => s.can(h.action, a(h), h.field) ? !0 : h.coverSubject !== void 0 ? s.can(h.action, h.coverSubject, h.field) : !1, l = r.find((h) => !o(h));
1961
1961
  if (l) {
1962
1962
  const h = s.relevantRuleFor(
1963
1963
  l.action,
@@ -1983,7 +1983,7 @@ async function ta(t) {
1983
1983
  message: "User does not have permission to access"
1984
1984
  });
1985
1985
  if (s && s.length > 0) {
1986
- const { granted: o } = Nn(s, e.permissions);
1986
+ const { granted: o } = ea(s, e.permissions);
1987
1987
  if (!o)
1988
1988
  return Promise.resolve({
1989
1989
  canAccess: !1,
@@ -2008,17 +2008,17 @@ async function na(t, e) {
2008
2008
  return {
2009
2009
  canAccess: !1,
2010
2010
  message: r.message,
2011
- redirectTo: Ks
2011
+ redirectTo: Ls
2012
2012
  };
2013
2013
  }
2014
2014
  return {
2015
2015
  canAccess: !0
2016
2016
  };
2017
2017
  }
2018
- var Ct = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Ct || {});
2018
+ var Dt = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Dt || {});
2019
2019
  function ra() {
2020
- const t = jn(), { sessionUser: e } = kt();
2021
- return Ps(
2020
+ const t = Tn(), { sessionUser: e } = Ot();
2021
+ return Is(
2022
2022
  async () => {
2023
2023
  t.matched;
2024
2024
  const n = e.value;
@@ -2056,10 +2056,10 @@ const sa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2056
2056
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
2057
2057
  }, da = {
2058
2058
  noPermission: ua
2059
- }, ga = { class: "w-full h-full flex justify-center items-center" }, ma = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, ha = { class: "w-[300px] h-[300px]" }, fa = ["src"], pa = { class: "text-2xl" }, ba = { class: "text-xl" }, ya = /* @__PURE__ */ st({
2059
+ }, ga = { class: "w-full h-full flex justify-center items-center" }, ma = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, ha = { class: "w-[300px] h-[300px]" }, fa = ["src"], pa = { class: "text-2xl" }, ba = { class: "text-xl" }, ya = /* @__PURE__ */ rt({
2060
2060
  __name: "NoPermission",
2061
2061
  setup(t) {
2062
- const { t: e } = On({
2062
+ const { t: e } = jn({
2063
2063
  messages: {
2064
2064
  "en-US": ia,
2065
2065
  "zh-CN": ca,
@@ -2067,7 +2067,7 @@ const sa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2067
2067
  "th-TH": da
2068
2068
  }
2069
2069
  });
2070
- return (n, r) => (at(), gs("div", ga, [
2070
+ return (n, r) => (st(), ds("div", ga, [
2071
2071
  de("div", ma, [
2072
2072
  de("div", ha, [
2073
2073
  de("img", {
@@ -2076,24 +2076,24 @@ const sa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2076
2076
  }, null, 8, fa)
2077
2077
  ]),
2078
2078
  de("div", null, [
2079
- de("h1", pa, Jt(re(e)("noPermission.title")), 1),
2080
- de("h2", ba, Jt(re(e)("noPermission.subtitle")), 1)
2079
+ de("h1", pa, Kt(re(e)("noPermission.title")), 1),
2080
+ de("h2", ba, Kt(re(e)("noPermission.subtitle")), 1)
2081
2081
  ])
2082
2082
  ])
2083
2083
  ]));
2084
2084
  }
2085
- }), wa = /* @__PURE__ */ st({
2085
+ }), wa = /* @__PURE__ */ rt({
2086
2086
  __name: "PermissionWrapper",
2087
2087
  setup(t) {
2088
2088
  const e = ra();
2089
- return (n, r) => re(e) === re(Ct).Denied ? (at(), Ot(ya, { key: 0 })) : re(e) === re(Ct).Allowed ? us(n.$slots, "default", { key: 1 }) : ds("", !0);
2089
+ return (n, r) => re(e) === re(Dt).Denied ? (st(), jt(ya, { key: 0 })) : re(e) === re(Dt).Allowed ? As(n.$slots, "default", { key: 1 }) : us("", !0);
2090
2090
  }
2091
2091
  });
2092
- function Fn(t) {
2092
+ function Nn(t) {
2093
2093
  return {
2094
2094
  inheritAttrs: !1,
2095
2095
  setup(e, { attrs: n }) {
2096
- return () => wt(wa, {}, { default: () => wt(t, n) });
2096
+ return () => yt(wa, {}, { default: () => yt(t, n) });
2097
2097
  }
2098
2098
  };
2099
2099
  }
@@ -2129,7 +2129,7 @@ const P = [
2129
2129
  i.delete
2130
2130
  ]
2131
2131
  }
2132
- ], Hn = [
2132
+ ], Fn = [
2133
2133
  ...P,
2134
2134
  {
2135
2135
  label: "Transaction",
@@ -2141,7 +2141,7 @@ const P = [
2141
2141
  i.delete
2142
2142
  ]
2143
2143
  }
2144
- ], qn = [
2144
+ ], Hn = [
2145
2145
  ...P,
2146
2146
  {
2147
2147
  label: "Store",
@@ -2208,7 +2208,7 @@ const P = [
2208
2208
  i.delete
2209
2209
  ]
2210
2210
  }
2211
- ], Xn = [
2211
+ ], qn = [
2212
2212
  ...P,
2213
2213
  {
2214
2214
  label: "Referral",
@@ -2232,7 +2232,7 @@ const P = [
2232
2232
  i.delete
2233
2233
  ]
2234
2234
  }
2235
- ], Qn = [
2235
+ ], Xn = [
2236
2236
  ...P,
2237
2237
  {
2238
2238
  label: "Analytic",
@@ -2335,7 +2335,7 @@ const P = [
2335
2335
  i.delete
2336
2336
  ]
2337
2337
  }
2338
- ], Un = [
2338
+ ], Qn = [
2339
2339
  ...P,
2340
2340
  {
2341
2341
  label: "Loyalty Member",
@@ -2347,7 +2347,7 @@ const P = [
2347
2347
  i.delete
2348
2348
  ]
2349
2349
  }
2350
- ], Wn = [
2350
+ ], Un = [
2351
2351
  ...P,
2352
2352
  {
2353
2353
  label: "Loyalty Segment",
@@ -2359,7 +2359,7 @@ const P = [
2359
2359
  i.delete
2360
2360
  ]
2361
2361
  }
2362
- ], Sn = [
2362
+ ], Wn = [
2363
2363
  ...P,
2364
2364
  {
2365
2365
  label: "Loyalty Card",
@@ -2371,41 +2371,41 @@ const P = [
2371
2371
  i.delete
2372
2372
  ]
2373
2373
  }
2374
- ], zn = [
2374
+ ], Sn = [
2375
2375
  ...P,
2376
2376
  {
2377
2377
  label: "Bin",
2378
2378
  subject: M.crm_bin,
2379
2379
  actions: [i.read, i.update, i.delete]
2380
2380
  }
2381
- ], Zn = x(
2381
+ ], zn = x(
2382
2382
  F,
2383
2383
  Pa
2384
- ), Ln = x(
2384
+ ), Zn = x(
2385
2385
  F,
2386
2386
  Ga
2387
- ), Kn = x(
2387
+ ), Ln = x(
2388
2388
  F,
2389
2389
  Ya
2390
- ), Jn = x(
2390
+ ), Kn = x(
2391
2391
  F,
2392
2392
  Va
2393
- ), _n = x(
2393
+ ), Jn = x(
2394
2394
  F,
2395
2395
  Ta
2396
- ), $n = x(
2396
+ ), _n = x(
2397
2397
  F,
2398
2398
  ja
2399
- ), er = x(
2399
+ ), $n = x(
2400
2400
  F,
2401
2401
  Oa
2402
- ), tr = x(
2402
+ ), er = x(
2403
2403
  F,
2404
2404
  ka
2405
2405
  ), xa = x(
2406
2406
  F,
2407
- Xn
2408
- ), nr = x(
2407
+ qn
2408
+ ), tr = x(
2409
2409
  F,
2410
2410
  Ea
2411
2411
  ), Ra = [
@@ -2435,13 +2435,14 @@ const P = [
2435
2435
  ], Fa = x(
2436
2436
  Ba,
2437
2437
  va,
2438
+ Fn,
2438
2439
  Hn,
2439
- qn,
2440
2440
  Da,
2441
2441
  Ca,
2442
- nr,
2442
+ tr,
2443
2443
  Ma,
2444
- Qn,
2444
+ Xn,
2445
+ zn,
2445
2446
  Zn,
2446
2447
  Ln,
2447
2448
  Kn,
@@ -2449,14 +2450,13 @@ const P = [
2449
2450
  _n,
2450
2451
  $n,
2451
2452
  er,
2452
- tr,
2453
+ Qn,
2453
2454
  Un,
2454
2455
  Wn,
2455
- Sn,
2456
- zn
2456
+ Sn
2457
2457
  ), Ha = x(
2458
2458
  F,
2459
- Xn,
2459
+ qn,
2460
2460
  Ia
2461
2461
  ), qa = x(
2462
2462
  F,
@@ -2485,62 +2485,62 @@ const P = [
2485
2485
  [`set_${u.crm_analytic}`]: {
2486
2486
  key: "sys:crm:analytic",
2487
2487
  name: "CRM Analytic",
2488
- permissions: Qn
2488
+ permissions: Xn
2489
2489
  },
2490
2490
  [`set_${u.crm_tier}`]: {
2491
2491
  key: "sys:crm:tier",
2492
2492
  name: "CRM Tier",
2493
- permissions: Zn
2493
+ permissions: zn
2494
2494
  },
2495
2495
  [`set_${u.crm_title}`]: {
2496
2496
  key: "sys:crm:title",
2497
2497
  name: "CRM Title",
2498
- permissions: Ln
2498
+ permissions: Zn
2499
2499
  },
2500
2500
  [`set_${u.crm_broadcast}`]: {
2501
2501
  key: "sys:crm:broadcast",
2502
2502
  name: "CRM Broadcast",
2503
- permissions: Kn
2503
+ permissions: Ln
2504
2504
  },
2505
2505
  [`set_${u.crm_point}`]: {
2506
2506
  key: "sys:crm:point",
2507
2507
  name: "CRM Point",
2508
- permissions: Jn
2508
+ permissions: Kn
2509
2509
  },
2510
2510
  [`set_${u.crm_credit}`]: {
2511
2511
  key: "sys:crm:credit",
2512
2512
  name: "CRM Credit",
2513
- permissions: _n
2513
+ permissions: Jn
2514
2514
  },
2515
2515
  [`set_${u.crm_experience}`]: {
2516
2516
  key: "sys:crm:experience",
2517
2517
  name: "CRM Experience",
2518
- permissions: $n
2518
+ permissions: _n
2519
2519
  },
2520
2520
  [`set_${u.crm_game}`]: {
2521
2521
  key: "sys:crm:game",
2522
2522
  name: "CRM Game",
2523
- permissions: er
2523
+ permissions: $n
2524
2524
  },
2525
2525
  [`set_${u.crm_mission}`]: {
2526
2526
  key: "sys:crm:mission",
2527
2527
  name: "CRM Mission",
2528
- permissions: tr
2528
+ permissions: er
2529
2529
  },
2530
2530
  [`set_${u.crm_loyaltyMember}`]: {
2531
2531
  key: "sys:crm:loyaltyMember",
2532
2532
  name: "CRM Loyalty Member",
2533
- permissions: Un
2533
+ permissions: Qn
2534
2534
  },
2535
2535
  [`set_${u.crm_loyaltySegment}`]: {
2536
2536
  key: "sys:crm:loyaltySegment",
2537
2537
  name: "CRM Loyalty Segment",
2538
- permissions: Wn
2538
+ permissions: Un
2539
2539
  },
2540
2540
  [`set_${u.crm_loyaltyCard}`]: {
2541
2541
  key: "sys:crm:loyaltyCard",
2542
2542
  name: "CRM Loyalty Card",
2543
- permissions: Sn
2543
+ permissions: Wn
2544
2544
  },
2545
2545
  [`set_${u.crm_referral}`]: {
2546
2546
  key: "sys:crm:referral",
@@ -2550,22 +2550,22 @@ const P = [
2550
2550
  [`set_${u.crm_store}`]: {
2551
2551
  key: "sys:crm:store",
2552
2552
  name: "CRM Store",
2553
- permissions: qn
2553
+ permissions: Hn
2554
2554
  },
2555
2555
  [`set_${u.crm_transaction}`]: {
2556
2556
  key: "sys:crm:transaction",
2557
2557
  name: "CRM Transaction",
2558
- permissions: Hn
2558
+ permissions: Fn
2559
2559
  },
2560
2560
  [`set_${u.crm_setting}`]: {
2561
2561
  key: "sys:crm:setting",
2562
2562
  name: "CRM Setting",
2563
- permissions: nr
2563
+ permissions: tr
2564
2564
  },
2565
2565
  [`set_${u.crm_bin}`]: {
2566
2566
  key: "sys:crm:bin",
2567
2567
  name: "CRM Bin",
2568
- permissions: zn
2568
+ permissions: Sn
2569
2569
  }
2570
2570
  };
2571
2571
  var y = /* @__PURE__ */ ((t) => (t.inventory = "inventory", t.inventory_stock = "inventory::stock", t.inventory_stockAdjustment = "inventory::stockAdjustment", t.inventory_stockRecalculation = "inventory::stockRecalculation", t.inventory_unitCostHistory = "inventory::unitCostHistory", t.inventory_wastageTemplate = "inventory::wastageTemplate", t.inventory_closing = "inventory::closing", t.inventory_closingDraft = "inventory::closingDraft", t.inventory_closingTemplate = "inventory::closingTemplate", t.inventory_ingredient = "inventory::ingredient", t.inventory_ingredientGroup = "inventory::ingredientGroup", t.inventory_recipe = "inventory::recipe", t.inventory_unit = "inventory::unit", t.inventory_orderTemplate = "inventory::orderTemplate", t.inventory_orderDraft = "inventory::orderDraft", t.inventory_printTemplate = "inventory::printTemplate", t.inventory_purchaseOrder = "inventory::purchaseOrder", t.inventory_transferOutApproval = "inventory::transferOutApproval", t.inventory_adjustmentTemplate = "inventory::adjustmentTemplate", t.inventory_surcharge = "inventory::surcharge", t.inventory_supplier = "inventory::supplier", t.inventory_warehouse = "inventory::warehouse", t.inventory_publish = "inventory::publish", t.inventory_integration = "inventory::integration", t.inventory_deliveryOrder = "inventory::deliveryOrder", t.inventory_shipment = "inventory::shipment", t.inventory_orderDraftApproval = "inventory::orderDraftApproval", t))(y || {});
@@ -2575,7 +2575,7 @@ const j = [
2575
2575
  subject: y.inventory,
2576
2576
  actions: [i.read]
2577
2577
  }
2578
- ], Rt = [
2578
+ ], kt = [
2579
2579
  ...j,
2580
2580
  {
2581
2581
  label: "Stock",
@@ -2604,14 +2604,14 @@ const j = [
2604
2604
  subject: y.inventory_stockAdjustment,
2605
2605
  actions: [i.update]
2606
2606
  }
2607
- ], rr = [
2607
+ ], nr = [
2608
2608
  ...j,
2609
2609
  {
2610
2610
  label: "Unit Cost History",
2611
2611
  subject: y.inventory_unitCostHistory,
2612
2612
  actions: [i.read, i.update]
2613
2613
  }
2614
- ], sr = [
2614
+ ], rr = [
2615
2615
  ...j,
2616
2616
  {
2617
2617
  label: "Wastage Template",
@@ -2625,11 +2625,11 @@ const j = [
2625
2625
  }
2626
2626
  ];
2627
2627
  [
2628
- ...Rt,
2629
- ...rr,
2630
- ...sr
2628
+ ...kt,
2629
+ ...nr,
2630
+ ...rr
2631
2631
  ];
2632
- const Nt = [
2632
+ const xt = [
2633
2633
  ...j,
2634
2634
  {
2635
2635
  label: "Closing",
@@ -2646,7 +2646,7 @@ const Nt = [
2646
2646
  subject: y.inventory_closingDraft,
2647
2647
  actions: [i.read]
2648
2648
  }
2649
- ], ar = [
2649
+ ], sr = [
2650
2650
  ...j,
2651
2651
  {
2652
2652
  label: "Closing Draft",
@@ -2673,7 +2673,7 @@ const Nt = [
2673
2673
  subject: y.inventory_stockAdjustment,
2674
2674
  actions: [i.read]
2675
2675
  }
2676
- ], ir = [
2676
+ ], ar = [
2677
2677
  ...j,
2678
2678
  {
2679
2679
  label: "Closing Template",
@@ -2692,9 +2692,9 @@ const Nt = [
2692
2692
  }
2693
2693
  ];
2694
2694
  [
2695
- ...Nt,
2696
- ...ar,
2697
- ...ir
2695
+ ...xt,
2696
+ ...sr,
2697
+ ...ar
2698
2698
  ];
2699
2699
  const Wa = [
2700
2700
  {
@@ -2735,7 +2735,7 @@ const Wa = [
2735
2735
  subject: y.inventory,
2736
2736
  actions: [i.read, i.update]
2737
2737
  }
2738
- ], or = [
2738
+ ], ir = [
2739
2739
  {
2740
2740
  label: "Purchase Order",
2741
2741
  subject: y.inventory_purchaseOrder,
@@ -2776,7 +2776,7 @@ const Wa = [
2776
2776
  subject: y.inventory_shipment,
2777
2777
  actions: [i.read, i.update]
2778
2778
  }
2779
- ], cr = [
2779
+ ], or = [
2780
2780
  {
2781
2781
  label: "Purchase Order",
2782
2782
  subject: y.inventory_purchaseOrder,
@@ -2797,7 +2797,7 @@ const Wa = [
2797
2797
  subject: y.inventory_shipment,
2798
2798
  actions: [i.read, i.update]
2799
2799
  }
2800
- ], lr = [
2800
+ ], cr = [
2801
2801
  ...j,
2802
2802
  {
2803
2803
  label: "Surcharge",
@@ -2814,7 +2814,7 @@ const Wa = [
2814
2814
  subject: y.inventory_supplier,
2815
2815
  actions: [i.read]
2816
2816
  }
2817
- ], Ar = [
2817
+ ], lr = [
2818
2818
  ...j,
2819
2819
  {
2820
2820
  label: "Order Template",
@@ -2845,10 +2845,10 @@ const Wa = [
2845
2845
  }
2846
2846
  ];
2847
2847
  [
2848
+ ...ir,
2848
2849
  ...or,
2849
2850
  ...cr,
2850
- ...lr,
2851
- ...Ar
2851
+ ...lr
2852
2852
  ];
2853
2853
  const Ka = [
2854
2854
  ...j,
@@ -2902,14 +2902,14 @@ const Ka = [
2902
2902
  ];
2903
2903
  [
2904
2904
  ...j,
2905
- ...Rt,
2906
- ...Nt
2905
+ ...kt,
2906
+ ...xt
2907
2907
  ];
2908
2908
  const ti = {
2909
2909
  [`set_${u.inventory_stockBalance}`]: {
2910
2910
  key: "sys:inventory:stock_balance",
2911
2911
  name: "Stock Balance",
2912
- permissions: Rt
2912
+ permissions: kt
2913
2913
  },
2914
2914
  [`set_${u.inventory_stockAdjustment}`]: {
2915
2915
  key: "sys:inventory:stock_adjustment",
@@ -2919,27 +2919,27 @@ const ti = {
2919
2919
  [`set_${u.inventory_unitCostHistory}`]: {
2920
2920
  key: "sys:inventory:unit_cost_history",
2921
2921
  name: "Unit Cost History",
2922
- permissions: rr
2922
+ permissions: nr
2923
2923
  },
2924
2924
  [`set_${u.inventory_wastageTemplate}`]: {
2925
2925
  key: "sys:inventory:wastage_template",
2926
2926
  name: "Wastage Template",
2927
- permissions: sr
2927
+ permissions: rr
2928
2928
  },
2929
2929
  [`set_${u.inventory_closingHistory}`]: {
2930
2930
  key: "sys:inventory:closing_history",
2931
2931
  name: "Closing History",
2932
- permissions: Nt
2932
+ permissions: xt
2933
2933
  },
2934
2934
  [`set_${u.inventory_closingTemplate}`]: {
2935
2935
  key: "sys:inventory:closing_template",
2936
2936
  name: "Closing Template",
2937
- permissions: ir
2937
+ permissions: ar
2938
2938
  },
2939
2939
  [`set_${u.inventory_closingDraft}`]: {
2940
2940
  key: "sys:inventory:closing_draft",
2941
2941
  name: "Closing Draft",
2942
- permissions: ar
2942
+ permissions: sr
2943
2943
  },
2944
2944
  [`set_${u.inventory_ingredient}`]: {
2945
2945
  key: "sys:inventory:ingredient",
@@ -2964,7 +2964,7 @@ const ti = {
2964
2964
  [`set_${u.inventory_purchaseTransfer}`]: {
2965
2965
  key: "sys:inventory:purchase_transfer",
2966
2966
  name: "Purchase Transfer",
2967
- permissions: or
2967
+ permissions: ir
2968
2968
  },
2969
2969
  [`set_${u.inventory_orderDraftApproval}`]: {
2970
2970
  key: "sys:inventory:order_draft_approval",
@@ -2974,17 +2974,17 @@ const ti = {
2974
2974
  [`set_${u.inventory_transferOut}`]: {
2975
2975
  key: "sys:inventory:transfer_out",
2976
2976
  name: "Transfer Out",
2977
- permissions: cr
2977
+ permissions: or
2978
2978
  },
2979
2979
  [`set_${u.inventory_surcharge}`]: {
2980
2980
  key: "sys:inventory:surcharge",
2981
2981
  name: "Surcharge",
2982
- permissions: lr
2982
+ permissions: cr
2983
2983
  },
2984
2984
  [`set_${u.inventory_orderTemplate}`]: {
2985
2985
  key: "sys:inventory:order_template",
2986
2986
  name: "Order Template",
2987
- permissions: Ar
2987
+ permissions: lr
2988
2988
  },
2989
2989
  [`set_${u.inventory_supplier}`]: {
2990
2990
  key: "sys:inventory:supplier",
@@ -3083,8 +3083,8 @@ const ni = {
3083
3083
  ]
3084
3084
  }
3085
3085
  };
3086
- var ur = /* @__PURE__ */ ((t) => (t.payment_terminals = "payment::terminals", t))(ur || {});
3087
- const tn = [
3086
+ var Ar = /* @__PURE__ */ ((t) => (t.payment_terminals = "payment::terminals", t))(Ar || {});
3087
+ const en = [
3088
3088
  {
3089
3089
  label: "Payout Account",
3090
3090
  subject: u.payment_payoutAccount,
@@ -3092,19 +3092,19 @@ const tn = [
3092
3092
  },
3093
3093
  {
3094
3094
  label: "Payment Terminals",
3095
- subject: ur.payment_terminals,
3095
+ subject: Ar.payment_terminals,
3096
3096
  actions: [i.read]
3097
3097
  }
3098
3098
  ], ri = {
3099
3099
  [`set_${u.payment_transactions}`]: {
3100
3100
  key: "sys:payment:transactions",
3101
3101
  name: "Payment Transactions Access",
3102
- permissions: tn
3102
+ permissions: en
3103
3103
  },
3104
3104
  [`set_${u.payment_settlements}`]: {
3105
3105
  key: "sys:payment:settlements",
3106
3106
  name: "Payment Settlements Access",
3107
- permissions: tn
3107
+ permissions: en
3108
3108
  }
3109
3109
  }, si = {
3110
3110
  ...Qa,
@@ -3125,7 +3125,7 @@ const ai = () => ({
3125
3125
  validationManifest: {
3126
3126
  requiredCaslPermissions: [
3127
3127
  {
3128
- subject: xt.all,
3128
+ subject: xn.all,
3129
3129
  action: i.manage
3130
3130
  }
3131
3131
  ]
@@ -3138,7 +3138,7 @@ const ai = () => ({
3138
3138
  sidebarDisplay: "Restaurants",
3139
3139
  section: "payment-gateway"
3140
3140
  },
3141
- component: () => import("./Restaurant-WoIPOuVK.js")
3141
+ component: () => import("./Restaurant-DjVmC321.js")
3142
3142
  },
3143
3143
  {
3144
3144
  path: "/admin/restaurants/:restaurantId",
@@ -3147,7 +3147,7 @@ const ai = () => ({
3147
3147
  meta: {
3148
3148
  parent: "mf-payment-admin.restaurant"
3149
3149
  },
3150
- component: () => import("./RestaurantSetting-CSp5KYPV.js")
3150
+ component: () => import("./RestaurantSetting-otcaVBEY.js")
3151
3151
  },
3152
3152
  {
3153
3153
  path: "/admin/payout-accounts",
@@ -3156,7 +3156,7 @@ const ai = () => ({
3156
3156
  sidebarDisplay: "Payout Accounts",
3157
3157
  section: "payment-gateway"
3158
3158
  },
3159
- component: () => import("./PayoutAccount-C0f7Xt95.js")
3159
+ component: () => import("./PayoutAccount-B0fiUu5k.js")
3160
3160
  },
3161
3161
  {
3162
3162
  path: "/admin/payout-accounts/:accountId",
@@ -3165,7 +3165,7 @@ const ai = () => ({
3165
3165
  meta: {
3166
3166
  parent: "mf-payment-admin.payout-account"
3167
3167
  },
3168
- component: () => import("./PayoutAccountSetting-OwViZYiH.js")
3168
+ component: () => import("./PayoutAccountSetting-AfiXAw4i.js")
3169
3169
  },
3170
3170
  {
3171
3171
  path: "/admin/onboarding",
@@ -3174,7 +3174,7 @@ const ai = () => ({
3174
3174
  sidebarDisplay: "Payment Onboarding",
3175
3175
  section: "payment-gateway"
3176
3176
  },
3177
- component: () => import("./OnboardSubmission-B-aQpnpa.js")
3177
+ component: () => import("./OnboardSubmission-CRIsACkI.js")
3178
3178
  },
3179
3179
  {
3180
3180
  path: "/admin/onboarding/:submissionId",
@@ -3183,7 +3183,7 @@ const ai = () => ({
3183
3183
  meta: {
3184
3184
  parent: "mf-payment-admin.onboard-submission"
3185
3185
  },
3186
- component: () => import("./OnboardForm-C2IBqB-n.js")
3186
+ component: () => import("./OnboardForm-0wfXiZNq.js")
3187
3187
  },
3188
3188
  {
3189
3189
  path: "/admin/terminal/pos",
@@ -3192,7 +3192,7 @@ const ai = () => ({
3192
3192
  sidebarDisplay: "POS",
3193
3193
  section: "device"
3194
3194
  },
3195
- component: () => import("./Terminal-Dewmg13M.js"),
3195
+ component: () => import("./Terminal-CFw1icwx.js"),
3196
3196
  props: {
3197
3197
  type: "POS"
3198
3198
  }
@@ -3204,7 +3204,7 @@ const ai = () => ({
3204
3204
  sidebarDisplay: "Kiosks",
3205
3205
  section: "device"
3206
3206
  },
3207
- component: () => import("./Terminal-Dewmg13M.js"),
3207
+ component: () => import("./Terminal-CFw1icwx.js"),
3208
3208
  props: {
3209
3209
  type: "KIOSK"
3210
3210
  }
@@ -3216,7 +3216,7 @@ const ai = () => ({
3216
3216
  sidebarDisplay: "Terminals",
3217
3217
  section: "device"
3218
3218
  },
3219
- component: () => import("./Terminal-Dewmg13M.js"),
3219
+ component: () => import("./Terminal-CFw1icwx.js"),
3220
3220
  props: {
3221
3221
  type: "TERMINAL"
3222
3222
  }
@@ -3228,7 +3228,7 @@ const ai = () => ({
3228
3228
  meta: {
3229
3229
  parent: "mf-payment-admin.pos"
3230
3230
  },
3231
- component: () => import("./TerminalSetting-QK1F8399.js")
3231
+ component: () => import("./TerminalSetting-BnHK2VcU.js")
3232
3232
  },
3233
3233
  {
3234
3234
  path: "/admin/terminal/kiosk/:terminalId",
@@ -3237,7 +3237,7 @@ const ai = () => ({
3237
3237
  meta: {
3238
3238
  parent: "mf-payment-admin.kiosk"
3239
3239
  },
3240
- component: () => import("./TerminalSetting-QK1F8399.js")
3240
+ component: () => import("./TerminalSetting-BnHK2VcU.js")
3241
3241
  },
3242
3242
  {
3243
3243
  path: "/admin/terminal/terminal/:terminalId",
@@ -3246,7 +3246,7 @@ const ai = () => ({
3246
3246
  meta: {
3247
3247
  parent: "mf-payment-admin.terminal"
3248
3248
  },
3249
- component: () => import("./TerminalSetting-QK1F8399.js")
3249
+ component: () => import("./TerminalSetting-BnHK2VcU.js")
3250
3250
  },
3251
3251
  {
3252
3252
  path: "/admin/transaction",
@@ -3254,7 +3254,7 @@ const ai = () => ({
3254
3254
  meta: {
3255
3255
  sidebarDisplay: "Transactions"
3256
3256
  },
3257
- component: () => import("./Transaction-Edd4br9p.js")
3257
+ component: () => import("./Transaction-Hh9DsZti.js")
3258
3258
  },
3259
3259
  {
3260
3260
  path: "/admin/chargeback",
@@ -3262,7 +3262,7 @@ const ai = () => ({
3262
3262
  meta: {
3263
3263
  sidebarDisplay: "Chargebacks"
3264
3264
  },
3265
- component: () => import("./Chargeback-BUu9f1RK.js")
3265
+ component: () => import("./Chargeback-mmahMkU2.js")
3266
3266
  },
3267
3267
  {
3268
3268
  path: "/admin/settlement",
@@ -3270,7 +3270,7 @@ const ai = () => ({
3270
3270
  meta: {
3271
3271
  sidebarDisplay: "Settlements"
3272
3272
  },
3273
- component: () => import("./Settlement-s7Sg5yMu.js")
3273
+ component: () => import("./Settlement-EvbyEhZy.js")
3274
3274
  },
3275
3275
  {
3276
3276
  path: "/admin/settlement/:settlementId",
@@ -3279,7 +3279,7 @@ const ai = () => ({
3279
3279
  meta: {
3280
3280
  parent: "mf-payment-admin.settlement"
3281
3281
  },
3282
- component: () => import("./SettlementTransactions-BSWyhuT9.js")
3282
+ component: () => import("./SettlementTransactions-Cl5MpLRe.js")
3283
3283
  }
3284
3284
  ].map((t) => ({
3285
3285
  ...t,
@@ -3287,7 +3287,7 @@ const ai = () => ({
3287
3287
  ...t.meta,
3288
3288
  ...ai()
3289
3289
  }
3290
- })), Ke = [
3290
+ })), Rt = [
3291
3291
  {
3292
3292
  path: "",
3293
3293
  redirect: { name: "mf-payment-payout-account" }
@@ -3295,7 +3295,7 @@ const ai = () => ({
3295
3295
  {
3296
3296
  path: "/payout-account",
3297
3297
  name: "mf-payment-payout-account",
3298
- component: () => import("./PayoutAccount-RUxuoh4c.js"),
3298
+ component: () => import("./PayoutAccount-CVP7XAWH.js"),
3299
3299
  meta: {
3300
3300
  sidebarDisplay: "i18n:payment.routes.payout_account",
3301
3301
  validationManifest: {
@@ -3311,7 +3311,7 @@ const ai = () => ({
3311
3311
  {
3312
3312
  path: "/onboard-submission",
3313
3313
  name: "mf-payment-onboard-submission",
3314
- component: () => import("./OnboardSubmission-Cd1RB0Jg.js"),
3314
+ component: () => import("./OnboardSubmission-Dp4QmPAZ.js"),
3315
3315
  meta: {
3316
3316
  sidebarDisplay: "i18n:payment.routes.onboard_submission",
3317
3317
  region: { MY: !0, TH: !0, AU: !0 },
@@ -3329,7 +3329,7 @@ const ai = () => ({
3329
3329
  path: "/onboard-submission/:type/:submission?",
3330
3330
  name: "mf-payment-onboard-submission-form",
3331
3331
  props: !0,
3332
- component: () => import("./OnboardForm-vsYIDpeX.js"),
3332
+ component: () => import("./OnboardForm-DcHQqYYX.js"),
3333
3333
  meta: {
3334
3334
  parent: "mf-payment-onboard-submission",
3335
3335
  validationManifest: {
@@ -3345,7 +3345,7 @@ const ai = () => ({
3345
3345
  {
3346
3346
  path: "/transaction-old",
3347
3347
  name: "mf-payment-old-transaction",
3348
- component: () => import("./TransactionOld-DKrLquBs.js"),
3348
+ component: () => import("./TransactionOld-CZzDvZ4V.js"),
3349
3349
  meta: {
3350
3350
  sidebarDisplay: "i18n:payment.routes.transaction",
3351
3351
  validationManifest: {
@@ -3361,7 +3361,7 @@ const ai = () => ({
3361
3361
  {
3362
3362
  path: "/transaction",
3363
3363
  name: "mf-payment-transaction",
3364
- component: () => import("./Transaction-DvgbScu9.js"),
3364
+ component: () => import("./Transaction-D2LeKB1L.js"),
3365
3365
  meta: {
3366
3366
  sidebarDisplay: "i18n:payment.routes.transaction_new",
3367
3367
  sidebarNew: !0,
@@ -3378,7 +3378,7 @@ const ai = () => ({
3378
3378
  {
3379
3379
  path: "/settlement",
3380
3380
  name: "mf-payment-settlement",
3381
- component: () => import("./Settlement-BzEWt-Sp.js"),
3381
+ component: () => import("./Settlement-BR0eiOvD.js"),
3382
3382
  meta: {
3383
3383
  sidebarDisplay: "i18n:payment.routes.settlement",
3384
3384
  region: { MY: !0, SG: !0 },
@@ -3396,7 +3396,7 @@ const ai = () => ({
3396
3396
  path: "/settlement/:settlementId",
3397
3397
  name: "mf-payment-settlement-transaction",
3398
3398
  props: !0,
3399
- component: () => import("./SettlementTransactions-TCIV9KXu.js"),
3399
+ component: () => import("./SettlementTransactions-CzXpI06o.js"),
3400
3400
  meta: {
3401
3401
  parent: "mf-payment-settlement",
3402
3402
  validationManifest: {
@@ -3424,7 +3424,7 @@ const ai = () => ({
3424
3424
  ]
3425
3425
  }
3426
3426
  },
3427
- children: is.map((t) => ({
3427
+ children: as.map((t) => ({
3428
3428
  ...t,
3429
3429
  meta: {
3430
3430
  ...t.meta,
@@ -3433,10 +3433,10 @@ const ai = () => ({
3433
3433
  path: `/financing${t.path}`
3434
3434
  }))
3435
3435
  }
3436
- ], ii = ys("mf-payment-iframe", () => {
3436
+ ], ii = bs("mf-payment-iframe", () => {
3437
3437
  const t = {
3438
3438
  isIframe: !1
3439
- }, e = jt(() => t);
3439
+ }, e = Tt(() => t);
3440
3440
  function n(r) {
3441
3441
  t.isIframe = r;
3442
3442
  }
@@ -3477,7 +3477,7 @@ const ai = () => ({
3477
3477
  * See the License for the specific language governing permissions and
3478
3478
  * limitations under the License.
3479
3479
  */
3480
- const dr = function(t) {
3480
+ const ur = function(t) {
3481
3481
  const e = [];
3482
3482
  let n = 0;
3483
3483
  for (let r = 0; r < t.length; r++) {
@@ -3504,7 +3504,7 @@ const dr = function(t) {
3504
3504
  }
3505
3505
  }
3506
3506
  return e.join("");
3507
- }, gr = {
3507
+ }, dr = {
3508
3508
  /**
3509
3509
  * Maps bytes to characters.
3510
3510
  */
@@ -3578,7 +3578,7 @@ const dr = function(t) {
3578
3578
  * @return The base64 encoded string.
3579
3579
  */
3580
3580
  encodeString(t, e) {
3581
- return this.HAS_NATIVE_SUPPORT && !e ? btoa(t) : this.encodeByteArray(dr(t), e);
3581
+ return this.HAS_NATIVE_SUPPORT && !e ? btoa(t) : this.encodeByteArray(ur(t), e);
3582
3582
  },
3583
3583
  /**
3584
3584
  * Base64-decode a string.
@@ -3647,13 +3647,13 @@ class ci extends Error {
3647
3647
  }
3648
3648
  }
3649
3649
  const li = function(t) {
3650
- const e = dr(t);
3651
- return gr.encodeByteArray(e, !0);
3652
- }, mr = function(t) {
3650
+ const e = ur(t);
3651
+ return dr.encodeByteArray(e, !0);
3652
+ }, gr = function(t) {
3653
3653
  return li(t).replace(/\./g, "");
3654
- }, hr = function(t) {
3654
+ }, mr = function(t) {
3655
3655
  try {
3656
- return gr.decodeString(t, !0);
3656
+ return dr.decodeString(t, !0);
3657
3657
  } catch (e) {
3658
3658
  console.error("base64Decode failed: ", e);
3659
3659
  }
@@ -3715,9 +3715,9 @@ const ui = () => Ai().__FIREBASE_DEFAULTS__, di = () => {
3715
3715
  } catch {
3716
3716
  return;
3717
3717
  }
3718
- const e = t && hr(t[1]);
3718
+ const e = t && mr(t[1]);
3719
3719
  return e && JSON.parse(e);
3720
- }, Ft = () => {
3720
+ }, Nt = () => {
3721
3721
  try {
3722
3722
  return ui() || di() || gi();
3723
3723
  } catch (t) {
@@ -3726,13 +3726,13 @@ const ui = () => Ai().__FIREBASE_DEFAULTS__, di = () => {
3726
3726
  }
3727
3727
  }, mi = (t) => {
3728
3728
  var e, n;
3729
- return (n = (e = Ft()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || n === void 0 ? void 0 : n[t];
3730
- }, fr = () => {
3729
+ return (n = (e = Nt()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || n === void 0 ? void 0 : n[t];
3730
+ }, hr = () => {
3731
3731
  var t;
3732
- return (t = Ft()) === null || t === void 0 ? void 0 : t.config;
3733
- }, pr = (t) => {
3732
+ return (t = Nt()) === null || t === void 0 ? void 0 : t.config;
3733
+ }, fr = (t) => {
3734
3734
  var e;
3735
- return (e = Ft()) === null || e === void 0 ? void 0 : e[`_${t}`];
3735
+ return (e = Nt()) === null || e === void 0 ? void 0 : e[`_${t}`];
3736
3736
  };
3737
3737
  /**
3738
3738
  * @license
@@ -3877,7 +3877,7 @@ function Mi(t) {
3877
3877
  return !1;
3878
3878
  return !0;
3879
3879
  }
3880
- function Je(t, e) {
3880
+ function Ke(t, e) {
3881
3881
  if (t === e)
3882
3882
  return !0;
3883
3883
  const n = Object.keys(t), r = Object.keys(e);
@@ -3885,8 +3885,8 @@ function Je(t, e) {
3885
3885
  if (!r.includes(s))
3886
3886
  return !1;
3887
3887
  const a = t[s], o = e[s];
3888
- if (nn(a) && nn(o)) {
3889
- if (!Je(a, o))
3888
+ if (tn(a) && tn(o)) {
3889
+ if (!Ke(a, o))
3890
3890
  return !1;
3891
3891
  } else if (a !== o)
3892
3892
  return !1;
@@ -3896,7 +3896,7 @@ function Je(t, e) {
3896
3896
  return !1;
3897
3897
  return !0;
3898
3898
  }
3899
- function nn(t) {
3899
+ function tn(t) {
3900
3900
  return t !== null && typeof t == "object";
3901
3901
  }
3902
3902
  /**
@@ -3973,7 +3973,7 @@ class Pi {
3973
3973
  next: e,
3974
3974
  error: n,
3975
3975
  complete: r
3976
- }, s.next === void 0 && (s.next = dt), s.error === void 0 && (s.error = dt), s.complete === void 0 && (s.complete = dt);
3976
+ }, s.next === void 0 && (s.next = ut), s.error === void 0 && (s.error = ut), s.complete === void 0 && (s.complete = ut);
3977
3977
  const a = this.unsubscribeOne.bind(this, this.observers.length);
3978
3978
  return this.finalized && this.task.then(() => {
3979
3979
  try {
@@ -4019,7 +4019,7 @@ function Gi(t, e) {
4019
4019
  return !0;
4020
4020
  return !1;
4021
4021
  }
4022
- function dt() {
4022
+ function ut() {
4023
4023
  }
4024
4024
  /**
4025
4025
  * @license
@@ -4353,7 +4353,7 @@ const Oi = {
4353
4353
  else
4354
4354
  throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
4355
4355
  };
4356
- class br {
4356
+ class pr {
4357
4357
  /**
4358
4358
  * Gives you an instance of a Logger to capture messages according to
4359
4359
  * Firebase's logging scheme.
@@ -4409,9 +4409,9 @@ class br {
4409
4409
  }
4410
4410
  }
4411
4411
  const Ni = (t, e) => e.some((n) => t instanceof n);
4412
- let rn, sn;
4412
+ let nn, rn;
4413
4413
  function Fi() {
4414
- return rn || (rn = [
4414
+ return nn || (nn = [
4415
4415
  IDBDatabase,
4416
4416
  IDBObjectStore,
4417
4417
  IDBIndex,
@@ -4420,13 +4420,13 @@ function Fi() {
4420
4420
  ]);
4421
4421
  }
4422
4422
  function Hi() {
4423
- return sn || (sn = [
4423
+ return rn || (rn = [
4424
4424
  IDBCursor.prototype.advance,
4425
4425
  IDBCursor.prototype.continue,
4426
4426
  IDBCursor.prototype.continuePrimaryKey
4427
4427
  ]);
4428
4428
  }
4429
- const yr = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap();
4429
+ const br = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap();
4430
4430
  function qi(t) {
4431
4431
  const e = new Promise((n, r) => {
4432
4432
  const s = () => {
@@ -4439,12 +4439,12 @@ function qi(t) {
4439
4439
  t.addEventListener("success", a), t.addEventListener("error", o);
4440
4440
  });
4441
4441
  return e.then((n) => {
4442
- n instanceof IDBCursor && yr.set(n, t);
4442
+ n instanceof IDBCursor && br.set(n, t);
4443
4443
  }).catch(() => {
4444
- }), Ht.set(e, t), e;
4444
+ }), Ft.set(e, t), e;
4445
4445
  }
4446
4446
  function Xi(t) {
4447
- if (Et.has(t))
4447
+ if (Ct.has(t))
4448
4448
  return;
4449
4449
  const e = new Promise((n, r) => {
4450
4450
  const s = () => {
@@ -4456,15 +4456,15 @@ function Xi(t) {
4456
4456
  };
4457
4457
  t.addEventListener("complete", a), t.addEventListener("error", o), t.addEventListener("abort", o);
4458
4458
  });
4459
- Et.set(t, e);
4459
+ Ct.set(t, e);
4460
4460
  }
4461
- let Mt = {
4461
+ let Et = {
4462
4462
  get(t, e, n) {
4463
4463
  if (t instanceof IDBTransaction) {
4464
4464
  if (e === "done")
4465
- return Et.get(t);
4465
+ return Ct.get(t);
4466
4466
  if (e === "objectStoreNames")
4467
- return t.objectStoreNames || wr.get(t);
4467
+ return t.objectStoreNames || yr.get(t);
4468
4468
  if (e === "store")
4469
4469
  return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
4470
4470
  }
@@ -4478,30 +4478,30 @@ let Mt = {
4478
4478
  }
4479
4479
  };
4480
4480
  function Qi(t) {
4481
- Mt = t(Mt);
4481
+ Et = t(Et);
4482
4482
  }
4483
4483
  function Ui(t) {
4484
4484
  return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
4485
- const r = t.call(mt(this), e, ...n);
4486
- return wr.set(r, e.sort ? e.sort() : [e]), se(r);
4485
+ const r = t.call(gt(this), e, ...n);
4486
+ return yr.set(r, e.sort ? e.sort() : [e]), se(r);
4487
4487
  } : Hi().includes(t) ? function(...e) {
4488
- return t.apply(mt(this), e), se(yr.get(this));
4488
+ return t.apply(gt(this), e), se(br.get(this));
4489
4489
  } : function(...e) {
4490
- return se(t.apply(mt(this), e));
4490
+ return se(t.apply(gt(this), e));
4491
4491
  };
4492
4492
  }
4493
4493
  function Wi(t) {
4494
- return typeof t == "function" ? Ui(t) : (t instanceof IDBTransaction && Xi(t), Ni(t, Fi()) ? new Proxy(t, Mt) : t);
4494
+ return typeof t == "function" ? Ui(t) : (t instanceof IDBTransaction && Xi(t), Ni(t, Fi()) ? new Proxy(t, Et) : t);
4495
4495
  }
4496
4496
  function se(t) {
4497
4497
  if (t instanceof IDBRequest)
4498
4498
  return qi(t);
4499
- if (gt.has(t))
4500
- return gt.get(t);
4499
+ if (dt.has(t))
4500
+ return dt.get(t);
4501
4501
  const e = Wi(t);
4502
- return e !== t && (gt.set(t, e), Ht.set(e, t)), e;
4502
+ return e !== t && (dt.set(t, e), Ft.set(e, t)), e;
4503
4503
  }
4504
- const mt = (t) => Ht.get(t);
4504
+ const gt = (t) => Ft.get(t);
4505
4505
  function Si(t, e, { blocked: n, upgrade: r, blocking: s, terminated: a } = {}) {
4506
4506
  const o = indexedDB.open(t, e), l = se(o);
4507
4507
  return r && o.addEventListener("upgradeneeded", (A) => {
@@ -4516,12 +4516,12 @@ function Si(t, e, { blocked: n, upgrade: r, blocking: s, terminated: a } = {}) {
4516
4516
  }).catch(() => {
4517
4517
  }), l;
4518
4518
  }
4519
- const zi = ["get", "getKey", "getAll", "getAllKeys", "count"], Zi = ["put", "add", "delete", "clear"], ht = /* @__PURE__ */ new Map();
4520
- function an(t, e) {
4519
+ const zi = ["get", "getKey", "getAll", "getAllKeys", "count"], Zi = ["put", "add", "delete", "clear"], mt = /* @__PURE__ */ new Map();
4520
+ function sn(t, e) {
4521
4521
  if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
4522
4522
  return;
4523
- if (ht.get(e))
4524
- return ht.get(e);
4523
+ if (mt.get(e))
4524
+ return mt.get(e);
4525
4525
  const n = e.replace(/FromIndex$/, ""), r = e !== n, s = Zi.includes(n);
4526
4526
  if (
4527
4527
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
@@ -4536,12 +4536,12 @@ function an(t, e) {
4536
4536
  s && A.done
4537
4537
  ]))[0];
4538
4538
  };
4539
- return ht.set(e, a), a;
4539
+ return mt.set(e, a), a;
4540
4540
  }
4541
4541
  Qi((t) => ({
4542
4542
  ...t,
4543
- get: (e, n, r) => an(e, n) || t.get(e, n, r),
4544
- has: (e, n) => !!an(e, n) || t.has(e, n)
4543
+ get: (e, n, r) => sn(e, n) || t.get(e, n, r),
4544
+ has: (e, n) => !!sn(e, n) || t.has(e, n)
4545
4545
  }));
4546
4546
  /**
4547
4547
  * @license
@@ -4579,7 +4579,7 @@ function Ki(t) {
4579
4579
  const e = t.getComponent();
4580
4580
  return (e == null ? void 0 : e.type) === "VERSION";
4581
4581
  }
4582
- const It = "@firebase/app", on = "0.10.13";
4582
+ const Mt = "@firebase/app", an = "0.10.13";
4583
4583
  /**
4584
4584
  * @license
4585
4585
  * Copyright 2019 Google LLC
@@ -4596,7 +4596,7 @@ const It = "@firebase/app", on = "0.10.13";
4596
4596
  * See the License for the specific language governing permissions and
4597
4597
  * limitations under the License.
4598
4598
  */
4599
- const Z = new br("@firebase/app"), Ji = "@firebase/app-compat", _i = "@firebase/analytics-compat", $i = "@firebase/analytics", eo = "@firebase/app-check-compat", to = "@firebase/app-check", no = "@firebase/auth", ro = "@firebase/auth-compat", so = "@firebase/database", ao = "@firebase/data-connect", io = "@firebase/database-compat", oo = "@firebase/functions", co = "@firebase/functions-compat", lo = "@firebase/installations", Ao = "@firebase/installations-compat", uo = "@firebase/messaging", go = "@firebase/messaging-compat", mo = "@firebase/performance", ho = "@firebase/performance-compat", fo = "@firebase/remote-config", po = "@firebase/remote-config-compat", bo = "@firebase/storage", yo = "@firebase/storage-compat", wo = "@firebase/firestore", Bo = "@firebase/vertexai-preview", vo = "@firebase/firestore-compat", Do = "firebase", Co = "10.14.1";
4599
+ const Z = new pr("@firebase/app"), Ji = "@firebase/app-compat", _i = "@firebase/analytics-compat", $i = "@firebase/analytics", eo = "@firebase/app-check-compat", to = "@firebase/app-check", no = "@firebase/auth", ro = "@firebase/auth-compat", so = "@firebase/database", ao = "@firebase/data-connect", io = "@firebase/database-compat", oo = "@firebase/functions", co = "@firebase/functions-compat", lo = "@firebase/installations", Ao = "@firebase/installations-compat", uo = "@firebase/messaging", go = "@firebase/messaging-compat", mo = "@firebase/performance", ho = "@firebase/performance-compat", fo = "@firebase/remote-config", po = "@firebase/remote-config-compat", bo = "@firebase/storage", yo = "@firebase/storage-compat", wo = "@firebase/firestore", Bo = "@firebase/vertexai-preview", vo = "@firebase/firestore-compat", Do = "firebase", Co = "10.14.1";
4600
4600
  /**
4601
4601
  * @license
4602
4602
  * Copyright 2019 Google LLC
@@ -4613,8 +4613,8 @@ const Z = new br("@firebase/app"), Ji = "@firebase/app-compat", _i = "@firebase/
4613
4613
  * See the License for the specific language governing permissions and
4614
4614
  * limitations under the License.
4615
4615
  */
4616
- const Pt = "[DEFAULT]", Eo = {
4617
- [It]: "fire-core",
4616
+ const It = "[DEFAULT]", Eo = {
4617
+ [Mt]: "fire-core",
4618
4618
  [Ji]: "fire-core-compat",
4619
4619
  [$i]: "fire-analytics",
4620
4620
  [_i]: "fire-analytics-compat",
@@ -4659,8 +4659,8 @@ const Pt = "[DEFAULT]", Eo = {
4659
4659
  * See the License for the specific language governing permissions and
4660
4660
  * limitations under the License.
4661
4661
  */
4662
- const _e = /* @__PURE__ */ new Map(), Mo = /* @__PURE__ */ new Map(), Gt = /* @__PURE__ */ new Map();
4663
- function cn(t, e) {
4662
+ const Je = /* @__PURE__ */ new Map(), Mo = /* @__PURE__ */ new Map(), Pt = /* @__PURE__ */ new Map();
4663
+ function on(t, e) {
4664
4664
  try {
4665
4665
  t.container.addComponent(e);
4666
4666
  } catch (n) {
@@ -4669,16 +4669,16 @@ function cn(t, e) {
4669
4669
  }
4670
4670
  function Ye(t) {
4671
4671
  const e = t.name;
4672
- if (Gt.has(e))
4672
+ if (Pt.has(e))
4673
4673
  return Z.debug(`There were multiple attempts to register component ${e}.`), !1;
4674
- Gt.set(e, t);
4675
- for (const n of _e.values())
4676
- cn(n, t);
4674
+ Pt.set(e, t);
4675
+ for (const n of Je.values())
4676
+ on(n, t);
4677
4677
  for (const n of Mo.values())
4678
- cn(n, t);
4678
+ on(n, t);
4679
4679
  return !0;
4680
4680
  }
4681
- function Br(t, e) {
4681
+ function wr(t, e) {
4682
4682
  const n = t.container.getProvider("heartbeat").getImmediate({ optional: !0 });
4683
4683
  return n && n.triggerHeartbeat(), t.container.getProvider(e);
4684
4684
  }
@@ -4792,35 +4792,35 @@ class Po {
4792
4792
  * limitations under the License.
4793
4793
  */
4794
4794
  const ke = Co;
4795
- function vr(t, e = {}) {
4795
+ function Br(t, e = {}) {
4796
4796
  let n = t;
4797
4797
  typeof e != "object" && (e = { name: e });
4798
- const r = Object.assign({ name: Pt, automaticDataCollectionEnabled: !1 }, e), s = r.name;
4798
+ const r = Object.assign({ name: It, automaticDataCollectionEnabled: !1 }, e), s = r.name;
4799
4799
  if (typeof s != "string" || !s)
4800
4800
  throw ae.create("bad-app-name", {
4801
4801
  appName: String(s)
4802
4802
  });
4803
- if (n || (n = fr()), !n)
4803
+ if (n || (n = hr()), !n)
4804
4804
  throw ae.create(
4805
4805
  "no-options"
4806
4806
  /* AppError.NO_OPTIONS */
4807
4807
  );
4808
- const a = _e.get(s);
4808
+ const a = Je.get(s);
4809
4809
  if (a) {
4810
- if (Je(n, a.options) && Je(r, a.config))
4810
+ if (Ke(n, a.options) && Ke(r, a.config))
4811
4811
  return a;
4812
4812
  throw ae.create("duplicate-app", { appName: s });
4813
4813
  }
4814
4814
  const o = new ji(s);
4815
- for (const A of Gt.values())
4815
+ for (const A of Pt.values())
4816
4816
  o.addComponent(A);
4817
4817
  const l = new Po(n, r, o);
4818
- return _e.set(s, l), l;
4818
+ return Je.set(s, l), l;
4819
4819
  }
4820
- function Go(t = Pt) {
4821
- const e = _e.get(t);
4822
- if (!e && t === Pt && fr())
4823
- return vr();
4820
+ function Go(t = It) {
4821
+ const e = Je.get(t);
4822
+ if (!e && t === It && hr())
4823
+ return Br();
4824
4824
  if (!e)
4825
4825
  throw ae.create("no-app", { appName: t });
4826
4826
  return e;
@@ -4861,9 +4861,9 @@ function he(t, e, n) {
4861
4861
  * limitations under the License.
4862
4862
  */
4863
4863
  const Yo = "firebase-heartbeat-database", Vo = 1, Ve = "firebase-heartbeat-store";
4864
- let ft = null;
4865
- function Dr() {
4866
- return ft || (ft = Si(Yo, Vo, {
4864
+ let ht = null;
4865
+ function vr() {
4866
+ return ht || (ht = Si(Yo, Vo, {
4867
4867
  upgrade: (t, e) => {
4868
4868
  switch (e) {
4869
4869
  case 0:
@@ -4878,11 +4878,11 @@ function Dr() {
4878
4878
  throw ae.create("idb-open", {
4879
4879
  originalErrorMessage: t.message
4880
4880
  });
4881
- })), ft;
4881
+ })), ht;
4882
4882
  }
4883
4883
  async function To(t) {
4884
4884
  try {
4885
- const n = (await Dr()).transaction(Ve), r = await n.objectStore(Ve).get(Cr(t));
4885
+ const n = (await vr()).transaction(Ve), r = await n.objectStore(Ve).get(Dr(t));
4886
4886
  return await n.done, r;
4887
4887
  } catch (e) {
4888
4888
  if (e instanceof oe)
@@ -4895,10 +4895,10 @@ async function To(t) {
4895
4895
  }
4896
4896
  }
4897
4897
  }
4898
- async function ln(t, e) {
4898
+ async function cn(t, e) {
4899
4899
  try {
4900
- const r = (await Dr()).transaction(Ve, "readwrite");
4901
- await r.objectStore(Ve).put(e, Cr(t)), await r.done;
4900
+ const r = (await vr()).transaction(Ve, "readwrite");
4901
+ await r.objectStore(Ve).put(e, Dr(t)), await r.done;
4902
4902
  } catch (n) {
4903
4903
  if (n instanceof oe)
4904
4904
  Z.warn(n.message);
@@ -4910,7 +4910,7 @@ async function ln(t, e) {
4910
4910
  }
4911
4911
  }
4912
4912
  }
4913
- function Cr(t) {
4913
+ function Dr(t) {
4914
4914
  return `${t.name}!${t.options.appId}`;
4915
4915
  }
4916
4916
  /**
@@ -4946,7 +4946,7 @@ class ko {
4946
4946
  async triggerHeartbeat() {
4947
4947
  var e, n;
4948
4948
  try {
4949
- const s = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), a = An();
4949
+ const s = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), a = ln();
4950
4950
  return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((n = this._heartbeatsCache) === null || n === void 0 ? void 0 : n.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === a || this._heartbeatsCache.heartbeats.some((o) => o.date === a) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: a, agent: s }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((o) => {
4951
4951
  const l = new Date(o.date).valueOf();
4952
4952
  return Date.now() - l <= Oo;
@@ -4967,14 +4967,14 @@ class ko {
4967
4967
  try {
4968
4968
  if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
4969
4969
  return "";
4970
- const n = An(), { heartbeatsToSend: r, unsentEntries: s } = xo(this._heartbeatsCache.heartbeats), a = mr(JSON.stringify({ version: 2, heartbeats: r }));
4970
+ const n = ln(), { heartbeatsToSend: r, unsentEntries: s } = xo(this._heartbeatsCache.heartbeats), a = gr(JSON.stringify({ version: 2, heartbeats: r }));
4971
4971
  return this._heartbeatsCache.lastSentHeartbeatDate = n, s.length > 0 ? (this._heartbeatsCache.heartbeats = s, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), a;
4972
4972
  } catch (n) {
4973
4973
  return Z.warn(n), "";
4974
4974
  }
4975
4975
  }
4976
4976
  }
4977
- function An() {
4977
+ function ln() {
4978
4978
  return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
4979
4979
  }
4980
4980
  function xo(t, e = jo) {
@@ -4983,14 +4983,14 @@ function xo(t, e = jo) {
4983
4983
  for (const s of t) {
4984
4984
  const a = n.find((o) => o.agent === s.agent);
4985
4985
  if (a) {
4986
- if (a.dates.push(s.date), un(n) > e) {
4986
+ if (a.dates.push(s.date), An(n) > e) {
4987
4987
  a.dates.pop();
4988
4988
  break;
4989
4989
  }
4990
4990
  } else if (n.push({
4991
4991
  agent: s.agent,
4992
4992
  dates: [s.date]
4993
- }), un(n) > e) {
4993
+ }), An(n) > e) {
4994
4994
  n.pop();
4995
4995
  break;
4996
4996
  }
@@ -5023,7 +5023,7 @@ class Ro {
5023
5023
  var n;
5024
5024
  if (await this._canUseIndexedDBPromise) {
5025
5025
  const s = await this.read();
5026
- return ln(this.app, {
5026
+ return cn(this.app, {
5027
5027
  lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
5028
5028
  heartbeats: e.heartbeats
5029
5029
  });
@@ -5035,7 +5035,7 @@ class Ro {
5035
5035
  var n;
5036
5036
  if (await this._canUseIndexedDBPromise) {
5037
5037
  const s = await this.read();
5038
- return ln(this.app, {
5038
+ return cn(this.app, {
5039
5039
  lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
5040
5040
  heartbeats: [
5041
5041
  ...s.heartbeats,
@@ -5046,8 +5046,8 @@ class Ro {
5046
5046
  return;
5047
5047
  }
5048
5048
  }
5049
- function un(t) {
5050
- return mr(
5049
+ function An(t) {
5050
+ return gr(
5051
5051
  // heartbeatsCache wrapper properties
5052
5052
  JSON.stringify({ version: 2, heartbeats: t })
5053
5053
  ).length;
@@ -5079,7 +5079,7 @@ function No(t) {
5079
5079
  (e) => new ko(e),
5080
5080
  "PRIVATE"
5081
5081
  /* ComponentType.PRIVATE */
5082
- )), he(It, on, t), he(It, on, "esm2017"), he("fire-js", "");
5082
+ )), he(Mt, an, t), he(Mt, an, "esm2017"), he("fire-js", "");
5083
5083
  }
5084
5084
  No("");
5085
5085
  var Fo = "firebase", Ho = "10.14.1";
@@ -5100,16 +5100,16 @@ var Fo = "firebase", Ho = "10.14.1";
5100
5100
  * limitations under the License.
5101
5101
  */
5102
5102
  he(Fo, Ho, "app");
5103
- var dn = function() {
5104
- return dn = Object.assign || function(e) {
5103
+ var un = function() {
5104
+ return un = Object.assign || function(e) {
5105
5105
  for (var n, r = 1, s = arguments.length; r < s; r++) {
5106
5106
  n = arguments[r];
5107
5107
  for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
5108
5108
  }
5109
5109
  return e;
5110
- }, dn.apply(this, arguments);
5110
+ }, un.apply(this, arguments);
5111
5111
  };
5112
- function qt(t, e) {
5112
+ function Ht(t, e) {
5113
5113
  var n = {};
5114
5114
  for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
5115
5115
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -5117,12 +5117,12 @@ function qt(t, e) {
5117
5117
  e.indexOf(r[s]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[s]) && (n[r[s]] = t[r[s]]);
5118
5118
  return n;
5119
5119
  }
5120
- function Er() {
5120
+ function Cr() {
5121
5121
  return {
5122
5122
  "dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
5123
5123
  };
5124
5124
  }
5125
- const qo = Er, Mr = new je("auth", "Firebase", Er());
5125
+ const qo = Cr, Er = new je("auth", "Firebase", Cr());
5126
5126
  /**
5127
5127
  * @license
5128
5128
  * Copyright 2020 Google LLC
@@ -5139,12 +5139,12 @@ const qo = Er, Mr = new je("auth", "Firebase", Er());
5139
5139
  * See the License for the specific language governing permissions and
5140
5140
  * limitations under the License.
5141
5141
  */
5142
- const $e = new br("@firebase/auth");
5142
+ const _e = new pr("@firebase/auth");
5143
5143
  function Xo(t, ...e) {
5144
- $e.logLevel <= I.WARN && $e.warn(`Auth (${ke}): ${t}`, ...e);
5144
+ _e.logLevel <= I.WARN && _e.warn(`Auth (${ke}): ${t}`, ...e);
5145
5145
  }
5146
5146
  function We(t, ...e) {
5147
- $e.logLevel <= I.ERROR && $e.error(`Auth (${ke}): ${t}`, ...e);
5147
+ _e.logLevel <= I.ERROR && _e.error(`Auth (${ke}): ${t}`, ...e);
5148
5148
  }
5149
5149
  /**
5150
5150
  * @license
@@ -5163,30 +5163,30 @@ function We(t, ...e) {
5163
5163
  * limitations under the License.
5164
5164
  */
5165
5165
  function L(t, ...e) {
5166
- throw Xt(t, ...e);
5166
+ throw qt(t, ...e);
5167
5167
  }
5168
5168
  function q(t, ...e) {
5169
- return Xt(t, ...e);
5169
+ return qt(t, ...e);
5170
5170
  }
5171
- function Ir(t, e, n) {
5171
+ function Mr(t, e, n) {
5172
5172
  const r = Object.assign(Object.assign({}, qo()), { [e]: n });
5173
5173
  return new je("auth", "Firebase", r).create(e, {
5174
5174
  appName: t.name
5175
5175
  });
5176
5176
  }
5177
5177
  function ie(t) {
5178
- return Ir(t, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
5178
+ return Mr(t, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
5179
5179
  }
5180
- function Xt(t, ...e) {
5180
+ function qt(t, ...e) {
5181
5181
  if (typeof t != "string") {
5182
5182
  const n = e[0], r = [...e.slice(1)];
5183
5183
  return r[0] && (r[0].appName = t.name), t._errorFactory.create(n, ...r);
5184
5184
  }
5185
- return Mr.create(t, ...e);
5185
+ return Er.create(t, ...e);
5186
5186
  }
5187
5187
  function B(t, e, ...n) {
5188
5188
  if (!t)
5189
- throw Xt(e, ...n);
5189
+ throw qt(e, ...n);
5190
5190
  }
5191
5191
  function W(t) {
5192
5192
  const e = "INTERNAL ASSERTION FAILED: " + t;
@@ -5211,14 +5211,14 @@ function K(t, e) {
5211
5211
  * See the License for the specific language governing permissions and
5212
5212
  * limitations under the License.
5213
5213
  */
5214
- function Yt() {
5214
+ function Gt() {
5215
5215
  var t;
5216
5216
  return typeof self < "u" && ((t = self.location) === null || t === void 0 ? void 0 : t.href) || "";
5217
5217
  }
5218
5218
  function Qo() {
5219
- return gn() === "http:" || gn() === "https:";
5219
+ return dn() === "http:" || dn() === "https:";
5220
5220
  }
5221
- function gn() {
5221
+ function dn() {
5222
5222
  var t;
5223
5223
  return typeof self < "u" && ((t = self.location) === null || t === void 0 ? void 0 : t.protocol) || null;
5224
5224
  }
@@ -5298,7 +5298,7 @@ class xe {
5298
5298
  * See the License for the specific language governing permissions and
5299
5299
  * limitations under the License.
5300
5300
  */
5301
- function Qt(t, e) {
5301
+ function Xt(t, e) {
5302
5302
  K(t.emulator, "Emulator should always be set here");
5303
5303
  const { url: n } = t.emulator;
5304
5304
  return e ? `${n}${e.startsWith("/") ? e.slice(1) : e}` : n;
@@ -5319,7 +5319,7 @@ function Qt(t, e) {
5319
5319
  * See the License for the specific language governing permissions and
5320
5320
  * limitations under the License.
5321
5321
  */
5322
- class Pr {
5322
+ class Ir {
5323
5323
  static initialize(e, n, r) {
5324
5324
  this.fetchImpl = e, n && (this.headersImpl = n), r && (this.responseImpl = r);
5325
5325
  }
@@ -5465,11 +5465,11 @@ const So = {
5465
5465
  * limitations under the License.
5466
5466
  */
5467
5467
  const zo = new xe(3e4, 6e4);
5468
- function it(t, e) {
5468
+ function at(t, e) {
5469
5469
  return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
5470
5470
  }
5471
5471
  async function Be(t, e, n, r, s = {}) {
5472
- return Gr(t, s, async () => {
5472
+ return Pr(t, s, async () => {
5473
5473
  let a = {}, o = {};
5474
5474
  r && (e === "GET" ? o = r : a = {
5475
5475
  body: JSON.stringify(r)
@@ -5486,10 +5486,10 @@ async function Be(t, e, n, r, s = {}) {
5486
5486
  method: e,
5487
5487
  headers: A
5488
5488
  }, a);
5489
- return pi() || (d.referrerPolicy = "no-referrer"), Pr.fetch()(Vr(t, t.config.apiHost, n, l), d);
5489
+ return pi() || (d.referrerPolicy = "no-referrer"), Ir.fetch()(Yr(t, t.config.apiHost, n, l), d);
5490
5490
  });
5491
5491
  }
5492
- async function Gr(t, e, n) {
5492
+ async function Pr(t, e, n) {
5493
5493
  t._canInitEmulator = !1;
5494
5494
  const r = Object.assign(Object.assign({}, So), e);
5495
5495
  try {
@@ -5513,7 +5513,7 @@ async function Gr(t, e, n) {
5513
5513
  throw Qe(t, "user-disabled", o);
5514
5514
  const h = r[A] || A.toLowerCase().replace(/[_\s]+/g, "-");
5515
5515
  if (d)
5516
- throw Ir(t, h, d);
5516
+ throw Mr(t, h, d);
5517
5517
  L(t, h);
5518
5518
  }
5519
5519
  } catch (s) {
@@ -5522,15 +5522,15 @@ async function Gr(t, e, n) {
5522
5522
  L(t, "network-request-failed", { message: String(s) });
5523
5523
  }
5524
5524
  }
5525
- async function Yr(t, e, n, r, s = {}) {
5525
+ async function Gr(t, e, n, r, s = {}) {
5526
5526
  const a = await Be(t, e, n, r, s);
5527
5527
  return "mfaPendingCredential" in a && L(t, "multi-factor-auth-required", {
5528
5528
  _serverResponse: a
5529
5529
  }), a;
5530
5530
  }
5531
- function Vr(t, e, n, r) {
5531
+ function Yr(t, e, n, r) {
5532
5532
  const s = `${e}${n}?${r}`;
5533
- return t.config.emulator ? Qt(t.config, s) : `${t.config.apiScheme}://${s}`;
5533
+ return t.config.emulator ? Xt(t.config, s) : `${t.config.apiScheme}://${s}`;
5534
5534
  }
5535
5535
  class Zo {
5536
5536
  constructor(e) {
@@ -5573,7 +5573,7 @@ function Qe(t, e, n) {
5573
5573
  async function Lo(t, e) {
5574
5574
  return Be(t, "POST", "/v1/accounts:delete", e);
5575
5575
  }
5576
- async function Tr(t, e) {
5576
+ async function Vr(t, e) {
5577
5577
  return Be(t, "POST", "/v1/accounts:lookup", e);
5578
5578
  }
5579
5579
  /**
@@ -5602,7 +5602,7 @@ function Ge(t) {
5602
5602
  }
5603
5603
  }
5604
5604
  async function Ko(t, e = !1) {
5605
- const n = we(t), r = await n.getIdToken(e), s = Ut(r);
5605
+ const n = we(t), r = await n.getIdToken(e), s = Qt(r);
5606
5606
  B(
5607
5607
  s && s.exp && s.auth_time && s.iat,
5608
5608
  n.auth,
@@ -5613,29 +5613,29 @@ async function Ko(t, e = !1) {
5613
5613
  return {
5614
5614
  claims: s,
5615
5615
  token: r,
5616
- authTime: Ge(pt(s.auth_time)),
5617
- issuedAtTime: Ge(pt(s.iat)),
5618
- expirationTime: Ge(pt(s.exp)),
5616
+ authTime: Ge(ft(s.auth_time)),
5617
+ issuedAtTime: Ge(ft(s.iat)),
5618
+ expirationTime: Ge(ft(s.exp)),
5619
5619
  signInProvider: o || null,
5620
5620
  signInSecondFactor: (a == null ? void 0 : a.sign_in_second_factor) || null
5621
5621
  };
5622
5622
  }
5623
- function pt(t) {
5623
+ function ft(t) {
5624
5624
  return Number(t) * 1e3;
5625
5625
  }
5626
- function Ut(t) {
5626
+ function Qt(t) {
5627
5627
  const [e, n, r] = t.split(".");
5628
5628
  if (e === void 0 || n === void 0 || r === void 0)
5629
5629
  return We("JWT malformed, contained fewer than 3 sections"), null;
5630
5630
  try {
5631
- const s = hr(n);
5631
+ const s = mr(n);
5632
5632
  return s ? JSON.parse(s) : (We("Failed to decode base64 JWT payload"), null);
5633
5633
  } catch (s) {
5634
5634
  return We("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
5635
5635
  }
5636
5636
  }
5637
- function mn(t) {
5638
- const e = Ut(t);
5637
+ function gn(t) {
5638
+ const e = Qt(t);
5639
5639
  return B(
5640
5640
  e,
5641
5641
  "internal-error"
@@ -5756,7 +5756,7 @@ class _o {
5756
5756
  * See the License for the specific language governing permissions and
5757
5757
  * limitations under the License.
5758
5758
  */
5759
- class Vt {
5759
+ class Yt {
5760
5760
  constructor(e, n) {
5761
5761
  this.createdAt = e, this.lastLoginAt = n, this._initializeTime();
5762
5762
  }
@@ -5789,9 +5789,9 @@ class Vt {
5789
5789
  * See the License for the specific language governing permissions and
5790
5790
  * limitations under the License.
5791
5791
  */
5792
- async function et(t) {
5792
+ async function $e(t) {
5793
5793
  var e;
5794
- const n = t.auth, r = await t.getIdToken(), s = await Te(t, Tr(n, { idToken: r }));
5794
+ const n = t.auth, r = await t.getIdToken(), s = await Te(t, Vr(n, { idToken: r }));
5795
5795
  B(
5796
5796
  s == null ? void 0 : s.users.length,
5797
5797
  n,
@@ -5800,7 +5800,7 @@ async function et(t) {
5800
5800
  );
5801
5801
  const a = s.users[0];
5802
5802
  t._notifyReloadListener(a);
5803
- const o = !((e = a.providerUserInfo) === null || e === void 0) && e.length ? jr(a.providerUserInfo) : [], l = ec(t.providerData, o), A = t.isAnonymous, d = !(t.email && a.passwordHash) && !(l != null && l.length), h = A ? d : !1, p = {
5803
+ const o = !((e = a.providerUserInfo) === null || e === void 0) && e.length ? Tr(a.providerUserInfo) : [], l = ec(t.providerData, o), A = t.isAnonymous, d = !(t.email && a.passwordHash) && !(l != null && l.length), h = A ? d : !1, p = {
5804
5804
  uid: a.localId,
5805
5805
  displayName: a.displayName || null,
5806
5806
  photoURL: a.photoUrl || null,
@@ -5809,21 +5809,21 @@ async function et(t) {
5809
5809
  phoneNumber: a.phoneNumber || null,
5810
5810
  tenantId: a.tenantId || null,
5811
5811
  providerData: l,
5812
- metadata: new Vt(a.createdAt, a.lastLoginAt),
5812
+ metadata: new Yt(a.createdAt, a.lastLoginAt),
5813
5813
  isAnonymous: h
5814
5814
  };
5815
5815
  Object.assign(t, p);
5816
5816
  }
5817
5817
  async function $o(t) {
5818
5818
  const e = we(t);
5819
- await et(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
5819
+ await $e(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
5820
5820
  }
5821
5821
  function ec(t, e) {
5822
5822
  return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
5823
5823
  }
5824
- function jr(t) {
5824
+ function Tr(t) {
5825
5825
  return t.map((e) => {
5826
- var { providerId: n } = e, r = qt(e, ["providerId"]);
5826
+ var { providerId: n } = e, r = Ht(e, ["providerId"]);
5827
5827
  return {
5828
5828
  providerId: n,
5829
5829
  uid: r.rawId || "",
@@ -5851,15 +5851,15 @@ function jr(t) {
5851
5851
  * limitations under the License.
5852
5852
  */
5853
5853
  async function tc(t, e) {
5854
- const n = await Gr(t, {}, async () => {
5854
+ const n = await Pr(t, {}, async () => {
5855
5855
  const r = Oe({
5856
5856
  grant_type: "refresh_token",
5857
5857
  refresh_token: e
5858
- }).slice(1), { tokenApiHost: s, apiKey: a } = t.config, o = Vr(t, s, "/v1/token", `key=${a}`), l = await t._getAdditionalHeaders();
5858
+ }).slice(1), { tokenApiHost: s, apiKey: a } = t.config, o = Yr(t, s, "/v1/token", `key=${a}`), l = await t._getAdditionalHeaders();
5859
5859
  return l[
5860
5860
  "Content-Type"
5861
5861
  /* HttpHeader.CONTENT_TYPE */
5862
- ] = "application/x-www-form-urlencoded", Pr.fetch()(o, {
5862
+ ] = "application/x-www-form-urlencoded", Ir.fetch()(o, {
5863
5863
  method: "POST",
5864
5864
  headers: l,
5865
5865
  body: r
@@ -5872,7 +5872,7 @@ async function tc(t, e) {
5872
5872
  };
5873
5873
  }
5874
5874
  async function nc(t, e) {
5875
- return Be(t, "POST", "/v2/accounts:revokeToken", it(t, e));
5875
+ return Be(t, "POST", "/v2/accounts:revokeToken", at(t, e));
5876
5876
  }
5877
5877
  /**
5878
5878
  * @license
@@ -5911,7 +5911,7 @@ class fe {
5911
5911
  "internal-error"
5912
5912
  /* AuthErrorCode.INTERNAL_ERROR */
5913
5913
  );
5914
- const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : mn(e.idToken);
5914
+ const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : gn(e.idToken);
5915
5915
  this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
5916
5916
  }
5917
5917
  updateFromIdToken(e) {
@@ -5920,7 +5920,7 @@ class fe {
5920
5920
  "internal-error"
5921
5921
  /* AuthErrorCode.INTERNAL_ERROR */
5922
5922
  );
5923
- const n = mn(e);
5923
+ const n = gn(e);
5924
5924
  this.updateTokensAndExpiration(e, null, n);
5925
5925
  }
5926
5926
  async getToken(e, n = !1) {
@@ -5989,8 +5989,8 @@ function _(t, e) {
5989
5989
  }
5990
5990
  class S {
5991
5991
  constructor(e) {
5992
- var { uid: n, auth: r, stsTokenManager: s } = e, a = qt(e, ["uid", "auth", "stsTokenManager"]);
5993
- this.providerId = "firebase", this.proactiveRefresh = new _o(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = a.displayName || null, this.email = a.email || null, this.emailVerified = a.emailVerified || !1, this.phoneNumber = a.phoneNumber || null, this.photoURL = a.photoURL || null, this.isAnonymous = a.isAnonymous || !1, this.tenantId = a.tenantId || null, this.providerData = a.providerData ? [...a.providerData] : [], this.metadata = new Vt(a.createdAt || void 0, a.lastLoginAt || void 0);
5992
+ var { uid: n, auth: r, stsTokenManager: s } = e, a = Ht(e, ["uid", "auth", "stsTokenManager"]);
5993
+ this.providerId = "firebase", this.proactiveRefresh = new _o(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = a.displayName || null, this.email = a.email || null, this.emailVerified = a.emailVerified || !1, this.phoneNumber = a.phoneNumber || null, this.photoURL = a.photoURL || null, this.isAnonymous = a.isAnonymous || !1, this.tenantId = a.tenantId || null, this.providerData = a.providerData ? [...a.providerData] : [], this.metadata = new Yt(a.createdAt || void 0, a.lastLoginAt || void 0);
5994
5994
  }
5995
5995
  async getIdToken(e) {
5996
5996
  const n = await Te(this, this.stsTokenManager.getToken(this.auth, e));
@@ -6038,7 +6038,7 @@ class S {
6038
6038
  }
6039
6039
  async _updateTokensIfNecessary(e, n = !1) {
6040
6040
  let r = !1;
6041
- e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await et(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
6041
+ e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await $e(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
6042
6042
  }
6043
6043
  async delete() {
6044
6044
  if (U(this.auth.app))
@@ -6126,7 +6126,7 @@ class S {
6126
6126
  stsTokenManager: s,
6127
6127
  isAnonymous: r
6128
6128
  });
6129
- return await et(a), a;
6129
+ return await $e(a), a;
6130
6130
  }
6131
6131
  /**
6132
6132
  * Initialize a User from an idToken server response
@@ -6140,7 +6140,7 @@ class S {
6140
6140
  "internal-error"
6141
6141
  /* AuthErrorCode.INTERNAL_ERROR */
6142
6142
  );
6143
- const a = s.providerUserInfo !== void 0 ? jr(s.providerUserInfo) : [], o = !(s.email && s.passwordHash) && !(a != null && a.length), l = new fe();
6143
+ const a = s.providerUserInfo !== void 0 ? Tr(s.providerUserInfo) : [], o = !(s.email && s.passwordHash) && !(a != null && a.length), l = new fe();
6144
6144
  l.updateFromIdToken(r);
6145
6145
  const A = new S({
6146
6146
  uid: s.localId,
@@ -6156,7 +6156,7 @@ class S {
6156
6156
  phoneNumber: s.phoneNumber || null,
6157
6157
  tenantId: s.tenantId || null,
6158
6158
  providerData: a,
6159
- metadata: new Vt(s.createdAt, s.lastLoginAt),
6159
+ metadata: new Yt(s.createdAt, s.lastLoginAt),
6160
6160
  isAnonymous: !(s.email && s.passwordHash) && !(a != null && a.length)
6161
6161
  };
6162
6162
  return Object.assign(A, d), A;
@@ -6178,11 +6178,11 @@ class S {
6178
6178
  * See the License for the specific language governing permissions and
6179
6179
  * limitations under the License.
6180
6180
  */
6181
- const hn = /* @__PURE__ */ new Map();
6181
+ const mn = /* @__PURE__ */ new Map();
6182
6182
  function z(t) {
6183
6183
  K(t instanceof Function, "Expected a class definition");
6184
- let e = hn.get(t);
6185
- return e ? (K(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), hn.set(t, e), e);
6184
+ let e = mn.get(t);
6185
+ return e ? (K(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), mn.set(t, e), e);
6186
6186
  }
6187
6187
  /**
6188
6188
  * @license
@@ -6200,7 +6200,7 @@ function z(t) {
6200
6200
  * See the License for the specific language governing permissions and
6201
6201
  * limitations under the License.
6202
6202
  */
6203
- class Or {
6203
+ class jr {
6204
6204
  constructor() {
6205
6205
  this.type = "NONE", this.storage = {};
6206
6206
  }
@@ -6222,8 +6222,8 @@ class Or {
6222
6222
  _removeListener(e, n) {
6223
6223
  }
6224
6224
  }
6225
- Or.type = "NONE";
6226
- const fn = Or;
6225
+ jr.type = "NONE";
6226
+ const hn = jr;
6227
6227
  /**
6228
6228
  * @license
6229
6229
  * Copyright 2019 Google LLC
@@ -6274,12 +6274,12 @@ class pe {
6274
6274
  }
6275
6275
  static async create(e, n, r = "authUser") {
6276
6276
  if (!n.length)
6277
- return new pe(z(fn), e, r);
6277
+ return new pe(z(hn), e, r);
6278
6278
  const s = (await Promise.all(n.map(async (d) => {
6279
6279
  if (await d._isAvailable())
6280
6280
  return d;
6281
6281
  }))).filter((d) => d);
6282
- let a = s[0] || z(fn);
6282
+ let a = s[0] || z(hn);
6283
6283
  const o = Se(r, e.config.apiKey, e.name);
6284
6284
  let l = null;
6285
6285
  for (const d of n)
@@ -6318,29 +6318,29 @@ class pe {
6318
6318
  * See the License for the specific language governing permissions and
6319
6319
  * limitations under the License.
6320
6320
  */
6321
- function pn(t) {
6321
+ function fn(t) {
6322
6322
  const e = t.toLowerCase();
6323
6323
  if (e.includes("opera/") || e.includes("opr/") || e.includes("opios/"))
6324
6324
  return "Opera";
6325
- if (Nr(e))
6325
+ if (Rr(e))
6326
6326
  return "IEMobile";
6327
6327
  if (e.includes("msie") || e.includes("trident/"))
6328
6328
  return "IE";
6329
6329
  if (e.includes("edge/"))
6330
6330
  return "Edge";
6331
- if (kr(e))
6331
+ if (Or(e))
6332
6332
  return "Firefox";
6333
6333
  if (e.includes("silk/"))
6334
6334
  return "Silk";
6335
- if (Hr(e))
6335
+ if (Fr(e))
6336
6336
  return "Blackberry";
6337
- if (qr(e))
6337
+ if (Hr(e))
6338
6338
  return "Webos";
6339
- if (xr(e))
6339
+ if (kr(e))
6340
6340
  return "Safari";
6341
- if ((e.includes("chrome/") || Rr(e)) && !e.includes("edge/"))
6341
+ if ((e.includes("chrome/") || xr(e)) && !e.includes("edge/"))
6342
6342
  return "Chrome";
6343
- if (Fr(e))
6343
+ if (Nr(e))
6344
6344
  return "Android";
6345
6345
  {
6346
6346
  const n = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, r = t.match(n);
@@ -6349,40 +6349,40 @@ function pn(t) {
6349
6349
  }
6350
6350
  return "Other";
6351
6351
  }
6352
- function kr(t = T()) {
6352
+ function Or(t = T()) {
6353
6353
  return /firefox\//i.test(t);
6354
6354
  }
6355
- function xr(t = T()) {
6355
+ function kr(t = T()) {
6356
6356
  const e = t.toLowerCase();
6357
6357
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
6358
6358
  }
6359
- function Rr(t = T()) {
6359
+ function xr(t = T()) {
6360
6360
  return /crios\//i.test(t);
6361
6361
  }
6362
- function Nr(t = T()) {
6362
+ function Rr(t = T()) {
6363
6363
  return /iemobile/i.test(t);
6364
6364
  }
6365
- function Fr(t = T()) {
6365
+ function Nr(t = T()) {
6366
6366
  return /android/i.test(t);
6367
6367
  }
6368
- function Hr(t = T()) {
6368
+ function Fr(t = T()) {
6369
6369
  return /blackberry/i.test(t);
6370
6370
  }
6371
- function qr(t = T()) {
6371
+ function Hr(t = T()) {
6372
6372
  return /webos/i.test(t);
6373
6373
  }
6374
- function Wt(t = T()) {
6374
+ function Ut(t = T()) {
6375
6375
  return /iphone|ipad|ipod/i.test(t) || /macintosh/i.test(t) && /mobile/i.test(t);
6376
6376
  }
6377
6377
  function rc(t = T()) {
6378
6378
  var e;
6379
- return Wt(t) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
6379
+ return Ut(t) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
6380
6380
  }
6381
6381
  function sc() {
6382
6382
  return wi() && document.documentMode === 10;
6383
6383
  }
6384
- function Xr(t = T()) {
6385
- return Wt(t) || Fr(t) || qr(t) || Hr(t) || /windows phone/i.test(t) || Nr(t);
6384
+ function qr(t = T()) {
6385
+ return Ut(t) || Nr(t) || Hr(t) || Fr(t) || /windows phone/i.test(t) || Rr(t);
6386
6386
  }
6387
6387
  /**
6388
6388
  * @license
@@ -6400,14 +6400,14 @@ function Xr(t = T()) {
6400
6400
  * See the License for the specific language governing permissions and
6401
6401
  * limitations under the License.
6402
6402
  */
6403
- function Qr(t, e = []) {
6403
+ function Xr(t, e = []) {
6404
6404
  let n;
6405
6405
  switch (t) {
6406
6406
  case "Browser":
6407
- n = pn(T());
6407
+ n = fn(T());
6408
6408
  break;
6409
6409
  case "Worker":
6410
- n = `${pn(T())}-${t}`;
6410
+ n = `${fn(T())}-${t}`;
6411
6411
  break;
6412
6412
  default:
6413
6413
  n = t;
@@ -6487,7 +6487,7 @@ class ac {
6487
6487
  * limitations under the License.
6488
6488
  */
6489
6489
  async function ic(t, e = {}) {
6490
- return Be(t, "GET", "/v2/passwordPolicy", it(t, e));
6490
+ return Be(t, "GET", "/v2/passwordPolicy", at(t, e));
6491
6491
  }
6492
6492
  /**
6493
6493
  * @license
@@ -6595,7 +6595,7 @@ class cc {
6595
6595
  */
6596
6596
  class lc {
6597
6597
  constructor(e, n, r, s) {
6598
- this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = s, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new bn(this), this.idTokenSubscription = new bn(this), this.beforeStateQueue = new ac(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Mr, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = s.sdkClientVersion;
6598
+ this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = s, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new pn(this), this.idTokenSubscription = new pn(this), this.beforeStateQueue = new ac(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Er, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = s.sdkClientVersion;
6599
6599
  }
6600
6600
  _initializeWithPersistence(e, n) {
6601
6601
  return n && (this._popupRedirectResolver = z(n)), this._initializationPromise = this.queue(async () => {
@@ -6631,7 +6631,7 @@ class lc {
6631
6631
  }
6632
6632
  async initializeCurrentUserFromIdToken(e) {
6633
6633
  try {
6634
- const n = await Tr(this, { idToken: e }), r = await S._fromGetAccountInfoResponse(this, n, e);
6634
+ const n = await Vr(this, { idToken: e }), r = await S._fromGetAccountInfoResponse(this, n, e);
6635
6635
  await this.directlySetCurrentUser(r);
6636
6636
  } catch (n) {
6637
6637
  console.warn("FirebaseServerApp could not login user with provided authIdToken: ", n), await this.directlySetCurrentUser(null);
@@ -6681,7 +6681,7 @@ class lc {
6681
6681
  }
6682
6682
  async reloadAndSetCurrentUserOrClear(e) {
6683
6683
  try {
6684
- await et(e);
6684
+ await $e(e);
6685
6685
  } catch (n) {
6686
6686
  if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
6687
6687
  return this.directlySetCurrentUser(null);
@@ -6893,7 +6893,7 @@ class lc {
6893
6893
  ), this.persistenceManager;
6894
6894
  }
6895
6895
  _logFramework(e) {
6896
- !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Qr(this.config.clientPlatform, this._getFrameworks()));
6896
+ !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Xr(this.config.clientPlatform, this._getFrameworks()));
6897
6897
  }
6898
6898
  _getFrameworks() {
6899
6899
  return this.frameworks;
@@ -6926,10 +6926,10 @@ class lc {
6926
6926
  return n != null && n.error && Xo(`Error while retrieving App Check token: ${n.error}`), n == null ? void 0 : n.token;
6927
6927
  }
6928
6928
  }
6929
- function ot(t) {
6929
+ function it(t) {
6930
6930
  return we(t);
6931
6931
  }
6932
- class bn {
6932
+ class pn {
6933
6933
  constructor(e) {
6934
6934
  this.auth = e, this.observer = null, this.addObserver = Ii((n) => this.observer = n);
6935
6935
  }
@@ -6958,7 +6958,7 @@ class bn {
6958
6958
  * See the License for the specific language governing permissions and
6959
6959
  * limitations under the License.
6960
6960
  */
6961
- let St = {
6961
+ let Wt = {
6962
6962
  async loadJS() {
6963
6963
  throw new Error("Unable to load external scripts");
6964
6964
  },
@@ -6967,13 +6967,13 @@ let St = {
6967
6967
  gapiScript: ""
6968
6968
  };
6969
6969
  function Ac(t) {
6970
- St = t;
6970
+ Wt = t;
6971
6971
  }
6972
6972
  function uc(t) {
6973
- return St.loadJS(t);
6973
+ return Wt.loadJS(t);
6974
6974
  }
6975
6975
  function dc() {
6976
- return St.gapiScript;
6976
+ return Wt.gapiScript;
6977
6977
  }
6978
6978
  function gc(t) {
6979
6979
  return `__${t}${Math.floor(Math.random() * 1e6)}`;
@@ -6995,10 +6995,10 @@ function gc(t) {
6995
6995
  * limitations under the License.
6996
6996
  */
6997
6997
  function mc(t, e) {
6998
- const n = Br(t, "auth");
6998
+ const n = wr(t, "auth");
6999
6999
  if (n.isInitialized()) {
7000
7000
  const s = n.getImmediate(), a = n.getOptions();
7001
- if (Je(a, e ?? {}))
7001
+ if (Ke(a, e ?? {}))
7002
7002
  return s;
7003
7003
  L(
7004
7004
  s,
@@ -7013,7 +7013,7 @@ function hc(t, e) {
7013
7013
  e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
7014
7014
  }
7015
7015
  function fc(t, e, n) {
7016
- const r = ot(t);
7016
+ const r = it(t);
7017
7017
  B(
7018
7018
  r._canInitEmulator,
7019
7019
  r,
@@ -7025,7 +7025,7 @@ function fc(t, e, n) {
7025
7025
  "invalid-emulator-scheme"
7026
7026
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
7027
7027
  );
7028
- const s = !1, a = Ur(e), { host: o, port: l } = pc(e), A = l === null ? "" : `:${l}`;
7028
+ const s = !1, a = Qr(e), { host: o, port: l } = pc(e), A = l === null ? "" : `:${l}`;
7029
7029
  r.config.emulator = { url: `${a}//${o}${A}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
7030
7030
  host: o,
7031
7031
  port: l,
@@ -7033,24 +7033,24 @@ function fc(t, e, n) {
7033
7033
  options: Object.freeze({ disableWarnings: s })
7034
7034
  }), bc();
7035
7035
  }
7036
- function Ur(t) {
7036
+ function Qr(t) {
7037
7037
  const e = t.indexOf(":");
7038
7038
  return e < 0 ? "" : t.substr(0, e + 1);
7039
7039
  }
7040
7040
  function pc(t) {
7041
- const e = Ur(t), n = /(\/\/)?([^?#/]+)/.exec(t.substr(e.length));
7041
+ const e = Qr(t), n = /(\/\/)?([^?#/]+)/.exec(t.substr(e.length));
7042
7042
  if (!n)
7043
7043
  return { host: "", port: null };
7044
7044
  const r = n[2].split("@").pop() || "", s = /^(\[[^\]]+\])(:|$)/.exec(r);
7045
7045
  if (s) {
7046
7046
  const a = s[1];
7047
- return { host: a, port: yn(r.substr(a.length + 1)) };
7047
+ return { host: a, port: bn(r.substr(a.length + 1)) };
7048
7048
  } else {
7049
7049
  const [a, o] = r.split(":");
7050
- return { host: a, port: yn(o) };
7050
+ return { host: a, port: bn(o) };
7051
7051
  }
7052
7052
  }
7053
- function yn(t) {
7053
+ function bn(t) {
7054
7054
  if (!t)
7055
7055
  return null;
7056
7056
  const e = Number(t);
@@ -7079,7 +7079,7 @@ function bc() {
7079
7079
  * See the License for the specific language governing permissions and
7080
7080
  * limitations under the License.
7081
7081
  */
7082
- class Wr {
7082
+ class Ur {
7083
7083
  /** @internal */
7084
7084
  constructor(e, n) {
7085
7085
  this.providerId = e, this.signInMethod = n;
@@ -7122,7 +7122,7 @@ class Wr {
7122
7122
  * limitations under the License.
7123
7123
  */
7124
7124
  async function be(t, e) {
7125
- return Yr(t, "POST", "/v1/accounts:signInWithIdp", it(t, e));
7125
+ return Gr(t, "POST", "/v1/accounts:signInWithIdp", at(t, e));
7126
7126
  }
7127
7127
  /**
7128
7128
  * @license
@@ -7141,7 +7141,7 @@ async function be(t, e) {
7141
7141
  * limitations under the License.
7142
7142
  */
7143
7143
  const yc = "http://localhost";
7144
- class Ae extends Wr {
7144
+ class Ae extends Ur {
7145
7145
  constructor() {
7146
7146
  super(...arguments), this.pendingToken = null;
7147
7147
  }
@@ -7175,7 +7175,7 @@ class Ae extends Wr {
7175
7175
  * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
7176
7176
  */
7177
7177
  static fromJSON(e) {
7178
- const n = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: s } = n, a = qt(n, ["providerId", "signInMethod"]);
7178
+ const n = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: s } = n, a = Ht(n, ["providerId", "signInMethod"]);
7179
7179
  if (!r || !s)
7180
7180
  return null;
7181
7181
  const o = new Ae(r, s);
@@ -7226,7 +7226,7 @@ class Ae extends Wr {
7226
7226
  * See the License for the specific language governing permissions and
7227
7227
  * limitations under the License.
7228
7228
  */
7229
- class Sr {
7229
+ class Wr {
7230
7230
  /**
7231
7231
  * Constructor for generic OAuth providers.
7232
7232
  *
@@ -7279,7 +7279,7 @@ class Sr {
7279
7279
  * See the License for the specific language governing permissions and
7280
7280
  * limitations under the License.
7281
7281
  */
7282
- class Re extends Sr {
7282
+ class Re extends Wr {
7283
7283
  constructor() {
7284
7284
  super(...arguments), this.scopes = [];
7285
7285
  }
@@ -7599,7 +7599,7 @@ class ue {
7599
7599
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
7600
7600
  }
7601
7601
  static async _fromIdTokenResponse(e, n, r, s = !1) {
7602
- const a = await S._fromIdTokenResponse(e, r, s), o = wn(r);
7602
+ const a = await S._fromIdTokenResponse(e, r, s), o = yn(r);
7603
7603
  return new ue({
7604
7604
  user: a,
7605
7605
  providerId: o,
@@ -7613,7 +7613,7 @@ class ue {
7613
7613
  /* reload */
7614
7614
  !0
7615
7615
  );
7616
- const s = wn(r);
7616
+ const s = yn(r);
7617
7617
  return new ue({
7618
7618
  user: e,
7619
7619
  providerId: s,
@@ -7622,7 +7622,7 @@ class ue {
7622
7622
  });
7623
7623
  }
7624
7624
  }
7625
- function wn(t) {
7625
+ function yn(t) {
7626
7626
  return t.providerId ? t.providerId : "phoneNumber" in t ? "phone" : null;
7627
7627
  }
7628
7628
  /**
@@ -7641,10 +7641,10 @@ function wn(t) {
7641
7641
  * See the License for the specific language governing permissions and
7642
7642
  * limitations under the License.
7643
7643
  */
7644
- class tt extends oe {
7644
+ class et extends oe {
7645
7645
  constructor(e, n, r, s) {
7646
7646
  var a;
7647
- super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, tt.prototype), this.customData = {
7647
+ super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, et.prototype), this.customData = {
7648
7648
  appName: e.name,
7649
7649
  tenantId: (a = e.tenantId) !== null && a !== void 0 ? a : void 0,
7650
7650
  _serverResponse: n.customData._serverResponse,
@@ -7652,12 +7652,12 @@ class tt extends oe {
7652
7652
  };
7653
7653
  }
7654
7654
  static _fromErrorAndOperation(e, n, r, s) {
7655
- return new tt(e, n, r, s);
7655
+ return new et(e, n, r, s);
7656
7656
  }
7657
7657
  }
7658
- function zr(t, e, n, r) {
7658
+ function Sr(t, e, n, r) {
7659
7659
  return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((a) => {
7660
- throw a.code === "auth/multi-factor-auth-required" ? tt._fromErrorAndOperation(t, a, e, r) : a;
7660
+ throw a.code === "auth/multi-factor-auth-required" ? et._fromErrorAndOperation(t, a, e, r) : a;
7661
7661
  });
7662
7662
  }
7663
7663
  async function wc(t, e, n = !1) {
@@ -7686,14 +7686,14 @@ async function Bc(t, e, n = !1) {
7686
7686
  return Promise.reject(ie(r));
7687
7687
  const s = "reauthenticate";
7688
7688
  try {
7689
- const a = await Te(t, zr(r, s, e, t), n);
7689
+ const a = await Te(t, Sr(r, s, e, t), n);
7690
7690
  B(
7691
7691
  a.idToken,
7692
7692
  r,
7693
7693
  "internal-error"
7694
7694
  /* AuthErrorCode.INTERNAL_ERROR */
7695
7695
  );
7696
- const o = Ut(a.idToken);
7696
+ const o = Qt(a.idToken);
7697
7697
  B(
7698
7698
  o,
7699
7699
  r,
@@ -7734,7 +7734,7 @@ async function Bc(t, e, n = !1) {
7734
7734
  async function vc(t, e, n = !1) {
7735
7735
  if (U(t.app))
7736
7736
  return Promise.reject(ie(t));
7737
- const r = "signIn", s = await zr(t, r, e), a = await ue._fromIdTokenResponse(t, r, s);
7737
+ const r = "signIn", s = await Sr(t, r, e), a = await ue._fromIdTokenResponse(t, r, s);
7738
7738
  return n || await t._updateCurrentUser(a.user), a;
7739
7739
  }
7740
7740
  /**
@@ -7754,7 +7754,7 @@ async function vc(t, e, n = !1) {
7754
7754
  * limitations under the License.
7755
7755
  */
7756
7756
  async function Dc(t, e) {
7757
- return Yr(t, "POST", "/v1/accounts:signInWithCustomToken", it(t, e));
7757
+ return Gr(t, "POST", "/v1/accounts:signInWithCustomToken", at(t, e));
7758
7758
  }
7759
7759
  /**
7760
7760
  * @license
@@ -7775,7 +7775,7 @@ async function Dc(t, e) {
7775
7775
  async function Cc(t, e) {
7776
7776
  if (U(t.app))
7777
7777
  return Promise.reject(ie(t));
7778
- const n = ot(t), r = await Dc(n, {
7778
+ const n = it(t), r = await Dc(n, {
7779
7779
  token: e,
7780
7780
  returnSecureToken: !0
7781
7781
  }), s = await ue._fromIdTokenResponse(n, "signIn", r);
@@ -7787,7 +7787,7 @@ function Ec(t, e, n, r) {
7787
7787
  function Mc(t, e, n) {
7788
7788
  return we(t).beforeAuthStateChanged(e, n);
7789
7789
  }
7790
- const nt = "__sak";
7790
+ const tt = "__sak";
7791
7791
  /**
7792
7792
  * @license
7793
7793
  * Copyright 2019 Google LLC
@@ -7804,13 +7804,13 @@ const nt = "__sak";
7804
7804
  * See the License for the specific language governing permissions and
7805
7805
  * limitations under the License.
7806
7806
  */
7807
- class Zr {
7807
+ class zr {
7808
7808
  constructor(e, n) {
7809
7809
  this.storageRetriever = e, this.type = n;
7810
7810
  }
7811
7811
  _isAvailable() {
7812
7812
  try {
7813
- return this.storage ? (this.storage.setItem(nt, "1"), this.storage.removeItem(nt), Promise.resolve(!0)) : Promise.resolve(!1);
7813
+ return this.storage ? (this.storage.setItem(tt, "1"), this.storage.removeItem(tt), Promise.resolve(!0)) : Promise.resolve(!1);
7814
7814
  } catch {
7815
7815
  return Promise.resolve(!1);
7816
7816
  }
@@ -7846,13 +7846,13 @@ class Zr {
7846
7846
  * limitations under the License.
7847
7847
  */
7848
7848
  const Ic = 1e3, Pc = 10;
7849
- class Lr extends Zr {
7849
+ class Zr extends zr {
7850
7850
  constructor() {
7851
7851
  super(
7852
7852
  () => window.localStorage,
7853
7853
  "LOCAL"
7854
7854
  /* PersistenceType.LOCAL */
7855
- ), this.boundEventHandler = (e, n) => this.onStorageEvent(e, n), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.fallbackToPolling = Xr(), this._shouldAllowMigration = !0;
7855
+ ), this.boundEventHandler = (e, n) => this.onStorageEvent(e, n), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.fallbackToPolling = qr(), this._shouldAllowMigration = !0;
7856
7856
  }
7857
7857
  forAllChangedKeys(e) {
7858
7858
  for (const n of Object.keys(this.listeners)) {
@@ -7924,8 +7924,8 @@ class Lr extends Zr {
7924
7924
  await super._remove(e), delete this.localCache[e];
7925
7925
  }
7926
7926
  }
7927
- Lr.type = "LOCAL";
7928
- const Gc = Lr;
7927
+ Zr.type = "LOCAL";
7928
+ const Gc = Zr;
7929
7929
  /**
7930
7930
  * @license
7931
7931
  * Copyright 2020 Google LLC
@@ -7942,7 +7942,7 @@ const Gc = Lr;
7942
7942
  * See the License for the specific language governing permissions and
7943
7943
  * limitations under the License.
7944
7944
  */
7945
- class Kr extends Zr {
7945
+ class Lr extends zr {
7946
7946
  constructor() {
7947
7947
  super(
7948
7948
  () => window.sessionStorage,
@@ -7955,8 +7955,8 @@ class Kr extends Zr {
7955
7955
  _removeListener(e, n) {
7956
7956
  }
7957
7957
  }
7958
- Kr.type = "SESSION";
7959
- const Jr = Kr;
7958
+ Lr.type = "SESSION";
7959
+ const Kr = Lr;
7960
7960
  /**
7961
7961
  * @license
7962
7962
  * Copyright 2019 Google LLC
@@ -8004,7 +8004,7 @@ function Yc(t) {
8004
8004
  * See the License for the specific language governing permissions and
8005
8005
  * limitations under the License.
8006
8006
  */
8007
- class ct {
8007
+ class ot {
8008
8008
  constructor(e) {
8009
8009
  this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
8010
8010
  }
@@ -8018,7 +8018,7 @@ class ct {
8018
8018
  const n = this.receivers.find((s) => s.isListeningto(e));
8019
8019
  if (n)
8020
8020
  return n;
8021
- const r = new ct(e);
8021
+ const r = new ot(e);
8022
8022
  return this.receivers.push(r), r;
8023
8023
  }
8024
8024
  isListeningto(e) {
@@ -8072,7 +8072,7 @@ class ct {
8072
8072
  this.handlersMap[e] && n && this.handlersMap[e].delete(n), (!n || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
8073
8073
  }
8074
8074
  }
8075
- ct.receivers = [];
8075
+ ot.receivers = [];
8076
8076
  /**
8077
8077
  * @license
8078
8078
  * Copyright 2020 Google LLC
@@ -8089,7 +8089,7 @@ ct.receivers = [];
8089
8089
  * See the License for the specific language governing permissions and
8090
8090
  * limitations under the License.
8091
8091
  */
8092
- function zt(t = "", e = 10) {
8092
+ function St(t = "", e = 10) {
8093
8093
  let n = "";
8094
8094
  for (let r = 0; r < e; r++)
8095
8095
  n += Math.floor(Math.random() * 10);
@@ -8145,7 +8145,7 @@ class Vc {
8145
8145
  );
8146
8146
  let a, o;
8147
8147
  return new Promise((l, A) => {
8148
- const d = zt("", 20);
8148
+ const d = St("", 20);
8149
8149
  s.port1.start();
8150
8150
  const h = setTimeout(() => {
8151
8151
  A(new Error(
@@ -8230,7 +8230,7 @@ function Tc(t) {
8230
8230
  * See the License for the specific language governing permissions and
8231
8231
  * limitations under the License.
8232
8232
  */
8233
- function _r() {
8233
+ function Jr() {
8234
8234
  return typeof X().WorkerGlobalScope < "u" && typeof X().importScripts == "function";
8235
8235
  }
8236
8236
  async function jc() {
@@ -8247,7 +8247,7 @@ function Oc() {
8247
8247
  return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
8248
8248
  }
8249
8249
  function kc() {
8250
- return _r() ? self : null;
8250
+ return Jr() ? self : null;
8251
8251
  }
8252
8252
  /**
8253
8253
  * @license
@@ -8265,7 +8265,7 @@ function kc() {
8265
8265
  * See the License for the specific language governing permissions and
8266
8266
  * limitations under the License.
8267
8267
  */
8268
- const $r = "firebaseLocalStorageDb", xc = 1, rt = "firebaseLocalStorage", es = "fbase_key";
8268
+ const _r = "firebaseLocalStorageDb", xc = 1, nt = "firebaseLocalStorage", $r = "fbase_key";
8269
8269
  class Ne {
8270
8270
  constructor(e) {
8271
8271
  this.request = e;
@@ -8280,55 +8280,55 @@ class Ne {
8280
8280
  });
8281
8281
  }
8282
8282
  }
8283
- function lt(t, e) {
8284
- return t.transaction([rt], e ? "readwrite" : "readonly").objectStore(rt);
8283
+ function ct(t, e) {
8284
+ return t.transaction([nt], e ? "readwrite" : "readonly").objectStore(nt);
8285
8285
  }
8286
8286
  function Rc() {
8287
- const t = indexedDB.deleteDatabase($r);
8287
+ const t = indexedDB.deleteDatabase(_r);
8288
8288
  return new Ne(t).toPromise();
8289
8289
  }
8290
- function Tt() {
8291
- const t = indexedDB.open($r, xc);
8290
+ function Vt() {
8291
+ const t = indexedDB.open(_r, xc);
8292
8292
  return new Promise((e, n) => {
8293
8293
  t.addEventListener("error", () => {
8294
8294
  n(t.error);
8295
8295
  }), t.addEventListener("upgradeneeded", () => {
8296
8296
  const r = t.result;
8297
8297
  try {
8298
- r.createObjectStore(rt, { keyPath: es });
8298
+ r.createObjectStore(nt, { keyPath: $r });
8299
8299
  } catch (s) {
8300
8300
  n(s);
8301
8301
  }
8302
8302
  }), t.addEventListener("success", async () => {
8303
8303
  const r = t.result;
8304
- r.objectStoreNames.contains(rt) ? e(r) : (r.close(), await Rc(), e(await Tt()));
8304
+ r.objectStoreNames.contains(nt) ? e(r) : (r.close(), await Rc(), e(await Vt()));
8305
8305
  });
8306
8306
  });
8307
8307
  }
8308
- async function Bn(t, e, n) {
8309
- const r = lt(t, !0).put({
8310
- [es]: e,
8308
+ async function wn(t, e, n) {
8309
+ const r = ct(t, !0).put({
8310
+ [$r]: e,
8311
8311
  value: n
8312
8312
  });
8313
8313
  return new Ne(r).toPromise();
8314
8314
  }
8315
8315
  async function Nc(t, e) {
8316
- const n = lt(t, !1).get(e), r = await new Ne(n).toPromise();
8316
+ const n = ct(t, !1).get(e), r = await new Ne(n).toPromise();
8317
8317
  return r === void 0 ? null : r.value;
8318
8318
  }
8319
- function vn(t, e) {
8320
- const n = lt(t, !0).delete(e);
8319
+ function Bn(t, e) {
8320
+ const n = ct(t, !0).delete(e);
8321
8321
  return new Ne(n).toPromise();
8322
8322
  }
8323
8323
  const Fc = 800, Hc = 3;
8324
- class ts {
8324
+ class es {
8325
8325
  constructor() {
8326
8326
  this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
8327
8327
  }, () => {
8328
8328
  });
8329
8329
  }
8330
8330
  async _openDb() {
8331
- return this.db ? this.db : (this.db = await Tt(), this.db);
8331
+ return this.db ? this.db : (this.db = await Vt(), this.db);
8332
8332
  }
8333
8333
  async _withRetries(e) {
8334
8334
  let n = 0;
@@ -8347,13 +8347,13 @@ class ts {
8347
8347
  * postMessage interface to send these events to the worker ourselves.
8348
8348
  */
8349
8349
  async initializeServiceWorkerMessaging() {
8350
- return _r() ? this.initializeReceiver() : this.initializeSender();
8350
+ return Jr() ? this.initializeReceiver() : this.initializeSender();
8351
8351
  }
8352
8352
  /**
8353
8353
  * As the worker we should listen to events from the main window.
8354
8354
  */
8355
8355
  async initializeReceiver() {
8356
- this.receiver = ct._getInstance(kc()), this.receiver._subscribe("keyChanged", async (e, n) => ({
8356
+ this.receiver = ot._getInstance(kc()), this.receiver._subscribe("keyChanged", async (e, n) => ({
8357
8357
  keyProcessed: (await this._poll()).includes(n.key)
8358
8358
  })), this.receiver._subscribe("ping", async (e, n) => [
8359
8359
  "keyChanged"
@@ -8409,8 +8409,8 @@ class ts {
8409
8409
  try {
8410
8410
  if (!indexedDB)
8411
8411
  return !1;
8412
- const e = await Tt();
8413
- return await Bn(e, nt, "1"), await vn(e, nt), !0;
8412
+ const e = await Vt();
8413
+ return await wn(e, tt, "1"), await Bn(e, tt), !0;
8414
8414
  } catch {
8415
8415
  }
8416
8416
  return !1;
@@ -8424,18 +8424,18 @@ class ts {
8424
8424
  }
8425
8425
  }
8426
8426
  async _set(e, n) {
8427
- return this._withPendingWrite(async () => (await this._withRetries((r) => Bn(r, e, n)), this.localCache[e] = n, this.notifyServiceWorker(e)));
8427
+ return this._withPendingWrite(async () => (await this._withRetries((r) => wn(r, e, n)), this.localCache[e] = n, this.notifyServiceWorker(e)));
8428
8428
  }
8429
8429
  async _get(e) {
8430
8430
  const n = await this._withRetries((r) => Nc(r, e));
8431
8431
  return this.localCache[e] = n, n;
8432
8432
  }
8433
8433
  async _remove(e) {
8434
- return this._withPendingWrite(async () => (await this._withRetries((n) => vn(n, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
8434
+ return this._withPendingWrite(async () => (await this._withRetries((n) => Bn(n, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
8435
8435
  }
8436
8436
  async _poll() {
8437
8437
  const e = await this._withRetries((s) => {
8438
- const a = lt(s, !1).getAll();
8438
+ const a = ct(s, !1).getAll();
8439
8439
  return new Ne(a).toPromise();
8440
8440
  });
8441
8441
  if (!e)
@@ -8470,8 +8470,8 @@ class ts {
8470
8470
  this.listeners[e] && (this.listeners[e].delete(n), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
8471
8471
  }
8472
8472
  }
8473
- ts.type = "LOCAL";
8474
- const qc = ts;
8473
+ es.type = "LOCAL";
8474
+ const qc = es;
8475
8475
  new xe(3e4, 6e4);
8476
8476
  /**
8477
8477
  * @license
@@ -8513,7 +8513,7 @@ function Xc(t, e) {
8513
8513
  * See the License for the specific language governing permissions and
8514
8514
  * limitations under the License.
8515
8515
  */
8516
- class Zt extends Wr {
8516
+ class zt extends Ur {
8517
8517
  constructor(e) {
8518
8518
  super(
8519
8519
  "custom",
@@ -8544,7 +8544,7 @@ class Zt extends Wr {
8544
8544
  }
8545
8545
  }
8546
8546
  function Qc(t) {
8547
- return vc(t.auth, new Zt(t), t.bypassAuthState);
8547
+ return vc(t.auth, new zt(t), t.bypassAuthState);
8548
8548
  }
8549
8549
  function Uc(t) {
8550
8550
  const { auth: e, user: n } = t;
@@ -8553,7 +8553,7 @@ function Uc(t) {
8553
8553
  e,
8554
8554
  "internal-error"
8555
8555
  /* AuthErrorCode.INTERNAL_ERROR */
8556
- ), Bc(n, new Zt(t), t.bypassAuthState);
8556
+ ), Bc(n, new zt(t), t.bypassAuthState);
8557
8557
  }
8558
8558
  async function Wc(t) {
8559
8559
  const { auth: e, user: n } = t;
@@ -8562,7 +8562,7 @@ async function Wc(t) {
8562
8562
  e,
8563
8563
  "internal-error"
8564
8564
  /* AuthErrorCode.INTERNAL_ERROR */
8565
- ), wc(n, new Zt(t), t.bypassAuthState);
8565
+ ), wc(n, new zt(t), t.bypassAuthState);
8566
8566
  }
8567
8567
  /**
8568
8568
  * @license
@@ -8580,7 +8580,7 @@ async function Wc(t) {
8580
8580
  * See the License for the specific language governing permissions and
8581
8581
  * limitations under the License.
8582
8582
  */
8583
- class ns {
8583
+ class ts {
8584
8584
  constructor(e, n, r, s, a = !1) {
8585
8585
  this.auth = e, this.resolver = r, this.user = s, this.bypassAuthState = a, this.pendingPromise = null, this.eventManager = null, this.filter = Array.isArray(n) ? n : [n];
8586
8586
  }
@@ -8664,7 +8664,7 @@ class ns {
8664
8664
  * limitations under the License.
8665
8665
  */
8666
8666
  const Sc = new xe(2e3, 1e4);
8667
- class me extends ns {
8667
+ class me extends ts {
8668
8668
  constructor(e, n, r, s, a) {
8669
8669
  super(e, n, s, a), this.provider = r, this.authWindow = null, this.pollId = null, me.currentPopupAction && me.currentPopupAction.cancel(), me.currentPopupAction = this;
8670
8670
  }
@@ -8679,7 +8679,7 @@ class me extends ns {
8679
8679
  }
8680
8680
  async onExecution() {
8681
8681
  K(this.filter.length === 1, "Popup operations only handle one event");
8682
- const e = zt();
8682
+ const e = St();
8683
8683
  this.authWindow = await this.resolver._openPopup(
8684
8684
  this.auth,
8685
8685
  this.provider,
@@ -8750,7 +8750,7 @@ me.currentPopupAction = null;
8750
8750
  * limitations under the License.
8751
8751
  */
8752
8752
  const zc = "pendingRedirect", ze = /* @__PURE__ */ new Map();
8753
- class Zc extends ns {
8753
+ class Zc extends ts {
8754
8754
  constructor(e, n, r = !1) {
8755
8755
  super(e, [
8756
8756
  "signInViaRedirect",
@@ -8815,7 +8815,7 @@ function _c(t) {
8815
8815
  async function $c(t, e, n = !1) {
8816
8816
  if (U(t.app))
8817
8817
  return Promise.reject(ie(t));
8818
- const r = ot(t), s = Xc(r, e), o = await new Zc(r, s, n).execute();
8818
+ const r = it(t), s = Xc(r, e), o = await new Zc(r, s, n).execute();
8819
8819
  return o && !n && (delete o.user._redirectEventId, await r._persistUserIfCurrent(o.user), await r._setRedirectUser(null, e)), o;
8820
8820
  }
8821
8821
  /**
@@ -8855,7 +8855,7 @@ class tl {
8855
8855
  }
8856
8856
  sendToConsumer(e, n) {
8857
8857
  var r;
8858
- if (e.error && !rs(e)) {
8858
+ if (e.error && !ns(e)) {
8859
8859
  const s = ((r = e.error.code) === null || r === void 0 ? void 0 : r.split("auth/")[1]) || "internal-error";
8860
8860
  n.onError(q(this.auth, s));
8861
8861
  } else
@@ -8866,16 +8866,16 @@ class tl {
8866
8866
  return n.filter.includes(e.type) && r;
8867
8867
  }
8868
8868
  hasEventBeenHandled(e) {
8869
- return Date.now() - this.lastProcessedEventTime >= el && this.cachedEventUids.clear(), this.cachedEventUids.has(Dn(e));
8869
+ return Date.now() - this.lastProcessedEventTime >= el && this.cachedEventUids.clear(), this.cachedEventUids.has(vn(e));
8870
8870
  }
8871
8871
  saveEventToCache(e) {
8872
- this.cachedEventUids.add(Dn(e)), this.lastProcessedEventTime = Date.now();
8872
+ this.cachedEventUids.add(vn(e)), this.lastProcessedEventTime = Date.now();
8873
8873
  }
8874
8874
  }
8875
- function Dn(t) {
8875
+ function vn(t) {
8876
8876
  return [t.type, t.eventId, t.sessionId, t.tenantId].filter((e) => e).join("-");
8877
8877
  }
8878
- function rs({ type: t, error: e }) {
8878
+ function ns({ type: t, error: e }) {
8879
8879
  return t === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
8880
8880
  }
8881
8881
  function nl(t) {
@@ -8885,7 +8885,7 @@ function nl(t) {
8885
8885
  case "reauthViaRedirect":
8886
8886
  return !0;
8887
8887
  case "unknown":
8888
- return rs(t);
8888
+ return ns(t);
8889
8889
  default:
8890
8890
  return !1;
8891
8891
  }
@@ -8943,7 +8943,7 @@ async function il(t) {
8943
8943
  );
8944
8944
  }
8945
8945
  function ol(t) {
8946
- const e = Yt(), { protocol: n, hostname: r } = new URL(e);
8946
+ const e = Gt(), { protocol: n, hostname: r } = new URL(e);
8947
8947
  if (t.startsWith("chrome-extension://")) {
8948
8948
  const o = new URL(t);
8949
8949
  return o.hostname === "" && r === "" ? n === "chrome-extension:" && t.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : n === "chrome-extension:" && o.hostname === r;
@@ -8972,7 +8972,7 @@ function ol(t) {
8972
8972
  * limitations under the License.
8973
8973
  */
8974
8974
  const cl = new xe(3e4, 6e4);
8975
- function Cn() {
8975
+ function Dn() {
8976
8976
  const t = X().___jsl;
8977
8977
  if (t != null && t.H) {
8978
8978
  for (const e of Object.keys(t.H))
@@ -8985,12 +8985,12 @@ function ll(t) {
8985
8985
  return new Promise((e, n) => {
8986
8986
  var r, s, a;
8987
8987
  function o() {
8988
- Cn(), gapi.load("gapi.iframes", {
8988
+ Dn(), gapi.load("gapi.iframes", {
8989
8989
  callback: () => {
8990
8990
  e(gapi.iframes.getContext());
8991
8991
  },
8992
8992
  ontimeout: () => {
8993
- Cn(), n(q(
8993
+ Dn(), n(q(
8994
8994
  t,
8995
8995
  "network-request-failed"
8996
8996
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
@@ -9060,7 +9060,7 @@ function fl(t) {
9060
9060
  "auth-domain-config-required"
9061
9061
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
9062
9062
  );
9063
- const n = e.emulator ? Qt(e, gl) : `https://${t.config.authDomain}/${dl}`, r = {
9063
+ const n = e.emulator ? Xt(e, gl) : `https://${t.config.authDomain}/${dl}`, r = {
9064
9064
  apiKey: e.apiKey,
9065
9065
  appName: t.name,
9066
9066
  v: ke
@@ -9124,7 +9124,7 @@ const bl = {
9124
9124
  statusbar: "yes",
9125
9125
  toolbar: "no"
9126
9126
  }, yl = 500, wl = 600, Bl = "_blank", vl = "http://localhost";
9127
- class En {
9127
+ class Cn {
9128
9128
  constructor(e) {
9129
9129
  this.window = e, this.associatedEvent = null;
9130
9130
  }
@@ -9145,10 +9145,10 @@ function Dl(t, e, n, r = yl, s = wl) {
9145
9145
  top: a,
9146
9146
  left: o
9147
9147
  }), d = T().toLowerCase();
9148
- n && (l = Rr(d) ? Bl : n), kr(d) && (e = e || vl, A.scrollbars = "yes");
9148
+ n && (l = xr(d) ? Bl : n), Or(d) && (e = e || vl, A.scrollbars = "yes");
9149
9149
  const h = Object.entries(A).reduce((E, [C, G]) => `${E}${C}=${G},`, "");
9150
9150
  if (rc(d) && l !== "_self")
9151
- return Cl(e || "", l), new En(null);
9151
+ return Cl(e || "", l), new Cn(null);
9152
9152
  const p = window.open(e || "", l, h);
9153
9153
  B(
9154
9154
  p,
@@ -9160,7 +9160,7 @@ function Dl(t, e, n, r = yl, s = wl) {
9160
9160
  p.focus();
9161
9161
  } catch {
9162
9162
  }
9163
- return new En(p);
9163
+ return new Cn(p);
9164
9164
  }
9165
9165
  function Cl(t, e) {
9166
9166
  const n = document.createElement("a");
@@ -9185,7 +9185,7 @@ function Cl(t, e) {
9185
9185
  * limitations under the License.
9186
9186
  */
9187
9187
  const El = "__/auth/handler", Ml = "emulator/auth/handler", Il = encodeURIComponent("fac");
9188
- async function Mn(t, e, n, r, s, a) {
9188
+ async function En(t, e, n, r, s, a) {
9189
9189
  B(
9190
9190
  t.config.authDomain,
9191
9191
  t,
@@ -9205,7 +9205,7 @@ async function Mn(t, e, n, r, s, a) {
9205
9205
  v: ke,
9206
9206
  eventId: s
9207
9207
  };
9208
- if (e instanceof Sr) {
9208
+ if (e instanceof Wr) {
9209
9209
  e.setDefaultLanguage(t.languageCode), o.providerId = e.providerId || "", Mi(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
9210
9210
  for (const [h, p] of Object.entries({}))
9211
9211
  o[h] = p;
@@ -9222,7 +9222,7 @@ async function Mn(t, e, n, r, s, a) {
9222
9222
  return `${Pl(t)}?${Oe(l).slice(1)}${d}`;
9223
9223
  }
9224
9224
  function Pl({ config: t }) {
9225
- return t.emulator ? Qt(t, Ml) : `https://${t.authDomain}/${El}`;
9225
+ return t.emulator ? Xt(t, Ml) : `https://${t.authDomain}/${El}`;
9226
9226
  }
9227
9227
  /**
9228
9228
  * @license
@@ -9240,22 +9240,22 @@ function Pl({ config: t }) {
9240
9240
  * See the License for the specific language governing permissions and
9241
9241
  * limitations under the License.
9242
9242
  */
9243
- const bt = "webStorageSupport";
9243
+ const pt = "webStorageSupport";
9244
9244
  class Gl {
9245
9245
  constructor() {
9246
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Jr, this._completeRedirectFn = $c, this._overrideRedirectResult = Kc;
9246
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Kr, this._completeRedirectFn = $c, this._overrideRedirectResult = Kc;
9247
9247
  }
9248
9248
  // Wrapping in async even though we don't await anywhere in order
9249
9249
  // to make sure errors are raised as promise rejections
9250
9250
  async _openPopup(e, n, r, s) {
9251
9251
  var a;
9252
9252
  K((a = this.eventManagers[e._key()]) === null || a === void 0 ? void 0 : a.manager, "_initialize() not called before _openPopup()");
9253
- const o = await Mn(e, n, r, Yt(), s);
9254
- return Dl(e, o, zt());
9253
+ const o = await En(e, n, r, Gt(), s);
9254
+ return Dl(e, o, St());
9255
9255
  }
9256
9256
  async _openRedirect(e, n, r, s) {
9257
9257
  await this._originValidation(e);
9258
- const a = await Mn(e, n, r, Yt(), s);
9258
+ const a = await En(e, n, r, Gt(), s);
9259
9259
  return Tc(a), new Promise(() => {
9260
9260
  });
9261
9261
  }
@@ -9283,9 +9283,9 @@ class Gl {
9283
9283
  }), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = n, r;
9284
9284
  }
9285
9285
  _isIframeWebStorageSupported(e, n) {
9286
- this.iframes[e._key()].send(bt, { type: bt }, (s) => {
9286
+ this.iframes[e._key()].send(pt, { type: pt }, (s) => {
9287
9287
  var a;
9288
- const o = (a = s == null ? void 0 : s[0]) === null || a === void 0 ? void 0 : a[bt];
9288
+ const o = (a = s == null ? void 0 : s[0]) === null || a === void 0 ? void 0 : a[pt];
9289
9289
  o !== void 0 && n(!!o), L(
9290
9290
  e,
9291
9291
  "internal-error"
@@ -9298,11 +9298,11 @@ class Gl {
9298
9298
  return this.originValidationPromises[n] || (this.originValidationPromises[n] = il(e)), this.originValidationPromises[n];
9299
9299
  }
9300
9300
  get _shouldInitProactively() {
9301
- return Xr() || xr() || Wt();
9301
+ return qr() || kr() || Ut();
9302
9302
  }
9303
9303
  }
9304
9304
  const Yl = Gl;
9305
- var In = "@firebase/auth", Pn = "1.7.9";
9305
+ var Mn = "@firebase/auth", In = "1.7.9";
9306
9306
  /**
9307
9307
  * @license
9308
9308
  * Copyright 2020 Google LLC
@@ -9399,7 +9399,7 @@ function jl(t) {
9399
9399
  apiHost: "identitytoolkit.googleapis.com",
9400
9400
  tokenApiHost: "securetoken.googleapis.com",
9401
9401
  apiScheme: "https",
9402
- sdkClientVersion: Qr(t)
9402
+ sdkClientVersion: Xr(t)
9403
9403
  }, d = new lc(r, s, a, A);
9404
9404
  return hc(d, n), d;
9405
9405
  },
@@ -9416,7 +9416,7 @@ function jl(t) {
9416
9416
  })), Ye(new ye(
9417
9417
  "auth-internal",
9418
9418
  (e) => {
9419
- const n = ot(e.getProvider(
9419
+ const n = it(e.getProvider(
9420
9420
  "auth"
9421
9421
  /* _ComponentName.AUTH */
9422
9422
  ).getImmediate());
@@ -9427,7 +9427,7 @@ function jl(t) {
9427
9427
  ).setInstantiationMode(
9428
9428
  "EXPLICIT"
9429
9429
  /* InstantiationMode.EXPLICIT */
9430
- )), he(In, Pn, Tl(t)), he(In, Pn, "esm2017");
9430
+ )), he(Mn, In, Tl(t)), he(Mn, In, "esm2017");
9431
9431
  }
9432
9432
  /**
9433
9433
  * @license
@@ -9445,14 +9445,14 @@ function jl(t) {
9445
9445
  * See the License for the specific language governing permissions and
9446
9446
  * limitations under the License.
9447
9447
  */
9448
- const Ol = 5 * 60, kl = pr("authIdTokenMaxAge") || Ol;
9449
- let Gn = null;
9448
+ const Ol = 5 * 60, kl = fr("authIdTokenMaxAge") || Ol;
9449
+ let Pn = null;
9450
9450
  const xl = (t) => async (e) => {
9451
9451
  const n = e && await e.getIdTokenResult(), r = n && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(n.issuedAtTime)) / 1e3;
9452
9452
  if (r && r > kl)
9453
9453
  return;
9454
9454
  const s = n == null ? void 0 : n.token;
9455
- Gn !== s && (Gn = s, await fetch(t, {
9455
+ Pn !== s && (Pn = s, await fetch(t, {
9456
9456
  method: s ? "POST" : "DELETE",
9457
9457
  headers: s ? {
9458
9458
  Authorization: `Bearer ${s}`
@@ -9460,7 +9460,7 @@ const xl = (t) => async (e) => {
9460
9460
  }));
9461
9461
  };
9462
9462
  function Rl(t = Go()) {
9463
- const e = Br(t, "auth");
9463
+ const e = wr(t, "auth");
9464
9464
  if (e.isInitialized())
9465
9465
  return e.getImmediate();
9466
9466
  const n = mc(t, {
@@ -9468,9 +9468,9 @@ function Rl(t = Go()) {
9468
9468
  persistence: [
9469
9469
  qc,
9470
9470
  Gc,
9471
- Jr
9471
+ Kr
9472
9472
  ]
9473
- }), r = pr("authTokenSyncURL");
9473
+ }), r = fr("authTokenSyncURL");
9474
9474
  if (r && typeof isSecureContext == "boolean" && isSecureContext) {
9475
9475
  const a = new URL(r, location.origin);
9476
9476
  if (location.origin === a.origin) {
@@ -9506,34 +9506,26 @@ jl(
9506
9506
  "Browser"
9507
9507
  /* ClientPlatform.BROWSER */
9508
9508
  );
9509
- fs({
9510
- history: ps(),
9511
- routes: [...Ke, ...Pe].map((t) => ({
9509
+ hs({
9510
+ history: fs(),
9511
+ routes: [...Rt, ...Pe].map((t) => ({
9512
9512
  ...t,
9513
- component: Fn(
9514
- Yn({
9513
+ component: Nn(
9514
+ Gn({
9515
9515
  loader: t.component
9516
9516
  })
9517
9517
  )
9518
9518
  }))
9519
9519
  });
9520
- const Fl = (t) => t ? Nn(
9521
- [
9522
- {
9523
- subject: xt.all,
9524
- action: i.manage
9525
- }
9526
- ],
9527
- t.permissions || []
9528
- ).granted : !1, Hl = /* @__PURE__ */ st({
9520
+ const Fl = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, Hl = /* @__PURE__ */ rt({
9529
9521
  __name: "AppSidebar",
9530
9522
  setup(t) {
9531
- const e = kt(), n = bs(), { t: r } = On(), s = yt(n.currentRoute.value.name);
9532
- Vn(n.currentRoute, () => {
9523
+ const e = Ot(), n = ps(), { t: r } = jn(), s = bt(n.currentRoute.value.name);
9524
+ Yn(n.currentRoute, () => {
9533
9525
  let d = n.currentRoute.value.name;
9534
9526
  n.currentRoute.value.meta.parent && (d = n.currentRoute.value.meta.parent), s.value = d;
9535
9527
  });
9536
- const a = Ke.map((d) => {
9528
+ const a = Rt.map((d) => {
9537
9529
  var E, C;
9538
9530
  if (!((E = d.meta) != null && E.sidebarDisplay) || d.meta.region && !((C = d.meta.region) != null && C[e.currentCountry.value]) || d.meta.section)
9539
9531
  return;
@@ -9545,7 +9537,7 @@ const Fl = (t) => t ? Nn(
9545
9537
  return n.push({ name: d.name });
9546
9538
  }
9547
9539
  };
9548
- return d.meta.sidebarNew && (p.badge = () => wt(ws.FmPill, { label: "New" })), p;
9540
+ return d.meta.sidebarNew && (p.badge = () => yt(ys.FmPill, { label: "New" })), p;
9549
9541
  }).filter((d) => !!d);
9550
9542
  function o(d, h) {
9551
9543
  return d.map((p) => {
@@ -9573,18 +9565,9 @@ const Fl = (t) => t ? Nn(
9573
9565
  return n.push({ name: d.name });
9574
9566
  }
9575
9567
  };
9576
- }).filter((d) => !!d), A = jt(() => {
9568
+ }).filter((d) => !!d), A = Tt(() => {
9577
9569
  const d = [...a];
9578
- return d.push({
9579
- label: "",
9580
- value: "divider",
9581
- disabled: !0
9582
- }), d.push({
9583
- label: r("financing.title"),
9584
- icon: "credit_score",
9585
- value: "divider",
9586
- disabled: !0
9587
- }), d.push(...o(Ke, "financing")), Fl(e.sessionUser.value) && (d.push({
9570
+ return Fl(e.sessionUser.value) && (d.push({
9588
9571
  label: "",
9589
9572
  value: "divider",
9590
9573
  disabled: !0
@@ -9614,8 +9597,8 @@ const Fl = (t) => t ? Nn(
9614
9597
  }), d.push(...l)), d;
9615
9598
  });
9616
9599
  return (d, h) => {
9617
- const p = Tn("FmCollapsibleTabs");
9618
- return at(), Ot(p, {
9600
+ const p = Vn("FmCollapsibleTabs");
9601
+ return st(), jt(p, {
9619
9602
  modelValue: s.value,
9620
9603
  "onUpdate:modelValue": h[0] || (h[0] = (E) => s.value = E),
9621
9604
  items: A.value,
@@ -9624,32 +9607,32 @@ const Fl = (t) => t ? Nn(
9624
9607
  };
9625
9608
  }
9626
9609
  });
9627
- var ql = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
9628
- const Ll = /* @__PURE__ */ st({
9610
+ var ql = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" } };
9611
+ const Ll = /* @__PURE__ */ rt({
9629
9612
  __name: "App",
9630
9613
  setup(t) {
9631
- const { state: e } = ii(), n = kt(), r = jn(), s = vr(ql.firebase);
9614
+ const { state: e } = ii(), n = Ot(), r = Tn(), s = Br(ql.firebase);
9632
9615
  async function a() {
9633
9616
  const o = n.sessionUser.value;
9634
9617
  if (!o || !o.token) return;
9635
9618
  const l = await o.getCustomToken(), A = Rl(s);
9636
9619
  await Cc(A, l);
9637
9620
  }
9638
- return a(), Vn(n.sessionUser, a), ms(() => {
9621
+ return a(), Yn(n.sessionUser, a), gs(() => {
9639
9622
  e.isIframe && parent.postMessage({ event: "ready" }, "*");
9640
- }), hs(() => {
9623
+ }), ms(() => {
9641
9624
  n.registerSidebarComponent(Hl);
9642
9625
  }), (o, l) => {
9643
- const A = Tn("RouterView");
9644
- return at(), Ot(A, {
9626
+ const A = Vn("RouterView");
9627
+ return st(), jt(A, {
9645
9628
  key: re(r).path
9646
9629
  });
9647
9630
  };
9648
9631
  }
9649
9632
  }), Kl = () => {
9650
9633
  const t = [
9651
- { "en-US": vs, "th-TH": Cs, "zh-CN": Ms },
9652
- os
9634
+ { "en-US": Bs, "th-TH": Ds, "zh-CN": Es },
9635
+ is
9653
9636
  ], e = new Set(
9654
9637
  t.flatMap((n) => Object.keys(n))
9655
9638
  );
@@ -9663,20 +9646,20 @@ const Ll = /* @__PURE__ */ st({
9663
9646
  },
9664
9647
  {}
9665
9648
  );
9666
- }, Jl = [...Pe, ...Ke].map((t) => ({
9649
+ }, Jl = [...Pe, ...Rt].map((t) => ({
9667
9650
  ...t,
9668
- component: Fn(
9669
- Yn({ loader: t.component })
9651
+ component: Nn(
9652
+ Gn({ loader: t.component })
9670
9653
  )
9671
9654
  }));
9672
9655
  export {
9673
- Nn as A,
9674
- dn as _,
9656
+ ea as A,
9657
+ un as _,
9675
9658
  Zl as a,
9676
9659
  Ll as b,
9677
- Gs as c,
9660
+ Ps as c,
9678
9661
  i as e,
9679
- Ys as g,
9662
+ Gs as g,
9680
9663
  Fl as h,
9681
9664
  Kl as i,
9682
9665
  Jl as r,