@feedmepos/mf-financing 0.0.28-dev → 0.0.31-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.
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createRouter as bn, createWebHistory as wn, useRoute as En } from "vue-router";
2
- import { computed as Tn, defineComponent as Sn, watch as An, onMounted as kn, resolveComponent as Cn, openBlock as Rn, createBlock as Pn, unref as On } from "vue";
1
+ import { createRouter as In, createWebHistory as wn, useRoute as En } from "vue-router";
2
+ import { computed as Tn, defineComponent as Sn, watch as An, onMounted as Pn, resolveComponent as kn, openBlock as Cn, createBlock as Rn, unref as On } from "vue";
3
3
  import { defineStore as Nn } from "pinia";
4
4
  import { useCoreStore as Dn } from "@feedmepos/mf-common";
5
5
  const Ln = {
@@ -70,7 +70,8 @@ const Ln = {
70
70
  business: "Business Information",
71
71
  businessDocument: "Business Document",
72
72
  documents: "Bank Statements",
73
- signature: "Declaration & Signature"
73
+ signature: "Declaration & Signature",
74
+ businessOwner: "Business Owner Information"
74
75
  },
75
76
  fields: {
76
77
  businessName: "Business Name",
@@ -81,6 +82,10 @@ const Ln = {
81
82
  businessAddressPlaceholder: "Enter your full business address",
82
83
  taxIdentificationNo: "Tax Identification No. (TIN)",
83
84
  taxIdentificationNoPlaceholder: "Enter your TIN number",
85
+ ownerName: "Owner Name",
86
+ ownerNamePlaceholder: "Enter owner's full name",
87
+ ownerPhoneNumber: "Owner Phone Number",
88
+ ownerPhoneNumberPlaceholder: "Enter phone number (e.g. +60123456789)",
84
89
  businessRegistration: "Business Registration",
85
90
  bankStatement: "Bank Statement",
86
91
  signature: "Signature",
@@ -94,7 +99,14 @@ const Ln = {
94
99
  bankStatementRequired: "Please upload at least one bank statement",
95
100
  signatureRequired: "Please provide your signature",
96
101
  submissionFailed: "Failed to submit application. Please try again.",
97
- noRestaurant: "No restaurant selected. Please select a restaurant first."
102
+ noRestaurant: "No restaurant selected. Please select a restaurant first.",
103
+ invalidPhoneNumber: "Please enter a valid phone number",
104
+ phoneNotVerified: "Please verify your phone number before submitting",
105
+ otpSendFailed: "Failed to send OTP. Please try again.",
106
+ otpVerifyFailed: "Failed to verify OTP. Please try again.",
107
+ otpRequired: "OTP is required",
108
+ phoneNumberRequired: "Phone number is required",
109
+ otpReqIdMissing: "OTP request ID is missing. Please resend."
98
110
  },
99
111
  buttons: {
100
112
  cancel: "Cancel",
@@ -106,6 +118,18 @@ const Ln = {
106
118
  message: "Are you sure you want to submit this financing application?",
107
119
  cancel: "Cancel",
108
120
  confirm: "Submit"
121
+ },
122
+ otp: {
123
+ send: "Send OTP",
124
+ verified: "Verified",
125
+ sent: "OTP sent successfully",
126
+ title: "Verify Phone Number",
127
+ message: "Please enter the 6-digit verification code sent to your phone.",
128
+ codeLabel: "Verification Code",
129
+ codePlaceholder: "Enter 6-digit code",
130
+ verify: "Verify",
131
+ cancel: "Cancel",
132
+ resend: "Resend OTP"
109
133
  }
110
134
  },
111
135
  upload: {
@@ -188,7 +212,8 @@ const Ln = {
188
212
  business: "商业信息",
189
213
  businessDocument: "商业文件",
190
214
  documents: "银行对账单",
191
- signature: "声明与签名"
215
+ signature: "声明与签名",
216
+ businessOwner: "商业所有者信息"
192
217
  },
193
218
  fields: {
194
219
  businessName: "商业名称",
@@ -199,6 +224,10 @@ const Ln = {
199
224
  businessAddressPlaceholder: "输入您的完整商业地址",
200
225
  taxIdentificationNo: "税务识别号 (TIN)",
201
226
  taxIdentificationNoPlaceholder: "输入您的税务识别号",
227
+ ownerName: "所有者姓名",
228
+ ownerNamePlaceholder: "输入所有者全名",
229
+ ownerPhoneNumber: "所有者电话号码",
230
+ ownerPhoneNumberPlaceholder: "输入电话号码(例如:+60123456789)",
202
231
  businessRegistration: "商业注册文件",
203
232
  bankStatement: "银行对账单",
204
233
  signature: "签名",
@@ -212,7 +241,14 @@ const Ln = {
212
241
  bankStatementRequired: "请上传至少一份银行对账单",
213
242
  signatureRequired: "请提供您的签名",
214
243
  submissionFailed: "提交申请失败。请重试。",
215
- noRestaurant: "未选择餐厅。请先选择一个餐厅。"
244
+ noRestaurant: "未选择餐厅。请先选择一个餐厅。",
245
+ invalidPhoneNumber: "请输入有效的电话号码",
246
+ phoneNotVerified: "提交前请先验证您的电话号码",
247
+ otpSendFailed: "发送验证码失败。请重试。",
248
+ otpVerifyFailed: "验证失败。请重试。",
249
+ otpRequired: "验证码为必填项",
250
+ phoneNumberRequired: "电话号码为必填项",
251
+ otpReqIdMissing: "验证码请求ID丢失。请重新发送。"
216
252
  },
217
253
  buttons: {
218
254
  cancel: "取消",
@@ -224,6 +260,18 @@ const Ln = {
224
260
  message: "您确定要提交此融资申请吗?",
225
261
  cancel: "取消",
226
262
  confirm: "提交"
263
+ },
264
+ otp: {
265
+ send: "发送验证码",
266
+ verified: "已验证",
267
+ sent: "验证码已发送",
268
+ title: "验证电话号码",
269
+ message: "请输入发送到您手机的6位验证码。",
270
+ codeLabel: "验证码",
271
+ codePlaceholder: "输入6位验证码",
272
+ verify: "验证",
273
+ cancel: "取消",
274
+ resend: "重新发送验证码"
227
275
  }
228
276
  },
229
277
  upload: {
@@ -246,7 +294,7 @@ const Ln = {
246
294
  {
247
295
  path: "/application",
248
296
  name: "mf-financing-application",
249
- component: () => import("./Application-BvrkS3zh.js"),
297
+ component: () => import("./Application-BVgJDkn5.js"),
250
298
  meta: {
251
299
  sidebarDisplay: "i18n:financing.routes.application"
252
300
  }
@@ -254,10 +302,10 @@ const Ln = {
254
302
  {
255
303
  path: "/application/submission",
256
304
  name: "mf-financing-application-submission",
257
- component: () => import("./Submission-C4Q0Ox4-.js")
305
+ component: () => import("./Submission-I062CM8r.js")
258
306
  }
259
307
  ];
260
- bn({
308
+ In({
261
309
  history: wn(),
262
310
  routes: Bn
263
311
  });
@@ -313,7 +361,7 @@ const At = function(n) {
313
361
  i < 128 ? e[t++] = i : i < 2048 ? (e[t++] = i >> 6 | 192, e[t++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < n.length && (n.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (n.charCodeAt(++r) & 1023), e[t++] = i >> 18 | 240, e[t++] = i >> 12 & 63 | 128, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128) : (e[t++] = i >> 12 | 224, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128);
314
362
  }
315
363
  return e;
316
- }, $n = function(n) {
364
+ }, Vn = function(n) {
317
365
  const e = [];
318
366
  let t = 0, r = 0;
319
367
  for (; t < n.length; ) {
@@ -332,7 +380,7 @@ const At = function(n) {
332
380
  }
333
381
  }
334
382
  return e.join("");
335
- }, kt = {
383
+ }, Pt = {
336
384
  /**
337
385
  * Maps bytes to characters.
338
386
  */
@@ -417,7 +465,7 @@ const At = function(n) {
417
465
  * @return string representing the decoded value.
418
466
  */
419
467
  decodeString(n, e) {
420
- return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : $n(this.decodeStringToByteArray(n, e));
468
+ return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : Vn(this.decodeStringToByteArray(n, e));
421
469
  },
422
470
  /**
423
471
  * Base64-decode a string.
@@ -444,7 +492,7 @@ const At = function(n) {
444
492
  ++i;
445
493
  const f = i < n.length ? t[n.charAt(i)] : 64;
446
494
  if (++i, s == null || c == null || l == null || f == null)
447
- throw new Hn();
495
+ throw new $n();
448
496
  const m = s << 2 | c >> 4;
449
497
  if (r.push(m), l !== 64) {
450
498
  const v = c << 4 & 240 | l >> 2;
@@ -469,19 +517,19 @@ const At = function(n) {
469
517
  }
470
518
  }
471
519
  };
472
- class Hn extends Error {
520
+ class $n extends Error {
473
521
  constructor() {
474
522
  super(...arguments), this.name = "DecodeBase64StringError";
475
523
  }
476
524
  }
477
- const Vn = function(n) {
525
+ const Hn = function(n) {
478
526
  const e = At(n);
479
- return kt.encodeByteArray(e, !0);
527
+ return Pt.encodeByteArray(e, !0);
528
+ }, kt = function(n) {
529
+ return Hn(n).replace(/\./g, "");
480
530
  }, Ct = function(n) {
481
- return Vn(n).replace(/\./g, "");
482
- }, Rt = function(n) {
483
531
  try {
484
- return kt.decodeString(n, !0);
532
+ return Pt.decodeString(n, !0);
485
533
  } catch (e) {
486
534
  console.error("base64Decode failed: ", e);
487
535
  }
@@ -534,7 +582,7 @@ const Wn = () => jn().__FIREBASE_DEFAULTS__, zn = () => {
534
582
  const n = process.env.__FIREBASE_DEFAULTS__;
535
583
  if (n)
536
584
  return JSON.parse(n);
537
- }, Gn = () => {
585
+ }, qn = () => {
538
586
  if (typeof document > "u")
539
587
  return;
540
588
  let n;
@@ -543,19 +591,19 @@ const Wn = () => jn().__FIREBASE_DEFAULTS__, zn = () => {
543
591
  } catch {
544
592
  return;
545
593
  }
546
- const e = n && Rt(n[1]);
594
+ const e = n && Ct(n[1]);
547
595
  return e && JSON.parse(e);
548
596
  }, Be = () => {
549
597
  try {
550
- return Wn() || zn() || Gn();
598
+ return Wn() || zn() || qn();
551
599
  } catch (n) {
552
600
  console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
553
601
  return;
554
602
  }
555
- }, qn = (n) => {
603
+ }, Gn = (n) => {
556
604
  var e, t;
557
605
  return (t = (e = Be()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
558
- }, Pt = () => {
606
+ }, Rt = () => {
559
607
  var n;
560
608
  return (n = Be()) === null || n === void 0 ? void 0 : n.config;
561
609
  }, Ot = (n) => {
@@ -1254,8 +1302,8 @@ function yr() {
1254
1302
  IDBCursor.prototype.continuePrimaryKey
1255
1303
  ]);
1256
1304
  }
1257
- const Dt = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap();
1258
- function Ir(n) {
1305
+ const Dt = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap();
1306
+ function br(n) {
1259
1307
  const e = new Promise((t, r) => {
1260
1308
  const i = () => {
1261
1309
  n.removeEventListener("success", s), n.removeEventListener("error", o);
@@ -1271,8 +1319,8 @@ function Ir(n) {
1271
1319
  }).catch(() => {
1272
1320
  }), Fe.set(e, n), e;
1273
1321
  }
1274
- function br(n) {
1275
- if (Pe.has(n))
1322
+ function Ir(n) {
1323
+ if (Re.has(n))
1276
1324
  return;
1277
1325
  const e = new Promise((t, r) => {
1278
1326
  const i = () => {
@@ -1284,13 +1332,13 @@ function br(n) {
1284
1332
  };
1285
1333
  n.addEventListener("complete", s), n.addEventListener("error", o), n.addEventListener("abort", o);
1286
1334
  });
1287
- Pe.set(n, e);
1335
+ Re.set(n, e);
1288
1336
  }
1289
1337
  let Oe = {
1290
1338
  get(n, e, t) {
1291
1339
  if (n instanceof IDBTransaction) {
1292
1340
  if (e === "done")
1293
- return Pe.get(n);
1341
+ return Re.get(n);
1294
1342
  if (e === "objectStoreNames")
1295
1343
  return n.objectStoreNames || Lt.get(n);
1296
1344
  if (e === "store")
@@ -1319,11 +1367,11 @@ function Er(n) {
1319
1367
  };
1320
1368
  }
1321
1369
  function Tr(n) {
1322
- return typeof n == "function" ? Er(n) : (n instanceof IDBTransaction && br(n), _r(n, vr()) ? new Proxy(n, Oe) : n);
1370
+ return typeof n == "function" ? Er(n) : (n instanceof IDBTransaction && Ir(n), _r(n, vr()) ? new Proxy(n, Oe) : n);
1323
1371
  }
1324
1372
  function O(n) {
1325
1373
  if (n instanceof IDBRequest)
1326
- return Ir(n);
1374
+ return br(n);
1327
1375
  if (Te.has(n))
1328
1376
  return Te.get(n);
1329
1377
  const e = Tr(n);
@@ -1344,13 +1392,13 @@ function Sr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
1344
1392
  }).catch(() => {
1345
1393
  }), c;
1346
1394
  }
1347
- const Ar = ["get", "getKey", "getAll", "getAllKeys", "count"], kr = ["put", "add", "delete", "clear"], Ae = /* @__PURE__ */ new Map();
1395
+ const Ar = ["get", "getKey", "getAll", "getAllKeys", "count"], Pr = ["put", "add", "delete", "clear"], Ae = /* @__PURE__ */ new Map();
1348
1396
  function rt(n, e) {
1349
1397
  if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
1350
1398
  return;
1351
1399
  if (Ae.get(e))
1352
1400
  return Ae.get(e);
1353
- const t = e.replace(/FromIndex$/, ""), r = e !== t, i = kr.includes(t);
1401
+ const t = e.replace(/FromIndex$/, ""), r = e !== t, i = Pr.includes(t);
1354
1402
  if (
1355
1403
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
1356
1404
  !(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Ar.includes(t))
@@ -1387,7 +1435,7 @@ wr((n) => ({
1387
1435
  * See the License for the specific language governing permissions and
1388
1436
  * limitations under the License.
1389
1437
  */
1390
- class Cr {
1438
+ class kr {
1391
1439
  constructor(e) {
1392
1440
  this.container = e;
1393
1441
  }
@@ -1395,7 +1443,7 @@ class Cr {
1395
1443
  // auth token refresh, and installations will send this string.
1396
1444
  getPlatformInfoString() {
1397
1445
  return this.container.getProviders().map((t) => {
1398
- if (Rr(t)) {
1446
+ if (Cr(t)) {
1399
1447
  const r = t.getImmediate();
1400
1448
  return `${r.library}/${r.version}`;
1401
1449
  } else
@@ -1403,7 +1451,7 @@ class Cr {
1403
1451
  }).filter((t) => t).join(" ");
1404
1452
  }
1405
1453
  }
1406
- function Rr(n) {
1454
+ function Cr(n) {
1407
1455
  const e = n.getComponent();
1408
1456
  return (e == null ? void 0 : e.type) === "VERSION";
1409
1457
  }
@@ -1424,7 +1472,7 @@ const Ne = "@firebase/app", it = "0.10.13";
1424
1472
  * See the License for the specific language governing permissions and
1425
1473
  * limitations under the License.
1426
1474
  */
1427
- const E = new Nt("@firebase/app"), Pr = "@firebase/app-compat", Or = "@firebase/analytics-compat", Nr = "@firebase/analytics", Dr = "@firebase/app-check-compat", Lr = "@firebase/app-check", Mr = "@firebase/auth", Ur = "@firebase/auth-compat", xr = "@firebase/database", Br = "@firebase/data-connect", Fr = "@firebase/database-compat", $r = "@firebase/functions", Hr = "@firebase/functions-compat", Vr = "@firebase/installations", jr = "@firebase/installations-compat", Wr = "@firebase/messaging", zr = "@firebase/messaging-compat", Gr = "@firebase/performance", qr = "@firebase/performance-compat", Kr = "@firebase/remote-config", Jr = "@firebase/remote-config-compat", Yr = "@firebase/storage", Xr = "@firebase/storage-compat", Qr = "@firebase/firestore", Zr = "@firebase/vertexai-preview", ei = "@firebase/firestore-compat", ti = "firebase", ni = "10.14.1";
1475
+ const E = new Nt("@firebase/app"), Rr = "@firebase/app-compat", Or = "@firebase/analytics-compat", Nr = "@firebase/analytics", Dr = "@firebase/app-check-compat", Lr = "@firebase/app-check", Mr = "@firebase/auth", Ur = "@firebase/auth-compat", xr = "@firebase/database", Br = "@firebase/data-connect", Fr = "@firebase/database-compat", Vr = "@firebase/functions", $r = "@firebase/functions-compat", Hr = "@firebase/installations", jr = "@firebase/installations-compat", Wr = "@firebase/messaging", zr = "@firebase/messaging-compat", qr = "@firebase/performance", Gr = "@firebase/performance-compat", Kr = "@firebase/remote-config", Jr = "@firebase/remote-config-compat", Yr = "@firebase/storage", Xr = "@firebase/storage-compat", Qr = "@firebase/firestore", Zr = "@firebase/vertexai-preview", ei = "@firebase/firestore-compat", ti = "firebase", ni = "10.14.1";
1428
1476
  /**
1429
1477
  * @license
1430
1478
  * Copyright 2019 Google LLC
@@ -1443,7 +1491,7 @@ const E = new Nt("@firebase/app"), Pr = "@firebase/app-compat", Or = "@firebase/
1443
1491
  */
1444
1492
  const De = "[DEFAULT]", ri = {
1445
1493
  [Ne]: "fire-core",
1446
- [Pr]: "fire-core-compat",
1494
+ [Rr]: "fire-core-compat",
1447
1495
  [Nr]: "fire-analytics",
1448
1496
  [Or]: "fire-analytics-compat",
1449
1497
  [Lr]: "fire-app-check",
@@ -1453,14 +1501,14 @@ const De = "[DEFAULT]", ri = {
1453
1501
  [xr]: "fire-rtdb",
1454
1502
  [Br]: "fire-data-connect",
1455
1503
  [Fr]: "fire-rtdb-compat",
1456
- [$r]: "fire-fn",
1457
- [Hr]: "fire-fn-compat",
1458
- [Vr]: "fire-iid",
1504
+ [Vr]: "fire-fn",
1505
+ [$r]: "fire-fn-compat",
1506
+ [Hr]: "fire-iid",
1459
1507
  [jr]: "fire-iid-compat",
1460
1508
  [Wr]: "fire-fcm",
1461
1509
  [zr]: "fire-fcm-compat",
1462
- [Gr]: "fire-perf",
1463
- [qr]: "fire-perf-compat",
1510
+ [qr]: "fire-perf",
1511
+ [Gr]: "fire-perf-compat",
1464
1512
  [Kr]: "fire-rc",
1465
1513
  [Jr]: "fire-rc-compat",
1466
1514
  [Yr]: "fire-gcs",
@@ -1628,7 +1676,7 @@ function Ut(n, e = {}) {
1628
1676
  throw N.create("bad-app-name", {
1629
1677
  appName: String(i)
1630
1678
  });
1631
- if (t || (t = Pt()), !t)
1679
+ if (t || (t = Rt()), !t)
1632
1680
  throw N.create(
1633
1681
  "no-options"
1634
1682
  /* AppError.NO_OPTIONS */
@@ -1647,13 +1695,13 @@ function Ut(n, e = {}) {
1647
1695
  }
1648
1696
  function ai(n = De) {
1649
1697
  const e = le.get(n);
1650
- if (!e && n === De && Pt())
1698
+ if (!e && n === De && Rt())
1651
1699
  return Ut();
1652
1700
  if (!e)
1653
1701
  throw N.create("no-app", { appName: n });
1654
1702
  return e;
1655
1703
  }
1656
- function $(n, e, t) {
1704
+ function V(n, e, t) {
1657
1705
  var r;
1658
1706
  let i = (r = ri[n]) !== null && r !== void 0 ? r : n;
1659
1707
  t && (i += `-${t}`);
@@ -1689,9 +1737,9 @@ function $(n, e, t) {
1689
1737
  * limitations under the License.
1690
1738
  */
1691
1739
  const ci = "firebase-heartbeat-database", li = 1, J = "firebase-heartbeat-store";
1692
- let ke = null;
1740
+ let Pe = null;
1693
1741
  function xt() {
1694
- return ke || (ke = Sr(ci, li, {
1742
+ return Pe || (Pe = Sr(ci, li, {
1695
1743
  upgrade: (n, e) => {
1696
1744
  switch (e) {
1697
1745
  case 0:
@@ -1706,7 +1754,7 @@ function xt() {
1706
1754
  throw N.create("idb-open", {
1707
1755
  originalErrorMessage: n.message
1708
1756
  });
1709
- })), ke;
1757
+ })), Pe;
1710
1758
  }
1711
1759
  async function ui(n) {
1712
1760
  try {
@@ -1795,7 +1843,7 @@ class fi {
1795
1843
  try {
1796
1844
  if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
1797
1845
  return "";
1798
- const t = at(), { heartbeatsToSend: r, unsentEntries: i } = pi(this._heartbeatsCache.heartbeats), s = Ct(JSON.stringify({ version: 2, heartbeats: r }));
1846
+ const t = at(), { heartbeatsToSend: r, unsentEntries: i } = pi(this._heartbeatsCache.heartbeats), s = kt(JSON.stringify({ version: 2, heartbeats: r }));
1799
1847
  return this._heartbeatsCache.lastSentHeartbeatDate = t, i.length > 0 ? (this._heartbeatsCache.heartbeats = i, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), s;
1800
1848
  } catch (t) {
1801
1849
  return E.warn(t), "";
@@ -1875,7 +1923,7 @@ class mi {
1875
1923
  }
1876
1924
  }
1877
1925
  function ct(n) {
1878
- return Ct(
1926
+ return kt(
1879
1927
  // heartbeatsCache wrapper properties
1880
1928
  JSON.stringify({ version: 2, heartbeats: n })
1881
1929
  ).length;
@@ -1899,7 +1947,7 @@ function ct(n) {
1899
1947
  function gi(n) {
1900
1948
  K(new W(
1901
1949
  "platform-logger",
1902
- (e) => new Cr(e),
1950
+ (e) => new kr(e),
1903
1951
  "PRIVATE"
1904
1952
  /* ComponentType.PRIVATE */
1905
1953
  )), K(new W(
@@ -1907,7 +1955,7 @@ function gi(n) {
1907
1955
  (e) => new fi(e),
1908
1956
  "PRIVATE"
1909
1957
  /* ComponentType.PRIVATE */
1910
- )), $(Ne, it, n), $(Ne, it, "esm2017"), $("fire-js", "");
1958
+ )), V(Ne, it, n), V(Ne, it, "esm2017"), V("fire-js", "");
1911
1959
  }
1912
1960
  gi("");
1913
1961
  var _i = "firebase", vi = "10.14.1";
@@ -1927,8 +1975,8 @@ var _i = "firebase", vi = "10.14.1";
1927
1975
  * See the License for the specific language governing permissions and
1928
1976
  * limitations under the License.
1929
1977
  */
1930
- $(_i, vi, "app");
1931
- function $e(n, e) {
1978
+ V(_i, vi, "app");
1979
+ function Ve(n, e) {
1932
1980
  var t = {};
1933
1981
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
1934
1982
  if (n != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1941,7 +1989,7 @@ function Ft() {
1941
1989
  "dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
1942
1990
  };
1943
1991
  }
1944
- const yi = Ft, $t = new X("auth", "Firebase", Ft());
1992
+ const yi = Ft, Vt = new X("auth", "Firebase", Ft());
1945
1993
  /**
1946
1994
  * @license
1947
1995
  * Copyright 2020 Google LLC
@@ -1959,7 +2007,7 @@ const yi = Ft, $t = new X("auth", "Firebase", Ft());
1959
2007
  * limitations under the License.
1960
2008
  */
1961
2009
  const ue = new Nt("@firebase/auth");
1962
- function Ii(n, ...e) {
2010
+ function bi(n, ...e) {
1963
2011
  ue.logLevel <= h.WARN && ue.warn(`Auth (${Z}): ${n}`, ...e);
1964
2012
  }
1965
2013
  function ie(n, ...e) {
@@ -1982,37 +2030,37 @@ function ie(n, ...e) {
1982
2030
  * limitations under the License.
1983
2031
  */
1984
2032
  function T(n, ...e) {
1985
- throw He(n, ...e);
2033
+ throw $e(n, ...e);
1986
2034
  }
1987
2035
  function g(n, ...e) {
1988
- return He(n, ...e);
2036
+ return $e(n, ...e);
1989
2037
  }
1990
- function Ht(n, e, t) {
2038
+ function $t(n, e, t) {
1991
2039
  const r = Object.assign(Object.assign({}, yi()), { [e]: t });
1992
2040
  return new X("auth", "Firebase", r).create(e, {
1993
2041
  appName: n.name
1994
2042
  });
1995
2043
  }
1996
2044
  function D(n) {
1997
- return Ht(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
2045
+ return $t(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
1998
2046
  }
1999
- function He(n, ...e) {
2047
+ function $e(n, ...e) {
2000
2048
  if (typeof n != "string") {
2001
2049
  const t = e[0], r = [...e.slice(1)];
2002
2050
  return r[0] && (r[0].appName = n.name), n._errorFactory.create(t, ...r);
2003
2051
  }
2004
- return $t.create(n, ...e);
2052
+ return Vt.create(n, ...e);
2005
2053
  }
2006
2054
  function u(n, e, ...t) {
2007
2055
  if (!n)
2008
- throw He(e, ...t);
2056
+ throw $e(e, ...t);
2009
2057
  }
2010
- function I(n) {
2058
+ function b(n) {
2011
2059
  const e = "INTERNAL ASSERTION FAILED: " + n;
2012
2060
  throw ie(e), new Error(e);
2013
2061
  }
2014
2062
  function S(n, e) {
2015
- n || I(e);
2063
+ n || b(e);
2016
2064
  }
2017
2065
  /**
2018
2066
  * @license
@@ -2034,7 +2082,7 @@ function Me() {
2034
2082
  var n;
2035
2083
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
2036
2084
  }
2037
- function bi() {
2085
+ function Ii() {
2038
2086
  return lt() === "http:" || lt() === "https:";
2039
2087
  }
2040
2088
  function lt() {
@@ -2063,7 +2111,7 @@ function wi() {
2063
2111
  // navigator.onLine behavior unless cordova-plugin-network-information is
2064
2112
  // installed which overwrites the native navigator.onLine value and
2065
2113
  // defines navigator.connection.
2066
- (bi() || Xn() || "connection" in navigator) ? navigator.onLine : !0;
2114
+ (Ii() || Xn() || "connection" in navigator) ? navigator.onLine : !0;
2067
2115
  }
2068
2116
  function Ei() {
2069
2117
  if (typeof navigator > "u")
@@ -2117,7 +2165,7 @@ class ee {
2117
2165
  * See the License for the specific language governing permissions and
2118
2166
  * limitations under the License.
2119
2167
  */
2120
- function Ve(n, e) {
2168
+ function He(n, e) {
2121
2169
  S(n.emulator, "Emulator should always be set here");
2122
2170
  const { url: t } = n.emulator;
2123
2171
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
@@ -2138,7 +2186,7 @@ function Ve(n, e) {
2138
2186
  * See the License for the specific language governing permissions and
2139
2187
  * limitations under the License.
2140
2188
  */
2141
- class Vt {
2189
+ class Ht {
2142
2190
  static initialize(e, t, r) {
2143
2191
  this.fetchImpl = e, t && (this.headersImpl = t), r && (this.responseImpl = r);
2144
2192
  }
@@ -2151,7 +2199,7 @@ class Vt {
2151
2199
  return globalThis.fetch;
2152
2200
  if (typeof fetch < "u")
2153
2201
  return fetch;
2154
- I("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2202
+ b("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2155
2203
  }
2156
2204
  static headers() {
2157
2205
  if (this.headersImpl)
@@ -2162,7 +2210,7 @@ class Vt {
2162
2210
  return globalThis.Headers;
2163
2211
  if (typeof Headers < "u")
2164
2212
  return Headers;
2165
- I("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2213
+ b("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2166
2214
  }
2167
2215
  static response() {
2168
2216
  if (this.responseImpl)
@@ -2173,7 +2221,7 @@ class Vt {
2173
2221
  return globalThis.Response;
2174
2222
  if (typeof Response < "u")
2175
2223
  return Response;
2176
- I("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2224
+ b("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
2177
2225
  }
2178
2226
  }
2179
2227
  /**
@@ -2287,7 +2335,7 @@ const Si = new ee(3e4, 6e4);
2287
2335
  function me(n, e) {
2288
2336
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
2289
2337
  }
2290
- async function G(n, e, t, r, i = {}) {
2338
+ async function q(n, e, t, r, i = {}) {
2291
2339
  return jt(n, i, async () => {
2292
2340
  let s = {}, o = {};
2293
2341
  r && (e === "GET" ? o = r : s = {
@@ -2305,7 +2353,7 @@ async function G(n, e, t, r, i = {}) {
2305
2353
  method: e,
2306
2354
  headers: a
2307
2355
  }, s);
2308
- return Yn() || (l.referrerPolicy = "no-referrer"), Vt.fetch()(zt(n, n.config.apiHost, t, c), l);
2356
+ return Yn() || (l.referrerPolicy = "no-referrer"), Ht.fetch()(zt(n, n.config.apiHost, t, c), l);
2309
2357
  });
2310
2358
  }
2311
2359
  async function jt(n, e, t) {
@@ -2332,7 +2380,7 @@ async function jt(n, e, t) {
2332
2380
  throw re(n, "user-disabled", o);
2333
2381
  const d = r[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
2334
2382
  if (l)
2335
- throw Ht(n, d, l);
2383
+ throw $t(n, d, l);
2336
2384
  T(n, d);
2337
2385
  }
2338
2386
  } catch (i) {
@@ -2342,14 +2390,14 @@ async function jt(n, e, t) {
2342
2390
  }
2343
2391
  }
2344
2392
  async function Wt(n, e, t, r, i = {}) {
2345
- const s = await G(n, e, t, r, i);
2393
+ const s = await q(n, e, t, r, i);
2346
2394
  return "mfaPendingCredential" in s && T(n, "multi-factor-auth-required", {
2347
2395
  _serverResponse: s
2348
2396
  }), s;
2349
2397
  }
2350
2398
  function zt(n, e, t, r) {
2351
2399
  const i = `${e}${t}?${r}`;
2352
- return n.config.emulator ? Ve(n.config, i) : `${n.config.apiScheme}://${i}`;
2400
+ return n.config.emulator ? He(n.config, i) : `${n.config.apiScheme}://${i}`;
2353
2401
  }
2354
2402
  class Ai {
2355
2403
  constructor(e) {
@@ -2389,11 +2437,11 @@ function re(n, e, t) {
2389
2437
  * See the License for the specific language governing permissions and
2390
2438
  * limitations under the License.
2391
2439
  */
2392
- async function ki(n, e) {
2393
- return G(n, "POST", "/v1/accounts:delete", e);
2440
+ async function Pi(n, e) {
2441
+ return q(n, "POST", "/v1/accounts:delete", e);
2394
2442
  }
2395
- async function Gt(n, e) {
2396
- return G(n, "POST", "/v1/accounts:lookup", e);
2443
+ async function qt(n, e) {
2444
+ return q(n, "POST", "/v1/accounts:lookup", e);
2397
2445
  }
2398
2446
  /**
2399
2447
  * @license
@@ -2411,7 +2459,7 @@ async function Gt(n, e) {
2411
2459
  * See the License for the specific language governing permissions and
2412
2460
  * limitations under the License.
2413
2461
  */
2414
- function q(n) {
2462
+ function G(n) {
2415
2463
  if (n)
2416
2464
  try {
2417
2465
  const e = new Date(Number(n));
@@ -2420,7 +2468,7 @@ function q(n) {
2420
2468
  } catch {
2421
2469
  }
2422
2470
  }
2423
- async function Ci(n, e = !1) {
2471
+ async function ki(n, e = !1) {
2424
2472
  const t = z(n), r = await t.getIdToken(e), i = je(r);
2425
2473
  u(
2426
2474
  i && i.exp && i.auth_time && i.iat,
@@ -2432,14 +2480,14 @@ async function Ci(n, e = !1) {
2432
2480
  return {
2433
2481
  claims: i,
2434
2482
  token: r,
2435
- authTime: q(Ce(i.auth_time)),
2436
- issuedAtTime: q(Ce(i.iat)),
2437
- expirationTime: q(Ce(i.exp)),
2483
+ authTime: G(ke(i.auth_time)),
2484
+ issuedAtTime: G(ke(i.iat)),
2485
+ expirationTime: G(ke(i.exp)),
2438
2486
  signInProvider: o || null,
2439
2487
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
2440
2488
  };
2441
2489
  }
2442
- function Ce(n) {
2490
+ function ke(n) {
2443
2491
  return Number(n) * 1e3;
2444
2492
  }
2445
2493
  function je(n) {
@@ -2447,7 +2495,7 @@ function je(n) {
2447
2495
  if (e === void 0 || t === void 0 || r === void 0)
2448
2496
  return ie("JWT malformed, contained fewer than 3 sections"), null;
2449
2497
  try {
2450
- const i = Rt(t);
2498
+ const i = Ct(t);
2451
2499
  return i ? JSON.parse(i) : (ie("Failed to decode base64 JWT payload"), null);
2452
2500
  } catch (i) {
2453
2501
  return ie("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
@@ -2491,10 +2539,10 @@ async function Y(n, e, t = !1) {
2491
2539
  try {
2492
2540
  return await e;
2493
2541
  } catch (r) {
2494
- throw r instanceof L && Ri(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2542
+ throw r instanceof L && Ci(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2495
2543
  }
2496
2544
  }
2497
- function Ri({ code: n }) {
2545
+ function Ci({ code: n }) {
2498
2546
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
2499
2547
  }
2500
2548
  /**
@@ -2513,7 +2561,7 @@ function Ri({ code: n }) {
2513
2561
  * See the License for the specific language governing permissions and
2514
2562
  * limitations under the License.
2515
2563
  */
2516
- class Pi {
2564
+ class Ri {
2517
2565
  constructor(e) {
2518
2566
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
2519
2567
  }
@@ -2580,7 +2628,7 @@ class Ue {
2580
2628
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
2581
2629
  }
2582
2630
  _initializeTime() {
2583
- this.lastSignInTime = q(this.lastLoginAt), this.creationTime = q(this.createdAt);
2631
+ this.lastSignInTime = G(this.lastLoginAt), this.creationTime = G(this.createdAt);
2584
2632
  }
2585
2633
  _copy(e) {
2586
2634
  this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
@@ -2610,7 +2658,7 @@ class Ue {
2610
2658
  */
2611
2659
  async function de(n) {
2612
2660
  var e;
2613
- const t = n.auth, r = await n.getIdToken(), i = await Y(n, Gt(t, { idToken: r }));
2661
+ const t = n.auth, r = await n.getIdToken(), i = await Y(n, qt(t, { idToken: r }));
2614
2662
  u(
2615
2663
  i == null ? void 0 : i.users.length,
2616
2664
  t,
@@ -2619,7 +2667,7 @@ async function de(n) {
2619
2667
  );
2620
2668
  const s = i.users[0];
2621
2669
  n._notifyReloadListener(s);
2622
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? qt(s.providerUserInfo) : [], c = Ni(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, f = {
2670
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Gt(s.providerUserInfo) : [], c = Ni(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, f = {
2623
2671
  uid: s.localId,
2624
2672
  displayName: s.displayName || null,
2625
2673
  photoURL: s.photoUrl || null,
@@ -2640,9 +2688,9 @@ async function Oi(n) {
2640
2688
  function Ni(n, e) {
2641
2689
  return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
2642
2690
  }
2643
- function qt(n) {
2691
+ function Gt(n) {
2644
2692
  return n.map((e) => {
2645
- var { providerId: t } = e, r = $e(e, ["providerId"]);
2693
+ var { providerId: t } = e, r = Ve(e, ["providerId"]);
2646
2694
  return {
2647
2695
  providerId: t,
2648
2696
  uid: r.rawId || "",
@@ -2678,7 +2726,7 @@ async function Di(n, e) {
2678
2726
  return c[
2679
2727
  "Content-Type"
2680
2728
  /* HttpHeader.CONTENT_TYPE */
2681
- ] = "application/x-www-form-urlencoded", Vt.fetch()(o, {
2729
+ ] = "application/x-www-form-urlencoded", Ht.fetch()(o, {
2682
2730
  method: "POST",
2683
2731
  headers: c,
2684
2732
  body: r
@@ -2691,7 +2739,7 @@ async function Di(n, e) {
2691
2739
  };
2692
2740
  }
2693
2741
  async function Li(n, e) {
2694
- return G(n, "POST", "/v2/accounts:revokeToken", me(n, e));
2742
+ return q(n, "POST", "/v2/accounts:revokeToken", me(n, e));
2695
2743
  }
2696
2744
  /**
2697
2745
  * @license
@@ -2709,7 +2757,7 @@ async function Li(n, e) {
2709
2757
  * See the License for the specific language governing permissions and
2710
2758
  * limitations under the License.
2711
2759
  */
2712
- class H {
2760
+ class $ {
2713
2761
  constructor() {
2714
2762
  this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
2715
2763
  }
@@ -2761,7 +2809,7 @@ class H {
2761
2809
  this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
2762
2810
  }
2763
2811
  static fromJSON(e, t) {
2764
- const { refreshToken: r, accessToken: i, expirationTime: s } = t, o = new H();
2812
+ const { refreshToken: r, accessToken: i, expirationTime: s } = t, o = new $();
2765
2813
  return r && (u(typeof r == "string", "internal-error", {
2766
2814
  appName: e
2767
2815
  }), o.refreshToken = r), i && (u(typeof i == "string", "internal-error", {
@@ -2781,10 +2829,10 @@ class H {
2781
2829
  this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
2782
2830
  }
2783
2831
  _clone() {
2784
- return Object.assign(new H(), this.toJSON());
2832
+ return Object.assign(new $(), this.toJSON());
2785
2833
  }
2786
2834
  _performRefresh() {
2787
- return I("not implemented");
2835
+ return b("not implemented");
2788
2836
  }
2789
2837
  }
2790
2838
  /**
@@ -2806,10 +2854,10 @@ class H {
2806
2854
  function A(n, e) {
2807
2855
  u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
2808
2856
  }
2809
- class b {
2857
+ class I {
2810
2858
  constructor(e) {
2811
- var { uid: t, auth: r, stsTokenManager: i } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
2812
- this.providerId = "firebase", this.proactiveRefresh = new Pi(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 Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
2859
+ var { uid: t, auth: r, stsTokenManager: i } = e, s = Ve(e, ["uid", "auth", "stsTokenManager"]);
2860
+ this.providerId = "firebase", this.proactiveRefresh = new Ri(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 Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
2813
2861
  }
2814
2862
  async getIdToken(e) {
2815
2863
  const t = await Y(this, this.stsTokenManager.getToken(this.auth, e));
@@ -2821,7 +2869,7 @@ class b {
2821
2869
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
2822
2870
  }
2823
2871
  getIdTokenResult(e) {
2824
- return Ci(this, e);
2872
+ return ki(this, e);
2825
2873
  }
2826
2874
  reload() {
2827
2875
  return Oi(this);
@@ -2835,7 +2883,7 @@ class b {
2835
2883
  ), this.displayName = e.displayName, this.photoURL = e.photoURL, this.email = e.email, this.emailVerified = e.emailVerified, this.phoneNumber = e.phoneNumber, this.isAnonymous = e.isAnonymous, this.tenantId = e.tenantId, this.providerData = e.providerData.map((t) => Object.assign({}, t)), this.metadata._copy(e.metadata), this.stsTokenManager._assign(e.stsTokenManager));
2836
2884
  }
2837
2885
  _clone(e) {
2838
- const t = new b(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
2886
+ const t = new I(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
2839
2887
  return t.metadata._copy(this.metadata), t;
2840
2888
  }
2841
2889
  _onReload(e) {
@@ -2863,7 +2911,7 @@ class b {
2863
2911
  if (y(this.auth.app))
2864
2912
  return Promise.reject(D(this.auth));
2865
2913
  const e = await this.getIdToken();
2866
- return await Y(this, ki(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
2914
+ return await Y(this, Pi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
2867
2915
  }
2868
2916
  toJSON() {
2869
2917
  return Object.assign(Object.assign({
@@ -2891,16 +2939,16 @@ class b {
2891
2939
  }
2892
2940
  static _fromJSON(e, t) {
2893
2941
  var r, i, s, o, c, a, l, d;
2894
- const f = (r = t.displayName) !== null && r !== void 0 ? r : void 0, m = (i = t.email) !== null && i !== void 0 ? i : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, B = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, Ke = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, ye = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, Je = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, Ye = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: Ie, emailVerified: Xe, isAnonymous: Qe, providerData: be, stsTokenManager: Ze } = t;
2942
+ const f = (r = t.displayName) !== null && r !== void 0 ? r : void 0, m = (i = t.email) !== null && i !== void 0 ? i : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, B = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, Ke = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, ye = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, Je = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, Ye = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: be, emailVerified: Xe, isAnonymous: Qe, providerData: Ie, stsTokenManager: Ze } = t;
2895
2943
  u(
2896
- Ie && Ze,
2944
+ be && Ze,
2897
2945
  e,
2898
2946
  "internal-error"
2899
2947
  /* AuthErrorCode.INTERNAL_ERROR */
2900
2948
  );
2901
- const yn = H.fromJSON(this.name, Ze);
2949
+ const yn = $.fromJSON(this.name, Ze);
2902
2950
  u(
2903
- typeof Ie == "string",
2951
+ typeof be == "string",
2904
2952
  e,
2905
2953
  "internal-error"
2906
2954
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -2915,8 +2963,8 @@ class b {
2915
2963
  "internal-error"
2916
2964
  /* AuthErrorCode.INTERNAL_ERROR */
2917
2965
  ), A(v, e.name), A(B, e.name), A(Ke, e.name), A(ye, e.name), A(Je, e.name), A(Ye, e.name);
2918
- const we = new b({
2919
- uid: Ie,
2966
+ const we = new I({
2967
+ uid: be,
2920
2968
  auth: e,
2921
2969
  email: m,
2922
2970
  emailVerified: Xe,
@@ -2929,7 +2977,7 @@ class b {
2929
2977
  createdAt: Je,
2930
2978
  lastLoginAt: Ye
2931
2979
  });
2932
- return be && Array.isArray(be) && (we.providerData = be.map((In) => Object.assign({}, In))), ye && (we._redirectEventId = ye), we;
2980
+ return Ie && Array.isArray(Ie) && (we.providerData = Ie.map((bn) => Object.assign({}, bn))), ye && (we._redirectEventId = ye), we;
2933
2981
  }
2934
2982
  /**
2935
2983
  * Initialize a User from an idToken server response
@@ -2937,9 +2985,9 @@ class b {
2937
2985
  * @param idTokenResponse
2938
2986
  */
2939
2987
  static async _fromIdTokenResponse(e, t, r = !1) {
2940
- const i = new H();
2988
+ const i = new $();
2941
2989
  i.updateFromServerResponse(t);
2942
- const s = new b({
2990
+ const s = new I({
2943
2991
  uid: t.localId,
2944
2992
  auth: e,
2945
2993
  stsTokenManager: i,
@@ -2959,9 +3007,9 @@ class b {
2959
3007
  "internal-error"
2960
3008
  /* AuthErrorCode.INTERNAL_ERROR */
2961
3009
  );
2962
- const s = i.providerUserInfo !== void 0 ? qt(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), c = new H();
3010
+ const s = i.providerUserInfo !== void 0 ? Gt(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), c = new $();
2963
3011
  c.updateFromIdToken(r);
2964
- const a = new b({
3012
+ const a = new I({
2965
3013
  uid: i.localId,
2966
3014
  auth: e,
2967
3015
  stsTokenManager: c,
@@ -3062,7 +3110,7 @@ const ht = Kt;
3062
3110
  function se(n, e, t) {
3063
3111
  return `firebase:${n}:${e}:${t}`;
3064
3112
  }
3065
- class V {
3113
+ class H {
3066
3114
  constructor(e, t, r) {
3067
3115
  this.persistence = e, this.auth = t, this.userKey = r;
3068
3116
  const { config: i, name: s } = this.auth;
@@ -3073,7 +3121,7 @@ class V {
3073
3121
  }
3074
3122
  async getCurrentUser() {
3075
3123
  const e = await this.persistence._get(this.fullUserKey);
3076
- return e ? b._fromJSON(this.auth, e) : null;
3124
+ return e ? I._fromJSON(this.auth, e) : null;
3077
3125
  }
3078
3126
  removeCurrentUser() {
3079
3127
  return this.persistence._remove(this.fullUserKey);
@@ -3093,7 +3141,7 @@ class V {
3093
3141
  }
3094
3142
  static async create(e, t, r = "authUser") {
3095
3143
  if (!t.length)
3096
- return new V(w(ht), e, r);
3144
+ return new H(w(ht), e, r);
3097
3145
  const i = (await Promise.all(t.map(async (l) => {
3098
3146
  if (await l._isAvailable())
3099
3147
  return l;
@@ -3105,20 +3153,20 @@ class V {
3105
3153
  try {
3106
3154
  const d = await l._get(o);
3107
3155
  if (d) {
3108
- const f = b._fromJSON(e, d);
3156
+ const f = I._fromJSON(e, d);
3109
3157
  l !== s && (c = f), s = l;
3110
3158
  break;
3111
3159
  }
3112
3160
  } catch {
3113
3161
  }
3114
3162
  const a = i.filter((l) => l._shouldAllowMigration);
3115
- return !s._shouldAllowMigration || !a.length ? new V(s, e, r) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
3163
+ return !s._shouldAllowMigration || !a.length ? new H(s, e, r) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
3116
3164
  if (l !== s)
3117
3165
  try {
3118
3166
  await l._remove(o);
3119
3167
  } catch {
3120
3168
  }
3121
- })), new V(s, e, r));
3169
+ })), new H(s, e, r));
3122
3170
  }
3123
3171
  }
3124
3172
  /**
@@ -3306,7 +3354,7 @@ class xi {
3306
3354
  * limitations under the License.
3307
3355
  */
3308
3356
  async function Bi(n, e = {}) {
3309
- return G(n, "GET", "/v2/passwordPolicy", me(n, e));
3357
+ return q(n, "GET", "/v2/passwordPolicy", me(n, e));
3310
3358
  }
3311
3359
  /**
3312
3360
  * @license
@@ -3325,7 +3373,7 @@ async function Bi(n, e = {}) {
3325
3373
  * limitations under the License.
3326
3374
  */
3327
3375
  const Fi = 6;
3328
- class $i {
3376
+ class Vi {
3329
3377
  constructor(e) {
3330
3378
  var t, r, i, s;
3331
3379
  const o = e.customStrengthOptions;
@@ -3412,14 +3460,14 @@ class $i {
3412
3460
  * See the License for the specific language governing permissions and
3413
3461
  * limitations under the License.
3414
3462
  */
3415
- class Hi {
3463
+ class $i {
3416
3464
  constructor(e, t, r, i) {
3417
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new pt(this), this.idTokenSubscription = new pt(this), this.beforeStateQueue = new xi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = $t, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
3465
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new pt(this), this.idTokenSubscription = new pt(this), this.beforeStateQueue = new xi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Vt, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
3418
3466
  }
3419
3467
  _initializeWithPersistence(e, t) {
3420
3468
  return t && (this._popupRedirectResolver = w(t)), this._initializationPromise = this.queue(async () => {
3421
3469
  var r, i;
3422
- if (!this._deleted && (this.persistenceManager = await V.create(this, e), !this._deleted)) {
3470
+ if (!this._deleted && (this.persistenceManager = await H.create(this, e), !this._deleted)) {
3423
3471
  if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
3424
3472
  try {
3425
3473
  await this._popupRedirectResolver._initialize(this);
@@ -3450,7 +3498,7 @@ class Hi {
3450
3498
  }
3451
3499
  async initializeCurrentUserFromIdToken(e) {
3452
3500
  try {
3453
- const t = await Gt(this, { idToken: e }), r = await b._fromGetAccountInfoResponse(this, t, e);
3501
+ const t = await qt(this, { idToken: e }), r = await I._fromGetAccountInfoResponse(this, t, e);
3454
3502
  await this.directlySetCurrentUser(r);
3455
3503
  } catch (t) {
3456
3504
  console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
@@ -3559,7 +3607,7 @@ class Hi {
3559
3607
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
3560
3608
  }
3561
3609
  async _updatePasswordPolicy() {
3562
- const e = await Bi(this), t = new $i(e);
3610
+ const e = await Bi(this), t = new Vi(e);
3563
3611
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
3564
3612
  }
3565
3613
  _getPersistence() {
@@ -3623,7 +3671,7 @@ class Hi {
3623
3671
  this,
3624
3672
  "argument-error"
3625
3673
  /* AuthErrorCode.ARGUMENT_ERROR */
3626
- ), this.redirectPersistenceManager = await V.create(
3674
+ ), this.redirectPersistenceManager = await H.create(
3627
3675
  this,
3628
3676
  [w(t._redirectPersistence)],
3629
3677
  "redirectUser"
@@ -3742,7 +3790,7 @@ class Hi {
3742
3790
  async _getAppCheckToken() {
3743
3791
  var e;
3744
3792
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
3745
- return t != null && t.error && Ii(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
3793
+ return t != null && t.error && bi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
3746
3794
  }
3747
3795
  }
3748
3796
  function ge(n) {
@@ -3785,7 +3833,7 @@ let ze = {
3785
3833
  recaptchaEnterpriseScript: "",
3786
3834
  gapiScript: ""
3787
3835
  };
3788
- function Vi(n) {
3836
+ function Hi(n) {
3789
3837
  ze = n;
3790
3838
  }
3791
3839
  function ji(n) {
@@ -3813,7 +3861,7 @@ function zi(n) {
3813
3861
  * See the License for the specific language governing permissions and
3814
3862
  * limitations under the License.
3815
3863
  */
3816
- function Gi(n, e) {
3864
+ function qi(n, e) {
3817
3865
  const t = Mt(n, "auth");
3818
3866
  if (t.isInitialized()) {
3819
3867
  const i = t.getImmediate(), s = t.getOptions();
@@ -3827,7 +3875,7 @@ function Gi(n, e) {
3827
3875
  }
3828
3876
  return t.initialize({ options: e });
3829
3877
  }
3830
- function qi(n, e) {
3878
+ function Gi(n, e) {
3831
3879
  const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(w);
3832
3880
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
3833
3881
  }
@@ -3909,19 +3957,19 @@ class on {
3909
3957
  * @returns a JSON-serializable representation of this object.
3910
3958
  */
3911
3959
  toJSON() {
3912
- return I("not implemented");
3960
+ return b("not implemented");
3913
3961
  }
3914
3962
  /** @internal */
3915
3963
  _getIdTokenResponse(e) {
3916
- return I("not implemented");
3964
+ return b("not implemented");
3917
3965
  }
3918
3966
  /** @internal */
3919
3967
  _linkToIdToken(e, t) {
3920
- return I("not implemented");
3968
+ return b("not implemented");
3921
3969
  }
3922
3970
  /** @internal */
3923
3971
  _getReauthenticationResolver(e) {
3924
- return I("not implemented");
3972
+ return b("not implemented");
3925
3973
  }
3926
3974
  }
3927
3975
  /**
@@ -3994,7 +4042,7 @@ class U extends on {
3994
4042
  * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
3995
4043
  */
3996
4044
  static fromJSON(e) {
3997
- const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = $e(t, ["providerId", "signInMethod"]);
4045
+ const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = Ve(t, ["providerId", "signInMethod"]);
3998
4046
  if (!r || !i)
3999
4047
  return null;
4000
4048
  const o = new U(r, i);
@@ -4133,7 +4181,7 @@ class te extends an {
4133
4181
  * See the License for the specific language governing permissions and
4134
4182
  * limitations under the License.
4135
4183
  */
4136
- class k extends te {
4184
+ class P extends te {
4137
4185
  constructor() {
4138
4186
  super(
4139
4187
  "facebook.com"
@@ -4154,8 +4202,8 @@ class k extends te {
4154
4202
  */
4155
4203
  static credential(e) {
4156
4204
  return U._fromParams({
4157
- providerId: k.PROVIDER_ID,
4158
- signInMethod: k.FACEBOOK_SIGN_IN_METHOD,
4205
+ providerId: P.PROVIDER_ID,
4206
+ signInMethod: P.FACEBOOK_SIGN_IN_METHOD,
4159
4207
  accessToken: e
4160
4208
  });
4161
4209
  }
@@ -4165,7 +4213,7 @@ class k extends te {
4165
4213
  * @param userCredential - The user credential.
4166
4214
  */
4167
4215
  static credentialFromResult(e) {
4168
- return k.credentialFromTaggedObject(e);
4216
+ return P.credentialFromTaggedObject(e);
4169
4217
  }
4170
4218
  /**
4171
4219
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4174,20 +4222,20 @@ class k extends te {
4174
4222
  * @param userCredential - The user credential.
4175
4223
  */
4176
4224
  static credentialFromError(e) {
4177
- return k.credentialFromTaggedObject(e.customData || {});
4225
+ return P.credentialFromTaggedObject(e.customData || {});
4178
4226
  }
4179
4227
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4180
4228
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
4181
4229
  return null;
4182
4230
  try {
4183
- return k.credential(e.oauthAccessToken);
4231
+ return P.credential(e.oauthAccessToken);
4184
4232
  } catch {
4185
4233
  return null;
4186
4234
  }
4187
4235
  }
4188
4236
  }
4189
- k.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
4190
- k.PROVIDER_ID = "facebook.com";
4237
+ P.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
4238
+ P.PROVIDER_ID = "facebook.com";
4191
4239
  /**
4192
4240
  * @license
4193
4241
  * Copyright 2020 Google LLC
@@ -4204,7 +4252,7 @@ k.PROVIDER_ID = "facebook.com";
4204
4252
  * See the License for the specific language governing permissions and
4205
4253
  * limitations under the License.
4206
4254
  */
4207
- class C extends te {
4255
+ class k extends te {
4208
4256
  constructor() {
4209
4257
  super(
4210
4258
  "google.com"
@@ -4226,8 +4274,8 @@ class C extends te {
4226
4274
  */
4227
4275
  static credential(e, t) {
4228
4276
  return U._fromParams({
4229
- providerId: C.PROVIDER_ID,
4230
- signInMethod: C.GOOGLE_SIGN_IN_METHOD,
4277
+ providerId: k.PROVIDER_ID,
4278
+ signInMethod: k.GOOGLE_SIGN_IN_METHOD,
4231
4279
  idToken: e,
4232
4280
  accessToken: t
4233
4281
  });
@@ -4238,7 +4286,7 @@ class C extends te {
4238
4286
  * @param userCredential - The user credential.
4239
4287
  */
4240
4288
  static credentialFromResult(e) {
4241
- return C.credentialFromTaggedObject(e);
4289
+ return k.credentialFromTaggedObject(e);
4242
4290
  }
4243
4291
  /**
4244
4292
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4247,7 +4295,7 @@ class C extends te {
4247
4295
  * @param userCredential - The user credential.
4248
4296
  */
4249
4297
  static credentialFromError(e) {
4250
- return C.credentialFromTaggedObject(e.customData || {});
4298
+ return k.credentialFromTaggedObject(e.customData || {});
4251
4299
  }
4252
4300
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4253
4301
  if (!e)
@@ -4256,14 +4304,14 @@ class C extends te {
4256
4304
  if (!t && !r)
4257
4305
  return null;
4258
4306
  try {
4259
- return C.credential(t, r);
4307
+ return k.credential(t, r);
4260
4308
  } catch {
4261
4309
  return null;
4262
4310
  }
4263
4311
  }
4264
4312
  }
4265
- C.GOOGLE_SIGN_IN_METHOD = "google.com";
4266
- C.PROVIDER_ID = "google.com";
4313
+ k.GOOGLE_SIGN_IN_METHOD = "google.com";
4314
+ k.PROVIDER_ID = "google.com";
4267
4315
  /**
4268
4316
  * @license
4269
4317
  * Copyright 2020 Google LLC
@@ -4280,7 +4328,7 @@ C.PROVIDER_ID = "google.com";
4280
4328
  * See the License for the specific language governing permissions and
4281
4329
  * limitations under the License.
4282
4330
  */
4283
- class R extends te {
4331
+ class C extends te {
4284
4332
  constructor() {
4285
4333
  super(
4286
4334
  "github.com"
@@ -4294,8 +4342,8 @@ class R extends te {
4294
4342
  */
4295
4343
  static credential(e) {
4296
4344
  return U._fromParams({
4297
- providerId: R.PROVIDER_ID,
4298
- signInMethod: R.GITHUB_SIGN_IN_METHOD,
4345
+ providerId: C.PROVIDER_ID,
4346
+ signInMethod: C.GITHUB_SIGN_IN_METHOD,
4299
4347
  accessToken: e
4300
4348
  });
4301
4349
  }
@@ -4305,7 +4353,7 @@ class R extends te {
4305
4353
  * @param userCredential - The user credential.
4306
4354
  */
4307
4355
  static credentialFromResult(e) {
4308
- return R.credentialFromTaggedObject(e);
4356
+ return C.credentialFromTaggedObject(e);
4309
4357
  }
4310
4358
  /**
4311
4359
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4314,20 +4362,20 @@ class R extends te {
4314
4362
  * @param userCredential - The user credential.
4315
4363
  */
4316
4364
  static credentialFromError(e) {
4317
- return R.credentialFromTaggedObject(e.customData || {});
4365
+ return C.credentialFromTaggedObject(e.customData || {});
4318
4366
  }
4319
4367
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4320
4368
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
4321
4369
  return null;
4322
4370
  try {
4323
- return R.credential(e.oauthAccessToken);
4371
+ return C.credential(e.oauthAccessToken);
4324
4372
  } catch {
4325
4373
  return null;
4326
4374
  }
4327
4375
  }
4328
4376
  }
4329
- R.GITHUB_SIGN_IN_METHOD = "github.com";
4330
- R.PROVIDER_ID = "github.com";
4377
+ C.GITHUB_SIGN_IN_METHOD = "github.com";
4378
+ C.PROVIDER_ID = "github.com";
4331
4379
  /**
4332
4380
  * @license
4333
4381
  * Copyright 2020 Google LLC
@@ -4344,7 +4392,7 @@ R.PROVIDER_ID = "github.com";
4344
4392
  * See the License for the specific language governing permissions and
4345
4393
  * limitations under the License.
4346
4394
  */
4347
- class P extends te {
4395
+ class R extends te {
4348
4396
  constructor() {
4349
4397
  super(
4350
4398
  "twitter.com"
@@ -4359,8 +4407,8 @@ class P extends te {
4359
4407
  */
4360
4408
  static credential(e, t) {
4361
4409
  return U._fromParams({
4362
- providerId: P.PROVIDER_ID,
4363
- signInMethod: P.TWITTER_SIGN_IN_METHOD,
4410
+ providerId: R.PROVIDER_ID,
4411
+ signInMethod: R.TWITTER_SIGN_IN_METHOD,
4364
4412
  oauthToken: e,
4365
4413
  oauthTokenSecret: t
4366
4414
  });
@@ -4371,7 +4419,7 @@ class P extends te {
4371
4419
  * @param userCredential - The user credential.
4372
4420
  */
4373
4421
  static credentialFromResult(e) {
4374
- return P.credentialFromTaggedObject(e);
4422
+ return R.credentialFromTaggedObject(e);
4375
4423
  }
4376
4424
  /**
4377
4425
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4380,7 +4428,7 @@ class P extends te {
4380
4428
  * @param userCredential - The user credential.
4381
4429
  */
4382
4430
  static credentialFromError(e) {
4383
- return P.credentialFromTaggedObject(e.customData || {});
4431
+ return R.credentialFromTaggedObject(e.customData || {});
4384
4432
  }
4385
4433
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4386
4434
  if (!e)
@@ -4389,14 +4437,14 @@ class P extends te {
4389
4437
  if (!t || !r)
4390
4438
  return null;
4391
4439
  try {
4392
- return P.credential(t, r);
4440
+ return R.credential(t, r);
4393
4441
  } catch {
4394
4442
  return null;
4395
4443
  }
4396
4444
  }
4397
4445
  }
4398
- P.TWITTER_SIGN_IN_METHOD = "twitter.com";
4399
- P.PROVIDER_ID = "twitter.com";
4446
+ R.TWITTER_SIGN_IN_METHOD = "twitter.com";
4447
+ R.PROVIDER_ID = "twitter.com";
4400
4448
  /**
4401
4449
  * @license
4402
4450
  * Copyright 2020 Google LLC
@@ -4418,7 +4466,7 @@ class x {
4418
4466
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
4419
4467
  }
4420
4468
  static async _fromIdTokenResponse(e, t, r, i = !1) {
4421
- const s = await b._fromIdTokenResponse(e, r, i), o = gt(r);
4469
+ const s = await I._fromIdTokenResponse(e, r, i), o = gt(r);
4422
4470
  return new x({
4423
4471
  user: s,
4424
4472
  providerId: o,
@@ -4908,7 +4956,7 @@ _e.receivers = [];
4908
4956
  * See the License for the specific language governing permissions and
4909
4957
  * limitations under the License.
4910
4958
  */
4911
- function Ge(n = "", e = 10) {
4959
+ function qe(n = "", e = 10) {
4912
4960
  let t = "";
4913
4961
  for (let r = 0; r < e; r++)
4914
4962
  t += Math.floor(Math.random() * 10);
@@ -4964,7 +5012,7 @@ class ls {
4964
5012
  );
4965
5013
  let s, o;
4966
5014
  return new Promise((c, a) => {
4967
- const l = Ge("", 20);
5015
+ const l = qe("", 20);
4968
5016
  i.port1.start();
4969
5017
  const d = setTimeout(() => {
4970
5018
  a(new Error(
@@ -5308,7 +5356,7 @@ new ee(3e4, 6e4);
5308
5356
  * See the License for the specific language governing permissions and
5309
5357
  * limitations under the License.
5310
5358
  */
5311
- function Is(n, e) {
5359
+ function bs(n, e) {
5312
5360
  return e ? w(e) : (u(
5313
5361
  n._popupRedirectResolver,
5314
5362
  n,
@@ -5332,7 +5380,7 @@ function Is(n, e) {
5332
5380
  * See the License for the specific language governing permissions and
5333
5381
  * limitations under the License.
5334
5382
  */
5335
- class qe extends on {
5383
+ class Ge extends on {
5336
5384
  constructor(e) {
5337
5385
  super(
5338
5386
  "custom",
@@ -5362,8 +5410,8 @@ class qe extends on {
5362
5410
  return e && (t.idToken = e), t;
5363
5411
  }
5364
5412
  }
5365
- function bs(n) {
5366
- return es(n.auth, new qe(n), n.bypassAuthState);
5413
+ function Is(n) {
5414
+ return es(n.auth, new Ge(n), n.bypassAuthState);
5367
5415
  }
5368
5416
  function ws(n) {
5369
5417
  const { auth: e, user: t } = n;
@@ -5372,7 +5420,7 @@ function ws(n) {
5372
5420
  e,
5373
5421
  "internal-error"
5374
5422
  /* AuthErrorCode.INTERNAL_ERROR */
5375
- ), Zi(t, new qe(n), n.bypassAuthState);
5423
+ ), Zi(t, new Ge(n), n.bypassAuthState);
5376
5424
  }
5377
5425
  async function Es(n) {
5378
5426
  const { auth: e, user: t } = n;
@@ -5381,7 +5429,7 @@ async function Es(n) {
5381
5429
  e,
5382
5430
  "internal-error"
5383
5431
  /* AuthErrorCode.INTERNAL_ERROR */
5384
- ), Qi(t, new qe(n), n.bypassAuthState);
5432
+ ), Qi(t, new Ge(n), n.bypassAuthState);
5385
5433
  }
5386
5434
  /**
5387
5435
  * @license
@@ -5441,7 +5489,7 @@ class _n {
5441
5489
  switch (e) {
5442
5490
  case "signInViaPopup":
5443
5491
  case "signInViaRedirect":
5444
- return bs;
5492
+ return Is;
5445
5493
  case "linkViaPopup":
5446
5494
  case "linkViaRedirect":
5447
5495
  return Es;
@@ -5498,7 +5546,7 @@ class F extends _n {
5498
5546
  }
5499
5547
  async onExecution() {
5500
5548
  S(this.filter.length === 1, "Popup operations only handle one event");
5501
- const e = Ge();
5549
+ const e = qe();
5502
5550
  this.authWindow = await this.resolver._openPopup(
5503
5551
  this.auth,
5504
5552
  this.provider,
@@ -5587,7 +5635,7 @@ class As extends _n {
5587
5635
  let e = oe.get(this.auth._key());
5588
5636
  if (!e) {
5589
5637
  try {
5590
- const r = await ks(this.resolver, this.auth) ? await super.execute() : null;
5638
+ const r = await Ps(this.resolver, this.auth) ? await super.execute() : null;
5591
5639
  e = () => Promise.resolve(r);
5592
5640
  } catch (t) {
5593
5641
  e = () => Promise.reject(t);
@@ -5615,26 +5663,26 @@ class As extends _n {
5615
5663
  cleanUp() {
5616
5664
  }
5617
5665
  }
5618
- async function ks(n, e) {
5619
- const t = Ps(e), r = Rs(n);
5666
+ async function Ps(n, e) {
5667
+ const t = Rs(e), r = Cs(n);
5620
5668
  if (!await r._isAvailable())
5621
5669
  return !1;
5622
5670
  const i = await r._get(t) === "true";
5623
5671
  return await r._remove(t), i;
5624
5672
  }
5625
- function Cs(n, e) {
5673
+ function ks(n, e) {
5626
5674
  oe.set(n._key(), e);
5627
5675
  }
5628
- function Rs(n) {
5676
+ function Cs(n) {
5629
5677
  return w(n._redirectPersistence);
5630
5678
  }
5631
- function Ps(n) {
5679
+ function Rs(n) {
5632
5680
  return se(Ss, n.config.apiKey, n.name);
5633
5681
  }
5634
5682
  async function Os(n, e, t = !1) {
5635
5683
  if (y(n.app))
5636
5684
  return Promise.reject(D(n));
5637
- const r = ge(n), i = Is(r, e), o = await new As(r, i, t).execute();
5685
+ const r = ge(n), i = bs(r, e), o = await new As(r, i, t).execute();
5638
5686
  return o && !t && (delete o.user._redirectEventId, await r._persistUserIfCurrent(o.user), await r._setRedirectUser(null, e)), o;
5639
5687
  }
5640
5688
  /**
@@ -5726,7 +5774,7 @@ function Ls(n) {
5726
5774
  * limitations under the License.
5727
5775
  */
5728
5776
  async function Ms(n, e = {}) {
5729
- return G(n, "GET", "/v1/projects", e);
5777
+ return q(n, "GET", "/v1/projects", e);
5730
5778
  }
5731
5779
  /**
5732
5780
  * @license
@@ -5790,8 +5838,8 @@ function Fs(n) {
5790
5838
  * See the License for the specific language governing permissions and
5791
5839
  * limitations under the License.
5792
5840
  */
5793
- const $s = new ee(3e4, 6e4);
5794
- function It() {
5841
+ const Vs = new ee(3e4, 6e4);
5842
+ function bt() {
5795
5843
  const n = _().___jsl;
5796
5844
  if (n != null && n.H) {
5797
5845
  for (const e of Object.keys(n.H))
@@ -5800,22 +5848,22 @@ function It() {
5800
5848
  n.CP[t] = null;
5801
5849
  }
5802
5850
  }
5803
- function Hs(n) {
5851
+ function $s(n) {
5804
5852
  return new Promise((e, t) => {
5805
5853
  var r, i, s;
5806
5854
  function o() {
5807
- It(), gapi.load("gapi.iframes", {
5855
+ bt(), gapi.load("gapi.iframes", {
5808
5856
  callback: () => {
5809
5857
  e(gapi.iframes.getContext());
5810
5858
  },
5811
5859
  ontimeout: () => {
5812
- It(), t(g(
5860
+ bt(), t(g(
5813
5861
  n,
5814
5862
  "network-request-failed"
5815
5863
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
5816
5864
  ));
5817
5865
  },
5818
- timeout: $s.get()
5866
+ timeout: Vs.get()
5819
5867
  });
5820
5868
  }
5821
5869
  if (!((i = (r = _().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
@@ -5837,8 +5885,8 @@ function Hs(n) {
5837
5885
  });
5838
5886
  }
5839
5887
  let ae = null;
5840
- function Vs(n) {
5841
- return ae = ae || Hs(n), ae;
5888
+ function Hs(n) {
5889
+ return ae = ae || $s(n), ae;
5842
5890
  }
5843
5891
  /**
5844
5892
  * @license
@@ -5856,7 +5904,7 @@ function Vs(n) {
5856
5904
  * See the License for the specific language governing permissions and
5857
5905
  * limitations under the License.
5858
5906
  */
5859
- const js = new ee(5e3, 15e3), Ws = "__/auth/iframe", zs = "emulator/auth/iframe", Gs = {
5907
+ const js = new ee(5e3, 15e3), Ws = "__/auth/iframe", zs = "emulator/auth/iframe", qs = {
5860
5908
  style: {
5861
5909
  position: "absolute",
5862
5910
  top: "-100px",
@@ -5865,7 +5913,7 @@ const js = new ee(5e3, 15e3), Ws = "__/auth/iframe", zs = "emulator/auth/iframe"
5865
5913
  },
5866
5914
  "aria-hidden": "true",
5867
5915
  tabindex: "-1"
5868
- }, qs = /* @__PURE__ */ new Map([
5916
+ }, Gs = /* @__PURE__ */ new Map([
5869
5917
  ["identitytoolkit.googleapis.com", "p"],
5870
5918
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
5871
5919
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
@@ -5879,17 +5927,17 @@ function Ks(n) {
5879
5927
  "auth-domain-config-required"
5880
5928
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
5881
5929
  );
5882
- const t = e.emulator ? Ve(e, zs) : `https://${n.config.authDomain}/${Ws}`, r = {
5930
+ const t = e.emulator ? He(e, zs) : `https://${n.config.authDomain}/${Ws}`, r = {
5883
5931
  apiKey: e.apiKey,
5884
5932
  appName: n.name,
5885
5933
  v: Z
5886
- }, i = qs.get(n.config.apiHost);
5934
+ }, i = Gs.get(n.config.apiHost);
5887
5935
  i && (r.eid = i);
5888
5936
  const s = n._getFrameworks();
5889
5937
  return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
5890
5938
  }
5891
5939
  async function Js(n) {
5892
- const e = await Vs(n), t = _().gapi;
5940
+ const e = await Hs(n), t = _().gapi;
5893
5941
  return u(
5894
5942
  t,
5895
5943
  n,
@@ -5899,7 +5947,7 @@ async function Js(n) {
5899
5947
  where: document.body,
5900
5948
  url: Ks(n),
5901
5949
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
5902
- attributes: Gs,
5950
+ attributes: qs,
5903
5951
  dontclear: !0
5904
5952
  }, (r) => new Promise(async (i, s) => {
5905
5953
  await r.restyle({
@@ -5943,7 +5991,7 @@ const Ys = {
5943
5991
  statusbar: "yes",
5944
5992
  toolbar: "no"
5945
5993
  }, Xs = 500, Qs = 600, Zs = "_blank", eo = "http://localhost";
5946
- class bt {
5994
+ class It {
5947
5995
  constructor(e) {
5948
5996
  this.window = e, this.associatedEvent = null;
5949
5997
  }
@@ -5967,7 +6015,7 @@ function to(n, e, t, r = Xs, i = Qs) {
5967
6015
  t && (c = Xt(l) ? Zs : t), Jt(l) && (e = e || eo, a.scrollbars = "yes");
5968
6016
  const d = Object.entries(a).reduce((m, [v, B]) => `${m}${v}=${B},`, "");
5969
6017
  if (Mi(l) && c !== "_self")
5970
- return no(e || "", c), new bt(null);
6018
+ return no(e || "", c), new It(null);
5971
6019
  const f = window.open(e || "", c, d);
5972
6020
  u(
5973
6021
  f,
@@ -5979,7 +6027,7 @@ function to(n, e, t, r = Xs, i = Qs) {
5979
6027
  f.focus();
5980
6028
  } catch {
5981
6029
  }
5982
- return new bt(f);
6030
+ return new It(f);
5983
6031
  }
5984
6032
  function no(n, e) {
5985
6033
  const t = document.createElement("a");
@@ -6041,7 +6089,7 @@ async function wt(n, e, t, r, i, s) {
6041
6089
  return `${oo(n)}?${Q(c).slice(1)}${l}`;
6042
6090
  }
6043
6091
  function oo({ config: n }) {
6044
- return n.emulator ? Ve(n, io) : `https://${n.authDomain}/${ro}`;
6092
+ return n.emulator ? He(n, io) : `https://${n.authDomain}/${ro}`;
6045
6093
  }
6046
6094
  /**
6047
6095
  * @license
@@ -6059,10 +6107,10 @@ function oo({ config: n }) {
6059
6107
  * See the License for the specific language governing permissions and
6060
6108
  * limitations under the License.
6061
6109
  */
6062
- const Re = "webStorageSupport";
6110
+ const Ce = "webStorageSupport";
6063
6111
  class ao {
6064
6112
  constructor() {
6065
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = hn, this._completeRedirectFn = Os, this._overrideRedirectResult = Cs;
6113
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = hn, this._completeRedirectFn = Os, this._overrideRedirectResult = ks;
6066
6114
  }
6067
6115
  // Wrapping in async even though we don't await anywhere in order
6068
6116
  // to make sure errors are raised as promise rejections
@@ -6070,7 +6118,7 @@ class ao {
6070
6118
  var s;
6071
6119
  S((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
6072
6120
  const o = await wt(e, t, r, Me(), i);
6073
- return to(e, o, Ge());
6121
+ return to(e, o, qe());
6074
6122
  }
6075
6123
  async _openRedirect(e, t, r, i) {
6076
6124
  await this._originValidation(e);
@@ -6102,9 +6150,9 @@ class ao {
6102
6150
  }), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
6103
6151
  }
6104
6152
  _isIframeWebStorageSupported(e, t) {
6105
- this.iframes[e._key()].send(Re, { type: Re }, (i) => {
6153
+ this.iframes[e._key()].send(Ce, { type: Ce }, (i) => {
6106
6154
  var s;
6107
- const o = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Re];
6155
+ const o = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Ce];
6108
6156
  o !== void 0 && t(!!o), T(
6109
6157
  e,
6110
6158
  "internal-error"
@@ -6219,8 +6267,8 @@ function ho(n) {
6219
6267
  tokenApiHost: "securetoken.googleapis.com",
6220
6268
  apiScheme: "https",
6221
6269
  sdkClientVersion: rn(n)
6222
- }, l = new Hi(r, i, s, a);
6223
- return qi(l, t), l;
6270
+ }, l = new $i(r, i, s, a);
6271
+ return Gi(l, t), l;
6224
6272
  },
6225
6273
  "PUBLIC"
6226
6274
  /* ComponentType.PUBLIC */
@@ -6246,7 +6294,7 @@ function ho(n) {
6246
6294
  ).setInstantiationMode(
6247
6295
  "EXPLICIT"
6248
6296
  /* InstantiationMode.EXPLICIT */
6249
- )), $(Et, Tt, uo(n)), $(Et, Tt, "esm2017");
6297
+ )), V(Et, Tt, uo(n)), V(Et, Tt, "esm2017");
6250
6298
  }
6251
6299
  /**
6252
6300
  * @license
@@ -6282,7 +6330,7 @@ function go(n = ai()) {
6282
6330
  const e = Mt(n, "auth");
6283
6331
  if (e.isInitialized())
6284
6332
  return e.getImmediate();
6285
- const t = Gi(n, {
6333
+ const t = qi(n, {
6286
6334
  popupRedirectResolver: co,
6287
6335
  persistence: [
6288
6336
  ys,
@@ -6297,14 +6345,14 @@ function go(n = ai()) {
6297
6345
  is(t, o, () => o(t.currentUser)), rs(t, (c) => o(c));
6298
6346
  }
6299
6347
  }
6300
- const i = qn("auth");
6348
+ const i = Gn("auth");
6301
6349
  return i && Ki(t, `http://${i}`), t;
6302
6350
  }
6303
6351
  function _o() {
6304
6352
  var n, e;
6305
6353
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
6306
6354
  }
6307
- Vi({
6355
+ Hi({
6308
6356
  loadJS(n) {
6309
6357
  return new Promise((e, t) => {
6310
6358
  const r = document.createElement("script");
@@ -6336,11 +6384,11 @@ const Eo = /* @__PURE__ */ Sn({
6336
6384
  const c = await o.getCustomToken(), a = go(i);
6337
6385
  await ns(a, c);
6338
6386
  }
6339
- return s(), An(e.sessionUser, s), kn(() => {
6387
+ return s(), An(e.sessionUser, s), Pn(() => {
6340
6388
  t.isIframe && parent.postMessage({ event: "ready" }, "*");
6341
6389
  }), (o, c) => {
6342
- const a = Cn("RouterView");
6343
- return Rn(), Pn(a, {
6390
+ const a = kn("RouterView");
6391
+ return Cn(), Rn(a, {
6344
6392
  key: On(r).path
6345
6393
  });
6346
6394
  };