@feedmepos/mf-payment 1.5.57-dev → 1.5.58

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.
@@ -1,7 +1,7 @@
1
1
  import { FmApp as Dn, routes as Ln, i18nMessages as Mn } from "@feedmepos/mf-financing";
2
2
  import { createRouter as Bn, createWebHistory as Un, useRouter as xn, useRoute as Fn } from "vue-router";
3
3
  import { computed as Dt, watch as G, defineComponent as Lt, ref as Hn, resolveComponent as Mt, openBlock as Bt, createBlock as Ut, h as qn, onMounted as $n, onBeforeMount as Vn, unref as jn } from "vue";
4
- import { useCoreStore as Ve, useI18n as Wn } from "@feedmepos/mf-common";
4
+ import { useCoreStore as $e, useI18n as Wn } from "@feedmepos/mf-common";
5
5
  import { defineStore as zn } from "pinia";
6
6
  import { components as Gn } from "@feedmepos/ui-library";
7
7
  const Kn = {
@@ -1192,7 +1192,7 @@ const Kn = {
1192
1192
  sidebarDisplay: "Payout Accounts",
1193
1193
  section: "payment-gateway"
1194
1194
  },
1195
- component: () => import("./PayoutAccount-CFlQtAoG.js")
1195
+ component: () => import("./PayoutAccount-RW2zIZFf.js")
1196
1196
  },
