@feedmepos/mf-payment 1.5.58 → 1.5.59-dev

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 (27) hide show
  1. package/dist/{OnboardForm-BvNciBBq.js → OnboardForm-JVgZ181b.js} +553 -481
  2. package/dist/{OnboardForm-9Mj8aGDQ.js → OnboardForm-zsULkQrh.js} +2 -2
  3. package/dist/{OnboardSubmission-DvWwQFy6.js → OnboardSubmission-BvUrpOC3.js} +336 -121
  4. package/dist/{OnboardSubmission-C2BYK2p1.js → OnboardSubmission-CR6o2zIK.js} +25 -25
  5. package/dist/{PayoutAccount-RW2zIZFf.js → PayoutAccount-3zLhh0ti.js} +1 -1
  6. package/dist/{PayoutAccount-DJaJFWll.js → PayoutAccount-B42ffsVM.js} +1 -1
  7. package/dist/{Terminal-Sfe6Nf9j.js → Terminal-DqSu2QTe.js} +1 -1
  8. package/dist/TerminalSetting-BCVX0Jdf.js +2102 -0
  9. package/dist/{Transaction-hVVgSn4x.js → Transaction-Cuh4qbT0.js} +1 -1
  10. package/dist/api/onboard-submission/index.d.ts +13 -0
  11. package/dist/api/terminal/index.d.ts +1 -0
  12. package/dist/{app-D0z9X0sH.js → app-B9xMyKhl.js} +270 -211
  13. package/dist/app.js +1 -1
  14. package/dist/composable/async-poller/index.d.ts +22 -0
  15. package/dist/index-BteYHCd3.js +63 -0
  16. package/dist/{index-CnN_MV2-.js → index-CQI_8W1T.js} +23 -8
  17. package/dist/index-MdV54cWO.js +58 -0
  18. package/dist/package.json +2 -2
  19. package/dist/{payout-account-DhM0zCjO.js → payout-account-BkGj6HJy.js} +1 -1
  20. package/dist/tsconfig.app.tsbuildinfo +1 -1
  21. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +81 -0
  22. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +2 -2
  23. package/dist/views/admin/terminal/tabs/useTyroSoftposGateway.d.ts +10 -0
  24. package/dist/views/onboard-submission/tyro-submission-polling.d.ts +27 -0
  25. package/package.json +1 -1
  26. package/dist/TerminalSetting-KjacSx_V.js +0 -1958
  27. package/dist/index-XTdSN6CV.js +0 -60
@@ -1,8 +1,8 @@
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 $e, useI18n as Wn } from "@feedmepos/mf-common";
5
- import { defineStore as zn } from "pinia";
4
+ import { useCoreStore as Ve, useI18n as zn } from "@feedmepos/mf-common";
5
+ import { defineStore as Wn } from "pinia";
6
6
  import { components as Gn } from "@feedmepos/ui-library";
7
7
  const Kn = {
8
8
  components: {
@@ -389,7 +389,23 @@ const Kn = {
389
389
  name: "Tyro Embedded Payments",
390
390
  description: "Connect Tyro Tap to Pay for in-store card payments in Australia.",
391
391
  service1: "Tap to Pay on compatible devices",
392
- service2: "Portal-led Tyro authorisation"
392
+ service2: "Portal-led Tyro authorisation",
393
+ location: {
394
+ description: "Select a Tyro location to finish setup.",
395
+ merchantId: "Tyro Merchant ID",
396
+ posReference: "Tyro POS Reference",
397
+ label: "Tyro Location",
398
+ bind: "Bind Location"
399
+ },
400
+ toast: {
401
+ authorizationStartFailedTitle: "Unable to start Tyro authorisation",
402
+ authorizationApproved: "Tyro authorisation approved. Select a location to finish setup.",
403
+ authorizationPopupBlocked: "Your browser blocked the authorisation popup. Please allow popups and try again.",
404
+ authorizationRejected: "Tyro authorisation was rejected.",
405
+ authorizationTimeout: "Tyro authorisation is still pending. Please refresh after completing authorisation.",
406
+ locationRequired: "Tyro location is required.",
407
+ locationBindSuccess: "Tyro location bound successfully."
408
+ }
393
409
  }
394
410
  }
395
411
  }, Jn = {
@@ -773,6 +789,26 @@ const Kn = {
773
789
  updateFailed: "อัปเดตคำขอไม่สำเร็จ"
774
790
  }
775
791
  }
792
+ },
793
+ tyro: {
794
+ name: "Tyro Embedded Payments",
795
+ description: "เชื่อมต่อ Tyro Tap to Pay สำหรับการชำระเงินด้วยบัตรที่หน้าร้านในออสเตรเลีย",
796
+ service1: "Tap to Pay บนอุปกรณ์ที่รองรับ",
797
+ service2: "อนุญาต Tyro ผ่านพอร์ทัล",
798
+ location: {
799
+ description: "เลือกตำแหน่ง Tyro เพื่อดำเนินการตั้งค่าให้เสร็จสิ้น",
800
+ merchantId: "Tyro Merchant ID",
801
+ posReference: "Tyro POS Reference",
802
+ label: "ตำแหน่ง Tyro",
803
+ bind: "ผูกตำแหน่ง"
804
+ },
805
+ toast: {
806
+ authorizationApproved: "อนุญาต Tyro แล้ว เลือกตำแหน่งเพื่อดำเนินการตั้งค่าให้เสร็จสิ้น",
807
+ authorizationRejected: "การอนุญาต Tyro ถูกปฏิเสธ",
808
+ authorizationTimeout: "การอนุญาต Tyro ยังอยู่ระหว่างรอดำเนินการ กรุณารีเฟรชหลังจากอนุญาตเสร็จแล้ว",
809
+ locationRequired: "กรุณาเลือกตำแหน่ง Tyro",
810
+ locationBindSuccess: "ผูกตำแหน่ง Tyro เรียบร้อยแล้ว"
811
+ }
776
812
  }
777
813
  }
778
814
  }, Xn = {
@@ -1161,7 +1197,21 @@ const Kn = {
1161
1197
  name: "Tyro Embedded Payments",
1162
1198
  description: "在澳大利亚接入 Tyro Tap to Pay 店内银行卡支付。",
1163
1199
  service1: "在兼容设备上启用 Tap to Pay",
1164
- service2: "通过门户完成 Tyro 授权"
1200
+ service2: "通过门户完成 Tyro 授权",
1201
+ location: {
1202
+ description: "请选择 Tyro 位置以完成设置。",
1203
+ merchantId: "Tyro 商户 ID",
1204
+ posReference: "Tyro POS 参考",
1205
+ label: "Tyro 位置",
1206
+ bind: "绑定位置"
1207
+ },
1208
+ toast: {
1209
+ authorizationApproved: "Tyro 授权已通过。请选择位置以完成设置。",
1210
+ authorizationRejected: "Tyro 授权被拒绝。",
1211
+ authorizationTimeout: "Tyro 授权仍在等待中。完成授权后请刷新页面。",
1212
+ locationRequired: "请选择 Tyro 位置。",
1213
+ locationBindSuccess: "Tyro 位置绑定成功。"
1214
+ }
1165
1215
  }
1166
1216
  }
1167
1217
  }, Zn = {
@@ -1192,7 +1242,7 @@ const Kn = {
1192
1242
  sidebarDisplay: "Payout Accounts",
1193
1243
  section: "payment-gateway"
1194
1244
  },
1195
- component: () => import("./PayoutAccount-RW2zIZFf.js")
1245
+ component: () => import("./PayoutAccount-3zLhh0ti.js")
1196
1246
  },
1197
1247
  {
1198
1248
  path: "/admin/payout-accounts/:accountId",
@@ -1210,7 +1260,7 @@ const Kn = {
1210
1260
  sidebarDisplay: "Payment Onboarding",
1211
1261
  section: "payment-gateway"
1212
1262
  },
1213
- component: () => import("./OnboardSubmission-C2BYK2p1.js")
1263
+ component: () => import("./OnboardSubmission-CR6o2zIK.js")
1214
1264
  },