1197
1197
  {
1198
1198
  path: "/admin/payout-accounts/:accountId",
@@ -1219,7 +1219,7 @@ const Kn = {
1219
1219
  meta: {
1220
1220
  parent: "mf-payment-admin.onboard-submission"
1221
1221
  },
1222
- component: () => import("./OnboardForm-DvRA8ZFe.js")
1222
+ component: () => import("./OnboardForm-BvNciBBq.js")
1223
1223
  },
1224
1224
  {
1225
1225
  path: "/admin/terminal/pos",
@@ -1317,7 +1317,7 @@ const Kn = {
1317
1317
  },
1318
1318
  component: () => import("./SettlementTransactions-3F4EOoyz.js")
1319
1319
  }
1320
- ], ue = [
1320
+ ], Ve = [
1321
1321
  {
1322
1322
  path: "",
1323
1323
  redirect: { name: "mf-payment-payout-account" }
@@ -1325,7 +1325,7 @@ const Kn = {
1325
1325
  {
1326
1326
  path: "/payout-account",
1327
1327
  name: "mf-payment-payout-account",
1328
- component: () => import("./PayoutAccount-NlE9-0J7.js"),
1328
+ component: () => import("./PayoutAccount-DJaJFWll.js"),
1329
1329
  meta: {
1330
1330
  sidebarDisplay: "i18n:payment.routes.payout_account"
1331
1331
  }
@@ -1343,7 +1343,7 @@ const Kn = {
1343
1343
  path: "/onboard-submission/:type/:submission?",
1344
1344
  name: "mf-payment-onboard-submission-form",
1345
1345
  props: !0,
1346
- component: () => import("./OnboardForm-D-wyJQY9.js"),
1346
+ component: () => import("./OnboardForm-9Mj8aGDQ.js"),
1347
1347
  meta: {
1348
1348
  parent: "mf-payment-onboard-submission"
1349
1349
  }
@@ -1826,24 +1826,24 @@ class Z {
1826
1826
  this.service = e, this.serviceName = t, this.errors = r;
1827
1827
  }
1828
1828
  create(e, ...t) {
1829
- const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? br(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
1829
+ const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? yr(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
1830
1830
  return new L(i, c, r);
1831
1831
  }
1832
1832
  }
1833
- function br(n, e) {
1834
- return n.replace(yr, (t, r) => {
1833
+ function yr(n, e) {
1834
+ return n.replace(br, (t, r) => {
1835
1835
  const i = e[r];
1836
1836
  return i != null ? String(i) : `<${r}?>`;
1837
1837
  });
1838
1838
  }
1839
- const yr = /\{\$([^}]+)}/g;
1839
+ const br = /\{\$([^}]+)}/g;
1840
1840
  function vr(n) {
1841
1841
  for (const e in n)
1842
1842
  if (Object.prototype.hasOwnProperty.call(n, e))
1843
1843
  return !1;
1844
1844
  return !0;
1845
1845
  }
1846
- function de(n, e) {
1846
+ function ue(n, e) {
1847
1847
  if (n === e)
1848
1848
  return !0;
1849
1849
  const t = Object.keys(n), r = Object.keys(e);
@@ -1852,7 +1852,7 @@ function de(n, e) {
1852
1852
  return !1;
1853
1853
  const s = n[i], a = e[i];
1854
1854
  if (at(s) && at(a)) {
1855
- if (!de(s, a))
1855
+ if (!ue(s, a))
1856
1856
  return !1;
1857
1857
  } else if (s !== a)
1858
1858
  return !1;
@@ -1939,7 +1939,7 @@ class wr {
1939
1939
  next: e,
1940
1940
  error: t,
1941
1941
  complete: r
1942
- }, i.next === void 0 && (i.next = Se), i.error === void 0 && (i.error = Se), i.complete === void 0 && (i.complete = Se);
1942
+ }, i.next === void 0 && (i.next = Ee), i.error === void 0 && (i.error = Ee), i.complete === void 0 && (i.complete = Ee);
1943
1943
  const s = this.unsubscribeOne.bind(this, this.observers.length);
1944
1944
  return this.finalized && this.task.then(() => {
1945
1945
  try {
@@ -1985,7 +1985,7 @@ function Tr(n, e) {
1985
1985
  return !0;
1986
1986
  return !1;
1987
1987
  }
1988
- function Se() {
1988
+ function Ee() {
1989
1989
  }
1990
1990
  /**
1991
1991
  * @license
@@ -2392,7 +2392,7 @@ function Lr() {
2392
2392
  IDBCursor.prototype.continuePrimaryKey
2393
2393
  ]);
2394
2394
  }
2395
- const Wt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap();
2395
+ const Wt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap();
2396
2396
  function Mr(n) {
2397
2397
  const e = new Promise((t, r) => {
2398
2398
  const i = () => {
@@ -2410,7 +2410,7 @@ function Mr(n) {
2410
2410
  }), We.set(e, n), e;
2411
2411
  }
2412
2412
  function Br(n) {
2413
- if (Me.has(n))
2413
+ if (Le.has(n))
2414
2414
  return;
2415
2415
  const e = new Promise((t, r) => {
2416
2416
  const i = () => {
@@ -2422,13 +2422,13 @@ function Br(n) {
2422
2422
  };
2423
2423
  n.addEventListener("complete", s), n.addEventListener("error", a), n.addEventListener("abort", a);
2424
2424
  });
2425
- Me.set(n, e);
2425
+ Le.set(n, e);
2426
2426
  }
2427
- let Be = {
2427
+ let Me = {
2428
2428
  get(n, e, t) {
2429
2429
  if (n instanceof IDBTransaction) {
2430
2430
  if (e === "done")
2431
- return Me.get(n);
2431
+ return Le.get(n);
2432
2432
  if (e === "objectStoreNames")
2433
2433
  return n.objectStoreNames || zt.get(n);
2434
2434
  if (e === "store")
@@ -2444,30 +2444,30 @@ let Be = {
2444
2444
  }
2445
2445
  };
2446
2446
  function Ur(n) {
2447
- Be = n(Be);
2447
+ Me = n(Me);
2448
2448
  }
2449
2449
  function xr(n) {
2450
2450
  return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
2451
- const r = n.call(Ce(this), e, ...t);
2451
+ const r = n.call(Re(this), e, ...t);
2452
2452
  return zt.set(r, e.sort ? e.sort() : [e]), N(r);
2453
2453
  } : Lr().includes(n) ? function(...e) {
2454
- return n.apply(Ce(this), e), N(Wt.get(this));
2454
+ return n.apply(Re(this), e), N(Wt.get(this));
2455
2455
  } : function(...e) {
2456
- return N(n.apply(Ce(this), e));
2456
+ return N(n.apply(Re(this), e));
2457
2457
  };
2458
2458
  }
2459
2459
  function Fr(n) {
2460
- return typeof n == "function" ? xr(n) : (n instanceof IDBTransaction && Br(n), Or(n, Dr()) ? new Proxy(n, Be) : n);
2460
+ return typeof n == "function" ? xr(n) : (n instanceof IDBTransaction && Br(n), Or(n, Dr()) ? new Proxy(n, Me) : n);
2461
2461
  }
2462
2462
  function N(n) {
2463
2463
  if (n instanceof IDBRequest)
2464
2464
  return Mr(n);
2465
- if (Re.has(n))
2466
- return Re.get(n);
2465
+ if (Se.has(n))
2466
+ return Se.get(n);
2467
2467
  const e = Fr(n);
2468
- return e !== n && (Re.set(n, e), We.set(e, n)), e;
2468
+ return e !== n && (Se.set(n, e), We.set(e, n)), e;
2469
2469
  }
2470
- const Ce = (n) => We.get(n);
2470
+ const Re = (n) => We.get(n);
2471
2471
  function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
2472
2472
  const a = indexedDB.open(n, e), c = N(a);
2473
2473
  return r && a.addEventListener("upgradeneeded", (o) => {
@@ -2482,12 +2482,12 @@ function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
2482
2482
  }).catch(() => {
2483
2483
  }), c;
2484
2484
  }
2485
- const qr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Ae = /* @__PURE__ */ new Map();
2485
+ const qr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Ce = /* @__PURE__ */ new Map();
2486
2486
  function lt(n, e) {
2487
2487
  if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
2488
2488
  return;
2489
- if (Ae.get(e))
2490
- return Ae.get(e);
2489
+ if (Ce.get(e))
2490
+ return Ce.get(e);
2491
2491
  const t = e.replace(/FromIndex$/, ""), r = e !== t, i = $r.includes(t);
2492
2492
  if (
2493
2493
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
@@ -2502,7 +2502,7 @@ function lt(n, e) {
2502
2502
  i && o.done
2503
2503
  ]))[0];
2504
2504
  };
2505
- return Ae.set(e, s), s;
2505
+ return Ce.set(e, s), s;
2506
2506
  }
2507
2507
  Ur((n) => ({
2508
2508
  ...n,
@@ -2545,7 +2545,7 @@ function jr(n) {
2545
2545
  const e = n.getComponent();
2546
2546
  return (e == null ? void 0 : e.type) === "VERSION";
2547
2547
  }
2548
- const Ue = "@firebase/app", ut = "0.10.13";
2548
+ const Be = "@firebase/app", ut = "0.10.13";
2549
2549
  /**
2550
2550
  * @license
2551
2551
  * Copyright 2019 Google LLC
@@ -2579,8 +2579,8 @@ const T = new jt("@firebase/app"), Wr = "@firebase/app-compat", zr = "@firebase/
2579
2579
  * See the License for the specific language governing permissions and
2580
2580
  * limitations under the License.
2581
2581
  */
2582
- const xe = "[DEFAULT]", bi = {
2583
- [Ue]: "fire-core",
2582
+ const Ue = "[DEFAULT]", yi = {
2583
+ [Be]: "fire-core",
2584
2584
  [Wr]: "fire-core-compat",
2585
2585
  [Gr]: "fire-analytics",
2586
2586
  [zr]: "fire-analytics-compat",
@@ -2625,7 +2625,7 @@ const xe = "[DEFAULT]", bi = {
2625
2625
  * See the License for the specific language governing permissions and
2626
2626
  * limitations under the License.
2627
2627
  */
2628
- const he = /* @__PURE__ */ new Map(), yi = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Map();
2628
+ const de = /* @__PURE__ */ new Map(), bi = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ new Map();
2629
2629
  function dt(n, e) {
2630
2630
  try {
2631
2631
  n.container.addComponent(e);
@@ -2635,12 +2635,12 @@ function dt(n, e) {
2635
2635
  }
2636
2636
  function Y(n) {
2637
2637
  const e = n.name;
2638
- if (Fe.has(e))
2638
+ if (xe.has(e))
2639
2639
  return T.debug(`There were multiple attempts to register component ${e}.`), !1;
2640
- Fe.set(e, n);
2641
- for (const t of he.values())
2640
+ xe.set(e, n);
2641
+ for (const t of de.values())
2642
2642
  dt(t, n);
2643
- for (const t of yi.values())
2643
+ for (const t of bi.values())
2644
2644
  dt(t, n);
2645
2645
  return !0;
2646
2646
  }
@@ -2648,7 +2648,7 @@ function Gt(n, e) {
2648
2648
  const t = n.container.getProvider("heartbeat").getImmediate({ optional: !0 });
2649
2649
  return t && t.triggerHeartbeat(), n.container.getProvider(e);
2650
2650
  }
2651
- function y(n) {
2651
+ function b(n) {
2652
2652
  return n.settings !== void 0;
2653
2653
  }
2654
2654
  /**
@@ -2761,7 +2761,7 @@ const te = _i;
2761
2761
  function Kt(n, e = {}) {
2762
2762
  let t = n;
2763
2763
  typeof e != "object" && (e = { name: e });
2764
- const r = Object.assign({ name: xe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
2764
+ const r = Object.assign({ name: Ue, automaticDataCollectionEnabled: !1 }, e), i = r.name;
2765
2765
  if (typeof i != "string" || !i)
2766
2766
  throw O.create("bad-app-name", {
2767
2767
  appName: String(i)
@@ -2771,21 +2771,21 @@ function Kt(n, e = {}) {
2771
2771
  "no-options"
2772
2772
  /* AppError.NO_OPTIONS */
2773
2773
  );
2774
- const s = he.get(i);
2774
+ const s = de.get(i);
2775
2775
  if (s) {
2776
- if (de(t, s.options) && de(r, s.config))
2776
+ if (ue(t, s.options) && ue(r, s.config))
2777
2777
  return s;
2778
2778
  throw O.create("duplicate-app", { appName: i });
2779
2779
  }
2780
2780
  const a = new Rr(i);
2781
- for (const o of Fe.values())
2781
+ for (const o of xe.values())
2782
2782
  a.addComponent(o);
2783
2783
  const c = new Ii(t, r, a);
2784
- return he.set(i, c), c;
2784
+ return de.set(i, c), c;
2785
2785
  }
2786
- function wi(n = xe) {
2787
- const e = he.get(n);
2788
- if (!e && n === xe && $t())
2786
+ function wi(n = Ue) {
2787
+ const e = de.get(n);
2788
+ if (!e && n === Ue && $t())
2789
2789
  return Kt();
2790
2790
  if (!e)
2791
2791
  throw O.create("no-app", { appName: n });
@@ -2793,7 +2793,7 @@ function wi(n = xe) {
2793
2793
  }
2794
2794
  function H(n, e, t) {
2795
2795
  var r;
2796
- let i = (r = bi[n]) !== null && r !== void 0 ? r : n;
2796
+ let i = (r = yi[n]) !== null && r !== void 0 ? r : n;
2797
2797
  t && (i += `-${t}`);
2798
2798
  const s = i.match(/\s|\//), a = e.match(/\s|\//);
2799
2799
  if (s || a) {
@@ -2827,9 +2827,9 @@ function H(n, e, t) {
2827
2827
  * limitations under the License.
2828
2828
  */
2829
2829
  const Ti = "firebase-heartbeat-database", ki = 1, X = "firebase-heartbeat-store";
2830
- let Pe = null;
2830
+ let Ae = null;
2831
2831
  function Jt() {
2832
- return Pe || (Pe = Hr(Ti, ki, {
2832
+ return Ae || (Ae = Hr(Ti, ki, {
2833
2833
  upgrade: (n, e) => {
2834
2834
  switch (e) {
2835
2835
  case 0:
@@ -2844,7 +2844,7 @@ function Jt() {
2844
2844
  throw O.create("idb-open", {
2845
2845
  originalErrorMessage: n.message
2846
2846
  });
2847
- })), Pe;
2847
+ })), Ae;
2848
2848
  }
2849
2849
  async function Ei(n) {
2850
2850
  try {
@@ -3045,7 +3045,7 @@ function Ni(n) {
3045
3045
  (e) => new Ci(e),
3046
3046
  "PRIVATE"
3047
3047
  /* ComponentType.PRIVATE */
3048
- )), H(Ue, ut, n), H(Ue, ut, "esm2017"), H("fire-js", "");
3048
+ )), H(Be, ut, n), H(Be, ut, "esm2017"), H("fire-js", "");
3049
3049
  }
3050
3050
  Ni("");
3051
3051
  var Oi = "firebase", Di = "10.14.1";
@@ -3105,12 +3105,12 @@ const Li = Xt, Qt = new Z("auth", "Firebase", Xt());
3105
3105
  * See the License for the specific language governing permissions and
3106
3106
  * limitations under the License.
3107
3107
  */
3108
- const pe = new jt("@firebase/auth");
3108
+ const he = new jt("@firebase/auth");
3109
3109
  function Mi(n, ...e) {
3110
- pe.logLevel <= p.WARN && pe.warn(`Auth (${te}): ${n}`, ...e);
3110
+ he.logLevel <= p.WARN && he.warn(`Auth (${te}): ${n}`, ...e);
3111
3111
  }
3112
3112
  function ae(n, ...e) {
3113
- pe.logLevel <= p.ERROR && pe.error(`Auth (${te}): ${n}`, ...e);
3113
+ he.logLevel <= p.ERROR && he.error(`Auth (${te}): ${n}`, ...e);
3114
3114
  }
3115
3115
  /**
3116
3116
  * @license
@@ -3177,7 +3177,7 @@ function E(n, e) {
3177
3177
  * See the License for the specific language governing permissions and
3178
3178
  * limitations under the License.
3179
3179
  */
3180
- function He() {
3180
+ function Fe() {
3181
3181
  var n;
3182
3182
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
3183
3183
  }
@@ -3431,7 +3431,7 @@ const Fi = {
3431
3431
  * limitations under the License.
3432
3432
  */
3433
3433
  const Hi = new ne(3e4, 6e4);
3434
- function be(n, e) {
3434
+ function _e(n, e) {
3435
3435
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
3436
3436
  }
3437
3437
  async function z(n, e, t, r, i = {}) {
@@ -3579,14 +3579,14 @@ async function Vi(n, e = !1) {
3579
3579
  return {
3580
3580
  claims: i,
3581
3581
  token: r,
3582
- authTime: J(Ne(i.auth_time)),
3583
- issuedAtTime: J(Ne(i.iat)),
3584
- expirationTime: J(Ne(i.exp)),
3582
+ authTime: J(Pe(i.auth_time)),
3583
+ issuedAtTime: J(Pe(i.iat)),
3584
+ expirationTime: J(Pe(i.exp)),
3585
3585
  signInProvider: a || null,
3586
3586
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
3587
3587
  };
3588
3588
  }
3589
- function Ne(n) {
3589
+ function Pe(n) {
3590
3590
  return Number(n) * 1e3;
3591
3591
  }
3592
3592
  function Je(n) {
@@ -3722,7 +3722,7 @@ class Wi {
3722
3722
  * See the License for the specific language governing permissions and
3723
3723
  * limitations under the License.
3724
3724
  */
3725
- class qe {
3725
+ class He {
3726
3726
  constructor(e, t) {
3727
3727
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
3728
3728
  }
@@ -3755,7 +3755,7 @@ class qe {
3755
3755
  * See the License for the specific language governing permissions and
3756
3756
  * limitations under the License.
3757
3757
  */
3758
- async function fe(n) {
3758
+ async function pe(n) {
3759
3759
  var e;
3760
3760
  const t = n.auth, r = await n.getIdToken(), i = await Q(n, sn(t, { idToken: r }));
3761
3761
  h(
@@ -3775,14 +3775,14 @@ async function fe(n) {
3775
3775
  phoneNumber: s.phoneNumber || null,
3776
3776
  tenantId: s.tenantId || null,
3777
3777
  providerData: c,
3778
- metadata: new qe(s.createdAt, s.lastLoginAt),
3778
+ metadata: new He(s.createdAt, s.lastLoginAt),
3779
3779
  isAnonymous: u
3780
3780
  };
3781
3781
  Object.assign(n, d);
3782
3782
  }
3783
3783
  async function zi(n) {
3784
3784
  const e = W(n);
3785
- await fe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
3785
+ await pe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
3786
3786
  }
3787
3787
  function Gi(n, e) {
3788
3788
  return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
@@ -3838,7 +3838,7 @@ async function Ki(n, e) {
3838
3838
  };
3839
3839
  }
3840
3840
  async function Ji(n, e) {
3841
- return z(n, "POST", "/v2/accounts:revokeToken", be(n, e));
3841
+ return z(n, "POST", "/v2/accounts:revokeToken", _e(n, e));
3842
3842
  }
3843
3843
  /**
3844
3844
  * @license
@@ -3956,7 +3956,7 @@ function S(n, e) {
3956
3956
  class I {
3957
3957
  constructor(e) {
3958
3958
  var { uid: t, auth: r, stsTokenManager: i } = e, s = ze(e, ["uid", "auth", "stsTokenManager"]);
3959
- this.providerId = "firebase", this.proactiveRefresh = new Wi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new qe(s.createdAt || void 0, s.lastLoginAt || void 0);
3959
+ this.providerId = "firebase", this.proactiveRefresh = new Wi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new He(s.createdAt || void 0, s.lastLoginAt || void 0);
3960
3960
  }
3961
3961
  async getIdToken(e) {
3962
3962
  const t = await Q(this, this.stsTokenManager.getToken(this.auth, e));
@@ -4004,10 +4004,10 @@ class I {
4004
4004
  }
4005
4005
  async _updateTokensIfNecessary(e, t = !1) {
4006
4006
  let r = !1;
4007
- e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await fe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
4007
+ e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await pe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
4008
4008
  }
4009
4009
  async delete() {
4010
- if (y(this.auth.app))
4010
+ if (b(this.auth.app))
4011
4011
  return Promise.reject(D(this.auth));
4012
4012
  const e = await this.getIdToken();
4013
4013
  return await Q(this, $i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
@@ -4038,16 +4038,16 @@ class I {
4038
4038
  }
4039
4039
  static _fromJSON(e, t) {
4040
4040
  var r, i, s, a, c, o, l, u;
4041
- const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, f = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, x = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, et = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, we = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, tt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, nt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Te, emailVerified: rt, isAnonymous: it, providerData: ke, stsTokenManager: st } = t;
4041
+ const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, f = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, x = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, et = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, Ie = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, tt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, nt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: we, emailVerified: rt, isAnonymous: it, providerData: Te, stsTokenManager: st } = t;
4042
4042
  h(
4043
- Te && st,
4043
+ we && st,
4044
4044
  e,
4045
4045
  "internal-error"
4046
4046
  /* AuthErrorCode.INTERNAL_ERROR */
4047
4047
  );
4048
4048
  const Nn = q.fromJSON(this.name, st);
4049
4049
  h(
4050
- typeof Te == "string",
4050
+ typeof we == "string",
4051
4051
  e,
4052
4052
  "internal-error"
4053
4053
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -4061,9 +4061,9 @@ class I {
4061
4061
  e,
4062
4062
  "internal-error"
4063
4063
  /* AuthErrorCode.INTERNAL_ERROR */
4064
- ), S(m, e.name), S(x, e.name), S(et, e.name), S(we, e.name), S(tt, e.name), S(nt, e.name);
4065
- const Ee = new I({
4066
- uid: Te,
4064
+ ), S(m, e.name), S(x, e.name), S(et, e.name), S(Ie, e.name), S(tt, e.name), S(nt, e.name);
4065
+ const ke = new I({
4066
+ uid: we,
4067
4067
  auth: e,
4068
4068
  email: f,
4069
4069
  emailVerified: rt,
@@ -4076,7 +4076,7 @@ class I {
4076
4076
  createdAt: tt,
4077
4077
  lastLoginAt: nt
4078
4078
  });
4079
- return ke && Array.isArray(ke) && (Ee.providerData = ke.map((On) => Object.assign({}, On))), we && (Ee._redirectEventId = we), Ee;
4079
+ return Te && Array.isArray(Te) && (ke.providerData = Te.map((On) => Object.assign({}, On))), Ie && (ke._redirectEventId = Ie), ke;
4080
4080
  }
4081
4081
  /**
4082
4082
  * Initialize a User from an idToken server response
@@ -4092,7 +4092,7 @@ class I {
4092
4092
  stsTokenManager: i,
4093
4093
  isAnonymous: r
4094
4094
  });
4095
- return await fe(s), s;
4095
+ return await pe(s), s;
4096
4096
  }
4097
4097
  /**
4098
4098
  * Initialize a User from an idToken server response
@@ -4122,7 +4122,7 @@ class I {
4122
4122
  phoneNumber: i.phoneNumber || null,
4123
4123
  tenantId: i.tenantId || null,
4124
4124
  providerData: s,
4125
- metadata: new qe(i.createdAt, i.lastLoginAt),
4125
+ metadata: new He(i.createdAt, i.lastLoginAt),
4126
4126
  isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
4127
4127
  };
4128
4128
  return Object.assign(o, l), o;
@@ -4144,11 +4144,11 @@ class I {
4144
4144
  * See the License for the specific language governing permissions and
4145
4145
  * limitations under the License.
4146
4146
  */
4147
- const bt = /* @__PURE__ */ new Map();
4147
+ const yt = /* @__PURE__ */ new Map();
4148
4148
  function w(n) {
4149
4149
  E(n instanceof Function, "Expected a class definition");
4150
- let e = bt.get(n);
4151
- return e ? (E(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), bt.set(n, e), e);
4150
+ let e = yt.get(n);
4151
+ return e ? (E(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), yt.set(n, e), e);
4152
4152
  }
4153
4153
  /**
4154
4154
  * @license
@@ -4189,7 +4189,7 @@ class on {
4189
4189
  }
4190
4190
  }
4191
4191
  on.type = "NONE";
4192
- const yt = on;
4192
+ const bt = on;
4193
4193
  /**
4194
4194
  * @license
4195
4195
  * Copyright 2019 Google LLC
@@ -4240,12 +4240,12 @@ class $ {
4240
4240
  }
4241
4241
  static async create(e, t, r = "authUser") {
4242
4242
  if (!t.length)
4243
- return new $(w(yt), e, r);
4243
+ return new $(w(bt), e, r);
4244
4244
  const i = (await Promise.all(t.map(async (l) => {
4245
4245
  if (await l._isAvailable())
4246
4246
  return l;
4247
4247
  }))).filter((l) => l);
4248
- let s = i[0] || w(yt);
4248
+ let s = i[0] || w(bt);
4249
4249
  const a = oe(r, e.config.apiKey, e.name);
4250
4250
  let c = null;
4251
4251
  for (const l of t)
@@ -4453,7 +4453,7 @@ class Qi {
4453
4453
  * limitations under the License.
4454
4454
  */
4455
4455
  async function Zi(n, e = {}) {
4456
- return z(n, "GET", "/v2/passwordPolicy", be(n, e));
4456
+ return z(n, "GET", "/v2/passwordPolicy", _e(n, e));
4457
4457
  }
4458
4458
  /**
4459
4459
  * @license
@@ -4605,7 +4605,7 @@ class ns {
4605
4605
  }
4606
4606
  async initializeCurrentUser(e) {
4607
4607
  var t;
4608
- if (y(this.app)) {
4608
+ if (b(this.app)) {
4609
4609
  const a = this.app.settings.authIdToken;
4610
4610
  return a ? new Promise((c) => {
4611
4611
  setTimeout(() => this.initializeCurrentUserFromIdToken(a).then(c, c));
@@ -4647,7 +4647,7 @@ class ns {
4647
4647
  }
4648
4648
  async reloadAndSetCurrentUserOrClear(e) {
4649
4649
  try {
4650
- await fe(e);
4650
+ await pe(e);
4651
4651
  } catch (t) {
4652
4652
  if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
4653
4653
  return this.directlySetCurrentUser(null);
@@ -4661,7 +4661,7 @@ class ns {
4661
4661
  this._deleted = !0;
4662
4662
  }
4663
4663
  async updateCurrentUser(e) {
4664
- if (y(this.app))
4664
+ if (b(this.app))
4665
4665
  return Promise.reject(D(this));
4666
4666
  const t = e ? W(e) : null;
4667
4667
  return t && h(
@@ -4683,14 +4683,14 @@ class ns {
4683
4683
  });
4684
4684
  }
4685
4685
  async signOut() {
4686
- return y(this.app) ? Promise.reject(D(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
4686
+ return b(this.app) ? Promise.reject(D(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
4687
4687
  null,
4688
4688
  /* skipBeforeStateCallbacks */
4689
4689
  !0
4690
4690
  ));
4691
4691
  }
4692
4692
  setPersistence(e) {
4693
- return y(this.app) ? Promise.reject(D(this)) : this.queue(async () => {
4693
+ return b(this.app) ? Promise.reject(D(this)) : this.queue(async () => {
4694
4694
  await this.assertedPersistence.setPersistence(w(e));
4695
4695
  });
4696
4696
  }
@@ -4964,7 +4964,7 @@ function os(n, e) {
4964
4964
  const t = Gt(n, "auth");
4965
4965
  if (t.isInitialized()) {
4966
4966
  const i = t.getImmediate(), s = t.getOptions();
4967
- if (de(s, e ?? {}))
4967
+ if (ue(s, e ?? {}))
4968
4968
  return i;
4969
4969
  k(
4970
4970
  i,
@@ -5045,7 +5045,7 @@ function ds() {
5045
5045
  * See the License for the specific language governing permissions and
5046
5046
  * limitations under the License.
5047
5047
  */
5048
- class bn {
5048
+ class yn {
5049
5049
  /** @internal */
5050
5050
  constructor(e, t) {
5051
5051
  this.providerId = e, this.signInMethod = t;
@@ -5088,7 +5088,7 @@ class bn {
5088
5088
  * limitations under the License.
5089
5089
  */
5090
5090
  async function V(n, e) {
5091
- return nn(n, "POST", "/v1/accounts:signInWithIdp", be(n, e));
5091
+ return nn(n, "POST", "/v1/accounts:signInWithIdp", _e(n, e));
5092
5092
  }
5093
5093
  /**
5094
5094
  * @license
@@ -5107,7 +5107,7 @@ async function V(n, e) {
5107
5107
  * limitations under the License.
5108
5108
  */
5109
5109
  const hs = "http://localhost";
5110
- class B extends bn {
5110
+ class B extends yn {
5111
5111
  constructor() {
5112
5112
  super(...arguments), this.pendingToken = null;
5113
5113
  }
@@ -5192,7 +5192,7 @@ class B extends bn {
5192
5192
  * See the License for the specific language governing permissions and
5193
5193
  * limitations under the License.
5194
5194
  */
5195
- class yn {
5195
+ class bn {
5196
5196
  /**
5197
5197
  * Constructor for generic OAuth providers.
5198
5198
  *
@@ -5245,7 +5245,7 @@ class yn {
5245
5245
  * See the License for the specific language governing permissions and
5246
5246
  * limitations under the License.
5247
5247
  */
5248
- class re extends yn {
5248
+ class re extends bn {
5249
5249
  constructor() {
5250
5250
  super(...arguments), this.scopes = [];
5251
5251
  }
@@ -5607,10 +5607,10 @@ function Tt(n) {
5607
5607
  * See the License for the specific language governing permissions and
5608
5608
  * limitations under the License.
5609
5609
  */
5610
- class me extends L {
5610
+ class fe extends L {
5611
5611
  constructor(e, t, r, i) {
5612
5612
  var s;
5613
- super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, me.prototype), this.customData = {
5613
+ super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, fe.prototype), this.customData = {
5614
5614
  appName: e.name,
5615
5615
  tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
5616
5616
  _serverResponse: t.customData._serverResponse,
@@ -5618,12 +5618,12 @@ class me extends L {
5618
5618
  };
5619
5619
  }
5620
5620
  static _fromErrorAndOperation(e, t, r, i) {
5621
- return new me(e, t, r, i);
5621
+ return new fe(e, t, r, i);
5622
5622
  }
5623
5623
  }
5624
5624
  function vn(n, e, t, r) {
5625
5625
  return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
5626
- throw s.code === "auth/multi-factor-auth-required" ? me._fromErrorAndOperation(n, s, e, r) : s;
5626
+ throw s.code === "auth/multi-factor-auth-required" ? fe._fromErrorAndOperation(n, s, e, r) : s;
5627
5627
  });
5628
5628
  }
5629
5629
  async function ps(n, e, t = !1) {
@@ -5648,7 +5648,7 @@ async function ps(n, e, t = !1) {
5648
5648
  */
5649
5649
  async function fs(n, e, t = !1) {
5650
5650
  const { auth: r } = n;
5651
- if (y(r.app))
5651
+ if (b(r.app))
5652
5652
  return Promise.reject(D(r));
5653
5653
  const i = "reauthenticate";
5654
5654
  try {
@@ -5698,7 +5698,7 @@ async function fs(n, e, t = !1) {
5698
5698
  * limitations under the License.
5699
5699
  */
5700
5700
  async function ms(n, e, t = !1) {
5701
- if (y(n.app))
5701
+ if (b(n.app))
5702
5702
  return Promise.reject(D(n));
5703
5703
  const r = "signIn", i = await vn(n, r, e), s = await U._fromIdTokenResponse(n, r, i);
5704
5704
  return t || await n._updateCurrentUser(s.user), s;
@@ -5720,7 +5720,7 @@ async function ms(n, e, t = !1) {
5720
5720
  * limitations under the License.
5721
5721
  */
5722
5722
  async function gs(n, e) {
5723
- return nn(n, "POST", "/v1/accounts:signInWithCustomToken", be(n, e));
5723
+ return nn(n, "POST", "/v1/accounts:signInWithCustomToken", _e(n, e));
5724
5724
  }
5725
5725
  /**
5726
5726
  * @license
@@ -5739,7 +5739,7 @@ async function gs(n, e) {
5739
5739
  * limitations under the License.
5740
5740
  */
5741
5741
  async function _s(n, e) {
5742
- if (y(n.app))
5742
+ if (b(n.app))
5743
5743
  return Promise.reject(D(n));
5744
5744
  const t = ye(n), r = await gs(t, {
5745
5745
  token: e,
@@ -5747,13 +5747,13 @@ async function _s(n, e) {
5747
5747
  }), i = await U._fromIdTokenResponse(t, "signIn", r);
5748
5748
  return await t._updateCurrentUser(i.user), i;
5749
5749
  }
5750
- function bs(n, e, t, r) {
5750
+ function ys(n, e, t, r) {
5751
5751
  return W(n).onIdTokenChanged(e, t, r);
5752
5752
  }
5753
- function ys(n, e, t) {
5753
+ function bs(n, e, t) {
5754
5754
  return W(n).beforeAuthStateChanged(e, t);
5755
5755
  }
5756
- const ge = "__sak";
5756
+ const me = "__sak";
5757
5757
  /**
5758
5758
  * @license
5759
5759
  * Copyright 2019 Google LLC
@@ -5776,7 +5776,7 @@ class In {
5776
5776
  }
5777
5777
  _isAvailable() {
5778
5778
  try {
5779
- return this.storage ? (this.storage.setItem(ge, "1"), this.storage.removeItem(ge), Promise.resolve(!0)) : Promise.resolve(!1);
5779
+ return this.storage ? (this.storage.setItem(me, "1"), this.storage.removeItem(me), Promise.resolve(!0)) : Promise.resolve(!1);
5780
5780
  } catch {
5781
5781
  return Promise.resolve(!1);
5782
5782
  }
@@ -5970,7 +5970,7 @@ function Ts(n) {
5970
5970
  * See the License for the specific language governing permissions and
5971
5971
  * limitations under the License.
5972
5972
  */
5973
- class ve {
5973
+ class be {
5974
5974
  constructor(e) {
5975
5975
  this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
5976
5976
  }
@@ -5984,7 +5984,7 @@ class ve {
5984
5984
  const t = this.receivers.find((i) => i.isListeningto(e));
5985
5985
  if (t)
5986
5986
  return t;
5987
- const r = new ve(e);
5987
+ const r = new be(e);
5988
5988
  return this.receivers.push(r), r;
5989
5989
  }
5990
5990
  isListeningto(e) {
@@ -6038,7 +6038,7 @@ class ve {
6038
6038
  this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
6039
6039
  }
6040
6040
  }
6041
- ve.receivers = [];
6041
+ be.receivers = [];
6042
6042
  /**
6043
6043
  * @license
6044
6044
  * Copyright 2020 Google LLC
@@ -6174,11 +6174,11 @@ class ks {
6174
6174
  * See the License for the specific language governing permissions and
6175
6175
  * limitations under the License.
6176
6176
  */
6177
- function b() {
6177
+ function y() {
6178
6178
  return window;
6179
6179
  }
6180
6180
  function Es(n) {
6181
- b().location.href = n;
6181
+ y().location.href = n;
6182
6182
  }
6183
6183
  /**
6184
6184
  * @license
@@ -6197,7 +6197,7 @@ function Es(n) {
6197
6197
  * limitations under the License.
6198
6198
  */
6199
6199
  function En() {
6200
- return typeof b().WorkerGlobalScope < "u" && typeof b().importScripts == "function";
6200
+ return typeof y().WorkerGlobalScope < "u" && typeof y().importScripts == "function";
6201
6201
  }
6202
6202
  async function Ss() {
6203
6203
  if (!(navigator != null && navigator.serviceWorker))
@@ -6231,7 +6231,7 @@ function Cs() {
6231
6231
  * See the License for the specific language governing permissions and
6232
6232
  * limitations under the License.
6233
6233
  */
6234
- const Sn = "firebaseLocalStorageDb", As = 1, _e = "firebaseLocalStorage", Rn = "fbase_key";
6234
+ const Sn = "firebaseLocalStorageDb", As = 1, ge = "firebaseLocalStorage", Rn = "fbase_key";
6235
6235
  class ie {
6236
6236
  constructor(e) {
6237
6237
  this.request = e;
@@ -6246,14 +6246,14 @@ class ie {
6246
6246
  });
6247
6247
  }
6248
6248
  }
6249
- function Ie(n, e) {
6250
- return n.transaction([_e], e ? "readwrite" : "readonly").objectStore(_e);
6249
+ function ve(n, e) {
6250
+ return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
6251
6251
  }
6252
6252
  function Ps() {
6253
6253
  const n = indexedDB.deleteDatabase(Sn);
6254
6254
  return new ie(n).toPromise();
6255
6255
  }
6256
- function $e() {
6256
+ function qe() {
6257
6257
  const n = indexedDB.open(Sn, As);
6258
6258
  return new Promise((e, t) => {
6259
6259
  n.addEventListener("error", () => {
@@ -6261,29 +6261,29 @@ function $e() {
6261
6261
  }), n.addEventListener("upgradeneeded", () => {
6262
6262
  const r = n.result;
6263
6263
  try {
6264
- r.createObjectStore(_e, { keyPath: Rn });
6264
+ r.createObjectStore(ge, { keyPath: Rn });
6265
6265
  } catch (i) {
6266
6266
  t(i);
6267
6267
  }
6268
6268
  }), n.addEventListener("success", async () => {
6269
6269
  const r = n.result;
6270
- r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await Ps(), e(await $e()));
6270
+ r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ps(), e(await qe()));
6271
6271
  });
6272
6272
  });
6273
6273
  }
6274
6274
  async function kt(n, e, t) {
6275
- const r = Ie(n, !0).put({
6275
+ const r = ve(n, !0).put({
6276
6276
  [Rn]: e,
6277
6277
  value: t
6278
6278
  });
6279
6279
  return new ie(r).toPromise();
6280
6280
  }
6281
6281
  async function Ns(n, e) {
6282
- const t = Ie(n, !1).get(e), r = await new ie(t).toPromise();
6282
+ const t = ve(n, !1).get(e), r = await new ie(t).toPromise();
6283
6283
  return r === void 0 ? null : r.value;
6284
6284
  }
6285
6285
  function Et(n, e) {
6286
- const t = Ie(n, !0).delete(e);
6286
+ const t = ve(n, !0).delete(e);
6287
6287
  return new ie(t).toPromise();
6288
6288
  }
6289
6289
  const Os = 800, Ds = 3;
@@ -6294,7 +6294,7 @@ class Cn {
6294
6294
  });
6295
6295
  }
6296
6296
  async _openDb() {
6297
- return this.db ? this.db : (this.db = await $e(), this.db);
6297
+ return this.db ? this.db : (this.db = await qe(), this.db);
6298
6298
  }
6299
6299
  async _withRetries(e) {
6300
6300
  let t = 0;
@@ -6319,7 +6319,7 @@ class Cn {
6319
6319
  * As the worker we should listen to events from the main window.
6320
6320
  */
6321
6321
  async initializeReceiver() {
6322
- this.receiver = ve._getInstance(Cs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
6322
+ this.receiver = be._getInstance(Cs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
6323
6323
  keyProcessed: (await this._poll()).includes(t.key)
6324
6324
  })), this.receiver._subscribe("ping", async (e, t) => [
6325
6325
  "keyChanged"
@@ -6375,8 +6375,8 @@ class Cn {
6375
6375
  try {
6376
6376
  if (!indexedDB)
6377
6377
  return !1;
6378
- const e = await $e();
6379
- return await kt(e, ge, "1"), await Et(e, ge), !0;
6378
+ const e = await qe();
6379
+ return await kt(e, me, "1"), await Et(e, me), !0;
6380
6380
  } catch {
6381
6381
  }
6382
6382
  return !1;
@@ -6401,7 +6401,7 @@ class Cn {
6401
6401
  }
6402
6402
  async _poll() {
6403
6403
  const e = await this._withRetries((i) => {
6404
- const s = Ie(i, !1).getAll();
6404
+ const s = ve(i, !1).getAll();
6405
6405
  return new ie(s).toPromise();
6406
6406
  });
6407
6407
  if (!e)
@@ -6479,7 +6479,7 @@ function Ms(n, e) {
6479
6479
  * See the License for the specific language governing permissions and
6480
6480
  * limitations under the License.
6481
6481
  */
6482
- class Ze extends bn {
6482
+ class Ze extends yn {
6483
6483
  constructor(e) {
6484
6484
  super(
6485
6485
  "custom",
@@ -6779,7 +6779,7 @@ function Ws(n) {
6779
6779
  return oe(Hs, n.config.apiKey, n.name);
6780
6780
  }
6781
6781
  async function zs(n, e, t = !1) {
6782
- if (y(n.app))
6782
+ if (b(n.app))
6783
6783
  return Promise.reject(D(n));
6784
6784
  const r = ye(n), i = Ms(r, e), a = await new qs(r, i, t).execute();
6785
6785
  return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
@@ -6909,7 +6909,7 @@ async function Zs(n) {
6909
6909
  );
6910
6910
  }
6911
6911
  function ea(n) {
6912
- const e = He(), { protocol: t, hostname: r } = new URL(e);
6912
+ const e = Fe(), { protocol: t, hostname: r } = new URL(e);
6913
6913
  if (n.startsWith("chrome-extension://")) {
6914
6914
  const a = new URL(n);
6915
6915
  return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
@@ -6939,7 +6939,7 @@ function ea(n) {
6939
6939
  */
6940
6940
  const ta = new ne(3e4, 6e4);
6941
6941
  function Rt() {
6942
- const n = b().___jsl;
6942
+ const n = y().___jsl;
6943
6943
  if (n != null && n.H) {
6944
6944
  for (const e of Object.keys(n.H))
6945
6945
  if (n.H[e].r = n.H[e].r || [], n.H[e].L = n.H[e].L || [], n.H[e].r = [...n.H[e].L], n.CP)
@@ -6965,13 +6965,13 @@ function na(n) {
6965
6965
  timeout: ta.get()
6966
6966
  });
6967
6967
  }
6968
- if (!((i = (r = b().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
6968
+ if (!((i = (r = y().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
6969
6969
  e(gapi.iframes.getContext());
6970
- else if (!((s = b().gapi) === null || s === void 0) && s.load)
6970
+ else if (!((s = y().gapi) === null || s === void 0) && s.load)
6971
6971
  a();
6972
6972
  else {
6973
6973
  const c = as("iframefcb");
6974
- return b()[c] = () => {
6974
+ return y()[c] = () => {
6975
6975
  gapi.load ? a() : t(_(
6976
6976
  n,
6977
6977
  "network-request-failed"
@@ -7036,7 +7036,7 @@ function la(n) {
7036
7036
  return s.length && (r.fw = s.join(",")), `${t}?${ee(r).slice(1)}`;
7037
7037
  }
7038
7038
  async function ua(n) {
7039
- const e = await ra(n), t = b().gapi;
7039
+ const e = await ra(n), t = y().gapi;
7040
7040
  return h(
7041
7041
  t,
7042
7042
  n,
@@ -7057,11 +7057,11 @@ async function ua(n) {
7057
7057
  n,
7058
7058
  "network-request-failed"
7059
7059
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
7060
- ), c = b().setTimeout(() => {
7060
+ ), c = y().setTimeout(() => {
7061
7061
  s(a);
7062
7062
  }, ia.get());
7063
7063
  function o() {
7064
- b().clearTimeout(c), i(r);
7064
+ y().clearTimeout(c), i(r);
7065
7065
  }
7066
7066
  r.ping(o).then(o, () => {
7067
7067
  s(a);
@@ -7150,7 +7150,7 @@ function _a(n, e) {
7150
7150
  * See the License for the specific language governing permissions and
7151
7151
  * limitations under the License.
7152
7152
  */
7153
- const ba = "__/auth/handler", ya = "emulator/auth/handler", va = encodeURIComponent("fac");
7153
+ const ya = "__/auth/handler", ba = "emulator/auth/handler", va = encodeURIComponent("fac");
7154
7154
  async function At(n, e, t, r, i, s) {
7155
7155
  h(
7156
7156
  n.config.authDomain,
@@ -7171,7 +7171,7 @@ async function At(n, e, t, r, i, s) {
7171
7171
  v: te,
7172
7172
  eventId: i
7173
7173
  };
7174
- if (e instanceof yn) {
7174
+ if (e instanceof bn) {
7175
7175
  e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", vr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
7176
7176
  for (const [u, d] of Object.entries({}))
7177
7177
  a[u] = d;
@@ -7188,7 +7188,7 @@ async function At(n, e, t, r, i, s) {
7188
7188
  return `${Ia(n)}?${ee(c).slice(1)}${l}`;
7189
7189
  }
7190
7190
  function Ia({ config: n }) {
7191
- return n.emulator ? Ke(n, ya) : `https://${n.authDomain}/${ba}`;
7191
+ return n.emulator ? Ke(n, ba) : `https://${n.authDomain}/${ya}`;
7192
7192
  }
7193
7193
  /**
7194
7194
  * @license
@@ -7206,7 +7206,7 @@ function Ia({ config: n }) {
7206
7206
  * See the License for the specific language governing permissions and
7207
7207
  * limitations under the License.
7208
7208
  */
7209
- const Oe = "webStorageSupport";
7209
+ const Ne = "webStorageSupport";
7210
7210
  class wa {
7211
7211
  constructor() {
7212
7212
  this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = zs, this._overrideRedirectResult = Vs;
@@ -7216,12 +7216,12 @@ class wa {
7216
7216
  async _openPopup(e, t, r, i) {
7217
7217
  var s;
7218
7218
  E((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
7219
- const a = await At(e, t, r, He(), i);
7219
+ const a = await At(e, t, r, Fe(), i);
7220
7220
  return ga(e, a, Qe());
7221
7221
  }
7222
7222
  async _openRedirect(e, t, r, i) {
7223
7223
  await this._originValidation(e);
7224
- const s = await At(e, t, r, He(), i);
7224
+ const s = await At(e, t, r, Fe(), i);
7225
7225
  return Es(s), new Promise(() => {
7226
7226
  });
7227
7227
  }
@@ -7249,9 +7249,9 @@ class wa {
7249
7249
  }), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
7250
7250
  }
7251
7251
  _isIframeWebStorageSupported(e, t) {
7252
- this.iframes[e._key()].send(Oe, { type: Oe }, (i) => {
7252
+ this.iframes[e._key()].send(Ne, { type: Ne }, (i) => {
7253
7253
  var s;
7254
- const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Oe];
7254
+ const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Ne];
7255
7255
  a !== void 0 && t(!!a), k(
7256
7256
  e,
7257
7257
  "internal-error"
@@ -7441,7 +7441,7 @@ function Pa(n = wi()) {
7441
7441
  const s = new URL(r, location.origin);
7442
7442
  if (location.origin === s.origin) {
7443
7443
  const a = Aa(s.toString());
7444
- ys(t, a, () => a(t.currentUser)), bs(t, (c) => a(c));
7444
+ bs(t, a, () => a(t.currentUser)), ys(t, (c) => a(c));
7445
7445
  }
7446
7446
  }
7447
7447
  const i = cr("auth");
@@ -7475,7 +7475,7 @@ Sa(
7475
7475
  const Oa = Bn({
7476
7476
  history: Un(),
7477
7477
  routes: [
7478
- ...ue,
7478
+ ...Ve,
7479
7479
  ...K,
7480
7480
  {
7481
7481
  path: "/forbidden",
@@ -7484,7 +7484,7 @@ const Oa = Bn({
7484
7484
  }
7485
7485
  ]
7486
7486
  });
7487
- let De, Le;
7487
+ let Oe, De;
7488
7488
  Oa.beforeEach(async (n) => {
7489
7489
  const {
7490
7490
  sessionUser: e,
@@ -7492,10 +7492,10 @@ Oa.beforeEach(async (n) => {
7492
7492
  currentBusiness: r,
7493
7493
  readRestaurants: i,
7494
7494
  changeRestaurant: s
7495
- } = Ve();
7495
+ } = $e();
7496
7496
  if (n.name && n.name.startsWith("mf-payment-admin")) {
7497
7497
  if (!e.value) {
7498
- De || (De = new Promise((c) => {
7498
+ Oe || (Oe = new Promise((c) => {
7499
7499
  const o = G(e, (l) => {
7500
7500
  var u, d;
7501
7501
  l && (o(), c(
@@ -7503,12 +7503,12 @@ Oa.beforeEach(async (n) => {
7503
7503
  ));
7504
7504
  });
7505
7505
  }));
7506
- const a = await De;
7506
+ const a = await Oe;
7507
7507
  return a || { name: "mf-payment-forbidden" };
7508
7508
  }
7509
7509
  return !0;
7510
7510
  }
7511
- return !r.value || !t.value ? (Le || (Le = Promise.all([
7511
+ return !r.value || !t.value ? (De || (De = Promise.all([
7512
7512
  new Promise(async (a) => {
7513
7513
  const c = G(r, (o) => {
7514
7514
  o && (c(), a(!0));
@@ -7520,17 +7520,17 @@ Oa.beforeEach(async (n) => {
7520
7520
  }), o = await i();
7521
7521
  await s(o == null ? void 0 : o.at(0));
7522
7522
  })
7523
- ]).then((a) => !0)), Le) : !0;
7523
+ ]).then((a) => !0)), De) : !0;
7524
7524
  });
7525
7525
  const Da = /* @__PURE__ */ Lt({
7526
7526
  __name: "AppSidebar",
7527
7527
  setup(n) {
7528
- const e = Ve(), t = xn(), { t: r } = Wn(), i = Hn(t.currentRoute.value.name);
7528
+ const e = $e(), t = xn(), { t: r } = Wn(), i = Hn(t.currentRoute.value.name);
7529
7529
  G(t.currentRoute, () => {
7530
7530
  let l = t.currentRoute.value.name;
7531
7531
  t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
7532
7532
  });
7533
- const s = ue.map((l) => {
7533
+ const s = Ve.map((l) => {
7534
7534
  var f, m;
7535
7535
  if (!((f = l.meta) != null && f.sidebarDisplay) || l.meta.region && !((m = l.meta.region) != null && m[e.currentCountry.value]) || l.meta.section)
7536
7536
  return;
@@ -7573,16 +7573,7 @@ const Da = /* @__PURE__ */ Lt({
7573
7573
  }).filter((l) => !!l), o = Dt(() => {
7574
7574
  var u, d;
7575
7575
  const l = [...s];
7576
- return l.push({
7577
- label: "",
7578
- value: "divider",
7579
- disabled: !0
7580
- }), l.push({
7581
- label: r("financing.title"),
7582
- icon: "credit_score",
7583
- value: "divider",
7584
- disabled: !0
7585
- }), l.push(...a(ue, "financing")), ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
7576
+ return ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
7586
7577
  label: "",
7587
7578
  value: "divider",
7588
7579
  disabled: !0
@@ -7622,11 +7613,11 @@ const Da = /* @__PURE__ */ Lt({
7622
7613
  };
7623
7614
  }
7624
7615
  });
7625
- var La = { 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" } };
7616
+ var La = { 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" } };
7626
7617
  const qa = /* @__PURE__ */ Lt({
7627
7618
  __name: "App",
7628
7619
  setup(n) {
7629
- const { state: e } = er(), t = Ve(), r = Fn(), i = Kt(La.firebase);
7620
+ const { state: e } = er(), t = $e(), r = Fn(), i = Kt(La.firebase);
7630
7621
  async function s() {
7631
7622
  const a = t.sessionUser.value;
7632
7623
  if (!a || !a.token) return;
@@ -7661,7 +7652,7 @@ const qa = /* @__PURE__ */ Lt({
7661
7652
  },
7662
7653
  {}
7663
7654
  );
7664
- }, Va = [...K, ...ue];
7655
+ }, Va = [...K, ...Ve];
7665
7656
  export {
7666
7657
  mt as _,
7667
7658
  qa as a,