1215
1265
  {
1216
1266
  path: "/admin/onboarding/:submissionId",
@@ -1219,7 +1269,7 @@ const Kn = {
1219
1269
  meta: {
1220
1270
  parent: "mf-payment-admin.onboard-submission"
1221
1271
  },
1222
- component: () => import("./OnboardForm-BvNciBBq.js")
1272
+ component: () => import("./OnboardForm-JVgZ181b.js")
1223
1273
  },
1224
1274
  {
1225
1275
  path: "/admin/terminal/pos",
@@ -1228,7 +1278,7 @@ const Kn = {
1228
1278
  sidebarDisplay: "POS",
1229
1279
  section: "device"
1230
1280
  },
1231
- component: () => import("./Terminal-Sfe6Nf9j.js"),
1281
+ component: () => import("./Terminal-DqSu2QTe.js"),
1232
1282
  props: {
1233
1283
  type: "POS"
1234
1284
  }
@@ -1240,7 +1290,7 @@ const Kn = {
1240
1290
  sidebarDisplay: "Kiosks",
1241
1291
  section: "device"
1242
1292
  },
1243
- component: () => import("./Terminal-Sfe6Nf9j.js"),
1293
+ component: () => import("./Terminal-DqSu2QTe.js"),
1244
1294
  props: {
1245
1295
  type: "KIOSK"
1246
1296
  }
@@ -1252,7 +1302,7 @@ const Kn = {
1252
1302
  sidebarDisplay: "Terminals",
1253
1303
  section: "device"
1254
1304
  },
1255
- component: () => import("./Terminal-Sfe6Nf9j.js"),
1305
+ component: () => import("./Terminal-DqSu2QTe.js"),
1256
1306
  props: {
1257
1307
  type: "TERMINAL"
1258
1308
  }
@@ -1264,7 +1314,7 @@ const Kn = {
1264
1314
  meta: {
1265
1315
  parent: "mf-payment-admin.pos"
1266
1316
  },
1267
- component: () => import("./TerminalSetting-KjacSx_V.js")
1317
+ component: () => import("./TerminalSetting-BCVX0Jdf.js")
1268
1318
  },
1269
1319
  {
1270
1320
  path: "/admin/terminal/kiosk/:terminalId",
@@ -1273,7 +1323,7 @@ const Kn = {
1273
1323
  meta: {
1274
1324
  parent: "mf-payment-admin.kiosk"
1275
1325
  },
1276
- component: () => import("./TerminalSetting-KjacSx_V.js")
1326
+ component: () => import("./TerminalSetting-BCVX0Jdf.js")
1277
1327
  },
1278
1328
  {
1279
1329
  path: "/admin/terminal/terminal/:terminalId",
@@ -1282,7 +1332,7 @@ const Kn = {
1282
1332
  meta: {
1283
1333
  parent: "mf-payment-admin.terminal"
1284
1334
  },
1285
- component: () => import("./TerminalSetting-KjacSx_V.js")
1335
+ component: () => import("./TerminalSetting-BCVX0Jdf.js")
1286
1336
  },
1287
1337
  {
1288
1338
  path: "/admin/transaction",
@@ -1317,7 +1367,7 @@ const Kn = {
1317
1367
  },
1318
1368
  component: () => import("./SettlementTransactions-3F4EOoyz.js")
1319
1369
  }
1320
- ], Ve = [
1370
+ ], ue = [
1321
1371
  {
1322
1372
  path: "",
1323
1373
  redirect: { name: "mf-payment-payout-account" }
@@ -1325,7 +1375,7 @@ const Kn = {
1325
1375
  {
1326
1376
  path: "/payout-account",
1327
1377
  name: "mf-payment-payout-account",
1328
- component: () => import("./PayoutAccount-DJaJFWll.js"),
1378
+ component: () => import("./PayoutAccount-B42ffsVM.js"),
1329
1379
  meta: {
1330
1380
  sidebarDisplay: "i18n:payment.routes.payout_account"
1331
1381
  }
@@ -1333,7 +1383,7 @@ const Kn = {
1333
1383
  {
1334
1384
  path: "/onboard-submission",
1335
1385
  name: "mf-payment-onboard-submission",
1336
- component: () => import("./OnboardSubmission-DvWwQFy6.js"),
1386
+ component: () => import("./OnboardSubmission-BvUrpOC3.js"),
1337
1387
  meta: {
1338
1388
  sidebarDisplay: "i18n:payment.routes.onboard_submission",
1339
1389
  region: { MY: !0, TH: !0, AU: !0 }
@@ -1343,7 +1393,7 @@ const Kn = {
1343
1393
  path: "/onboard-submission/:type/:submission?",
1344
1394
  name: "mf-payment-onboard-submission-form",
1345
1395
  props: !0,
1346
- component: () => import("./OnboardForm-9Mj8aGDQ.js"),
1396
+ component: () => import("./OnboardForm-zsULkQrh.js"),
1347
1397
  meta: {
1348
1398
  parent: "mf-payment-onboard-submission"
1349
1399
  }
@@ -1359,7 +1409,7 @@ const Kn = {
1359
1409
  {
1360
1410
  path: "/transaction",
1361
1411
  name: "mf-payment-transaction",
1362
- component: () => import("./Transaction-hVVgSn4x.js"),
1412
+ component: () => import("./Transaction-Cuh4qbT0.js"),
1363
1413
  meta: {
1364
1414
  sidebarDisplay: "i18n:payment.routes.transaction_new",
1365
1415
  sidebarNew: !0
@@ -1399,7 +1449,7 @@ const Kn = {
1399
1449
  path: `/financing${n.path}`
1400
1450
  }))
1401
1451
  }
1402
- ], er = zn("mf-payment-iframe", () => {
1452
+ ], er = Wn("mf-payment-iframe", () => {
1403
1453
  const n = {
1404
1454
  isIframe: !1
1405
1455
  }, e = Dt(() => n);
@@ -1815,10 +1865,10 @@ function gr() {
1815
1865
  * See the License for the specific language governing permissions and
1816
1866
  * limitations under the License.
1817
1867
  */
1818
- const _r = "FirebaseError";
1868
+ const yr = "FirebaseError";
1819
1869
  class L extends Error {
1820
1870
  constructor(e, t, r) {
1821
- super(t), this.code = e, this.customData = r, this.name = _r, Object.setPrototypeOf(this, L.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Z.prototype.create);
1871
+ super(t), this.code = e, this.customData = r, this.name = yr, Object.setPrototypeOf(this, L.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Z.prototype.create);
1822
1872
  }
1823
1873
  }
1824
1874
  class Z {
@@ -1826,11 +1876,11 @@ class Z {
1826
1876
  this.service = e, this.serviceName = t, this.errors = r;
1827
1877
  }
1828
1878
  create(e, ...t) {
1829
- const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? yr(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
1879
+ const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? _r(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
1830
1880
  return new L(i, c, r);
1831
1881
  }
1832
1882
  }
1833
- function yr(n, e) {
1883
+ function _r(n, e) {
1834
1884
  return n.replace(br, (t, r) => {
1835
1885
  const i = e[r];
1836
1886
  return i != null ? String(i) : `<${r}?>`;
@@ -1843,7 +1893,7 @@ function vr(n) {
1843
1893
  return !1;
1844
1894
  return !0;
1845
1895
  }
1846
- function ue(n, e) {
1896
+ function de(n, e) {
1847
1897
  if (n === e)
1848
1898
  return !0;
1849
1899
  const t = Object.keys(n), r = Object.keys(e);
@@ -1852,7 +1902,7 @@ function ue(n, e) {
1852
1902
  return !1;
1853
1903
  const s = n[i], a = e[i];
1854
1904
  if (at(s) && at(a)) {
1855
- if (!ue(s, a))
1905
+ if (!de(s, a))
1856
1906
  return !1;
1857
1907
  } else if (s !== a)
1858
1908
  return !1;
@@ -1939,7 +1989,7 @@ class wr {
1939
1989
  next: e,
1940
1990
  error: t,
1941
1991
  complete: r
1942
- }, i.next === void 0 && (i.next = Ee), i.error === void 0 && (i.error = Ee), i.complete === void 0 && (i.complete = Ee);
1992
+ }, i.next === void 0 && (i.next = Se), i.error === void 0 && (i.error = Se), i.complete === void 0 && (i.complete = Se);
1943
1993
  const s = this.unsubscribeOne.bind(this, this.observers.length);
1944
1994
  return this.finalized && this.task.then(() => {
1945
1995
  try {
@@ -1985,7 +2035,7 @@ function Tr(n, e) {
1985
2035
  return !0;
1986
2036
  return !1;
1987
2037
  }
1988
- function Ee() {
2038
+ function Se() {
1989
2039
  }
1990
2040
  /**
1991
2041
  * @license
@@ -2003,7 +2053,7 @@ function Ee() {
2003
2053
  * See the License for the specific language governing permissions and
2004
2054
  * limitations under the License.
2005
2055
  */
2006
- function W(n) {
2056
+ function z(n) {
2007
2057
  return n && n._delegate ? n._delegate : n;
2008
2058
  }
2009
2059
  class j {
@@ -2392,7 +2442,7 @@ function Lr() {
2392
2442
  IDBCursor.prototype.continuePrimaryKey
2393
2443
  ]);
2394
2444
  }
2395
- const Wt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap();
2445
+ const zt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap();
2396
2446
  function Mr(n) {
2397
2447
  const e = new Promise((t, r) => {
2398
2448
  const i = () => {
@@ -2405,12 +2455,12 @@ function Mr(n) {
2405
2455
  n.addEventListener("success", s), n.addEventListener("error", a);
2406
2456
  });
2407
2457
  return e.then((t) => {
2408
- t instanceof IDBCursor && Wt.set(t, n);
2458
+ t instanceof IDBCursor && zt.set(t, n);
2409
2459
  }).catch(() => {
2410
- }), We.set(e, n), e;
2460
+ }), ze.set(e, n), e;
2411
2461
  }
2412
2462
  function Br(n) {
2413
- if (Le.has(n))
2463
+ if (Me.has(n))
2414
2464
  return;
2415
2465
  const e = new Promise((t, r) => {
2416
2466
  const i = () => {
@@ -2422,15 +2472,15 @@ function Br(n) {
2422
2472
  };
2423
2473
  n.addEventListener("complete", s), n.addEventListener("error", a), n.addEventListener("abort", a);
2424
2474
  });
2425
- Le.set(n, e);
2475
+ Me.set(n, e);
2426
2476
  }
2427
- let Me = {
2477
+ let Be = {
2428
2478
  get(n, e, t) {
2429
2479
  if (n instanceof IDBTransaction) {
2430
2480
  if (e === "done")
2431
- return Le.get(n);
2481
+ return Me.get(n);
2432
2482
  if (e === "objectStoreNames")
2433
- return n.objectStoreNames || zt.get(n);
2483
+ return n.objectStoreNames || Wt.get(n);
2434
2484
  if (e === "store")
2435
2485
  return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
2436
2486
  }
@@ -2444,30 +2494,30 @@ let Me = {
2444
2494
  }
2445
2495
  };
2446
2496
  function Ur(n) {
2447
- Me = n(Me);
2497
+ Be = n(Be);
2448
2498
  }
2449
2499
  function xr(n) {
2450
2500
  return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
2451
- const r = n.call(Re(this), e, ...t);
2452
- return zt.set(r, e.sort ? e.sort() : [e]), N(r);
2501
+ const r = n.call(Ce(this), e, ...t);
2502
+ return Wt.set(r, e.sort ? e.sort() : [e]), N(r);
2453
2503
  } : Lr().includes(n) ? function(...e) {
2454
- return n.apply(Re(this), e), N(Wt.get(this));
2504
+ return n.apply(Ce(this), e), N(zt.get(this));
2455
2505
  } : function(...e) {
2456
- return N(n.apply(Re(this), e));
2506
+ return N(n.apply(Ce(this), e));
2457
2507
  };
2458
2508
  }
2459
2509
  function Fr(n) {
2460
- return typeof n == "function" ? xr(n) : (n instanceof IDBTransaction && Br(n), Or(n, Dr()) ? new Proxy(n, Me) : n);
2510
+ return typeof n == "function" ? xr(n) : (n instanceof IDBTransaction && Br(n), Or(n, Dr()) ? new Proxy(n, Be) : n);
2461
2511
  }
2462
2512
  function N(n) {
2463
2513
  if (n instanceof IDBRequest)
2464
2514
  return Mr(n);
2465
- if (Se.has(n))
2466
- return Se.get(n);
2515
+ if (Re.has(n))
2516
+ return Re.get(n);
2467
2517
  const e = Fr(n);
2468
- return e !== n && (Se.set(n, e), We.set(e, n)), e;
2518
+ return e !== n && (Re.set(n, e), ze.set(e, n)), e;
2469
2519
  }
2470
- const Re = (n) => We.get(n);
2520
+ const Ce = (n) => ze.get(n);
2471
2521
  function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
2472
2522
  const a = indexedDB.open(n, e), c = N(a);
2473
2523
  return r && a.addEventListener("upgradeneeded", (o) => {
@@ -2482,12 +2532,12 @@ function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
2482
2532
  }).catch(() => {
2483
2533
  }), c;
2484
2534
  }
2485
- const qr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Ce = /* @__PURE__ */ new Map();
2535
+ const qr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Ae = /* @__PURE__ */ new Map();
2486
2536
  function lt(n, e) {
2487
2537
  if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
2488
2538
  return;
2489
- if (Ce.get(e))
2490
- return Ce.get(e);
2539
+ if (Ae.get(e))
2540
+ return Ae.get(e);
2491
2541
  const t = e.replace(/FromIndex$/, ""), r = e !== t, i = $r.includes(t);
2492
2542
  if (
2493
2543
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
@@ -2502,7 +2552,7 @@ function lt(n, e) {
2502
2552
  i && o.done
2503
2553
  ]))[0];
2504
2554
  };
2505
- return Ce.set(e, s), s;
2555
+ return Ae.set(e, s), s;
2506
2556
  }
2507
2557
  Ur((n) => ({
2508
2558
  ...n,
@@ -2545,7 +2595,7 @@ function jr(n) {
2545
2595
  const e = n.getComponent();
2546
2596
  return (e == null ? void 0 : e.type) === "VERSION";
2547
2597
  }
2548
- const Be = "@firebase/app", ut = "0.10.13";
2598
+ const Ue = "@firebase/app", ut = "0.10.13";
2549
2599
  /**
2550
2600
  * @license
2551
2601
  * Copyright 2019 Google LLC
@@ -2562,7 +2612,7 @@ const Be = "@firebase/app", ut = "0.10.13";
2562
2612
  * See the License for the specific language governing permissions and
2563
2613
  * limitations under the License.
2564
2614
  */
2565
- const T = new jt("@firebase/app"), Wr = "@firebase/app-compat", zr = "@firebase/analytics-compat", Gr = "@firebase/analytics", Kr = "@firebase/app-check-compat", Jr = "@firebase/app-check", Yr = "@firebase/auth", Xr = "@firebase/auth-compat", Qr = "@firebase/database", Zr = "@firebase/data-connect", ei = "@firebase/database-compat", ti = "@firebase/functions", ni = "@firebase/functions-compat", ri = "@firebase/installations", ii = "@firebase/installations-compat", si = "@firebase/messaging", ai = "@firebase/messaging-compat", oi = "@firebase/performance", ci = "@firebase/performance-compat", li = "@firebase/remote-config", ui = "@firebase/remote-config-compat", di = "@firebase/storage", hi = "@firebase/storage-compat", pi = "@firebase/firestore", fi = "@firebase/vertexai-preview", mi = "@firebase/firestore-compat", gi = "firebase", _i = "10.14.1";
2615
+ const T = new jt("@firebase/app"), zr = "@firebase/app-compat", Wr = "@firebase/analytics-compat", Gr = "@firebase/analytics", Kr = "@firebase/app-check-compat", Jr = "@firebase/app-check", Yr = "@firebase/auth", Xr = "@firebase/auth-compat", Qr = "@firebase/database", Zr = "@firebase/data-connect", ei = "@firebase/database-compat", ti = "@firebase/functions", ni = "@firebase/functions-compat", ri = "@firebase/installations", ii = "@firebase/installations-compat", si = "@firebase/messaging", ai = "@firebase/messaging-compat", oi = "@firebase/performance", ci = "@firebase/performance-compat", li = "@firebase/remote-config", ui = "@firebase/remote-config-compat", di = "@firebase/storage", hi = "@firebase/storage-compat", pi = "@firebase/firestore", fi = "@firebase/vertexai-preview", mi = "@firebase/firestore-compat", gi = "firebase", yi = "10.14.1";
2566
2616
  /**
2567
2617
  * @license
2568
2618
  * Copyright 2019 Google LLC
@@ -2579,11 +2629,11 @@ const T = new jt("@firebase/app"), Wr = "@firebase/app-compat", zr = "@firebase/
2579
2629
  * See the License for the specific language governing permissions and
2580
2630
  * limitations under the License.
2581
2631
  */
2582
- const Ue = "[DEFAULT]", yi = {
2583
- [Be]: "fire-core",
2584
- [Wr]: "fire-core-compat",
2632
+ const xe = "[DEFAULT]", _i = {
2633
+ [Ue]: "fire-core",
2634
+ [zr]: "fire-core-compat",
2585
2635
  [Gr]: "fire-analytics",
2586
- [zr]: "fire-analytics-compat",
2636
+ [Wr]: "fire-analytics-compat",
2587
2637
  [Jr]: "fire-app-check",
2588
2638
  [Kr]: "fire-app-check-compat",
2589
2639
  [Yr]: "fire-auth",
@@ -2625,7 +2675,7 @@ const Ue = "[DEFAULT]", yi = {
2625
2675
  * See the License for the specific language governing permissions and
2626
2676
  * limitations under the License.
2627
2677
  */
2628
- const de = /* @__PURE__ */ new Map(), bi = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ new Map();
2678
+ const he = /* @__PURE__ */ new Map(), bi = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Map();
2629
2679
  function dt(n, e) {
2630
2680
  try {
2631
2681
  n.container.addComponent(e);
@@ -2635,10 +2685,10 @@ function dt(n, e) {
2635
2685
  }
2636
2686
  function Y(n) {
2637
2687
  const e = n.name;
2638
- if (xe.has(e))
2688
+ if (Fe.has(e))
2639
2689
  return T.debug(`There were multiple attempts to register component ${e}.`), !1;
2640
- xe.set(e, n);
2641
- for (const t of de.values())
2690
+ Fe.set(e, n);
2691
+ for (const t of he.values())
2642
2692
  dt(t, n);
2643
2693
  for (const t of bi.values())
2644
2694
  dt(t, n);
@@ -2757,11 +2807,11 @@ class Ii {
2757
2807
  * See the License for the specific language governing permissions and
2758
2808
  * limitations under the License.
2759
2809
  */
2760
- const te = _i;
2810
+ const te = yi;
2761
2811
  function Kt(n, e = {}) {
2762
2812
  let t = n;
2763
2813
  typeof e != "object" && (e = { name: e });
2764
- const r = Object.assign({ name: Ue, automaticDataCollectionEnabled: !1 }, e), i = r.name;
2814
+ const r = Object.assign({ name: xe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
2765
2815
  if (typeof i != "string" || !i)
2766
2816
  throw O.create("bad-app-name", {
2767
2817
  appName: String(i)
@@ -2771,21 +2821,21 @@ function Kt(n, e = {}) {
2771
2821
  "no-options"
2772
2822
  /* AppError.NO_OPTIONS */
2773
2823
  );
2774
- const s = de.get(i);
2824
+ const s = he.get(i);
2775
2825
  if (s) {
2776
- if (ue(t, s.options) && ue(r, s.config))
2826
+ if (de(t, s.options) && de(r, s.config))
2777
2827
  return s;
2778
2828
  throw O.create("duplicate-app", { appName: i });
2779
2829
  }
2780
2830
  const a = new Rr(i);
2781
- for (const o of xe.values())
2831
+ for (const o of Fe.values())
2782
2832
  a.addComponent(o);
2783
2833
  const c = new Ii(t, r, a);
2784
- return de.set(i, c), c;
2834
+ return he.set(i, c), c;
2785
2835
  }
2786
- function wi(n = Ue) {
2787
- const e = de.get(n);
2788
- if (!e && n === Ue && $t())
2836
+ function wi(n = xe) {
2837
+ const e = he.get(n);
2838
+ if (!e && n === xe && $t())
2789
2839
  return Kt();
2790
2840
  if (!e)
2791
2841
  throw O.create("no-app", { appName: n });
@@ -2793,7 +2843,7 @@ function wi(n = Ue) {
2793
2843
  }
2794
2844
  function H(n, e, t) {
2795
2845
  var r;
2796
- let i = (r = yi[n]) !== null && r !== void 0 ? r : n;
2846
+ let i = (r = _i[n]) !== null && r !== void 0 ? r : n;
2797
2847
  t && (i += `-${t}`);
2798
2848
  const s = i.match(/\s|\//), a = e.match(/\s|\//);
2799
2849
  if (s || a) {
@@ -2827,9 +2877,9 @@ function H(n, e, t) {
2827
2877
  * limitations under the License.
2828
2878
  */
2829
2879
  const Ti = "firebase-heartbeat-database", ki = 1, X = "firebase-heartbeat-store";
2830
- let Ae = null;
2880
+ let Pe = null;
2831
2881
  function Jt() {
2832
- return Ae || (Ae = Hr(Ti, ki, {
2882
+ return Pe || (Pe = Hr(Ti, ki, {
2833
2883
  upgrade: (n, e) => {
2834
2884
  switch (e) {
2835
2885
  case 0:
@@ -2844,7 +2894,7 @@ function Jt() {
2844
2894
  throw O.create("idb-open", {
2845
2895
  originalErrorMessage: n.message
2846
2896
  });
2847
- })), Ae;
2897
+ })), Pe;
2848
2898
  }
2849
2899
  async function Ei(n) {
2850
2900
  try {
@@ -3045,7 +3095,7 @@ function Ni(n) {
3045
3095
  (e) => new Ci(e),
3046
3096
  "PRIVATE"
3047
3097
  /* ComponentType.PRIVATE */
3048
- )), H(Be, ut, n), H(Be, ut, "esm2017"), H("fire-js", "");
3098
+ )), H(Ue, ut, n), H(Ue, ut, "esm2017"), H("fire-js", "");
3049
3099
  }
3050
3100
  Ni("");
3051
3101
  var Oi = "firebase", Di = "10.14.1";
@@ -3075,7 +3125,7 @@ var mt = function() {
3075
3125
  return e;
3076
3126
  }, mt.apply(this, arguments);
3077
3127
  };
3078
- function ze(n, e) {
3128
+ function We(n, e) {
3079
3129
  var t = {};
3080
3130
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
3081
3131
  if (n != null && typeof Object.getOwnPropertySymbols == "function")
@@ -3105,12 +3155,12 @@ const Li = Xt, Qt = new Z("auth", "Firebase", Xt());
3105
3155
  * See the License for the specific language governing permissions and
3106
3156
  * limitations under the License.
3107
3157
  */
3108
- const he = new jt("@firebase/auth");
3158
+ const pe = new jt("@firebase/auth");
3109
3159
  function Mi(n, ...e) {
3110
- he.logLevel <= p.WARN && he.warn(`Auth (${te}): ${n}`, ...e);
3160
+ pe.logLevel <= p.WARN && pe.warn(`Auth (${te}): ${n}`, ...e);
3111
3161
  }
3112
3162
  function ae(n, ...e) {
3113
- he.logLevel <= p.ERROR && he.error(`Auth (${te}): ${n}`, ...e);
3163
+ pe.logLevel <= p.ERROR && pe.error(`Auth (${te}): ${n}`, ...e);
3114
3164
  }
3115
3165
  /**
3116
3166
  * @license
@@ -3131,7 +3181,7 @@ function ae(n, ...e) {
3131
3181
  function k(n, ...e) {
3132
3182
  throw Ge(n, ...e);
3133
3183
  }
3134
- function _(n, ...e) {
3184
+ function y(n, ...e) {
3135
3185
  return Ge(n, ...e);
3136
3186
  }
3137
3187
  function Zt(n, e, t) {
@@ -3177,7 +3227,7 @@ function E(n, e) {
3177
3227
  * See the License for the specific language governing permissions and
3178
3228
  * limitations under the License.
3179
3229
  */
3180
- function Fe() {
3230
+ function He() {
3181
3231
  var n;
3182
3232
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
3183
3233
  }
@@ -3434,7 +3484,7 @@ const Hi = new ne(3e4, 6e4);
3434
3484
  function _e(n, e) {
3435
3485
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
3436
3486
  }
3437
- async function z(n, e, t, r, i = {}) {
3487
+ async function W(n, e, t, r, i = {}) {
3438
3488
  return tn(n, i, async () => {
3439
3489
  let s = {}, a = {};
3440
3490
  r && (e === "GET" ? a = r : s = {
@@ -3489,7 +3539,7 @@ async function tn(n, e, t) {
3489
3539
  }
3490
3540
  }
3491
3541
  async function nn(n, e, t, r, i = {}) {
3492
- const s = await z(n, e, t, r, i);
3542
+ const s = await W(n, e, t, r, i);
3493
3543
  return "mfaPendingCredential" in s && k(n, "multi-factor-auth-required", {
3494
3544
  _serverResponse: s
3495
3545
  }), s;
@@ -3501,7 +3551,7 @@ function rn(n, e, t, r) {
3501
3551
  class qi {
3502
3552
  constructor(e) {
3503
3553
  this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
3504
- this.timer = setTimeout(() => r(_(
3554
+ this.timer = setTimeout(() => r(y(
3505
3555
  this.auth,
3506
3556
  "network-request-failed"
3507
3557
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
@@ -3517,7 +3567,7 @@ function se(n, e, t) {
3517
3567
  appName: n.name
3518
3568
  };
3519
3569
  t.email && (r.email = t.email), t.phoneNumber && (r.phoneNumber = t.phoneNumber);
3520
- const i = _(n, e, r);
3570
+ const i = y(n, e, r);
3521
3571
  return i.customData._tokenResponse = t, i;
3522
3572
  }
3523
3573
  /**
@@ -3537,10 +3587,10 @@ function se(n, e, t) {
3537
3587
  * limitations under the License.
3538
3588
  */
3539
3589
  async function $i(n, e) {
3540
- return z(n, "POST", "/v1/accounts:delete", e);
3590
+ return W(n, "POST", "/v1/accounts:delete", e);
3541
3591
  }
3542
3592
  async function sn(n, e) {
3543
- return z(n, "POST", "/v1/accounts:lookup", e);
3593
+ return W(n, "POST", "/v1/accounts:lookup", e);
3544
3594
  }
3545
3595
  /**
3546
3596
  * @license
@@ -3568,7 +3618,7 @@ function J(n) {
3568
3618
  }
3569
3619
  }
3570
3620
  async function Vi(n, e = !1) {
3571
- const t = W(n), r = await t.getIdToken(e), i = Je(r);
3621
+ const t = z(n), r = await t.getIdToken(e), i = Je(r);
3572
3622
  h(
3573
3623
  i && i.exp && i.auth_time && i.iat,
3574
3624
  t.auth,
@@ -3579,14 +3629,14 @@ async function Vi(n, e = !1) {
3579
3629
  return {
3580
3630
  claims: i,
3581
3631
  token: r,
3582
- authTime: J(Pe(i.auth_time)),
3583
- issuedAtTime: J(Pe(i.iat)),
3584
- expirationTime: J(Pe(i.exp)),
3632
+ authTime: J(Ne(i.auth_time)),
3633
+ issuedAtTime: J(Ne(i.iat)),
3634
+ expirationTime: J(Ne(i.exp)),
3585
3635
  signInProvider: a || null,
3586
3636
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
3587
3637
  };
3588
3638
  }
3589
- function Pe(n) {
3639
+ function Ne(n) {
3590
3640
  return Number(n) * 1e3;
3591
3641
  }
3592
3642
  function Je(n) {
@@ -3600,7 +3650,7 @@ function Je(n) {
3600
3650
  return ae("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
3601
3651
  }
3602
3652
  }
3603
- function _t(n) {
3653
+ function yt(n) {
3604
3654
  const e = Je(n);
3605
3655
  return h(
3606
3656
  e,
@@ -3660,7 +3710,7 @@ function ji({ code: n }) {
3660
3710
  * See the License for the specific language governing permissions and
3661
3711
  * limitations under the License.
3662
3712
  */
3663
- class Wi {
3713
+ class zi {
3664
3714
  constructor(e) {
3665
3715
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
3666
3716
  }
@@ -3722,7 +3772,7 @@ class Wi {
3722
3772
  * See the License for the specific language governing permissions and
3723
3773
  * limitations under the License.
3724
3774
  */
3725
- class He {
3775
+ class qe {
3726
3776
  constructor(e, t) {
3727
3777
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
3728
3778
  }
@@ -3755,7 +3805,7 @@ class He {
3755
3805
  * See the License for the specific language governing permissions and
3756
3806
  * limitations under the License.
3757
3807
  */
3758
- async function pe(n) {
3808
+ async function fe(n) {
3759
3809
  var e;
3760
3810
  const t = n.auth, r = await n.getIdToken(), i = await Q(n, sn(t, { idToken: r }));
3761
3811
  h(
@@ -3775,21 +3825,21 @@ async function pe(n) {
3775
3825
  phoneNumber: s.phoneNumber || null,
3776
3826
  tenantId: s.tenantId || null,
3777
3827
  providerData: c,
3778
- metadata: new He(s.createdAt, s.lastLoginAt),
3828
+ metadata: new qe(s.createdAt, s.lastLoginAt),
3779
3829
  isAnonymous: u
3780
3830
  };
3781
3831
  Object.assign(n, d);
3782
3832
  }
3783
- async function zi(n) {
3784
- const e = W(n);
3785
- await pe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
3833
+ async function Wi(n) {
3834
+ const e = z(n);
3835
+ await fe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
3786
3836
  }
3787
3837
  function Gi(n, e) {
3788
3838
  return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
3789
3839
  }
3790
3840
  function an(n) {
3791
3841
  return n.map((e) => {
3792
- var { providerId: t } = e, r = ze(e, ["providerId"]);
3842
+ var { providerId: t } = e, r = We(e, ["providerId"]);
3793
3843
  return {
3794
3844
  providerId: t,
3795
3845
  uid: r.rawId || "",
@@ -3838,7 +3888,7 @@ async function Ki(n, e) {
3838
3888
  };
3839
3889
  }
3840
3890
  async function Ji(n, e) {
3841
- return z(n, "POST", "/v2/accounts:revokeToken", _e(n, e));
3891
+ return W(n, "POST", "/v2/accounts:revokeToken", _e(n, e));
3842
3892
  }
3843
3893
  /**
3844
3894
  * @license
@@ -3877,7 +3927,7 @@ class q {
3877
3927
  "internal-error"
3878
3928
  /* AuthErrorCode.INTERNAL_ERROR */
3879
3929
  );
3880
- const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : _t(e.idToken);
3930
+ const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : yt(e.idToken);
3881
3931
  this.updateTokensAndExpiration(e.idToken, e.refreshToken, t);
3882
3932
  }
3883
3933
  updateFromIdToken(e) {
@@ -3886,7 +3936,7 @@ class q {
3886
3936
  "internal-error"
3887
3937
  /* AuthErrorCode.INTERNAL_ERROR */
3888
3938
  );
3889
- const t = _t(e);
3939
+ const t = yt(e);
3890
3940
  this.updateTokensAndExpiration(e, null, t);
3891
3941
  }
3892
3942
  async getToken(e, t = !1) {
@@ -3955,8 +4005,8 @@ function S(n, e) {
3955
4005
  }
3956
4006
  class I {
3957
4007
  constructor(e) {
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 He(s.createdAt || void 0, s.lastLoginAt || void 0);
4008
+ var { uid: t, auth: r, stsTokenManager: i } = e, s = We(e, ["uid", "auth", "stsTokenManager"]);
4009
+ this.providerId = "firebase", this.proactiveRefresh = new zi(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);
3960
4010
  }
3961
4011
  async getIdToken(e) {
3962
4012
  const t = await Q(this, this.stsTokenManager.getToken(this.auth, e));
@@ -3971,7 +4021,7 @@ class I {
3971
4021
  return Vi(this, e);
3972
4022
  }
3973
4023
  reload() {
3974
- return zi(this);
4024
+ return Wi(this);
3975
4025
  }
3976
4026
  _assign(e) {
3977
4027
  this !== e && (h(
@@ -4004,7 +4054,7 @@ class I {
4004
4054
  }
4005
4055
  async _updateTokensIfNecessary(e, t = !1) {
4006
4056
  let r = !1;
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);
4057
+ 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);
4008
4058
  }
4009
4059
  async delete() {
4010
4060
  if (b(this.auth.app))
@@ -4038,16 +4088,16 @@ class I {
4038
4088
  }
4039
4089
  static _fromJSON(e, t) {
4040
4090
  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, 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;
4091
+ 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;
4042
4092
  h(
4043
- we && st,
4093
+ Te && st,
4044
4094
  e,
4045
4095
  "internal-error"
4046
4096
  /* AuthErrorCode.INTERNAL_ERROR */
4047
4097
  );
4048
4098
  const Nn = q.fromJSON(this.name, st);
4049
4099
  h(
4050
- typeof we == "string",
4100
+ typeof Te == "string",
4051
4101
  e,
4052
4102
  "internal-error"
4053
4103
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -4061,9 +4111,9 @@ class I {
4061
4111
  e,
4062
4112
  "internal-error"
4063
4113
  /* AuthErrorCode.INTERNAL_ERROR */
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,
4114
+ ), S(m, e.name), S(x, e.name), S(et, e.name), S(we, e.name), S(tt, e.name), S(nt, e.name);
4115
+ const Ee = new I({
4116
+ uid: Te,
4067
4117
  auth: e,
4068
4118
  email: f,
4069
4119
  emailVerified: rt,
@@ -4076,7 +4126,7 @@ class I {
4076
4126
  createdAt: tt,
4077
4127
  lastLoginAt: nt
4078
4128
  });
4079
- return Te && Array.isArray(Te) && (ke.providerData = Te.map((On) => Object.assign({}, On))), Ie && (ke._redirectEventId = Ie), ke;
4129
+ return ke && Array.isArray(ke) && (Ee.providerData = ke.map((On) => Object.assign({}, On))), we && (Ee._redirectEventId = we), Ee;
4080
4130
  }
4081
4131
  /**
4082
4132
  * Initialize a User from an idToken server response
@@ -4092,7 +4142,7 @@ class I {
4092
4142
  stsTokenManager: i,
4093
4143
  isAnonymous: r
4094
4144
  });
4095
- return await pe(s), s;
4145
+ return await fe(s), s;
4096
4146
  }
4097
4147
  /**
4098
4148
  * Initialize a User from an idToken server response
@@ -4122,7 +4172,7 @@ class I {
4122
4172
  phoneNumber: i.phoneNumber || null,
4123
4173
  tenantId: i.tenantId || null,
4124
4174
  providerData: s,
4125
- metadata: new He(i.createdAt, i.lastLoginAt),
4175
+ metadata: new qe(i.createdAt, i.lastLoginAt),
4126
4176
  isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
4127
4177
  };
4128
4178
  return Object.assign(o, l), o;
@@ -4144,11 +4194,11 @@ class I {
4144
4194
  * See the License for the specific language governing permissions and
4145
4195
  * limitations under the License.
4146
4196
  */
4147
- const yt = /* @__PURE__ */ new Map();
4197
+ const _t = /* @__PURE__ */ new Map();
4148
4198
  function w(n) {
4149
4199
  E(n instanceof Function, "Expected a class definition");
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);
4200
+ let e = _t.get(n);
4201
+ return e ? (E(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), _t.set(n, e), e);
4152
4202
  }
4153
4203
  /**
4154
4204
  * @license
@@ -4453,7 +4503,7 @@ class Qi {
4453
4503
  * limitations under the License.
4454
4504
  */
4455
4505
  async function Zi(n, e = {}) {
4456
- return z(n, "GET", "/v2/passwordPolicy", _e(n, e));
4506
+ return W(n, "GET", "/v2/passwordPolicy", _e(n, e));
4457
4507
  }
4458
4508
  /**
4459
4509
  * @license
@@ -4647,7 +4697,7 @@ class ns {
4647
4697
  }
4648
4698
  async reloadAndSetCurrentUserOrClear(e) {
4649
4699
  try {
4650
- await pe(e);
4700
+ await fe(e);
4651
4701
  } catch (t) {
4652
4702
  if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
4653
4703
  return this.directlySetCurrentUser(null);
@@ -4663,7 +4713,7 @@ class ns {
4663
4713
  async updateCurrentUser(e) {
4664
4714
  if (b(this.app))
4665
4715
  return Promise.reject(D(this));
4666
- const t = e ? W(e) : null;
4716
+ const t = e ? z(e) : null;
4667
4717
  return t && h(
4668
4718
  t.auth.config.apiKey === this.config.apiKey,
4669
4719
  this,
@@ -4892,8 +4942,8 @@ class ns {
4892
4942
  return t != null && t.error && Mi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
4893
4943
  }
4894
4944
  }
4895
- function ye(n) {
4896
- return W(n);
4945
+ function be(n) {
4946
+ return z(n);
4897
4947
  }
4898
4948
  class It {
4899
4949
  constructor(e) {
@@ -4964,7 +5014,7 @@ function os(n, e) {
4964
5014
  const t = Gt(n, "auth");
4965
5015
  if (t.isInitialized()) {
4966
5016
  const i = t.getImmediate(), s = t.getOptions();
4967
- if (ue(s, e ?? {}))
5017
+ if (de(s, e ?? {}))
4968
5018
  return i;
4969
5019
  k(
4970
5020
  i,
@@ -4979,7 +5029,7 @@ function cs(n, e) {
4979
5029
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
4980
5030
  }
4981
5031
  function ls(n, e, t) {
4982
- const r = ye(n);
5032
+ const r = be(n);
4983
5033
  h(
4984
5034
  r._canInitEmulator,
4985
5035
  r,
@@ -4991,7 +5041,7 @@ function ls(n, e, t) {
4991
5041
  "invalid-emulator-scheme"
4992
5042
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
4993
5043
  );
4994
- const i = !1, s = _n(e), { host: a, port: c } = us(e), o = c === null ? "" : `:${c}`;
5044
+ const i = !1, s = yn(e), { host: a, port: c } = us(e), o = c === null ? "" : `:${c}`;
4995
5045
  r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
4996
5046
  host: a,
4997
5047
  port: c,
@@ -4999,12 +5049,12 @@ function ls(n, e, t) {
4999
5049
  options: Object.freeze({ disableWarnings: i })
5000
5050
  }), ds();
5001
5051
  }
5002
- function _n(n) {
5052
+ function yn(n) {
5003
5053
  const e = n.indexOf(":");
5004
5054
  return e < 0 ? "" : n.substr(0, e + 1);
5005
5055
  }
5006
5056
  function us(n) {
5007
- const e = _n(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
5057
+ const e = yn(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
5008
5058
  if (!t)
5009
5059
  return { host: "", port: null };
5010
5060
  const r = t[2].split("@").pop() || "", i = /^(\[[^\]]+\])(:|$)/.exec(r);
@@ -5045,7 +5095,7 @@ function ds() {
5045
5095
  * See the License for the specific language governing permissions and
5046
5096
  * limitations under the License.
5047
5097
  */
5048
- class yn {
5098
+ class _n {
5049
5099
  /** @internal */
5050
5100
  constructor(e, t) {
5051
5101
  this.providerId = e, this.signInMethod = t;
@@ -5107,7 +5157,7 @@ async function V(n, e) {
5107
5157
  * limitations under the License.
5108
5158
  */
5109
5159
  const hs = "http://localhost";
5110
- class B extends yn {
5160
+ class B extends _n {
5111
5161
  constructor() {
5112
5162
  super(...arguments), this.pendingToken = null;
5113
5163
  }
@@ -5141,7 +5191,7 @@ class B extends yn {
5141
5191
  * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
5142
5192
  */
5143
5193
  static fromJSON(e) {
5144
- const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = ze(t, ["providerId", "signInMethod"]);
5194
+ const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = We(t, ["providerId", "signInMethod"]);
5145
5195
  if (!r || !i)
5146
5196
  return null;
5147
5197
  const a = new B(r, i);
@@ -5607,10 +5657,10 @@ function Tt(n) {
5607
5657
  * See the License for the specific language governing permissions and
5608
5658
  * limitations under the License.
5609
5659
  */
5610
- class fe extends L {
5660
+ class me extends L {
5611
5661
  constructor(e, t, r, i) {
5612
5662
  var s;
5613
- super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, fe.prototype), this.customData = {
5663
+ super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, me.prototype), this.customData = {
5614
5664
  appName: e.name,
5615
5665
  tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
5616
5666
  _serverResponse: t.customData._serverResponse,
@@ -5618,12 +5668,12 @@ class fe extends L {
5618
5668
  };
5619
5669
  }
5620
5670
  static _fromErrorAndOperation(e, t, r, i) {
5621
- return new fe(e, t, r, i);
5671
+ return new me(e, t, r, i);
5622
5672
  }
5623
5673
  }
5624
5674
  function vn(n, e, t, r) {
5625
5675
  return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
5626
- throw s.code === "auth/multi-factor-auth-required" ? fe._fromErrorAndOperation(n, s, e, r) : s;
5676
+ throw s.code === "auth/multi-factor-auth-required" ? me._fromErrorAndOperation(n, s, e, r) : s;
5627
5677
  });
5628
5678
  }
5629
5679
  async function ps(n, e, t = !1) {
@@ -5738,22 +5788,22 @@ async function gs(n, e) {
5738
5788
  * See the License for the specific language governing permissions and
5739
5789
  * limitations under the License.
5740
5790
  */
5741
- async function _s(n, e) {
5791
+ async function ys(n, e) {
5742
5792
  if (b(n.app))
5743
5793
  return Promise.reject(D(n));
5744
- const t = ye(n), r = await gs(t, {
5794
+ const t = be(n), r = await gs(t, {
5745
5795
  token: e,
5746
5796
  returnSecureToken: !0
5747
5797
  }), i = await U._fromIdTokenResponse(t, "signIn", r);
5748
5798
  return await t._updateCurrentUser(i.user), i;
5749
5799
  }
5750
- function ys(n, e, t, r) {
5751
- return W(n).onIdTokenChanged(e, t, r);
5800
+ function _s(n, e, t, r) {
5801
+ return z(n).onIdTokenChanged(e, t, r);
5752
5802
  }
5753
5803
  function bs(n, e, t) {
5754
- return W(n).beforeAuthStateChanged(e, t);
5804
+ return z(n).beforeAuthStateChanged(e, t);
5755
5805
  }
5756
- const me = "__sak";
5806
+ const ge = "__sak";
5757
5807
  /**
5758
5808
  * @license
5759
5809
  * Copyright 2019 Google LLC
@@ -5776,7 +5826,7 @@ class In {
5776
5826
  }
5777
5827
  _isAvailable() {
5778
5828
  try {
5779
- return this.storage ? (this.storage.setItem(me, "1"), this.storage.removeItem(me), Promise.resolve(!0)) : Promise.resolve(!1);
5829
+ return this.storage ? (this.storage.setItem(ge, "1"), this.storage.removeItem(ge), Promise.resolve(!0)) : Promise.resolve(!1);
5780
5830
  } catch {
5781
5831
  return Promise.resolve(!1);
5782
5832
  }
@@ -5970,7 +6020,7 @@ function Ts(n) {
5970
6020
  * See the License for the specific language governing permissions and
5971
6021
  * limitations under the License.
5972
6022
  */
5973
- class be {
6023
+ class ve {
5974
6024
  constructor(e) {
5975
6025
  this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
5976
6026
  }
@@ -5984,7 +6034,7 @@ class be {
5984
6034
  const t = this.receivers.find((i) => i.isListeningto(e));
5985
6035
  if (t)
5986
6036
  return t;
5987
- const r = new be(e);
6037
+ const r = new ve(e);
5988
6038
  return this.receivers.push(r), r;
5989
6039
  }
5990
6040
  isListeningto(e) {
@@ -6038,7 +6088,7 @@ class be {
6038
6088
  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
6089
  }
6040
6090
  }
6041
- be.receivers = [];
6091
+ ve.receivers = [];
6042
6092
  /**
6043
6093
  * @license
6044
6094
  * Copyright 2020 Google LLC
@@ -6174,11 +6224,11 @@ class ks {
6174
6224
  * See the License for the specific language governing permissions and
6175
6225
  * limitations under the License.
6176
6226
  */
6177
- function y() {
6227
+ function _() {
6178
6228
  return window;
6179
6229
  }
6180
6230
  function Es(n) {
6181
- y().location.href = n;
6231
+ _().location.href = n;
6182
6232
  }
6183
6233
  /**
6184
6234
  * @license
@@ -6197,7 +6247,7 @@ function Es(n) {
6197
6247
  * limitations under the License.
6198
6248
  */
6199
6249
  function En() {
6200
- return typeof y().WorkerGlobalScope < "u" && typeof y().importScripts == "function";
6250
+ return typeof _().WorkerGlobalScope < "u" && typeof _().importScripts == "function";
6201
6251
  }
6202
6252
  async function Ss() {
6203
6253
  if (!(navigator != null && navigator.serviceWorker))
@@ -6231,7 +6281,7 @@ function Cs() {
6231
6281
  * See the License for the specific language governing permissions and
6232
6282
  * limitations under the License.
6233
6283
  */
6234
- const Sn = "firebaseLocalStorageDb", As = 1, ge = "firebaseLocalStorage", Rn = "fbase_key";
6284
+ const Sn = "firebaseLocalStorageDb", As = 1, ye = "firebaseLocalStorage", Rn = "fbase_key";
6235
6285
  class ie {
6236
6286
  constructor(e) {
6237
6287
  this.request = e;
@@ -6246,14 +6296,14 @@ class ie {
6246
6296
  });
6247
6297
  }
6248
6298
  }
6249
- function ve(n, e) {
6250
- return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
6299
+ function Ie(n, e) {
6300
+ return n.transaction([ye], e ? "readwrite" : "readonly").objectStore(ye);
6251
6301
  }
6252
6302
  function Ps() {
6253
6303
  const n = indexedDB.deleteDatabase(Sn);
6254
6304
  return new ie(n).toPromise();
6255
6305
  }
6256
- function qe() {
6306
+ function $e() {
6257
6307
  const n = indexedDB.open(Sn, As);
6258
6308
  return new Promise((e, t) => {
6259
6309
  n.addEventListener("error", () => {
@@ -6261,29 +6311,29 @@ function qe() {
6261
6311
  }), n.addEventListener("upgradeneeded", () => {
6262
6312
  const r = n.result;
6263
6313
  try {
6264
- r.createObjectStore(ge, { keyPath: Rn });
6314
+ r.createObjectStore(ye, { keyPath: Rn });
6265
6315
  } catch (i) {
6266
6316
  t(i);
6267
6317
  }
6268
6318
  }), n.addEventListener("success", async () => {
6269
6319
  const r = n.result;
6270
- r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ps(), e(await qe()));
6320
+ r.objectStoreNames.contains(ye) ? e(r) : (r.close(), await Ps(), e(await $e()));
6271
6321
  });
6272
6322
  });
6273
6323
  }
6274
6324
  async function kt(n, e, t) {
6275
- const r = ve(n, !0).put({
6325
+ const r = Ie(n, !0).put({
6276
6326
  [Rn]: e,
6277
6327
  value: t
6278
6328
  });
6279
6329
  return new ie(r).toPromise();
6280
6330
  }
6281
6331
  async function Ns(n, e) {
6282
- const t = ve(n, !1).get(e), r = await new ie(t).toPromise();
6332
+ const t = Ie(n, !1).get(e), r = await new ie(t).toPromise();
6283
6333
  return r === void 0 ? null : r.value;
6284
6334
  }
6285
6335
  function Et(n, e) {
6286
- const t = ve(n, !0).delete(e);
6336
+ const t = Ie(n, !0).delete(e);
6287
6337
  return new ie(t).toPromise();
6288
6338
  }
6289
6339
  const Os = 800, Ds = 3;
@@ -6294,7 +6344,7 @@ class Cn {
6294
6344
  });
6295
6345
  }
6296
6346
  async _openDb() {
6297
- return this.db ? this.db : (this.db = await qe(), this.db);
6347
+ return this.db ? this.db : (this.db = await $e(), this.db);
6298
6348
  }
6299
6349
  async _withRetries(e) {
6300
6350
  let t = 0;
@@ -6319,7 +6369,7 @@ class Cn {
6319
6369
  * As the worker we should listen to events from the main window.
6320
6370
  */
6321
6371
  async initializeReceiver() {
6322
- this.receiver = be._getInstance(Cs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
6372
+ this.receiver = ve._getInstance(Cs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
6323
6373
  keyProcessed: (await this._poll()).includes(t.key)
6324
6374
  })), this.receiver._subscribe("ping", async (e, t) => [
6325
6375
  "keyChanged"
@@ -6375,8 +6425,8 @@ class Cn {
6375
6425
  try {
6376
6426
  if (!indexedDB)
6377
6427
  return !1;
6378
- const e = await qe();
6379
- return await kt(e, me, "1"), await Et(e, me), !0;
6428
+ const e = await $e();
6429
+ return await kt(e, ge, "1"), await Et(e, ge), !0;
6380
6430
  } catch {
6381
6431
  }
6382
6432
  return !1;
@@ -6401,7 +6451,7 @@ class Cn {
6401
6451
  }
6402
6452
  async _poll() {
6403
6453
  const e = await this._withRetries((i) => {
6404
- const s = ve(i, !1).getAll();
6454
+ const s = Ie(i, !1).getAll();
6405
6455
  return new ie(s).toPromise();
6406
6456
  });
6407
6457
  if (!e)
@@ -6479,7 +6529,7 @@ function Ms(n, e) {
6479
6529
  * See the License for the specific language governing permissions and
6480
6530
  * limitations under the License.
6481
6531
  */
6482
- class Ze extends yn {
6532
+ class Ze extends _n {
6483
6533
  constructor(e) {
6484
6534
  super(
6485
6535
  "custom",
@@ -6655,7 +6705,7 @@ class F extends An {
6655
6705
  ), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
6656
6706
  this.reject(t);
6657
6707
  }), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
6658
- t || this.reject(_(
6708
+ t || this.reject(y(
6659
6709
  this.auth,
6660
6710
  "web-storage-unsupported"
6661
6711
  /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
@@ -6667,7 +6717,7 @@ class F extends An {
6667
6717
  return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
6668
6718
  }
6669
6719
  cancel() {
6670
- this.reject(_(
6720
+ this.reject(y(
6671
6721
  this.auth,
6672
6722
  "cancelled-popup-request"
6673
6723
  /* AuthErrorCode.EXPIRED_POPUP_REQUEST */
@@ -6682,7 +6732,7 @@ class F extends An {
6682
6732
  if (!((r = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || r === void 0) && r.closed) {
6683
6733
  this.pollId = window.setTimeout(
6684
6734
  () => {
6685
- this.pollId = null, this.reject(_(
6735
+ this.pollId = null, this.reject(y(
6686
6736
  this.auth,
6687
6737
  "popup-closed-by-user"
6688
6738
  /* AuthErrorCode.POPUP_CLOSED_BY_USER */
@@ -6763,7 +6813,7 @@ class qs extends An {
6763
6813
  }
6764
6814
  }
6765
6815
  async function $s(n, e) {
6766
- const t = Ws(e), r = js(n);
6816
+ const t = zs(e), r = js(n);
6767
6817
  if (!await r._isAvailable())
6768
6818
  return !1;
6769
6819
  const i = await r._get(t) === "true";
@@ -6775,13 +6825,13 @@ function Vs(n, e) {
6775
6825
  function js(n) {
6776
6826
  return w(n._redirectPersistence);
6777
6827
  }
6778
- function Ws(n) {
6828
+ function zs(n) {
6779
6829
  return oe(Hs, n.config.apiKey, n.name);
6780
6830
  }
6781
- async function zs(n, e, t = !1) {
6831
+ async function Ws(n, e, t = !1) {
6782
6832
  if (b(n.app))
6783
6833
  return Promise.reject(D(n));
6784
- const r = ye(n), i = Ms(r, e), a = await new qs(r, i, t).execute();
6834
+ const r = be(n), i = Ms(r, e), a = await new qs(r, i, t).execute();
6785
6835
  return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
6786
6836
  }
6787
6837
  /**
@@ -6823,7 +6873,7 @@ class Ks {
6823
6873
  var r;
6824
6874
  if (e.error && !Pn(e)) {
6825
6875
  const i = ((r = e.error.code) === null || r === void 0 ? void 0 : r.split("auth/")[1]) || "internal-error";
6826
- t.onError(_(this.auth, i));
6876
+ t.onError(y(this.auth, i));
6827
6877
  } else
6828
6878
  t.onAuthEvent(e);
6829
6879
  }
@@ -6873,7 +6923,7 @@ function Js(n) {
6873
6923
  * limitations under the License.
6874
6924
  */
6875
6925
  async function Ys(n, e = {}) {
6876
- return z(n, "GET", "/v1/projects", e);
6926
+ return W(n, "GET", "/v1/projects", e);
6877
6927
  }
6878
6928
  /**
6879
6929
  * @license
@@ -6909,7 +6959,7 @@ async function Zs(n) {
6909
6959
  );
6910
6960
  }
6911
6961
  function ea(n) {
6912
- const e = Fe(), { protocol: t, hostname: r } = new URL(e);
6962
+ const e = He(), { protocol: t, hostname: r } = new URL(e);
6913
6963
  if (n.startsWith("chrome-extension://")) {
6914
6964
  const a = new URL(n);
6915
6965
  return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
@@ -6939,7 +6989,7 @@ function ea(n) {
6939
6989
  */
6940
6990
  const ta = new ne(3e4, 6e4);
6941
6991
  function Rt() {
6942
- const n = y().___jsl;
6992
+ const n = _().___jsl;
6943
6993
  if (n != null && n.H) {
6944
6994
  for (const e of Object.keys(n.H))
6945
6995
  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)
@@ -6956,7 +7006,7 @@ function na(n) {
6956
7006
  e(gapi.iframes.getContext());
6957
7007
  },
6958
7008
  ontimeout: () => {
6959
- Rt(), t(_(
7009
+ Rt(), t(y(
6960
7010
  n,
6961
7011
  "network-request-failed"
6962
7012
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
@@ -6965,14 +7015,14 @@ function na(n) {
6965
7015
  timeout: ta.get()
6966
7016
  });
6967
7017
  }
6968
- if (!((i = (r = y().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
7018
+ if (!((i = (r = _().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
6969
7019
  e(gapi.iframes.getContext());
6970
- else if (!((s = y().gapi) === null || s === void 0) && s.load)
7020
+ else if (!((s = _().gapi) === null || s === void 0) && s.load)
6971
7021
  a();
6972
7022
  else {
6973
7023
  const c = as("iframefcb");
6974
- return y()[c] = () => {
6975
- gapi.load ? a() : t(_(
7024
+ return _()[c] = () => {
7025
+ gapi.load ? a() : t(y(
6976
7026
  n,
6977
7027
  "network-request-failed"
6978
7028
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
@@ -7036,7 +7086,7 @@ function la(n) {
7036
7086
  return s.length && (r.fw = s.join(",")), `${t}?${ee(r).slice(1)}`;
7037
7087
  }
7038
7088
  async function ua(n) {
7039
- const e = await ra(n), t = y().gapi;
7089
+ const e = await ra(n), t = _().gapi;
7040
7090
  return h(
7041
7091
  t,
7042
7092
  n,
@@ -7053,15 +7103,15 @@ async function ua(n) {
7053
7103
  // Prevent iframe from closing on mouse out.
7054
7104
  setHideOnLeave: !1
7055
7105
  });
7056
- const a = _(
7106
+ const a = y(
7057
7107
  n,
7058
7108
  "network-request-failed"
7059
7109
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
7060
- ), c = y().setTimeout(() => {
7110
+ ), c = _().setTimeout(() => {
7061
7111
  s(a);
7062
7112
  }, ia.get());
7063
7113
  function o() {
7064
- y().clearTimeout(c), i(r);
7114
+ _().clearTimeout(c), i(r);
7065
7115
  }
7066
7116
  r.ping(o).then(o, () => {
7067
7117
  s(a);
@@ -7114,7 +7164,7 @@ function ga(n, e, t, r = ha, i = pa) {
7114
7164
  t && (c = un(l) ? fa : t), cn(l) && (e = e || ma, o.scrollbars = "yes");
7115
7165
  const u = Object.entries(o).reduce((f, [m, x]) => `${f}${m}=${x},`, "");
7116
7166
  if (Yi(l) && c !== "_self")
7117
- return _a(e || "", c), new Ct(null);
7167
+ return ya(e || "", c), new Ct(null);
7118
7168
  const d = window.open(e || "", c, u);
7119
7169
  h(
7120
7170
  d,
@@ -7128,7 +7178,7 @@ function ga(n, e, t, r = ha, i = pa) {
7128
7178
  }
7129
7179
  return new Ct(d);
7130
7180
  }
7131
- function _a(n, e) {
7181
+ function ya(n, e) {
7132
7182
  const t = document.createElement("a");
7133
7183
  t.href = n, t.target = e;
7134
7184
  const r = document.createEvent("MouseEvent");
@@ -7150,7 +7200,7 @@ function _a(n, e) {
7150
7200
  * See the License for the specific language governing permissions and
7151
7201
  * limitations under the License.
7152
7202
  */
7153
- const ya = "__/auth/handler", ba = "emulator/auth/handler", va = encodeURIComponent("fac");
7203
+ const _a = "__/auth/handler", ba = "emulator/auth/handler", va = encodeURIComponent("fac");
7154
7204
  async function At(n, e, t, r, i, s) {
7155
7205
  h(
7156
7206
  n.config.authDomain,
@@ -7188,7 +7238,7 @@ async function At(n, e, t, r, i, s) {
7188
7238
  return `${Ia(n)}?${ee(c).slice(1)}${l}`;
7189
7239
  }
7190
7240
  function Ia({ config: n }) {
7191
- return n.emulator ? Ke(n, ba) : `https://${n.authDomain}/${ya}`;
7241
+ return n.emulator ? Ke(n, ba) : `https://${n.authDomain}/${_a}`;
7192
7242
  }
7193
7243
  /**
7194
7244
  * @license
@@ -7206,22 +7256,22 @@ function Ia({ config: n }) {
7206
7256
  * See the License for the specific language governing permissions and
7207
7257
  * limitations under the License.
7208
7258
  */
7209
- const Ne = "webStorageSupport";
7259
+ const Oe = "webStorageSupport";
7210
7260
  class wa {
7211
7261
  constructor() {
7212
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = zs, this._overrideRedirectResult = Vs;
7262
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = Ws, this._overrideRedirectResult = Vs;
7213
7263
  }
7214
7264
  // Wrapping in async even though we don't await anywhere in order
7215
7265
  // to make sure errors are raised as promise rejections
7216
7266
  async _openPopup(e, t, r, i) {
7217
7267
  var s;
7218
7268
  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, Fe(), i);
7269
+ const a = await At(e, t, r, He(), i);
7220
7270
  return ga(e, a, Qe());
7221
7271
  }
7222
7272
  async _openRedirect(e, t, r, i) {
7223
7273
  await this._originValidation(e);
7224
- const s = await At(e, t, r, Fe(), i);
7274
+ const s = await At(e, t, r, He(), i);
7225
7275
  return Es(s), new Promise(() => {
7226
7276
  });
7227
7277
  }
@@ -7249,9 +7299,9 @@ class wa {
7249
7299
  }), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
7250
7300
  }
7251
7301
  _isIframeWebStorageSupported(e, t) {
7252
- this.iframes[e._key()].send(Ne, { type: Ne }, (i) => {
7302
+ this.iframes[e._key()].send(Oe, { type: Oe }, (i) => {
7253
7303
  var s;
7254
- const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Ne];
7304
+ const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Oe];
7255
7305
  a !== void 0 && t(!!a), k(
7256
7306
  e,
7257
7307
  "internal-error"
@@ -7382,7 +7432,7 @@ function Sa(n) {
7382
7432
  })), Y(new j(
7383
7433
  "auth-internal",
7384
7434
  (e) => {
7385
- const t = ye(e.getProvider(
7435
+ const t = be(e.getProvider(
7386
7436
  "auth"
7387
7437
  /* _ComponentName.AUTH */
7388
7438
  ).getImmediate());
@@ -7441,7 +7491,7 @@ function Pa(n = wi()) {
7441
7491
  const s = new URL(r, location.origin);
7442
7492
  if (location.origin === s.origin) {
7443
7493
  const a = Aa(s.toString());
7444
- bs(t, a, () => a(t.currentUser)), ys(t, (c) => a(c));
7494
+ bs(t, a, () => a(t.currentUser)), _s(t, (c) => a(c));
7445
7495
  }
7446
7496
  }
7447
7497
  const i = cr("auth");
@@ -7456,7 +7506,7 @@ rs({
7456
7506
  return new Promise((e, t) => {
7457
7507
  const r = document.createElement("script");
7458
7508
  r.setAttribute("src", n), r.onload = e, r.onerror = (i) => {
7459
- const s = _(
7509
+ const s = y(
7460
7510
  "internal-error"
7461
7511
  /* AuthErrorCode.INTERNAL_ERROR */
7462
7512
  );
@@ -7475,7 +7525,7 @@ Sa(
7475
7525
  const Oa = Bn({
7476
7526
  history: Un(),
7477
7527
  routes: [
7478
- ...Ve,
7528
+ ...ue,
7479
7529
  ...K,
7480
7530
  {
7481
7531
  path: "/forbidden",
@@ -7484,7 +7534,7 @@ const Oa = Bn({
7484
7534
  }
7485
7535
  ]
7486
7536
  });
7487
- let Oe, De;
7537
+ let De, Le;
7488
7538
  Oa.beforeEach(async (n) => {
7489
7539
  const {
7490
7540
  sessionUser: e,
@@ -7492,10 +7542,10 @@ Oa.beforeEach(async (n) => {
7492
7542
  currentBusiness: r,
7493
7543
  readRestaurants: i,
7494
7544
  changeRestaurant: s
7495
- } = $e();
7545
+ } = Ve();
7496
7546
  if (n.name && n.name.startsWith("mf-payment-admin")) {
7497
7547
  if (!e.value) {
7498
- Oe || (Oe = new Promise((c) => {
7548
+ De || (De = new Promise((c) => {
7499
7549
  const o = G(e, (l) => {
7500
7550
  var u, d;
7501
7551
  l && (o(), c(
@@ -7503,12 +7553,12 @@ Oa.beforeEach(async (n) => {
7503
7553
  ));
7504
7554
  });
7505
7555
  }));
7506
- const a = await Oe;
7556
+ const a = await De;
7507
7557
  return a || { name: "mf-payment-forbidden" };
7508
7558
  }
7509
7559
  return !0;
7510
7560
  }
7511
- return !r.value || !t.value ? (De || (De = Promise.all([
7561
+ return !r.value || !t.value ? (Le || (Le = Promise.all([
7512
7562
  new Promise(async (a) => {
7513
7563
  const c = G(r, (o) => {
7514
7564
  o && (c(), a(!0));
@@ -7520,17 +7570,17 @@ Oa.beforeEach(async (n) => {
7520
7570
  }), o = await i();
7521
7571
  await s(o == null ? void 0 : o.at(0));
7522
7572
  })
7523
- ]).then((a) => !0)), De) : !0;
7573
+ ]).then((a) => !0)), Le) : !0;
7524
7574
  });
7525
7575
  const Da = /* @__PURE__ */ Lt({
7526
7576
  __name: "AppSidebar",
7527
7577
  setup(n) {
7528
- const e = $e(), t = xn(), { t: r } = Wn(), i = Hn(t.currentRoute.value.name);
7578
+ const e = Ve(), t = xn(), { t: r } = zn(), i = Hn(t.currentRoute.value.name);
7529
7579
  G(t.currentRoute, () => {
7530
7580
  let l = t.currentRoute.value.name;
7531
7581
  t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
7532
7582
  });
7533
- const s = Ve.map((l) => {
7583
+ const s = ue.map((l) => {
7534
7584
  var f, m;
7535
7585
  if (!((f = l.meta) != null && f.sidebarDisplay) || l.meta.region && !((m = l.meta.region) != null && m[e.currentCountry.value]) || l.meta.section)
7536
7586
  return;
@@ -7573,7 +7623,16 @@ const Da = /* @__PURE__ */ Lt({
7573
7623
  }).filter((l) => !!l), o = Dt(() => {
7574
7624
  var u, d;
7575
7625
  const l = [...s];
7576
- return ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
7626
+ return l.push({
7627
+ label: "",
7628
+ value: "divider",
7629
+ disabled: !0
7630
+ }), l.push({
7631
+ label: r("financing.title"),
7632
+ icon: "credit_score",
7633
+ value: "divider",
7634
+ disabled: !0
7635
+ }), l.push(...a(ue, "financing")), ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
7577
7636
  label: "",
7578
7637
  value: "divider",
7579
7638
  disabled: !0
@@ -7613,16 +7672,16 @@ const Da = /* @__PURE__ */ Lt({
7613
7672
  };
7614
7673
  }
7615
7674
  });
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" } };
7675
+ 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" } };
7617
7676
  const qa = /* @__PURE__ */ Lt({
7618
7677
  __name: "App",
7619
7678
  setup(n) {
7620
- const { state: e } = er(), t = $e(), r = Fn(), i = Kt(La.firebase);
7679
+ const { state: e } = er(), t = Ve(), r = Fn(), i = Kt(La.firebase);
7621
7680
  async function s() {
7622
7681
  const a = t.sessionUser.value;
7623
7682
  if (!a || !a.token) return;
7624
7683
  const c = await a.getCustomToken(), o = Pa(i);
7625
- await _s(o, c);
7684
+ await ys(o, c);
7626
7685
  }
7627
7686
  return s(), G(t.sessionUser, s), $n(() => {
7628
7687
  e.isIframe && parent.postMessage({ event: "ready" }, "*");
@@ -7652,7 +7711,7 @@ const qa = /* @__PURE__ */ Lt({
7652
7711
  },
7653
7712
  {}
7654
7713
  );
7655
- }, Va = [...K, ...Ve];
7714
+ }, Va = [...K, ...ue];
7656
7715
  export {
7657
7716
  mt as _,
7658
7717
  qa as a,